/* ==========================================================================
   Cogito Consultancy
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #05070a;
  --bg-2: #090c11;
  --bg-3: #0d1118;
  --panel: rgba(255, 255, 255, 0.025);
  --panel-2: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #eef2f6;
  --text-2: #b9c3cf;
  --muted: #7c8897;
  --dim: #4f5a68;

  --accent: #6ff3ff;           /* light in glass */
  --accent-rgb: 111, 243, 255;
  --accent-deep: #1fb6d1;
  --amber: #ffb547;            /* home / photon */
  --amber-rgb: 255, 181, 71;
  --ok: #7dffb0;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(var(--accent-rgb), 0.28); color: #fff; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #001014;
  border-radius: 10px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease), color 0.25s;
  isolation: isolate;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}
.btn--primary {
  color: #00161b;
  background: linear-gradient(180deg, #a6f8ff 0%, var(--accent) 45%, #3fd9ec 100%);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.5),
    0 8px 30px -8px rgba(var(--accent-rgb), 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.7),
    0 14px 44px -8px rgba(var(--accent-rgb), 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--line-2);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.btn--small { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 56px; padding: 0 26px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__arc { fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.brand__core { fill: var(--accent); filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.9)); }
.brand__node { fill: var(--bg); stroke: var(--text); stroke-width: 1.6; }
.brand__word {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand__sub {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14.5px;
  color: var(--text-2);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  display: grid;
  gap: 2px;
  padding: 8px var(--gutter) 24px;
  background: rgba(5, 7, 10, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 14px 4px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; color: var(--accent); }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav.menu-open { background: rgba(5, 7, 10, 0.94); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: 132px;
  padding-bottom: 40px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 75% 35%, rgba(var(--accent-rgb), 0.10), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(120, 140, 255, 0.07), transparent 70%);
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--line);
}
.status__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}
.status__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ok);
  opacity: 0;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero__title {
  margin-top: 28px;
  font-size: clamp(50px, 7vw, 100px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.hero__title .line { display: block; }
.hero__title em {
  display: inline-block;
  padding-right: 0.08em;
  font-size: 1.04em;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #ffffff 0%, var(--accent) 45%, #b7a7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  max-width: 560px;
  margin-top: 28px;
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.65;
  color: var(--text-2);
}
.hero__lead strong { color: var(--text); font-weight: 500; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero__creds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.hero__creds li { display: flex; flex-direction: column; gap: 2px; }
.hero__creds .k {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* Hero entrance */
.hero__copy > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s var(--ease) forwards;
}
.hero__copy > :nth-child(1) { animation-delay: 0.05s; }
.hero__copy > :nth-child(2) { animation-delay: 0.15s; }
.hero__copy > :nth-child(3) { animation-delay: 0.3s; }
.hero__copy > :nth-child(4) { animation-delay: 0.42s; }
.hero__copy > :nth-child(5) { animation-delay: 0.54s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Globe */
.globe {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 620px;
  justify-self: end;
  margin-right: -40px;
  opacity: 0;
  animation: fade 1.6s 0.2s var(--ease) forwards;
  touch-action: pan-y;
  cursor: grab;
}
.globe:active { cursor: grabbing; }
@keyframes fade { to { opacity: 1; } }
.globe canvas { width: 100%; height: 100%; }
.hud {
  position: absolute;
  left: 4%;
  bottom: 8%;
  min-width: 228px;
  padding: 14px 16px 12px;
  border-radius: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  background: rgba(8, 12, 17, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}
.hud::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.8), transparent);
}
.hud__row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 3px 0;
}
.hud__k { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; padding-top: 1px; }
.hud__v { color: var(--text); transition: opacity 0.3s; }
.hud__v--accent { color: var(--accent); text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.6); }
.hud.is-swapping .hud__v { opacity: 0; }
.hud__foot {
  margin-top: 6px;
  padding-top: 7px;
  border-top: 1px dashed var(--line-2);
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.globe__hint {
  position: absolute;
  right: 12%;
  top: 6%;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Logos */
.logos {
  display: flex;
  align-items: center;
  gap: 28px 40px;
  margin-top: 56px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos__label {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.logos__list {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 32px;
}
.logos__list li {
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #8a96a5;
  transition: color 0.3s;
}
.logos__list li:hover { color: var(--text); }

@media (max-width: 960px) {
  .hero { padding-top: 112px; }
  .hero__grid { grid-template-columns: 1fr; }
  .globe {
    justify-self: center;
    margin: 8px auto 0;
    max-width: 520px;
  }
  .logos { flex-direction: column; align-items: flex-start; }
  .logos__list { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .globe { aspect-ratio: 1 / 1.22; }
  .hud { left: 50%; bottom: 0; min-width: 260px; transform: translateX(-50%); }
  .status__more { display: none; }
  .globe__hint { display: none; }
  .hero__creds { gap: 14px 22px; }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(96px, 12vw, 160px) 0;
}
.section--alt {
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(var(--accent-rgb), 0.05), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow span {
  display: inline-grid;
  place-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.eyebrow--center { justify-content: center; }
.section__title {
  font-size: clamp(36px, 5.2vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.section__title em { color: var(--accent); font-size: 1.06em; }
.section__lede {
  max-width: 600px;
  margin-top: 22px;
  font-size: 18px;
  color: var(--text-2);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero__copy > *, .globe { opacity: 1; transform: none; animation: none; transition: none; }
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 30px 28px;
  border-radius: var(--radius);
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--accent-rgb), 0.08), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(var(--accent-rgb), 0.75), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-3px); }
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.02));
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.22);
}
.card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.card p {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.card p em { color: var(--text); font-size: 1.1em; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 24px;
}
.tags li {
  padding: 4px 9px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--line);
}
.cards .card:nth-child(3n + 2) { --d: 0.08s; }
.cards .card:nth-child(3n + 3) { --d: 0.16s; }

@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards .card:nth-child(n) { --d: 0s; }
  .cards .card:nth-child(2n) { --d: 0.08s; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .card { padding: 26px 22px 22px; }
  .cards .card:nth-child(n) { --d: 0s; }
}

/* ---------- Stats ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  padding: 48px 28px 44px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat:nth-child(2) { --d: 0.08s; }
.stat:nth-child(3) { --d: 0.16s; }
.stat:nth-child(4) { --d: 0.24s; }
.stat__num {
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, #8fa3b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  max-width: 220px;
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 36px 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .stat { padding: 30px 14px; }
  .stat__num { font-size: clamp(30px, 9vw, 40px); }
}

/* ---------- Approach ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 34px 28px 8px 0;
}
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-2);
}
.step::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 12px rgba(var(--accent-rgb), 0.6);
}
.step:nth-child(2) { --d: 0.1s; }
.step:nth-child(3) { --d: 0.2s; }
.step:nth-child(4) { --d: 0.3s; }
.step__n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.step h3 {
  margin-top: 14px;
  font-size: 30px;
  letter-spacing: -0.03em;
}
.step p {
  margin-top: 12px;
  max-width: 260px;
  font-size: 15.5px;
  color: var(--text-2);
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; row-gap: 32px; }
  .step p { max-width: none; }
}

.engage {
  margin-top: clamp(64px, 8vw, 104px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: 24px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(var(--amber-rgb), 0.06), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 0 0 1px var(--line);
}
.engage__title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.engage__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 28px;
}
.engage__item p { font-size: 15px; color: var(--text-2); }
.engage__item .engage__name {
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
@media (max-width: 960px) {
  .engage__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .engage__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Terminal / traceroute ---------- */
.term {
  border-radius: 20px;
  background: rgba(4, 6, 9, 0.85);
  box-shadow:
    inset 0 0 0 1px var(--line-2),
    0 40px 120px -40px rgba(var(--accent-rgb), 0.18),
    0 30px 60px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  font-family: var(--mono);
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.term__bar span { width: 11px; height: 11px; border-radius: 50%; background: #262d36; }
.term__bar p {
  flex: 1;
  margin-right: 51px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.term__body { padding: clamp(18px, 3vw, 32px) clamp(14px, 3vw, 32px) clamp(20px, 3vw, 30px); }
.term__cmd { font-size: 14.5px; color: var(--text); }
.term__prompt { color: var(--ok); margin-right: 8px; }
.term__meta { margin: 6px 0 18px; font-size: 13px; color: var(--muted); }
.term__done {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.term__done .ok { color: var(--ok); margin-right: 6px; }

.hops { display: grid; gap: 2px; }
.hop { border-radius: 12px; transition: background 0.3s; }
.hop:hover, .hop.is-open { background: rgba(255, 255, 255, 0.03); }
.hop__head {
  display: grid;
  grid-template-columns: 28px 210px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 18px;
  width: 100%;
  padding: 13px 14px;
  text-align: left;
  font-size: 14px;
}
.hop__n { color: var(--dim); text-align: right; }
.hop__host { color: var(--accent); }
.hop__role {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.hop__org {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
}
.hop__rtt {
  color: var(--text-2);
  font-size: 13px;
  white-space: nowrap;
}
.hop__rtt::after {
  content: "+";
  display: inline-block;
  width: 14px;
  margin-left: 14px;
  color: var(--muted);
  text-align: center;
  transition: transform 0.35s var(--ease);
}
.hop.is-open .hop__rtt::after { transform: rotate(45deg); color: var(--accent); }
.hop__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.hop.is-open .hop__body { grid-template-rows: 1fr; }
.hop__body > ul {
  overflow: hidden;
  display: grid;
  gap: 8px;
  padding-left: calc(14px + 28px + 18px);
  padding-right: 14px;
}
.hop.is-open .hop__body > ul { padding-bottom: 18px; }
.hop__body li {
  position: relative;
  max-width: 760px;
  padding-left: 20px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}
.hop__body li::before {
  content: "›";
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-family: var(--mono);
}
.hop__body a { color: var(--accent); }
.hop__body a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hop--dest .hop__host { color: var(--amber); text-shadow: 0 0 14px rgba(var(--amber-rgb), 0.5); }

/* traceroute typing state */
.term.is-typing .hop,
.term.is-typing .term__meta,
.term.is-typing .term__done { opacity: 0; }
.term .hop, .term .term__meta, .term .term__done { transition: opacity 0.35s, background 0.3s; }
.term__cmd .caret {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -3px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 760px) {
  .hop__head {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    grid-template-areas:
      "n host host"
      ". role rtt";
    gap: 6px 12px;
    padding: 12px 10px;
  }
  .hop__n { grid-area: n; }
  .hop__host { grid-area: host; font-size: 13px; overflow-wrap: anywhere; }
  .hop__rtt { grid-area: rtt; align-self: start; padding-top: 2px; font-size: 12px; }
  .hop__rtt::after { margin-left: 8px; }
  .hop__role { grid-area: role; font-size: 15px; }
  .hop__body > ul { padding-left: calc(10px + 22px + 12px); padding-right: 10px; }
}

/* ---------- Stack marquee ---------- */
.stack {
  padding: 40px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee { display: flex; overflow: hidden; }
.marquee + .marquee { margin-top: 14px; }
.marquee__track {
  display: flex;
  flex: none;
  gap: 14px;
  padding-right: 14px;
  animation: scroll 60s linear infinite;
}
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 70s; }
.stack:hover .marquee__track { animation-play-state: paused; }
.marquee__track li {
  flex: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px var(--line);
}
.marquee__track li:nth-child(3n + 1) { color: var(--text); }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; }
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.about__copy .section__title { margin-bottom: 32px; }
.about__copy > p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--text-2);
}
.about__copy > p.about__jp {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  font-size: 19px;
  color: var(--text);
  letter-spacing: 0.04em;
}
.about__copy > p.about__jp-en { margin-top: 6px; font-size: 14px; color: var(--muted); }
.about__side { position: sticky; top: 104px; --d: 0.15s; }

.profile {
  border-radius: 18px;
  background: rgba(4, 6, 9, 0.8);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 80px -30px rgba(var(--accent-rgb), 0.18);
  overflow: hidden;
}
.profile__bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.profile__lang { color: var(--dim); }
.profile__code {
  margin: 0;
  padding: 22px 20px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-2);
}
.profile__code .c { color: var(--dim); font-style: italic; }
.profile__code .k { color: var(--accent); }
.profile__code .s { color: #e7d6b0; }
.profile__code .b { color: var(--ok); }

@media (max-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .profile__code { white-space: pre-wrap; font-size: 12.5px; }
  .about__side { position: static; }
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  padding: clamp(110px, 14vw, 190px) 0;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--line);
}
.contact__glow {
  position: absolute;
  left: 50%;
  bottom: -55%;
  width: min(1200px, 160vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.04) 55%, transparent 72%);
  pointer-events: none;
}
.contact__glow::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border-top: 1px solid rgba(var(--accent-rgb), 0.45);
  filter: blur(0.5px);
}
.contact__inner { position: relative; }
.contact__title {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(42px, 7vw, 92px);
  letter-spacing: -0.045em;
  line-height: 1;
}
.contact__title em { color: var(--accent); font-size: 1.06em; }
.contact__lede {
  max-width: 580px;
  margin: 28px auto 0;
  font-size: 18px;
  color: var(--text-2);
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}
.contact__noscript { margin-top: 20px; font-family: var(--mono); color: var(--text-2); }
.toast {
  height: 20px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ok);
  opacity: 0;
  transition: opacity 0.3s;
}
.toast.is-on { opacity: 1; }
@media (max-width: 520px) {
  .contact__actions .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text);
}
.footer__brand .brand__mark { width: 22px; height: 22px; }
.footer__meta { font-family: var(--mono); font-size: 12px; }

