/* ==========================================================
   ATC Technologies — style.css
   Mobile-first. Breakpoints: 600 / 900 / 1240 px
   ========================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand colours (from the ATC logo) */
  --navy-900: #0B1E48;   /* primary deep navy */
  --navy-800: #13295C;
  --navy-700: #1C3670;
  --blue-600: #1466E0;   /* bright ATC blue */
  --blue-500: #2F80F0;
  --blue-100: #DCE9FD;
  --blue-50:  #EEF4FE;
  --red-600:  #DA1720;   /* ATC red, used sparingly */
  --red-700:  #B80F18;

  /* Neutrals */
  --ink:      #15213A;
  --muted:    #4E5D78;
  --line:     #DAE2EE;
  --surface:  #F4F7FC;
  --white:    #FFFFFF;
  --on-dark:  #C9D5EC;

  /* Type */
  --font-display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 68px;
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-soft: 0 1px 2px rgba(11, 30, 72, .06), 0 8px 24px rgba(11, 30, 72, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--navy-900); letter-spacing: -0.015em; }
p { max-width: 68ch; }

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

.visually-hidden {
  position: absolute !important; 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: 1rem; top: -100px; z-index: 200;
  background: var(--navy-900); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

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

/* Brand diamond (from the logo's tagline) */
.diamond {
  display: inline-block; width: .42em; height: .42em; background: var(--red-600);
  transform: rotate(45deg); margin-inline: .6em; vertical-align: .12em; flex: none;
}

/* ---------- 3. Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.25rem;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem; letter-spacing: .005em;
  border: 2px solid transparent; border-radius: 8px; text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 52px; padding: .8rem 1.6rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--blue-600); color: var(--white); }
.btn--primary:hover { background: #0F58C4; box-shadow: 0 6px 18px rgba(20, 102, 224, .28); }
.btn--red { background: var(--red-600); color: var(--white); }
.btn--red:hover { background: var(--red-700); box-shadow: 0 6px 18px rgba(218, 23, 32, .28); }
.btn--outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn--outline:hover { background: var(--navy-900); color: var(--white); }

.text-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 700; color: var(--blue-600);
  text-decoration: underline; text-decoration-color: rgba(20, 102, 224, .35); text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link--light { color: var(--white); text-decoration-color: rgba(255, 255, 255, .4); }

/* ---------- 4. Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
/* Background lives on a pseudo-element: a backdrop-filter on the header itself
   would trap the fixed mobile menu inside the header box. */
.site-header::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1;
  background: rgba(255, 255, 255, .97);
}
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .site-header::before { background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(11, 30, 72, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand img { width: 138px; height: auto; }

/* Hamburger */
.nav-toggle {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  position: relative; z-index: 2;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.nav-toggle > * { pointer-events: none; } /* taps always land on the button itself */
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: var(--navy-900); border-radius: 2px;
  transition: transform .25s var(--ease), background-color .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile panel */
.primary-nav {
  position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0;
  z-index: 1;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  background: var(--white);
  padding: 1.25rem var(--gutter) 2rem;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 1.5rem;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.primary-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.nav-list { display: flex; flex-direction: column; }
.nav-link {
  display: block; padding: .85rem .25rem; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  color: var(--navy-900); text-decoration: none;
}
.nav-link.is-active { color: var(--blue-600); }
.nav-link--ai::after {
  content: "Flagship"; margin-left: .6rem; padding: .1rem .45rem; font-size: .7rem; vertical-align: .2em;
  color: var(--red-600); border: 1px solid currentColor; border-radius: 4px;
}
.nav-cta { align-self: stretch; }

@media (min-width: 1240px) {
  .nav-toggle { display: none; }
  .brand img { width: 140px; }
  .primary-nav {
    position: static; top: auto; right: auto; bottom: auto; left: auto; height: auto; z-index: auto; padding: 0; overflow: visible; background: none;
    flex-direction: row; align-items: center; gap: clamp(1rem, 1.6vw, 1.4rem);
    visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .nav-list { flex-direction: row; gap: clamp(.8rem, 1.1vw, 1.15rem); }
  .nav-link {
    position: relative; padding: .4rem 0; border: 0; font-size: .92rem; font-weight: 600; color: var(--ink); white-space: nowrap;
  }
  .nav-link::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: var(--blue-600); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
  }
  .nav-link:hover::before, .nav-link.is-active::before { transform: scaleX(1); }
  .nav-link--ai { color: var(--navy-900); }
  .nav-link--ai::after { display: none; }
  .nav-cta { align-self: auto; min-height: 42px; padding: .5rem 1rem; font-size: .92rem; white-space: nowrap; }
}

/* ---------- 5. Sections (shared) ---------- */
.section { padding-block: var(--section-y); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-title { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.9rem); font-weight: 800; max-width: 22ch; }
.section-lead { margin-top: .9rem; font-size: 1.1rem; color: var(--muted); }
.section-kicker {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--blue-600);
}
.section-kicker::before { content: ""; width: .5em; height: .5em; background: var(--red-600); transform: rotate(45deg); }
.section-kicker--light { color: #8DB8FA; }
.note { margin-top: 1.75rem; font-size: .95rem; color: var(--muted); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 60%, #fff 100%),
    linear-gradient(90deg, rgba(20,102,224,.07) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(0deg, rgba(20,102,224,.07) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--white);
}
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-kicker {
  display: flex; flex-wrap: wrap; align-items: center; row-gap: .35rem;
  font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--navy-700);
}
.hero-kicker .diamond { font-size: .9rem; }
.hero-title {
  margin-top: 1.1rem;
  font-size: clamp(2.3rem, 1.4rem + 4vw, 4.1rem);
  font-weight: 800; line-height: 1.03; letter-spacing: -0.035em;
  max-width: 15ch;
}
.hero-lead { margin-top: 1.4rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-actions .btn { flex: 1 1 220px; }
.hero-talk { margin-top: 1.25rem; }
.hero-cred {
  margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--muted); max-width: 46ch;
}

.hero-visual { display: flex; justify-content: center; }
.hero-frame { position: relative; width: min(100%, 440px); margin-inline: auto; }
.hero-photo {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(11, 30, 72, .22);
}
.hero-frame::after { /* navy offset block */
  content: ""; position: absolute; z-index: 0; top: 8%; right: -6%; bottom: -5%; left: 12%;
  background: var(--navy-900); border-radius: var(--radius-lg);
}
.hero-chip {
  position: absolute; z-index: 2;
  display: flex; flex-direction: column; gap: .1rem;
  padding: .55rem .8rem; background: var(--white);
  border: 1px solid var(--line); border-left: 3px solid var(--blue-600);
  border-radius: 8px; box-shadow: var(--shadow-soft);
  font-size: .75rem; line-height: 1.3;
  animation: float 7s ease-in-out infinite;
}
.hero-chip code { font-family: var(--font-mono); color: var(--navy-900); font-size: .78rem; }
.hero-chip span { font-weight: 600; color: var(--muted); }
.hero-chip--a { top: 9%; left: -6%; }
.hero-chip--b { top: 44%; right: -7%; border-left-color: var(--red-600); animation-delay: -2.3s; }
.hero-chip--c { bottom: 8%; left: 4%; animation-delay: -4.6s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Single orchestrated page-load moment */
.hero-copy > * { animation: rise .7s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(n+5) { animation-delay: .32s; }
.hero-frame { animation: rise .9s var(--ease) .15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 420px) {
  .hero-chip--a { left: -2%; }
  .hero-chip--b { right: -2%; }
  .hero-chip { font-size: .7rem; padding: .45rem .6rem; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* ---------- 7. Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--white); }
.trust-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0; padding-block: .5rem;
}
.trust-list li {
  display: flex; align-items: center; gap: .6rem; padding: .8rem .25rem;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--navy-900);
}
.trust-list i { color: var(--blue-600); width: 1.2rem; text-align: center; }
@media (min-width: 600px) { .trust-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .trust-list { display: flex; justify-content: space-between; padding-block: 1rem; }
  .trust-list li { padding: 0; }
}

/* ---------- 8. Signature rail (Learn → Grow, Concept → Deploy, etc.) ---------- */
.rail { position: relative; display: grid; gap: 0; counter-reset: rail; }
.rail-step {
  position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 1rem;
  align-content: start; padding-bottom: 1.6rem;
}
.rail-step:last-child { padding-bottom: 0; }
/* vertical connector */
.rail-step::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px;
  background: linear-gradient(var(--blue-600), var(--blue-600)) no-repeat top / 100% var(--fill, 0%), var(--line);
  transition: background-size .8s var(--ease);
}
.rail-step:last-child::before { display: none; }
.rail-num {
  grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px;
  font-family: var(--font-display); font-weight: 800; color: var(--blue-600);
  background: var(--white); border: 2px solid var(--blue-600); border-radius: 50%;
  position: relative; z-index: 1;
}
.rail-step:last-child .rail-num { background: var(--blue-600); color: var(--white); }
.rail-label { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy-900); line-height: 44px; }
.rail-text { color: var(--muted); font-size: .96rem; }
.rail.is-visible .rail-step::before { --fill: 100%; }

@media (min-width: 900px) {
  .rail:not(.rail--vertical) { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
  .rail:not(.rail--vertical) .rail-step { grid-template-columns: 1fr; padding-bottom: 0; }
  .rail:not(.rail--vertical) .rail-num { grid-row: auto; }
  .rail:not(.rail--vertical) .rail-label { line-height: 1.3; margin-top: 1rem; }
  .rail:not(.rail--vertical) .rail-text { margin-top: .35rem; }
  .rail:not(.rail--vertical) .rail-step::before {
    left: 52px; right: -1.25rem; top: 21px; bottom: auto; width: auto; height: 2px;
    background: linear-gradient(var(--blue-600), var(--blue-600)) no-repeat left / var(--fill, 0%) 100%, var(--line);
  }
}

/* ---------- 9. About ---------- */
.about { background: var(--surface); }
.about-head { display: grid; gap: 1.25rem; }
.about-text p { color: var(--muted); font-size: 1.08rem; }
.about-text p + p { margin-top: .9rem; }
.bridge {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-block: 2.5rem 3rem;
}
.bridge li:not(.bridge-plus) {
  padding: .55rem .95rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 700; color: var(--navy-900);
}
.bridge-plus { color: var(--red-600); font-weight: 800; font-size: 1.2rem; }
.rail--brand { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.rail--brand .rail-label { font-size: 1.3rem; }
@media (min-width: 900px) {
  .about-head { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; }
}

/* ---------- 10. Founder ---------- */
.founder { overflow: hidden; }
.founder-grid { display: grid; gap: 2.5rem; align-items: center; }
.founder-photo { position: relative; width: min(100%, 340px); margin-inline: auto; }
.founder-photo::before {
  content: ""; position: absolute; top: 6%; right: -8%; bottom: -4%; left: 10%;
  border: 2px solid var(--blue-600); border-radius: var(--radius-lg);
}
.founder-photo img { position: relative; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.founder-role { margin-top: .5rem; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--blue-600); }
.role-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1.25rem 1.5rem; }
.role-tags li {
  padding: .3rem .7rem; font-size: .88rem; font-weight: 600; color: var(--navy-800);
  background: var(--blue-50); border-radius: 4px;
}
.founder-copy > p:not(.section-kicker):not(.founder-role) { color: var(--muted); font-size: 1.05rem; }
.founder-copy > p + p { margin-top: 1rem; }
.founder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 900px) {
  .founder-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; }
  .founder-photo { width: min(100%, 380px); }
}

/* ---------- 11. AI Engineering (flagship section) ---------- */
.ai {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(47, 128, 240, .22), transparent 70%),
    var(--navy-900);
}
.ai::before { /* faint circuit grid */
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(0deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px;
}
.ai .container { position: relative; }
.ai .section-title { color: var(--white); font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem); }
.ai-sub { margin-top: 1rem; font-size: 1.15rem; max-width: 56ch; }
.ai-head { margin-bottom: 3rem; }
.ai :focus-visible { outline-color: var(--white); }

