/* =========================================================
   42Dynamics — Cocoon-inspired dark theme
   Mobile-first. Breakpoints: 480 / 640 / 768 / 1024
   ========================================================= */

:root {
  --bg: #0a0a0a;
  --fg: #e8e8e8;
  --muted: #161616;
  --muted-fg: #8f8f8f;
  --border: #262626;
  --card: #000;
  --white: #fff;

  --green: #10b981;
  --blue: #3b82f6;
  --amber: #f59e0b;
  --violet: #8b5cf6;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 1rem;
  --radius-sm: .375rem;
  --gutter: 16px;
  --container: 64rem;
  --container-wide: 72rem;   /* 1152px */
  --header-h: 80px;
  --section-y: clamp(56px, calc(32px + 5vh), 96px);
  --glow: radial-gradient(80% 50% at 50% 0%, #1a1a1a 0%, transparent 70%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.025em; overflow-wrap: break-word; }
p, a, li { overflow-wrap: anywhere; }
mark { background: var(--white); color: #000; padding: 0 .2em; border-radius: .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--fg); color: var(--bg); padding: .5rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.container-wide {
  width: 100%;
  max-width: calc(var(--container-wide) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section-tight-top { padding-top: calc(var(--section-y) * .6); }
.section-bordered { border-block: 1px solid var(--border); }
/* ---------- Type helpers ---------- */
h1 { font-size: clamp(2.1rem, 5vw + 1rem, 3.75rem); font-weight: 500; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.25rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
.muted { color: var(--muted-fg); }
.strong { color: var(--fg); font-weight: 500; }
.small { font-size: .875rem; }
.tiny { font-size: .6875rem; color: var(--muted-fg); }
.dim { color: var(--muted-fg); font-weight: 400; }
.eyebrow {
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .15em; color: var(--muted-fg); margin-bottom: .75rem;
}
.chip {
  display: inline-block; border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  padding: .35rem 1rem; font-size: .75rem; font-weight: 500; letter-spacing: .02em; margin-bottom: 1.5rem;
}
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip-row .chip { margin-bottom: 0; white-space: nowrap; }
.lead { font-size: clamp(1.05rem, .5vw + 1rem, 1.25rem); color: var(--fg); }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
  font-size: .875rem; color: var(--muted-fg); transition: color .2s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .7rem 1.5rem; border-radius: 999px;
  font-size: .875rem; font-weight: 500; line-height: 1.2; text-align: center;
  transition: background-color .2s, opacity .2s, border-color .2s;
}
.btn-sm { min-height: 40px; padding: .5rem 1.25rem; }
.btn-primary { background: var(--white); color: #000; }
.btn-outline { border: 1px solid rgba(255,255,255,.3); color: var(--white); }

@media (hover: hover) {
  .btn-primary:hover { background: rgba(255,255,255,.88); }
  .btn-outline:hover { background: rgba(255,255,255,.1); }
  .text-link:hover, .footer a:hover, .info-list a:hover { color: var(--fg); }
  .product:hover { border-color: rgba(var(--accent-rgb), .4); }
  .product .btn:hover { border-color: rgba(var(--accent-rgb), .6); }
  .service:hover { border-color: rgba(var(--accent-rgb), .4); }
}

/* ---------- Header ---------- */
/* fixed (out of the page flow) so shrinking it on scroll can't move the page and retrigger itself;
   the body reserves the full, tall header height instead */
body { padding-top: calc(var(--header-h) + clamp(12px, 2.5vw, 28px) + env(safe-area-inset-top)); }
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
  transition: border-color .3s;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .header {
    background: rgba(10,10,10,.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}
.header.scrolled { border-bottom-color: var(--border); }
.nav {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  /* extra headroom at the top of the page; shrinks to the compact bar once scrolled */
  --nav-top: clamp(12px, 2.5vw, 28px);
  height: calc(var(--header-h) + var(--nav-top));
  padding-top: var(--nav-top);
  transition: padding-top .3s ease, height .3s ease;
}
.header.scrolled .nav, .header.menu-open .nav { --nav-top: 0px; }
/* header logo scales from phones to desktop */
.header .logo img { height: clamp(36px, 3vw + 26px, 46px); width: auto; }
.logo img { height: 30px; width: auto; }

/* "Menu" pill: same outline style as the buttons */
.menu-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-width: 44px; height: 44px; padding: 0 1.1rem; margin-right: -4px;
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  font-size: .875rem; font-weight: 500; color: var(--fg);
  transition: background-color .2s, border-color .2s;
}
.menu-button .icon-close { display: none; }
.menu-button[aria-expanded="true"] .icon-open { display: none; }
.menu-button[aria-expanded="true"] .icon-close { display: block; }
@media (max-width: 339px) {
  .menu-label { display: none; }
  .menu-button { padding: 0; width: 44px; }
}

/* Full-screen overlay, sits under the sticky header so logo + close button stay visible */
.header.menu-open { border-bottom-color: transparent; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open { overflow: hidden; }
.menu-overlay {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  background: rgba(10,10,10,.97);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
  overflow-y: auto;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .menu-overlay { background: rgba(10,10,10,.85); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
}
.menu-overlay.open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.menu-inner { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; padding-block: clamp(1.5rem, 5vh, 3rem); }

.menu-links { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.menu-links li { border-bottom: 1px solid var(--border); }
.menu-links a {
  display: flex; align-items: baseline; gap: 1rem; padding-block: clamp(.5rem, 1.6vh, 1rem);
  /* sized by width and height so six rows fit on short screens too */
  font-size: clamp(1.75rem, min(6vw, 6.5vh), 3.5rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1;
  color: var(--fg); transition: color .2s, padding-left .25s ease;
}
.menu-num { font-size: .75rem; font-weight: 500; letter-spacing: .1em; color: var(--muted-fg); min-width: 1.75rem; }
/* links slide up in sequence when the menu opens */
.menu-links li { opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s ease; }
.menu-overlay.open .menu-links li { opacity: 1; transform: none; }
.menu-overlay.open .menu-links li:nth-child(2) { transition-delay: .05s; }
.menu-overlay.open .menu-links li:nth-child(3) { transition-delay: .1s; }
.menu-overlay.open .menu-links li:nth-child(4) { transition-delay: .15s; }
.menu-overlay.open .menu-links li:nth-child(5) { transition-delay: .2s; }
.menu-overlay.open .menu-links li:nth-child(6) { transition-delay: .25s; }

.menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.menu-contact { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-size: .875rem; }
.menu-contact a { color: var(--muted-fg); transition: color .2s; min-height: 44px; display: inline-flex; align-items: center; }

@media (hover: hover) {
  .menu-button:hover { background: rgba(255,255,255,.1); }
  .menu-links a:hover { color: var(--muted-fg); padding-left: .5rem; }
  .menu-contact a:hover { color: var(--fg); }
}

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--section-y) * .8); padding-bottom: calc(var(--section-y) * .4); }
.hero-text { max-width: 44rem; }
.hero h1 mark { display: table; margin-top: .15em; white-space: nowrap; font-weight: 800; }
.hero .lead { margin-top: 1.5rem; max-width: 36rem; }
.hero .muted { margin-top: 1rem; max-width: 36rem; }
/* light-trail image: its black background disappears via lighten blend, edges fade out.
   Below the buttons on small screens, floating to the right of the text from 1024px */
.hero { position: relative; overflow: hidden; }
.hero .container { position: relative; }
.hero-text { position: relative; z-index: 1; }
.hero-visual {
  position: relative; display: block; width: min(100%, 440px); margin: 2rem auto 0; pointer-events: none;
  mix-blend-mode: lighten;
}
.hero-visual img {
  display: block; width: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
}
.hero-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-dot { filter: drop-shadow(0 0 4px rgba(255,255,255,.9)); }
/* with "reduce motion" on, main.js freezes the dot at the loop's centre instead of hiding it */
/* ---------- About ---------- */
.photo { display: block; overflow: hidden; background: #000; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.card-pad .text-link { margin-top: .5rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--card) var(--glow);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.card-pad { padding: 1.5rem; }
.icon-circle {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--muted); border: 1px solid var(--border); color: var(--fg);
}

/* ---------- Tech bar ---------- */
.techbar { border-block: 1px solid var(--border); padding-block: clamp(24px, calc(16px + 3vh), 56px); }
/* inner divider lines only: right/bottom borders, cleared on the last column and last row */
.techbar-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.techbar-grid li {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1.75rem .75rem;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: .9375rem; font-weight: 200; letter-spacing: .01em; text-align: center;
}
.techbar-grid li:nth-child(2n) { border-right: 0; }
.techbar-grid li:nth-last-child(-n+2) { border-bottom: 0; }
.techbar-grid svg { width: 22px; height: 22px; flex: 0 0 auto; stroke-width: 1; }

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--border); padding-block: clamp(32px, calc(24px + 3vh), 64px); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 1.5rem 1rem; text-align: center; border-color: var(--border); border-style: solid; border-width: 0; }
.stat:nth-child(odd) { border-right-width: 1px; }
.stat:nth-child(-n+2) { border-bottom-width: 1px; }
.stat-num { font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.stat-label { margin-top: .5rem; font-size: .8125rem; color: var(--muted-fg); }
.stat-label strong { color: var(--fg); font-weight: 500; }

/* ---------- Section heads & grids ---------- */
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head .muted { margin-top: 1rem; }
.grid-3 { display: grid; gap: 1.25rem; }

.service { display: flex; flex-direction: column; gap: .9rem; }
/* per-card accent, same palette and order as the dots elsewhere (green, blue, amber) */
.service { --accent: var(--green); --accent-rgb: 16,185,129; position: relative; }
.service:nth-child(3n+2) { --accent: var(--blue); --accent-rgb: 59,130,246; }
.service:nth-child(3n+3) { --accent: var(--amber); --accent-rgb: 245,158,11; }
.service {
  background:
    radial-gradient(80% 45% at 50% 0%, rgba(var(--accent-rgb), .14) 0%, transparent 70%),
    var(--card);
}
.service::before {
  content: ""; position: absolute; top: 0; left: 1.5rem; right: 1.5rem; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .7), transparent);
}
.service .icon-circle {
  color: var(--accent); background: rgba(var(--accent-rgb), .12); border-color: rgba(var(--accent-rgb), .25);
}
.service .text-link span { color: var(--accent); }
.service h3 { margin-top: .25rem; }
.service p { font-size: .9375rem; }
.service p.strong { font-weight: 400; }
.service .text-link { margin-top: auto; }

.product { display: flex; flex-direction: column; }
.product img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--border); }
.product .card-pad { display: flex; flex-direction: column; flex: 1; }
.product h3 { font-size: 1.375rem; }
.product .muted { margin-top: .75rem; font-size: .9375rem; flex: 1; }
.product .btn { align-self: flex-start; margin-top: 1.5rem; }
/* per-card accent, same palette and order as Services (green, blue, amber) */
.product { --accent: var(--green); --accent-rgb: 16,185,129; }
.product:nth-child(3n+2) { --accent: var(--blue); --accent-rgb: 59,130,246; }
.product:nth-child(3n+3) { --accent: var(--amber); --accent-rgb: 245,158,11; }
.product { background: var(--card); }
.product img { border-bottom: 0; }
.product .card-pad {
  position: relative;
  background: radial-gradient(80% 50% at 50% 0%, rgba(var(--accent-rgb), .12) 0%, transparent 70%);
}
.product .card-pad::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .8), transparent);
}
.product .eyebrow { color: var(--accent); }
.product .btn span { color: var(--accent); }

