/* ==========================================================================
   Tereza Hájková — portfolio v4
   White page, Canva typography (Noto Serif Display condensed + Garet),
   motion via GSAP / ScrollTrigger / Lenis. Nothing is hidden by CSS alone:
   initial animation states are set from JS, so the page stays readable
   if scripts fail or motion is reduced.
   ========================================================================== */

/* Garet (Canva body font) is used when installed / self-hosted; Outfit is the web fallback. */
@font-face { font-family: "Garet"; src: local("Garet Book"), local("Garet-Book"), local("Garet"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Garet"; src: local("Garet Heavy"), local("Garet-Heavy"); font-weight: 800; font-display: swap; }

:root {
  --bg: #ffffff;
  --ink: #0d0d0d;
  --ink-2: #2b2b2b;
  --grey: #6b6b6b;
  --line: #e6e6e6;
  --sand: #f6f2eb;
  --accent: #c2361f;          /* the red of her surfboard */
  --film: #e8a44a;            /* film-edge print colour */
  --dark: #0d0d0d;

  --serif: "Noto Serif Display", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Garet", "Outfit", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(18px, 3.2vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, figure, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 200; top: 10px; left: 10px; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 99px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---------- type ---------- */
.label { font: 500 .6875rem/1.45 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.display-l { font: 300 clamp(3rem, 1.5rem + 7vw, 9rem)/.88 var(--serif); font-stretch: 62.5%; letter-spacing: -.01em; }
.display-l em, .project-title em, .contact-title em { font-weight: 300; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: .5em; min-height: 40px; padding: 0 18px; border-radius: 999px; font: 500 .8125rem/1 var(--sans); letter-spacing: .02em; white-space: nowrap; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.pill-dark { background: var(--ink); color: var(--bg); }
.pill-line { border: 1px solid currentColor; }
@media (hover: hover) {
  .pill-dark:hover { background: var(--accent); }
  .pill-line:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
}

/* ---------- intro ---------- */
.intro { position: fixed; inset: 0; z-index: 150; display: none; place-items: center; background: var(--bg); }
.is-intro .intro { display: grid; animation: intro-fallback .6s 3s var(--ease) forwards; }
@keyframes intro-fallback { to { opacity: 0; visibility: hidden; } }
.intro-inner { display: grid; justify-items: center; gap: 18px; }
.intro-name { font: 300 clamp(3rem, 2rem + 6vw, 7rem)/.9 var(--serif); font-stretch: 62.5%; overflow: hidden; padding-bottom: .08em; }
.intro-name span, .intro-name em { display: inline-block; }
.intro-count { color: var(--grey); }

/* ---------- cursor ---------- */
.cursor { position: fixed; z-index: 140; top: 0; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); pointer-events: none; display: none; place-items: center; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background-color .3s; }
.has-cursor .cursor { display: grid; }
.cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--ink); }
.cursor.is-invert { background: var(--bg); }
.cursor-label { font: 500 .6875rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .25s; }
.cursor.is-label .cursor-label { opacity: 1; }
.cursor.is-invert .cursor-label { color: var(--ink); }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 100; top: 14px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); width: min(760px, calc(100% - 24px)); padding: 6px 6px 6px 18px; border: 1px solid rgba(13, 13, 13, .07); border-radius: 999px; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); transition: translate .5s var(--ease), background-color .4s; }
.nav.is-hidden { translate: -50% -140%; }
.nav-brand { display: flex; align-items: center; gap: 10px; font: 500 .9375rem/1 var(--sans); white-space: nowrap; }
.nav-links { display: flex; gap: clamp(14px, 2vw, 26px); margin-left: auto; font-size: .875rem; }
.nav-links a { position: relative; padding-block: 6px; color: var(--ink-2); }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-menu { display: none; margin-left: auto; }
.menu { position: fixed; inset: 0; z-index: 90; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; justify-content: space-between; padding: 96px var(--pad) 32px; background: var(--bg); }
.menu nav { display: grid; }
.menu nav a { display: flex; align-items: baseline; gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--line); font: 300 clamp(2.75rem, 12vw, 4.5rem)/1 var(--serif); font-stretch: 62.5%; }
.menu nav .label { color: var(--grey); }
.menu-foot { display: grid; gap: 8px; color: var(--grey); }

