/* ============================================================
   MARIA
   Three photographs, two buttons, one page. Mobile first.
   ============================================================ */

:root{
  --black:      #060606;
  --charcoal:   #131312;
  --white:      #F2EDE6;      /* warm off-white */
  --muted:      #948C83;
  --champagne:  #D9C3A3;
  --hair:       rgba(242,237,230,.13);

  --serif: "Didot", "Bodoni 72", "Playfair Display", ui-serif,
           "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, sans-serif;

  --pad:   26px;
  --top:   env(safe-area-inset-top, 0px);
  --bot:   env(safe-area-inset-bottom, 0px);

  --ease:  cubic-bezier(.22,.68,.28,1);
}

*,*::before,*::after{ box-sizing:border-box; }

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  background:var(--black);
}

body{
  margin:0;
  background:var(--black);
  color:var(--white);
  font-family:var(--sans);
  font-size:16.5px;
  line-height:1.65;
  font-weight:380;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

img{ display:block; max-width:100%; }

::selection{ background:var(--champagne); color:#14100c; }

.skip{
  position:absolute; left:-9999px; top:0; z-index:200;
  padding:14px 20px; background:var(--white); color:var(--black);
  font-size:15px; text-decoration:none;
}
.skip:focus{ left:12px; top:calc(12px + var(--top)); }

/* Barely-there film grain, so large flat blacks do not band.
   Deliberately NOT a blend mode: mix-blend-mode here composites
   against the full-bleed hero and blacks it out. */
.grain{
  position:fixed; inset:0; z-index:90; pointer-events:none;
  opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* ══════════ TOP BAR ══════════ */

.nav{
  position:fixed; top:0; left:0; right:0; z-index:80;
  display:flex; align-items:center; justify-content:space-between;
  padding:calc(16px + var(--top)) var(--pad) 16px;
  transition:background-color .45s ease, backdrop-filter .45s ease, padding .45s ease;
}
.nav.is-stuck{
  background:rgba(6,6,6,.72);
  -webkit-backdrop-filter:saturate(140%) blur(14px);
  backdrop-filter:saturate(140%) blur(14px);
  padding-top:calc(11px + var(--top));
  padding-bottom:11px;
}

.nav__mark{
  display:flex; align-items:center;
  min-height:44px; margin:-9px 0;      /* full tap target, no extra weight */
  font-family:var(--serif);
  font-size:16px;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:var(--white);
  text-decoration:none;
  text-indent:.34em;                   /* balances the trailing letter-space */
  text-shadow:0 1px 16px rgba(6,6,6,.7);
}
.nav.is-stuck .nav__mark{ text-shadow:none; }
.nav__mark:focus-visible,
.nav__social:focus-visible{ outline:1.5px solid var(--champagne); outline-offset:6px; }

.nav__social{
  display:flex; align-items:center; justify-content:center;
  width:44px; height:44px; margin:-10px -10px -10px 0;
  color:var(--white);
  opacity:.82;
  transition:opacity .3s ease, color .3s ease;
}
.nav__social svg{ width:21px; height:21px; }
.nav__social:hover{ opacity:1; color:var(--champagne); }
.nav__social[hidden]{ display:none; }


/* ══════════ FIRST SCREEN ══════════ */

.hero{
  position:relative;
  min-height:100svh;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:0 var(--pad) calc(44px + var(--bot));
  overflow:hidden;
  isolation:isolate;
}

/* Inset past the top and bottom edges so the parallax has somewhere to
   travel without ever exposing a bare strip. */
.hero__frame{
  position:absolute; inset:-7% 0; z-index:-2;
  will-change:transform;
}
.hero__img{
  width:100%; height:100%;
  object-fit:cover;
  object-position:52% 12%;
}

/* Dark shaping over the photograph. Heavy at the bottom where the
   headline and the button sit, light through the middle. */
.hero__veil{
  position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(to bottom,
      rgba(6,6,6,.80) 0%,
      rgba(6,6,6,.38) 11%,
      rgba(6,6,6,0)   30%),
    linear-gradient(to top,
      rgba(6,6,6,.96) 0%,
      rgba(6,6,6,.88) 18%,
      rgba(6,6,6,.52) 38%,
      rgba(6,6,6,.12) 60%),
    radial-gradient(130% 62% at 50% 108%, rgba(6,6,6,.6), transparent 60%);
}

/* No max-width on the wrapper: it would squeeze the button and wrap
   its label. The headline and the sub-line carry their own limits. */
.hero__body{ position:relative; }

.hero__line{
  margin:0;
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(46px, 14.2vw, 96px);
  line-height:.96;
  letter-spacing:-.025em;
  max-width:13ch;
}
.hero__sub{
  margin:18px 0 30px;
  max-width:27ch;
  font-size:16.5px;
  line-height:1.55;
  color:rgba(242,237,230,.8);
}


/* ══════════ THE BUTTON ══════════ */

.cta{
  display:inline-flex; align-items:center; justify-content:center; gap:13px;
  min-height:60px;
  padding:19px 32px;
  background:var(--white);
  color:#0B0908;
  font-size:15px; font-weight:600;
  letter-spacing:.11em; text-transform:uppercase;
  text-decoration:none;
  white-space:nowrap;           /* the label must never break in two */
  border:1px solid var(--white);
  border-radius:999px;
  -webkit-tap-highlight-color:transparent;
  box-shadow:0 18px 44px -22px rgba(217,195,163,.85);
  transition:transform .4s var(--ease), box-shadow .4s ease, filter .4s ease;
}
.cta__arrow{ font-size:17px; transition:transform .4s var(--ease); }

@media (hover:hover){
  .cta:hover{
    transform:translateY(-3px);
    box-shadow:0 26px 58px -22px rgba(217,195,163,.95);
  }
  .cta:hover .cta__arrow{ transform:translateX(5px); }
}
.cta:active{ transform:translateY(-1px) scale(.99); }
.cta:focus-visible{ outline:1.5px solid var(--champagne); outline-offset:6px; }

.cta--lg{ min-height:64px; padding:21px 42px; font-size:16px; }


/* ══════════ TWO PHOTOGRAPHS ══════════ */

.shots{
  display:flex; flex-direction:column;
  gap:38px;
  padding:88px var(--pad) 0;
}
.shot{ margin:0; }

.frame{
  position:relative;
  overflow:hidden;
  background:var(--charcoal);
  border-radius:2px;
}
.frame img{
  width:100%; height:100%;
  object-fit:cover;
  transition:transform 1.1s var(--ease);
}
.frame--tall{ aspect-ratio:4/5; }
.frame--wide{ aspect-ratio:4/3; }
.frame--tall img{ object-position:48% 24%; }
.frame--wide img{ object-position:57% 28%; }

@media (hover:hover){
  .shot:hover .frame img{ transform:scale(1.035); }
}

/* Offset the pair a little so it reads as composed, not stacked. */
.shot--a{ width:84%; margin-right:auto; }
.shot--b{ width:92%; margin-left:auto; }


/* ══════════ CLOSING ══════════ */

.rule{
  display:block; width:34px; height:1px;
  margin:0 auto 26px;
  background:linear-gradient(to right, transparent, var(--champagne), transparent);
  opacity:.75;
}

.close{
  padding:96px var(--pad) 100px;
  text-align:center;
  background:
    radial-gradient(96% 58% at 50% 100%, rgba(217,195,163,.06), transparent 62%),
    var(--black);
}
.close__title{
  margin:0 0 38px;
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(34px, 9.5vw, 58px);
  line-height:1.06;
  letter-spacing:-.02em;
}


/* ══════════ BOTTOM ══════════ */

.foot{
  padding:0 var(--pad) calc(46px + var(--bot));
  text-align:center;
}
.foot__mark{
  margin:0;
  font-family:var(--serif);
  font-size:15px;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:rgba(242,237,230,.5);
  text-indent:.34em;
}
.foot__note{
  margin:12px 0 0;
  font-size:13.5px;
  color:var(--muted);
}
.foot__social{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px;
  margin-top:14px;
  color:var(--muted);
  transition:color .3s ease;
}
.foot__social svg{ width:20px; height:20px; }
.foot__social:hover{ color:var(--champagne); }
.foot__social:focus-visible{ outline:1.5px solid var(--champagne); outline-offset:4px; }
.foot__social[hidden]{ display:none; }


/* ══════════ REVEAL ON SCROLL ══════════ */

.js .reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity 1s var(--ease), transform 1.1s var(--ease);
}
.js .reveal.is-in{ opacity:1; transform:none; }
.js .reveal:nth-child(2){ transition-delay:.08s; }
.js .reveal:nth-child(3){ transition-delay:.16s; }


/* ══════════ TABLET ══════════ */

@media (min-width:700px){
  :root{ --pad:44px; }

  body{ font-size:17px; }

  .hero{ padding-bottom:62px; }
  .hero__sub{ font-size:18px; margin-bottom:34px; }

  .shots{
    display:grid;
    grid-template-columns:repeat(12, 1fr);
    column-gap:32px;
    align-items:start;
    padding-top:112px;
  }
  .shot{ width:auto; margin:0; }
  .shot--a{ grid-column:1 / span 6; }
  .shot--b{ grid-column:7 / span 6; margin-top:22%; }

  .close{ padding:132px var(--pad) 128px; }
  .foot{ padding-bottom:64px; }
}


/* ══════════ DESKTOP ══════════ */

@media (min-width:1000px){
  :root{ --pad:64px; }

  .hero__body{ max-width:none; }
  .hero__sub{ font-size:19px; max-width:34ch; }

  /* The very slow drift. Desktop only, where it reads as cinema
     rather than as a battery drain. */
  .hero__img{
    object-position:52% 14%;
    animation:heroDrift 34s var(--ease) infinite alternate;
  }
  @keyframes heroDrift{
    from{ transform:scale(1);    }
    to  { transform:scale(1.05); }
  }

  .shots{ max-width:1240px; margin:0 auto; column-gap:44px; padding-top:140px; }

  .close{ padding:168px var(--pad) 156px; }
}

@media (min-width:1400px){
  .hero__line{ font-size:104px; }
}


/* ══════════ MOTION SETTINGS ══════════ */

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .js .reveal{ opacity:1; transform:none; }
  .hero__frame{ transform:none !important; }
}
