/* ==========================================================================
   GCR — Editorial / technical design system
   Swiss editorial · controlled brutalism · square geometry · 1px borders
   ========================================================================== */

:root {
  /* Palette */
  --black: #090B0A;
  --black-abs: #000000;
  --offwhite: #F3F2ED;
  --white: #FFFFFF;
  /* Brand accent. Variable/class names stay `--red` / `--*--red` so the whole system
     can be re-themed from these two lines alone. Currently set to the GCR app's brand
     orange so the site matches the product. (Original signal red: #ED3028 / #F8DFDC.) */
  --red: #E8830C;
  --red-soft: #FDF1E3;
  --gray: #6D716E;
  --light-on-black: #C7CBC8;
  --border-on-dark: rgba(255, 255, 255, 0.20);
  --border-on-light: rgba(9, 11, 10, 0.20);

  /* Type */
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --serif: Georgia, 'Times New Roman', serif;

  /* Layout */
  --maxw: 1600px;
  --pad: 56px;
  --header-h: 84px;
  --header-h-scrolled: 70px;

  /* Motion */
  --t: 180ms cubic-bezier(0.2, 0, 0.2, 1);
  --t-fast: 160ms cubic-bezier(0.2, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--black);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--red); color: var(--white); }

/* --------------------------------------------------------------------------
   Primitives
   -------------------------------------------------------------------------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  width: 100%;
}

/* Monospaced micro-label: 8–10px, uppercase */
.label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0;
}
.label--sm { font-size: 8px; letter-spacing: 0.18em; }
.label--red { color: var(--red); }
.label--light { color: var(--light-on-black); }

.num { font-family: var(--mono); color: var(--red); }

/* Editorial headings — medium weight, tight leading */
.h-hero,
.h-page,
.h-section {
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
}
.h-hero { font-size: 88px; }
.h-page { font-size: 84px; line-height: 1.0; }
.h-section { font-size: 72px; line-height: 1.02; }
/* Mid-weight section heading used inside split/product layouts */
.h-section--md { font-size: 56px; margin: 22px 0 24px; }

.em-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
  letter-spacing: -0.01em;
}

.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--gray);
  max-width: 690px;
  margin: 0;
}
.lede--light { color: var(--light-on-black); }

/* Buttons — square, no radius */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background var(--t), color var(--t), transform var(--t), border-color var(--t);
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--black); }
.btn--outline-light { border-color: var(--border-on-dark); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--black); }
.btn--outline-dark { border-color: var(--border-on-light); color: var(--black); }
.btn--outline-dark:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* Underlined text link */
.tlink {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  transition: color var(--t), border-color var(--t);
}
.tlink:hover { color: var(--red); border-color: var(--red); }
.tlink--light { color: var(--white); }

/* Square outlined arrow control */
.arrow-btn {
  width: 46px; height: 46px;
  border: 1px solid var(--border-on-light);
  display: grid; place-items: center;
  font-size: 15px;
  transition: background var(--t), color var(--t), border-color var(--t);
  flex: none;
}
.arrow-btn:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: height var(--t), background var(--t), border-color var(--t), color var(--t);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}

/* Home starts dark; interior pages start light */
.header--onDark { background: var(--black-abs); color: var(--white); }
.header--onLight { background: var(--offwhite); color: var(--black); border-bottom-color: var(--border-on-light); }

.header.is-scrolled {
  height: var(--header-h-scrolled);
  background: var(--offwhite);
  color: var(--black);
  border-bottom-color: var(--border-on-light);
}

/* The header starts dark and turns off-white on scroll, but the Contact button
   kept its light-on-dark treatment — white text on an off-white bar, i.e.
   invisible. Restate it for the scrolled/light header. */
.header.is-scrolled .btn--outline-light,
.header--onLight .btn--outline-light {
  border-color: var(--border-on-light);
  color: var(--black);
}
.header.is-scrolled .btn--outline-light:hover,
.header--onLight .btn--outline-light:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.brand { display: flex; align-items: center; }
/* The logo is a portrait lockup (emblem over wordmark) and now carries the
   brand on its own, so it needs more height than it did beside the text. */
