/* ==========================================================================
   Clyroco — style.css
   AI automation agency marketing site.
   Single stylesheet for all four pages.

   Quick map:
   1.  Design tokens (CSS variables)
   2.  Reset & base
   3.  Typography helpers
   4.  Layout primitives (container, sections, grid helpers)
   5.  Buttons & links
   6.  Header / sticky nav
   7.  Hero (animated abstract background)
   8.  Home content sections (What We Do, Who It's For, Services)
   9.  Team page
   10. About page
   11. Contact page + form
   12. Footer
   13. Scroll-reveal animation states
   14. Responsive / mobile
   ========================================================================== */

/* 1. -------------------------------------------------- Design tokens ------ */
:root {
  /* Core palette — dark navy primary, white text, one electric-blue accent. */
  --navy-950: #070b16;   /* deepest background */
  --navy-900: #0a1020;   /* default dark section background */
  --navy-850: #0d1426;
  --navy-800: #111a31;   /* raised surfaces / cards */
  --navy-700: #18233f;   /* borders, hairlines on dark */

  --paper:    #f4f6fb;   /* light "rhythm break" sections */
  --paper-2:  #e9edf6;

  --white:    #f6f8fd;
  --ink:      #0b1222;   /* near-black text on light sections */

  /* Single sharp accent — electric blue. Used for CTAs, links, highlights. */
  --accent:        #2f6bff;
  --accent-bright: #5b8cff;
  --accent-soft:   rgba(47, 107, 255, 0.14);

  /* Muted text tones */
  --muted-on-dark:  #97a3c0;
  --muted-on-light: #4a566f;

  /* Type */
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  /* Spacing rhythm */
  --section-pad: clamp(4.5rem, 9vw, 8.5rem);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1180px;

  --radius: 14px;
  --radius-sm: 9px;

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

/* 2. ----------------------------------------------------- Reset & base ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--white);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* Respect users who prefer reduced motion — kill animations site-wide. */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* 3. ------------------------------------------------------- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }

p { margin: 0 0 1.1rem; }

a { color: var(--accent-bright); text-decoration: none; }
a:hover { color: var(--white); }

/* Small uppercase eyebrow label that sits above headings. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}
/* On light sections the eyebrow line/text stays accent — readable on both. */

.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  color: var(--muted-on-dark);
  max-width: 46ch;
}

.accent-text { color: var(--accent-bright); }

/* Editorial accent: renders ONE key word of a headline in a refined serif
   italic (Playfair Display) to contrast the geometric sans. Used sparingly —
   only the hero headline and one section heading. Inherits its colour so it
   blends naturally inline; the contrast comes from the typeface, not colour.
   Slight size + baseline nudge so the serif sits naturally beside Space Grotesk. */
.accent-word {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.06em;
  letter-spacing: 0;
  color: inherit;
}

/* 4. -------------------------------------------------- Layout primitives -- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.section {
  padding-block: var(--section-pad);
}

/* Section colour treatments — alternated for rhythm. */
.section--dark   { background: var(--navy-900); color: var(--white); }
.section--darker { background: var(--navy-950); color: var(--white); }
.section--light  { background: var(--paper); color: var(--ink); }
.section--light .lead { color: var(--muted-on-light); }
.section--light p { color: var(--muted-on-light); }
.section--light a { color: var(--accent); }
.section--light a:hover { color: var(--ink); }

/* 5. ------------------------------------------------- Buttons & links ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 26px -10px rgba(47, 107, 255, 0.8);
}
.btn--primary:hover {
  background: var(--accent-bright);
  color: #fff;
  box-shadow: 0 14px 34px -10px rgba(47, 107, 255, 0.9);
}
/* Default-state contrast fixes: the descendant `a` colour rules in the nav
   (.nav-links a) and on light sections (.section--light a) out-specify
   .btn--primary and were tinting the button text until hover. Force white
   text on the blue primary button at rest. Hover behaviour is untouched. */
.nav-cta .btn--primary { color: #fff; }
.section--light .btn--primary { color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--navy-700);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--white); }

.section--light .btn--ghost { color: var(--ink); border-color: var(--paper-2); }
.section--light .btn--ghost:hover { border-color: var(--accent); color: var(--ink); }

/* Arrow that nudges on hover */
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* 6. ------------------------------------------------ Header / sticky nav -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 16, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
/* .scrolled is toggled by JS once the page moves */
.site-header.scrolled {
  border-bottom-color: var(--navy-700);
  background: rgba(8, 12, 24, 0.88);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--white);
}
.brand:hover { color: var(--white); }
.brand .mark {
  width: 26px; height: 26px;
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  color: var(--muted-on-dark);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--accent);
}
.nav-cta { margin-left: 0.6rem; }

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 11px 9px;
  background: transparent;
  border: 1px solid var(--navy-700);
  border-radius: 9px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 7. ----------------------------------------------------------- Hero ------ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  padding-block: clamp(5rem, 12vw, 10rem) clamp(4.5rem, 10vw, 8rem);
  isolation: isolate;
}

