:root {
  --ink: #101210;
  --paper: #f2f0e7;
  --paper-bright: #fbfaf5;
  --muted: #62685e;
  --acid: #dfff00;
  --aqua: #72e9dd;
  --blue: #3157ff;
  --orange: #ff9566;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(rgba(16,18,16,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(16,18,16,.045) 1px, transparent 1px), var(--paper);
  background-size: 48px 48px;
  line-height: 1.55;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 99; top: 12px; left: 12px; padding: 10px 14px; transform: translateY(-160%); background: var(--ink); color: white; }
.skip-link:focus { transform: none; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: relative; z-index: 10; width: min(1320px, calc(100% - 40px)); min-height: 78px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px;
  margin: 20px auto 0; padding: 14px 18px; border: 2px solid var(--ink);
  background: rgba(251,250,245,.94); box-shadow: 6px 6px 0 var(--ink);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; color: var(--ink); font-size: 16px; font-weight: 900; letter-spacing: .08em; text-decoration: none; }
.brand img { border: 2px solid var(--ink); }
.site-header nav { display: flex; align-items: center; gap: 26px; }
.site-header nav a, .nav-contact { position: relative; color: var(--ink); font-size: 13px; font-weight: 750; text-decoration: none; }
.site-header nav a::after, .nav-contact::after, .text-link::after { position: absolute; right: 0; bottom: -5px; left: 0; height: 2px; transform: scaleX(0); transform-origin: right; background: var(--blue); content: ""; transition: transform 160ms ease; }
.site-header nav a:hover::after, .nav-contact:hover::after, .text-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-contact { justify-self: end; }

.hero { min-height: 760px; display: grid; grid-template-columns: minmax(0,.9fr) minmax(480px,1.1fr); align-items: center; gap: clamp(40px,8vw,110px); padding-block: 92px 110px; }
.eyebrow { margin: 0 0 18px; font-family: var(--mono); font-size: 11px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--blue); }
.hero h1, .section-heading h2, .thread h2, .company h2 { margin: 0; font-size: clamp(52px,7.4vw,104px); font-weight: 850; letter-spacing: -.075em; line-height: .88; }
.hero h1 em { color: var(--blue); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-lead { max-width: 630px; margin: 32px 0 0; color: #3d433a; font-size: clamp(19px,2vw,25px); line-height: 1.42; }
.hero-actions, .company-actions, .product-links { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 20px; border: 2px solid var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; transition: transform 150ms ease, box-shadow 150ms ease; }
.button:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--blue); }
.button-dark { background: var(--ink); color: white; box-shadow: 5px 5px 0 var(--acid); }
.button-light { background: var(--paper-bright); box-shadow: 5px 5px 0 var(--ink); }

