/* ==========================================================================
   eSuhuru — main stylesheet
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --ink: #06121f;
  --navy: #0a1c30;
  --navy-2: #0e2743;
  --cyan: #12a7c6;          /* brand cyan: fills, borders, icons */
  --cyan-text: #0a7890;     /* brand cyan for text on light backgrounds (WCAG AA) */
  --cyan-bright: #2fd2ee;   /* on dark backgrounds */
  --cyan-soft: #e2f5fa;
  --lime: #a8e02a;
  --paper: #f3f7fb;
  --white: #ffffff;
  --text: #15283c;
  --muted: #5b6c81;
  --muted-dark: #9fb6c9;    /* body text on dark backgrounds */
  --line: #dbe6f0;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --radius: 18px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --gutter: 26px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--safe-top) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p, figure, dl, dd, address { margin: 0; }
p { text-wrap: pretty; }
address { font-style: normal; }
/* A zero-width-space marker rather than "none" keeps list semantics for VoiceOver in Safari */
.list-reset { list-style: "\200B"; margin: 0; padding: 0; }

a { color: inherit; text-decoration: none; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 3px;
  border-radius: 6px;
}
.section:not(.studio):not(.contact) :focus-visible,
.card:not(.card-dark) :focus-visible { outline-color: var(--cyan-text); }

main:focus { outline: none; }

::selection { background: var(--cyan-bright); color: var(--ink); }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: calc(12px + var(--safe-top));
  left: 12px;
  z-index: 1000;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}

.section { padding-block: clamp(64px, 9vw, 120px); }

.node-dot {
  display: inline-block;
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--cyan-text);
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.eyebrow .node-dot { background: var(--cyan); box-shadow: none; }
.eyebrow-light { color: var(--cyan-bright); }
.eyebrow-light .node-dot { background: var(--cyan-bright); box-shadow: 0 0 10px var(--cyan-bright); }

.lead-muted { margin-top: 18px; color: var(--muted); max-width: 52ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary {
  background: linear-gradient(120deg, var(--cyan-bright), var(--cyan));
  color: #04202b;
  box-shadow: 0 10px 30px -10px rgba(47, 210, 238, .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(47, 210, 238, .7); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { border-color: var(--cyan-bright); color: var(--cyan-bright); }
.btn:active { transform: translateY(0); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-top: var(--safe-top);
  background: rgba(6, 18, 31, .6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .3s;
}
.site-header.is-scrolled { background: rgba(6, 18, 31, .92); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; border-radius: 10px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }

.wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--white);
}
.wordmark > span { color: var(--cyan-bright); }

.primary-nav { display: flex; align-items: center; gap: 34px; }
.primary-nav ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.primary-nav ul a {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  color: #cdd9e6;
  font-size: .9375rem;
  font-weight: 500;
  transition: color .2s;
}
.primary-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--cyan-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.primary-nav ul a:hover,
.primary-nav ul a[aria-current] { color: var(--white); }
.primary-nav ul a:hover::after,
.primary-nav ul a[aria-current]::after { transform: scaleX(1); }
.nav-cta { min-height: 44px; padding: 10px 22px; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 6px;
  border: 0;
  background: none;
  color: #cdd9e6;
  font: inherit;
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle { color: var(--white); }
.nav-caret { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.nav-dropdown.is-open .nav-caret { transform: rotate(180deg); }
.primary-nav .nav-dropdown-menu {
  display: block;
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, -6px);
  min-width: 210px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(10, 28, 48, .98);
  box-shadow: 0 18px 36px rgba(2, 10, 20, .4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.nav-dropdown-menu li + li { margin-top: 2px; }
.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: #cdd9e6;
  font-size: .9375rem;
  font-weight: 500;
  transition: color .2s, background-color .2s;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a[aria-current] { color: var(--white); background: rgba(255, 255, 255, .06); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 5px; width: 24px; margin: auto; }
.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 10, 18, .55);
}
.nav-backdrop[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + var(--safe-top) + clamp(56px, 8vw, 96px)) 0 clamp(72px, 10vw, 120px);
  background: radial-gradient(1200px 700px at 78% 12%, #123a55 0%, var(--navy) 42%, var(--ink) 100%);
  color: #eaf3fa;
}
.hero-circuit { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: .5; pointer-events: none; }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 50px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  padding: 7px 15px;
  border: 1px solid rgba(47, 210, 238, .28);
  border-radius: 999px;
  background: rgba(47, 210, 238, .1);
  color: #bfe9f3;
  font-size: .84rem;
  font-weight: 500;
}

.hero h1 { color: var(--white); font-size: clamp(2.125rem, 5.2vw, 3.75rem); font-weight: 700; }
.hero h1 .glow { color: var(--cyan-bright); text-shadow: 0 0 34px rgba(47, 210, 238, .55); }
.hero-lead { max-width: 36ch; margin-top: 24px; color: #a9c1d4; font-size: clamp(1.0625rem, 2vw, 1.25rem); }

.signature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: #d7e6f1;
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 500;
}
.signature-line { width: 34px; height: 1px; background: linear-gradient(90deg, var(--lime), transparent); }

.hero-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.hex-glow { position: relative; display: flex; align-items: center; justify-content: center; width: min(340px, 80%); aspect-ratio: 1; }
.hex-glow::before {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 32%;
  background: radial-gradient(circle at 50% 45%, rgba(47, 210, 238, .35), transparent 62%);
  filter: blur(14px);
}
.hex-glow picture { position: relative; z-index: 2; width: 78%; }
.hex-glow img {
  width: 100%;
  border-radius: 26px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(47, 210, 238, .15);
}
.orbit { position: absolute; inset: 0; z-index: 1; }
.dot { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px var(--lime); }
.dot-cyan { background: var(--cyan-bright); box-shadow: 0 0 14px var(--cyan-bright); }
.o1 { top: 6%; left: 14%; }
.o2 { top: 78%; right: 8%; }
.o3 { bottom: 4%; left: 22%; }

@media (prefers-reduced-motion: no-preference) {
  .hero-reveal { animation: rise .8s var(--ease) both; }
  .hero-reveal.d1 { animation-delay: .05s; }
  .hero-reveal.d2 { animation-delay: .15s; }
  .hero-reveal.d3 { animation-delay: .28s; }
  .hero-reveal.d4 { animation-delay: .4s; }
  .hero-art { animation: fade 1.1s var(--ease) .3s both; }
  .dot { animation: pulse 3.4s ease-in-out infinite; }
  .o2 { animation-delay: 1.1s; }
  .o3 { animation-delay: 2.1s; }
  .pulse-node { animation: softpulse 3s ease-in-out infinite; }

  /* Scroll reveal: only once main.js has run, so content is never hidden without it */
  .reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.5); opacity: 1; } }