/* Animated abstract background: faint grid + two drifting blue orbs.
   All CSS — no images, no heavy canvas. Lives behind the content. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.hero-bg .grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 70% 0%, #000 35%, transparent 78%);
}
.hero-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.hero-bg .orb-1 {
  width: 520px; height: 520px;
  top: -160px; right: -80px;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 65%);
  animation: drift1 18s var(--ease) infinite alternate;
}
.hero-bg .orb-2 {
  width: 420px; height: 420px;
  bottom: -180px; left: -120px;
  background: radial-gradient(circle at 50% 50%, #1746b8, transparent 68%);
  animation: drift2 22s var(--ease) infinite alternate;
}
@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, 50px) scale(1.12); }
}
@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(70px, -40px) scale(1.08); }
}

/* Decorative geometric line-art bracket floating top-right of the hero. */
.hero-figure {
  position: absolute;
  z-index: -1;
  top: 14%;
  right: -40px;
  width: min(40vw, 460px);
  opacity: 0.5;
  animation: floaty 9s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}

/* Off-centre hero text — pinned left, not centered. */
.hero-inner {
  position: relative;
  max-width: 760px;
}
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 .hl { color: var(--accent-bright); }
.hero .lead { max-width: 50ch; margin-bottom: 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-note {
  margin-top: 2.8rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--muted-on-dark);
  font-size: 0.92rem;
}
.hero-note span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* 8. --------------------------------------------- Home content sections --- */

/* Generic two-column split used by several sections — intentionally
   asymmetric (text wider than the side rail). */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--reverse { grid-template-columns: 0.85fr 1.15fr; }
.split--reverse .split-media { order: -1; }

/* "What We Do" — big statement on left, supporting points on right. */
.statement {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.statement b { color: var(--accent); font-weight: 600; }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.points li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.points .num {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--accent-bright);
  font-size: 0.95rem;
  padding-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}
.points h3 { margin-bottom: 0.25rem; }
.points p { margin: 0; color: var(--muted-on-light); }

/* "Who It's For" — stat-ish cards in an asymmetric row, on dark. */
.who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.who-card {
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 1.8rem;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-850));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.who-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.who-card h3 { margin-bottom: 0.4rem; }
.who-card p { color: var(--muted-on-dark); margin: 0; }
.who-card .tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.9rem;
}
/* First card spans the full width to break the grid's symmetry. */
.who-card--wide { grid-column: 1 / -1; }

/* Services — staggered list rows, NOT three identical rounded cards.
   Each service is a full-width row with an index, title block and meta. */
.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.services-head .lead { margin: 0; }

.service-list { display: grid; gap: 0; }
.service-row {
  display: grid;
  grid-template-columns: 64px 1.1fr 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: 2.2rem 0;
  border-top: 1px solid var(--navy-700);
  transition: padding-left 0.3s var(--ease);
}
.service-row:last-child { border-bottom: 1px solid var(--navy-700); }
.service-row:hover { padding-left: 12px; }
.service-row .s-index {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}
.service-row h3 { margin: 0; }
.service-row .s-desc { color: var(--muted-on-dark); margin: 0; }
.service-row .s-meta {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--white);
  white-space: nowrap;
  justify-self: end;
  background: var(--accent-soft);
  border: 1px solid var(--navy-700);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

/* Rotating cog graphic that sits beside the Services heading.
   Rotation is driven by JS off scroll position (progressive enhancement). */
.cog {
  width: clamp(56px, 8vw, 84px);
  height: auto;
  color: var(--accent);
  flex: none;
}
.cog-wrap { display: inline-flex; align-items: center; gap: 1rem; }

/* CTA strip before footer */
.cta-strip {
  background:
    radial-gradient(80% 140% at 15% 10%, rgba(47,107,255,0.22), transparent 60%),
    var(--navy-950);
  border-top: 1px solid var(--navy-700);
}
.cta-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-strip h2 { max-width: 18ch; margin: 0; }

