:root {
  --bg: #f3f1ea;
  --surface: #ebe9e1;
  --ink: #11120f;
  --muted: #67685f;
  --line: #cfcdc2;
  --acid: #d8ff29;
  --acid-ink: #0c0d09;
  --dark: #12130f;
  --dark-2: #1b1d17;
  --dark-muted: #aaa99f;
  --max: 1540px;
  --pad: clamp(20px, 3.2vw, 56px);
  --radius: 26px;
  --shadow: 0 24px 80px rgba(16, 17, 14, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
::selection { background: var(--acid); color: var(--acid-ink); }

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: .026;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.container { width: min(var(--max), 100%); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(80px, 9vw, 150px); border-top: 1px solid var(--line); }
.section-dark { background: var(--dark); color: #f5f4ed; border-top-color: #2a2c24; }
.section-acid { background: var(--acid); color: var(--acid-ink); border-top: 0; }

.eyebrow, .mono, .chip, .project-no, .spec-label, .nav a, .brand-sub {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.eyebrow { font-size: 12px; line-height: 1.4; color: var(--muted); }
.section-dark .eyebrow { color: var(--dark-muted); }
.display {
  margin: 0;
  font-size: clamp(58px, 9vw, 156px);
  line-height: .86;
  letter-spacing: -.065em;
  font-weight: 720;
}
.h1 {
  margin: 0;
  font-size: clamp(48px, 7.2vw, 118px);
  line-height: .91;
  letter-spacing: -.055em;
  font-weight: 720;
}
.h2 {
  margin: 0;
  font-size: clamp(40px, 5.7vw, 86px);
  line-height: .94;
  letter-spacing: -.045em;
  font-weight: 700;
}
.h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1;
  letter-spacing: -.035em;
}
.lede {
  font-size: clamp(19px, 2vw, 30px);
  line-height: 1.32;
  letter-spacing: -.02em;
  max-width: 850px;
  margin: 0;
}
.copy { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 760px; }
.section-dark .copy { color: var(--dark-muted); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  mix-blend-mode: normal;
}
.header-inner {
  margin: 14px auto 0;
  width: min(calc(var(--max) - 2 * var(--pad)), calc(100% - 28px));
  min-height: 64px;
  padding: 10px 12px 10px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(17,18,15,.12);
  border-radius: 18px;
  background: rgba(243, 241, 234, .83);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(17,18,15,.06);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; letter-spacing: -.025em; }
.brand-mark {
  width: 31px; height: 31px; border-radius: 8px;
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  background: var(--acid);
  font-family: "IBM Plex Mono", monospace; font-size: 12px;
}
.brand-sub { color: var(--muted); font-size: 10px; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { font-size: 11px; color: #474840; transition: color .2s ease; }
.nav a:hover, .nav a.active { color: var(--ink); }
.header-actions { justify-self: end; display: flex; gap: 8px; align-items: center; }
.menu-button { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--ink); border-radius: 999px;
  font: 600 12px/1 "IBM Plex Mono", monospace;
  text-transform: uppercase; letter-spacing: .05em;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-acid { background: var(--acid); color: var(--acid-ink); }
.btn-dark { background: var(--ink); color: #f5f4ed; }
.btn-ghost { background: transparent; }

/* Hero */
.hero { min-height: 100svh; padding-top: 118px; display: flex; align-items: stretch; }
.hero .container { display: grid; grid-template-rows: auto 1fr auto; gap: 34px; }
.hero-top { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.hero-status { text-align: right; font: 11px/1.5 "IBM Plex Mono", monospace; color: var(--muted); }
.hero-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); gap: clamp(30px, 5vw, 90px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .lede { margin-top: clamp(28px, 4vw, 54px); max-width: 820px; }
.hero-actions { margin-top: 34px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.06;
  min-height: 460px;
  border-left: 1px solid var(--line);
  overflow: hidden;
}
#network { width: 100%; height: 100%; }
.visual-caption {
  position: absolute; bottom: 18px; left: 18px; right: 18px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font: 10px/1.45 "IBM Plex Mono", monospace; text-transform: uppercase;
}
.hero-bottom { padding: 26px 0 30px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.hero-bottom .copy { margin: 0; font-size: 14px; }

/* Ticker */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker-track { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.ticker span { padding: 18px 28px; font: 11px/1 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.ticker span::after { content: "↗"; margin-left: 28px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Grid and statements */
.split { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(44px, 8vw, 130px); align-items: start; }
.sticky { position: sticky; top: 110px; }
.big-statement { font-size: clamp(43px, 6.4vw, 100px); line-height: .94; letter-spacing: -.055em; font-weight: 700; margin: 0; }
.big-statement em { font-style: normal; background: var(--acid); padding-inline: .08em; }

.feature-list { border-top: 1px solid var(--line); }
.feature {
  display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 16px;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.feature-no { font: 12px/1.2 "IBM Plex Mono", monospace; color: var(--muted); }
.feature h3 { font-size: clamp(25px, 3vw, 42px); letter-spacing: -.035em; margin: 0 0 12px; }
.feature p { margin: 0; max-width: 720px; color: var(--muted); line-height: 1.6; }

/* Projects */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head .copy { margin: 0; justify-self: end; }
.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.project-card {
  position: relative; overflow: hidden; min-height: 520px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: clamp(26px, 3vw, 44px);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .3s ease, box-shadow .3s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card.large { grid-column: span 7; }
.project-card.small { grid-column: span 5; }
.project-card.dark { background: var(--dark); color: #f3f1ea; border-color: #2b2d25; }
.project-card.acid { background: var(--acid); }
.project-top { display: flex; justify-content: space-between; gap: 20px; }
.project-no { font-size: 11px; color: var(--muted); }
.dark .project-no { color: var(--dark-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chip { font-size: 9px; border: 1px solid currentColor; border-radius: 999px; padding: 6px 8px; opacity: .68; }
.project-title { font-size: clamp(42px, 5vw, 78px); line-height: .9; letter-spacing: -.055em; margin: auto 0 18px; }
.project-copy { max-width: 610px; margin: 0 0 28px; color: var(--muted); line-height: 1.55; }
.dark .project-copy { color: var(--dark-muted); }
.project-link { align-self: flex-start; border-bottom: 1px solid currentColor; padding-bottom: 4px; font: 11px/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.project-diagram {
  position: absolute; width: min(46%, 320px); aspect-ratio: 1;
  right: -3%; bottom: -10%; border: 1px solid currentColor; border-radius: 50%; opacity: .18;
}
.project-diagram::before, .project-diagram::after { content: ""; position: absolute; border: 1px solid currentColor; border-radius: 50%; inset: 22%; }
.project-diagram::after { inset: 43%; background: currentColor; }

/* Sport ecosystem */
.ecosystem {
  position: relative; min-height: 680px; margin-top: 54px;
  border: 1px solid #32352c; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(circle at center, #25281f 0, var(--dark) 54%);
}
.eco-center, .eco-node {
  position: absolute; transform: translate(-50%, -50%);
  border: 1px solid #525548; border-radius: 999px;
  background: rgba(18,19,15,.88); backdrop-filter: blur(8px);
  font: 10px/1 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em;
}
.eco-center { left: 50%; top: 50%; width: 168px; height: 168px; display: grid; place-items: center; background: var(--acid); color: var(--acid-ink); border-color: var(--acid); font-weight: 700; }
.eco-node { padding: 14px 18px; }
.eco-node:nth-of-type(2) { left: 50%; top: 15%; }
.eco-node:nth-of-type(3) { left: 78%; top: 27%; }
.eco-node:nth-of-type(4) { left: 85%; top: 61%; }
.eco-node:nth-of-type(5) { left: 66%; top: 83%; }
.eco-node:nth-of-type(6) { left: 34%; top: 83%; }
.eco-node:nth-of-type(7) { left: 15%; top: 61%; }
.eco-node:nth-of-type(8) { left: 22%; top: 27%; }
.eco-ring { position:absolute; left:50%; top:50%; width: 520px; height: 520px; transform: translate(-50%,-50%); border:1px solid #33362d; border-radius:50%; }
.eco-ring.small { width: 340px; height: 340px; }
.eco-line { position:absolute; left:50%; top:50%; width: 1px; height: 48%; background:#35372f; transform-origin: top center; }

/* Team composer */
.team-composer { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; margin-top: 54px; }
.team-panel, .team-stage { border: 1px solid var(--line); border-radius: var(--radius); min-height: 540px; background: var(--surface); }
.team-panel { padding: clamp(26px, 3vw, 40px); }
.team-tabs { display:flex; flex-direction:column; border-top:1px solid var(--line); margin-top:30px; }
.team-tab { appearance:none; border:0; border-bottom:1px solid var(--line); background:none; padding:20px 0; text-align:left; cursor:pointer; display:flex; justify-content:space-between; gap:16px; color:var(--muted); }
.team-tab.active { color:var(--ink); }
.team-tab span:first-child { font-size: 18px; font-weight: 650; }
.team-tab span:last-child { font: 10px/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.team-stage { position:relative; overflow:hidden; background:var(--dark); color:#fff; }
.team-core { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:170px; height:170px; border-radius:50%; display:grid; place-items:center; text-align:center; background:var(--acid); color:var(--acid-ink); padding:20px; font:700 11px/1.35 "IBM Plex Mono", monospace; text-transform:uppercase; }
.role { position:absolute; transform:translate(-50%,-50%); min-width:110px; text-align:center; padding:12px 15px; border:1px solid #4a4d42; border-radius:999px; background:#181a15; color:#c9c8be; font:10px/1 "IBM Plex Mono", monospace; text-transform:uppercase; transition:opacity .25s ease, transform .25s ease; }
.role.hidden { opacity:.12; transform:translate(-50%,-50%) scale(.82); }
.role[data-role="product"] { left:50%; top:16%; }
.role[data-role="ux"] { left:78%; top:31%; }
.role[data-role="frontend"] { left:83%; top:65%; }
.role[data-role="backend"] { left:64%; top:83%; }
.role[data-role="devops"] { left:36%; top:83%; }
.role[data-role="data"] { left:17%; top:65%; }
.role[data-role="ai"] { left:22%; top:31%; }
.team-ring { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:68%; aspect-ratio:1; border:1px solid #33362d; border-radius:50%; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 58px; }
.process-step { padding: 28px 24px 44px 0; border-bottom: 1px solid var(--line); position: relative; }
.process-step:not(:last-child) { border-right: 1px solid var(--line); padding-left: 24px; }
.process-step:first-child { padding-left: 0; }
.process-step .num { font: 11px/1 "IBM Plex Mono", monospace; color: var(--muted); margin-bottom: 80px; }
.process-step h3 { font-size: clamp(24px, 2.5vw, 40px); margin: 0 0 16px; letter-spacing: -.03em; }
.process-step p { margin:0; color:var(--muted); line-height:1.55; }

/* Stats */
.stats { display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid #373930; border-left:1px solid #373930; margin-top:56px; }
.stat { padding:36px; min-height:210px; border-right:1px solid #373930; border-bottom:1px solid #373930; display:flex; flex-direction:column; justify-content:space-between; }
.stat strong { font-size:clamp(48px,6vw,90px); letter-spacing:-.06em; line-height:.9; }
.stat span { font:10px/1.35 "IBM Plex Mono", monospace; text-transform:uppercase; color:var(--dark-muted); }

/* Footer */
.footer-cta { min-height: 82svh; display:flex; align-items:center; }
.footer-cta .display { max-width: 1100px; }
.footer-row { margin-top:60px; display:flex; gap:12px; flex-wrap:wrap; }
.footer { padding: 24px 0 36px; border-top: 1px solid rgba(17,18,15,.18); }
.footer-inner { display:grid; grid-template-columns:1fr auto; gap:20px; align-items:end; }
.footer-meta { color:#57584f; font:10px/1.6 "IBM Plex Mono", monospace; text-transform:uppercase; }
.footer-links { display:flex; gap:18px; font:10px/1 "IBM Plex Mono", monospace; text-transform:uppercase; }

/* Internal pages */
.page-hero { padding: 160px 0 90px; min-height: 78svh; display:flex; align-items:flex-end; }
.page-hero-grid { display:grid; grid-template-columns:.9fr 1.1fr; gap:50px; align-items:end; }
.page-hero .lede { margin-top:34px; }
.page-index { font:10px/1.4 "IBM Plex Mono", monospace; color:var(--muted); text-transform:uppercase; }

.case-row { display:grid; grid-template-columns: 1fr 1.4fr; gap:28px; padding:44px 0; border-top:1px solid var(--line); }
.case-row:last-child { border-bottom:1px solid var(--line); }
.case-meta h3 { font-size:clamp(35px,4vw,64px); margin:0 0 14px; letter-spacing:-.045em; }
.case-meta .mono { font-size:10px; color:var(--muted); }
.case-body { display:grid; gap:24px; }
.case-body p { margin:0; color:var(--muted); font-size:17px; line-height:1.65; }
.case-flow { display:flex; gap:8px; flex-wrap:wrap; }
.case-flow span { border:1px solid var(--line); border-radius:999px; padding:9px 12px; font:10px/1 "IBM Plex Mono", monospace; text-transform:uppercase; }

.sport-solutions { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:50px; }
.solution { min-height:330px; padding:28px; border:1px solid #34362e; border-radius:20px; display:flex; flex-direction:column; justify-content:space-between; background:#171814; }
.solution h3 { font-size:30px; letter-spacing:-.035em; margin:0; }
.solution p { color:var(--dark-muted); line-height:1.55; }
.solution .mono { font-size:10px; color:#8f9086; }

.reveal { opacity:0; transform:translateY(26px); transition:opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity:1; transform:none; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns:1fr auto; }
  .nav { display:none; }
  .header-actions .btn { display:none; }
  .menu-button { display:grid; place-items:center; width:42px; height:42px; border:1px solid var(--ink); background:transparent; border-radius:50%; cursor:pointer; }
  .mobile-menu { position:fixed; inset:0; background:var(--bg); z-index:70; padding:110px var(--pad) 40px; transform:translateY(-105%); transition:transform .35s ease; }
  .menu-open .mobile-menu { transform:none; }
  .mobile-menu nav { display:flex; flex-direction:column; gap:10px; }
  .mobile-menu a { font-size:clamp(36px,9vw,68px); letter-spacing:-.05em; }
  .hero-main, .split, .team-composer, .page-hero-grid { grid-template-columns:1fr; }
  .hero-visual { border-left:0; border-top:1px solid var(--line); min-height:420px; }
  .hero-bottom, .section-head { grid-template-columns:1fr; }
  .section-head .copy { justify-self:start; }
  .project-card.large, .project-card.small { grid-column:1/-1; }
  .process, .stats { grid-template-columns:1fr 1fr; }
  .sport-solutions { grid-template-columns:1fr 1fr; }
  .case-row { grid-template-columns:1fr; }
}

@media (max-width: 640px) {
  :root { --radius:20px; }
  .header-inner { margin-top:8px; width:calc(100% - 16px); min-height:58px; }
  .brand-sub { display:none; }
  .hero { padding-top:92px; }
  .hero-main { gap:26px; }
  .hero-top { display:none; }
  .hero-visual { min-height:330px; aspect-ratio: 1.05/1; }
  .hero-bottom { grid-template-columns:1fr; padding-bottom:20px; }
  .section { padding-block:72px; }
  .feature { grid-template-columns:52px 1fr; }
  .project-card { min-height:450px; }
  .project-title { font-size:46px; }
  .ecosystem { min-height:520px; }
  .eco-ring { width:360px; height:360px; }
  .eco-ring.small { width:240px; height:240px; }
  .eco-center { width:125px; height:125px; }
  .eco-node { font-size:8px; padding:10px 12px; }
  .team-panel, .team-stage { min-height:460px; }
  .role { min-width:88px; padding:10px; font-size:8px; }
  .team-core { width:130px; height:130px; font-size:9px; }
  .process, .stats, .sport-solutions { grid-template-columns:1fr; }
  .process-step:not(:last-child) { border-right:0; padding-left:0; }
  .process-step .num { margin-bottom:36px; }
  .stat { min-height:170px; }
  .footer-inner { grid-template-columns:1fr; }
  .page-hero { padding-top:130px; min-height:auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  .reveal { opacity:1; transform:none; }
}
