/* ==========================================================================
   GOES DEV — design system
   ========================================================================== */

@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/inter-tight.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #08090a;
  --bg-2: #0b0d0e;
  --surface: #101213;
  --surface-2: #151819;
  --text: #f2f1ec;
  --muted: #9a9c96;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.17);
  --accent: #c9f75a;
  --accent-rgb: 201, 247, 90;
  --accent-ink: #0a0c06;
  --accent-text: #c9f75a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);

  --max: 1240px;
  --pad: clamp(20px, 4.2vw, 56px);
  --radius: 20px;

  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg: #f3f1ea;
  --bg-2: #eae7de;
  --surface: #fbfaf5;
  --surface-2: #f0ede4;
  --text: #0b0d0b;
  --muted: #5d6058;
  --line: rgba(10, 12, 8, 0.11);
  --line-2: rgba(10, 12, 8, 0.22);
  --accent: #c9f75a;
  --accent-rgb: 201, 247, 90;
  --accent-ink: #0a0c06;
  --accent-text: #556b00;
  --shadow: 0 24px 60px rgba(20, 22, 16, 0.12);
}

/* ---------- reset ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, p, ul, ol, blockquote, figure {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

html.modal-open { overflow: hidden; }

/* ---------- utilities ---------- */

.container {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.section {
  padding-block: clamp(88px, 11vw, 156px);
}

section[id] { scroll-margin-top: 90px; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 900px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.label-index {
  color: var(--accent-text);
  letter-spacing: 0.05em;
}

.section-title {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section-intro {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
  margin-right: 8px;
  animation: pulse 2.4s ease-in-out infinite;
}

.hide-sm { display: inline; }

.lead {
  font-size: clamp(1.12rem, 1.7vw, 1.42rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 64ch;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--accent-text);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  width: fit-content;
}

.text-link svg,
.case-link svg,
.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.text-link:hover svg,
.btn:hover svg {
  transform: translateX(3px);
}

/* ---------- grain ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.65'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

[data-theme="light"] .grain { opacity: 0.035; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: transform 0.35s var(--ease), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(var(--accent-rgb), 0.22);
}

.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--muted);
}

.btn-sm {
  padding: 11px 18px;
  font-size: 13px;
}

.btn-dark {
  background: #0a0c06;
  color: #f2f1ec;
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.btn-outline-dark {
  border-color: rgba(10, 12, 6, 0.34);
  color: var(--accent-ink);
}

.btn-outline-dark:hover {
  background: rgba(10, 12, 6, 0.08);
}

/* ---------- skip link ---------- */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.25s ease;
}

.skip-link:focus { transform: translateY(0); }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.04em;
}

.brand-name {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-dev {
  margin-left: 6px;
  padding: 2px 5px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  margin-right: 12px;
}

.nav-desktop a {
  position: relative;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-desktop a:hover { color: var(--text); }
.nav-desktop a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease);
}

.theme-toggle:hover {
  background: var(--surface);
  transform: rotate(12deg);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* ---------- mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg);
  padding: 110px var(--pad) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: fadeIn 0.3s ease both;
}

.mobile-menu[hidden] { display: none; }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu nav a {
  padding: 14px 0;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  border-bottom: 1px solid var(--line);
}

.mobile-menu nav a:first-child { border-top: 1px solid var(--line); }

.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.mobile-menu-foot a:hover { color: var(--accent-text); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 64px;
  overflow: hidden;
}

.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 58% 72% at 73% 44%, #000 28%, transparent 74%);
  mask-image: radial-gradient(ellipse 58% 72% at 73% 44%, #000 28%, transparent 74%);
  opacity: 0.95;
}

#sphere {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 44% 52% at 74% 42%, rgba(var(--accent-rgb), 0.10), transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(255, 255, 255, 0.035), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  margin-bottom: clamp(24px, 3vw, 38px);
}

.hero-title {
  font-size: clamp(3.2rem, 8.4vw, 8.6rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin-left: -0.045em;
  text-wrap: balance;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero-title .line > span {
  display: block;
  transform: translateY(112%);
  animation: lineUp 1.15s var(--ease) forwards;
}

.hero-title .line:nth-child(1) > span { animation-delay: 0.12s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.22s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.32s; }

.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-text);
  text-stroke: 1.5px var(--accent-text);
}

