/* ==========================================================================
   Girgit Labs — Different by design.
   Brand: Black #171717 · Off-white #F5F3EF · Sand brown #A68A64
   The page sits over a pinned film (js/film.js). All copy is light on dark:
   a constant veil, a brightness-following dim layer, and frosted .glass panels
   keep it readable over every frame.
   ========================================================================== */

:root {
  --black: #171717;
  --night: #0b0c0a;
  --white: #f5f3ef;
  --fg: #f5f3ef;
  --fg-2: rgba(245, 243, 239, 0.8);
  --fg-3: rgba(245, 243, 239, 0.6);
  --sand: #a68a64;
  --sand-light: #cdb48c;     /* sand for text on dark (AA at every size) */
  --line: rgba(245, 243, 239, 0.18);
  --glass: rgba(13, 14, 11, 0.5);
  --glass-line: rgba(245, 243, 239, 0.12);

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hi: "Noto Serif Devanagari", "Nirmala UI", "Mangal", serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  --col: min(560px, 100%);   /* the copy column, kept to the left of the chameleon */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); background: var(--night); }
body {
  margin: 0;
  background: var(--night);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sand); color: var(--black); }
:focus-visible { outline: 2px solid var(--sand-light); outline-offset: 3px; border-radius: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--black); padding: 10px 16px; border-radius: 999px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- The film ---------- */
.film { position: fixed; inset: 0; z-index: 0; background: var(--night); overflow: hidden; }
.film__video {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 60% 50%;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.film.is-ready .film__video { opacity: 1; }
.film__dim { position: absolute; inset: 0; background: #080907; opacity: .2; }
/* constant wash: darker where the copy sits (left), and under the header */
.film__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 9, 7, .55) 0%, rgba(8, 9, 7, 0) 16%),
    linear-gradient(90deg, rgba(8, 9, 7, .78) 0%, rgba(8, 9, 7, .5) 34%, rgba(8, 9, 7, .12) 58%, rgba(8, 9, 7, 0) 72%),
    linear-gradient(0deg, rgba(8, 9, 7, .45) 0%, rgba(8, 9, 7, 0) 30%);
}
@media (max-aspect-ratio: 4/5) {
  .film__video { object-position: 50% 50%; }
  .film__veil { background: linear-gradient(180deg, rgba(8, 9, 7, .5) 0%, rgba(8, 9, 7, .25) 30%, rgba(8, 9, 7, .55) 62%, rgba(8, 9, 7, .82) 100%); }
}

main, .site-footer { position: relative; z-index: 1; }

/* frosted panel for any copy that needs more help */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid var(--glass-line);
  border-radius: 18px;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgba(13, 14, 11, .82); } }

/* soft focus: for copy that sits straight on the film. The film behind it darkens
   and blurs slightly, fading out at the edges, so there's no visible surface. */
.soft-focus { position: relative; isolation: isolate; }
.soft-focus::before {
  content: ""; position: absolute; inset: -18% -14%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(8, 9, 7, .72), rgba(8, 9, 7, .5) 55%, rgba(8, 9, 7, 0));
  -webkit-backdrop-filter: blur(8px) saturate(.85); backdrop-filter: blur(8px) saturate(.85);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.soft-focus .h2, .soft-focus p { text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 0 20px rgba(0, 0, 0, .45); }

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(46px, 7.2vw, 108px); line-height: 0.98; letter-spacing: -0.025em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.h2 {
  font-family: var(--f-display); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(38px, 5vw, 72px); line-height: 1.04; letter-spacing: -0.02em;
  max-width: 14ch; text-shadow: 0 2px 26px rgba(0, 0, 0, .35);
}
.lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--fg); }
.lead--accent { font-family: var(--f-display); font-style: italic; font-weight: 400; color: var(--sand-light); }
.muted { color: var(--fg-3); }
.eyebrow, .section-no {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sand-light); margin-bottom: 28px;
}
/* every section opens on the same rule: number and label over a line */
.section-no {
  display: flex; align-items: baseline; gap: 18px;
  max-width: var(--col);
  padding-bottom: 16px; margin-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.section-no__n { color: var(--fg); font-variant-numeric: tabular-nums; min-width: 2ch; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--white); --fg-b: var(--black); --bd: var(--white);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg-b);
  font-size: 15px; font-weight: 500; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn--sand { --bg: var(--sand); --fg-b: var(--black); --bd: var(--sand); }
