/* ============================================================
   Harmony Digital — main.css
   Layout: Crearist Homepage Three (Figma node 1045:2315)
   Brand: Harmony Digital · dark navy + blue→teal gradient
   Type: Archivo (display) · Hanken Grotesk (body)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg-dark: #0d0f1a;
  --bg-dark-2: #151830;
  --bg-dark-3: #1c2040;
  --navy: #211e51;
  --steel: #255992;
  --blue: #1b75bb;
  --cyan: #26a9e0;
  --teal: #41b4b5;
  --grad: linear-gradient(100deg, var(--cyan), var(--teal));
  --grad-soft: linear-gradient(135deg, #26a9e0 0%, #1b75bb 45%, #211e51 100%);

  --paper: #ffffff;
  --paper-2: #f3f4f8;
  --ink: #14162b;
  --body-c: #4b4f63;
  --line: rgba(20, 22, 43, 0.14);
  --line-dark: rgba(255, 255, 255, 0.16);
  --white-72: rgba(255, 255, 255, 0.72);
  --white-55: rgba(255, 255, 255, 0.55);
  --amber: #b97d10;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.5vw, 72px);
  --section-y: clamp(72px, 10vw, 150px);
  --r-pill: 999px;
  --r-card: 0px;
  --shadow-float: 0 24px 60px -24px rgba(13, 15, 26, 0.45);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-c);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: var(--r-pill);
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus-visible { transform: none; }

/* ---------- Typography ---------- */
.font-display, .h-giant, .h-xl, .h-lg, .h-md {
  font-family: var(--font-display);
  font-weight: 760;
  font-variation-settings: "wdth" 92;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.on-dark .h-giant, .on-dark .h-xl, .on-dark .h-lg, .on-dark .h-md,
.h-giant.on-dark, .h-xl.on-dark { color: #fff; }

.h-giant { font-size: clamp(2.5rem, 6.6vw, 5.4rem); }
.h-xl    { font-size: clamp(2.1rem, 4.8vw, 3.9rem); }
.h-lg    { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
.h-md    { font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.15; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--body-c);
}
.on-dark .eyebrow { color: var(--white-55); }
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.eyebrow--center::after {
  content: "";
  width: 22px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); }

.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dim { color: rgba(20, 22, 43, 0.34); }
.on-dark .dim { color: rgba(255, 255, 255, 0.30); }

/* Amber "[to confirm]" placeholders — section 7 of the copy deck */
.tbc {
  color: var(--amber);
  font-style: normal;
  border-bottom: 1px dashed rgba(185, 125, 16, 0.55);
}
.on-dark .tbc { color: #e3aa3c; border-bottom-color: rgba(227, 170, 60, 0.5); }

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: 1520px; }
.section { padding-block: var(--section-y); }
.on-dark { background: var(--bg-dark); color: var(--white-72); }
.on-grey { background: var(--paper-2); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 650;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--ink); color: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--grad);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn .btn-arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .btn-arrow { transform: translate(3px, -3px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover, .btn--light:focus-visible { color: #fff; }
.btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.on-dark .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.btn--ghost:hover { color: #fff; }

.btn-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--ink);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.on-dark .btn-circle { border-color: var(--line-dark); color: #fff; }
.btn-circle:hover {
  background: var(--cyan); border-color: var(--cyan); color: #fff;
  transform: translateY(-3px);
}

.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 650;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink);
}
.on-dark .arrow-link { color: #fff; }
.arrow-link svg { transition: transform 0.3s var(--ease-out); }
.arrow-link:hover svg { transform: translate(4px, -4px); }
.arrow-link:hover { color: var(--blue); }
.on-dark .arrow-link:hover { color: var(--cyan); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 640;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--ink); color: #fff;
}
.pill--grad { background: var(--grad); }
.pill--line {
  background: transparent; color: inherit;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.on-dark .pill--line { box-shadow: inset 0 0 0 1.5px var(--line-dark); }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 100;
  padding: 26px 0;
}
.site-header .wrap--wide {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.02em; color: #fff;
  white-space: nowrap;
}
.site-header--light .brand-name { color: var(--ink); }

.nav-pill {
  display: flex; align-items: center; gap: 4px;
  background: #fff;
  border-radius: var(--r-pill);
  padding: 7px 8px 7px 22px;
  box-shadow: 0 10px 30px -14px rgba(13, 15, 26, 0.35);
}
.site-header--light .nav-pill { box-shadow: inset 0 0 0 1.5px var(--line), 0 10px 30px -18px rgba(13,15,26,.25); }
.nav-pill a.nav-link {
  font-family: var(--font-display);
  font-size: 0.74rem; font-weight: 640;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
  padding: 9px 13px; border-radius: var(--r-pill);
  transition: color 0.2s;
}
.nav-pill a.nav-link:hover { color: var(--blue); }
.nav-pill a.nav-link[aria-current="page"] { background: var(--paper-2); color: var(--blue); }
.nav-pill .btn-circle { width: 40px; height: 40px; border-color: var(--ink); background: var(--ink); color: #fff; }
.nav-pill .btn-circle:hover { background: var(--cyan); border-color: var(--cyan); }

.header-socials { display: flex; gap: 8px; }
.sock {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 640;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 11px 18px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.sock:hover { background: #fff; color: var(--ink); border-color: #fff; }
.site-header--light .sock {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.site-header--light .sock:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.menu-btn {
  display: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff; color: var(--ink);
  box-shadow: 0 10px 30px -14px rgba(13, 15, 26, 0.4);
  align-items: center; justify-content: center;
}
.site-header--light .menu-btn { box-shadow: inset 0 0 0 1.5px var(--line); }

/* Mobile menu overlay */
.menu-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg-dark);
  color: #fff;
  display: flex; flex-direction: column;
  padding: 24px var(--gutter) 40px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }
.menu-overlay-top { display: flex; justify-content: space-between; align-items: center; }
.menu-overlay-nav { margin: auto 0; display: grid; gap: 6px; }
.menu-overlay-nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3.4rem);
  font-weight: 740; line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.2s;
}
.menu-overlay-nav a:hover,
.menu-overlay-nav a[aria-current="page"] { color: var(--cyan); }
.menu-overlay-foot {
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line-dark); padding-top: 22px;
  font-size: 0.9rem; color: var(--white-55);
}
.menu-overlay-foot .header-socials .sock { background: rgba(255,255,255,.08); color:#fff; border-color: var(--line-dark); }

@media (max-width: 1060px) {
  .nav-pill, .site-header .header-socials { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Hero / banner ---------- */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: #fff;
  min-height: 100svh;
  display: flex; flex-direction: column;
  overflow: clip;
}
.hero-media {
  position: absolute;
  inset: 12vh 0 0 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.hero-media img, .hero-media svg {
  width: min(880px, 88vw);
  height: auto;
  box-shadow: 0 50px 120px -40px rgba(13, 15, 26, 0.9);
}
.hero-aside {
  position: relative; z-index: 2;
  width: 100%;
  margin-top: clamp(130px, 22vh, 220px);
}
.hero-aside .label {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--white-55); font-weight: 600; font-family: var(--font-display);
}
.hero-aside a {
  display: table;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: 10px;
}
.hero-aside a:hover { color: var(--cyan); }

.scroll-cue {
  position: absolute; right: calc(var(--gutter) / 2); top: 50%;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: var(--white-55);
  font-family: var(--font-display);
  font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 64px;
  background: linear-gradient(var(--white-55), transparent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 50% { transform: translateY(10px); opacity: 0.5; } }

.hero-wordmark {
  position: relative; z-index: 1;
  margin-top: auto;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 860;
  font-variation-settings: "wdth" 84;
  font-size: clamp(4.2rem, 16.5vw, 18.5rem);
  line-height: 0.88;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  white-space: nowrap;
  /* looping left-to-right fill sweep, as in the Crearist hero */
  background: linear-gradient(105deg,
    rgba(255, 255, 255, 0.34) 0%,
    #ffffff 22%, #ffffff 34%,
    rgba(255, 255, 255, 0.34) 56%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  transform: translateY(0.08em);
  user-select: none;
  will-change: transform, background-position;
  animation: wordmark-sweep 7s linear infinite;
}
@keyframes wordmark-sweep {
  from { background-position: 150% 0; }
  to   { background-position: -110% 0; }
}

/* Load-in sequence (opacity only where JS drives transforms) */
@media (prefers-reduced-motion: no-preference) {
  .site-header .wrap--wide > * { animation: drop-in 0.7s var(--ease-out) both; }
  .site-header .wrap--wide > :nth-child(2) { animation-delay: 0.1s; }
  .site-header .wrap--wide > :nth-child(3) { animation-delay: 0.2s; }
  .hero-media { animation: fade-in 1.4s 0.25s ease both; }
  .hero-wordmark { animation: fade-in 1s 0.45s ease both, wordmark-sweep 7s linear infinite; }
  .hero-aside { animation: fade-in 0.9s 0.7s ease both; }
  .scroll-cue { animation: fade-in 1s 1s ease both; }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-18px); } }

/* ---------- Welcome statement ---------- */
.statement {
  text-align: center;
  max-width: 1080px; margin-inline: auto;
}
.statement .eyebrow { justify-content: center; }
.statement h2 {
  margin-top: 28px;
  font-size: clamp(1.9rem, 4.6vw, 3.8rem);
}
[data-words] .word { color: rgba(20, 22, 43, 0.18); transition: color 0.35s linear; }
[data-words] .word.is-on { color: var(--ink); }
.on-dark [data-words] .word { color: rgba(255, 255, 255, 0.22); }
.on-dark [data-words] .word.is-on { color: #fff; }

/* ---------- Tagline moment (collapse + expand) ---------- */
.tagline {
  position: relative;
  min-height: clamp(620px, 95vh, 900px);
  display: grid; place-items: center;
  overflow: clip;
}
.tagline-center { text-align: center; position: relative; z-index: 2; max-width: 760px; padding-inline: var(--gutter); }
.tagline-center .pill { margin-top: 26px; }
.tagline-center .h-giant { margin-top: 20px; }
.tagline-center .btn-circle { margin-top: 34px; }
.tagline-img {
  position: absolute;
  overflow: hidden;
  box-shadow: var(--shadow-float);
  will-change: transform;
}
.tagline-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tagline-img figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 24px 10px 8px;
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-family: var(--font-display); font-weight: 600;
  color: #fff; text-align: center;
  background: linear-gradient(transparent, rgba(13, 15, 26, 0.78));
}
.ti-1 { width: clamp(130px, 17vw, 250px); aspect-ratio: 4/3;  top: 7%;   left: 50%; margin-left: clamp(-340px, -24vw, -200px); }
.ti-2 { width: clamp(150px, 20vw, 300px); aspect-ratio: 7/5;  top: 4%;   right: 6%; }
.ti-3 { width: clamp(120px, 15vw, 220px); aspect-ratio: 1/1.1; bottom: 10%; left: 4%; }
.ti-4 { width: clamp(150px, 19vw, 290px); aspect-ratio: 5/4;  bottom: 6%; right: 8%; }
.ti-5 { width: clamp(110px, 13vw, 190px); aspect-ratio: 4/5;  top: 38%;  left: 9%; }

@media (max-width: 760px) {
  .tagline { min-height: 78vh; }
  .ti-5 { display: none; }
  .ti-1 { left: 2%; margin-left: 0; }
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid; gap: clamp(28px, 5vw, 80px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
}
.stats-media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4/4.6; }
.stats-media > * { width: 100%; height: 100%; object-fit: cover; }
.stats-cells {
  margin-top: clamp(28px, 4vw, 54px);
  display: grid; grid-template-columns: 1fr 1fr;
}
.stat {
  padding: clamp(20px, 2.6vw, 36px) clamp(18px, 2.4vw, 34px);
}
.stat:nth-child(odd) { border-right: 1px solid var(--line); padding-left: 0; }
.stat:nth-child(even) { padding-right: 0; padding-left: clamp(24px, 3vw, 44px); }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.stat dt {
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 620;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--body-c);
}
.stat dd {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 780; font-variation-settings: "wdth" 90;
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  line-height: 1; letter-spacing: -0.02em;
  color: var(--ink);
}
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stats-media { aspect-ratio: 16/10; }
}

/* ---------- Services accordion ---------- */
.services { background: var(--bg-dark); color: var(--white-72); }
.acc { border-top: 1px solid var(--line-dark); }
.acc-item { border-bottom: 1px solid var(--line-dark); }
.acc-head {
  width: 100%;
  display: grid;
  grid-template-columns: clamp(40px, 6vw, 90px) 1fr auto auto;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(18px, 2.6vw, 34px) 0;
  text-align: left;
}
/* Hover peek: a small preview of the row's image slides open (as in the template) */
.acc-peek {
  width: clamp(120px, 14vw, 210px);
  aspect-ratio: 16/10;
  overflow: hidden;
  clip-path: inset(50% 0 50% 0);
  opacity: 0;
  transition: clip-path 0.5s var(--ease-out), opacity 0.3s;
}
.acc-peek img { width: 100%; height: 100%; object-fit: cover; }
.acc-head:hover .acc-peek,
.acc-head:focus-visible .acc-peek { clip-path: inset(0 0 0 0); opacity: 1; }
.acc-item.is-open .acc-peek { clip-path: inset(50% 0 50% 0); opacity: 0; }
.acc-head:hover .btn-circle,
.acc-head:focus-visible .btn-circle {
  background: var(--cyan); border-color: var(--cyan); color: #fff;
}
@media (max-width: 760px) {
  .acc-peek { display: none; }
}
.acc-num {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--white-55);
}
.acc-title {
  font-family: var(--font-display);
  font-weight: 800; font-variation-settings: "wdth" 86;
  font-size: clamp(2.3rem, 6.4vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(92deg, rgba(255,255,255,.5), rgba(255,255,255,.16) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background 0.3s;
}
.acc-item.is-open .acc-title,
.acc-head:hover .acc-title {
  background: linear-gradient(92deg, #fff, #fff);
  -webkit-background-clip: text; background-clip: text;
}
.acc-head .btn-circle { pointer-events: none; }
.acc-item.is-open .acc-head .btn-circle {
  background: var(--grad); border-color: transparent; color: #fff;
  transform: rotate(90deg);
}
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-out);
}
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel-inner { overflow: hidden; }
.acc-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(20px, 4vw, 64px);
  padding: 0 0 clamp(26px, 3.4vw, 46px) clamp(40px, 6vw, 90px);
  align-items: start;
}
.acc-body p { max-width: 54ch; }
.acc-body p strong { color: #fff; font-weight: 600; }
.acc-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.acc-media { overflow: hidden; aspect-ratio: 16/10; }
.acc-media > * { width: 100%; height: 100%; object-fit: cover; }
.acc-more { margin-top: 24px; }
@media (max-width: 760px) {
  .acc-body { grid-template-columns: 1fr; padding-left: 0; }
}

/* ---------- Responsible AI (slider + content) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 90px);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.ai-media { position: relative; overflow: hidden; aspect-ratio: 4/4.4; background: var(--bg-dark-2); }
@media (max-width: 860px) { .ai-media { aspect-ratio: 4/3; } }
.ai-media > * { width: 100%; height: 100%; }

.contact-line {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 26px; padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 620;
  font-size: 0.9rem; letter-spacing: 0.06em;
  color: var(--ink);
}
.contact-line a:hover { color: var(--blue); }

/* ---------- Toolkit marquee ---------- */
.toolkit { text-align: center; }
.toolkit h2 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  font-weight: 650; letter-spacing: 0.05em;
  color: var(--ink);
}
.marquee {
  margin-top: clamp(28px, 4vw, 46px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 18px; width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }
.tool-chip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 22px 36px;
  background: var(--paper-2);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 1.12rem; font-weight: 680; letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.tool-chip svg { width: 22px; height: 22px; flex: none; }
.tool-chip:nth-child(8n + 2) { background: var(--ink); color: #fff; }
.tool-chip:nth-child(8n + 6) { border-radius: 16px; }

/* ---------- Partners tabs ---------- */
.partners { background: var(--paper-2); }
.partners-head h2 { max-width: 14ch; }
.tabs {
  margin-top: clamp(30px, 5vw, 60px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.tab-btn {
  padding: 22px clamp(14px, 2vw, 28px) 26px;
  border-right: 1px solid var(--line);
  text-align: left;
  position: relative;
  transition: background 0.3s;
}
.tab-btn:last-child { border-right: 0; }
.tab-btn::before {
  content: "";
  position: absolute; top: -1px; left: 0; right: 0;
  height: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.tab-btn[aria-selected="true"] { background: #fff; }
.tab-btn[aria-selected="true"]::before { transform: scaleX(1); }
.tab-btn .t-num {
  display: block;
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.1em; color: var(--body-c);
}
.tab-btn .t-title {
  display: block; margin-top: 8px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(0.9rem, 1.4vw, 1.12rem); line-height: 1.25;
  color: var(--ink);
}
@media (max-width: 760px) {
  .tabs { grid-template-columns: 1fr 1fr; }
  .tab-btn:nth-child(2) { border-right: 0; }
  .tab-btn { border-bottom: 1px solid var(--line); }
}
.tab-stage { position: relative; min-height: clamp(420px, 60vh, 620px); }
.tab-panel {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  display: flex; align-items: flex-end;
  padding: clamp(18px, 3vw, 44px);
  overflow: hidden;
}
.tab-panel.is-active { opacity: 1; visibility: visible; }
.tab-panel .tab-bg { position: absolute; inset: 0; z-index: 0; }
.tab-panel .tab-bg > * { width: 100%; height: 100%; object-fit: cover; }
.tab-card {
  position: relative; z-index: 1;
  background: rgba(13, 15, 26, 0.92);
  color: var(--white-72);
  border-radius: var(--r-card);
  padding: clamp(22px, 3vw, 36px);
  max-width: 520px;
  backdrop-filter: blur(8px);
}
.tab-card h3 { color: #fff; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.2; }
.tab-card p { margin-top: 12px; font-size: 0.97rem; }
.tab-card .arrow-link { margin-top: 18px; color: var(--cyan); }
.tab-card .arrow-link:hover { color: #fff; }

/* ---------- Team ---------- */
.team-head { text-align: center; position: relative; }
.team-head .pill { position: relative; top: -0.6em; margin-left: 10px; transform: rotate(6deg); }
.team-grid-wrap { background: var(--bg-dark); margin-top: clamp(-40px, -4vw, -64px); padding: clamp(90px, 11vw, 150px) 0 var(--section-y); }
.team-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}
.member {
  position: relative; overflow: hidden;
  aspect-ratio: 4/4.7;
}
.member:nth-child(even) { transform: translateY(clamp(18px, 2.4vw, 36px)); }
.member .member-bg { position: absolute; inset: 0; }
.member .member-bg > * { width: 100%; height: 100%; object-fit: cover; }
.member .role {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 650;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff;
  background: rgba(13, 15, 26, 0.65);
  padding: 7px 12px; border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
.member .name-ribbon {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: #fff; color: var(--ink);
  padding: 12px 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.92rem; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}
.member:hover .name-ribbon, .member:focus-within .name-ribbon { transform: none; }
.name-ribbon span {
  display: inline-block;
  animation: ribbon 9s linear infinite;
}
@keyframes ribbon { to { transform: translateX(-50%); } }
@media (max-width: 860px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Selected work ---------- */
.work { }
.work-card {
  background: var(--paper-2);
  border-radius: var(--r-card);
  padding: clamp(28px, 5vw, 76px);
}
.work-intro { max-width: 46ch; margin-top: 18px; }
.work-list { margin-top: clamp(26px, 4vw, 50px); position: relative; }
.work-row {
  display: grid;
  grid-template-columns: clamp(72px, 9vw, 120px) 1fr auto;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  padding: clamp(16px, 2.2vw, 26px) 0;
  border-bottom: 1px solid var(--line);
}
.work-list .work-row:first-child { border-top: 1px solid var(--line); }
.work-row .w-year {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; color: var(--body-c);
}
.work-row .w-name {
  font-family: var(--font-display);
  font-weight: 790; font-variation-settings: "wdth" 88;
  font-size: clamp(1.7rem, 4.6vw, 3.6rem);
  line-height: 1.04; letter-spacing: -0.02em;
  color: rgba(20, 22, 43, 0.32);
  transition: color 0.3s;
}
.work-row:hover .w-name, .work-row:focus-visible .w-name { color: var(--ink); }
.work-float {
  position: absolute; z-index: 5;
  top: 0; right: clamp(4px, 3vw, 48px);
  width: clamp(200px, 22vw, 320px); aspect-ratio: 16/10;
  overflow: hidden;
  box-shadow: var(--shadow-float);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  will-change: transform;
}
.work-float.is-on { opacity: 1; }
.work-float img { transition: opacity 0.2s; }
.work-float img { width: 100%; height: 100%; object-fit: cover; object-position: top; background: var(--bg-dark-2); }
.work-all { margin-top: 30px; }

/* ---------- Closing CTA ---------- */
.cta { text-align: center; }
.cta .h-giant { margin-top: 24px; }
.cta .inline-img {
  display: inline-block;
  width: clamp(64px, 8vw, 120px); height: 0.82em;
  vertical-align: -0.12em;
  margin-inline: 0.12em;
  background: url("../img/dummy/red-swirl.jpg") center / cover;
  overflow: hidden;
}
.cta .btn { margin-top: 34px; }
.cta-stage {
  position: relative;
  margin-top: clamp(34px, 6vw, 70px);
  border-radius: var(--r-card);
  overflow: hidden;
  min-height: clamp(380px, 56vh, 560px);
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: clamp(16px, 3vw, 40px);
}
.cta-stage .cta-bg { position: absolute; inset: 0; }
.cta-stage .cta-bg > * { width: 100%; height: 100%; object-fit: cover; }
.cta-box {
  position: relative; z-index: 1;
  text-align: left;
  background: rgba(13, 15, 26, 0.92);
  color: var(--white-72);
  border-radius: var(--r-card);
  padding: clamp(22px, 3vw, 34px);
  width: min(380px, 100%);
  backdrop-filter: blur(8px);
}
.cta-box-top { display: flex; align-items: center; gap: 12px; }
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid rgba(13, 15, 26, 0.9);
  background: var(--grad-soft);
}
.avatar-stack span:nth-child(2) { margin-left: -10px; background: linear-gradient(135deg, var(--teal), var(--steel)); }
.avatar-stack span:nth-child(3) { margin-left: -10px; background: linear-gradient(135deg, var(--navy), var(--cyan)); }
.cta-box-label {
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 650;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--white-55);
}
.cta-box p { margin-top: 16px; color: #fff; font-size: 1.05rem; line-height: 1.45; }
.cta-box-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}
.cta-box-foot a.box-link {
  font-family: var(--font-display); font-weight: 650; letter-spacing: 0.06em;
  text-decoration: underline; text-underline-offset: 4px;
}
.cta-box-foot a.box-link:hover { color: var(--cyan); }
.cta-box .btn-circle { width: 46px; height: 46px; }

/* ---------- Testimonials ---------- */
.quotes-grid {
  margin-top: clamp(30px, 5vw, 56px);
  display: grid; gap: 18px;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4.5fr) minmax(0, 4.5fr);
}
.q-summary {
  background: var(--bg-dark); color: var(--white-72);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  text-align: center;
}
.q-summary strong { color: #fff; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.q-summary small { font-size: 0.85rem; color: var(--white-55); }
.q-card {
  background: var(--paper-2);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 36px);
  display: grid; grid-template-columns: auto 1fr; gap: 20px;
}
.q-side {
  writing-mode: vertical-rl; transform: rotate(180deg);
  border-left: 1px solid var(--line); padding-left: 14px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
}
.q-side .q-name { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.q-side .q-role { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--body-c); }
.q-main .q-mark { color: var(--cyan); }
.q-main .q-mark svg { width: 34px; height: 26px; }
.q-main p { margin-top: 14px; }
@media (max-width: 960px) { .quotes-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark); color: var(--white-72);
  padding-top: var(--section-y);
}
.footer-grid {
  display: grid; gap: clamp(32px, 5vw, 60px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 3.5fr) minmax(0, 3fr);
}
.footer-grid h2 { color: #fff; max-width: 12ch; }
.site-footer .btn { margin-top: 30px; }
.f-blocks { display: grid; gap: 26px; align-content: center; }
.f-block .f-label {
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 650;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--white-55);
}
.f-block a, .f-block .f-val {
  display: inline-block; margin-top: 6px;
  color: #fff; font-size: 1.02rem;
}
.f-block a:hover { color: var(--cyan); }
.f-socials { display: grid; align-content: center; }
.f-socials a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--white-55);
  transition: color 0.25s, padding-left 0.25s var(--ease-out);
}
.f-socials a:first-child { border-top: 1px solid var(--line-dark); }
.f-socials a:hover { color: #fff; padding-left: 10px; }
.f-socials a svg { opacity: 0; transition: opacity 0.25s; }
.f-socials a:hover svg { opacity: 1; }
.footer-bottom {
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line-dark);
  padding: 24px 0 30px;
  display: flex; flex-wrap: wrap; gap: 12px 30px;
  align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: var(--white-55);
}
.footer-bottom .brand img { width: 26px; height: 26px; }
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom .legal a:hover { color: #fff; }
.footer-signoff { width: 100%; text-align: center; font-size: 0.82rem; color: var(--white-55); }
.footer-signoff strong { color: var(--white-72); font-weight: 600; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--bg-dark); color: var(--white-72);
  padding: clamp(150px, 22vh, 230px) 0 clamp(56px, 8vw, 110px);
  position: relative; overflow: clip;
}
.page-hero::after {
  content: "";
  position: absolute; right: -10%; top: -30%;
  width: 55vw; height: 55vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(38, 169, 224, 0.22), transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 820; font-variation-settings: "wdth" 88;
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  line-height: 0.98; letter-spacing: -0.02em;
  color: #fff;
  max-width: 16ch;
  margin-top: 22px;
}
.page-hero .lead { max-width: 56ch; margin-top: 24px; }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; position: relative; z-index: 1; }

/* ---------- Services page ---------- */
.svc-block {
  display: grid;
  grid-template-columns: clamp(60px, 8vw, 120px) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 56px);
  padding: clamp(36px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}
.svc-block:first-of-type { border-top: 1px solid var(--line); }
.svc-num {
  font-family: var(--font-display); font-weight: 760; font-size: clamp(1.2rem, 2vw, 1.6rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.svc-main .svc-kicker {
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 640;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--body-c);
}
.svc-main h2 { margin-top: 10px; }
.svc-main p { margin-top: 16px; max-width: 48ch; }
.svc-facts { display: grid; gap: 18px; align-content: start; }
.svc-fact .f-k {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 650;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--body-c);
}
.svc-fact .f-v { margin-top: 6px; color: var(--ink); font-weight: 500; }
@media (max-width: 860px) {
  .svc-block { grid-template-columns: 1fr; gap: 16px; }
}

.promise-grid {
  margin-top: clamp(30px, 5vw, 54px);
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.promise {
  background: var(--bg-dark-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-card);
  padding: 26px 24px;
}
.promise .p-num {
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.promise h3 { color: #fff; font-size: 1.08rem; margin-top: 12px; line-height: 1.3; }
.promise p { margin-top: 10px; font-size: 0.92rem; }

.ways-grid {
  margin-top: clamp(30px, 5vw, 54px);
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.way {
  background: var(--paper-2);
  border-radius: var(--r-card);
  padding: 28px 26px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.way:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.way h3 { font-size: 1.15rem; }
.way p { margin-top: 10px; font-size: 0.95rem; }
.way .w-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-soft); margin-bottom: 18px; display:grid; place-items:center; color:#fff; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; }
.faq .acc { border-top-color: var(--line); }
.faq .acc-item { border-bottom-color: var(--line); }
.faq .acc-head { grid-template-columns: 1fr auto; padding: 20px 0; }
.faq .acc-title-sm {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ink);
  letter-spacing: -0.01em;
}
.faq .btn-circle { width: 44px; height: 44px; }
.faq .acc-panel-inner p { max-width: 64ch; padding-bottom: 22px; }

/* ---------- Case studies ---------- */
.cs-grid {
  display: grid; gap: clamp(20px, 3vw, 32px);
  grid-template-columns: 1fr 1fr;
}
.cs-card {
  display: block;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--paper-2);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.cs-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); }
.cs-card .cs-media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-dark-2); }
.cs-card .cs-media > * { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s var(--ease-out); }
.cs-card:hover .cs-media > * { transform: scale(1.04); }
.cs-card .cs-body { padding: 24px 26px 28px; }
.cs-card h2, .cs-card h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.cs-card .cs-line { margin-top: 8px; }
.cs-card .cs-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.cs-card .cs-meta .pill--line { font-size: 0.64rem; padding: 6px 12px; }
.cs-card .arrow-link { margin-top: 18px; font-size: 0.74rem; }
.cs-card--wide { grid-column: 1 / -1; }
@media (min-width: 861px) {
  .cs-card--wide { display: grid; grid-template-columns: 1.4fr 1fr; }
  .cs-card--wide .cs-media { aspect-ratio: auto; height: 100%; }
  .cs-card--wide .cs-body { align-self: center; padding: clamp(28px, 4vw, 56px); }
}
@media (max-width: 860px) { .cs-grid { grid-template-columns: 1fr; } }

.cs-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(26px, 4vw, 44px); }
.cs-filters button {
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 640; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink);
  transition: all 0.2s;
}
.cs-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cs-filters button:hover:not([aria-pressed="true"]) { border-color: var(--ink); }

