@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/hanken.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plexmono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plexmono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

/* ==========================================================================
   Ace Digital Hive  (v2)
   --------------------------------------------------------------------------
   ALL BRAND COLOURS LIVE IN THE :root BLOCK BELOW. Change them there and the
   whole site changes, including the 3D background (hive3d.js reads these
   same variables). Do not hard-code colours anywhere else.
   ========================================================================== */

:root {
  /* --- Brand colours: THIS IS THE ONE PLACE TO EDIT --------------------- */
  /* Amber, straight from the logo. Brighter than the old #F6A21E and
     actually scores better on dark: 10.7:1 against 9.4:1. */
  --honey:        #FDB218;
  --honey-deep:   #E09A0C;   /* hover / pressed */
  --honey-soft:   #FFD585;   /* small amber text, 9:1+ on dark */

  /* Teal. The logo teal (#066166) is only 2.7:1 on dark, so it is used for
     the mark and large shapes only. --teal-lift is the on-screen version
     for anything small: same hue, 7:1 on dark. */
  --teal:         #066166;   /* brand teal, logo and large fills only */
  --teal-mid:     #0E8B94;   /* mid teal, large text and strokes */
  --teal-lift:    #2FB3BC;   /* small text, lines, icons */
  --teal-soft:    #7FD4DA;   /* lightest, 10.4:1 on dark */

  --cream:        #F2EFE7;   /* the light section */

  /* The page ground is now the teal-tinted near-black from the app icon,
     not a neutral one, so the site reads as the same file as the logo. */
  --ink:          #061A22;
  --ink-2:        #0B2230;
  --ink-3:        #112D3A;

  /* --- Text on dark ----------------------------------------------------- */
  --text:         #FFFFFF;
  --text-soft:    #DCE6EA;   /* body copy, ~13:1 on --ink */
  --text-mute:    #A6B6BD;   /* small text, ~7.5:1 on --ink */

  /* --- Text on the cream section ---------------------------------------- */
  --ink-on-cream:   #14161D;
  --muted-on-cream: #4A505F;

  --line:         rgba(127, 212, 218, 0.16);
  --line-strong:  rgba(127, 212, 218, 0.30);
  --glass:        #0E2733;
  --glass-solid:  #061A22;

  --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter:       clamp(20px, 5vw, 120px);
  --section-y:    clamp(76px, 8vw, 112px);
  --radius:       18px;
  --radius-lg:    22px;
  --maxw:         1200px;
  --measure:      62ch;      /* longest comfortable reading line */
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: clamp(34px, 5.4vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.9vw, 44px); }
h3 { font-size: clamp(19px, 1.6vw, 22px); }

p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: 12px 20px; background: var(--honey); color: var(--ink);
  font-family: var(--font-display); font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Small label type: monospace, never below 13px, always 4.5:1 or better */
.label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.page { position: relative; z-index: 1; }

/* A still, very faint honeycomb texture on the page background. Static by
   design: nothing moves behind body text anywhere on this site. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    radial-gradient(760px 520px at 78% 8%, rgba(246, 162, 30, 0.09), transparent 62%),
    radial-gradient(620px 460px at 12% 88%, rgba(246, 162, 30, 0.05), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96'%3E%3Cpath d='M0 16 L28 0 L56 16 L56 48 L28 64 L0 48 Z M28 64 L28 96' fill='none' stroke='%23ffffff' stroke-opacity='0.035' stroke-width='1'/%3E%3C/svg%3E");
}

/* Decorative outline words. aria-hidden in the markup so screen readers
   never read "FUNNELS" aloud mid-sentence. */