.brand__mark { height: 50px; width: auto; }
.header--onDark:not(.is-scrolled) .brand__mark--dark { display: none; }
.header--onDark:not(.is-scrolled) .brand__mark--light { display: block; }
.brand__mark--light { display: none; }
.header.is-scrolled .brand__mark--light,
.header--onLight .brand__mark--light { display: none; }
.header.is-scrolled .brand__mark--dark,
.header--onLight .brand__mark--dark { display: block; }

.nav { display: flex; align-items: center; gap: 38px; }
.nav__link {
  position: relative;
  font-size: 14px; font-weight: 500;
  padding: 4px 0;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--red);
  transition: width var(--t-fast);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--red); }

.lang {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  display: flex; gap: 6px; align-items: center;
}
/* Each option is a real link to the other language's page; the current
   language is a plain span. */
.lang__opt { padding: 2px; opacity: 0.5; transition: opacity var(--t-fast), color var(--t-fast); }
.lang__opt.is-active { opacity: 1; color: var(--red); }
a.lang__opt:hover { opacity: 1; }

.header .btn { padding: 13px 20px; font-size: 12px; }

.burger {
  display: none;
  width: 44px; height: 44px;   /* 44px is the minimum comfortable tap target */
  border: 1px solid currentColor;
  place-items: center;
}
.burger span { display: block; width: 16px; height: 1px; background: currentColor; position: relative; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 16px; height: 1px; background: currentColor;
}
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }

.mobile-panel {
  position: fixed; left: 0; right: 0; top: var(--header-h);
  background: var(--offwhite);
  border-top: 1px solid var(--border-on-light);
  border-bottom: 1px solid var(--border-on-light);
  z-index: 99;
  display: none;
}
.mobile-panel.is-open { display: block; }
.mobile-panel a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  font-size: 26px; font-weight: 500; letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border-on-light);
}
.mobile-panel a:last-child { border-bottom: 0; }

/* The .lang toggle in the header is hidden below 980px, so the language
   switch lives here on mobile. Set smaller than the nav items — it is a
   setting, not a destination. */
.mobile-panel__lang {
  font-size: 17px !important;
  font-family: var(--mono);
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  color: var(--gray);
  border-top: 1px solid var(--border-on-light);
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--black-abs);
  color: var(--white);
  min-height: 960px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  overflow: hidden;
}
/* Subtle 120px technical grid, faded before the right edge */
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 120px 120px;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 62%, transparent 88%);
  mask-image: linear-gradient(to right, #000 0%, #000 62%, transparent 88%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px;
  align-items: center;
  flex: 1;
  padding-bottom: 90px;
}
.hero__eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.hero__title { margin: 0 0 32px; color: var(--white); }
.hero__actions { display: flex; align-items: center; gap: 34px; margin-top: 46px; flex-wrap: wrap; }

/* Right: oversized emblem with vertical red line + terminals */
.hero__figure { position: relative; display: flex; justify-content: center; align-items: center; }
.hero__rule {
  position: absolute; left: 6%; top: 4%; bottom: 4%;
  width: 1px; background: var(--red);
}
.hero__rule::before, .hero__rule::after {
  content: ''; position: absolute; left: -3px; width: 7px; height: 7px; background: var(--red);
}
.hero__rule::before { top: 0; }
.hero__rule::after { bottom: 0; }
.hero__emblem { width: min(460px, 100%); filter: brightness(0) invert(1); opacity: 0.94; }
.hero__figLabels {
  position: absolute; top: 0; left: 12%;
  display: flex; gap: 18px;
}
.hero__figNote {
  position: absolute; right: 0; bottom: 6%;
  max-width: 200px; text-align: right;
}

