/* ============================================================
   Tech Excellence · v5/styles.css
   Light · clean · a little playful · Google Material × Apple/macOS
   System fonts only (SF Pro on Apple): zero third-party requests.
   No inline styles anywhere, so the page runs under a strict CSP.
   ============================================================ */

:root {
  color-scheme: light;

  /* Neutrals (Apple) */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;           /* 5.1:1 on white, 4.6:1 on --bg-alt */
  --hairline: #d2d2d7;
  --outline: #b9bcc2;

  /* Playful tonal palette (Material-style: ink / soft container / fill) */
  --blue: #0b57d0;   --blue-soft: #e8f0fe;   --blue-fill: #1a73e8;
  --green: #137333;  --green-soft: #e6f4ea;  --green-fill: #1e8e3e;
  --amber: #8f4f00;  --amber-soft: #fef7e0;  --amber-fill: #e37400;
  --red: #c5221f;    --red-soft: #fce8e6;    --red-fill: #d93025;
  --violet: #8430ce; --violet-soft: #f3e8fd; --violet-fill: #9334e6;
  --teal: #007b83;   --teal-soft: #e4f7fb;   --teal-fill: #129eaf;

  --rainbow: linear-gradient(90deg, #0b57d0 0%, #8430ce 40%, #d93025 72%, #e8710a 100%);
  --rainbow-light: linear-gradient(90deg, #8ab4f8 0%, #c58af9 40%, #f28b82 72%, #fdd663 100%);

  /* Type:SF Pro on Apple devices, Segoe UI on Windows, Roboto on Android */
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Shape & motion */
  --nav-h: 52px;
  --radius: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-hover: 0 22px 44px -18px rgba(29, 29, 31, 0.2);
}

/* Tone utilities: set once, used by any component inside */
.tone-blue   { --tone: var(--blue);   --tone-soft: var(--blue-soft);   --tone-fill: var(--blue-fill); }
.tone-green  { --tone: var(--green);  --tone-soft: var(--green-soft);  --tone-fill: var(--green-fill); }
.tone-amber  { --tone: var(--amber);  --tone-soft: var(--amber-soft);  --tone-fill: var(--amber-fill); }
.tone-red    { --tone: var(--red);    --tone-soft: var(--red-soft);    --tone-fill: var(--red-fill); }
.tone-violet { --tone: var(--violet); --tone-soft: var(--violet-soft); --tone-fill: var(--violet-fill); }
.tone-teal   { --tone: var(--teal);   --tone-soft: var(--teal-soft);   --tone-fill: var(--teal-fill); }

/* ============================================================
   FOUNDATION
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

svg { display: block; flex-shrink: 0; }
a { color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; letter-spacing: -0.022em; text-wrap: balance; }
p { text-wrap: pretty; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible { outline: 3px solid rgba(11, 87, 208, 0.45); outline-offset: 2px; border-radius: 10px; }
::selection { background: #d3e3fd; color: var(--text); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 12px 12px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ============================================================
   BUTTONS, CHIPS, SHARED TYPE
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.4s var(--spring), background-color 0.2s ease, box-shadow 0.25s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0842a0; box-shadow: 0 8px 20px -8px rgba(11, 87, 208, 0.6); }
.btn-tonal { background: var(--blue-soft); color: var(--blue); }
.btn-tonal:hover { background: #d3e3fd; }
.btn-outline { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--hairline); }
.btn-outline:hover { box-shadow: inset 0 0 0 1px #a1a1a6; }
.btn-sm { min-height: 32px; padding: 6px 14px; font-size: 14px; }
.chev { transition: transform 0.4s var(--spring); }
.btn:hover .chev { transform: translateX(3px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.chip-status { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--hairline), 0 1px 2px rgba(0, 0, 0, 0.04); }
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-fill);
  box-shadow: 0 0 0 4px var(--green-soft);
  animation: pulseDot 2.4s ease-in-out infinite;
}
.chip-tonal { background: var(--tone-soft); color: var(--tone); font-size: 13px; font-weight: 600; padding: 6px 12px; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tone-fill); }

.eyebrow { margin-bottom: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--tone); }

.gradient-text {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.gradient-text-light {
  background: var(--rainbow-light);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Playful icon containers:each tile gets its own shape; they all morph to a circle on hover */
.shape-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--tone-soft);
  color: var(--tone);
  transition: border-radius 0.6s var(--spring), transform 0.6s var(--spring);
}
.shape-circle   { border-radius: 50%; }
.shape-squircle { border-radius: 16px; }
.shape-arch     { border-radius: 26px 26px 10px 10px; }
.shape-leaf     { border-radius: 26px 8px 26px 8px; }
.shape-blob     { border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%; }
:is(.tile, .value-card):hover .shape-icon { border-radius: 50%; transform: rotate(-10deg) scale(1.07); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 120px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 800px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.07; letter-spacing: -0.03em; }
.section-intro { margin-top: 16px; font-size: 21px; line-height: 1.42; color: var(--text-2); }