.ghost-word {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(90px, 15vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.05);
  pointer-events: none; user-select: none; white-space: nowrap;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* overflow:hidden clips the decorative ghost words so they can bleed past the
   edge without creating a horizontal scrollbar. The sticky header lives
   outside any <section>, so this does not affect it. */
section { position: relative; overflow: hidden; }

.band { padding-block: var(--section-y); }
.band--solid { background: var(--ink-2); }

/* The one light section, so the page is not dark top to bottom. It also makes
   the amber CTA band hit harder. */
.band--cream {
  background: var(--cream);
  color: var(--muted-on-cream);
}
.band--cream h2, .band--cream h3 { color: var(--ink-on-cream); }
.band--cream .label { color: #6B5633; }
.band--cream .eyebrow { color: #8A5A06; }
.band--cream .eyebrow::before { background: var(--honey-deep); }

/* Everything inside the light section needs dark text. Without these, any
   rule that sets a light colour for the dark theme survives into the cream
   band and turns near-invisible. */
.band--cream p,
.band--cream span,
.band--cream li,
.band--cream summary,
.band--cream .lead { color: var(--muted-on-cream); }
.band--cream summary,
.band--cream .faq summary { color: var(--ink-on-cream); }
.band--cream .faq details p { color: var(--muted-on-cream); }
.band--cream .member-role,
.band--cream .fact b,
.band--cream .week-row b,
.band--cream .built-with b,
.band--cream .card-tags { color: #8A5A06; }
.band--cream .faq details,
.band--cream .week-row,
.band--cream .fact,
.band--cream .contact-row { border-color: rgba(0, 0, 0, 0.14); }
.band--cream .faq summary::after { color: var(--honey-deep); }
.band--cream .card-icon { background: rgba(217, 135, 26, 0.18); color: #8A5A06; }

/* Hexagon-edged divider between sections, instead of a straight line */
.hex-divider {
  height: 26px;
  background-repeat: repeat-x;
  background-position: center;
  background-size: 48px 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='26'%3E%3Cpath d='M0 13 L12 1 L36 1 L48 13 L36 25 L12 25 Z' fill='none' stroke='%23F6A21E' stroke-opacity='0.22' stroke-width='1'/%3E%3C/svg%3E");
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey-soft);
}
.eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 12px; height: 14px;
  background: var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* ---- Centring rules ------------------------------------------------------
   Short, headline-like text is centred. Long reading text stays left inside
   a centred column. That mix is what stops the page reading as a template.
   -------------------------------------------------------------------------- */

.section-head {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; text-align: center;
  max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px);
}
.section-head p { font-size: clamp(16px, 1.3vw, 18px); max-width: var(--measure); }



/* Long-form reading text: left-aligned, never wider than the measure */
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 18px; }

.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; max-width: var(--measure); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
   Buttons  (near-black on amber everywhere, never pale)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  border: 0; border-radius: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--honey); color: #0B0D13; }
.btn-primary:hover { background: var(--honey-deep); color: #0B0D13; }

.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--honey); color: var(--honey-soft); }

.btn-dark { background: #0B0D13; color: #FFFFFF; }
.btn-dark:hover { background: var(--ink-2); color: #FFFFFF; }

.btn-outline-dark { background: transparent; color: #0B0D13; border: 1.5px solid #0B0D13; }
.btn-outline-dark:hover { background: rgba(0, 0, 0, 0.1); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

.btn-text {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--honey-soft);
}
.btn-text:hover { color: var(--honey); }
.btn-text svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 19, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 32px; height: 37px; flex-shrink: 0;
  background: var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 17px; color: #0B0D13;
}
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; white-space: nowrap; color: var(--text); }
.logo-text span { color: var(--honey); }

.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-soft); transition: color .16s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a.is-active { color: var(--honey-soft); }
/* .nav-links a would otherwise override .btn-primary's colour and leave the
   button text pale on amber. Specificity has to win here. */