/* ---------- light through blinds (Canva-like window shadows) ---------- */
.hero-light, .contact-light { position: absolute; inset: -20%; z-index: 0; pointer-events: none; opacity: .55;
  background:
    repeating-linear-gradient(115deg, transparent 0 5%, rgba(0, 0, 0, .035) 10% 12%, transparent 17% 22%),
    radial-gradient(60% 50% at 70% 20%, rgba(255, 238, 210, .55), transparent 70%);
  animation: blinds 18s ease-in-out infinite alternate; will-change: transform; }
.contact-light { animation: none; }
.hero.is-off .hero-light { animation-play-state: paused; }
@keyframes blinds { from { transform: translate3d(-3%, -2%, 0) rotate(-1deg); } to { transform: translate3d(3%, 2%, 0) rotate(1deg); } }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; background: var(--bg); }
.hero-meta { position: absolute; z-index: 3; top: 96px; left: var(--pad); right: var(--pad); display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.hero-meta-r { text-align: right; }
.hero-title { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; justify-content: center; padding-inline: var(--pad); pointer-events: none;
  font: 300 clamp(5rem, 1rem + 19vw, 21rem)/.8 var(--serif); font-stretch: 62.5%; letter-spacing: -.02em; color: #fff; mix-blend-mode: difference; }
.hero-line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-line-b { text-align: right; }
.hl-inner { display: inline-block; }
/* The media layer is always full-bleed; a clip-path frames it as a small print in the centre.
   JS animates the clip open to full screen on scroll (no layout work, GPU only). */
.hero-media { --w: clamp(200px, 24vw, 360px); position: absolute; z-index: 2; inset: 0; overflow: hidden;
  clip-path: inset(calc(50% - var(--w) * .6667) calc(50% - var(--w) / 2) round var(--radius)); }
@media (max-width: 560px) { .hero-media { --w: 56vw; } }
.hero-media .hm { width: 100%; height: 100%; object-fit: cover; object-position: 58% 55%; }
.hero-quote { position: absolute; inset: auto 0 0 0; display: grid; gap: 12px; padding: clamp(20px, 4vw, 56px); color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); }
.hero-quote .label { color: rgba(255, 255, 255, .8); }
.hero-quote-text { max-width: 30ch; font: 300 italic clamp(1.5rem, 1rem + 2vw, 2.75rem)/1.05 var(--serif); font-stretch: 62.5%; }
.hero-scroll { position: absolute; z-index: 3; left: 50%; bottom: 22px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--grey); }
.hero-scroll-line { width: 1px; height: 44px; background: linear-gradient(var(--ink) 50%, var(--line) 50%); background-size: 1px 200%; animation: scrollcue 2.2s var(--ease) infinite; }
@keyframes scrollcue { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; background: var(--ink); color: var(--bg); padding-block: clamp(14px, 1.6vw, 22px); }
.marquee-track { display: flex; width: max-content; animation: marq 45s linear infinite; }
.gsap-on .marquee-track { animation: none; }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee-track span { flex: none; font: 300 italic clamp(1.75rem, 1rem + 2.6vw, 3.5rem)/1 var(--serif); font-stretch: 62.5%; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--accent); padding-inline: .35em; font-size: .7em; vertical-align: .12em; }