@keyframes softpulse { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }

/* ---------- At a glance strip ---------- */
.strip { padding: 34px 0; background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .06); color: #cfe0ee; }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px 54px; }
.claim { max-width: 56ch; color: var(--white); font-family: var(--font-display); font-size: clamp(1.125rem, 2.3vw, 1.4375rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.4; }
.claim em { font-style: normal; color: var(--cyan-bright); }
.facts { display: flex; gap: 30px; }
.fact { display: flex; flex-direction: column-reverse; }
.fact dd { color: var(--lime); font-family: var(--font-display); font-size: 1.625rem; font-weight: 700; line-height: 1.3; }
.fact dt { color: #8ba1b5; font-size: .8125rem; }

/* ---------- Approach band ---------- */
.band { background: var(--white); }
.band-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.band h2, .origin h2, .about h2 { font-size: clamp(1.625rem, 3.6vw, 2.5rem); }
.band-figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--cyan-soft);
  box-shadow: 0 40px 80px -40px rgba(15, 40, 64, .35);
}
.band-figure img { width: 100%; }
.figure-tag {
  position: absolute;
  left: 18px; bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 12px;
  background: rgba(6, 18, 31, .78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #eaf6fb;
  font-size: .84rem;
  font-weight: 500;
}

/* ---------- Section head ---------- */
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
.section-head > p:last-child { margin-top: 18px; color: var(--muted); }

/* ---------- Verticals ---------- */
.verticals { background: var(--paper); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid > li { display: flex; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 32px 28px 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px 180px at 100% 0, rgba(47, 210, 238, .09), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(47, 210, 238, .5); box-shadow: 0 30px 60px -32px rgba(15, 40, 64, .4); }
.card:hover::after { opacity: 1; }
.card:target { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(47, 210, 238, .25); }

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  margin-bottom: 22px;
  border: 1px solid #cfeaf2;
  border-radius: 14px;
  background: var(--cyan-soft);
  color: var(--cyan-text);
  transition: box-shadow .3s, border-color .3s;
}
.card-icon svg { width: 26px; height: 26px; stroke-width: 1.7; }
.card:hover .card-icon { border-color: rgba(18, 167, 198, .4); box-shadow: 0 0 0 4px rgba(47, 210, 238, .08); }

.card h3 { margin-bottom: 10px; font-size: 1.3125rem; }
.card p { color: var(--muted); font-size: .97rem; }
.card .card-tags { margin-top: auto; padding-top: 18px; color: var(--muted); font-size: .8125rem; font-weight: 500; }

.card-dark { border-color: transparent; background: linear-gradient(150deg, var(--navy), var(--ink)); color: #dbe9f3; }
.card-dark h3 { color: var(--white); }
.card-dark p { color: var(--muted-dark); }
.card-dark .card-icon { border-color: rgba(168, 224, 42, .3); background: rgba(168, 224, 42, .12); color: var(--lime); }
.card-dark:hover .card-icon { border-color: rgba(168, 224, 42, .45); box-shadow: 0 0 0 4px rgba(168, 224, 42, .1); }
.card-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
}
.card-link::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; } /* whole card clickable */
.card-link span { display: inline-block; transition: transform .25s var(--ease); }
.card-dark:hover .card-link span { transform: translateX(4px); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::before { outline: 2px solid var(--lime); outline-offset: -2px; }

/* ---------- How we work ---------- */
.studio { background: var(--ink); color: #e6f1f9; }
.studio .section-head h2 { color: var(--white); }
.studio .section-head > p:last-child { color: var(--muted-dark); }

.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; counter-reset: step; }
.steps::before {
  content: "";
  position: absolute;
  top: 22px; left: 6%; right: 6%;
  height: 2px;
  background: linear-gradient(90deg, rgba(47, 210, 238, .15), rgba(47, 210, 238, .5), rgba(168, 224, 42, .5));
}
.step { position: relative; padding: 0 20px; counter-increment: step; }
.step::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 24px;
  border: 1px solid rgba(47, 210, 238, .4);
  border-radius: 50%;
  background: var(--navy-2);
  color: var(--cyan-bright);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}