/* ---------- Zig-zag ---------- */
.zigzag { display: grid; gap: 4rem; }
/* section pill sits at the top of the grid; pull the first row up to a normal pill gap */
.zigzag-chip { justify-self: start; align-self: start; height: auto; margin-bottom: calc(1.5rem - 4rem); }
.zz-row { display: grid; gap: 2rem; align-items: center; }
.zz-text h2 { margin-top: .25rem; }
.zz-text .muted { margin-top: 1rem; }
.zz-visual {
  display: flex; align-items: center; justify-content: center;
  min-height: 18rem; padding: 1.5rem; border-radius: var(--radius);
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(255,255,255,.06), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 1px, transparent 1px 8px),
    #000;
}
/* photo-backed panel: image fills the panel, a see-through card floats on top */
.zz-bg { position: relative; overflow: hidden; isolation: isolate; }
.zz-bg > img {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
}
.zz-bg .mock {
  position: relative; background: transparent; border: 0;
}
/* multiply layer behind the content: darkens the photo but keeps its colour */
.zz-bg .mock::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgb(38,38,38); mix-blend-mode: multiply;
}

/* expertise variant: same panel margins as the other cards, slightly wider card, logo top-right */
.zz-row.zz-top { align-items: start; }
.zz-photo .mock {
  --pad: clamp(1.25rem, 2vw, 1.5rem);
  max-width: 320px; padding: var(--pad);
}
/* logo sits top-right, on the same line as the first item (row height = 20px dot) */
.zz-photo .mock-head {
  /* pulled partway into the corner: above the first row but still overlapping it */
  position: absolute; top: calc(var(--pad) * .5); right: calc(var(--pad) * .55);
  height: 20px; margin: 0;
}
.zz-photo .mock { --logo-h: 18px; }
.mock-logo { height: var(--logo-h, 23px); width: auto; }
/* keep the first item's text clear of the logo (logo is ~3.94× as wide as tall); it wraps on narrow cards */
.zz-photo .mock-list li:first-child { padding-right: calc(var(--logo-h) * 3.94 + 4px); }
.zz-photo .mock-list p { overflow-wrap: normal; }
.zz-photo .mock-list li { align-items: center; }

