/* ==========================================================================
   Cardo Construction — concept site
   Brand: indigo #5051A3 · periwinkle #5F79BB · red #E4364B (from the mark)
   Type: Inter Tight throughout (accent words are the same face in periwinkle) · JetBrains Mono (drawing labels)
   ========================================================================== */

:root {
  --ink: #0A0B16;
  --ink-2: #10122A;
  --ink-3: #171A3A;
  --paper: #F2F0EA;
  --paper-2: #E7E4DB;
  --indigo: #5051A3;
  --peri: #5F79BB;
  --peri-lt: #A9B8EA;
  --red: #E4364B;
  --bp: #1A2157;
  --text: #EDEBF5;
  --muted: rgba(237, 235, 245, .58);
  --line: rgba(237, 235, 245, .12);
  --sans: "Inter Tight", "Avenir Next", Avenir, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
em { font-style: normal; font-weight: inherit; color: var(--peri-lt); }
::selection { background: var(--red); color: #fff; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.wrap { padding-inline: var(--gutter); max-width: 1680px; margin-inline: auto; }
.kicker { display: flex; align-items: center; gap: 14px; color: var(--muted); margin: 0 0 28px; font-weight: 400; }
.kicker .idx { color: var(--red); }
.kicker::after { content: ""; flex: 0 0 56px; height: 1px; background: currentColor; opacity: .5; }
.h2 {
  font-size: clamp(2.6rem, 6.4vw, 6.4rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.045em;
  margin: 0;
}
.h2 em { color: var(--peri-lt); }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: block; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--text); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; border-radius: 999px; background: var(--bg); color: var(--fg);
  font-weight: 500; letter-spacing: -.01em; overflow: hidden; isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--red); z-index: -1;
  transform: translateY(101%); border-radius: inherit; transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #fff; }
.btn svg { width: 20px; height: 20px; }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--lg { padding: 22px 36px; font-size: 18px; }
.btn--xl { padding: 26px 48px; font-size: clamp(18px, 1.5vw, 22px); gap: 16px; }
.btn--xl svg { width: 24px; height: 24px; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; }
.loader__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); z-index: -1; }
.loader__panel--a { top: 0; } .loader__panel--b { bottom: 0; }
.loader__grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; background-position: center;
  mask-image: radial-gradient(circle at center, #000 0, transparent 60%);
}
.loader__mark { width: 92px; height: 92px; position: relative; z-index: 1; overflow: visible; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; gap: 32px; padding: 18px var(--gutter);
  transition: transform .6s var(--ease), background .4s, backdrop-filter .4s;
}
.nav.is-scrolled { background: rgba(10, 11, 22, .6); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.nav__mark { width: 30px; height: 30px; transition: transform .8s var(--ease); }
.nav__brand:hover .nav__mark { transform: rotate(180deg); }
.nav__word { font-weight: 500; letter-spacing: .28em; font-size: 15px; line-height: 1; display: flex; flex-direction: column; gap: 4px; }
.nav__word small { font-weight: 400; letter-spacing: .22em; font-size: 10px; color: var(--muted); text-transform: uppercase; }
.nav__links { display: flex; gap: 34px; font-size: 14px; }
.nav__links a { position: relative; color: var(--muted); transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease); }
.nav__burger span:first-child { top: 18px; } .nav__burger span:last-child { top: 25px; }
.menu-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 400; background: var(--indigo);
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .9s var(--ease);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-size: clamp(2.6rem, 12vw, 5rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.08; }
.menu__cta { margin-top: auto; width: 100%; justify-content: center; }
.menu__foot { margin-top: 22px; color: rgba(255,255,255,.75); line-height: 2; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; will-change: clip-path, transform; background: #0A0B16 url(assets/video/hero-poster.jpg?v=3) center / cover; }
.hero__video, .hero__gl, .hero__skyline { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero__skyline { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; opacity: .92; filter: drop-shadow(0 0 8px rgba(169,184,234,.35)); }
.hero__skyline .sk-dims path { stroke: var(--red); stroke-width: 1.3; }
.hero__skyline .sk-text { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; fill: rgba(169,184,234,.9); stroke: none; opacity: 0; }
.has-gl .hero__video { opacity: 0; }
.hud-mode { color: var(--text); }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,11,22,.55) 0%, rgba(10,11,22,.1) 30%, rgba(10,11,22,.2) 55%, rgba(10,11,22,.92) 100%),
    linear-gradient(90deg, rgba(10,11,22,.65) 0%, transparent 60%);
}
.hero__content { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(40px, 8vh, 88px); max-width: 1100px; }
.hero__title {
  margin: 0; font-weight: 500; letter-spacing: -.055em; line-height: .88;
  font-size: clamp(3.2rem, 10.4vw, 11.5rem);
}
.hero__title .line > span { white-space: nowrap; }
.hero__title em { color: var(--peri-lt); }
.hero__lede { max-width: 560px; margin: 30px 0 0; color: rgba(237,235,245,.8); font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; }
.hero__cta { margin-top: 34px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn--ghost { --bg: transparent; --fg: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--red); }