.roadmap { position: relative; }
.roadmap-track { position: relative; display: grid; gap: 0; }
/* vertical progress line (mobile) */
.roadmap-track::before, .roadmap-track::after {
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px;
}
.roadmap-track::before { background: rgba(255, 255, 255, .14); }
.roadmap-track::after {
  background: linear-gradient(var(--blue-500), var(--red-600));
  transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease);
}
.roadmap.is-visible .roadmap-track::after { transform: scaleY(1); }

.rm-node { position: relative; padding-bottom: 1.4rem; }
.rm-node:last-child { padding-bottom: 0; }
.rm-btn {
  display: flex; align-items: center; gap: 1rem; padding: 0; text-align: left;
  background: none; border: 0; color: var(--white);
}
.rm-dot {
  position: relative; z-index: 1; display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  background: var(--navy-800); border: 2px solid var(--blue-500); color: var(--white);
  transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.rm-name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; }
.rm-desc { margin: .3rem 0 0 60px; font-size: .96rem; color: var(--on-dark); }
.rm-node:last-child .rm-dot { background: var(--red-600); border-color: var(--red-600); }
.rm-panel { display: none; }

@media (min-width: 1024px) {
  .roadmap-track { grid-template-columns: repeat(10, 1fr); gap: .25rem; }
  .roadmap-track::before, .roadmap-track::after {
    left: 5%; right: 5%; top: 27px; bottom: auto; width: auto; height: 2px;
  }
  .roadmap-track::after { background: linear-gradient(90deg, var(--blue-500), var(--red-600)); transform: scaleX(0); transform-origin: left; }
  .roadmap.is-visible .roadmap-track::after { transform: scaleX(1); }
  .rm-node { padding: 0; }
  .rm-btn { flex-direction: column; gap: .8rem; width: 100%; padding: .35rem .2rem .6rem; text-align: center; border-radius: 8px; }
  .rm-name { font-size: .95rem; line-height: 1.25; }
  .rm-desc { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
  .rm-btn:hover .rm-dot { transform: scale(1.08); background: var(--navy-700); }
  .rm-btn[aria-pressed="true"] .rm-dot { background: var(--blue-600); border-color: var(--white); transform: scale(1.12); box-shadow: 0 0 0 6px rgba(47, 128, 240, .25); }
  .rm-node:last-child .rm-btn[aria-pressed="true"] .rm-dot { background: var(--red-600); box-shadow: 0 0 0 6px rgba(218, 23, 32, .25); }
  .rm-btn[aria-pressed="true"] .rm-name { color: var(--white); }
  .rm-btn[aria-pressed="false"] .rm-name { color: var(--on-dark); }

  .rm-panel {
    display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 2rem; row-gap: .25rem;
    margin-top: 2.5rem; padding: 1.75rem 2rem;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
    border-left: 4px solid var(--blue-500); border-radius: var(--radius-md);
  }
  .rm-panel-step { grid-column: 1 / -1; font-family: var(--font-mono); font-size: .82rem; color: #8DB8FA; }
  .rm-panel-title { color: var(--white); font-size: 1.8rem; min-width: 9ch; }
  .rm-panel-text { font-size: 1.1rem; color: var(--on-dark); }
}

.ai-foot {
  display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start;
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .12);
}
.ai-foot p { font-size: 1.08rem; }
.ai-foot strong { color: var(--white); }
@media (min-width: 900px) {
  .ai-foot { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- 12. Learning paths ---------- */
.paths-ui { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.path-tabs {
  display: flex; overflow-x: auto; scrollbar-width: thin;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.path-tab {
  display: flex; align-items: center; gap: .6rem; flex: 1 0 auto;
  padding: 1rem 1.2rem; background: none; border: 0; border-bottom: 3px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem; color: var(--muted);
  white-space: nowrap; transition: color .2s, border-color .2s, background-color .2s;
}
.path-tab i { color: var(--blue-600); }
.path-tab:hover { color: var(--navy-900); }
.path-tab[aria-selected="true"] { color: var(--navy-900); background: var(--white); border-bottom-color: var(--blue-600); }
#tab-ai[aria-selected="true"] { border-bottom-color: var(--red-600); }
.path-tab:focus-visible { outline-offset: -3px; }

.path-panel { display: grid; gap: 1.75rem; padding: clamp(1.5rem, 4vw, 2.75rem); animation: panelIn .35s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.path-info h3 { font-size: 1.6rem; }
.path-info p { margin-top: .5rem; color: var(--muted); }
.path-steps { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; counter-reset: step; }
.path-steps li {
  counter-increment: step; display: inline-flex; align-items: center; gap: .55rem;
  padding: .6rem .9rem; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 8px;
  font-family: var(--font-display); font-weight: 700; color: var(--navy-900);
}
.path-steps li::before {
  content: counter(step); display: grid; place-items: center; width: 1.5rem; height: 1.5rem;
  font-size: .78rem; color: var(--white); background: var(--blue-600); border-radius: 50%;
}
.path-steps li + li { position: relative; margin-left: 1.1rem; }
.path-steps li + li::after {
  content: ""; position: absolute; left: -1.05rem; top: 50%; width: .6rem; height: .6rem;
  border-top: 2px solid var(--blue-600); border-right: 2px solid var(--blue-600);
  transform: translateY(-50%) rotate(45deg);
}
.path-panel--ai .path-steps li { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.path-panel--ai .path-steps li:last-child::before { background: var(--red-600); }
.path-panel .btn { justify-self: start; }

/* Phones: 2×2 path picker (all four visible) and vertical steps */
@media (max-width: 599px) {
  .path-tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    overflow: visible; background: var(--line);
  }
  .path-tab {
    flex-direction: column; align-items: flex-start; gap: .4rem;
    padding: .9rem .85rem; white-space: normal; text-align: left; line-height: 1.25;
    font-size: .92rem; background: var(--surface);
    border-bottom: 0; box-shadow: inset 0 -3px 0 transparent;
    min-height: 76px; touch-action: manipulation;
  }
  .path-tab i { font-size: 1.05rem; }
  .path-tab[aria-selected="true"] { background: var(--white); box-shadow: inset 0 -3px 0 var(--blue-600); }
  #tab-ai[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--red-600); }

  .path-panel { padding: 1.4rem 1.1rem 1.6rem; gap: 1.4rem; }
  .path-info h3 { font-size: 1.35rem; }
  .path-steps { flex-direction: column; align-items: stretch; gap: 0; }
  .path-steps li { padding: .7rem .9rem; }
  .path-steps li + li { margin-left: 0; margin-top: 1.1rem; }
  .path-steps li + li::after {
    left: 1.55rem; top: -.95rem; width: .5rem; height: .5rem;
    transform: rotate(135deg);
  }
  .path-panel .btn { justify-self: stretch; }
}

/* ---------- 13. Programs & courses ---------- */
.courses { background: var(--surface); }
.flagship {
  position: relative; overflow: hidden; display: grid;
  color: var(--on-dark); background: var(--navy-900); border-radius: var(--radius-lg);
  margin-bottom: 3.5rem; box-shadow: 0 30px 60px -30px rgba(11, 30, 72, .6);
}
.flagship::before { /* red corner mark */
  content: ""; position: absolute; top: -40px; right: -40px; width: 80px; height: 80px;
  background: var(--red-600); transform: rotate(45deg);
}
.flagship-main { padding: clamp(1.75rem, 4vw, 3rem); }
.flagship-badge {
  display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  color: var(--white); background: var(--red-600); border-radius: 4px;
}
.flagship-title { margin-top: 1rem; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); color: var(--white); max-width: 16ch; }
.flagship-facts { display: grid; gap: 1rem; margin-top: 1.75rem; }
.flagship-facts div { padding-left: 1rem; border-left: 2px solid var(--blue-500); }
.flagship-facts dt { font-size: .85rem; color: #8DB8FA; }
.flagship-facts dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--white); }
.flagship-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.flagship :focus-visible { outline-color: var(--white); }
.flagship-topics { padding: clamp(1.75rem, 4vw, 3rem); background: rgba(255, 255, 255, .04); border-top: 1px solid rgba(255, 255, 255, .1); }
.flagship-topics h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 1rem; }
.flagship-topics ul { display: grid; gap: .1rem; }
.flagship-topics li {
  display: flex; align-items: center; gap: .75rem; padding: .6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--white); font-weight: 500;
}
.flagship-topics li::before { content: ""; width: .45rem; height: .45rem; flex: none; background: var(--red-600); transform: rotate(45deg); }
@media (min-width: 600px) { .flagship-topics ul { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
@media (min-width: 900px) {
  .flagship-facts { grid-template-columns: auto auto; column-gap: 2rem; }
  .flagship-facts div:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .flagship { grid-template-columns: 1.05fr 1fr; }
  .flagship-topics { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .1); }
}

/* Filter (shared by courses and resources) */
.filter { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.5rem; scrollbar-width: thin; }
.filter-btn {
  flex: none; padding: .5rem .9rem; font-size: .9rem; font-weight: 600;
  color: var(--navy-800); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--blue-600); }
.filter-btn[aria-pressed="true"] { color: var(--white); background: var(--navy-900); border-color: var(--navy-900); }
@media (min-width: 900px) { .filter { flex-wrap: wrap; overflow: visible; } }

.course-grid { display: grid; gap: 1rem; }
.course {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.4rem 1.4rem 1.25rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: border-color .2s, transform .2s var(--ease);
}
.course:hover { border-color: var(--blue-500); }
.course-cat { font-size: .8rem; font-weight: 600; color: var(--muted); }
.course-title { font-size: 1.25rem; }
.course p { color: var(--muted); font-size: .96rem; flex: 1; }
.course-link { margin-top: .5rem; font-weight: 600; font-size: .94rem; text-decoration: none; }
.course-link:hover { text-decoration: underline; }
.course--ai { border-color: var(--navy-900); border-left: 4px solid var(--red-600); }
.course.is-entering { animation: panelIn .3s var(--ease); }
@media (min-width: 600px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 14. Why ATC ---------- */
.why-grid { display: grid; gap: 2.5rem; }
.why-intro .btn { margin-top: 1.75rem; }
.why-list { display: grid; gap: 0; }
.why-list li { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.why-list h3 { display: flex; align-items: center; gap: .7rem; font-size: 1.22rem; }
.why-list h3::before { content: ""; width: .5rem; height: .5rem; background: var(--red-600); transform: rotate(45deg); flex: none; }
.why-list p { margin-top: .45rem; padding-left: 1.2rem; color: var(--ink); }
.why-list p span { display: block; margin-top: .25rem; color: var(--muted); font-size: .95rem; }
@media (min-width: 700px) { .why-list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: .8fr 1.6fr; gap: 4rem; }
  .why-intro { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* ---------- 15. Project-based learning ---------- */
.build { background: var(--surface); }
.project-grid { display: grid; gap: 1rem; margin-top: 3rem; }
.project { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.project-shot {
  display: grid; place-items: center; aspect-ratio: 16 / 6;
  font-size: 2rem; color: var(--blue-600);
  background:
    repeating-linear-gradient(135deg, rgba(20,102,224,.05) 0 10px, transparent 10px 20px),
    var(--blue-50);
  border-bottom: 1px solid var(--line);
}
.project--ai .project-shot { color: var(--white); background: var(--navy-900); }
.project h3 { padding: 1.1rem 1.25rem 0; font-size: 1.12rem; }
.project p { padding: .35rem 1.25rem 1.25rem; color: var(--muted); font-size: .95rem; }
@media (min-width: 560px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 16. Internships ---------- */
.intern-grid { display: grid; gap: 3rem; }
.intern-copy p { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }
.intern-options { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-block: 1.75rem 2rem; }
.intern-options li { padding: 1rem 1.1rem; border: 1px solid var(--line); border-top: 3px solid var(--blue-600); border-radius: 8px; }
.intern-options strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--navy-900); }
.intern-options span { font-size: .9rem; color: var(--muted); }
.intern .rail { padding: 1.75rem; background: var(--surface); border-radius: var(--radius-md); }
@media (min-width: 900px) { .intern-grid { grid-template-columns: 1.1fr .9fr; gap: 5rem; align-items: center; } }

/* ---------- 17. Corporate ---------- */
.corporate { color: var(--on-dark); background: var(--navy-800); }
.corporate .section-title { color: var(--white); }
.corporate :focus-visible { outline-color: var(--white); }
.corp-grid { display: grid; gap: 3rem; }
.corp-copy > p { margin-top: 1rem; font-size: 1.05rem; }
.corp-steps { counter-reset: cs; display: grid; gap: .6rem; margin-block: 1.75rem 2.25rem; }
.corp-steps li { counter-increment: cs; display: flex; align-items: baseline; gap: .8rem; }
.corp-steps li::before {
  content: counter(cs); flex: none; display: grid; place-items: center; width: 1.7rem; height: 1.7rem;
  font-family: var(--font-display); font-weight: 800; font-size: .85rem; color: var(--navy-900);
  background: var(--white); border-radius: 50%;
}
.corp-steps strong { color: var(--white); }
.corp-services { display: grid; gap: 1px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-md); overflow: hidden; }
.corp-services li { padding: 1.35rem 1.4rem; background: var(--navy-800); transition: background-color .2s; }
.corp-services li:hover { background: var(--navy-700); }
.corp-services i { font-size: 1.2rem; color: #8DB8FA; }
.corp-services h3 { margin-top: .7rem; font-size: 1.08rem; color: var(--white); }
.corp-services p { margin-top: .25rem; font-size: .92rem; }
@media (min-width: 600px) {
  .corp-services { grid-template-columns: 1fr 1fr; }
  .corp-services li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .corp-grid { grid-template-columns: .9fr 1.1fr; gap: 4.5rem; align-items: center; } }

/* Founder facts */
.founder-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 2rem; margin-top: 1.75rem; }
.founder-facts div { padding-left: .9rem; border-left: 3px solid var(--red-600); }
.founder-facts dt { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); color: var(--navy-900); line-height: 1.1; }
.founder-facts dd { margin: .2rem 0 0; font-size: .88rem; color: var(--muted); }
.founder-copy > p.founder-tech { margin-top: 1.25rem; font-size: .96rem; color: var(--ink); }
@media (max-width: 480px) { .founder-facts { grid-template-columns: 1fr 1fr; } }

/* Corporate: founder's experience */
.corp-right { display: grid; gap: 1.5rem; }
.corp-experience { padding: 1.5rem 1.4rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-md); background: rgba(255, 255, 255, .04); }
.corp-experience h3 { color: var(--white); font-size: 1.1rem; }
.corp-experience dl { display: grid; gap: .9rem; margin-top: 1rem; }
.corp-experience dt { font-size: .82rem; font-weight: 600; color: #8DB8FA; }
.corp-experience dd { margin: .15rem 0 0; color: var(--white); }

/* ---------- 17b. Code to Career workshops ---------- */
.workshops { background: var(--surface); }
.ws-grid { display: grid; gap: 2.5rem; }
.ws-sub { margin-top: .9rem; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--navy-800); }
.ws-copy > p:not(.section-kicker):not(.ws-sub) { margin-block: 1rem 2rem; color: var(--muted); font-size: 1.05rem; }
.ws-list { padding: clamp(1.4rem, 3vw, 2rem); background: var(--white); border-radius: var(--radius-md); border-top: 4px solid var(--blue-600); }
.ws-list h3 { font-size: 1.1rem; }
.college-list { display: grid; gap: 0; margin-top: 1rem; }
.college-list li { display: flex; align-items: baseline; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy-900); }
.college-list li:last-child { border-bottom: 0; }
.college-list li::before { content: ""; flex: none; width: .45rem; height: .45rem; background: var(--red-600); transform: rotate(45deg) translateY(-2px); }
@media (min-width: 900px) { .ws-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; } }