.mock {
  width: 100%; max-width: 280px; padding: 1.25rem;
  background: var(--bg); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  font-size: .75rem;
}
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-weight: 600; font-size: .75rem; }
.mock-head .dim { font-size: .6875rem; font-weight: 400; }
.mock-list { display: grid; gap: .9rem; }
.mock-list li { display: flex; gap: .75rem; align-items: flex-start; }
.mock-list p { font-weight: 500; line-height: 1.35; }
.mock-list .tiny { font-weight: 400; margin-top: .15rem; }
.dot {
  position: relative; flex: 0 0 20px; height: 20px; border-radius: 50%;
}
.dot::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: currentColor; }
.dot-green { color: var(--green); background: rgba(16,185,129,.12); }
.dot-blue { color: var(--blue); background: rgba(59,130,246,.12); }
.dot-amber { color: var(--amber); background: rgba(245,158,11,.12); }
.dot-violet { color: var(--violet); background: rgba(139,92,246,.12); }
.pill-ok {
  padding: .15rem .55rem; border-radius: 999px; font-size: .625rem; font-weight: 600;
  color: #34d399; background: rgba(16,185,129,.12);
}
.bars { display: flex; gap: 3px; margin-top: 1.25rem; }
.bars i { flex: 1; height: 22px; border-radius: 2px; background: var(--green); }
.bars i.warn { background: var(--amber); }
.split-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.1); gap: 2px; }
/* bar segments follow the same colour order as the step dots */
.split-bar i:nth-child(1) { background: var(--green); }
.split-bar i:nth-child(2) { background: var(--blue); }
.split-bar i:nth-child(3) { background: var(--amber); }
.split-bar i:nth-child(4) { background: var(--violet); }
.mock-list.steps { margin-top: 1.1rem; }
.mock-list.steps li { align-items: center; }
.mock-list.steps b { margin-left: auto; color: var(--green); font-weight: 600; }