/* ---------- 404 ---------- */
.notfound {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 40px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px var(--gutter);
  text-align: center;
  background: radial-gradient(50% 50% at 50% 40%, rgba(var(--accent-rgb), 0.08), transparent 70%);
}
.notfound__term { width: 100%; max-width: 560px; text-align: left; }
.notfound__line { font-size: 13.5px; color: var(--text-2); padding: 3px 0; }
.notfound__line .hop__n { display: inline-block; width: 20px; margin-right: 10px; }
.notfound__ok { color: var(--muted); margin-left: 8px; }
.notfound__err { margin-top: 14px; font-size: 13.5px; color: var(--amber); }
.notfound__title { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.04em; }
.notfound__title em { color: var(--accent); }

/* ---------- Leadership ---------- */
.lead {
  background:
    radial-gradient(45% 40% at 85% 10%, rgba(var(--amber-rgb), 0.06), transparent 70%),
    radial-gradient(40% 40% at 0% 70%, rgba(var(--accent-rgb), 0.05), transparent 70%);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pillar {
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  box-shadow: inset 0 0 0 1px var(--line);
}
.pillar:nth-child(2) { --d: 0.08s; }
.pillar:nth-child(3) { --d: 0.16s; }
.pillar:nth-child(4) { --d: 0.24s; }
.pillar svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(var(--amber-rgb), 0.35));
}
.pillar h3 { margin-top: 22px; font-size: 20px; letter-spacing: -0.02em; }
.pillar p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text-2); }