/* ---------- statement ---------- */
.statement { position: relative; display: grid; grid-template-columns: 38% 1fr; padding: clamp(96px, 14vw, 220px) var(--pad); row-gap: clamp(48px, 6vw, 96px); }
.axis { position: absolute; top: 0; bottom: 0; left: calc(38% + var(--pad) * .38); width: 1px; background: var(--ink); transform-origin: top; }
.statement-label { grid-column: 1; padding-right: 24px; text-align: right; color: var(--grey); padding-top: .9em; }
.statement-text { grid-column: 2; padding-left: clamp(20px, 3vw, 48px); max-width: 22ch; font: 500 clamp(1.75rem, 1rem + 2.8vw, 3.9rem)/1.06 var(--sans); letter-spacing: -.035em; }
.statement-text em { font: 300 italic 1.12em/1 var(--serif); font-stretch: 62.5%; letter-spacing: 0; }
.statement-foot { grid-column: 2; padding-left: clamp(20px, 3vw, 48px); display: grid; gap: 14px; }
.statement-foot .label { color: var(--grey); }
.clients { display: flex; flex-wrap: wrap; gap: 8px; }
.clients li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; }

/* ---------- work ---------- */
.work { padding: 0 var(--pad) clamp(80px, 10vw, 160px); }
.work-head { display: grid; gap: 22px; padding-bottom: clamp(48px, 6vw, 96px); }
.work-head .label { color: var(--grey); }
.project { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); padding-block: clamp(28px, 3vw, 44px) clamp(56px, 7vw, 110px); border-top: 1px solid var(--ink); }
.project-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.project-flip .project-info { order: 2; }
.project-info { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.project-info > .label:first-child { color: var(--grey); }
.project-title { font: 300 clamp(3rem, 1rem + 5.4vw, 8rem)/.84 var(--serif); font-stretch: 62.5%; letter-spacing: -.015em; text-transform: uppercase; }
.project-title em { text-transform: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 500 .6875rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; }
.project-text { max-width: 36ch; color: var(--ink-2); }
.project-info .pill { margin-top: auto; }
.project-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 20px); align-items: start; cursor: pointer; text-align: left; }
.project-media .pm-frame:nth-child(2) { margin-top: clamp(40px, 7vw, 120px); }
.project-media-wide { grid-template-columns: 1fr; }
.pm-frame { display: block; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.pm-frame img { width: 100%; transition: scale 1.2s var(--ease); }
@media (hover: hover) { .project-media:hover .pm-frame img { scale: 1.04; } }
.has-cursor .project-media, .has-cursor .film, .has-cursor .contact-mail { cursor: none; }

.stat { font: 300 clamp(3.5rem, 2rem + 5vw, 7rem)/.9 var(--serif); font-stretch: 62.5%; font-variant-numeric: lining-nums tabular-nums; }
.stat + .label { color: var(--grey); margin-top: -8px; }
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; justify-self: end; width: 100%; gap: clamp(12px, 1.6vw, 24px); align-items: start; }
.phone { position: relative; overflow: hidden; aspect-ratio: 9 / 18.5; border-radius: clamp(18px, 2.4vw, 34px); border: clamp(4px, .5vw, 7px) solid var(--ink); background: var(--ink); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.phone-b { margin-top: clamp(40px, 6vw, 100px); }
.phone-c { margin-top: clamp(16px, 2.5vw, 40px); }

/* ---------- film strip ---------- */
.strip { position: relative; background: var(--dark); color: #f2efe9; }
.strip-pin { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(88px, 10vh, 120px) 0 28px; overflow: hidden; }
.strip-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 32px; padding-inline: var(--pad); }
.strip-head .label { grid-column: 1 / -1; color: rgba(242, 239, 233, .55); }
.strip-head .display-l { font-size: clamp(2.75rem, 1.5rem + 5vw, 7rem); }
.strip-sub { max-width: 28ch; color: rgba(242, 239, 233, .7); }
.film { position: relative; align-self: center; margin-top: clamp(24px, 4vh, 48px); padding-block: 26px; overflow-x: auto; scrollbar-width: none; background: #050505; }
.film::-webkit-scrollbar { display: none; }
.film::before, .film::after { content: ''; position: absolute; left: 0; right: 0; height: 12px; background: radial-gradient(circle at 50% 50%, #1e1e1e 0 3px, transparent 3.5px) 0 0 / 22px 12px repeat-x; pointer-events: none; z-index: 1; }
.film::before { top: 7px; } .film::after { bottom: 7px; }
.film-track { display: flex; gap: 14px; width: max-content; padding-inline: var(--pad); }
.frame { position: relative; flex: none; height: clamp(260px, 52vh, 560px); }
.frame img, .frame video { height: 100%; width: auto; border-radius: 2px; object-fit: cover; }
.frame.f-v { aspect-ratio: 9 / 13; } .frame.f-h { aspect-ratio: 4 / 3; } .frame.f-s { aspect-ratio: 1; }
.frame-video { aspect-ratio: 16 / 9 !important; }
.frame img, .frame video { width: 100%; }
.frame figcaption { position: absolute; left: 0; right: 0; bottom: -22px; display: flex; justify-content: space-between; font: 600 .625rem/1 var(--sans); letter-spacing: .2em; color: var(--film); }
.strip-progress { margin: 28px var(--pad) 0; height: 1px; background: rgba(242, 239, 233, .18); }
.strip-progress span { display: block; height: 100%; background: #f2efe9; transform-origin: left; transform: scaleX(0); }

/* ---------- about ---------- */
.about { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto; column-gap: clamp(12px, 1.6vw, 24px); padding: clamp(120px, 14vw, 220px) var(--pad); overflow: hidden; }
.about-word { font: 300 clamp(9rem, 4rem + 22vw, 30rem)/.74 var(--serif); font-stretch: 62.5%; letter-spacing: -.03em; }
.about-word-a { grid-column: 1 / 5; grid-row: 1 / 3; align-self: start; }
.about-word-b { grid-column: 8 / 13; grid-row: 2; align-self: end; text-align: right; z-index: 2; mix-blend-mode: difference; color: #fff; }
.about-photo { grid-column: 4 / 9; grid-row: 1 / 3; overflow: hidden; border-radius: 999px 999px var(--radius) var(--radius); aspect-ratio: 3 / 4; align-self: start; margin-top: clamp(40px, 6vw, 100px); }
.about-photo img { width: 100%; height: 115%; object-fit: cover; object-position: 30% 50%; }
.about-copy { grid-column: 9 / 13; grid-row: 1; display: grid; gap: 22px; align-self: start; padding-top: clamp(20px, 4vw, 60px); }
.about-copy .label { color: var(--grey); }
.about-lead { font: 300 italic clamp(1.75rem, 1rem + 2.2vw, 3rem)/1.02 var(--serif); font-stretch: 62.5%; }
.about-text { color: var(--ink-2); max-width: 40ch; }
.about-do { grid-column: 1 / 13; grid-row: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 96px); border-top: 1px solid var(--ink); }
.about-do li { display: grid; gap: 10px; padding: 18px 16px 0 0; font: 300 clamp(1.75rem, 1rem + 2vw, 3rem)/1 var(--serif); font-stretch: 62.5%; }
.about-do li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.about-do .label { color: var(--grey); }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 96px); padding: clamp(96px, 10vw, 160px) var(--pad); background: var(--sand); }
.vertical-word { writing-mode: vertical-rl; transform: rotate(180deg); align-self: start; font: 400 clamp(5rem, 2rem + 10vw, 14rem)/.8 var(--serif); font-stretch: 62.5%; text-transform: uppercase; letter-spacing: -.01em; position: sticky; top: 90px; }
.services-body { display: grid; gap: 28px; align-content: start; }
.services-body > .label { color: var(--grey); }
.services-intro { max-width: 46ch; font-size: 1.125rem; color: var(--ink-2); }
.acc { border-top: 1px solid var(--ink); margin-top: 12px; }
.acc-item { border-bottom: 1px solid rgba(13, 13, 13, .2); }
.acc-item summary { display: grid; grid-template-columns: 48px 1fr auto 28px; align-items: center; gap: 16px; padding-block: clamp(18px, 2vw, 28px); list-style: none; cursor: pointer; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-num { color: var(--grey); }
.acc-title { font: 300 clamp(1.75rem, 1rem + 2.4vw, 3.25rem)/1 var(--serif); font-stretch: 62.5%; transition: transform .5s var(--ease); }
@media (hover: hover) { .acc-item summary:hover .acc-title { transform: translateX(10px); } }
.acc-price { font-size: .9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acc-icon { position: relative; width: 18px; height: 18px; justify-self: end; }
.acc-icon::before, .acc-icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); transition: transform .45s var(--ease); }
.acc-icon::after { transform: rotate(90deg); }
.acc-item[open] .acc-icon::after { transform: rotate(0); }
.acc-body { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding: 0 0 28px 64px; overflow: hidden; }
.acc-body p { max-width: 42ch; color: var(--ink-2); }
.acc-body img { width: clamp(110px, 14vw, 190px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

.packages { margin-top: clamp(48px, 6vw, 96px); display: grid; gap: 20px; }
.packages > .label { color: var(--grey); }
.pkg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.pkg { display: flex; flex-direction: column; gap: 14px; padding: 26px clamp(14px, 2vw, 30px) 30px; }
.pkg + .pkg { border-left: 1px solid rgba(13, 13, 13, .2); }
.pkg:first-child { padding-left: 0; }
.pkg .label { color: var(--grey); }
.pkg-name { font: 300 clamp(2.25rem, 1.5rem + 2vw, 3.5rem)/.95 var(--serif); font-stretch: 62.5%; }
.pkg-price { font: 500 clamp(1.5rem, 1rem + 1.4vw, 2.25rem)/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pkg-price small { font-size: .5em; letter-spacing: .02em; color: var(--grey); font-weight: 400; }
.pkg ul { display: grid; gap: 6px; color: var(--ink-2); font-size: .9375rem; padding-bottom: 8px; }
.pkg ul li::before { content: '— '; color: var(--grey); }
.pkg .pill { margin-top: auto; align-self: flex-start; }
.pkg-rec { background: var(--bg); border-radius: 0 0 var(--radius) var(--radius); padding-left: clamp(14px, 2vw, 30px); }
.rec-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }

/* ---------- process (dark) ---------- */
.process { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 5vw, 96px); padding: clamp(96px, 10vw, 160px) var(--pad); background: var(--dark); color: #f2efe9; overflow: hidden; }
.process-list > .label { color: rgba(242, 239, 233, .55); }
.process ol { margin-top: 28px; border-top: 1px solid rgba(242, 239, 233, .25); }
.process li { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px 24px; align-items: baseline; padding-block: clamp(22px, 2.6vw, 36px); border-bottom: 1px solid rgba(242, 239, 233, .25); }
.process li .label { color: var(--film); }
.process h3 { font: 300 clamp(2rem, 1rem + 3vw, 4rem)/.95 var(--serif); font-stretch: 62.5%; text-transform: uppercase; }
.process li p { color: rgba(242, 239, 233, .72); max-width: 40ch; }
.vertical-word-r { transform: none; color: #f2efe9; }

/* ---------- contact ---------- */
.contact { position: relative; display: grid; justify-items: center; gap: clamp(20px, 2.4vw, 32px); padding: clamp(120px, 14vw, 220px) var(--pad) clamp(80px, 10vw, 140px); text-align: center; overflow: hidden; isolation: isolate; }
.contact > *:not(.contact-light) { position: relative; z-index: 1; }
.contact > .label { color: var(--grey); }
.contact-title { font: 300 clamp(3rem, 1.5rem + 6.5vw, 9rem)/.86 var(--serif); font-stretch: 62.5%; letter-spacing: -.015em; }
.contact-mail { position: relative; font: 500 clamp(1.25rem, .8rem + 2.4vw, 3rem)/1.1 var(--sans); letter-spacing: -.035em; overflow-wrap: anywhere; }
.contact-mail::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--ink); transform: scaleX(.18); transform-origin: left; transition: transform .7s var(--ease); }
@media (hover: hover) { .contact-mail:hover::after { transform: scaleX(1); } }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.copy-status { color: var(--grey); min-width: 1ch; }
.inquiry { width: min(820px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; margin-top: 24px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .8); text-align: left; }
.js .inquiry:not(.is-open) { display: none; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field .label { color: var(--grey); }
.field input, .field textarea { width: 100%; min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid #bdbdbd; background: transparent; font-size: 1.0625rem; resize: none; transition: border-color .3s; }
.field textarea { field-sizing: content; min-height: 80px; }
.field :is(input, textarea):focus { outline: 0; border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 12px; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid #cfcfcf; border-radius: 999px; font-size: .8125rem; transition: all .3s var(--ease); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.submit { justify-self: start; min-height: 50px; padding-inline: 26px; }
.form-note { grid-column: 1 / -1; color: var(--grey); }
.form-note:empty { display: none; }

/* ---------- footer ---------- */
.footer { padding: 0 var(--pad) 0; border-top: 1px solid var(--ink); overflow: hidden; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 18px; color: var(--grey); }
.footer-row a:hover { color: var(--ink); }
.footer-name { font: 300 clamp(4rem, 1rem + 15.5vw, 19rem)/.78 var(--serif); font-stretch: 62.5%; letter-spacing: -.03em; white-space: nowrap; margin-bottom: -.1em; text-align: center; }

/* ---------- case overlay ---------- */
.case { position: fixed; inset: 0; z-index: 120; background: var(--bg); display: grid; grid-template-rows: auto 1fr; }
.case-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--pad); border-bottom: 1px solid var(--line); }
.case-count { color: var(--grey); }
.case-scroll { overflow-y: auto; overscroll-behavior: contain; padding: clamp(40px, 6vw, 96px) var(--pad) 0; }
.case-head { display: grid; gap: 22px; max-width: 1100px; padding-bottom: clamp(40px, 6vw, 96px); }
.case-tags { color: var(--grey); }
.case-title { font: 300 clamp(3.5rem, 1.5rem + 8vw, 11rem)/.84 var(--serif); font-stretch: 62.5%; letter-spacing: -.02em; }
.case-text { max-width: 52ch; font-size: 1.125rem; color: var(--ink-2); }
.case-gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); align-items: start; }
.case-gallery figure { overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.case-gallery figure img, .case-gallery figure video { width: 100%; }
.case-gallery .g-l { grid-column: span 12; } .case-gallery .g-m { grid-column: span 7; } .case-gallery .g-s { grid-column: span 5; } .case-gallery .g-t { grid-column: span 4; }
.case-gallery figcaption { padding: 10px 2px 0; font: 500 .6875rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); background: var(--bg); }
.case-next { display: grid; justify-items: start; gap: 10px; width: 100%; margin-top: clamp(64px, 8vw, 128px); padding: 32px 0 48px; border-top: 1px solid var(--ink); text-align: left; }
.case-next .label { color: var(--grey); }
.case-next-title { font: 300 clamp(3rem, 1.5rem + 6vw, 8rem)/.86 var(--serif); font-stretch: 62.5%; transition: transform .6s var(--ease); }
@media (hover: hover) { .case-next:hover .case-next-title { transform: translateX(16px); } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-menu { display: inline-flex; }
  .hero-meta { grid-template-columns: 1fr 1fr; top: 84px; }
  .hero-meta p:nth-child(2) { display: none; }
  .statement { grid-template-columns: 1fr; padding-left: calc(var(--pad) + 24px); }
  .axis { left: var(--pad); }
  .statement-label { text-align: left; padding: 0; }
  .statement-text, .statement-foot { grid-column: 1; padding-left: 0; }
  .project, .project-flip { grid-template-columns: 1fr; }
  .project-flip .project-info { order: 0; }
  .project-info .pill { margin-top: 4px; }
  .strip-head { grid-template-columns: 1fr; }
  .about { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 28px; }
  .about-word-a { grid-column: 1 / 4; grid-row: 1; }
  .about-photo { grid-column: 2 / 7; grid-row: 1 / 3; margin-top: 30%; }
  .about-word-b { grid-column: 1 / 7; grid-row: 3; text-align: left; margin-top: -.5em; }
  .about-copy { grid-column: 1 / 7; grid-row: 4; }
  .about-do { grid-column: 1 / 7; grid-row: 5; grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .about-do li:nth-child(3) { padding-left: 0; border-left: 0; }
  .services { grid-template-columns: 1fr; }
  .vertical-word { writing-mode: horizontal-tb; transform: none; position: static; font-size: clamp(4.5rem, 20vw, 8rem); }
  .acc-item summary { grid-template-columns: 36px 1fr 24px; }
  .acc-price { grid-column: 2; grid-row: 2; color: var(--grey); }
  .acc-icon { grid-column: 3; grid-row: 1; }
  .acc-body { grid-template-columns: 1fr; padding-left: 52px; }
  .pkg-grid { grid-template-columns: 1fr; }
  .pkg, .pkg:first-child { padding: 24px 0; border-left: 0 !important; border-bottom: 1px solid rgba(13, 13, 13, .2); }
  .pkg-rec { padding-inline: 18px; border-radius: var(--radius); order: -1; }
  .process { grid-template-columns: 1fr; }
  .process .vertical-word-r { order: -1; }
  .process li { grid-template-columns: 52px 1fr; }
  .process li p { grid-column: 2; }
  .inquiry { grid-template-columns: 1fr; }
  .case-gallery .g-m, .case-gallery .g-s { grid-column: span 12; }
  .case-gallery .g-t { grid-column: span 6; }
}
@media (max-width: 560px) {
  .phones { grid-template-columns: 1fr 1fr; }
  .phone-c { display: none; }
  .frame { height: 54vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .hero-light, .contact-light { animation: none; }
}

/* SplitText masks: give descenders, diacritics and italics room to breathe */
.ln-mask, .ch-mask { padding: .08em .04em .16em; margin: -.08em -.04em -.16em; }
.wd { white-space: nowrap; }
.case-gallery video { height: auto; }
@media (max-width: 560px) {
  .hero-title { font-size: 27vw; }
  .hero-line-b { margin-top: .05em; }
}

/* film gate: crops the drifting image, caption stays outside on the film edge */
.frame-gate { display: block; height: 100%; overflow: hidden; border-radius: 2px; }
.frame-gate > * { height: 100%; width: 100%; object-fit: cover; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the giant footer name must never sit on top of the links above it */
.footer-row { position: relative; z-index: 2; }
.footer-name { position: relative; z-index: 1; pointer-events: none; }
.film { user-select: none; -webkit-user-select: none; } .film.is-dragging .frame-gate > * { pointer-events: none; }

/* hero compositing hints: transform-only layers */
.hero-media, .hero-line { will-change: transform; }

/* process: heading sits first in the DOM (outline), visually on the right on desktop */
@media (min-width: 901px) { .process .vertical-word-r { order: 2; } }

/* where she works */
.areas { max-width: 40ch; font-size: 1.0625rem; color: var(--ink); }
.areas span { color: var(--grey); }
.statement-foot .label:not(:first-child) { margin-top: 14px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 96px); padding: clamp(96px, 10vw, 160px) var(--pad); }
.faq-head { display: grid; gap: 22px; align-content: start; }
.faq-head .label { color: var(--grey); }
.faq .acc { margin-top: 0; }
.faq .acc-item summary { grid-template-columns: 48px 1fr 28px; }
.faq .acc-title { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); }
.faq .acc-body { grid-template-columns: 1fr; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq .acc-item summary { grid-template-columns: 36px 1fr 24px; } }

/* touch devices: keep the hero scale buttery — skip the costliest compositing effects */
@media (hover: none), (pointer: coarse) {
  .nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .94); }
  .hero-light { animation: none; }
  .hero-media .hm { transform: translateZ(0); }
}

/* contact form: clean select instead of chips */
.select { position: relative; }
.select select { -webkit-appearance: none; appearance: none; width: 100%; min-height: 44px; padding: 8px 30px 8px 0; border: 0; border-bottom: 1px solid #bdbdbd; border-radius: 0; background: transparent; font: inherit; font-size: 1.0625rem; color: var(--ink); cursor: pointer; transition: border-color .3s; }
.select select:focus { outline: 0; border-color: var(--ink); }
.select select:focus-visible { box-shadow: 0 2px 0 var(--accent); }
.select select:has(option[value=""]:checked) { color: #9a9a9a; }
.select option { color: var(--ink); }
.select-ico { position: absolute; right: 2px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.field .opt { text-transform: none; letter-spacing: 0; color: var(--grey); font-weight: 400; }
.field ::placeholder { color: #9a9a9a; opacity: 1; }
.inquiry { row-gap: 30px; }
.submit:disabled { opacity: .6; cursor: progress; } .form-note a { text-decoration: underline; }

/* form validation */
.field-error { margin-top: 2px; font-size: .8125rem; line-height: 1.4; color: #b3261e; }
.field-error[hidden] { display: none; }
.field [aria-invalid] { border-bottom-color: #b3261e; }
.field [aria-invalid]:focus { border-bottom-color: #b3261e; box-shadow: 0 1px 0 #b3261e; }

/* ---------- cookie consent ---------- */
.cc-banner { position: fixed; z-index: 130; left: var(--pad); bottom: var(--pad); width: min(420px, calc(100% - 2 * var(--pad))); padding: 26px 26px 22px; border: 1px solid rgba(13, 13, 13, .08); border-radius: 18px; background: rgba(255, 255, 255, .96); box-shadow: 0 30px 80px -30px rgba(13, 13, 13, .35); opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.cc-banner.is-in { opacity: 1; transform: none; }
.cc-kicker { color: var(--grey); }
.cc-title { margin: 8px 0 10px; font: 300 clamp(2rem, 1.4rem + 1.6vw, 2.75rem)/.95 var(--serif); font-stretch: 62.5%; letter-spacing: -.01em; }
.cc-title em { font-style: italic; }
.cc-text { font-size: .9375rem; line-height: 1.55; color: var(--ink-2); }
.cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 20px; }
.cc-link { padding: 8px 4px; font: 500 .8125rem/1 var(--sans); color: var(--grey); text-decoration: underline; text-underline-offset: .3em; }
.cc-link:hover { color: var(--ink); }
.cc-modal { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 16px; background: rgba(13, 13, 13, 0); transition: background-color .35s var(--ease); }
.cc-modal.is-in { background: rgba(13, 13, 13, .35); }
.cc-panel { width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: auto; padding: clamp(22px, 4vw, 36px); border-radius: 20px; background: var(--bg); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.cc-modal.is-in .cc-panel { opacity: 1; transform: none; }
.cc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cc-head .label { color: var(--grey); }
.cc-close { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); transition: background-color .3s; }
.cc-close:hover { background: var(--sand); }
.cc-close svg, .cc-close .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.cc-list { margin-top: 18px; border-top: 1px solid var(--ink); }
.cc-cat { display: grid; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.cc-cat:first-child { cursor: default; }
.cc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cc-cat-name { font: 300 1.625rem/1 var(--serif); font-stretch: 62.5%; }
.cc-cat-text { font-size: .875rem; line-height: 1.55; color: var(--ink-2); }
.cc-always { color: var(--grey); }
.cc-switch { position: relative; flex: none; width: 46px; height: 26px; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cc-switch span { position: absolute; inset: 0; border-radius: 999px; background: #d9d6d0; transition: background-color .3s var(--ease); }
.cc-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .35s var(--ease); }
.cc-switch input:checked + span { background: var(--ink); }
.cc-switch input:checked + span::after { transform: translateX(20px); }
.cc-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.cc-modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 22px; }
html.cc-lock, html.cc-lock body { overflow: hidden; }
@media (max-width: 560px) {
  .cc-banner { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 20px 18px 16px; }
  .cc-actions .pill { flex: 1 1 auto; justify-content: center; }
  .cc-modal { place-items: end center; padding: 8px; }
  .cc-panel { border-radius: 20px 20px 14px 14px; }
  .cc-modal-actions .pill { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .cc-banner, .cc-panel, .cc-modal { transition: none; } }