/* ---------- 18. Resources ---------- */
.article-grid { display: grid; gap: 1rem; }
.article {
  position: relative; display: flex; flex-direction: column; gap: .5rem;
  padding: 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: border-color .2s, box-shadow .2s;
}
.article:hover { border-color: var(--blue-500); box-shadow: var(--shadow-soft); }
.article-cat { align-self: flex-start; padding: .15rem .55rem; font-size: .78rem; font-weight: 600; color: var(--blue-600); background: var(--blue-50); border-radius: 4px; }
.article h3 { font-size: 1.15rem; }
.article h3 a { color: var(--navy-900); text-decoration: none; }
.article h3 a::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit; } /* whole card clickable */
.article p { color: var(--muted); font-size: .94rem; flex: 1; }
.article-status { font-size: .8rem; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; }
.article-status::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #E0A021; }
.article--planned h3 a { cursor: default; }
.filter-empty { padding: 1.5rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-md); max-width: none; }
@media (min-width: 600px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .article-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 19. Learner proof ---------- */
.proof { background: var(--surface); }
.proof-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.proof-slot { padding: 1.5rem 1.25rem; border-radius: var(--radius-md); background: var(--white); }
.proof-slot--empty { background: transparent; border: 2px dashed #C3CFE2; }
.proof-slot i { font-size: 1.3rem; color: var(--blue-600); }
.proof-slot h3 { margin-top: .8rem; font-size: 1.05rem; }
.proof-slot p { margin-top: .3rem; font-size: .9rem; color: var(--muted); }

/* ---------- 20. Reviews ---------- */
.reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.reviews-copy p { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }
.review-list { display: grid; gap: 1rem; }
.review {
  display: flex; flex-direction: column; gap: .75rem;
  padding: 1.5rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-md);
}
.review-stars { color: #E8A317; letter-spacing: .12em; font-size: 1.05rem; line-height: 1; }
.review-text { margin: 0; flex: 1; }
.review-text p { color: var(--ink); font-size: 1rem; line-height: 1.6; }
.review-note { font-size: .8rem; color: var(--muted); }
.review-author { display: flex; align-items: center; gap: .75rem; padding-top: .9rem; border-top: 1px solid var(--line); font-weight: 600; color: var(--navy-900); }
.review-author small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.review-avatar {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  color: var(--white); background: var(--blue-600); border-radius: 50%;
}
.review:nth-child(3n+2) .review-avatar { background: var(--navy-800); }
.review:nth-child(3n) .review-avatar { background: var(--red-600); }
.review.is-entering { animation: panelIn .35s var(--ease); }
.reviews-more { display: flex; justify-content: center; margin-top: 2rem; }
@media (min-width: 640px) { .review-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .review-list { grid-template-columns: repeat(3, 1fr); } }

/* Featured recommendation */
.recommendation {
  margin: 0 0 1.5rem; padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--navy-900);
  border-radius: var(--radius-md);
}
.recommendation-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.recommendation-label { font-size: .88rem; font-weight: 600; color: var(--muted); }
.recommendation-text { margin: 1rem 0 0; }
.recommendation-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); color: var(--navy-900); }
.recommendation-text p { margin-top: .75rem; font-size: 1.04rem; max-width: 75ch; }
.recommendation-more summary {
  margin-top: .9rem; width: fit-content; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; color: var(--blue-600);
}
.recommendation-more[open] summary { margin-bottom: .25rem; }
.recommendation .review-author { margin-top: 1.25rem; }
.recommendation .review-avatar { background: var(--navy-900); }