/* ---------- intro ---------- */
.intro { padding: clamp(110px, 18vh, 200px) 0 clamp(80px, 12vh, 140px); }
.intro__statement {
  font-size: clamp(1.8rem, 4.1vw, 4.1rem); line-height: 1.08; letter-spacing: -.035em;
  font-weight: 400; margin: 0; max-width: 1400px; text-indent: 12vw;
}
.reveal-words .w { opacity: .14; text-indent: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(80px, 12vh, 140px); border-top: 1px solid var(--line); }
.stat { padding: 32px 24px 0 0; display: flex; flex-direction: column; gap: 14px; position: relative; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num { font-size: clamp(3rem, 6.5vw, 6.5rem); font-weight: 300; letter-spacing: -.05em; line-height: 1; }
.stat__num b { font-weight: 300; }
.stat__label { color: var(--muted); max-width: 220px; line-height: 1.6; font-size: 11px; }

/* ---------- brands marquee ---------- */
.brands { padding: 40px 0 clamp(90px, 14vh, 160px); overflow: hidden; }
.marquee { display: flex; overflow: hidden; user-select: none; }
.marquee__track { display: flex; align-items: center; gap: clamp(48px, 7vw, 110px); padding-right: clamp(48px, 7vw, 110px); flex-shrink: 0; will-change: transform; }
.marquee img { height: clamp(34px, 4vw, 52px); width: auto; opacity: .62; transition: opacity .3s; }
.marquee img:hover { opacity: 1; }
/* ---------- services ---------- */
.services { position: relative; background: var(--ink-2); }
.services__pin { height: 100vh; min-height: 640px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; gap: 36px; }
.services__head { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: end; row-gap: 0; }
.services__head .kicker { grid-column: 1 / -1; }
.services__head .h2 { font-size: clamp(2.4rem, 5vw, 5rem); }
.services__progress { width: 220px; height: 1px; background: var(--line); position: relative; margin-bottom: 14px; }
.services__progress i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); }
.services__track { display: flex; gap: 28px; padding-inline: var(--gutter); width: max-content; will-change: transform; }
.svc { width: clamp(300px, 34vw, 560px); flex: none; display: flex; flex-direction: column; gap: 22px; }
.svc__img { aspect-ratio: 4 / 3.1; overflow: hidden; border-radius: var(--radius); position: relative; }
.svc__img img { width: 118%; max-width: none; height: 100%; object-fit: cover; margin-left: -9%; transition: filter .6s; filter: saturate(.85); }
.svc:hover .svc__img img { filter: saturate(1.1); }
.svc__body { display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; }
.svc__n { color: var(--red); padding-top: 9px; }
.svc h3 { font-size: clamp(1.4rem, 2vw, 2rem); letter-spacing: -.03em; font-weight: 500; margin: 0 0 10px; }
.svc p { grid-column: 2; margin: 0; color: var(--muted); font-size: 15px; max-width: 420px; }

