/* Esther — UGC portfolio (Cinematic). Fonts are self-hosted. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }

.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 200; padding: 10px 14px; background: #F7F3EC; color: #49382E; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* A · CINEMATIC — dark film mood, live clips as the backdrop, scroll drives the story.
   Layout: full-bleed sections, one pinned "phone" stage, one pinned horizontal strip. */
:root {
  --bg: #1A1310;          /* espresso, deepened */
  --bg-2: #241B16;
  --ink: #F7F3EC;         /* ivory */
  --muted: rgba(247, 243, 236, .64);
  --line: rgba(247, 243, 236, .14);
  --rose: #C98F91;
  --rose-l: #E3B9B9;
  --tomato: #B94C43;
  --beige: #DCC8AD;
  --olive: #7D846F;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: clamp(18px, 4vw, 56px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
h1, h2 { text-wrap: balance; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--rose-l); outline-offset: 3px; }
::selection { background: var(--rose); color: var(--bg); }

.eyebrow { display: flex; align-items: center; gap: 12px; font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tomato); box-shadow: 0 0 0 4px rgba(185, 76, 67, .25); }
.h2 { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: .95; letter-spacing: -.015em; margin-top: 18px; }
.h2 em, .hero-h1 em { color: var(--rose-l); }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; transition: background .3s, color .3s; }
.btn:hover { background: var(--rose); }
.link { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding: 10px 0 4px; }
.link:hover { color: var(--rose-l); }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--pad) 18px; transition: background .4s, padding .4s; }
.top.is-solid { background: rgba(26, 19, 16, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding-block: calc(env(safe-area-inset-top, 0px) + 12px) 12px; }
.mark { font-family: var(--serif); font-style: italic; font-size: 1.7rem; line-height: 1; }
.top nav { display: flex; gap: clamp(14px, 3vw, 40px); font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.top nav a { padding: 8px 0; }
.top nav a:hover { color: var(--rose-l); }
.top .cta { color: var(--rose-l); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate; }
.wall { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; z-index: -2; }
.col { position: relative; overflow: hidden; background: var(--bg-2); }
.col video { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.06 + var(--p, 0) * .12)); transition: opacity .8s; }
.hero .c1 video { translate: 0 calc(var(--p, 0) * -14%); }
.hero .c2 video { translate: 0 calc(var(--p, 0) * 10%); }
.hero .c3 video { translate: 0 calc(var(--p, 0) * -20%); }
.hero .c1 { translate: calc(var(--p, 0) * -6vw) 0; }
.hero .c3 { translate: calc(var(--p, 0) * 6vw) 0; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(26, 19, 16, .55) 0%, rgba(26, 19, 16, .15) 30%, rgba(26, 19, 16, .35) 60%, rgba(26, 19, 16, .95) 100%),
  rgba(26, 19, 16, calc(.15 + var(--p, 0) * .6)); }
