/* Prodigy Digital — site styles */
:root {
  --paper: #f4f7f8;
  --white: #ffffff;
  --ink: #2c2c2c;
  --slate: #5c6164;
  --mist: #c5cdd0;
  --cyan: #10c6d9;
  --cyan-deep: #087f8c;      /* accessible cyan for small text on light backgrounds */
  --line: #d9e0e3;
  --ink-line: #474a4c;

  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  /* Display type */
  --display-font: var(--font);
  --display-stretch: 100%;
  --display-weight: 800;
  --display-case: none;
  --display-lh: 1.02;
  --display-ls: -0.035em;
  --wrap: 1240px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section: clamp(80px, 11vw, 144px);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* Display type: condensed, heavy, uppercase */
h1, h2, h3, .display {
  margin: 0; font-family: var(--display-font); font-stretch: var(--display-stretch); font-weight: var(--display-weight);
  text-transform: var(--display-case); line-height: var(--display-lh); letter-spacing: var(--display-ls);
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Photos: one consistent black & white treatment ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(1.02); }

/* ---------- Signature half-disc (from the logo) ---------- */
.disc { display: block; aspect-ratio: 1; background: var(--cyan); border-radius: 50%; clip-path: polygon(0 0, 100% 100%, 0 100%); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 247, 248, 0.9);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand img { height: 43px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--cyan-deep); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--ink);
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.on-dark .btn-ghost { border-color: #fff; color: #fff; }
.on-dark .btn-ghost:hover { background: #fff; color: var(--ink); }
.on-dark .btn-primary:hover { background: #fff; border-color: #fff; }
.nav .btn { min-height: 44px; padding: 0 22px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(3.6rem, 10.5vw, 9.2rem); }
.hero h1 .line { display: block; }
.hero h1 .line-mark { display: inline-flex; align-items: center; gap: .12em; }
.hero h1 .line-mark .disc-wrap { display: inline-block; width: .62em; animation: settle 1.2s cubic-bezier(.2,.8,.2,1) .2s both; }
.hero h1 .line-mark .disc { width: 100%; transform: rotate(var(--r, 0deg)); will-change: transform; }
@keyframes settle { from { transform: rotate(-120deg) scale(.4); opacity: 0; } to { transform: rotate(0) scale(1); opacity: 1; } }
.hero-lede { margin-top: clamp(24px, 3vw, 36px); max-width: 34rem; font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--slate); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { position: relative; }
.hero-media .photo { aspect-ratio: 4 / 5; animation: disc-wipe 1.3s cubic-bezier(.2,.8,.2,1) .35s both; }
.hero-card {
  position: absolute; left: clamp(-56px, -4vw, -16px); bottom: 28px; max-width: 270px;
  background: var(--white); border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 18px 40px -18px rgba(44, 44, 44, .35);
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
}
.hero-card b { font-family: var(--display-font); font-stretch: var(--display-stretch); font-weight: var(--display-weight); font-size: 2.6rem; line-height: 1; color: var(--ink); }
.hero-card span { font-size: .95rem; line-height: 1.35; color: var(--slate); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; }
.marquee-label { text-align: center; font-weight: 600; margin-bottom: 18px; color: var(--slate); font-size: .95rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track ul { display: flex; flex: none; align-items: center; }
.marquee-track li { padding: 0 clamp(28px, 4vw, 56px); display: flex; align-items: center; height: 72px; position: relative; }
.marquee-track li img { width: auto; opacity: .55; transition: opacity .25s ease; }
.marquee-track li:hover img { opacity: 1; }
.marquee-track .logo-tall img { height: 58px; }
.marquee-track .logo-wide img { height: 34px; }
.marquee-track .logo-xwide img { height: 28px; }
.marquee-track li::before { content: ""; position: absolute; left: -6px; width: 12px; height: 12px; background: var(--cyan); border-radius: 50%; clip-path: polygon(0 0, 100% 100%, 0 100%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.h2 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { max-width: 30rem; color: var(--slate); }
.on-dark { background: var(--ink); color: #fff; }
.on-dark p { color: var(--mist); }
.on-dark .section-head p { color: var(--mist); }
.accent { color: var(--cyan); }   /* used only on dark backgrounds, where contrast passes */

/* About intro + mosaic */
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-grid .h2 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); }
.about-copy p { margin-top: 28px; color: var(--slate); font-size: 1.12rem; max-width: 34rem; }
.about-copy .btn { margin-top: 32px; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mosaic > * { aspect-ratio: 1; border-radius: 12px; }
.mosaic .photo { border-radius: 12px; }
.mosaic .tile-ink { background: var(--ink); }
.mosaic .tile-disc { background: var(--white); display: grid; place-items: center; }
.mosaic .tile-disc .disc { width: 58%; }
.mosaic .tile-empty { background: transparent; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(56px, 8vw, 96px); }
.stat { background: var(--white); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.stat b { display: block; font-family: var(--display-font); font-stretch: var(--display-stretch); font-weight: var(--display-weight); font-size: clamp(3rem, 6vw, 4.8rem); line-height: 1; letter-spacing: -0.01em; }
.stat span { display: block; margin-top: 10px; color: var(--slate); }

/* Services accordion */
.services-list { border-top: 2px solid #fff; }
.service { border-bottom: 1px solid var(--ink-line); }
.service summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(20px, 2.6vw, 30px) 0;
}
.service summary::-webkit-details-marker { display: none; }
.service h3 { font-size: clamp(2rem, 4.6vw, 3.8rem); transition: color .2s ease; }
.service summary:hover h3, .service[open] h3 { color: var(--cyan); }
.service .toggle { flex: none; width: 52px; height: 52px; position: relative; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.service .toggle::before, .service .toggle::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.service .toggle::before { border: 2px solid var(--ink-line); }
.service .toggle::after {
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path .5s cubic-bezier(.2,.8,.2,1);
}
.service summary:hover .toggle { transform: rotate(-45deg); }
.service[open] .toggle { transform: rotate(180deg); }
.service[open] .toggle::after { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.service-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); padding: 0 0 clamp(28px, 4vw, 44px); }
.service-body p { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--mist); max-width: 28rem; }
.service-body .photo { aspect-ratio: 16 / 9; border-radius: 14px; }
.service[open] .service-body { animation: reveal .4s ease both; }
.service[open] .service-body .photo { animation: disc-wipe .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes disc-wipe { from { clip-path: circle(0% at 0% 100%); } to { clip-path: circle(150% at 0% 100%); } }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Process */
.process-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.process-grid .photo { aspect-ratio: 4 / 5; position: sticky; top: 110px; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.section.flush-top { padding-top: 0; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 30px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--display-font); font-stretch: var(--display-stretch); font-weight: var(--display-weight); font-size: 2.2rem; line-height: 1; color: var(--cyan-deep); }
.step h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 10px; }
.step p { color: var(--slate); max-width: 32rem; }

/* Why us */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.why-item { background: var(--white); border-radius: var(--radius); padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.why-item .disc { width: 34px; margin-bottom: auto; }
.why-item h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-top: 40px; }
.why-item p { color: var(--slate); }
.why-note { margin-top: 28px; color: var(--slate); max-width: 44rem; font-size: 1.1rem; }

/* CTA */
.cta { position: relative; overflow: hidden; color: #fff; background: var(--ink); }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); opacity: .32; }
.cta .wrap { position: relative; padding-top: clamp(96px, 14vw, 180px); padding-bottom: clamp(80px, 10vw, 128px); }
.cta h2 { font-size: clamp(3.6rem, 11vw, 9.6rem); max-width: 10ch; }
.cta-row { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.cta-row p { max-width: 30rem; color: var(--mist); font-size: 1.15rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- About page ---------- */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(3.4rem, 9.6vw, 8.4rem); }
.page-hero .hero-lede { max-width: 40rem; }
.page-hero .photo { margin-top: clamp(40px, 6vw, 72px); aspect-ratio: 21 / 9; }

.prose-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 96px); }
.prose-grid .h2 { font-size: clamp(2.4rem, 4.8vw, 4rem); }
.prose p { color: var(--slate); font-size: 1.12rem; max-width: 40rem; }
.prose p + p { margin-top: 1.2em; }
.prose p.lead { color: var(--ink); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.4; }

.tick-list li { display: grid; grid-template-columns: 22px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--ink-line); font-size: 1.12rem; line-height: 1.5; color: var(--mist); }
.tick-list li:last-child { border-bottom: 1px solid var(--ink-line); }
.tick-list .disc { width: 16px; margin-top: 6px; }

.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.member { display: flex; align-items: center; gap: 24px; padding: 28px; background: var(--white); border-radius: var(--radius); }
.avatar { flex: none; width: 92px; height: 92px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-stretch: 72%; font-size: 2rem; font-weight: 800; position: relative; overflow: hidden; }
.avatar::after { content: ""; position: absolute; width: 46px; height: 46px; right: -8px; top: -8px; background: var(--cyan); border-radius: 50%; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.member h3 { font-size: 2rem; }
.member p { color: var(--slate); margin-top: 4px; }

.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 64px); border-top: 2px solid var(--ink); }
.partners li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; }
.partners b { font-weight: 600; }
.partners span { color: var(--slate); }
.creds { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.creds li { border: 1.5px solid var(--ink); border-radius: 999px; padding: 10px 20px; font-weight: 500; }

.client-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: clamp(64px, 9vw, 112px); }
.client-grid li { background: var(--white); border-radius: var(--radius); aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 22px; position: relative; overflow: hidden; }
.client-grid img { max-height: 52px; width: auto; max-width: 100%; opacity: .7; transition: opacity .3s ease; position: relative; }
.client-grid li::before { content: ""; position: absolute; width: 140%; aspect-ratio: 1; left: -20%; bottom: -120%; border-radius: 50%; background: var(--cyan); clip-path: polygon(0 0, 100% 100%, 0 100%); opacity: .18; transform: rotate(-90deg); transition: transform .6s cubic-bezier(.2,.8,.2,1), bottom .6s cubic-bezier(.2,.8,.2,1); }
.client-grid li:hover::before { bottom: -60%; transform: rotate(0deg); }
.client-grid li:hover img { opacity: 1; }
.client-grid .tall img { max-height: 76px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--mist); padding: 72px 0 40px; border-top: 1px solid var(--ink-line); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid var(--ink-line); }
.footer-top img { height: 53px; width: auto; }
.footer-top p { margin-top: 18px; max-width: 22rem; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { color: #fff; text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--cyan); }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .92rem; }
.footer-bottom a { color: var(--mist); }

/* ---------- Disc field (interactive canvas behind the CTA) ---------- */
.disc-field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cta-hint { margin-top: 18px; font-size: .9rem; color: #8d9599; }

/* ---------- Cursor companion: a half-disc that completes on interactive elements ---------- */
.cursor-disc {
  position: fixed; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; z-index: 200; pointer-events: none;
  border-radius: 50%; background: var(--cyan); opacity: 0;
  clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path .35s cubic-bezier(.2,.8,.2,1), width .35s ease, height .35s ease, margin .35s ease, opacity .3s ease;
  mix-blend-mode: multiply;
}
.cursor-disc.is-visible { opacity: .9; }
.cursor-disc.is-active { width: 54px; height: 54px; margin: -27px 0 0 -27px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); opacity: .45; }
.on-dark-zone .cursor-disc, .cursor-disc.on-dark { mix-blend-mode: normal; }
@media (hover: none), (pointer: coarse) { .cursor-disc { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .process-grid, .prose-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; }
  .hero-media .photo { aspect-ratio: 4 / 3; }
  .hero-card { left: 16px; bottom: 16px; }
  .process-grid .photo { position: static; aspect-ratio: 16 / 9; }
  .why { grid-template-columns: 1fr; }
  .why-item { min-height: 0; }
  .team { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s ease, background-color .2s ease; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav { position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper); padding: 8px var(--gutter) 28px; border-bottom: 1px solid var(--line); display: none; }
  .nav-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 16px 0; font-size: 1.25rem; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 20px; }
  .brand img { height: 36px; }

  .stats { grid-template-columns: 1fr; }
  .service-body { grid-template-columns: 1fr; }
  .service .toggle { width: 42px; height: 42px; }
  .step { grid-template-columns: 52px 1fr; }
  .partners { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partners li { grid-template-columns: 1fr; gap: 2px; }
  .member { padding: 22px; gap: 18px; }
  .avatar { width: 72px; height: 72px; font-size: 1.6rem; }
  .page-hero .photo { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cursor-disc { display: none; }
}

/* ===================== v3 additions ===================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* Text wordmarks for clients without a usable logo file */
.wm { display: inline-flex; flex-direction: column; line-height: 1; color: #2c2c2c; white-space: nowrap; }
.wm small { font-size: .42em; margin-top: .45em; letter-spacing: .08em; }
.wm-alpine { font: 800 1.9rem/1 var(--font); font-stretch: 85%; letter-spacing: .02em; }
.wm-alpine small { font-weight: 600; text-transform: uppercase; }
.wm-lena { font: 400 1.7rem/1 Georgia, "Times New Roman", serif; letter-spacing: .32em; text-transform: uppercase; align-items: center; }
.wm-lena small { letter-spacing: .4em; font-size: .4em; }
.marquee-track .logo-text .wm { opacity: .55; transition: opacity .25s ease; }
.marquee-track .logo-text:hover .wm { opacity: 1; }
.client-grid .wm { opacity: .75; position: relative; font-size: 1.15rem; }
.client-grid .wm-alpine { font-size: 1.5rem; }
.client-grid .wm-lena { font-size: 1.25rem; }
.client-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }

/* Contact */
.cta-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.cta-grid h2 { font-size: clamp(3.2rem, 8vw, 7rem); }
.cta-lede { margin-top: 24px; max-width: 28rem; font-size: 1.12rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--cyan); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.contact-form { position: relative; background: rgba(255,255,255,.04); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; font-size: .95rem; color: #fff; font-weight: 500; }
.field em { font-style: normal; color: var(--mist); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: #fff; background: rgba(255,255,255,.06);
  border: 1.5px solid #5a5e60; border-radius: 12px; padding: 13px 14px; min-height: 48px;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #c5cdd0 50%), linear-gradient(135deg, #c5cdd0 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(16,198,217,.25); }
.field [aria-invalid="true"] { border-color: #ff8a80; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { font-size: .95rem; color: var(--mist); }
.form-status.is-error { color: #ffb4ab; }
.form-status.is-ok { color: var(--cyan); }
.contact-form.is-sent .field, .contact-form.is-sent .field-row, .contact-form.is-sent .cf-turnstile-slot, .contact-form.is-sent button[type=submit] { display: none; }
.contact-form.is-sent .form-status { font-size: 1.2rem; }

/* AI production team */
.agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.agent { background: var(--white); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px); display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.agent h3 { font-size: 1.7rem; }
.agent-role { color: var(--cyan-deep); font-weight: 600; font-size: .92rem; margin: 6px 0 10px; }
.agent p:not(.agent-role) { color: var(--slate); }
.agent .btn { margin-top: 18px; }
.agent-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.agent-mark .disc { width: 30px; transform: rotate(var(--r)); }
.agent-herman { background: var(--ink); color: #fff; grid-column: span 3; grid-template-columns: 72px 1fr; }
.agent-herman .agent-mark { width: 72px; height: 72px; background: var(--cyan); }
.agent-herman .agent-mark .disc { background: var(--ink); width: 36px; }
.agent-herman p:not(.agent-role) { color: var(--mist); max-width: 38rem; }
.agent-herman .agent-role { color: var(--cyan); }
.btn-sm { min-height: 44px; padding: 0 20px; }

/* Herman chat */
.herman-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px; border-radius: 999px; border: 0; background: var(--ink); color: #fff;
  font: 600 1rem/1 var(--font); cursor: pointer; box-shadow: 0 14px 34px -12px rgba(0,0,0,.5);
  transition: transform .25s ease;
}
.herman-launch:hover { transform: translateY(-2px); }
.herman-launch[aria-expanded="true"] { display: none; }
.herman-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--cyan); display: grid; place-items: center; flex: none; }
.herman-avatar .disc { width: 18px; background: var(--ink); animation: herman-turn 6s ease-in-out infinite; }
@keyframes herman-turn { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(180deg); } 90% { transform: rotate(360deg); } }
.herman {
  position: fixed; right: 20px; bottom: 20px; z-index: 95; width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100vh - 40px));
  display: flex; flex-direction: column; background: var(--paper); border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.45); border: 1px solid var(--line);
}
.herman[hidden] { display: none; }
.herman-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--ink); color: #fff; }
.herman-head b { display: block; font-size: 1.05rem; }
.herman-head div span { font-size: .85rem; color: var(--mist); }
.herman-close { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 1.5rem; cursor: pointer; }
.herman-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 11px 14px; border-radius: 16px; font-size: .97rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.user { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg.typing { color: var(--slate); }
.msg.typing::after { content: "…"; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.herman-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.herman-chips button { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 8px 14px; font: 500 .9rem/1.2 var(--font); cursor: pointer; text-align: left; }
.herman-chips button:hover { background: var(--ink); color: #fff; }
.herman-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.herman-form input { flex: 1; min-width: 0; font: 400 1rem var(--font); border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 16px; }
.herman-form input:focus { outline: none; border-color: var(--cyan); }
.herman-form button { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--cyan); color: var(--ink); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.herman-form button:disabled { opacity: .5; cursor: default; }
.herman-note { font-size: .78rem; color: var(--slate); text-align: center; padding: 0 12px 10px; background: var(--white); }

@media (max-width: 980px) {
  .cta-grid { grid-template-columns: 1fr; }
  .agents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-herman { grid-column: span 2; }
}
@media (max-width: 720px) {
  .field-row { grid-template-columns: 1fr; }
  .agents { grid-template-columns: 1fr; }
  .agent-herman { grid-column: auto; grid-template-columns: 56px 1fr; }
  .agent-herman .agent-mark { width: 56px; height: 56px; }
  .herman { right: 12px; bottom: 12px; height: min(560px, calc(100vh - 24px)); }
  .herman-launch { right: 14px; bottom: 14px; }
}

/* ===================== v4 ===================== */
/* Facts band (replaces the white stat boxes) */
.facts-band { margin: clamp(56px, 8vw, 96px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.facts-band > div { padding: 26px 28px 4px 0; }
.facts-band > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.facts-band dt { font-family: var(--display-font); font-stretch: var(--display-stretch); font-weight: var(--display-weight); text-transform: var(--display-case); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; }
.facts-band dd { margin: 10px 0 0; color: var(--slate); max-width: 18rem; }
@media (max-width: 720px) {
  .facts-band { grid-template-columns: 1fr; }
  .facts-band > div, .facts-band > div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Logo strip: livelier, with a pause control (WCAG 2.2.2) */
.marquee-head { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 18px; }
.marquee-head .marquee-label { margin: 0; }
.marquee-toggle { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--slate); background: transparent; cursor: pointer; display: grid; place-items: center; }
.marquee-icon { width: 8px; height: 10px; border-left: 3px solid var(--slate); border-right: 3px solid var(--slate); }
.marquee-toggle[aria-pressed="true"] .marquee-icon { width: 0; height: 0; border: 0; border-left: 9px solid var(--slate); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.marquee { -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 { animation-duration: 40s; }
.marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-track li img { transition: opacity .25s ease, transform .25s ease; }
.marquee-track li:hover img { transform: scale(1.06); }

/* Contrast fixes (WCAG 1.4.11 non-text contrast) */
.field input, .field select, .field textarea { border-color: #8a9093; }
.herman-form input { border-color: #8f979b; }
.marquee-toggle:focus-visible, .herman-chips button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.form-privacy { font-size: .88rem; color: var(--mist); }
/* Reduced motion: logo strip starts paused (set in script) but can still be played */
@media (prefers-reduced-motion: reduce) {
  .marquee .marquee-track { animation: marquee 80s linear infinite !important; }
  .marquee.is-paused .marquee-track { animation-play-state: paused !important; }
}

/* ===================== Type: Manrope, sentence case ===================== */
.hero h1 { font-size: clamp(3.2rem, 8.4vw, 7.4rem); }
.cta h2, .cta-grid h2 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
/* Accordion titles and process steps, 15% smaller than before */
.service h3 { font-size: clamp(1.53rem, 3.06vw, 2.55rem); }
.step h3 { font-size: clamp(1.53rem, 2.55vw, 2.04rem); }

/* How we work: deliverable line */
.step .step-out { margin-top: 10px; font-size: .95rem; color: var(--ink); }
.step .step-out b { font-weight: 700; }

/* ---------- v5: privacy policy + footer links ---------- */
.form-privacy a { color: #fff; }
.herman-note a { color: var(--cyan-deep); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a[aria-current="page"] { color: #fff; }

.legal-hero h1 { font-size: clamp(3rem, 8vw, 6.6rem); }
.legal-updated { margin-top: 18px; font-size: .95rem; font-weight: 600; color: var(--cyan-deep); }

.legal-summary { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 52px); padding-right: clamp(28px, 22vw, 300px); }
.legal-summary::after { content: ""; position: absolute; right: clamp(28px, 4vw, 56px); bottom: clamp(28px, 4vw, 56px); width: clamp(110px, 13vw, 190px); aspect-ratio: 1; background: var(--cyan); border-radius: 50%; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.legal-summary h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.legal-summary ul { margin-top: 24px; display: grid; gap: 14px; max-width: 44rem; }
.legal-summary li { display: grid; grid-template-columns: 18px 1fr; gap: 14px; font-size: 1.08rem; line-height: 1.5; color: var(--mist); }
.legal-summary .disc { width: 14px; margin-top: 6px; }

.legal-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 40px clamp(32px, 6vw, 96px); margin-top: clamp(48px, 7vw, 96px); align-items: start; }
.legal-toc { position: sticky; top: 104px; }
.legal-toc p { font-weight: 700; margin-bottom: 14px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.legal-toc a { display: block; padding: 7px 0 7px 18px; margin-left: -2px; border-left: 2px solid transparent; color: var(--slate); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.legal-toc a:hover { color: var(--ink); }
.legal-toc a.is-current { color: var(--ink); font-weight: 600; border-left-color: var(--cyan); }

.legal-body { max-width: 44rem; }
.legal-body section { padding-bottom: clamp(36px, 4vw, 52px); scroll-margin-top: 104px; }
.legal-body section + section { padding-top: clamp(36px, 4vw, 52px); border-top: 1px solid var(--line); }
.legal-body h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 18px; }
.legal-body h3 { font-size: 1.15rem; letter-spacing: -0.01em; margin: 26px 0 10px; }
.legal-body p, .legal-body li { color: var(--slate); font-size: 1.06rem; line-height: 1.65; }
.legal-body p + p, .legal-body ul + p, .legal-body p + ul { margin-top: 1em; }
.legal-body ul { display: grid; gap: 10px; }
.legal-body li { position: relative; padding-left: 26px; }
.legal-body li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; background: var(--cyan); border-radius: 50%; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.legal-body b { color: var(--ink); font-weight: 700; }
.legal-body a { color: var(--cyan-deep); font-weight: 600; }

@media (max-width: 860px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-summary { padding-right: clamp(28px, 4vw, 52px); padding-bottom: 150px; }
}