/* ---------- Team ---------- */
.team-section { padding-top: var(--section-y); }
/* divider lines between Products, Founders and Contact, like the other sections */
#team, #contact { border-top: 1px solid var(--border); }
#contact { margin-top: var(--section-y); }
.team-panel {
  position: relative; border-radius: var(--radius); overflow: hidden;
  padding: clamp(48px, calc(32px + 5vh), 96px) 1.25rem;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.85), transparent),
    radial-gradient(120% 80% at 80% 100%, #3a3f47 0%, #15171a 55%, #0a0a0a 100%);
}
.team-grid { display: grid; gap: 1.25rem; max-width: var(--container); margin-inline: auto; }
.team-intro { align-self: center; }
.team-intro p { margin-top: 1rem; color: rgba(255,255,255,.7); }
.team-intro .chip { border-color: rgba(255,255,255,.45); }
.member { background-color: #000; }
.member { display: grid; grid-template-columns: 112px 1fr; }
.member .photo { width: 100%; height: 100%; min-height: 112px; }
.member-body { padding: 1rem 1.25rem .5rem; }
.member-body { font-size: .875rem; }
.member-name { font-weight: 600; }
.member .muted { margin-top: .15rem; }

/* ---------- Contact ---------- */
.contact-card {
  padding: 1.5rem; box-shadow: 0 -20px 50px -15px rgba(255,255,255,.05);
  /* soft multi-colour wash at the top, same palette as the rest of the page */
  background:
    radial-gradient(40% 35% at 25% 0%, rgba(16,185,129,.10) 0%, transparent 70%),
    radial-gradient(40% 35% at 50% 0%, rgba(59,130,246,.10) 0%, transparent 70%),
    radial-gradient(40% 35% at 75% 0%, rgba(139,92,246,.10) 0%, transparent 70%),
    var(--card);
}
.contact-head { text-align: center; max-width: 32rem; margin: 0 auto 2rem; }
.contact-head .muted { margin-top: .75rem; font-size: 1.0625rem; }
.contact-about {
  max-width: 48rem; margin: 0 auto 2.5rem; padding-block: 2.5rem;
  border-block: 1px solid var(--border);
  font-size: .9375rem; color: var(--muted-fg);
}
.contact-about p + p { margin-top: .75rem; }
.contact-about .eyebrow + p { margin-top: 0; }
.contact-about .strong { color: var(--fg); font-size: 1.0625rem; }
.contact-grid { display: grid; gap: 2rem; }
.info-list { display: grid; gap: 1.25rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list h3 { font-size: .875rem; font-weight: 600; }
.info-list p { font-size: .875rem; color: var(--muted-fg); margin-top: .15rem; }
.info-list a { transition: color .2s; }
/* tinted icons, cycling the page palette */
.info-list li { --accent: var(--green); --accent-rgb: 16,185,129; }
.info-list li:nth-child(4n+2) { --accent: var(--blue); --accent-rgb: 59,130,246; }
.info-list li:nth-child(4n+3) { --accent: var(--amber); --accent-rgb: 245,158,11; }
.info-list li:nth-child(4n+4) { --accent: var(--violet); --accent-rgb: 139,92,246; }
.info-list li:nth-child(5) { --accent: var(--blue); --accent-rgb: 59,130,246; }
.info-list .icon-circle {
  color: var(--accent); background: rgba(var(--accent-rgb), .12); border-color: rgba(var(--accent-rgb), .25);
}
.map-wrap {
  position: relative; min-height: 300px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--muted);
}
.map-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 max(2rem, env(safe-area-inset-bottom));
  font-size: .875rem;
}
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand .small { margin-top: 1rem; max-width: 26rem; }
.partner-logo {
  width: 140px; margin-top: 1rem; margin-left: -12px;
  filter: invert(1); mix-blend-mode: screen; opacity: .85;
}
.footer h4 { font-size: .875rem; font-weight: 600; margin-bottom: .75rem; letter-spacing: 0; }
.footer h4.mt { margin-top: 1.5rem; }
.footer-col ul { display: grid; gap: .1rem; }
.footer-col ul a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-col a, .footer-col p { color: var(--muted-fg); transition: color .2s; }
.footer-col p + p { margin-top: .75rem; }
.footer-col .label { display: block; color: var(--fg); font-weight: 500; font-size: .8125rem; }
.footer-bottom {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border);
  text-align: center; color: var(--muted-fg);
}