.hero-sub {
  max-width: 50ch;
  margin-top: clamp(26px, 3.4vw, 40px);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 3.6vw, 42px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 760px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta li { display: flex; align-items: center; }

.scroll-hint {
  position: absolute;
  right: var(--pad);
  bottom: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 46px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(-100%);
  animation: scrollLine 2.4s ease-in-out infinite;
}

/* ---------- marquee ---------- */

.marquee {
  border-block: 1px solid var(--line);
  padding: 17px 0;
  overflow: hidden;
  background: var(--bg-2);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  animation: marquee 46s linear infinite;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track .sep {
  color: var(--accent-text);
  font-size: 9px;
}

/* ---------- manifesto ---------- */

.manifesto-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(32px, 5vw, 72px);
}

.manifesto .section-title { max-width: 18ch; }

.manifesto-body .lead { margin-top: 28px; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.principle-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent-text);
}

.principle h3 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 14px 0 8px;
}

.principle p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- cases ---------- */

.case-list { border-bottom: 1px solid var(--line); }

.case {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(28px, 4.5vw, 68px);
  padding-block: clamp(32px, 4.5vw, 52px);
  border-top: 1px solid var(--line);
}

.case:nth-child(even) .case-art { order: 2; }

.case-art {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 60% at 70% 30%, rgba(var(--accent-rgb), 0.10), transparent 70%),
    linear-gradient(145deg, var(--surface), var(--bg-2));
}

.case-art svg {
  width: 100%;
  height: 100%;
  color: var(--text);
  transition: transform 1s var(--ease);
}

.case:hover .case-art svg { transform: scale(1.035); }

.case-body { max-width: 52ch; }

.case-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.case h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 14px 0 14px;
  text-wrap: balance;
}

.case p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tags li {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px 10px;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--accent-text);
}

.case:hover .case-link svg { transform: translateX(4px); }

/* ---------- services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.service {
  background: var(--bg);
  padding: clamp(24px, 2.6vw, 34px);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: background-color 0.35s ease;
}

.service:hover { background: var(--surface); }

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.service-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-index {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.service h3 {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 26px 0 10px;
}

.service p {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}

.service-tags li {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
}

.ai-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 28px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  background:
    radial-gradient(ellipse 60% 120% at 85% 50%, rgba(var(--accent-rgb), 0.10), transparent 70%),
    var(--surface);
  border-radius: 24px;
}

.ai-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.ai-banner h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 12px 0 10px;
}

.ai-banner p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 58ch;
}

.ai-banner .btn { flex-shrink: 0; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about-visual {
  position: relative;
  max-width: 460px;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  overflow: hidden;
  background: var(--accent);
  border: 1px solid var(--line);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  mix-blend-mode: multiply;
  transform: scale(1.03);
  transition: transform 1.2s var(--ease);
}

.portrait-frame:hover img { transform: scale(1.07); }

.portrait-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(8, 9, 10, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #f2f1ec;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rotating-badge {
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.rotating-badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 20s linear infinite;
}

.rotating-badge text {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  fill: var(--muted);
  text-transform: uppercase;
}

.badge-core {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--accent-text);
}

.about-copy .section-title { max-width: 16ch; margin-top: 18px; }
.about-copy .lead { margin-top: 28px; }

.about-copy > p {
  margin-top: 18px;
  color: var(--muted);
  max-width: 62ch;
}

.pull-quote {
  margin-top: 40px;
  padding-left: 22px;
  border-left: 2px solid var(--accent);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 22ch;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.stat span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline {
  margin-top: clamp(56px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
}

.tl-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.tl-year {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.tl-row p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  letter-spacing: -0.01em;
}

/* ---------- stack ---------- */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.stack-group {
  background: var(--bg);
  padding: clamp(24px, 2.6vw, 32px);
  transition: background-color 0.35s ease;
}

.stack-group:hover { background: var(--surface); }

.stack-group h3 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chips li {
  font-size: 12.5px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.chips li:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  color: var(--accent-text);
  background: rgba(var(--accent-rgb), 0.05);
}

/* ---------- process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.step {
  background: var(--bg);
  padding: clamp(24px, 2.6vw, 32px);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  transition: background-color 0.35s ease;
}

.step:hover { background: var(--surface); }

.step-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent-text);
}

.step h3 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 56px 0 10px;
}

.step p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- faq ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 110px;
}

.faq-intro .section-title { margin: 18px 0 20px; }
.faq-intro > p { color: var(--muted); max-width: 34ch; margin-bottom: 22px; }

.faq-list { border-top: 1px solid var(--line); }

.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.faq-list summary::-webkit-details-marker { display: none; }

.plus {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  background: var(--accent-text);
  border-radius: 2px;
}

.plus::before { top: 8px; left: 0; width: 18px; height: 1.5px; }
.plus::after { top: 0; left: 8px; width: 1.5px; height: 18px; }

details[open] .plus { transform: rotate(45deg); }

.faq-list details p {
  padding: 0 32px 24px 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 66ch;
}

/* ---------- contact ---------- */