/* ---------- blueprint → built ---------- */
.bp { position: relative; background: var(--bp); }
.bp__pin { height: 100vh; min-height: 640px; max-height: 960px; position: relative; overflow: hidden; }
.bp__grid {
  position: absolute; inset: 0; opacity: .9;
  background-image:
    linear-gradient(rgba(169,184,234,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(169,184,234,.16) 1px, transparent 1px),
    linear-gradient(rgba(169,184,234,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(169,184,234,.07) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.bp__stage { position: absolute; left: 50%; top: 54%; width: min(1200px, 92vw); aspect-ratio: 12 / 7; transform: translate(-50%, -50%); }
.bp__draw { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bp__photo { position: absolute; left: 10%; right: 10%; top: 26%; bottom: 14%; border-radius: 6px; overflow: hidden; clip-path: inset(0 100% 0 0); }
.bp__photo img { width: 100%; height: 100%; object-fit: cover; }
.bp__scan { position: absolute; top: 20%; bottom: 8%; left: 10%; width: 2px; background: var(--red); box-shadow: 0 0 24px 4px rgba(228,54,75,.6); opacity: 0; }
.bp__copy { position: absolute; top: clamp(90px, 13vh, 130px); left: 0; right: 0; }
.bp__copy .h2 { font-size: clamp(2.2rem, 4.6vw, 4.6rem); }
.bp__phases { position: absolute; right: var(--gutter); bottom: 36px; display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; color: rgba(169,184,234,.45); }
.bp__phases li { transition: color .4s; display: flex; gap: 8px; }
.bp__phases li span { color: inherit; }
.bp__phases li.is-on { color: #fff; }
.bp__phases li.is-on span { color: var(--red); }

/* ---------- work ---------- */
.work { padding: clamp(80px, 12vh, 140px) 0; }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); transition: all .35s var(--ease); font-size: 11px; }
.filters button:hover { color: var(--text); border-color: rgba(255,255,255,.35); }
.filters button.is-active { background: var(--text); color: var(--ink); border-color: var(--text); }
.filters sup { font-size: 9px; margin-left: 2px; }
.work__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.work__cta p { margin: 0; font-size: clamp(1.3rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -.03em; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(200px, 20vw, 340px); grid-auto-flow: dense; gap: 16px; }
.tile { margin: 0; position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--ink-3); }
.tile.tall { grid-row: span 2; }
.tile.wide { grid-column: span 2; }
.tile.is-hidden { display: none; }
.tile__img { position: absolute; inset: 0; overflow: hidden; }
.tile__img img { width: 100%; height: 118%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; will-change: transform; }
.tile:hover .tile__img img { transform: scale(1.06); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  background: linear-gradient(transparent, rgba(10,11,22,.85));
  transform: translateY(12px); opacity: 0; transition: all .5s var(--ease);
}
.tile figcaption b { font-weight: 500; letter-spacing: -.01em; font-size: 16px; }
.tile figcaption span { color: var(--peri-lt); font-size: 10px; white-space: nowrap; }
.tile:hover figcaption, .tile:focus-within figcaption { transform: none; opacity: 1; }
@media (hover: none) { .tile figcaption { opacity: 1; transform: none; } }

/* ---------- process (light) ---------- */
.process { background: var(--paper); color: var(--ink); padding: clamp(110px, 16vh, 180px) 0; }
.process .kicker { color: rgba(10,11,22,.55); }
.process .h2 em { color: var(--indigo); }
.process__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.process__side { position: sticky; top: 120px; }
.process__lede { color: rgba(10,11,22,.68); max-width: 460px; margin: 30px 0 44px; font-size: 18px; }
.process__duo { display: flex; align-items: center; gap: 18px; }
.process__duo > div { flex: 1; border: 1px solid rgba(10,11,22,.14); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.process__duo svg { width: 28px; height: 28px; margin-bottom: 10px; }
.process__duo b { font-weight: 500; letter-spacing: -.01em; }
.process__duo .mono { font-size: 10px; color: rgba(10,11,22,.5); }
.plus { font-size: 26px; color: var(--red); }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 1px; background: rgba(10,11,22,.14); }
.steps::after { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 1px; background: var(--red); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid rgba(10,11,22,.1); }
.step__n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper);
  border: 1px solid rgba(10,11,22,.2); position: relative; z-index: 1; font-size: 11px; transition: all .5s var(--ease);
}
.step.is-on .step__n { background: var(--ink); color: #fff; border-color: var(--ink); }
.step h3 { margin: 6px 0 8px; font-size: clamp(1.4rem, 2.3vw, 2.2rem); font-weight: 500; letter-spacing: -.035em; transition: color .5s; color: rgba(10,11,22,.35); }
.step.is-on h3 { color: var(--ink); }
.step p { margin: 0; color: rgba(10,11,22,.6); max-width: 440px; }

/* ---------- team ---------- */
.team { padding: clamp(110px, 16vh, 180px) 0; }
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: 64px; }
.person { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--ink-2); display: grid; grid-template-rows: auto 1fr; transform-style: preserve-3d; will-change: transform; }
.person__img { aspect-ratio: 16 / 11; overflow: hidden; position: relative; background: var(--indigo); }
.person__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: grayscale(1) contrast(1.1); mix-blend-mode: luminosity; opacity: .9; transition: filter .8s var(--ease), opacity .8s, transform 1.2s var(--ease), mix-blend-mode .8s; }
.person:hover .person__img img { filter: none; mix-blend-mode: normal; opacity: 1; transform: scale(1.04); }
.person__body { padding: 30px clamp(22px, 3vw, 40px) 36px; }
.person h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 500; letter-spacing: -.04em; }
.person__role { color: var(--red); margin: 6px 0 20px; }
.person__body > p:not(.person__role) { color: var(--muted); font-size: 15.5px; margin: 0 0 24px; }
.link { position: relative; color: var(--peri-lt); font-size: 11px; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform-origin: left; transition: transform .5s var(--ease); }
.link:hover::after { transform: scaleX(0); transform-origin: right; }

