/* ============================================================
   Adrian Sy — agency portfolio
   Layout: ink-blob hero (paper) → about (ink-2) → pinned horizontal
   case studies (white) → services (ink) → clients (paper) →
   art studio (ink) → contact (white) → footer (ink).
   Brand red is used as an accent only, never as a full-section fill.
   Brand colour: Pantone 1925 C.
   ============================================================ */
:root {
  color-scheme: light;
  --paper: #f4f4f2;
  --white: #ffffff;
  --ink: #0d0d0f;
  --ink-2: #1a1a1d;
  --muted: #6b6b70;
  --line: #d6d6d2;
  --brand: #e0004d;      /* Pantone 1925 C */
  --brand-deep: #b8003f;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sub: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif; /* Gotham Condensed–style subheads */
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, .84, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  overflow-x: hidden; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
h1, h2, h3 { font-weight: 800; line-height: .95; letter-spacing: -.025em; text-wrap: balance; }
::selection { background: var(--brand); color: var(--white); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.label { font-family: var(--sub); font-size: .9rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.label--light { color: #9a9aa0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px;
  font-family: var(--display); font-weight: 700; font-size: .92rem; text-decoration: none;
  border: 1.5px solid transparent; border-radius: 0;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--brand); color: var(--white); }
.btn--brand { background: var(--brand); color: var(--white); }
.btn--brand:hover { background: var(--white); color: var(--ink); }
.btn--line-light { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn--line-light:hover { background: var(--white); color: var(--ink); }

/* ---------- Custom cursor (fine pointers only) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--ink); mix-blend-mode: normal;
  display: grid; place-items: center; opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .25s, opacity .25s;
}
.cursor span { font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--white); opacity: 0; transition: opacity .2s; }
.cursor.is-on { opacity: 1; }
.cursor.is-view { width: 52px; height: 52px; margin: -26px 0 0 -26px; background: var(--brand); }
.cursor.is-view span { opacity: 0; }
.cursor.is-blob { width: 22px; height: 22px; margin: -11px 0 0 -11px; background: var(--brand); }
html.has-cursor, html.has-cursor * { cursor: none !important; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  background: rgba(244, 244, 242, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), border-color .3s;
}
.nav.is-scrolled { border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.nav__logo b { font-weight: 900; font-variation-settings: "wdth" 115; letter-spacing: .01em; font-size: 1.05rem; }
.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__menu a { position: relative; text-decoration: none; font-weight: 600; font-size: .92rem; }
.nav__menu a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__menu a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__menu .nav__cta { background: var(--ink); color: var(--white); padding: 10px 18px; transition: background .25s, color .25s; }
.nav__menu .nav__cta:hover { background: var(--brand); color: var(--white); }
.nav__toggle { display: none; }

/* ============================================================
   HERO — minimal type over a liquid 3D ink blob with a blueprint lens (WebGL2, canvas fallback)
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 120px; padding-bottom: clamp(32px, 5vw, 64px);
}
.stage {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 92%);
}
.stage--annot { pointer-events: none; }
.hero { touch-action: pan-y pinch-zoom; }
.is-pulling, .is-pulling * { -webkit-user-select: none; user-select: none; cursor: grabbing; }
.hero__inner { position: relative; z-index: 1; width: 100%; will-change: transform, opacity; }
.hero__title {
  font-size: clamp(3rem, 7vw, 7.6rem); font-weight: 900; line-height: .9; letter-spacing: -.04em;
  font-variation-settings: "wdth" 84; margin: 20px 0 clamp(28px, 4vw, 48px);
}
.hero__title em { font-style: normal; color: var(--brand); }
.hl { display: block; overflow: hidden; padding-bottom: .05em; }
.hl > span { display: inline-block; }
.hero__foot {
  display: grid; grid-template-columns: minmax(0, 30ch) minmax(0, 30ch) 1fr; align-items: end; gap: 22px 48px;
  border-top: 1.5px solid var(--ink); padding-top: 22px;
}
.hero__role .label { display: block; margin-bottom: 8px; }
.hero__role p { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.hero__links { justify-self: end; }
.hero__links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero__link { font-weight: 700; font-size: .92rem; text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.hero__link:hover { color: var(--muted); border-color: var(--muted); }

/* hero entrance */
.js .hero-in { transform: translateY(110%); opacity: 0; }
.js .hero__foot.hero-in { transform: translateY(24px); }
.js .is-loaded .hero-in.hero-in { transform: none; opacity: 1; transition: transform 1.1s var(--ease) var(--d, 0s), opacity .7s var(--d, 0s); }

/* ============================================================
   STATEMENT — words fill in as you scroll
   ============================================================ */
.statement { background: var(--ink-2); color: var(--white); padding: clamp(90px, 11vw, 160px) 0; }
.statement .label { margin-bottom: 28px; color: #9a9aa0; display: flex; align-items: center; gap: 12px; }
.statement .label::before { content: ""; width: 28px; height: 3px; background: var(--brand); }
.scrub { font-size: clamp(1.8rem, 4.2vw, 3.7rem); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; max-width: 26ch; font-variation-settings: "wdth" 92; }
.scrub .w { opacity: .22; transition: opacity .2s linear, color .3s; }
.scrub .w.on { opacity: 1; }
.scrub .w.hi.on { color: var(--brand); }
.no-js .scrub .w { opacity: 1; }

/* ============================================================
   SECTION HEADS + split headings
   ============================================================ */
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .label { margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(2.4rem, 6.4vw, 5.6rem); font-variation-settings: "wdth" 90; max-width: 14ch; }
.sec-head--row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40ch); align-items: end; gap: 32px 56px; }
.sec-head__lede { max-width: 38ch; color: var(--muted); }

.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split .w > span { display: inline-block; }
.js .split .w > span { transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.js .split.is-in .w > span { transform: none; }

/* generic reveal */
.js .rv { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0s); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--ink); color: var(--white); padding: clamp(90px, 11vw, 160px) 0; }
.services .label { color: #9a9aa0; }
.svc { border-top: 1.5px solid var(--white); }
.svc__row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, .8fr); gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); isolation: isolate;
}
.svc__row::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); background: var(--brand); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.svc__row:hover::before { transform: scaleY(1); }
.svc__row h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-variation-settings: "wdth" 95; transition: transform .45s var(--ease); }
.svc__row:hover h3 { transform: translateX(14px); }
.svc__row p { color: #a3a3aa; max-width: 44ch; transition: color .3s; }
.svc__row:hover p { color: var(--white); }
.svc__tags { font-family: var(--sub); font-weight: 600; font-size: .86rem; text-transform: uppercase; letter-spacing: .04em; text-align: right; color: #a3a3aa; transition: color .3s; }
.svc__row:hover .svc__tags { color: var(--white); }

/* ============================================================
   WORK — pinned horizontal scroll
   ============================================================ */
.work { background: var(--white); }
.work__pin { position: relative; }
.work__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 3vw, 40px); padding: 80px 0 40px; }
.work__head { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.work__head .sec-head, .work__head h2 { margin: 0; }
.work__head h2 { font-size: clamp(2.4rem, 6vw, 5.2rem); font-variation-settings: "wdth" 90; margin-top: 14px; }
.work__progress { flex: 0 0 min(30vw, 280px); height: 3px; background: var(--line); }
.work__progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.work__track { display: flex; gap: clamp(18px, 2.4vw, 32px); padding: 0 var(--gutter); width: max-content; will-change: transform; }

.case { flex: 0 0 auto; width: clamp(300px, 34vw, 500px); text-decoration: none; color: inherit; }
.case__media { position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; background: var(--paper); }
.case__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1s var(--ease); }
.case:hover .case__media img { transform: scale(1.04); }
.js .case__media { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease); }
.js .case.is-in .case__media { clip-path: inset(0 0 0 0); }
.case__ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; }
.case__ph b { font-weight: 900; font-size: clamp(3rem, 7vw, 6rem); line-height: .85; letter-spacing: -.04em; font-variation-settings: "wdth" 70; }
.case__ph small { font-family: var(--sub); font-weight: 600; font-size: .86rem; text-transform: uppercase; letter-spacing: .06em; }
.case__ph--brand { background: var(--brand); color: var(--white); }
.case__ph--ink { background: var(--ink); color: var(--white); }
.case__ph--white { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.case__meta { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0 10px; border-bottom: 1px solid var(--line); font-family: var(--sub); font-weight: 600; font-size: .86rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.case h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); font-variation-settings: "wdth" 92; margin: 14px 0 8px; }
.case p { color: var(--muted); font-size: .94rem; max-width: 42ch; }
.case__more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .88rem; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }

/* ============================================================
   CLIENTS
   ============================================================ */
.clients { padding: clamp(90px, 11vw, 160px) 0; }

.client-list { columns: 4; column-gap: clamp(24px, 3vw, 48px); border-top: 1.5px solid var(--ink); }
.client {
  display: flex; align-items: baseline; gap: 14px; break-inside: avoid;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(.98rem, 1.15vw, 1.08rem); font-weight: 500; line-height: 1.3; color: var(--ink);
  transition: color .25s, padding-left .35s var(--ease);
}
.client__n { flex: none; font-family: var(--sub); font-weight: 600; font-size: .8rem; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .25s; }
.client:hover { color: var(--brand); padding-left: 6px; }
.client:hover .client__n { color: var(--brand); }
.js .client { opacity: 0; translate: 0 10px; transition: opacity .6s var(--ease), translate .7s var(--ease), color .25s, padding-left .35s var(--ease); transition-delay: var(--rd, 0s), var(--rd, 0s), 0s, 0s; }
.js .client.is-in { opacity: 1; translate: 0 0; }

/* ============================================================
   ART — dark band
   ============================================================ */
.art { background: var(--ink); color: var(--white); padding: clamp(90px, 11vw, 160px) 0; overflow: hidden; }
.art .sec-head h2 { color: var(--white); }
.art__side { max-width: 40ch; color: #b8b8be; }
.art__links { display: flex; flex-wrap: wrap; gap: 12px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; padding-top: 40px; padding-bottom: 40px; }
.gallery__col { display: flex; flex-direction: column; gap: 14px; will-change: transform; min-width: 0; }
.piece { position: relative; display: block; width: 100%; margin: 0; background: var(--ink-2); color: var(--white); overflow: hidden; }
.piece img { width: 100%; height: auto; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.js .piece img { opacity: 0; }
.js .piece img.is-loaded { opacity: 1; }
.js .piece > :first-child { clip-path: inset(0 0 100% 0); transition: clip-path .75s var(--ease) var(--rd, 0s), transform .8s var(--ease), opacity .4s; }
.js .piece.is-in > :first-child { clip-path: inset(0 0 0 0); }
.piece__title { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; text-align: left; font-family: var(--sub); font-weight: 600; font-size: .86rem; text-transform: uppercase; letter-spacing: .05em; background: var(--brand); color: var(--white); transform: translateY(102%); opacity: 0; transition: transform .35s var(--ease), opacity .2s; }
.piece:hover img { transform: scale(1.05); }
.piece:hover .piece__title { transform: none; opacity: 1; }
.piece:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.piece__ph { width: 100%; display: flex; align-items: flex-end; padding: 14px; font-weight: 800; font-size: 1.05rem; line-height: 1.05; font-variation-settings: "wdth" 85; color: #8d8d94; border: 1px solid #2c2c31; }

/* ============================================================
   CONTACT + FOOTER
   ============================================================ */
.contact { background: var(--white); color: var(--ink); padding: clamp(100px, 12vw, 180px) 0 clamp(60px, 8vw, 100px); border-top: 6px solid var(--brand); }
.contact__title .w:nth-last-child(-n+2) > span { color: var(--brand); }
.contact__title { font-size: clamp(2.8rem, 8vw, 7.4rem); font-variation-settings: "wdth" 85; max-width: 13ch; margin: 18px 0 clamp(40px, 6vw, 70px); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__card {
  position: relative; display: flex; flex-direction: column; gap: 40px; padding: 28px; text-decoration: none;
  color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate;
}
.contact__card::before { content: ""; position: absolute; inset: 0; background: var(--brand); z-index: -1; transform: translateY(101%); transition: transform .5s var(--ease); }
.contact__card b { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 800; line-height: 1; font-variation-settings: "wdth" 92; transition: color .3s; }
.contact__arrow { position: absolute; right: 26px; bottom: 22px; font-size: 2rem; transition: transform .45s var(--ease), color .3s; }
.contact__card:hover::before { transform: none; }
.contact__card:hover b, .contact__card:hover .label { color: var(--white); }
.contact__card:hover .contact__arrow { color: var(--white); transform: translateX(6px) rotate(-45deg); }
.socials { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 34px; }
.socials a { text-decoration: none; font-weight: 700; }
.socials a span { font-family: var(--mono); font-weight: 400; font-size: .8rem; color: var(--muted); margin-left: 6px; }
.contact__card .label { color: #9a9aa0; }
.socials a:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer { background: var(--ink); }
.footer__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; font-size: .86rem; color: #9a9aa0; }
.footer__row a { text-decoration: none; font-weight: 600; color: var(--white); }
.footer__row a:hover { color: var(--brand); }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .client-list { columns: 3; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .client-list { columns: 2; }
  .nav__toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 1.5px solid var(--ink); background: var(--white); cursor: pointer; z-index: 2; }
  .nav__toggle span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .35s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__menu { position: fixed; inset: 0; height: 100vh; height: 100svh; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding: 0 var(--gutter); background: var(--brand); clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease); }
  .nav.is-open .nav__menu { clip-path: inset(0 0 0 0); }
  .nav.is-open { background: var(--brand); }
  .nav.is-open .nav__logo, .nav.is-open .nav__menu a { color: var(--white); }
  .nav.is-open .nav__menu .nav__cta { background: var(--ink); }
  .nav__menu a { font-size: 2.6rem; font-weight: 900; font-variation-settings: "wdth" 85; letter-spacing: -.03em; }
  .nav__menu .nav__cta { font-size: 1.1rem; padding: 14px 22px; margin-top: 12px; letter-spacing: 0; }
  .nav__logo span { display: none; }
  .hero { padding-top: 96px; }
  .hero__title { font-size: clamp(2.5rem, 11.5vw, 4.4rem); }
  .hero__foot { grid-template-columns: 1fr; gap: 18px; }
  .hero__links { justify-self: start; }

  .sec-head--row { grid-template-columns: 1fr; }
  .svc__row { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .svc__tags { text-align: left; }

  .work__pin { height: auto !important; }
  .work__sticky { position: static; height: auto; padding: 90px 0 70px; }
  .work__progress { display: none; }
  .work__track { flex-direction: column; width: auto; transform: none !important; gap: 48px; }
  .case { width: 100%; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery__col { gap: 10px; }
  .piece__title { display: none; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .client-list { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .rv, .js .client, .js .hero-in, .js .split .w > span { opacity: 1 !important; transform: none !important; }
  .js .case__media, .js .piece > :first-child { clip-path: none !important; }
  .scrub .w { opacity: 1; }
}

/* ============================================================
   CASE STUDY + FORM PAGES
   Layout mirrors the original: client name left, project title
   and story right, then the photography, then the next project.
   ============================================================ */
.page-top { padding-top: clamp(120px, 14vw, 180px); padding-bottom: clamp(48px, 6vw, 80px); }
.crumb { display: inline-flex; gap: 10px; align-items: center; font-family: var(--sub); font-weight: 600; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; margin-bottom: clamp(28px, 4vw, 48px); }
.crumb:hover { color: var(--brand); }
.study { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.study__client { font-size: clamp(2.8rem, 6.4vw, 6rem); font-weight: 900; line-height: .9; letter-spacing: -.04em; font-variation-settings: "wdth" 84; }
.study__title { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variation-settings: "wdth" 90; margin-bottom: 22px; }
.study__body p { font-size: clamp(1rem, 1.15vw, 1.12rem); line-height: 1.75; color: #3a3a40; max-width: 64ch; }
.study__body p + p { margin-top: 1.1em; }
.study__credit { margin-top: 18px; font-style: italic; color: var(--muted); font-size: .92rem; }
.study__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; padding-top: 18px; border-top: 1.5px solid var(--ink); }
.study__meta div { display: flex; flex-direction: column; gap: 2px; }
.study__meta dt { font-family: var(--sub); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.study__meta dd { font-weight: 600; font-size: .95rem; }

.study-hero { padding-bottom: clamp(16px, 2vw, 24px); }
.study-hero__frame { overflow: hidden; background: var(--white); }
.study-hero__frame img { width: 100%; height: auto; max-height: 86vh; object-fit: cover; }
.js .study-hero__frame { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
.js .is-loaded .study-hero__frame { clip-path: inset(0 0 0 0); }

.shots { columns: 2; column-gap: clamp(12px, 1.6vw, 24px); padding-top: clamp(4px, 1vw, 12px); padding-bottom: clamp(60px, 8vw, 110px); }
.shot { break-inside: avoid; margin: 0 0 clamp(12px, 1.6vw, 24px); background: var(--white); overflow: hidden; }
.shot img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.js .shot { opacity: 0; translate: 0 30px; transition: opacity .8s var(--ease), translate .9s var(--ease); transition-delay: var(--rd, 0s); }
.js .shot.is-in { opacity: 1; translate: 0 0; }

.next { background: var(--ink); color: var(--white); }
.next a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; padding-top: clamp(60px, 8vw, 110px); padding-bottom: clamp(60px, 8vw, 110px); text-decoration: none; }
.next .label { color: #9a9aa0; display: block; margin-bottom: 14px; }
.next b { display: block; font-size: clamp(2.4rem, 6.4vw, 5.6rem); font-weight: 900; line-height: .92; letter-spacing: -.04em; font-variation-settings: "wdth" 84; transition: color .3s; }
.next small { display: block; margin-top: 12px; color: #a3a3aa; font-size: 1rem; }
.next__arrow { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1; transition: transform .45s var(--ease), color .3s; }
.next a:hover b, .next a:hover .next__arrow { color: var(--brand); }
.next a:hover .next__arrow { transform: translateX(10px); }

/* ---------- Forms ---------- */
.page-top.form-page { padding-bottom: clamp(70px, 9vw, 130px); }
.form-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.form-intro h1 { font-size: clamp(2.8rem, 6.4vw, 6rem); font-weight: 900; line-height: .9; letter-spacing: -.04em; font-variation-settings: "wdth" 84; }
.form-intro p { font-size: clamp(1rem, 1.15vw, 1.12rem); line-height: 1.75; color: #3a3a40; max-width: 60ch; }
.form-intro p + p { margin-top: 1em; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: clamp(40px, 5vw, 64px); padding-top: 32px; border-top: 1.5px solid var(--ink); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > label, .field legend { font-family: var(--sub); font-weight: 600; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.field .req { color: var(--brand); }
.field small { color: var(--muted); font-size: .85rem; }
.field input[type=text], .field input[type=email], .field input[type=url], .field input[type=date], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 0; padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(224, 0, 77, .18); }
.field fieldset { border: 0; display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); background: var(--white); font-size: .92rem; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.chip input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(224, 0, 77, .35); }
.chip:hover span { border-color: var(--ink); }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.form__foot .btn { border: 0; cursor: pointer; font-size: 1rem; padding: 17px 30px; }
.form__foot .btn:disabled { opacity: .6; cursor: progress; }
.form__status { font-size: .95rem; max-width: 60ch; }
.form__status.is-ok { color: #13834a; font-weight: 600; }
.form__status.is-error { color: var(--brand); font-weight: 600; }
.form__status.is-pending { color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; }

@media (max-width: 820px) {
  .study, .form-intro { grid-template-columns: 1fr; }
  .shots { columns: 1; }
  .form { grid-template-columns: 1fr; }
  .next a { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js .study-hero__frame { clip-path: none !important; }
  .js .shot { opacity: 1 !important; translate: none !important; }
}

/* ---------- Case study video + 4-column gallery ---------- */
.study-video { padding-bottom: clamp(12px, 1.6vw, 24px); }
.study-video__el { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--ink); object-fit: cover; }
.shots--4 { columns: 4; }
@media (max-width: 1100px) { .shots--4 { columns: 3; } }
@media (max-width: 820px) { .shots--4 { columns: 2; } }
.shots--1 { columns: 1; }

/* ---------- Case study campaign line (Eska) ---------- */
.statement-copy { background: var(--ink); color: var(--white); margin: clamp(12px, 1.6vw, 24px) 0; padding-top: clamp(80px, 11vw, 170px); padding-bottom: clamp(80px, 11vw, 170px); }
.statement-copy .label { color: #9a9aa0; display: flex; align-items: center; gap: 12px; }
.statement-copy .label::before { content: ""; width: 28px; height: 3px; background: var(--brand); }
.statement-copy__line { margin-top: clamp(20px, 3vw, 36px); font-size: clamp(3.2rem, 11vw, 10.5rem); font-weight: 900; line-height: .9; letter-spacing: -.045em; font-variation-settings: "wdth" 80; text-transform: uppercase; }
.statement-copy__line span { display: block; }
.statement-copy__line em { font-style: normal; color: var(--brand); }