.step:last-child::before { border-color: rgba(168, 224, 42, .5); color: var(--lime); }
.step h3 { margin-bottom: 10px; color: var(--white); font-size: 1.1875rem; }
.step p { color: var(--muted-dark); font-size: .9375rem; }

/* ---------- Origin (Sri Lanka) ---------- */
.origin { background: var(--white); }
.origin-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 64px); align-items: center; }

.checklist { display: grid; gap: 16px; margin-top: 26px; }
.checklist li { position: relative; padding-left: 38px; font-size: .97rem; }
.checklist li::before {
  content: "";
  position: absolute;
  top: 1px; left: 0;
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a7890' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.origin-panel {
  position: relative;
  overflow: hidden;
  padding: 40px 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--navy), var(--ink));
  color: #eaf6fb;
  box-shadow: 0 40px 80px -44px rgba(10, 28, 48, .55);
}
.origin-statement { color: var(--white); font-family: var(--font-display); font-size: clamp(1.875rem, 4vw, 2.75rem); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.origin-statement span { color: var(--cyan-bright); }
.origin-panel > p:not(.origin-statement):not(.origin-place) { margin-top: 16px; color: var(--muted-dark); }
.origin-place { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; color: #cfe0ee; font-size: .875rem; }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about-inner { max-width: 868px; }
.about-inner > p:not(.eyebrow) { margin-top: 20px; color: var(--muted); }
.operator {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.operator img { width: 44px; height: 44px; border-radius: 11px; }
.operator p { font-size: .84rem; color: var(--muted); line-height: 1.5; }
.operator strong { display: block; color: var(--text); font-family: var(--font-display); font-size: .97rem; font-weight: 600; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--navy), var(--ink)); color: #e8f3fb; }
.contact-glow {
  position: absolute;
  top: -160px; right: -120px;
  z-index: 0;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 210, 238, .16), transparent 70%);
}
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 80px); align-items: center; }
.contact h2 { color: var(--white); font-size: clamp(1.75rem, 4vw, 2.875rem); }
.contact-lead { max-width: 40ch; margin-top: 20px; color: #a9c1d4; }

.contact-card { padding: 30px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); background: rgba(255, 255, 255, .05); }
.contact-row { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.contact-row:first-child { padding-top: 0; }
.contact-row:last-child { padding-bottom: 0; border-bottom: 0; }
.contact-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(47, 210, 238, .12);
  color: var(--cyan-bright);
}
.contact-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.contact-label { margin-bottom: 3px; color: #8ba1b5; font-size: .78rem; }
.contact-value { color: #eaf3fa; font-size: .97rem; font-weight: 500; }
a.contact-value, .contact-links a { text-decoration: underline; text-decoration-color: rgba(47, 210, 238, .35); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
a.contact-value:hover, .contact-links a:hover { color: var(--cyan-bright); text-decoration-color: currentColor; }
.contact-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 calc(34px + var(--safe-bottom)); background: var(--ink); color: #8ea6ba; font-size: .9rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-about > p:not(.footer-brand) { max-width: 36ch; }
.footer-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer-brand .wordmark { font-size: 1.375rem; }

.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 11px;
  color: #b9cede;
  transition: transform .25s var(--ease), color .25s, background-color .25s, border-color .25s;
}
.socials a:hover { transform: translateY(-2px); border-color: var(--cyan-bright); background: var(--cyan-bright); color: #04202b; }
.socials svg { width: 19px; height: 19px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 44px; }
.footer-nav h2 { margin-bottom: 10px; color: #cfe0ee; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; }
.footer-nav a { display: inline-block; padding: 6px 0; color: #8ea6ba; transition: color .2s; }
.footer-nav a:hover { color: var(--white); }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 26px; font-size: .84rem; }

/* ---------- 404 page ---------- */
.error-page { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding-block: 64px; text-align: center; }
.error-page .brand { margin-bottom: 40px; }
.error-code { margin-bottom: 14px; color: var(--lime); font-family: var(--font-display); font-size: .95rem; font-weight: 700; letter-spacing: .08em; }
.error-page h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
.error-page .hero-lead { margin-inline: auto; }
.error-page .cta-row { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: block; }

  /* Off-canvas menu (JS-enhanced). Without JS the toggle is hidden and the footer nav serves navigation. */
  .no-js .nav-toggle, .no-js .primary-nav { display: none; }
  .primary-nav {
    position: fixed;
    top: 0; right: 0;
    z-index: 110;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: min(320px, 84vw);
    height: 100vh;
    height: 100dvh;
    padding: calc(var(--header-h) + var(--safe-top) + 24px) 28px calc(28px + var(--safe-bottom));
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, .1);
    background: rgba(6, 18, 31, .98);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s linear .35s;
  }
  .primary-nav.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 1.0625rem; }
  .primary-nav ul a::after { display: none; }
  .primary-nav ul a[aria-current] { color: var(--cyan-bright); }

  .nav-dropdown { border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 1.0625rem; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    top: auto; left: auto;
    min-width: 0;
    padding: 0 0 0 16px;
    border: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s var(--ease);
  }
  .nav-dropdown.is-open .nav-dropdown-menu { max-height: 200px; }
  .nav-dropdown-menu a { padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }

  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; min-height: 0; }
  .hex-glow { width: 220px; }
  .hero-circuit { opacity: .2; }

  .band-grid, .origin-grid, .contact-grid { grid-template-columns: 1fr; }
  .band-figure { order: -1; }

  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .steps::before { display: none; }

  .strip-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  body { font-size: 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step { padding: 0; }
  .facts { gap: 22px; }
  .cta-row .btn { flex: 1 1 auto; }
  .footer-top { flex-direction: column; }
  .origin-panel, .contact-card { padding: 28px 22px; }
  .figure-tag { left: 12px; bottom: 12px; font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .btn, .card, .contact-card, .operator { border: 1px solid CanvasText; }
  .node-dot, .dot { forced-color-adjust: none; }
}

@media print {
  .site-header, .skip-link, .hero-art, .hero-circuit, .contact-glow, .socials, .cta-row { display: none !important; }
  body, .hero, .strip, .studio, .contact, .site-footer, .card-dark, .origin-panel { background: #fff !important; color: #000 !important; }
  .hero { padding-top: 0; }
  h1, h2, h3, .hero h1, .wordmark, .claim, .origin-statement, .step h3, .card-dark h3 { color: #000 !important; text-shadow: none !important; }
  p, dd, dt, .contact-value { color: #222 !important; }
  .section { padding-block: 24px; }
  .card { break-inside: avoid; }
  a[href^="mailto:"]::after { content: " (" attr(href) ")"; }
}