/* ---------- 21. Contact ---------- */
.contact { background: var(--surface); }
.contact-grid { display: grid; gap: 2.5rem; }
.contact-info > p { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }
.contact-list { display: grid; gap: 1.4rem; margin-top: 2rem; }
.contact-list li { display: flex; gap: 1rem; }
.contact-list i {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px;
  color: var(--blue-600); background: var(--white); border: 1px solid var(--line); border-radius: 8px;
}
.contact-label { display: block; font-size: .82rem; color: var(--muted); }
.contact-list a { color: var(--navy-900); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--blue-600); text-decoration: underline; }

.form-card {
  position: relative; padding: clamp(1.4rem, 4vw, 2.5rem);
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--blue-600);
}
.enquiry-form { display: grid; gap: 1.1rem; }
.field-row { display: grid; gap: 1.1rem; }
.field label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .94rem; color: var(--navy-900); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  font-size: 1rem; /* 16px prevents iOS zoom */
  background: var(--white); border: 1.5px solid #C6D1E3; border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy-900) 50%), linear-gradient(135deg, var(--navy-900) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(20, 102, 224, .18);
}
.field [aria-invalid="true"] { border-color: var(--red-600); }
.field-error { min-height: 0; margin-top: .3rem; font-size: .85rem; color: var(--red-700); }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert {
  padding: .85rem 1rem; font-size: .94rem; color: var(--red-700);
  background: #FDECEC; border: 1px solid #F5C2C4; border-radius: 8px; max-width: none;
}
.form-alert a { color: inherit; font-weight: 600; }
.form-foot { font-size: .85rem; color: var(--muted); text-align: center; max-width: none; }

.spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: var(--white);
  animation: spin .8s linear infinite;
}
.is-loading .spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .9; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { text-align: center; padding-block: 1.5rem; animation: panelIn .4s var(--ease); }
.form-success:focus { outline: none; }
.success-mark {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1rem;
  font-size: 1.6rem; color: var(--white); background: var(--blue-600); border-radius: 50%;
  box-shadow: 0 0 0 8px var(--blue-50);
}
.form-success h3 { font-size: 1.6rem; }
.form-success p { margin: .6rem auto 1.5rem; color: var(--muted); }

@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 4.5rem; align-items: start; } }

/* ---------- 22. Footer ---------- */
.site-footer { color: var(--on-dark); background: var(--navy-900); padding-top: clamp(3rem, 7vw, 4.5rem); }
.site-footer :focus-visible { outline-color: var(--white); }
.footer-grid { display: grid; gap: 2.25rem; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-logo { display: inline-block; padding: .6rem .9rem; background: var(--white); border-radius: 8px; }
.footer-logo img { width: 150px; }
.footer-tag { margin-top: 1rem; font-family: var(--font-display); font-weight: 700; color: var(--white); letter-spacing: .08em; white-space: nowrap; }
.footer-brand > p:not(.footer-tag) { margin-top: .5rem; font-size: .95rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.25rem; }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px; color: var(--white);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.socials a:hover { background: var(--blue-600); border-color: var(--blue-600); }
.footer-col h2 { font-size: 1rem; color: var(--white); margin-bottom: .9rem; }
.footer-col li + li { margin-top: .5rem; }
.footer-col a { color: var(--on-dark); text-decoration: none; font-size: .94rem; word-break: break-word; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-contact { grid-column: 1 / -1; }
.footer-contact address { font-size: .94rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-contact { grid-column: auto; }
}
@media (min-width: 1100px) {
  .footer-grid { grid-template-columns: 1.7fr repeat(4, 1fr) 1.6fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
}

/* ---------- 23. Back to top ---------- */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  display: grid; place-items: center; width: 46px; height: 46px;
  color: var(--white); background: var(--navy-900); border: 0; border-radius: 50%;
  box-shadow: var(--shadow-soft); transition: transform .2s var(--ease), background-color .2s;
}
.to-top:hover { background: var(--blue-600); transform: translateY(-2px); }

/* ---------- 24. Scroll reveal (used sparingly: rails & roadmap) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 25. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-chip { animation: none; }
}

/* ---------- 26. Small-screen safety (320px) ---------- */
.hero-grid > *, .founder-grid > *, .contact-grid > *, .ws-grid > *, .corp-grid > * { min-width: 0; }
.section-title, .hero-title { overflow-wrap: break-word; }
.contact-list a, .form-success a { overflow-wrap: anywhere; }
@media (max-width: 360px) {
  .founder-copy .section-title { font-size: 1.7rem; }
}