/* Bottom rail */
.rail {
  position: relative;
  height: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-on-dark);
}
.rail__cell {
  display: flex; align-items: center; gap: 12px;
  padding: 0 26px;
  border-right: 1px solid var(--border-on-dark);
  transition: background var(--t), color var(--t);
}
.rail__cell:last-child { border-right: 0; }
.rail__cell:hover { background: var(--red); }
.rail__cell:hover .label { color: var(--white); }
.rail__plus { color: var(--red); font-size: 13px; }
.rail__cell:hover .rail__plus { color: var(--white); }

/* --------------------------------------------------------------------------
   Red principles strip
   -------------------------------------------------------------------------- */

.principles { background: var(--red); color: var(--white); }
.principles__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.principles__col {
  padding: 62px 44px 66px;
  border-right: 1px solid rgba(255,255,255,0.25);
}
.principles__col:first-child { padding-left: 0; }
.principles__col:last-child { border-right: 0; padding-right: 0; }
.principles__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.principles__head .label { color: rgba(255,255,255,0.75); }
.principles__title { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.principles__text { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,0.9); max-width: 380px; }

/* --------------------------------------------------------------------------
   Section shell
   -------------------------------------------------------------------------- */

.section { padding: 130px 0; }
.section--white { background: var(--white); }
.section--offwhite { background: var(--offwhite); }
.section--black { background: var(--black); color: var(--white); }

/* Heading left, lede right. The lede is nudged off the bottom edge so its last
   line sits on the heading's baseline rather than below it. */
.section__head {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 60px; align-items: end;
  margin-bottom: 76px;
}
.section__head .lede { padding-bottom: 8px; }
.section__eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.section__eyebrow--spaced { margin-top: 110px; }

/* Secondary heading inside a section */
.h-section--sub { font-size: 44px; max-width: 820px; margin-bottom: 44px; }
@media (max-width: 1200px) { .h-section--sub { font-size: 38px; } }
@media (max-width: 720px)  {
  .h-section--sub { font-size: 30px; margin-bottom: 30px; }
  .section__eyebrow--spaced { margin-top: 70px; }
}

/* --------------------------------------------------------------------------
   Expertise rows
   -------------------------------------------------------------------------- */

.exp { border-top: 2px solid var(--black); }
.exp__row {
  display: grid;
  grid-template-columns: 78px 1fr 260px 60px;
  align-items: center;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border-on-light);
  transition: background var(--t), color var(--t), padding var(--t);
}
.exp__row:hover {
  background: var(--red); color: var(--white);
  padding-left: 22px; padding-right: 22px;
}
.exp__row:hover .num,
.exp__row:hover .label { color: var(--white); }
.exp__num { font-family: var(--mono); font-size: 15px; color: var(--red); }
.exp__title { font-size: 29px; font-weight: 500; letter-spacing: -0.02em; }
.exp__arrow { text-align: right; font-size: 18px; }

/* --------------------------------------------------------------------------
   Products (staged composition)
   -------------------------------------------------------------------------- */

.stage { position: relative; }
.stage__ghost {
  position: absolute; right: 0; top: -30px;
  text-align: right;
  font-size: 128px; font-weight: 600; line-height: 0.92; letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(9,11,10,0.16);
  pointer-events: none; user-select: none;
}
.cards2 { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 150px; }
.pcard {
  min-height: 420px;
  padding: 38px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background var(--t), color var(--t);
}
.pcard--black { background: var(--black); color: var(--white); }
.pcard--red { background: var(--red); color: var(--white); }
.pcard:hover { background: var(--offwhite); color: var(--black); }
.pcard:hover .label { color: var(--gray); }
.pcard__title { font-size: 52px; font-weight: 500; line-height: 1.0; letter-spacing: -0.03em; margin: 26px 0 0; }
.pcard__desc { margin: 20px 0 0; font-size: 16px; line-height: 1.55; opacity: 0.82; max-width: 420px; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 40px; }
.pcard__arrow { font-size: 20px; }
.pcard--red .label { color: rgba(255,255,255,0.80); }