.nav-links a.btn-primary { color: #0B0D13; }
.nav-links a.btn-primary:hover { color: #0B0D13; }
.nav-links .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }

.nav-toggle {
  display: none; width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: 10px; color: var(--text); cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hero  (centred: headline, subline, buttons)
   -------------------------------------------------------------------------- */

.hero { padding-block: clamp(60px, 8vw, 100px); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* The home hero: copy on the left, the self-building honeycomb on the right.
   They sit side by side so the motion never runs underneath the words. */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.hero-copy .lead, .hero-copy .btn-row, .hero-copy .trust { justify-content: flex-start; }
.hero--split h1 { max-width: 14ch; }

@media (max-width: 1080px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-copy .btn-row, .hero-copy .trust { justify-content: center; }
  .hero--split h1 { max-width: 18ch; }
  .hive-build { order: -1; max-width: 340px; }
}


.hero h1 { margin-top: 20px; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--honey); }
.hero .lead { margin-top: 22px; color: var(--text-soft); }
.hero .audience {
  margin-top: 14px;
  font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0.04em;
  color: var(--text-mute);
}
.hero .btn-row { margin-top: 34px; justify-content: center; }

.trust {
  margin-top: 30px;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px;
  font-size: 15px; color: var(--text-mute);
}
.stars { display: inline-flex; gap: 2px; color: #FFC53D; }
.stars svg { width: 16px; height: 16px; }

/* Short heroes on the inner pages */
.hero--short { padding-block: clamp(56px, 7vw, 88px); }
.hero--short h1 { max-width: 20ch; }

/* --------------------------------------------------------------------------
   Platform strip  (centred)
   -------------------------------------------------------------------------- */

.platforms {
  padding-block: 32px;
  border-block: 1px solid var(--line);
  background: rgba(17, 19, 26, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.platforms h2 { font-size: 13px; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); text-align: center; margin-bottom: 18px; }
.platform-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.platform-row span { font-family: var(--font-display); font-weight: 600; font-size: clamp(14px, 1.3vw, 17px); color: var(--text-soft); }

/* --------------------------------------------------------------------------
   HONEYCOMB SERVICES
   Interlocking hexagon tiles. Hover or focus reveals the deliverables.
   Falls back to plain cards on narrow screens, where hexagons cannot hold
   readable text.
   -------------------------------------------------------------------------- */

.comb {
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
}
.comb-row { display: flex; justify-content: center; gap: 14px; }
.comb-row + .comb-row { margin-top: -46px; }   /* the interlock */
.comb-row:nth-child(even) { transform: translateX(0); }

.comb-cell {
  position: relative;
  width: 232px; height: 268px;
  flex-shrink: 0;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--ink-3);
  border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  padding: 0 34px;
  text-align: center;
  cursor: pointer;
  transition: background-color .26s ease, transform .26s ease;
  color: var(--text-soft);
  font-family: inherit;
}
.comb-cell::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(246,162,30,0.16), transparent 58%);
  opacity: 0;
  transition: opacity .26s ease;
}
.comb-cell:hover, .comb-cell:focus-visible { background: #1E2230; transform: translateY(-4px); }
.comb-cell:hover::before, .comb-cell:focus-visible::before { opacity: 1; }
.comb-cell:focus-visible { outline: 2px solid var(--honey); outline-offset: -4px; }

.comb-cell .comb-icon { position: relative; width: 26px; height: 26px; color: var(--honey); }
.comb-cell h3 { position: relative; font-size: 17px; line-height: 1.18; }
.comb-cell .comb-desc {
  position: relative;
  font-size: 13.5px; line-height: 1.45; color: var(--text-mute);
}

/* The deliverables, revealed on hover or focus */
.comb-cell .comb-more {
  position: relative;
  max-height: 0; overflow: hidden; opacity: 0;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5;
  color: var(--honey-soft);
  transition: max-height .26s ease, opacity .2s ease;
}
.comb-cell:hover .comb-more, .comb-cell:focus-visible .comb-more { max-height: 90px; opacity: 1; }

/* Amber "keystone" cell in the middle of the comb */
.comb-cell--key { background: var(--honey); color: #0B0D13; }
.comb-cell--key h3 { color: #0B0D13; }
.comb-cell--key .comb-desc { color: #3B2E14; }
.comb-cell--key .comb-more { color: #4A3A17; }   /* never light-on-amber */
.comb-cell--key .comb-icon { color: #0B0D13; }
.comb-cell--key:hover, .comb-cell--key:focus-visible { background: var(--honey-deep); }

/* --------------------------------------------------------------------------
   PROCESS AS A CONNECTED PATH
   Five hexagon nodes joined by a glowing line, centred.
   -------------------------------------------------------------------------- */

.path { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.path::before {
  content: "";
  position: absolute;
  top: 31px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--honey), transparent);
  opacity: 0.5;
}
.path-node { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.path-hex {
  width: 56px; height: 64px;
  background: var(--ink);
  border: 2px solid var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 20px;
  color: var(--honey);
  margin-bottom: 8px;
}
.path-node h3 { font-size: 19px; }
.path-node p { font-size: 15px; max-width: 22ch; color: var(--text-mute); }
.band--cream .path-hex { background: var(--cream); border-color: var(--honey-deep); color: #8A5A06; }
.band--cream .path-node p { color: var(--muted-on-cream); }

/* --------------------------------------------------------------------------
   FEATURED CASE STUDIES
   One large panel per project, alternating sides, screenshot in a browser
   frame with hexagon-clipped corners.
   -------------------------------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(56px, 7vw, 96px); }
/* Alternate which side the screenshot sits on. Driven by a class rather than
   nth-child, because the section heading is also a child of the band. */
.feature--flip .feature-media { order: 2; }

.feature-body { display: flex; flex-direction: column; gap: 18px; }
.feature-body h3 { font-size: clamp(26px, 3vw, 36px); }
.feature-body .prose p { color: var(--text-soft); }
.feature-label { display: block; margin-bottom: 6px; }

.browser {
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.browser-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: #1C202C;
  border-bottom: 1px solid var(--line);
}
.browser-dot { width: 10px; height: 10px; border-radius: 50%; background: #3A4050; }
.browser-url {
  margin-left: 10px; flex-grow: 1;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ink-2);
  overflow: hidden;
  /* hexagon-clipped bottom corners */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 26px 100%, 0 calc(100% - 26px));
}
/* Branded placeholder until a real screenshot goes in */
.browser-shot::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96'%3E%3Cpath d='M0 16 L28 0 L56 16 L56 48 L28 64 L0 48 Z M28 64 L28 96' fill='none' stroke='%23F6A21E' stroke-width='1.5'/%3E%3C/svg%3E");
}
.browser-shot .shot-note {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-mute);
  text-align: center; padding: 20px;
}
/* Drop a real screenshot in: <img> as the first child of .browser-shot */
.browser-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.browser-shot img ~ .shot-note { display: none; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 6px 12px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text-soft);
}
.band--cream .pill { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.14); color: var(--muted-on-cream); }

.delivered {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: 12px;
  background: rgba(246, 162, 30, 0.1);
  border: 1px solid rgba(246, 162, 30, 0.26);
  color: var(--honey-soft);
  font-size: 15.5px; line-height: 1.55;
}
.delivered b { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 4px; color: var(--honey); }

/* --------------------------------------------------------------------------
   Cards  (used for the services fallback, values, team)
   -------------------------------------------------------------------------- */

.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card p { color: var(--text-soft); font-size: 15.5px; }
.band--cream .card { background: #FFFFFF; border-color: rgba(0,0,0,0.1); box-shadow: 0 2px 14px rgba(0,0,0,0.05); }
.band--cream .card p { color: var(--muted-on-cream); }

.card-icon {
  width: 52px; height: 60px; flex-shrink: 0;
  background: rgba(246, 162, 30, 0.18);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: flex; align-items: center; justify-content: center;
  color: var(--honey);
}
.card-icon svg { width: 24px; height: 24px; }

.card-tags { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; color: var(--honey-soft); }

/* Service detail cards (services page) */
.service-card { padding: clamp(26px, 3vw, 36px); gap: 18px; }
.service-top { display: flex; align-items: center; gap: 18px; }
.service-card h2 { font-size: clamp(21px, 2vw, 26px); }
.service-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.service-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-soft); }
.service-list li::before {
  content: ""; flex-shrink: 0; width: 11px; height: 13px;
  background: var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.built-with { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 14px; color: var(--text-soft); }
.built-with b { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--honey-soft); }
.service-cta { margin-top: 16px; }

/* Why-us list */
.why-item { display: flex; gap: 16px; text-align: left; }
.why-check {
  flex-shrink: 0; width: 34px; height: 39px;
  background: var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: flex; align-items: center; justify-content: center;
}
.why-check svg { width: 16px; height: 16px; }
.why-item p { font-size: 15.5px; margin-top: 6px; }
.band--cream .why-item p { color: var(--muted-on-cream); }

/* --------------------------------------------------------------------------
   Stats  (centred strip, large amber numerals)
   -------------------------------------------------------------------------- */

.stat { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.stat b { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1; color: var(--honey); }
.stat span { font-size: 15.5px; color: var(--text-mute); max-width: 18ch; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.quote { gap: 16px; }
.quote blockquote p { font-size: 16px; line-height: 1.6; color: var(--text); }
.quote-who {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.avatar {
  width: 40px; height: 46px; flex-shrink: 0;
  background: var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: #0B0D13;
}
.quote-who .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quote-who b { font-size: 15px; color: var(--text); line-height: 1.3; }
.quote-who small { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-mute); }

/* A client quote sitting inside a case study panel */
.case-quote {
  display: flex; gap: 12px;
  padding: 16px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 2px solid var(--honey);
  font-size: 15.5px; line-height: 1.55; color: var(--text);
  font-style: italic;
}
.case-quote cite {
  display: block; margin-top: 8px;
  font-family: var(--font-mono); font-size: 12.5px;
  font-style: normal; color: var(--text-mute);
}

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */

.member { text-align: center; align-items: center; padding: clamp(28px, 3vw, 36px); gap: 8px; }
.member-photo {
  width: clamp(130px, 14vw, 168px);
  aspect-ratio: 168 / 194;
  margin-bottom: 14px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 3.4vw, 44px);
  overflow: hidden;
}
/* Swap initials for a photo: put an <img> inside .member-photo */
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-role { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--honey-soft); }
.member p { font-size: 15.5px; margin-top: 6px; }

/* Typical project week (about page) */
.week { display: flex; flex-direction: column; gap: 0; }
.week-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); text-align: left; }
.week-row:last-child { border-bottom: 0; }
.week-row b { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--honey-soft); }
.week-row p { font-size: 16px; }