/* 9. ------------------------------------------------------- Team page ----- */
.page-hero {
  padding-block: clamp(4.5rem, 9vw, 7rem) clamp(2.5rem, 5vw, 4rem);
  background: var(--navy-950);
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; max-width: 820px; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .lead { max-width: 54ch; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.founder {
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-850);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.founder:hover { transform: translateY(-5px); border-color: var(--accent); }

/* Photo frame — holds the swappable placeholder image.
   To use real photos: drop founder-1.jpg / founder-2.jpg into /images and
   update the <img src> in team.html (or replace the .svg files in place). */
.founder-photo {
  /* Matches the tall portrait source ratio (~0.55) so the photos sit
     full-bleed and centered with essentially no crop — the whole upper
     body stays visible. Light backdrop blends with the studio-white photos. */
  aspect-ratio: 11 / 20;
  background: #eef1f6;
  position: relative;
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* bias any tiny crop away from the face */
}

.founder-body { padding: 1.6rem 1.7rem 1.9rem; }
.founder-body h3 { margin-bottom: 0.2rem; }
.founder-role {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--accent-bright);
  margin-bottom: 1rem;
}
.founder-body p { color: var(--muted-on-dark); margin: 0; }
.founder-tba {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--accent-bright);
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  vertical-align: middle;
}

/* 10. ----------------------------------------------------- About page ----- */
.prose { max-width: 60ch; }
.prose p { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }
.prose p + p { margin-top: 0.2rem; }

.about-aside {
  border-left: 2px solid var(--accent);
  padding-left: 1.6rem;
}
.about-aside .big {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
}
.section--light .about-aside .big { color: var(--ink); }
.about-aside .label { color: var(--muted-on-light); font-size: 0.95rem; }

.values { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.3rem; }
.values li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.values .check {
  width: 26px; height: 26px; flex: none;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  display: grid; place-items: center;
  font-family: var(--font-head);
}
.values b { display: block; font-family: var(--font-head); font-weight: 600; }

/* 11. ------------------------------------------- Contact page + form ------ */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-channels { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.contact-channels li { display: grid; gap: 0.15rem; }
.contact-channels .k {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.contact-channels .v { font-size: 1.05rem; color: var(--white); }

/* The form card */
.form-card {
  background: var(--navy-850);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.6rem);
}
.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.field .optional { color: var(--muted-on-dark); font-weight: 400; font-size: 0.8rem; }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  background: var(--navy-900);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: #5d6889; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 140px; }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.form-foot small { color: var(--muted-on-dark); }

/* Success confirmation (revealed by JS after submit) */
.form-success {
  display: none;
  text-align: left;
  padding: clamp(1.6rem, 3vw, 2.6rem);
}
.form-success.is-visible { display: block; }
.form-success .tick {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-bright);
  display: grid; place-items: center;
  margin-bottom: 1.2rem;
}
.form-success h3 { margin-bottom: 0.5rem; }
.form-success p { color: var(--muted-on-dark); }

/* When success is shown, hide the actual form */
.form-card.is-done .contact-form { display: none; }

/* 12. ---------------------------------------------------------- Footer ---- */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--navy-700);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: var(--muted-on-dark); max-width: 34ch; }
.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: var(--white); font-size: 0.98rem; }
.footer-col a:hover { color: var(--accent-bright); }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-700);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted-on-dark);
  font-size: 0.9rem;
}

/* 13. ------------------------------------------- Scroll-reveal states ----- */
/* Elements tagged [data-reveal] start hidden + shifted; JS adds .is-visible
   via IntersectionObserver to fade + slide them in. */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
/* Optional stagger via inline --d custom property (transition-delay). */
[data-reveal] { transition-delay: var(--d, 0s); }

/* 14. ----------------------------------------------------- Responsive ----- */
@media (max-width: 900px) {
  .split,
  .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }

  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* Services rows collapse to a stacked layout */
  .service-row {
    grid-template-columns: 44px 1fr;
    grid-template-areas:
      "idx title"
      "idx desc"
      "idx meta";
    row-gap: 0.6rem;
    align-items: start;
  }
  .service-row .s-index { grid-area: idx; }
  .service-row h3 { grid-area: title; }
  .service-row .s-desc { grid-area: desc; }
  .service-row .s-meta { grid-area: meta; justify-self: start; }
}

@media (max-width: 720px) {
  /* Mobile nav: hide inline links, show the toggle + slide-down panel. */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: rgba(8, 12, 24, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--navy-700);
    padding: 1rem var(--gutter) 1.6rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 0.8rem 0.6rem; font-size: 1.05rem; }
  .nav-links a[aria-current="page"]::after { display: inline-block; width: 22px; }
  .nav-cta { margin: 0.6rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }

  .team-grid,
  .who-grid { grid-template-columns: 1fr; }
  .who-card--wide { grid-column: auto; }

  .hero-figure { display: none; }
  .footer-top { grid-template-columns: 1fr; }
}

/* Focus visibility for keyboard users across the board */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  border-radius: 4px;
}