/* --------------------------------------------------------------------------
   Interface gallery (app screenshots)
   Square bordered panels, numbered, strict modular grid — no device mockups.

   The captures come off real devices, so their intrinsic sizes drift a few
   pixels either way (382–394 wide, 856–867 tall). Every shot is therefore
   rendered into a fixed-ratio frame with object-fit, so the panels, the images
   and the captions all land on the same lines regardless of the source file.
   -------------------------------------------------------------------------- */

/* No panel, no border, no fill — the captures sit straight on the page with
   their label above and their description below.
   All six run in one horizontal snap-scrolling rail. */
.screens {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;   /* momentum on iOS */
  overscroll-behavior-x: contain;      /* don't trigger back-swipe / page bounce */
  padding-bottom: 28px;                /* clearance for the scrollbar */
}

/* Slim rail-style scrollbar — the only affordance a mouse user gets, so it
   stays visible rather than overlay-hidden. */
.screens { scrollbar-width: thin; scrollbar-color: var(--black) rgba(9, 11, 10, 0.12); }
.screens::-webkit-scrollbar { height: 6px; }
.screens::-webkit-scrollbar-track { background: rgba(9, 11, 10, 0.12); }
.screens::-webkit-scrollbar-thumb { background: var(--black); }
.screens::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* Keyboard focus lands on the rail itself (it is tabbable) */
.screens:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }

.screen {
  flex: 0 0 272px;
  scroll-snap-align: start;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  display: flex; flex-direction: column;
}

.screen__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}

/* Transparent-background captures on a normalised 720x1400 canvas, every
   phone scaled to the same height so tops and bottoms line up across a row.
   `height: auto` keeps the width/height attributes (presentational hints)
   from overriding the ratio. */
.screen__shot {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  aspect-ratio: 641 / 1300;
  object-fit: contain;
}

.screen__cap {
  margin: 16px 0 0;
  font-size: 14px; line-height: 1.5; color: var(--gray);
}


@media (max-width: 1100px) {
  .screen { flex-basis: 248px; }
}
@media (max-width: 720px) {
  /* Under a full column width so the next card peeks in and the rail
     reads as scrollable without any extra chrome. */
  .screens { gap: 20px; }
  .screen { flex-basis: 76vw; }
}

/* --------------------------------------------------------------------------
   Insights grid
   -------------------------------------------------------------------------- */

.insights { border-top: 2px solid var(--black); display: grid; grid-template-columns: repeat(3, 1fr); }
.icard {
  padding: 34px 30px 30px;
  border-right: 1px solid var(--border-on-light);
  border-bottom: 1px solid var(--border-on-light);
  display: flex; flex-direction: column; min-height: 340px;
}
.icard:last-child { border-right: 0; }
.icard__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.icard__title { font-size: 29px; font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; }
.icard__sum { font-size: 15px; color: var(--gray); margin: 0; }
.icard__foot { margin-top: auto; display: flex; justify-content: flex-end; padding-top: 26px; }

/* --------------------------------------------------------------------------
   Download band
   -------------------------------------------------------------------------- */

.download { background: var(--black); color: var(--white); border-top: 1px solid var(--border-on-dark); }
.download__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px;
  align-items: center; padding: 110px 0;
}
.download__title { font-size: 62px; font-weight: 500; line-height: 1.02; letter-spacing: -0.03em; margin: 26px 0 24px; }
.download__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

/* Square, system-consistent store button (swap for Google's official badge before launch) */
.store-btn {
  display: inline-flex; align-items: center; gap: 18px;
  border: 1px solid var(--border-on-dark);
  padding: 20px 28px; min-width: 300px;
  transition: background var(--t), color var(--t), transform var(--t), border-color var(--t);
}
.store-btn:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.store-btn:hover .label { color: var(--white); }
.store-btn__mark { font-family: var(--mono); font-size: 22px; line-height: 1; color: var(--red); }
.store-btn:hover .store-btn__mark { color: var(--white); }
.store-btn__text { display: flex; flex-direction: column; gap: 4px; }
.store-btn__name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.store-btn__arrow { margin-left: auto; font-size: 18px; }

