:root {
  color-scheme: dark;
  --bg: #070b12;
  --surface: #0c121c;
  --surface-2: #101a27;
  --ink: #f1f5f3;
  --muted: #a8b7bb;
  --line: #263341;
  --cyan: #65e6d2;
  --blue: #5e9dff;
  --lime: #d9f27f;
  --gutter: clamp(1.125rem, 4vw, 4rem);
  --header-height: 4.9rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
main { overflow: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Space Grotesk", system-ui, sans-serif; line-height: 1.6; }
[hidden] { display: none !important; }
button { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.04em; }
.container { width: min(1360px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.container > *, .service > div > *, .skill-row > * { min-width: 0; }
.skip-link { position: absolute; top: -100px; left: 18px; z-index: 10; background: var(--lime); color: #08110f; padding: 10px 16px; font-weight: 700; }
.skip-link:focus { top: 14px; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(7,11,18,.82); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; border: 1px solid var(--cyan); color: var(--cyan); font: 500 .72rem/1 ui-monospace, monospace; letter-spacing: 0; }
.brand:hover .brand-mark { background: var(--cyan); color: var(--bg); }
nav { display: flex; flex-wrap: wrap; column-gap: clamp(1rem, 2vw, 1.625rem); font: 500 .9375rem/1.5 ui-monospace, monospace; color: var(--muted); }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
nav a:hover { color: var(--cyan); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(1rem, 3vw, 3rem); align-items: center; padding-block: clamp(2.5rem, 4vw, 4rem) 2.5rem; }
.hero-copy { position: relative; z-index: 1; }
.hero .eyebrow { font-size: 1rem; letter-spacing: .09em; }
.hero .eyebrow span { margin-inline: .5rem; color: #728c99; }
.hero h1 { font-size: clamp(3rem, 5.2vw, 5.5rem); font-weight: 600; line-height: 1.07; letter-spacing: -.055em; text-wrap: initial; }
.hero-line { display: inline; }
.hero h1 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; color: #a2efe0; letter-spacing: -.045em; }
.hero .lead { max-width: 34rem; font-size: clamp(1rem, 1.35vw, 1.1875rem); }
.signal { margin: 0; min-width: 0; position: relative; }
.signal-stage { width: 100%; aspect-ratio: 1.08; max-height: 62svh; min-height: 20rem; position: relative; background: radial-gradient(ellipse at 50% 50%, #17344135, transparent 65%); }
.signal-canvas, .signal-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.signal-canvas { opacity: 0; }
.signal[data-ready] .signal-canvas { opacity: 1; }
.signal[data-ready] .signal-fallback { visibility: hidden; }
.experience { display: grid; grid-template-columns: .8fr .8fr .9fr 1.6fr; gap: 2rem; padding-block: 2.25rem 2.75rem; border-top: 1px solid var(--line); }
.experience > p { color: var(--muted); font-size: .9375rem; margin: 0; max-width: 34rem; }
.eyebrow, .number { color: var(--cyan); font: 600 1rem/1.4 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow { margin-bottom: 26px; }
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(101,230,210,.12); margin-right: 9px; }
h1 { font-size: clamp(2.75rem, 5.3vw, 5.5rem); max-width: 850px; margin-bottom: 32px; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.7vw, 3.75rem); margin-bottom: 26px; text-wrap: balance; overflow-wrap: anywhere; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); margin-bottom: 12px; }
.lead { max-width: 730px; color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.55; margin-bottom: 35px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 34px; min-height: 54px; padding: 12px 20px; background: var(--cyan); color: #07100f; font-weight: 700; text-decoration: none; box-shadow: 7px 7px 0 rgba(94,157,255,.3); }
.button:hover { background: var(--lime); box-shadow: 4px 4px 0 rgba(94,157,255,.4); transform: translate(2px, 2px); }
.inline-link { display: inline-flex; align-items: center; min-height: 44px; gap: .5rem; color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.inline-link:hover { color: var(--cyan); }
.metric strong { display: block; color: var(--ink); font-size: 1.8rem; letter-spacing: -.05em; line-height: 1.2; }
.metric span { display: block; color: var(--muted); font: 400 .9375rem/1.5 ui-monospace, monospace; }
.statement { background: var(--surface-2); border-block: 1px solid var(--line); }
.statement-inner { padding-block: clamp(78px, 9vw, 120px); }
.statement .eyebrow, .skills-section .eyebrow { color: var(--lime); }
.statement h2 { max-width: 900px; }
.statement p:last-child { max-width: 720px; color: var(--muted); font-size: 1.08rem; margin: 0; }
.section { padding-block: clamp(92px, 11vw, 150px); }
.section#offer { min-height: calc(100svh - var(--header-height)); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(3rem, 7svh, 6rem); scroll-margin-top: var(--header-height); }
.section-heading { margin-bottom: 56px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2 { max-width: 750px; margin-bottom: 0; }
.services { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 30px; border-bottom: 1px solid var(--line); padding: 36px 0; }
.service > div { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); }
.service h3 { color: var(--ink); margin-bottom: 0; }
.service p { max-width: 620px; color: var(--muted); font-size: 1rem; margin: 0; }
.skills-section { min-height: calc(100svh - var(--header-height)); background: linear-gradient(120deg, #10252b, #0b1320 58%, #121b31); border-block: 1px solid #29434a; scroll-margin-top: var(--header-height); }
.skills-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 6rem); min-height: calc(100svh - var(--header-height)); padding-block: clamp(3rem, 6svh, 5.5rem); align-items: center; }
.skills-intro h2 { max-width: 570px; }
.skills-intro > p:last-child { max-width: 560px; color: #b8ccca; font-size: 1.06rem; }
.skill-list { border-top: 1px solid #345059; }
.skill-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .5rem 1rem; align-items: start; padding: 24px 0; border-bottom: 1px solid #345059; }
.skill-index { color: var(--cyan); font: 500 .9375rem/1.5 ui-monospace, monospace; }
.skill-copy { display: grid; gap: .35rem; text-align: left; }
.skill-copy strong { color: var(--ink); font-size: 1.25rem; line-height: 1.2; }
.skill-copy > span { color: #b8ccca; font-size: .9375rem; line-height: 1.55; }
.process-art { margin: 0; min-width: 0; --process-color: #9eb8c7; }
.process-art[data-phase="1"], .process-art[data-phase="2"] { --process-color: #9bd6c9; }
.process-stage { position: relative; width: 100%; aspect-ratio: 1.6; margin-bottom: 1.75rem; }
.process-stage canvas, .process-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.process-stage canvas { opacity: 0; }
.process-art[data-ready] canvas { opacity: 1; }
.process-art[data-ready] .process-fallback { visibility: hidden; }
.process-art .skill-row { padding: .875rem 1rem; margin-inline: -1rem; border-left: 2px solid transparent; }
.process-art .skill-row { width: calc(100% + 2rem); color: inherit; background: transparent; border-top: 0; border-right: 0; border-bottom: 1px solid #345059; font: inherit; text-align: left; cursor: pointer; appearance: none; transition: border-color .8s ease, background .8s ease; }
.process-art .skill-row:hover { background: #ffffff08; }
.process-art .skill-row.is-active { border-left-color: var(--process-color); background: #ffffff05; }
.process-art .skill-row.is-active .skill-copy strong { color: var(--process-color); }
.skills-intro { align-self: center; }
.approach { background: var(--surface); border-bottom: 1px solid var(--line); }
.approach-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 6rem); padding-block: clamp(90px, 10vw, 140px); }
.approach .eyebrow { color: var(--cyan); }
.approach-copy { color: var(--muted); font-size: 1.08rem; }
.approach-copy p:last-child { margin-bottom: 0; }
.contact { display: flex; justify-content: space-between; align-items: end; gap: 40px; padding-block: clamp(85px, 10vw, 135px); }
.contact h2 { max-width: 700px; margin: 0; }
.contact .button { flex-shrink: 0; }
.site-footer { border-top: 1px solid var(--line); background: #05080d; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-block: 25px; color: var(--muted); font: 400 .875rem/1.6 ui-monospace, monospace; }
.footer-inner p { margin: 0; }
@media (max-width: 64rem) {
  .header-inner { flex-wrap: wrap; gap: .25rem 2rem; padding-block: .75rem; }
  .hero { gap: 3rem; }
  .hero-copy { max-width: 48rem; }
  .signal { width: min(100%, 42rem); justify-self: center; }
  .signal-stage { max-height: none; min-height: 0; }
  .experience { grid-template-columns: 1fr 1fr 1fr; }
  .experience > p { grid-column: 1 / -1; }
  .section#offer { padding-block: 2rem; }
  .section#offer .service { padding-block: 20px; }
  .skills-grid { padding-block: 2rem; }
  .contact { align-items: start; flex-direction: column; }
}
@media (max-width: 60rem) {
  .hero, .skills-grid, .approach-grid { grid-template-columns: 1fr; }
  .hero { gap: 3rem; }
  .hero-copy { max-width: 48rem; }
  .signal { width: min(100%, 42rem); justify-self: center; }
  .signal-stage { max-height: none; min-height: 0; }
  .skills-section { min-height: 0; }
  .skills-grid { min-height: 0; padding-block: clamp(4rem, 9vw, 7rem); }
  .service > div { grid-template-columns: 1fr; gap: 1rem; }
  .process-stage { aspect-ratio: 1.35; }
  .approach-grid { gap: 3rem; }
}
@media (min-width: 75rem) {
  .hero { grid-template-columns: minmax(0, 1.35fr) minmax(24rem, .8fr); gap: clamp(2rem, 4vw, 4rem); }
  .hero h1 { font-size: clamp(3.25rem, 4.35vw, 5rem); }
  .hero-line { white-space: nowrap; }
}
@media (max-width: 40rem) {
  html { scroll-padding-top: 1rem; }
  .site-header { position: relative; }
  .section#offer, .skills-section { scroll-margin-top: 1rem; }
  nav { width: 100%; display: flex; flex-wrap: nowrap; gap: 1.25rem; overflow-x: auto; padding-bottom: .25rem; font-family: inherit; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav a { flex: 0 0 auto; white-space: nowrap; }
  .hero { padding-block: 3.5rem 4rem; }
  .hero h1 { font-size: clamp(2.625rem, 10vw, 4rem); }
  .hero-line { white-space: normal; }
  .hero .eyebrow { font-size: 1rem; }
  .hero { gap: 3.5rem; }
  .process-stage { aspect-ratio: 1.2; }
  .experience { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .eyebrow { letter-spacing: .06em; }
  .lead { font-size: 1.125rem; }
  .service { grid-template-columns: 1fr; gap: 1rem; padding-block: 2rem; }
  .statement-inner, .section, .skills-grid, .approach-grid, .contact { padding-block: 4rem; }
  .section#offer { min-height: 0; }
  .section-heading { margin-bottom: 2rem; }
  .button { max-width: 100%; gap: 1rem; overflow-wrap: anywhere; }
  .footer-inner { gap: .75rem; }
}
@media (max-width: 22rem) {
  nav { gap: 1rem; font-size: .875rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1rem; }
}
@media (max-height: 32rem) { .site-header { position: relative; } html { scroll-padding-top: 1rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button:hover { transform: none; } }