/* ---------- faq ---------- */
.faq { padding: clamp(90px, 14vh, 160px) 0 clamp(40px, 6vh, 80px); }
.faq__list { margin: 0; max-width: 900px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item dt button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; text-align: left; padding: 24px 0; font-size: clamp(1.15rem, 1.8vw, 1.6rem); font-weight: 500; letter-spacing: -.02em; transition: color .3s; }
.faq__item dt button:hover { color: var(--peri-lt); }
.faq__item dt button i { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .5s var(--ease), border-color .3s; }
.faq__item dt button i::before, .faq__item dt button i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq__item dt button i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open dt button i { transform: rotate(45deg); border-color: var(--red); }
.faq__item dd { margin: 0; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.faq__item dd > div { overflow: hidden; }
.faq__item dd p { margin: 0 0 26px; max-width: 760px; color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.faq__item.is-open dd { grid-template-rows: 1fr; }

/* ---------- contact ---------- */
.contact { position: relative; overflow: hidden; padding: clamp(110px, 16vh, 180px) 0 clamp(80px, 12vh, 140px); background: radial-gradient(120% 80% at 90% 0%, rgba(80,81,163,.35), transparent 60%); }
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.4s; pointer-events: none; }
.contact__bg.is-live { opacity: 1; }
.contact::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(10,11,22,.35) 30%, rgba(10,11,22,.35) 70%, var(--ink) 100%); pointer-events: none; }
.contact > .wrap { position: relative; z-index: 1; }
.contact__title { margin: 0; font-size: clamp(3rem, 9vw, 9.5rem); font-weight: 500; letter-spacing: -.055em; line-height: .9; }
.contact__title em { color: var(--peri-lt); }
.contact__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 8vw, 140px); margin-top: clamp(60px, 10vh, 110px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.form label { display: flex; flex-direction: column; gap: 10px; }
.form label > span { color: var(--muted); font-size: 10.5px; }
.form input, .form textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: 18px; padding: 8px 0 12px; outline: none; transition: border-color .3s; resize: vertical; border-radius: 0;
}
.form input:focus, .form textarea:focus { border-color: var(--red); }
.form__full, .form__types { grid-column: 1 / -1; }
.form__types { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__types legend { color: var(--muted); font-size: 10.5px; margin-bottom: 12px; }
.form__types label { display: block; }
.form__types input { position: absolute; opacity: 0; pointer-events: none; }
.form__types span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); cursor: pointer; transition: all .3s var(--ease); }
.form__types input:checked + span { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.form__types input:focus-visible + span { outline: 2px solid var(--peri-lt); outline-offset: 2px; }
.form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 12px; white-space: nowrap; }
.form__note { grid-column: 1 / -1; color: var(--peri-lt); margin: 0; }
.form__note.is-error { color: var(--red); }
.form__aside { grid-column: 1 / -1; margin: -6px 0 0; color: var(--muted); line-height: 1.8; }
.form__aside a { color: var(--text); border-bottom: 1px solid var(--line); }
.form textarea::placeholder { color: rgba(237,235,245,.3); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__success { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); background: rgba(255,255,255,.03); outline: none; }
.form__success .mono { color: var(--red); margin: 0 0 14px; }
.form__success h3 { margin: 0 0 12px; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 500; letter-spacing: -.04em; }
.form__success p:last-child { margin: 0; color: var(--muted); }
.form__success a { color: var(--text); border-bottom: 1px solid var(--line); }
.form.is-sent > :not(.form__success) { display: none; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }
.contact__info { display: flex; flex-direction: column; gap: 30px; }
.contact__info > div { border-top: 1px solid var(--line); padding-top: 16px; }
.contact__info .mono { color: var(--red); font-size: 10.5px; }
.contact__info p { margin: 8px 0 0; font-size: clamp(1.1rem, 1.7vw, 1.5rem); letter-spacing: -.02em; line-height: 1.35; }
.contact__info a { transition: color .3s; }
.contact__info a:hover { color: var(--peri-lt); }