.contact {
  margin: 0 var(--pad) 0;
  border-radius: 32px;
  background: var(--accent);
  color: var(--accent-ink);
  overflow: hidden;
  position: relative;
}

.contact-inner {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
  padding: clamp(36px, 6vw, 80px) 0;
}

.contact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(10, 12, 6, 0.2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-top .status-dot {
  background: var(--accent-ink);
  box-shadow: 0 0 0 4px rgba(10, 12, 6, 0.12);
}

.contact-title {
  font-size: clamp(2.7rem, 6.6vw, 6.2rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.055em;
  margin: clamp(36px, 5vw, 60px) 0 22px;
  text-wrap: balance;
}

.contact-sub {
  max-width: 44ch;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.55;
  opacity: 0.78;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 44px);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid rgba(10, 12, 6, 0.2);
  font-size: 12px;
}

.contact-links a { display: flex; flex-direction: column; gap: 2px; }
.contact-links a:hover { opacity: 0.7; }

.contact-links span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.6;
}

/* ---------- footer ---------- */

.site-footer {
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.9fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 30ch;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.footer-nav a:hover { color: var(--text); }

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  justify-self: end;
  text-align: right;
}

.footer-meta a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- dialogs ---------- */

.case-dialog {
  width: min(700px, calc(100% - 32px));
  max-height: min(86vh, 760px);
  overflow-y: auto;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  padding: clamp(28px, 4.5vw, 52px);
  box-shadow: var(--shadow);
}

.case-dialog[open] { animation: dialogIn 0.4s var(--ease) both; }

.case-dialog::backdrop {
  background: rgba(4, 5, 4, 0.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: background-color 0.25s ease;
}

.dialog-close:hover { background: var(--bg-2); }

.dialog-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.dialog-kicker {
  display: block;
  padding-right: 48px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-dialog h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 14px 0 18px;
  padding-right: 24px;
  text-wrap: balance;
}

.dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.dialog-meta span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
}

.case-dialog h4 {
  margin: 28px 0 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.case-dialog p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 62ch;
}

/* ---------- copy feedback ---------- */

[data-copy].copied {
  background: rgba(10, 12, 6, 0.14);
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- keyframes ---------- */

@keyframes lineUp {
  from { transform: translateY(112%); }
  to { transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14); }
  50% { box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0.04); }
}

@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .step { min-height: 200px; }
}

@media (max-width: 940px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .header-cta { display: none; }

  .hero-canvas-wrap {
    opacity: 0.72;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 65% 40%, #000 20%, transparent 72%);
    mask-image: radial-gradient(ellipse 80% 60% at 65% 40%, #000 20%, transparent 72%);
  }

  .case { grid-template-columns: 1fr; gap: 24px; }
  .case:nth-child(even) .case-art { order: 0; }
  .case-body { max-width: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 420px; margin-inline: auto; }

  .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { justify-self: start; text-align: left; }
}

@media (max-width: 720px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: 24px; }
  .principles { grid-template-columns: 1fr; gap: 22px; }
  .ai-banner { flex-direction: column; align-items: flex-start; }
  .about-visual { margin-inline: auto; }
  .rotating-badge { right: -14px; bottom: -14px; width: 96px; height: 96px; }
  .stats { gap: 14px; }
  .tl-row { grid-template-columns: 92px 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .scroll-hint { display: none; }
  .hero { min-height: auto; padding-top: 128px; padding-bottom: 64px; }
  .hero-meta { margin-top: 40px; }
  .contact { margin: 0 12px; border-radius: 24px; }
  .contact-inner { width: calc(100% - 40px); }
}

@media (max-width: 560px) {
  .hide-sm { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .step { min-height: auto; }
  .step h3 { margin-top: 48px; }
  .service { min-height: auto; }
  .hero-title { font-size: clamp(2.9rem, 13.4vw, 4rem); }
  .hero-title .outline { -webkit-text-stroke-width: 1.2px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-meta { gap: 8px 18px; font-size: 9px; }
  .tags { margin-top: 18px; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn { width: 100%; }
  .footer-meta { font-size: 10px; }
  .case-dialog { padding: 28px 22px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
  .marquee-track { animation: none; }
  .rotating-badge svg { animation: none; }
}