.group-title { margin-bottom: 20px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }

/* ============================================================
   NAV:Apple-style frosted bar.
   The blur lives on ::before: a backdrop-filter on the header itself
   would trap the position:fixed mobile menu inside the header.
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.site-header.scrolled::before { border-bottom-color: rgba(0, 0, 0, 0.09); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
/* Brand mark: two halves (technical depth + business strategy) joined by an amber spark */
.brand-mark { width: 28px; height: 28px; overflow: visible; }
.mark-spark { transform-box: fill-box; transform-origin: center; transition: transform 0.5s var(--spring); }
.brand:hover .mark-spark { transform: scale(1.3); }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 14px; color: rgba(29, 29, 31, 0.8); text-decoration: none; transition: color 0.2s ease; }
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--blue); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -12px;
  background: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-lines { position: relative; width: 18px; height: 10px; }
.nav-toggle-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav-toggle-lines span:nth-child(1) { top: 0; }
.nav-toggle-lines span:nth-child(2) { top: 8.4px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(1) { top: 4.2px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(2) { top: 4.2px; transform: rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: calc(var(--nav-h) + 84px) 0 24px; text-align: center; overflow: hidden; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero .chip-status { margin-bottom: 28px; }

.hero-title {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 6.6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
}
.hero-title .line { display: block; width: fit-content; margin-inline: auto; }
.hero-title .gradient-text { padding-bottom: 0.08em; }

.hero-sub { max-width: 700px; margin-bottom: 32px; font-size: 21px; line-height: 1.45; color: var(--text-2); }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 76px; }

/* --- macOS window --- */
.hero-stage { position: relative; width: 100%; max-width: 760px; margin: 0 auto 32px; }
.mac-window {
  position: relative;
  z-index: 2;
  overflow: hidden;
  text-align: left;
  background: #1e1e20;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 34px 70px -24px rgba(29, 29, 31, 0.42),
    0 12px 24px -12px rgba(29, 29, 31, 0.22);
}
.mac-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  background: linear-gradient(#3a3a3c, #2f2f31);
  border-bottom: 1px solid rgba(0, 0, 0, 0.45);
}
.lights { display: flex; gap: 8px; }
.light { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.25); }
.light-red { background: #ff5f57; }
.light-yellow { background: #febc2e; }
.light-green { background: #28c840; }
.mac-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.55);
}

.terminal { padding: 22px 26px 26px; font-family: var(--mono); font-size: 14.5px; line-height: 1.8; color: #e8eaed; }
.term-row { display: grid; grid-template-columns: 2ch 8.5ch 1fr; }
.t-prompt { color: #81c995; }
.t-dim { color: #9aa0a6; }
.t-red { color: #f28b82; }
.t-blue { color: #8ab4f8; }
.t-green { color: #81c995; }
.t-amber { color: #fdd663; }
.t-ok { color: #81c995; }
.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  vertical-align: -0.2em;
  background: #e8eaed;
  animation: blink 1.1s steps(1) infinite;
}

/* --- Playful shapes peeking around the window --- */
.shape { position: absolute; z-index: 1; display: block; }
.shape-blue { width: 124px; height: 124px; left: -58px; top: 40px; border-radius: 50%; background: #aecbfa; animation: floaty 8s ease-in-out infinite; }
.shape-amber { width: 150px; height: 54px; right: -62px; top: -24px; border-radius: 999px; background: #fdd663; rotate: -16deg; animation: floaty 7s ease-in-out infinite 0.8s; }
.shape-green { width: 110px; height: 110px; right: -40px; bottom: -34px; border-radius: 100% 0 0 0; background: #a8dab5; animation: floaty 9s ease-in-out infinite 1.6s; }
.shape-red { width: 34px; height: 34px; left: 44px; bottom: -16px; z-index: 3; border-radius: 50%; background: #f28b82; animation: floaty 6s ease-in-out infinite 0.4s; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust { padding: 64px 0 8px; text-align: center; }
.trust-label { margin-bottom: 18px; font-size: 14px; color: var(--text-2); }
.trust-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.trust-list li {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-2);
  transition: color 0.2s ease;
}
.trust-list li:hover { color: var(--text); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.prose p { font-size: 19px; line-height: 1.55; color: var(--text-2); }
.prose p + p { margin-top: 18px; }
.prose strong { color: var(--text); font-weight: 600; }

/* "Security at the core":the hats worn around it, each on a glow of its own colour */
.core { margin: 0; }
.core-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 16% 16%, rgba(217, 48, 37, 0.13), transparent 40%),
    radial-gradient(circle at 84% 16%, rgba(26, 115, 232, 0.14), transparent 40%),
    radial-gradient(circle at 84% 84%, rgba(30, 142, 62, 0.13), transparent 40%),
    radial-gradient(circle at 16% 84%, rgba(227, 116, 0, 0.14), transparent 40%),
    var(--bg-alt);
}
.core-ring { position: absolute; border-radius: 50%; }
.core-ring-outer { inset: 10%; border: 1.5px dashed #c2c2c8; animation: spin 90s linear infinite; }
.core-ring-inner { inset: 27%; border: 2px dotted #c2c2c8; animation: spin 60s linear infinite reverse; }
.core-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 31%;
  aspect-ratio: 1 / 1;
  border-radius: 30%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 20px 40px -20px rgba(29, 29, 31, 0.4);
}
.core-center .brand-mark { width: 38%; height: auto; }
.core-label { font-size: clamp(12px, 1.25vw, 15px); font-weight: 600; letter-spacing: -0.01em; }
.hat {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--tone);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 20px -12px rgba(29, 29, 31, 0.4), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  animation: floaty 7s ease-in-out infinite;
}
.hat-tl { top: 22%; left: 22%; }
.hat-tr { top: 22%; left: 78%; animation-duration: 8s; animation-delay: 1.2s; }
.hat-br { top: 78%; left: 78%; animation-duration: 7.5s; animation-delay: 0.6s; }
.hat-bl { top: 78%; left: 22%; animation-duration: 8.5s; animation-delay: 1.8s; }
.core figcaption { margin-top: 16px; font-size: 15px; text-align: center; color: var(--text-2); }

.values { margin-top: 96px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  transition: transform 0.55s var(--spring), box-shadow 0.4s ease, background-color 0.3s ease;
}
.value-card:hover { transform: translateY(-6px); background: #fff; box-shadow: var(--shadow-hover), inset 0 0 0 1px rgba(0, 0, 0, 0.05); }
.value-card h4 { margin: 18px 0 8px; font-size: 19px; letter-spacing: -0.02em; }
.value-card p { font-size: 15px; line-height: 1.47; color: var(--text-2); }

/* ============================================================
   SERVICES:bento
   ============================================================ */
.tier-title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.tier-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tone-fill);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.bento + .tier-title { margin-top: 64px; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.55s var(--spring), box-shadow 0.4s ease;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.tile h4 { margin: 22px 0 8px; font-size: 24px; line-height: 1.15; letter-spacing: -0.025em; }
.tile-tag { margin-bottom: 12px; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--tone); }
.tile-text { font-size: 16px; line-height: 1.5; color: var(--text-2); }
.tile-text:not(:last-child) { margin-bottom: 22px; }

.cert-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 7px 12px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

/* Featured tile: two columns wide, two rows tall */
.tile-feature {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: space-between;
  padding: 40px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 45%, #eef3fe 100%);
}
.tile-feature h4 { margin-top: 20px; font-size: clamp(1.7rem, 2.6vw, 2.15rem); letter-spacing: -0.03em; }
.tile-feature .tile-tag { font-size: 17px; }
.tile-feature .tile-text { max-width: 580px; font-size: 17px; }
/* The art takes the remaining height and sits in its centre */
.tile-art { flex: 1; align-self: stretch; display: grid; place-items: center; margin-top: 28px; }

.eu-ring { width: 280px; height: 280px; overflow: visible; }
.ring-disc { fill: #fff; stroke: #d3e3fd; stroke-width: 2; }
.ring-stars { fill: var(--blue-fill); transform-origin: 120px 120px; animation: spin 80s linear infinite; }
.ring-core { fill: var(--blue-soft); }
.ring-glyph { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   EXPERIENCE:macOS Settings-style grouped lists
   ============================================================ */
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.list-title {
  margin: 0 0 10px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
}
.list-title span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.inset-list + .list-title { margin-top: 32px; }

.inset-list { overflow: hidden; border-radius: 20px; background: var(--bg-alt); }
.row { display: flex; gap: 14px; padding: 0 20px; transition: background-color 0.2s ease; }
.row:hover { background: #ececf0; }
.row + .row .row-body { border-top: 1px solid var(--hairline); }
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-top: 15px;
  border-radius: 11px;
  background: var(--tone-fill);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.5s var(--spring);
}
.row:hover .avatar { transform: rotate(-8deg) scale(1.06); }
.row-body { flex: 1; min-width: 0; padding: 15px 0 16px; }
.row-title { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.row-aside { margin-left: 4px; font-weight: 400; color: var(--text-2); }
.row-role { margin-top: 1px; font-size: 15px; font-weight: 500; color: var(--text); }
.row-text { margin-top: 3px; font-size: 15px; line-height: 1.45; color: var(--text-2); }

/* ============================================================
   STATEMENT:the one dark moment
   ============================================================ */
.statement { padding: 140px 0; background: #000; color: #f5f5f7; text-align: center; }
.bounce-dots { display: flex; justify-content: center; gap: 10px; margin-bottom: 36px; }
.bounce-dots span { width: 12px; height: 12px; border-radius: 50%; animation: bounce 2.4s var(--ease) infinite; }
.bounce-dots span:nth-child(1) { background: #8ab4f8; }
.bounce-dots span:nth-child(2) { background: #f28b82; animation-delay: 0.12s; }
.bounce-dots span:nth-child(3) { background: #fdd663; animation-delay: 0.24s; }
.bounce-dots span:nth-child(4) { background: #81c995; animation-delay: 0.36s; }
.statement blockquote p {
  max-width: 920px;
  margin: 0 auto;
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.statement figcaption { margin-top: 24px; font-size: 17px; color: #a1a1a6; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-inner { max-width: 780px; text-align: center; }
.contact-head h2 { font-size: clamp(2.3rem, 5.4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.035em; }
.coffee { margin: 0 auto 18px; overflow: visible; }
.coffee .cup { fill: var(--amber-soft); stroke: var(--amber-fill); stroke-width: 3; stroke-linejoin: round; }
.coffee .cup-handle,
.coffee .saucer { fill: none; stroke: var(--amber-fill); stroke-width: 3; stroke-linecap: round; }
.coffee .steam { fill: none; stroke: #b0b3b8; stroke-width: 2.5; stroke-linecap: round; animation: steam 2.8s ease-in-out infinite; }
.coffee .steam-2 { animation-delay: 0.45s; }
.coffee .steam-3 { animation-delay: 0.9s; }

.contact-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.form-card {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 44px -20px rgba(29, 29, 31, 0.2);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Material-style fields with floating labels (placeholder=" " drives :placeholder-shown) */
.field { position: relative; margin-bottom: 14px; }
.field input,
.field textarea {
  width: 100%;
  padding: 26px 16px 10px;
  border: 1px solid var(--outline);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 150px; padding-top: 30px; resize: vertical; }
.field label {
  position: absolute;
  top: 17px;
  left: 17px;
  font-size: 17px;
  color: var(--text-2);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform 0.25s var(--ease), color 0.2s ease;
}
.field :is(input, textarea):focus-visible { outline: none; }
.field :is(input, textarea):focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.16); }
.field :is(input, textarea):is(:focus, :not(:placeholder-shown)) + label { transform: translateY(-10px) scale(0.76); }
.field :is(input, textarea):focus + label { color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--red-fill); }
.field [aria-invalid="true"] + label { color: var(--red); }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.form-privacy { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.4; color: var(--text-2); }

/* The live region stays rendered so screen readers announce updates */
.form-note { margin-top: 14px; padding: 10px 14px; border-radius: 12px; font-size: 14px; text-align: center; }
.form-note:empty { margin: 0; padding: 0; }
.form-note.error { background: var(--red-soft); color: var(--red); }
.form-note.success { background: var(--green-soft); color: var(--green); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { padding: 40px 0 30px; background: var(--bg-alt); border-top: 1px solid var(--hairline); font-size: 13px; color: var(--text-2); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--hairline); }
.footer-brand .brand { font-size: 15px; }
.footer-brand .brand-mark { width: 24px; height: 24px; }
.footer-brand p { margin-top: 10px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; }
.footer-privacy { display: inline-flex; align-items: center; gap: 7px; }
.footer-privacy svg { color: var(--green-fill); }

/* ============================================================
   404 PAGE
   ============================================================ */
.not-found { display: grid; place-items: center; min-height: 100vh; padding: 64px 0; text-align: center; }
.not-found .brand-mark { width: 64px; height: 64px; margin: 0 auto 22px; }
.not-found h1 { margin-bottom: 14px; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; }
.not-found .section-intro { max-width: 520px; margin: 0 auto 28px; }
.not-found .hero-actions { margin-bottom: 48px; }
.not-found .mac-window { max-width: 520px; margin: 0 auto; }
.not-found a:hover .mark-spark { transform: scale(1.3); }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 4px var(--green-soft); } 50% { box-shadow: 0 0 0 7px var(--green-soft); } }
@keyframes bounce { 0%, 40%, 100% { translate: 0 0; } 20% { translate: 0 -12px; } }
@keyframes steam { 0% { opacity: 0; translate: 0 4px; } 45% { opacity: 1; } 100% { opacity: 0; translate: 0 -8px; } }
@keyframes termIn { from { opacity: 0; translate: -8px 0; } to { opacity: 1; translate: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-feature { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: center; gap: 32px; }
  .tile-feature-body { flex: 1 1 auto; }
  .tile-feature .tile-art { flex: 0 0 auto; align-self: center; margin-top: 0; }
  .eu-ring { width: 210px; height: 210px; }
  .bento-eng > :first-child { grid-column: 1 / -1; }

  .exp-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 20px 32px 32px;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    opacity: 0;
    visibility: hidden;                  /* closed menu is not focusable */
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s; }
  .nav-menu li { opacity: 0; translate: 0 -8px; transition: opacity 0.35s ease, translate 0.5s var(--ease); }
  .nav-menu.open li { opacity: 1; translate: none; }
  .nav-menu.open li:nth-child(2) { transition-delay: 0.04s; }
  .nav-menu.open li:nth-child(3) { transition-delay: 0.08s; }
  .nav-menu.open li:nth-child(4) { transition-delay: 0.12s; }
  .nav-menu.open li:nth-child(5) { transition-delay: 0.16s; }
  .nav-link { display: block; padding: 10px 0; font-size: 28px; font-weight: 600; letter-spacing: -0.025em; color: var(--text); }
  .nav-cta { margin-top: 24px; }
  .nav-cta .btn { width: 100%; min-height: 50px; font-size: 17px; }

  body.menu-open { overflow: hidden; }
  body.menu-open .site-header::before { background: rgba(255, 255, 255, 0.97); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 84px 0; }
  .hero { padding-top: calc(var(--nav-h) + 56px); }
  .hero-sub, .section-intro { font-size: 19px; }
  .hero-actions { margin-bottom: 56px; }

  .terminal { padding: 18px 16px 20px; font-size: 12px; }
  .term-row { grid-template-columns: 2ch 7.5ch 1fr; }
  .shape-blue { width: 76px; height: 76px; left: -26px; top: 30px; }
  .shape-amber { width: 96px; height: 36px; right: -24px; top: -16px; }
  .shape-green { width: 72px; height: 72px; right: -18px; bottom: -22px; }
  .shape-red { width: 24px; height: 24px; left: 28px; bottom: -11px; }

  .values-grid, .bento { grid-template-columns: 1fr; }
  .hat { gap: 6px; padding: 7px 12px 7px 9px; font-size: 13px; }
  .hat svg { width: 14px; height: 14px; }
  .bento-eng > :first-child { grid-column: auto; }
  .tile { padding: 26px; }
  .tile-feature { flex-direction: column; align-items: flex-start; padding: 28px; }
  .tile-feature .tile-art { align-self: center; margin-top: 16px; }
  .eu-ring { width: 180px; height: 180px; }

  .form-card { padding: 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .form-foot .btn { width: 100%; }

  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .contact-pills .btn { width: 100%; }
}

/* ============================================================
   MOTION:springy reveals and staggered pop-ins.
   Reveals use `translate`, hovers use `transform`: they never collide.
   Everything is visible when scripting is off or motion is reduced.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .term-line { opacity: 0; animation: termIn 0.5s var(--ease) forwards; }
  .term-line:nth-child(1) { animation-delay: 0.6s; }
  .term-line:nth-child(2) { animation-delay: 1.15s; }
  .term-line:nth-child(3) { animation-delay: 1.4s; }
  .term-line:nth-child(4) { animation-delay: 1.65s; }
  .term-line:nth-child(5) { animation-delay: 1.9s; }
  .term-line:nth-child(6) { animation-delay: 2.5s; }
  .term-line:nth-child(7) { animation-delay: 2.9s; }
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    translate: 0 28px;
    transition: opacity 0.7s ease, translate 0.9s var(--spring);
  }
  [data-reveal].in-view { opacity: 1; translate: none; }

  [data-stagger] > * {
    opacity: 0;
    translate: 0 32px;
    transition:
      opacity 0.6s ease var(--d, 0s),
      translate 0.9s var(--spring) var(--d, 0s),
      transform 0.55s var(--spring),
      box-shadow 0.4s ease,
      background-color 0.3s ease;
  }
  [data-stagger].in-view > * { opacity: 1; translate: none; }
  [data-stagger] > :nth-child(2) { --d: 0.07s; }
  [data-stagger] > :nth-child(3) { --d: 0.14s; }
  [data-stagger] > :nth-child(4) { --d: 0.21s; }
  [data-stagger] > :nth-child(5) { --d: 0.28s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-dot, .cursor, .shape, .ring-stars, .core-ring, .hat, .bounce-dots span, .coffee .steam { animation: none !important; }
  .btn, .tile, .value-card, .shape-icon, .avatar, .mark-spark { transition: none !important; }
}