.pull {
  position: relative;
  margin: clamp(72px, 9vw, 120px) 0 clamp(48px, 6vw, 72px);
  padding: 0 0 0 clamp(0px, 6vw, 88px);
}
.pull::before {
  content: "“";
  position: absolute;
  left: -6px;
  top: -0.42em;
  font-family: var(--serif);
  font-size: clamp(120px, 16vw, 220px);
  line-height: 1;
  color: rgba(var(--amber-rgb), 0.22);
  pointer-events: none;
}
.pull blockquote { margin: 0; }
.pull blockquote p {
  max-width: 980px;
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.pull blockquote em {
  color: var(--amber);
  font-size: 1.06em;
  text-shadow: 0 0 40px rgba(var(--amber-rgb), 0.25);
}
.pull figcaption,
.quote figcaption {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.01em;
}
.pull figcaption::before,
.quote figcaption::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  margin-right: 12px;
  vertical-align: 4px;
  background: var(--amber);
}
.pull figcaption span,
.quote figcaption span { color: var(--muted); }

.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 30px 28px 26px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(var(--amber-rgb), 0.05), transparent 60%),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px var(--line);
}
.quote:nth-child(2) { --d: 0.08s; }
.quote:nth-child(3) { --d: 0.16s; }
.quote blockquote { margin: 0; flex: 1; }
.quote blockquote p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}
.quote figcaption {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}
.quote figcaption span { display: block; padding-left: 36px; }
.quotes__note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}
.quotes__note a { color: var(--amber); }
.quotes__note a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1020px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .pillar:nth-child(n), .quote:nth-child(n) { --d: 0s; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pull::before { top: -0.5em; }
}