/* Facts panel */
.panel {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
}
.facts { display: flex; flex-direction: column; gap: 22px; text-align: left; }
.fact { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; padding-bottom: 0; }
.fact b { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--honey-soft); }
.fact span { font-size: 16.5px; color: var(--text-soft); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: start; }

.contact-row { display: flex; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); text-align: left; }
.contact-row .card-icon { width: 48px; height: 55px; }
.contact-row .card-icon svg { width: 22px; height: 22px; }
.contact-row b { font-family: var(--font-display); font-weight: 600; font-size: 17px; display: block; color: var(--text); }
.contact-row span, .contact-row a { font-size: 15.5px; color: var(--text-soft); }
.contact-row a.honey { color: var(--honey-soft); }

.form-card { display: flex; flex-direction: column; gap: 22px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; padding: 0; color: var(--text); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;   /* 16px stops iOS zooming on focus */
  line-height: 1.4;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field select { appearance: none; }
.field select option { background: var(--ink-2); color: var(--text); }

fieldset { border: 0; margin: 0; padding: 0; }
fieldset legend { margin-bottom: 10px; }

.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--line-strong); border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 15px; cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.check:hover { border-color: var(--honey); }
.check input { width: 17px; height: 17px; margin: 0; accent-color: var(--honey); }
.check:has(input:checked) { border-color: var(--honey); background: rgba(246, 162, 30, 0.14); }

.form-note { font-size: 14px; color: var(--text-mute); }