.constellation { position: relative; min-height: 560px; overflow: hidden; border: 3px solid var(--ink); background: radial-gradient(circle at center, rgba(223,255,0,.94) 0 10%, transparent 10.5%), linear-gradient(135deg,var(--acid),var(--aqua) 52%,#92a5ff); box-shadow: 12px 12px 0 var(--ink); }
.constellation::before, .constellation::after { position: absolute; inset: 50% auto auto 50%; width: 2px; height: 72%; background: rgba(16,18,16,.55); content: ""; }
.constellation::before { transform: translate(-50%,-50%) rotate(37deg); }
.constellation::after { transform: translate(-50%,-50%) rotate(-51deg); }
.constellation-label { position: absolute; top: 18px; left: 20px; font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.orbit { position: absolute; inset: 50% auto auto 50%; border: 1.5px solid rgba(16,18,16,.45); border-radius: 50%; transform: translate(-50%,-50%); }
.orbit-one { width: 390px; height: 390px; }
.orbit-two { width: 250px; height: 250px; }
.constellation-core { position: absolute; z-index: 2; top: 50%; left: 50%; width: 100px; height: 100px; display: grid; place-items: center; transform: translate(-50%,-50%) rotate(-5deg); border: 2px solid var(--ink); background: var(--ink); color: white; font-family: var(--mono); font-size: 12px; font-weight: 900; letter-spacing: .16em; line-height: 1.2; text-align: center; box-shadow: 6px 6px 0 white; }
.node { position: absolute; z-index: 3; width: 185px; min-height: 108px; padding: 14px; border: 2px solid var(--ink); background: var(--paper-bright); color: var(--ink); text-decoration: none; box-shadow: 5px 5px 0 rgba(16,18,16,.75); transition: transform 160ms ease, box-shadow 160ms ease; }
.node:hover { transform: translate(-3px,-3px) rotate(0); box-shadow: 8px 8px 0 var(--blue); }
.node-browser { top: 72px; left: 44px; transform: rotate(-3deg); }
.node-grip { top: 102px; right: 34px; transform: rotate(3deg); }
.node-tdf { bottom: 56px; left: 54px; transform: rotate(2deg); }
.node-drive { right: 42px; bottom: 64px; transform: rotate(-2deg); }
.node-index { display: block; font-family: var(--mono); font-size: 10px; }
.node strong { display: block; margin-top: 12px; font-size: 22px; letter-spacing: -.04em; }
.node small { display: block; margin-top: 3px; color: #62685e; font-size: 12px; }

.signal-strip { min-height: 62px; display: flex; align-items: center; justify-content: space-around; gap: 24px; padding: 16px 24px; overflow: hidden; border-block: 2px solid var(--ink); background: var(--acid); font-family: var(--mono); font-size: 11px; font-weight: 900; letter-spacing: .1em; white-space: nowrap; }
.products, .principles { padding-block: 132px; }
.section-heading { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(260px,.55fr); align-items: end; gap: 70px; margin-bottom: 62px; }
.section-heading h2, .thread h2, .company h2 { font-size: clamp(44px,5.8vw,78px); }
.section-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 17px; }

.product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.product { min-height: 500px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px,4vw,52px); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.product-browserbox { background: var(--paper-bright); }
.product-grip { background: var(--ink); color: white; }
.product-tdf { background: var(--blue); color: white; }
.product-drivechain { background: #0d211b; color: #eafff6; }
.product-topline { display: flex; justify-content: space-between; gap: 20px; font-family: var(--mono); font-size: 10px; font-weight: 850; letter-spacing: .11em; }
.product h3 { margin: 70px 0 14px; font-size: clamp(40px,5vw,68px); letter-spacing: -.065em; line-height: .9; }
.product h3 span { color: var(--acid); }
.product-thesis { margin: 0 0 20px; font-size: 20px; font-weight: 750; }
.product p:not(.product-thesis) { max-width: 520px; opacity: .78; }
.product-links a { position: relative; padding-bottom: 5px; border-bottom: 2px solid currentColor; font-size: 13px; font-weight: 800; text-decoration: none; }
.product-browserbox .product-links a:first-child { color: var(--blue); }
.product-grip .product-links a:first-child, .product-drivechain .product-links a:first-child { color: var(--acid); }

.thread { padding-block: 120px; background: var(--ink); color: white; }
.thread-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(440px,1.1fr); gap: 90px; }
.thread .eyebrow { color: var(--acid); }
.thread-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid #434a40; }
.thread-steps li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 25px 0; border-bottom: 1px solid #434a40; }
.thread-steps > li > span { color: var(--acid); font-family: var(--mono); font-size: 11px; }
.thread-steps strong { font-size: 19px; }
.thread-steps p { margin: 7px 0 0; color: #aeb5aa; }

.principle-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.principle-grid article { min-height: 310px; padding: 34px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--paper-bright); }
.principle-grid article:nth-child(2) { background: var(--acid); }
.principle-grid article:nth-child(3) { background: var(--orange); }
.principle-grid span { font-family: var(--mono); font-size: 10px; font-weight: 850; }
.principle-grid h3 { margin: 70px 0 16px; font-size: 29px; letter-spacing: -.04em; line-height: 1.05; }
.principle-grid p { color: #3d433a; }

.company { padding-block: 120px; border-top: 2px solid var(--ink); background: var(--paper-bright); }
.company-grid { display: grid; grid-template-columns: .6fr 1.4fr; align-items: start; gap: 80px; }
.company-mark { width: 260px; height: 260px; display: grid; place-items: center; margin: 0; transform: rotate(-4deg); border: 3px solid var(--ink); background: var(--blue); color: white; box-shadow: 12px 12px 0 var(--acid); font-family: var(--mono); font-size: 30px; font-weight: 900; line-height: 1.1; letter-spacing: .15em; text-align: center; }
.company-lead { max-width: 760px; color: var(--muted); font-size: 20px; }
.text-link { position: relative; font-size: 14px; font-weight: 800; text-decoration: none; }

.site-footer { border-top: 2px solid var(--ink); background: var(--ink); color: white; }
.footer-main { width: min(1320px,calc(100% - 48px)); display: grid; grid-template-columns: 1.6fr repeat(3,1fr); gap: 52px; margin-inline: auto; padding-block: 72px; }
.footer-brand { color: white; }
.footer-main > div:first-child p { color: #aeb5aa; }
.footer-group { display: flex; flex-direction: column; gap: 8px; }
.footer-group > span { margin-bottom: 9px; color: var(--acid); font-family: var(--mono); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.footer-group a { width: max-content; color: #d8ddd4; font-size: 13px; text-decoration: none; }
.footer-group a:hover { color: white; }
.footer-bottom { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px max(24px,calc((100% - 1320px)/2)); border-top: 1px solid #3c423a; color: #aeb5aa; font-family: var(--mono); font-size: 10px; }
.footer-bottom a { color: var(--acid); text-decoration: none; }

@media (max-width: 940px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 70px 90px; }
  .constellation { min-height: 540px; }
  .section-heading, .thread-grid, .company-grid { grid-template-columns: 1fr; gap: 46px; }
  .product-grid { grid-template-columns: 1fr; }
  .product { min-height: 430px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article { min-height: 250px; }
  .principle-grid h3 { margin-top: 45px; }
  .footer-main { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 620px) {
  .shell { width: min(1180px, calc(100% - 28px)); }
  .site-header { width: calc(100% - 24px); min-height: 66px; margin-top: 12px; padding: 10px 12px; box-shadow: 4px 4px 0 var(--ink); }
  .brand { font-size: 13px; }
  .brand img { width: 29px; height: 29px; }
  .nav-contact { font-size: 11px; }
  .hero { padding-top: 62px; }
  .hero h1 { font-size: clamp(52px,17vw,76px); }
  .hero-lead { font-size: 18px; }
  .hero-actions .button { width: 100%; }
  .constellation { min-height: 520px; box-shadow: 7px 7px 0 var(--ink); }
  .node { width: 144px; min-height: 96px; padding: 11px; }
  .node strong { font-size: 17px; }
  .node-browser { top: 67px; left: 18px; }
  .node-grip { top: 115px; right: 15px; }
  .node-tdf { bottom: 58px; left: 17px; }
  .node-drive { right: 16px; bottom: 38px; }
  .orbit-one { width: 320px; height: 320px; }
  .orbit-two { width: 205px; height: 205px; }
  .constellation-core { width: 82px; height: 82px; }
  .signal-strip { justify-content: flex-start; overflow-x: auto; }
  .products, .principles { padding-block: 88px; }
  .section-heading h2, .thread h2, .company h2 { font-size: clamp(43px,13vw,62px); }
  .product { min-height: 450px; padding: 28px; }
  .product h3 { margin-top: 48px; }
  .thread { padding-block: 86px; }
  .thread-grid { gap: 42px; }
  .thread-steps li { grid-template-columns: 42px 1fr; }
  .company { padding-block: 86px; }
  .company-mark { width: 190px; height: 190px; font-size: 23px; }
  .footer-main { width: calc(100% - 32px); grid-template-columns: 1fr 1fr; gap: 42px 24px; padding-block: 56px; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; padding: 24px 16px; }
}

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