/* Case study detail */
.cs-hero-media {
  margin-top: clamp(-40px, -4vw, -70px);
  position: relative; z-index: 2;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  aspect-ratio: 16/8.5;
  background: var(--bg-dark-2);
}
.cs-hero-media > * { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cs-layout {
  display: grid; gap: clamp(32px, 5vw, 80px);
  grid-template-columns: minmax(0, 7.5fr) minmax(0, 3.5fr);
  align-items: start;
}
@media (max-width: 860px) { .cs-layout { grid-template-columns: 1fr; } }
.cs-prose h2 {
  font-family: var(--font-display); font-weight: 760;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.015em; color: var(--ink);
  margin-top: clamp(30px, 4vw, 48px);
}
.cs-prose > p { margin-top: 16px; }
.cs-prose .cs-intro {
  font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.45;
  color: var(--ink); font-weight: 500;
}
.cs-prose ul { margin-top: 16px; display: grid; gap: 12px; padding-left: 0; }
.cs-prose ul li {
  position: relative; padding-left: 28px;
}
.cs-prose ul li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 14px; height: 2px; border-radius: 2px;
  background: var(--grad);
}
.cs-insight {
  margin-top: clamp(30px, 4vw, 48px);
  border-left: 3px solid; border-image: linear-gradient(var(--cyan), var(--teal)) 1;
  padding: 6px 0 6px 24px;
  font-family: var(--font-display); font-weight: 650;
  font-size: clamp(1.1rem, 1.9vw, 1.4rem); line-height: 1.4;
  color: var(--ink); letter-spacing: -0.01em;
}
.cs-details {
  position: sticky; top: 30px;
  background: var(--paper-2);
  border-radius: var(--r-card);
  padding: 28px 26px;
  display: grid; gap: 18px;
}
.cs-details .d-row .d-k {
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 650;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--body-c);
}
.cs-details .d-row .d-v { margin-top: 4px; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.cs-gallery {
  display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 760px) { .cs-gallery { grid-template-columns: 1fr; } }
.cs-next {
  border-top: 1px solid var(--line);
}
.cs-next a {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: clamp(28px, 4vw, 48px) 0;
}
.cs-next .n-label {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 640;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--body-c);
}
.cs-next .n-name {
  display: block; margin-top: 8px;
  font-family: var(--font-display); font-weight: 790; font-variation-settings: "wdth" 88;
  font-size: clamp(1.8rem, 4.6vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.05;
  color: var(--ink);
  transition: color 0.25s;
}
.cs-next a:hover .n-name { color: var(--blue); }

/* ---------- Placeholder figures (photos to come) ---------- */
.ph {
  position: relative;
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(38, 169, 224, 0.5), transparent 55%),
    radial-gradient(130% 100% at 95% 100%, rgba(65, 180, 181, 0.45), transparent 55%),
    linear-gradient(150deg, #1a1d3a, #0d0f1a 70%);
  min-height: 100%;
  width: 100%;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("../img/logos/harmony-white.svg");
  background-repeat: no-repeat;
  background-position: center 38%;
  background-size: 34%;
  opacity: 0.16;
}
.ph figcaption {
  position: relative;
  width: 100%;
  padding: 14px 16px;
  font-size: 0.72rem; line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  background: linear-gradient(transparent, rgba(13, 15, 26, 0.6));
}
.ph figcaption .tbc { color: #ffc65c; border-bottom-color: rgba(255, 198, 92, 0.5); }
.ph--img::before { display: none; }
.ph--img > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid; gap: clamp(36px, 5vw, 90px);
  grid-template-columns: minmax(0, 6.5fr) minmax(0, 4fr);
  align-items: start;
}
@media (max-width: 920px) { .contact-layout { grid-template-columns: 1fr; } }
.form-grid { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 650;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.field .req { color: var(--blue); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.18);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; }
.field .error-msg { display: none; font-size: 0.82rem; color: #c0392b; }
.field.has-error .error-msg { display: block; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  font-size: 0.86rem; color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.checkline { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; }
.checkline input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.checkline a { text-decoration: underline; text-underline-offset: 3px; }
.form-foot { grid-column: 1 / -1; display: grid; gap: 16px; }
.form-success {
  background: var(--paper-2);
  border-radius: var(--r-card);
  padding: clamp(30px, 5vw, 56px);
  text-align: center;
  display: none;
}
.form-success.is-on { display: block; }
.form-success .ok-ic {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.next-steps { display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.next-steps .step:first-of-type { border-top: 1px solid var(--line); }
.step .s-num {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2);
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  color: var(--ink);
}
.step p { align-self: center; color: var(--ink); font-weight: 500; }
.reach { margin-top: clamp(30px, 4vw, 44px); display: grid; gap: 14px; }
.reach .f-block a { color: var(--ink); }
.reach .f-block a:hover { color: var(--blue); }
.reach .f-block .f-val { color: var(--ink); }

/* ---------- 404 ---------- */
.err-wrap {
  min-height: 100svh;
  background: var(--bg-dark); color: var(--white-72);
  display: grid; place-items: center;
  text-align: center;
  padding: var(--gutter);
}
.err-code {
  font-family: var(--font-display); font-weight: 860; font-variation-settings: "wdth" 84;
  font-size: clamp(6rem, 24vw, 16rem); line-height: 1;
  background: var(--grad-soft);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; z-index: 250;
  left: 16px; right: 16px; bottom: 16px;
  margin-inline: auto;
  max-width: 520px;
  background: var(--ink); color: var(--white-72);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 30px 70px -20px rgba(13, 15, 26, 0.6);
  display: none;
}
.cookie.is-on { display: block; }
.cookie p { font-size: 0.9rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 16px; }
.cookie-actions .btn { padding: 11px 20px; font-size: 0.7rem; background: #fff; color: var(--ink); }
.cookie-actions .btn--plain { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.cookie-actions .btn--plain:hover { color: #fff; }
.cookie-actions a { font-size: 0.8rem; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions a:hover { color: #fff; }

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal="scale"] { transform: translateY(34px) scale(0.86); transform-origin: 50% 70%; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Scroll-effect hooks (driven by main.js) ---------- */
.hero-media, .hero-wordmark { will-change: transform; }

[data-plx] { overflow: hidden; }
[data-plx] > :first-child {
  transform: scale(1.14);
  will-change: transform;
}

[data-expand] {
  transform: scale(0.52);
  transform-origin: 50% 22%;
  will-change: transform, border-radius;
}

[data-drift] { will-change: transform; }

/* Accordion media eases in as a row opens */
.acc-media {
  opacity: 0.2;
  transform: scale(0.94) translateY(14px);
  transition: opacity 0.6s ease 0.1s, transform 0.7s var(--ease-out) 0.1s;
}
.acc-item.is-open .acc-media { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-expand] { transform: none; }
  [data-plx] > :first-child { transform: none; }
  .acc-media { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-words] .word { color: var(--ink); }
  .on-dark [data-words] .word { color: #fff; }
  .hero-wordmark {
    background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.4));
    -webkit-background-clip: text; background-clip: text;
  }
}

/* ---------- Password gate (case-study details) ---------- */
html.is-locked { overflow: hidden; }
html.is-locked body > :not(.cs-gate) { display: none !important; }
.cs-gate { display: none; }
html.is-locked .cs-gate {
  display: grid; place-items: center;
  min-height: 100svh;
  padding: var(--gutter);
}
.cs-gate-card {
  width: min(480px, 100%);
  display: grid; gap: 16px; justify-items: center;
  text-align: center;
}
.cs-gate-card h1 {
  font-family: var(--font-display);
  font-weight: 760; font-variation-settings: "wdth" 92;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.12; letter-spacing: -0.02em;
  color: #fff;
}
.cs-gate-card > p { max-width: 40ch; }
.cs-gate-row { display: flex; gap: 10px; width: 100%; margin-top: 6px; }
.cs-gate-row input {
  flex: 1; min-width: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid var(--line-dark);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cs-gate-row input::placeholder { color: var(--white-55); }
.cs-gate-row input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.22);
}
.cs-gate .error-msg { display: none; font-size: 0.88rem; color: #ff9d8a; }
.cs-gate.has-error .error-msg { display: block; }
.cs-gate.has-error .cs-gate-row { animation: gate-shake 0.4s; }
.cs-gate.has-error .cs-gate-row input { border-color: #ff9d8a; }
@keyframes gate-shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.cs-gate noscript p { font-size: 0.85rem; color: #e3aa3c; }