.hero-copy { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(140px, 23vw, 300px); max-width: 640px; opacity: calc(1 - var(--p, 0) * 2.2); translate: 0 calc(var(--p, 0) * -60px); }
.hero-h1 { font-family: var(--serif); font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: .98; margin: 18px 0 14px; }
.hero-sub { max-width: 30rem; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 26px; }
.giant { position: absolute; left: 0; right: 0; bottom: -0.16em; text-align: center; font-family: var(--serif); font-style: italic; font-size: 26vw; line-height: .8; letter-spacing: -.03em; color: var(--ink); pointer-events: none; opacity: .94; text-shadow: 0 10px 60px rgba(0,0,0,.35); translate: 0 calc(var(--p, 0) * 30%); }
.scroll-cue { position: absolute; right: var(--pad); bottom: 28px; writing-mode: vertical-rl; font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.scroll-cue::after { content: ""; display: inline-block; width: 1px; height: 48px; margin-top: 12px; background: currentColor; animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- statement ---------- */
.statement { padding: clamp(120px, 18vw, 240px) var(--pad); }
.words { max-width: 20ch; margin: 0 auto; font-family: var(--serif); font-size: clamp(2rem, 4.8vw, 4.4rem); line-height: 1.12; text-align: center; max-width: 24ch; }
.words .w { opacity: .16; transition: opacity .25s linear; }
.words .w.on { opacity: 1; }
.reduced .words .w { opacity: 1; }

/* ---------- stories (pinned) ---------- */
.stories { position: relative; height: calc(var(--n, 6) * 90vh + 100vh); }
.stage { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(24px, 4vw, 72px); padding: 90px var(--pad) 40px; overflow: hidden; }
.glow { position: absolute; inset: -20%; z-index: -1; background: radial-gradient(40% 45% at 50% 50%, var(--glow, rgba(201, 143, 145, .35)), transparent 70%); transition: background 1s var(--ease); }
.story-text { align-self: center; }
.texts { position: relative; min-height: 18rem; margin-top: 22px; }
.st { position: absolute; inset: 0 0 auto 0; opacity: 0; translate: 0 24px; transition: opacity .6s var(--ease), translate .7s var(--ease); pointer-events: none; }
.st.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.st .cat { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--rose-l); }
.st h3 { font-family: var(--serif); font-size: clamp(2.2rem, 4.2vw, 4.2rem); line-height: 1; margin: 12px 0 18px; }
.st p { color: var(--muted); font-size: .95rem; }
.st p b { color: var(--ink); font-weight: 500; }
.st .watch { display: inline-block; margin-top: 22px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.st .watch.is-soon { color: var(--muted); border-bottom-style: dotted; }
.phone { position: relative; height: min(74svh, 760px); aspect-ratio: 9 / 16; border-radius: 34px; padding: 8px; background: #0D0907; box-shadow: 0 0 0 1px rgba(247, 243, 236, .12), 0 40px 120px -30px rgba(0, 0, 0, .8); cursor: pointer; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 27px; overflow: hidden; background: var(--bg-2); }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.screen video.is-on { opacity: 1; }
.phone-bar { position: absolute; left: 22px; right: 22px; bottom: 18px; height: 2px; background: rgba(247, 243, 236, .25); border-radius: 2px; overflow: hidden; }
.phone-bar span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--sp, 0)); }
.ticks { list-style: none; margin: 0; padding: 0; justify-self: end; display: grid; gap: 4px; }
.ticks li { display: flex; align-items: center; justify-content: flex-end; gap: 14px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .4s; }
.ticks li::after { content: ""; width: 24px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.ticks li.is-on { color: var(--ink); }
.ticks li.is-on::after { width: 56px; background: var(--rose-l); }
.ticks button { all: unset; cursor: pointer; padding: 8px 0; }
.ticks button:focus-visible { outline: 2px solid var(--rose-l); }

/* ---------- horizontal strip (pinned) ---------- */
.work { position: relative; height: var(--h, 400vh); }
.work-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-top: 70px; }
.work-head { padding: 0 var(--pad); display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.work-head .h2 { margin-top: 10px; font-size: clamp(2.2rem, 4.6vw, 4.4rem); }
.strip { display: flex; gap: clamp(14px, 1.6vw, 26px); padding: 0 var(--pad); will-change: transform; transform: translate3d(calc(var(--x, 0) * -1px), 0, 0); }
.card { flex: none; width: clamp(200px, 21vw, 300px); }
.card .frame { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--bg-2); }
.card video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover video { transform: scale(1.04); }
.card .tag { position: absolute; left: 12px; top: 12px; z-index: 2; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(26, 19, 16, .6); backdrop-filter: blur(6px); }
.card .num { position: absolute; right: 14px; top: 8px; z-index: 2; font-family: var(--serif); font-style: italic; font-size: 1.5rem; }
.card h3 { font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; margin: 14px 0 6px; }
.card .meta { font-size: .76rem; color: var(--muted); }
.card .watch { display: inline-block; margin-top: 10px; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.card .watch.is-soon { color: var(--muted); border-bottom-style: dotted; }
.card .watch:not(.is-soon):hover { color: var(--rose-l); }

/* ---------- formats ---------- */
.formats { position: relative; padding: clamp(110px, 14vw, 200px) var(--pad); }
.rows { list-style: none; margin: clamp(40px, 6vw, 80px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 4rem 1fr auto; align-items: baseline; gap: 20px; padding: clamp(18px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line); transition: color .3s, padding .5s var(--ease); }
.rows .n { font-family: var(--serif); font-style: italic; color: var(--rose-l); font-size: 1.2rem; }
.rows .t { font-family: var(--serif); font-size: clamp(1.9rem, 4.4vw, 4rem); line-height: 1; }
.rows .d { color: var(--muted); font-size: .85rem; text-align: right; }
.rows li:hover { padding-left: 18px; }
.rows li:hover .t { color: var(--rose-l); font-style: italic; }
.cursor-clip { position: fixed; left: 0; top: 0; z-index: 40; width: 200px; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate3d(var(--cx, 0), var(--cy, 0), 0) translate(-50%, -50%) rotate(-4deg) scale(.85); transition: opacity .3s, transform .15s linear; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }
.cursor-clip.is-on { opacity: 1; transform: translate3d(var(--cx, 0), var(--cy, 0), 0) translate(-50%, -50%) rotate(-4deg) scale(1); }
.cursor-clip video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 120px); align-items: center; padding: clamp(80px, 10vw, 160px) var(--pad); }
.about-img { margin: 0; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 5; }
.about-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.18 - var(--p, 0) * .18)); }
.about-copy { max-width: 32rem; }
.about-copy .lead { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.35; margin: 28px 0 18px; }
.about-copy p:not(.lead):not(.eyebrow):not(.sign) { color: var(--muted); margin-top: 14px; }
.about-copy .sign { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: var(--rose-l); margin: 28px 0 18px; }
.contact-lede { color: var(--muted); max-width: 26rem; margin-bottom: 18px; }
[hidden] { display: none !important; }