.download__specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border-on-dark); }
.download__specs div { padding: 22px 0; border-right: 1px solid var(--border-on-dark); }
.download__specs div:last-child { border-right: 0; }
.download__specs strong { display: block; font-size: 22px; font-weight: 500; margin-top: 8px; letter-spacing: -0.02em; }

@media (max-width: 980px) {
  .download__grid { grid-template-columns: 1fr; gap: 40px; padding: 80px 0; }
}
@media (max-width: 720px) {
  .download__title { font-size: 36px; }
  .store-btn { min-width: 0; width: 100%; }
  .download__specs { grid-template-columns: 1fr; }
  .download__specs div { border-right: 0; border-bottom: 1px solid var(--border-on-dark); }
  .download__specs div:last-child { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer { background: var(--black-abs); color: var(--light-on-black); padding-top: 0; }
.footer__main {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px;
  padding: 96px 0 70px;
  border-top: 1px solid var(--border-on-dark);
}
.footer__cta { font-size: 54px; font-weight: 500; line-height: 1.04; letter-spacing: -0.03em; color: var(--white); display: inline-flex; align-items: flex-start; gap: 20px; margin-top: 22px; }
.footer__cta:hover .footer__arrow { color: var(--red); transform: translate(3px, -3px); }
.footer__arrow { color: var(--red); font-size: 34px; transition: transform var(--t), color var(--t); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer__col h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); margin: 0 0 22px; font-weight: 400; }
.footer__col a, .footer__col p { display: block; font-size: 15px; color: var(--light-on-black); margin: 0 0 12px; transition: color var(--t-fast); }
.footer__col a:hover { color: var(--red); }
.footer__bottom {
  border-top: 1px solid var(--border-on-dark);
  padding: 22px 0 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer__bottom .label { color: var(--gray); }
.status { display: flex; align-items: center; gap: 8px; }
.status__dot { width: 6px; height: 6px; background: var(--red); display: block; }

/* --------------------------------------------------------------------------
   Interior hero
   -------------------------------------------------------------------------- */

.ihero {
  position: relative;
  background: var(--offwhite);
  min-height: 650px;
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 70px); padding-bottom: 90px;
  border-bottom: 1px solid var(--black);
}
.ihero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: end; width: 100%; }
.ihero__title { margin: 26px 0 0; }
.ihero__marker { position: absolute; right: var(--pad); bottom: 34px; width: 74px; height: 3px; background: var(--red); }

/* --------------------------------------------------------------------------
   Services page
   -------------------------------------------------------------------------- */

.svc-index { position: sticky; top: var(--header-h-scrolled); z-index: 50; background: var(--black); color: var(--white); }
.svc-index__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.svc-index__cell {
  padding: 20px 24px; border-right: 1px solid var(--border-on-dark);
  display: flex; align-items: center; gap: 12px;
  transition: background var(--t);
}
.svc-index__cell:last-child { border-right: 0; }
.svc-index__cell:hover { background: var(--red); }
.svc-index__cell:hover .label { color: var(--white); }
.svc-index__name { font-size: 13px; font-weight: 500; }

.svc { padding: 120px 0; }
.svc--white { background: var(--white); }
.svc--offwhite { background: var(--offwhite); }
.svc--black { background: var(--black); color: var(--white); }
.svc--red { background: var(--red); color: var(--white); }
.svc__grid { display: grid; grid-template-columns: 90px 1fr 1.4fr; gap: 40px; align-items: start; }
.svc__title { font-size: 52px; font-weight: 500; line-height: 1.02; letter-spacing: -0.03em; margin: 0; }
.svc__meta { margin-top: 18px; }