/* Honeypot: a real field for bots, invisible and unreachable for people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; text-align: left; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(17px, 1.6vw, 20px);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font-size: 24px; line-height: 1; color: var(--honey); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; font-size: 16px; max-width: var(--measure); }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.cta { background: var(--honey); color: #3B2E14; text-align: center; padding-block: clamp(68px, 8vw, 100px); }
.cta h2 { max-width: 20ch; margin-inline: auto; font-weight: 800; font-size: clamp(30px, 4.2vw, 50px); color: #0B0D13; }
.cta p { max-width: 54ch; margin: 20px auto 0; font-size: clamp(16px, 1.4vw, 18px); color: #3B2E14; }
.cta .btn-row { justify-content: center; margin-top: 30px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: #080A0F; border-top: 1px solid var(--line); padding-block: 60px 26px; color: var(--text-mute); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; text-align: left; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--honey-soft); margin-bottom: 4px; }
.footer-col a { color: var(--text-soft); }
.footer-col a:hover { color: var(--honey); }
.footer-col a.honey { color: var(--honey-soft); }
.site-footer .blurb { max-width: 32ch; line-height: 1.65; color: var(--text-mute); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }

/* --------------------------------------------------------------------------
   Scroll reveal
   Starts earlier and finishes inside 400ms, so nothing is ever caught
   half-faded. If scripts never run, everything is visible.
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .38s ease-out, transform .38s ease-out; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .path::before { display: none; }
  .comb-cell { width: 196px; height: 226px; padding: 0 26px; }
  .comb-row + .comb-row { margin-top: -38px; }
}

/* Below this width hexagons cannot hold readable text, so the comb becomes
   a plain stack of cards. */