/* ---------- contact ---------- */
.contact { padding: clamp(60px, 8vw, 120px) 0 0; background: var(--bg-2); }
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); padding: 10px 0; }
.track { display: inline-flex; animation: marquee 38s linear infinite; }
.track span { font-family: var(--serif); font-size: clamp(3.2rem, 9vw, 8.4rem); line-height: 1.1; padding-right: .4em; }
.track em { color: var(--rose-l); }
@keyframes marquee { to { transform: translateX(-50%); } }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px 64px; align-items: end; padding: clamp(56px, 8vw, 110px) var(--pad); }
.email { font-family: var(--serif); font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1; border-bottom: 1px solid var(--line); padding-bottom: 12px; overflow-wrap: anywhere; }
.email:hover { color: var(--rose-l); }
.contact-grid dl { margin: 0; display: grid; gap: 14px; }
.contact-grid dt { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.contact-grid dd { margin: 2px 0 0; font-size: 1.05rem; }
.contact-grid .btn { justify-self: start; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 26px var(--pad) 90px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }

/* reveal */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .9s var(--ease), translate 1s var(--ease); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .top nav a:not(.cta) { display: none; }
  .wall { grid-template-columns: 1fr; }
  .wall .c1, .wall .c3 { display: none; }
  .giant { font-size: 34vw; }
  .hero-copy { bottom: clamp(110px, 30vw, 200px); }
  .stories { height: calc(var(--n, 6) * 80vh + 100vh); }
  .stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; justify-items: center; gap: 18px; padding: 76px var(--pad) 24px; }
  .phone { grid-row: 1; height: min(52svh, 520px); border-radius: 28px; padding: 6px; }
  .screen { border-radius: 23px; }
  .story-text { grid-row: 2; width: 100%; text-align: center; }
  .story-text .eyebrow { justify-content: center; }
  .texts { min-height: 13rem; margin-top: 10px; }
  .st h3 { font-size: 2rem; margin: 6px 0 8px; }
  .st p { font-size: .85rem; }
  .ticks { display: none; }
  /* strip becomes a native swipe row */
  .work { height: auto; }
  .work-stage { position: static; height: auto; padding: 90px 0 60px; }
  .strip { contain: paint; transform: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .card { width: 62vw; scroll-snap-align: center; }
  .rows li { grid-template-columns: 2.4rem 1fr; }
  .rows .d { grid-column: 2; text-align: left; }
  .about { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .reveal { opacity: 1; translate: none; }
  .hero .col, .hero .col video, .giant, .hero-copy, .about-img img { translate: none !important; transform: none !important; opacity: 1; }
  .hero-shade { background: linear-gradient(180deg, rgba(26,19,16,.55), rgba(26,19,16,.25) 40%, rgba(26,19,16,.95)); }
  /* stories become a simple list */
  .stories { height: auto; }
  .stage { position: static; height: auto; }
  .work { height: auto; }
  .work-stage { position: static; height: auto; padding: 80px 0; }
  .strip { transform: none; overflow-x: auto; }
  .ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
  .ticks li::after { display: none; }
}