.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.caps--4 { grid-template-columns: repeat(4, 1fr); margin-top: 56px; }
.cap { border: 1px solid var(--border-on-light); padding: 24px; }
.svc--black .cap, .svc--red .cap { border-color: var(--border-on-dark); }
.cap h4 { margin: 12px 0 8px; font-size: 18px; font-weight: 600; }
.cap p { margin: 0; font-size: 14px; color: var(--gray); }
.svc--black .cap p, .svc--red .cap p { color: var(--light-on-black); }
.outcome { margin-top: 40px; border-left: 3px solid var(--red); padding: 8px 0 8px 22px; font-size: 24px; font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }

/* On the red panel the accent can't carry meaning — restate the type colours
   once here rather than per element. */
.svc--red .label { color: rgba(255,255,255,0.80); }
.svc--red .lede { color: rgba(255,255,255,0.92); }
.svc--red .cap .label { color: var(--white); }
.svc--red .cap p { color: rgba(255,255,255,0.86); }
.svc--red .outcome { border-left-color: var(--white); }

@media (max-width: 1200px) { .caps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .caps--4 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Product page — technical visualizations
   -------------------------------------------------------------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.viz {
  background: var(--white);
  border: 1px solid var(--border-on-light);
  padding: 26px;
  box-shadow: 14px 14px 0 var(--red-soft);
}
.viz--dark { background: var(--black); border-color: var(--border-on-dark); box-shadow: 14px 14px 0 rgba(232,131,12,0.35); }
.viz__head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-on-light); padding-bottom: 12px; margin-bottom: 22px; }
.viz--dark .viz__head { border-color: var(--border-on-dark); }
.bar { display: grid; grid-template-columns: 96px 1fr 52px; gap: 14px; align-items: center; margin-bottom: 14px; }
.bar__track { height: 8px; background: rgba(9,11,10,0.10); position: relative; }
.viz--dark .bar__track { background: rgba(255,255,255,0.14); }
.bar__fill { position: absolute; inset: 0 auto 0 0; background: var(--black); }
.viz--dark .bar__fill { background: var(--light-on-black); }
.bar__fill--red { background: var(--red); }
.bar__val { font-family: var(--mono); font-size: 11px; text-align: right; }
.readout { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border-on-light); margin-top: 22px; }
.viz--dark .readout { border-color: var(--border-on-dark); }
.readout div { padding: 16px 0; border-right: 1px solid var(--border-on-light); }
.viz--dark .readout div { border-color: var(--border-on-dark); }
.readout div:last-child { border-right: 0; }
.readout strong { display: block; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin-top: 6px; }

/* --------------------------------------------------------------------------
   Articles page
   -------------------------------------------------------------------------- */