/* ---------- footer ---------- */
.footer { overflow: hidden; padding-top: 20px; border-top: 1px solid var(--line); }
.footer__word { display: flex; justify-content: space-between; padding-inline: var(--gutter); font-size: 24vw; font-weight: 500; letter-spacing: -.04em; line-height: .8; overflow: hidden; padding-top: .04em; }
.footer__word span { display: block; background: linear-gradient(180deg, var(--text) 30%, rgba(95,121,187,.3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__bar { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 28px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); margin-top: 20px; }
.footer__bar > span:first-child { display: flex; align-items: center; gap: 10px; }
.footer__mark { width: 16px; height: 16px; }
.to-top:hover { color: var(--text); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 800; background: rgba(6,7,14,.94); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; padding: 70px var(--gutter) 40px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__close { position: absolute; top: 22px; right: var(--gutter); color: var(--text); padding: 10px 0; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; max-height: 100%; }
.lightbox img { max-height: calc(100vh - 170px); width: auto; border-radius: 10px; object-fit: contain; }
.lightbox figcaption { color: var(--muted); }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); font-size: 20px; transition: background .3s; }
.lightbox__nav:hover { background: rgba(255,255,255,.08); }
.lightbox__prev { left: var(--gutter); } .lightbox__next { right: var(--gutter); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .intro__statement { text-indent: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 32px; }
  .services__pin { height: auto; min-height: 0; padding: 110px 0; }
  .services__head { grid-template-columns: 1fr; }
  .services__progress { display: none; }
  .services__track { flex-direction: column; width: auto; gap: 56px; }
  .svc { width: 100%; }
  .bp__stage { top: 58%; width: 96vw; }
  .bp__phases { left: var(--gutter); right: auto; gap: 16px; font-size: 10px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; gap: 10px; }
  .process__inner { grid-template-columns: 1fr; }
  .process__side { position: static; }
  .team__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__title { font-size: 13vw; }
  /* phones: let the hero grow with its content instead of bottom-anchoring it inside a fixed 100svh box */
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero__content { position: relative; left: auto; right: auto; bottom: auto; padding: 150px var(--gutter) clamp(32px, 7vh, 72px); }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__skyline { opacity: .5; }
  .hero__skyline .sk-text { display: none; }
  .hero__cta .btn { width: 100%; justify-content: center; padding: 22px 28px; }
  .contact__title { font-size: 13.5vw; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 72vw; }
  .tile.wide { grid-column: span 1; }
  .tile.tall { grid-row: span 1; }
  .form { grid-template-columns: 1fr; }
  .process__duo { flex-direction: column; align-items: stretch; }
  .plus { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-words .w { opacity: 1; }
}

/* reduced motion: static fallbacks for scroll-driven scenes */
.reduce .services__pin { height: auto; padding: 110px 0; }
.reduce .services__track { width: auto; overflow-x: auto; padding-bottom: 20px; }
.reduce .bp__photo { clip-path: none; }
.reduce .bp-lines { opacity: .25; }