.btn--sand:hover { --bg: var(--white); --bd: var(--white); }
.btn--ghost { --bg: rgba(13, 14, 11, .25); --fg-b: var(--white); --bd: rgba(245, 243, 239, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--ghost:hover { --bd: var(--white); --bg: rgba(13, 14, 11, .45); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--dark { --bg: var(--white); --fg-b: var(--black); --bd: var(--white); }
.btn--dark:hover { --bg: var(--sand); --bd: var(--sand); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* the chameleon button (js/buttons.js), on every primary button: it slides in from
   the right edge, the label eases left to make room, and its tongue sticks to the cursor. */
.btn--cham { position: relative; overflow: hidden; isolation: isolate; }
.btn-cham { position: absolute; inset: 0; pointer-events: none; }
.btn-cham__tongue { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transition: opacity .12s; }
.btn-cham__tongue path { fill: none; stroke: #b9695b; stroke-linecap: round; }
.btn-cham__tongue circle { fill: #a5584b; }
.btn-cham__body {
  position: absolute; right: -2px; bottom: 5px; width: 36px; height: 36px; overflow: visible;
  transform: translateX(48px) rotate(8deg); transform-origin: 80% 90%;
  transition: transform .42s cubic-bezier(.34, 1.4, .64, 1);
}
.btn--sm .btn-cham__body { width: 28px; height: 28px; right: -2px; bottom: 3px; }
.btn--cham.is-cham .btn-cham__body { transform: none; }
.btn__label { display: inline-block; transition: transform .45s var(--ease); }
.btn--cham.is-cham .btn__label { transform: translateX(-14px); }
.btn--sm.btn--cham.is-cham .btn__label { transform: translateX(-12px); }
.btn--cham.is-gulp .btn-cham__body { animation: bc-gulp .32s var(--ease); }
@keyframes bc-gulp { 40% { transform: scale(1.12, .92); } 100% { transform: none; } }
.bc-skin { fill: var(--bc, #171717); }
.bc-crest { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: .8; stroke-linecap: round; }
.bc-mouth { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: .8; stroke-linecap: round; }
.bc-eye { fill: #2e2b26; }
.bc-eye-ring { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: .6; }
.bc-pupil circle { fill: #0c0c0b; }
.bc-pupil .bc-glint { fill: #fff; }
.bc-pupil { transition: transform .15s linear; }

/* ---------- Hindi hover words ---------- */
/* Both strings share one grid cell, so the box keeps the wider width: no reflow. */
.hi {
  display: inline-grid; justify-items: start; align-items: baseline;
  cursor: pointer; color: var(--sand-light); line-height: 1.5; position: relative;
  -webkit-tap-highlight-color: transparent; user-select: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.hi > span { grid-area: 1 / 1; transition: opacity .45s var(--ease), transform .45s var(--ease), filter .45s var(--ease); }
.hi__hi { font-family: var(--f-hi); font-weight: 400; }
.hi__en { font-family: var(--f-display); font-style: italic; font-weight: 300; opacity: 0; transform: translateY(0.3em); filter: blur(4px); }
.hi.is-on .hi__hi { opacity: 0; transform: translateY(-0.3em); filter: blur(4px); }
.hi.is-on .hi__en { opacity: 1; transform: none; filter: none; }
@media (hover: hover) {
  .hi:hover .hi__hi { opacity: 0; transform: translateY(-0.3em); filter: blur(4px); }
  .hi:hover .hi__en { opacity: 1; transform: none; filter: none; }
}
.hi--accent { font-size: clamp(30px, 3.4vw, 46px); margin: 18px 0 26px; }
.hi--display { font-size: clamp(40px, 5vw, 70px); }
.hi--hint::after {
  content: "hover to translate"; position: absolute; left: 0; top: 100%;
  font: 500 11px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-3); white-space: nowrap; transition: opacity .4s;
}
@media (hover: none) { .hi--hint::after { content: "tap to translate"; } }
.hi--hint.hint-done::after { opacity: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; color: var(--fg);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled { background: rgba(11, 12, 10, .55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--glass-line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; }
.site-header.is-menu-open { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-menu-open .site-header__cta { opacity: 0; pointer-events: none; }
.site-header__cta { transition: opacity .3s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__icon { width: 22px; height: auto; filter: invert(1); }
.brand__word { width: 104px; height: auto; fill: var(--fg); }
/* the navigation lives behind a menu button at every size */
/* the overlay sits under the logo and the menu button, so both stay usable */
.brand, .nav__toggle { position: relative; z-index: 2; }
.site-header__actions { position: static; }
.site-header__actions { display: flex; align-items: center; gap: 18px; }
.nav__toggle {
  display: inline-flex; align-items: center; gap: 12px;
  height: 44px; padding: 0 4px 0 14px; margin-right: -4px;
  background: none; border: 0; cursor: pointer; color: var(--fg);
  font-size: 14px; font-weight: 500; letter-spacing: .04em;
}
.nav__toggle-bars { position: relative; width: 26px; height: 10px; }
.nav__toggle-bars::before, .nav__toggle-bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.nav__toggle-bars::before { top: 0; }
.nav__toggle-bars::after { top: 8.5px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { top: 4.25px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { top: 4.25px; transform: rotate(-45deg); }

.nav__list {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: clamp(6px, 1.4vh, 14px);
  padding: calc(var(--header-h) + 4vh) max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 8vh;
  background: rgba(11, 12, 10, .9); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.nav.is-open .nav__list { opacity: 1; visibility: visible; }
.nav__list li { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.nav.is-open .nav__list li { opacity: 1; transform: none; }
.nav.is-open .nav__list li:nth-child(2) { transition-delay: .04s; }
.nav.is-open .nav__list li:nth-child(3) { transition-delay: .08s; }
.nav.is-open .nav__list li:nth-child(4) { transition-delay: .12s; }
.nav.is-open .nav__list li:nth-child(5) { transition-delay: .16s; }
.nav.is-open .nav__list li:nth-child(6) { transition-delay: .22s; }
.nav__back-item { margin-bottom: clamp(14px, 3vh, 32px); }
.nav__back {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 14px; border-radius: 999px;
  background: rgba(245, 243, 239, .06); border: 1px solid var(--line); color: var(--fg-2);
  font-size: 14px; font-weight: 500; letter-spacing: .04em; cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.nav__back span { display: inline-block; transition: transform .35s var(--ease); }
.nav__back:hover, .nav__back:focus-visible { color: var(--fg); border-color: rgba(245, 243, 239, .5); background: rgba(245, 243, 239, .1); }
.nav__back:hover span { transform: translateX(-4px); }
.nav__list a:not(.btn) {
  display: inline-flex; align-items: baseline; gap: 22px; text-decoration: none; color: var(--fg-2);
  font-family: var(--f-display); font-weight: 300; font-size: clamp(44px, 7vw, 96px); line-height: 1.05; letter-spacing: -0.02em;
  transition: color .3s var(--ease), transform .45s var(--ease);
}
.nav__list a:not(.btn):hover, .nav__list a:not(.btn):focus-visible, .nav__list a.is-active { color: var(--fg); transform: translateX(10px); }
.nav__n { font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--sand-light); font-variant-numeric: tabular-nums; }
.nav__cta { margin-top: clamp(20px, 4vh, 40px); }
@media (max-width: 560px) {
  .site-header__cta { display: none; }        /* it's inside the menu */
  .nav__toggle-label { display: none; }
}

/* ---------- Sections (shared) ---------- */
/* Sections are tall on purpose: their scroll length is the film's running time. */
section { position: relative; }
.section-head { max-width: var(--col); margin-bottom: clamp(56px, 8vh, 96px); }
.section-head__body { color: var(--fg-2); max-width: 52ch; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }

/* ---------- 01 Hero · film 0–1.8s ---------- */
.hero { height: 170vh; }
.hero__stick {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; justify-content: center;
  /* dead centre of the screen, both ways */
  padding: 0;
  text-align: center;
}
/* a soft focus zone behind the centred copy: the film blurs and darkens there,
   fading out at the edges, so leaf highlights don't compete with the letters */
.hero__stick::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 62% 44% at 50% 50%, rgba(8, 9, 7, .74) 0%, rgba(8, 9, 7, .5) 50%, rgba(8, 9, 7, 0) 100%);
  -webkit-backdrop-filter: blur(7px) saturate(.85);
  backdrop-filter: blur(7px) saturate(.85);
  -webkit-mask-image: radial-gradient(ellipse 60% 46% at 50% 50%, #000 0%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 46% at 50% 50%, #000 0%, #000 45%, transparent 100%);
}
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero__layer { will-change: transform, opacity; }
.hero .display { font-size: clamp(36px, 4.2vw, 64px); line-height: 1.06; max-width: 22ch; margin: 0 auto clamp(20px, 3vh, 32px); }
.hero__body { max-width: 820px; margin: 0 auto; color: rgba(245, 243, 239, .92); text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 0 22px rgba(0, 0, 0, .55); }
.hero__body .lead { font-size: clamp(18px, 1.5vw, 21px); margin-bottom: .8em; color: var(--fg); }
.hero .display { text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 0 36px rgba(0, 0, 0, .45); }
.hero__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: clamp(24px, 3.6vh, 36px); }
@media (max-height: 760px) { .hero .display { font-size: clamp(34px, 3.8vw, 54px); } .hero__body { font-size: 15.5px; } }
@media (max-width: 900px) {
  .hero__stick::before { background: radial-gradient(ellipse 95% 58% at 50% 50%, rgba(8, 9, 7, .78), rgba(8, 9, 7, 0) 100%); -webkit-mask-image: radial-gradient(ellipse 95% 58% at 50% 50%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 95% 58% at 50% 50%, #000 45%, transparent 100%); }
}
.film__video { will-change: transform; transform-origin: 50% 40%; }

/* ---------- 02 Services · film 1.8–5.6s ---------- */
/* A zig-zag of frosted glass cards down a central spine. The section's length is
   the film's running time (sunrise, the walk, the close-up), so the gaps are generous. */
.services { padding: 26vh 0 22vh; }

.services__head {
  max-width: 760px; margin: 0 auto clamp(90px, 14vh, 160px);
  text-align: center;
}
.services__head .h2 { max-width: none; margin: 0 auto; }
.services__head .hi--accent { justify-items: center; margin: 14px auto 18px; }
.services__head .hi--hint::after { left: 50%; transform: translateX(-50%); }
.services__head .section-head__body { margin: 0 auto; max-width: 56ch; color: rgba(245, 243, 239, .9); }

/* glass for the content cards (services, projects, the quote): tinted, bright edge */
.service, .wcard, .deck__card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .03) 45%, rgba(255, 255, 255, .06) 100%),
    rgba(12, 13, 10, .54);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 24px 60px rgba(0, 0, 0, .32);
}

.service-list { position: relative; display: flex; flex-direction: column; gap: 20vh; }
/* the spine */
.service-list::before {
  content: ""; position: absolute; left: 50%; top: -60px; bottom: -60px; width: 1px; transform: translateX(-50%);
  background: linear-gradient(transparent, rgba(245, 243, 239, .28) 8%, rgba(245, 243, 239, .28) 92%, transparent);
}
.service {
  --mx: 50%; --my: 0%;
  position: relative; width: calc(50% - clamp(36px, 5vw, 72px));
  padding: clamp(28px, 3vw, 40px) clamp(26px, 3vw, 40px) clamp(30px, 3vw, 42px);
  overflow: visible;
  transition: transform .6s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.service:nth-child(odd) { align-self: flex-start; }
.service:nth-child(even) { align-self: flex-end; }
/* a soft glint that follows the cursor across the glass */
.service::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .12), transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.service:hover::before { opacity: 1; }
.service:hover { transform: translateY(-4px); }
/* connector and node on the spine */
.service::after {
  content: ""; position: absolute; top: 56px; height: 1px; width: clamp(36px, 5vw, 72px);
  background: linear-gradient(90deg, rgba(245, 243, 239, .35), rgba(245, 243, 239, .1));
}
.service:nth-child(odd)::after { left: 100%; }
.service:nth-child(even)::after { right: 100%; transform: scaleX(-1); }
.service__no::after {
  content: ""; position: absolute; top: 51px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--night); border: 1px solid rgba(245, 243, 239, .5);
  transition: background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.service:nth-child(odd) .service__no::after { left: calc(100% + clamp(36px, 5vw, 72px) - 5.5px); }
.service:nth-child(even) .service__no::after { right: calc(100% + clamp(36px, 5vw, 72px) - 5.5px); }
.service.is-active { border-color: rgba(205, 180, 140, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 0 0 1px rgba(205, 180, 140, .12), 0 30px 70px rgba(0, 0, 0, .38); }
.service.is-active .service__no::after { background: var(--sand-light); border-color: var(--sand-light); box-shadow: 0 0 0 6px rgba(205, 180, 140, .15), 0 0 18px rgba(205, 180, 140, .6); }

.service__num {
  position: absolute; top: 14px; right: 24px; pointer-events: none;
  font-family: var(--f-display); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(72px, 8vw, 120px); line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(245, 243, 239, .16);
}
.service:nth-child(even) .service__num { right: auto; left: 24px; }
.service:nth-child(even) { text-align: right; }
.service__no { position: static; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--sand-light); margin-bottom: 22px; font-variant-numeric: tabular-nums; }
.service__no span { color: var(--fg-3); font-weight: 500; }
.service__title { position: relative; font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 10px; }
.service__tag { position: relative; font-weight: 600; margin-bottom: 12px; }
.service > p:last-child { position: relative; color: rgba(245, 243, 239, .9); }

@media (max-width: 900px) {
  .services__head { text-align: left; }
  .services__head .hi--accent { justify-items: start; margin-left: 0; }
  .services__head .hi--hint::after { left: 0; transform: none; }
  .services__head .h2, .services__head .section-head__body { margin-left: 0; }
  .service-list { gap: 16vh; padding-left: 34px; }
  .service-list::before { left: 10px; transform: none; }
  .service, .service:nth-child(even) { width: 100%; align-self: stretch; text-align: left; }
  .service::after, .service:nth-child(even)::after { left: auto; right: 100%; width: 24px; transform: scaleX(-1); }
  .service .service__no::after, .service:nth-child(even) .service__no::after { left: auto; right: calc(100% + 18px); }
  .service:nth-child(even) .service__num { left: auto; right: 24px; }
}

/* ---------- 03 Work · film 5.6–7.6s ---------- */
/* The section pins for its whole length; scrolling slides the strip sideways. */
.work { height: 320vh; }
.work__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 4vh, 44px);
  padding-top: var(--header-h);
}
.work__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(32px, 5vw, 80px); align-items: end;
}
.work__head .h2 { font-size: clamp(34px, 4vw, 58px); max-width: 12ch; }
.work__title .hi--accent { margin: 12px 0 0; font-size: clamp(26px, 2.6vw, 38px); }
.work__intro { color: rgba(245, 243, 239, .9); font-size: 16px; }

.work__viewport { position: relative; }
.work__track {
  --pad: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  display: flex; gap: clamp(14px, 1.6vw, 22px); width: max-content;
  padding: 0 var(--pad);
  will-change: transform;
}
.wcard {
  --mx: 50%; --my: 0%;
  position: relative; flex: 0 0 auto; width: clamp(250px, 22vw, 320px); height: clamp(330px, 46vh, 440px);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .6s var(--ease), border-color .5s var(--ease);
}
.wcard::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 255, 255, .12), transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.wcard:hover::before { opacity: 1; }
.wcard:hover { transform: translateY(-6px); border-color: rgba(205, 180, 140, .45); }
.wcard__art { flex: 1; margin: 10px 10px 0; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .08); background-color: rgba(8, 9, 7, .35); transition: transform 1s var(--ease); }
.wcard:hover .wcard__art { transform: scale(1.02); }
.wcard__art--1 { background-image: linear-gradient(rgba(245,243,239,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(245,243,239,.09) 1px, transparent 1px); background-size: 100% 26px, 26px 100%; }
.wcard__art--2 { background-image: radial-gradient(circle at 62% 42%, rgba(166,138,100,.7) 0 17%, transparent 17.5%), radial-gradient(circle at 62% 42%, transparent 0 27%, rgba(245,243,239,.14) 27.3% 27.8%, transparent 28.1%); }
.wcard__art--3 { background-image: repeating-linear-gradient(-35deg, rgba(245,243,239,.08) 0 14px, transparent 14px 28px); }
.wcard__art--4 { background-image: radial-gradient(rgba(245,243,239,.18) 1.5px, transparent 2px); background-size: 18px 18px; }
.wcard__art--5 { background-image: linear-gradient(135deg, rgba(166,138,100,.5), transparent 65%), linear-gradient(315deg, rgba(245,243,239,.08), transparent 50%); }
.wcard__art--6 { background-image: repeating-linear-gradient(0deg, rgba(245,243,239,.09) 0 8px, transparent 8px 22px); }
.wcard__body { position: relative; padding: 18px 22px 22px; }
.wcard__no { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--sand-light); font-variant-numeric: tabular-nums; }
.wcard__kind { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 1.8vw, 27px); line-height: 1.15; margin-bottom: 4px; }
.wcard__meta { margin: 0 0 14px; font-size: 14px; color: rgba(245, 243, 239, .8); }
.wcard__soon { margin: 0; display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 243, 239, .72); }
.wcard__soon span { font-size: 16px; letter-spacing: 0; transition: transform .4s var(--ease); }
.wcard:hover .wcard__soon span { transform: translateX(4px); }
.wcard--end { width: clamp(300px, 28vw, 400px); justify-content: flex-end; }
.wcard--end .wcard__body { padding: clamp(24px, 2.4vw, 34px); }
.wcard__end-title { font-family: var(--f-display); font-weight: 300; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.12; margin-bottom: 12px; }
.wcard__end-text { color: rgba(245, 243, 239, .85); font-size: 15px; margin-bottom: 24px; }

.work__progress { display: flex; align-items: center; gap: 18px; }
.work__count { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--fg-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.work__count-now { color: var(--fg); }
.work__bar { position: relative; flex: 1; max-width: 320px; height: 1px; background: rgba(245, 243, 239, .2); overflow: hidden; }
.work__bar-fill { position: absolute; inset: 0; background: var(--sand-light); transform-origin: left; transform: scaleX(0); }

/* no pinning without JS, or with reduced motion: a plain swipeable strip */
html:not(.js) .work, .work.is-static { height: auto; }
html:not(.js) .work__pin, .work.is-static .work__pin { position: static; height: auto; padding: 22vh 0; }
html:not(.js) .work__viewport, .work.is-static .work__viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
.work.is-static .wcard { scroll-snap-align: start; }

@media (max-width: 900px) {
  .work { height: 380vh; }
  .work__head { grid-template-columns: 1fr; gap: 12px; }
  .work__intro { font-size: 14px; line-height: 1.5; }
  .wcard { width: 74vw; height: clamp(250px, 36vh, 360px); }
  .wcard--end { width: 80vw; }
}
@media (max-height: 760px) {
  .work__intro { font-size: 14.5px; line-height: 1.5; }
  .work__head .h2 { font-size: clamp(30px, 3.4vw, 46px); }
  .wcard { height: 280px; }
}

/* ---------- 04 Testimonials · film 7.6–8.6s ---------- */
.testimonials { padding: 24vh 0 20vh; }
.testimonials__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.testimonials__head .h2 { font-size: clamp(34px, 4vw, 58px); max-width: 11ch; margin-bottom: 24px; }
.testimonials__body { color: rgba(245, 243, 239, .9); }
.testimonials__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.testimonials__pills { gap: 8px 22px; }
.testimonials__pills li { font-size: 14px; font-weight: 500; color: var(--fg); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.testimonials__pills li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sand-light); margin-right: 10px; vertical-align: 2px; }

/* one quote card */
.deck { position: relative; }
.deck__card {
  position: relative; margin: 0; max-width: 560px; margin-left: auto;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  min-height: 280px; padding: clamp(28px, 3vw, 42px);
  transition: border-color .5s var(--ease);
}
.deck__card--1:hover { border-color: rgba(205, 180, 140, .45); }
.deck__mark { font-family: var(--f-display); font-size: 96px; line-height: .55; height: 40px; color: var(--sand-light); }
.deck__card blockquote { margin: 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.25; color: var(--fg); }
.deck__line { display: block; height: 9px; border-radius: 5px; background: rgba(245, 243, 239, .14); width: 88%; }
.deck__line--short { width: 56%; }
.deck__who { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.deck__avatar { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: rgba(245, 243, 239, .1); border: 1px solid rgba(255, 255, 255, .14); }
.deck__lines { display: grid; gap: 8px; flex: 1; }
.deck__line--name { width: 42%; background: rgba(245, 243, 239, .2); }
.deck__line--role { width: 28%; }

@media (max-width: 900px) {
  .testimonials__grid { grid-template-columns: 1fr; }
  .deck__card { margin-left: 0; min-height: 240px; }
}

/* ---------- 05 About · film 8.6–9.9s ---------- */
/* One glass panel, two columns: the idea on the left, the thinking on the right. */
.about { padding: 24vh 0 22vh; }
.about__panel {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  max-width: 1120px; margin: 0 auto;
}
.about__head { padding: clamp(8px, 2vw, 24px) clamp(20px, 3vw, 40px) 0 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.about__head .h2 { font-size: clamp(34px, 3.8vw, 56px); max-width: 11ch; }
.about__head .hi--accent { margin: 0; }
.about__text { padding: clamp(8px, 2vw, 24px) 0 0 clamp(20px, 3vw, 40px); }
.about__text .lead { margin-bottom: .9em; }
.about__text .lead--accent { margin-bottom: 1.6em; }
.about__body { color: rgba(245, 243, 239, .9); }
@media (max-width: 900px) {
  .about__panel { grid-template-columns: 1fr; }
  .about__head, .about__text { padding: 0; }
  .about__head { gap: 18px; margin-bottom: 28px; }
}

/* ---------- 06 Contact · film 9.9–12s ---------- */
/* dusk: the frame is dark, so the form can take the right-hand side */
.contact { padding: 24vh 0 20vh; min-height: 120vh; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact .section-head { margin-bottom: 0; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; align-content: start; padding: clamp(26px, 3vw, 40px); position: relative; }
.form__hp { position: absolute; left: -9999px; }
.field { display: grid; gap: 10px; }
.field--full, .form__foot { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--sand-light); display: flex; justify-content: space-between; }
.field__opt { color: var(--fg-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0 12px; font-size: 18px; color: var(--fg); border-radius: 0;
  transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--sand-light); }
.field select option { color: var(--black); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--sand-light); border-bottom: 1.5px solid var(--sand-light); transform: translateY(-75%) rotate(45deg); pointer-events: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-bottom-color: #e0a184; }
.field__error { margin: 0; min-height: 1.2em; font-size: 13px; color: #eab39a; }
.form__foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 6px; }
.form__status { margin: 0; color: var(--sand-light); }
.form__status a { color: var(--fg); }
.form.is-sent .field, .form.is-sent .btn { display: none; }
.form.is-sent .form__status { font-family: var(--f-display); font-weight: 300; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; color: var(--fg); }

/* ---------- 07 Footer ---------- */
.site-footer { background: linear-gradient(rgba(11, 12, 10, 0), var(--night) 120px); padding: 120px 0 40px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding: 40px 0 56px; border-top: 1px solid var(--line); }
.footer__brand { display: flex; align-items: center; gap: 20px; }
.footer__icon { width: 44px; height: auto; filter: invert(1); }
.footer__name { font-family: var(--f-display); font-weight: 300; font-size: clamp(36px, 4vw, 56px); line-height: 1; margin: 0 0 6px; }
.footer__tagline { margin: 0; color: var(--sand-light); font-family: var(--f-display); font-style: italic; font-size: 20px; }
.footer__line { max-width: 34ch; color: var(--fg-3); margin: 0; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; }
.footer__nav, .footer__social { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__nav a, .footer__social a { text-decoration: none; color: var(--fg-3); transition: color .3s; }
.footer__nav a:hover, .footer__social a:hover { color: var(--fg); }
.footer__legal { margin: 0; color: var(--fg-3); }

/* ---------- Small screens: the copy takes the lower part of the frame ---------- */
@media (max-width: 900px) {
  :root { --col: 100%; }
  .contact__grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 48px; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .service { padding: 24px; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js:not(.js-ready) .reveal { animation: reveal-fallback .6s 2.5s forwards; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

/* ---------- Reduced motion ---------- */
@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; }
  .hi > span { filter: none !important; transform: none !important; }
}