/* =========================================================
   Breakpoints
   ========================================================= */
@media (min-width: 480px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-intro { grid-column: 1 / -1; }
  .member { display: block; }
  .member .photo { height: auto; min-height: 0; aspect-ratio: 1; }
  .member-body { padding: 1.25rem 1.5rem 1rem; }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .card-pad { padding: 2rem; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { border-width: 0 1px 0 0 !important; padding: 1.5rem; }
  .stat:last-child { border-right-width: 0 !important; }
  .contact-card { padding: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .mock { padding: 1.5rem; }
}

@media (min-width: 768px) {
  .techbar-grid { grid-template-columns: repeat(3, 1fr); }
  .techbar-grid li { padding-block: 2rem; white-space: nowrap; }
  .techbar-grid li:nth-child(n) { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .techbar-grid li:nth-child(3n) { border-right: 0; }
  .techbar-grid li:nth-last-child(-n+3) { border-bottom: 0; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-3.center-last > :last-child:nth-child(odd) {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - .625rem);
  }
  .zigzag { gap: 6rem; }
  .zigzag-chip { margin-bottom: calc(1.5rem - 6rem); }
  .zz-row { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .zz-reverse .zz-visual { order: -1; }
  .zz-visual { min-height: 22rem; }
  .team-panel { padding-inline: 2.5rem; }
}

@media (min-width: 1024px) {
  .techbar-grid li { font-size: 1rem; padding-block: 2.25rem; }
  .hero-text { max-width: 44rem; }
  .hero-visual {
    position: absolute; z-index: 0; margin: 0;
    right: 0; top: 50%; transform: translateY(-50%);
    width: clamp(460px, 48vw, 640px);
  }
  /* keep the paragraphs clear of the image */
  .hero .lead, .hero .muted { max-width: 30rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  /* 5 products: centre the 2 cards on the second row */
  .grid-3.center-last { grid-template-columns: repeat(6, 1fr); }
  .grid-3.center-last > * { grid-column: span 2; }
  .grid-3.center-last > :nth-child(4) { grid-column: 2 / span 2; }
  .grid-3.center-last > :last-child:nth-child(odd) { grid-column: span 2; width: auto; justify-self: stretch; }
  .card-pad { padding: 2.25rem; }
  .zz-row { gap: 4rem; }
  .zz-visual { min-height: 24rem; }

  .team-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .team-grid .member:nth-child(even) { margin-top: 3rem; }
  .team-grid .member:nth-child(odd) { margin-bottom: 3rem; }
  .team-panel { padding: clamp(72px, calc(48px + 8vh), 128px) 3rem; }

  .contact-card { padding: 3rem; }
  .contact-grid { grid-template-columns: 1fr 2fr; gap: 2.5rem; }
  .map-wrap { min-height: 420px; }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 3rem; }
  .footer-brand { grid-column: auto; }
}

@media (min-width: 1280px) {
  :root { --section-y: clamp(80px, calc(48px + 8vh), 136px); }
  .team-grid { grid-template-columns: 1.2fr repeat(4, 1fr); }
  .hero-visual { right: -3rem; }
  .team-intro { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