.search-field {
  width: 100%; border: 0; border-bottom: 2px solid var(--black);
  background: transparent; padding: 16px 0; font-family: var(--sans);
  font-size: 34px; font-weight: 500; letter-spacing: -0.02em; color: var(--black);
}
.search-field::placeholder { color: rgba(9,11,10,0.30); }
.search-field:focus { outline: none; border-color: var(--red); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.filter {
  border: 1px solid var(--border-on-light); padding: 10px 18px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.filter:hover, .filter.is-active { background: var(--red); color: var(--white); border-color: var(--red); }

.alist { border-top: 2px solid var(--black); margin-top: 60px; }
.arow {
  display: grid; grid-template-columns: 78px 200px 1fr 60px; gap: 26px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--border-on-light);
  transition: padding var(--t), background var(--t);
}
.arow:hover { padding-left: 20px; padding-right: 20px; background: var(--white); }
.arow__title { font-size: 29px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.14; margin: 0 0 8px; }
.arow__sum { font-size: 15px; color: var(--gray); margin: 0; }

/* Article detail */
.article { display: grid; grid-template-columns: 200px 1fr; gap: 60px; }
.article__index { margin-top: 16px; line-height: 2; }
.h-page--article { font-size: 76px; }

.reading { max-width: 720px; }
.reading p { font-family: var(--serif); font-size: 19px; line-height: 1.75; color: #232725; margin: 0 0 26px; }
.reading h3 { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; margin: 48px 0 16px; }

@media (max-width: 1200px) { .h-page--article { font-size: 58px; } }
@media (max-width: 980px) {
  /* 200px + 60px gap left the prose ~75px wide on a phone and blew out the page */
  .article { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 720px) {
  .h-page--article { font-size: 40px; }
  .reading p { font-size: 17px; }
  .reading h3 { font-size: 24px; margin-top: 36px; }
}

/* Legal links in the footer bottom row */
.footer__bottom .label a { color: var(--gray); transition: color var(--t-fast); }
.footer__bottom .label a:hover { color: var(--red); }

/* --------------------------------------------------------------------------
   Legal / long-form documents (privacy, terms, account deletion)
   -------------------------------------------------------------------------- */

.legal { display: grid; grid-template-columns: 250px 1fr; gap: 70px; align-items: start; }
.legal__index { position: sticky; top: 130px; }
.legal__indexTitle { display: block; margin-bottom: 14px; }
.legal__index a {
  display: block; padding: 9px 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray); border-bottom: 1px solid var(--border-on-light);
  transition: color var(--t-fast), padding var(--t-fast);
}
.legal__index a:hover { color: var(--red); padding-left: 6px; }

.legal__body { max-width: 780px; }
.legal__body h2 {
  font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15;
  margin: 58px 0 18px; padding-top: 22px; border-top: 1px solid var(--border-on-light);
}
.legal__body > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
/* Closing heading that shouldn't carry the section rule */
.legal__body h2.h--flush { border-top: 0; padding-top: 0; }
.legal__body h3 { font-size: 18px; font-weight: 600; margin: 30px 0 10px; }
.legal__body p { font-size: 16px; line-height: 1.65; color: #2C302E; margin: 0 0 16px; }
.legal__body ul { margin: 0 0 18px; padding-left: 20px; }
.legal__body li { font-size: 16px; line-height: 1.65; color: #2C302E; margin-bottom: 9px; }
.legal__body strong { font-weight: 600; color: var(--black); }
.legal__body a { color: var(--red); border-bottom: 1px solid currentColor; }

/* Callout panel for critical statements */
.callout { border: 1px solid var(--black); padding: 26px 28px; margin: 28px 0; background: var(--white); }
.callout--red { border-color: var(--red); background: var(--red-soft); }
.callout p:last-child { margin-bottom: 0; }

/* Numbered step list */
.steps { border-top: 2px solid var(--black); margin: 26px 0 8px; padding-left: 0; }
.steps li {
  list-style: none; display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--border-on-light); margin: 0;
}
.steps .num { font-size: 15px; }

@media (max-width: 980px) {
  .legal { grid-template-columns: 1fr; gap: 34px; }
  .legal__index { display: none; }
}
@media (max-width: 720px) {
  .legal__body h2 { font-size: 24px; }
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact { display: grid; grid-template-columns: 40% 60%; min-height: 100vh; }
.contact__left { background: var(--black); color: var(--white); padding: calc(var(--header-h) + 90px) var(--pad) 90px; }
.contact__right { background: var(--white); padding: calc(var(--header-h) + 90px) var(--pad) 90px; }

.contact__title { font-size: 64px; margin: 24px 0 28px; }
.contact__lede { max-width: 420px; }

/* Details block — one rule, evenly spaced rows, labels on a common left edge */
.contact__meta { margin-top: 70px; border-top: 1px solid var(--border-on-dark); padding-top: 34px; }
.contact__meta dl { margin: 0; }
.contact__meta dt { margin-bottom: 10px; }
.contact__meta dt + dd { margin: 0 0 34px; color: var(--light-on-black); }
.contact__meta dd:last-child { margin-bottom: 0; }

/* Hold the form to a readable measure instead of letting inputs run the
   full width of a 60% column. */
.form { max-width: 560px; }
.form__title { font-size: 44px; margin: 20px 0 46px; }

@media (max-width: 1200px) { .contact__title { font-size: 48px; } }
@media (max-width: 720px)  {
  .contact__title { font-size: 38px; }
  .form__title { font-size: 32px; margin-bottom: 34px; }
}

/* Two short fields side by side; long fields span the row. */
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field { margin-bottom: 36px; }
.field label {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gray); margin-bottom: 10px;
}
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid var(--border-on-light);
  background: transparent; padding: 12px 0; font-family: var(--sans); font-size: 17px;
  color: var(--black); line-height: 1.4;
  transition: border-color var(--t-fast);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(9,11,10,0.32); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); }
.field textarea { resize: vertical; min-height: 110px; }

/* The native select renders with its own chrome and never matches the
   underlined inputs — strip it and draw the chevron ourselves. */
.field select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  border-radius: 0;
  padding-right: 28px;
  cursor: pointer;
}
.select-wrap { position: relative; display: block; }
.select-wrap::after {
  content: ''; position: absolute; right: 6px; bottom: 21px;
  width: 7px; height: 7px;
  border-right: 1px solid var(--black); border-bottom: 1px solid var(--black);
  transform: rotate(45deg); transform-origin: center;
  pointer-events: none;
  transition: border-color var(--t-fast);
}
.select-wrap:focus-within::after { border-color: var(--red); }