@media (max-width: 860px) {
  .comb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .comb-row { display: contents; }
  .comb-cell {
    width: 100%; height: auto; min-height: 0;
    clip-path: none;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    padding: 24px 20px;
    align-items: flex-start; text-align: left;
  }
  .comb-cell .comb-more { max-height: none; opacity: 1; }
  .comb-cell:hover { transform: none; }

  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 22px;
    background: var(--glass-solid);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-links .btn { margin-top: 16px; border-bottom: 0; min-height: 52px; }
  .nav-toggle { display: inline-flex; }
  .site-header { position: relative; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .comb { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .path { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .week-row { grid-template-columns: 1fr; gap: 6px; }
  .ghost-word { font-size: clamp(70px, 22vw, 120px); }
  .footer-base { flex-direction: column; }
  .browser-shot { aspect-ratio: 4 / 3; }
}

@media (max-width: 420px) {
  .logo-text { font-size: 17px; }
}

/* --------------------------------------------------------------------------
   Reduced motion and print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .comb-cell:hover { transform: none; }
  .comb-cell .comb-more { max-height: none; opacity: 1; transition: none; }
}

@media print {
  body::before, .ghost-word, .site-header { display: none; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   MOTION
   --------------------------------------------------------------------------
   Every animation on this site is here, and all of it follows three rules:
     1. Nothing moves underneath body text. Motion lives in its own space.
     2. Everything plays once on entry and then rests. No loops competing
        for attention while someone is trying to read.
     3. All of it stops under prefers-reduced-motion, at the bottom.
   ========================================================================== */

/* ---- Scroll reveal ------------------------------------------------------ */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .4s ease-out, transform .4s ease-out; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---- The hero honeycomb that builds itself ------------------------------
   Sits in its own column beside the headline, never behind it. Cells land
   in a wave, then stop. The last cell is the brand mark.
   ------------------------------------------------------------------------ */

.hive-build {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 420 / 400;
  margin-inline: auto;
}

.hive-build .cell {
  position: absolute;
  width: 31%;
  aspect-ratio: 1 / 1.155;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--ink-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 7%;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(11px, 1.05vw, 13.5px);
  line-height: 1.2;
  color: var(--text-soft);

  /* start state: dropped back and faded */
  opacity: 0;
  transform: scale(.72);
  transition: opacity .5s cubic-bezier(.2,.7,.25,1), transform .5s cubic-bezier(.2,.7,.25,1);
  transition-delay: var(--d, 0ms);
}
.hive-build.is-in .cell { opacity: 1; transform: none; }

.hive-build .cell svg { width: 22px; height: 22px; color: var(--honey); }
.hive-build .cell--key { background: var(--honey); color: #0B0D13; }
.hive-build .cell--key svg { color: #0B0D13; }
.hive-build .cell--soft { background: #241D10; color: var(--honey-soft); }
.no-js .hive-build .cell { opacity: 1; transform: none; }

/* ---- The process path draws itself --------------------------------------
   The connecting line grows left to right, then each node lights up in
   order. This one carries meaning: it is the sequence being described.
   ------------------------------------------------------------------------ */

.path::before { transform-origin: left center; transform: scaleX(0); transition: transform .9s ease-out; }
.path.is-in::before { transform: scaleX(1); }

.path .path-node { opacity: 0; transform: translateY(12px); transition: opacity .4s ease-out, transform .4s ease-out; }
.path.is-in .path-node { opacity: 1; transform: none; }
.path.is-in .path-node:nth-child(1) { transition-delay: .25s; }
.path.is-in .path-node:nth-child(2) { transition-delay: .40s; }
.path.is-in .path-node:nth-child(3) { transition-delay: .55s; }
.path.is-in .path-node:nth-child(4) { transition-delay: .70s; }
.path.is-in .path-node:nth-child(5) { transition-delay: .85s; }
.no-js .path .path-node { opacity: 1; transform: none; }
.no-js .path::before { transform: none; }

/* ---- Honeycomb service tiles stagger in --------------------------------- */

.comb .comb-cell { opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .42s ease-out, transform .42s ease-out; }
.comb.is-in .comb-cell { opacity: 1; transform: none; }
.comb.is-in .comb-row:nth-child(1) .comb-cell { transition-delay: .05s; }
.comb.is-in .comb-row:nth-child(2) .comb-cell { transition-delay: .18s; }
.comb.is-in .comb-row:nth-child(3) .comb-cell { transition-delay: .31s; }
.no-js .comb .comb-cell { opacity: 1; transform: none; }

/* ==========================================================================
   CASE STUDY DIAGRAMS
   Drawn illustrations of what was built. Finished content, not a frame
   waiting for a screenshot.
   ========================================================================== */

.dia-frame {
  margin: 0;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dia-head {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #1A1E2A;
}
.dia-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--honey-soft);
}
.dia { display: block; width: 100%; height: auto; padding: 18px 16px 14px; }

.dia-box { fill: #1B2030; stroke: var(--line-strong); stroke-width: 1; }
.dia-box--accent { fill: rgba(246, 162, 30, 0.16); stroke: var(--honey); }
.dia-hex { fill: #1B2030; stroke: var(--line-strong); stroke-width: 1; }
.dia-hex--accent { fill: rgba(246, 162, 30, 0.18); stroke: var(--honey); }
.dia-fill { fill: rgba(246, 162, 30, 0.22); stroke: var(--honey); stroke-width: 1; }
.dia-dot { fill: var(--honey); }
.dia-ico { fill: none; stroke: var(--honey); stroke-width: 1.4; stroke-linejoin: round; }
.dia-arrow { stroke: var(--honey); stroke-width: 1.4; color: var(--honey); opacity: .75; }
.dia-rule { stroke: var(--line); stroke-width: 1; }

.dia-t { fill: var(--text); font-family: var(--font-body); font-size: 14px; font-weight: 600; }
.dia-s { fill: var(--text-mute); font-family: var(--font-body); font-size: 12.5px; }
.dia-cap { fill: var(--honey-soft); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; }

/* Lines draw themselves when the panel comes into view */
.dia-frame .dia-arrow { stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset .7s ease-out .2s; }
.dia-frame.is-in .dia-arrow { stroke-dashoffset: 0; }
.no-js .dia-frame .dia-arrow { stroke-dashoffset: 0; }

/* ==========================================================================
   SERVICE PAGE PIECES
   ========================================================================== */

.crumbs {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--text-mute); margin-bottom: 18px;
}
.crumbs a { color: var(--honey-soft); }
.crumbs a:hover { color: var(--honey); }
.crumbs span[aria-current] { color: var(--text-mute); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); align-items: start; }

ul.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 13px; }
ul.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--text-soft); line-height: 1.55; }
ul.ticks li::before {
  content: ""; flex-shrink: 0; margin-top: 5px;
  width: 12px; height: 14px; background: var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.band--cream ul.ticks li { color: var(--muted-on-cream); }

.related { text-align: center; max-width: 720px; margin-inline: auto; }
.related .lead { margin-inline: auto; }

/* ==========================================================================
   SERVICES DROPDOWN
   ========================================================================== */

.nav-group { position: relative; }
.nav-group > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { width: 14px; height: 14px; transition: transform .18s ease; }
.nav-group:hover .nav-caret, .nav-group.is-open .nav-caret { transform: rotate(180deg); }

.nav-sub {
  position: absolute; top: 100%; left: 50%;
  transform: translate(-50%, 6px);
  min-width: 232px;
  padding: 8px;
  background: #11141D;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 60;
}
.nav-group:hover .nav-sub,
.nav-group:focus-within .nav-sub,
.nav-group.is-open .nav-sub {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav-sub a {
  padding: 10px 14px; border-radius: 9px;
  font-size: 14.5px; white-space: nowrap;
}
.nav-sub a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.nav-sub a.is-active { color: var(--honey-soft); }

@media (max-width: 860px) {
  .nav-group { width: 100%; }
  .nav-group > a { width: 100%; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav-sub {
    position: static; transform: none; min-width: 0;
    background: transparent; border: 0; box-shadow: none;
    padding: 0 0 0 14px;
    opacity: 1; visibility: visible;
    display: none;
  }
  .nav-group.is-open .nav-sub { display: flex; }
  .nav-sub a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
}

@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; }
}

/* ==========================================================================
   REDUCED MOTION
   One place. Nothing on this site moves if the visitor has asked for that.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .hive-build .cell, .path .path-node, .comb .comb-cell {
    opacity: 1 !important; transform: none !important;
  }
  .path::before { transform: none !important; }
  .dia-frame .dia-arrow { stroke-dashoffset: 0 !important; }
}

/* Footer column labels are h2 for document structure, but they should look
   like the small labels they are, not like section headings. */
.footer-h {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--honey-soft);
  margin: 0 0 4px;
}

/* ==========================================================================
   TEAL AS THE STRUCTURAL COLOUR
   --------------------------------------------------------------------------
   The division of labour, taken straight from the logo: amber is the thing
   you click, teal is the thing that holds it together. In the mark, the
   nodes and the right-hand edges are amber while the "A" and the left-hand
   edges are teal. Same idea here.

   Amber keeps: buttons, CTAs, the keystone cell. One action colour.
   Teal takes: structure, connections, diagrams, labels.
   ========================================================================== */

/* The page texture takes a teal cast on one side, amber on the other,
   exactly like the gradient across the logo's hexagon. */
body::before {
  background-image:
    radial-gradient(760px 520px at 82% 6%, rgba(253, 178, 24, 0.09), transparent 62%),
    radial-gradient(680px 500px at 10% 86%, rgba(14, 139, 148, 0.12), transparent 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96'%3E%3Cpath d='M0 16 L28 0 L56 16 L56 48 L28 64 L0 48 Z M28 64 L28 96' fill='none' stroke='%237FD4DA' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
}

/* ---- Logo ---------------------------------------------------------------
   The mark is the real artwork. The wordmark is live text in the brand
   colours, which stays crisp at any size and is readable by screen readers.
   ------------------------------------------------------------------------ */
.logo-mark {
  background: none;
  clip-path: none;
  width: 38px; height: 42px;
}
.logo-mark img { width: 100%; height: 100%; }
.logo-text { color: #FFFFFF; }
.logo-text .ace { color: var(--teal-lift); }
.logo-text span { color: var(--honey); }

/* ---- Eyebrows and labels: teal, so amber stays reserved for actions ---- */
.eyebrow { color: var(--teal-soft); }
.eyebrow::before {
  background: linear-gradient(135deg, var(--teal-mid), var(--honey));
}
.label, .case-label, .feature-label { color: var(--teal-soft); }
.crumbs a { color: var(--teal-soft); }
.crumbs a:hover { color: var(--teal-lift); }

/* ---- The process path: the logo's own gradient, teal into amber -------- */
.path::before {
  background: linear-gradient(90deg, transparent, var(--teal-mid) 22%, var(--honey) 78%, transparent);
  opacity: .8;
}
.path-hex { border-color: var(--teal-lift); color: var(--teal-soft); }
.path-node:last-child .path-hex { border-color: var(--honey); color: var(--honey); }

/* ---- Hive cells: teal structure, amber keystone ------------------------ */
.hive-build .cell { background: var(--ink-3); }
.hive-build .cell svg { color: var(--teal-lift); }
.hive-build .cell--soft { background: #0A3340; color: var(--teal-soft); }
.hive-build .cell--soft svg { color: var(--teal-soft); }
.hive-build .cell--key { background: var(--honey); color: #061A22; }
.hive-build .cell--key svg { color: #061A22; }

/* ---- Service tiles ----------------------------------------------------- */
.comb-cell .comb-icon { color: var(--teal-lift); }
.comb-cell::before {
  background: linear-gradient(160deg, rgba(14, 139, 148, 0.22), transparent 58%);
}
.comb-cell .comb-more { color: var(--teal-soft); }
.comb-cell--key .comb-icon { color: #061A22; }

/* ---- Ticks and checks: teal for structure, amber kept for action ------- */
ul.ticks li::before,
.service-list li::before {
  background: linear-gradient(135deg, var(--teal-mid), var(--teal-lift));
}
.why-check { background: var(--teal-mid); }
.why-check svg { stroke: #FFFFFF; }

/* ---- Cards and icons --------------------------------------------------- */
.card-icon { background: rgba(14, 139, 148, 0.22); color: var(--teal-lift); }
.card-tags, .built-with b { color: var(--teal-soft); }

/* ---- Diagrams: teal lines, amber for the outcome ----------------------- */
.dia-box { fill: #103240; stroke: rgba(127, 212, 218, 0.34); }
.dia-hex { fill: #103240; stroke: rgba(127, 212, 218, 0.34); }
.dia-arrow { stroke: var(--teal-lift); color: var(--teal-lift); opacity: .85; }
.dia-cap { fill: var(--teal-soft); }
.dia-rule { stroke: rgba(127, 212, 218, 0.18); }
.dia-label { color: var(--teal-soft); }
.dia-head { background: #0B2733; }

/* ---- Stats: alternate teal and amber, like the hexagon nodes ----------- */
.stat:nth-child(even) b { color: var(--teal-lift); }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: #04131A; }
.footer-h { color: var(--teal-soft); }
.footer-col a.honey { color: var(--honey-soft); }

/* ---- Cream section: teal reads properly on light ----------------------- */
.band--cream .eyebrow { color: #0A5A60; }
.band--cream .eyebrow::before { background: linear-gradient(135deg, #066166, #D9971A); }
.band--cream .why-check { background: #066166; }
.band--cream .path-hex { background: var(--cream); border-color: #066166; color: #0A5A60; }
.band--cream ul.ticks li::before { background: #066166; }
.band--cream .label { color: #4A5F63; }

/* The tagline from the logo lockup. Too small to read in a 38px nav mark,
   so it lives here at a readable size, with the same teal-dot-amber-dot
   rhythm the printed lockup uses. */
.tagline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.tagline span:nth-of-type(1) { color: var(--teal-lift); }
.tagline span:nth-of-type(2) { color: var(--honey); }

/* ==========================================================================
   MOVE 1: "THE HIVE RESPONDS"
   The same spring easing on both, so the comb and the buttons read as parts
   of one object. --mx / --my are set by site.js from pointer position.
   ========================================================================== */

.btn {
  --mx: 0px; --my: 0px;
  transition: transform .34s cubic-bezier(.22,1,.3,1),
              background-color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translate(var(--mx), calc(var(--my) - 2px)); }

.comb-cell {
  --mx: 0px; --my: 0px;
}
/* The hovered cell leans toward the cursor and lifts */
.comb.is-in .comb-cell:hover,
.comb-cell:hover {
  transform: translate(var(--mx), calc(var(--my) - 5px));
  transition: transform .34s cubic-bezier(.22,1,.3,1), background-color .26s ease;
}
/* Its physical neighbours lift a little too, as if the comb were one piece */
.comb.is-in .comb-cell.is-neighbour {
  transform: translateY(-2.5px);
  transition: transform .34s cubic-bezier(.22,1,.3,1);
}
.comb-cell.is-neighbour { background: #15384A; }
.comb-cell--key.is-neighbour { background: var(--honey-deep); }

/* ==========================================================================
   MOVE 2: "THE SYSTEM RUNS"
   Diagram parts light up in sequence once the panel is in view, so the
   drawing reads as a flow with a direction rather than a static picture.
   ========================================================================== */

.dia-box, .dia-hex, .dia-fill {
  transition: stroke .5s ease var(--pd, 0ms), fill .5s ease var(--pd, 0ms);
}
.dia-box.is-live   { stroke: var(--teal-lift); }
.dia-hex.is-live   { stroke: var(--teal-lift); }
.dia-fill.is-live  { stroke: var(--honey); }
.dia-box--accent.is-live { stroke: var(--honey); }

/* Reduced motion already zeroes every transition and delay globally in the
   block above, so both moves stop dead. These two just make sure nothing is
   left mid-transform. */
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .comb-cell:hover, .comb-cell.is-neighbour { transform: none !important; }
}

/* ==========================================================================
   LANGUAGE SWITCHER
   English is the indexed version; these translations live on the same URL.
   Nobody is forced into a language: the bar offers, it never redirects.
   ========================================================================== */

.lang-group { position: relative; }

.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 10px;
  background: transparent; border: 0; border-radius: 9px;
  color: var(--text-soft);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.lang-btn:hover { color: var(--teal-lift); }
.lang-btn svg { width: 17px; height: 17px; }

.lang-menu {
  position: absolute; top: 100%; right: 0;
  transform: translateY(6px);
  min-width: 168px; padding: 8px;
  background: #11141D;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 70;
}
.lang-group.is-open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-menu button {
  padding: 10px 14px; border: 0; border-radius: 9px;
  background: transparent; color: var(--text-soft);
  font-family: var(--font-body); font-size: 14.5px;
  text-align: left; cursor: pointer;
}
.lang-menu button:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.lang-menu button.is-active { color: var(--teal-lift); }

/* The offer bar. Dismissible, remembered, never a redirect. */
.lang-bar {
  position: fixed; left: 50%; bottom: 20px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  max-width: min(640px, calc(100vw - 32px));
  padding: 14px 18px;
  background: #11141D;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  font-size: 15px; color: var(--text-soft);
}
.lang-bar span { flex: 1 1 auto; min-width: 180px; }
.lang-bar button {
  min-height: 40px; padding: 0 16px;
  border-radius: 9px; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
}
.lang-bar-yes { background: var(--honey); color: #061A22; }
.lang-bar-yes:hover { background: var(--honey-deep); }
.lang-bar-no {
  background: transparent; color: var(--text-mute);
  border: 1px solid var(--line-strong) !important;
}
.lang-bar-no:hover { color: var(--text); }

@media (max-width: 860px) {
  .lang-group { width: 100%; }
  .lang-btn { width: 100%; justify-content: flex-start; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .lang-menu {
    position: static; transform: none; min-width: 0;
    background: transparent; border: 0; box-shadow: none;
    padding: 0 0 0 14px; opacity: 1; visibility: visible; display: none;
  }
  .lang-group.is-open .lang-menu { display: flex; }
  .lang-menu button { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .lang-bar { bottom: 12px; }
}

/* Translated copy runs longer than English, Spanish and German especially.
   Giving the hero copy column a little more room keeps the two buttons on
   one line in every language instead of stacking only in some. */
@media (min-width: 1081px) {
  .hero-split { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
  .hero-copy .btn-row { flex-wrap: nowrap; }
  .hero-copy .btn { white-space: nowrap; }
}