.form__note { margin-top: 24px; }

@media (max-width: 720px) {
  .form__row { grid-template-columns: 1fr; gap: 0; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .h-hero { font-size: 68px; }
  .h-section { font-size: 56px; }
  .h-page { font-size: 64px; }
  .stage__ghost { font-size: 88px; }
  .pcard__title { font-size: 40px; }
  .footer__cta { font-size: 42px; }
}

@media (max-width: 980px) {
  :root { --pad: 36px; }
  .nav, .header .btn, .lang { display: none; }
  .burger { display: grid; }
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 60px; }
  .hero__figure { display: none; }
  .section__head { grid-template-columns: 1fr; gap: 28px; }
  .principles__grid { grid-template-columns: 1fr; }
  .principles__col { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.25); padding: 40px 0; }
  .principles__col:last-child { border-bottom: 0; }
  .cards2 { grid-template-columns: 1fr; margin-top: 90px; }
  .insights { grid-template-columns: 1fr; }
  .icard { border-right: 0; min-height: auto; }
  .footer__main { grid-template-columns: 1fr; gap: 50px; }
  .ihero__grid { grid-template-columns: 1fr; gap: 30px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .svc__grid { grid-template-columns: 1fr; gap: 24px; }
  .svc-index__grid { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; min-height: auto; }
  .contact__left, .contact__right { padding-left: 36px; padding-right: 36px; }
  .arow { grid-template-columns: 60px 1fr 46px; }
  .arow__meta { display: none; }
  .exp__row { grid-template-columns: 60px 1fr 40px; }
  .exp__cat { display: none; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; }
  .h-hero { font-size: 50px; }
  .h-section { font-size: 44px; }
  .h-page { font-size: 44px; }
  .lede { font-size: 16px; }
  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero__actions { gap: 20px; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
  .rail { grid-template-columns: repeat(2, 1fr); }
  .rail__cell:nth-child(n+3) { display: none; }
  .rail__cell:nth-child(2) { border-right: 0; }
  .section { padding: 84px 0; }
  .stage__ghost { font-size: 52px; top: -10px; }
  .pcard { min-height: 340px; padding: 26px; }
  .pcard__title { font-size: 34px; }
  .exp__title { font-size: 22px; }
  .icard__title, .arow__title { font-size: 24px; }
  .footer__cta { font-size: 32px; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__main { padding: 60px 0 50px; }
  .caps { grid-template-columns: 1fr; }
  .search-field { font-size: 22px; }
  .svc-index__grid { grid-template-columns: 1fr; }
  .svc-index__cell { border-right: 0; border-bottom: 1px solid var(--border-on-dark); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
}
