:root {
  color-scheme: dark;
  --ink: #12171a;
  --deep: #101416;
  --light: #f4f2e9;
  --muted: #aeb6b8;
  --line: #343d41;
  --blue: #8aa7ff;
  --mint: #8ad7be;
  --text: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--light); background: var(--ink); font-family: var(--text); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
figure, p, h1, h2 { margin: 0; }
.shell { width: min(100% - clamp(2.5rem, 9.6vw, 10rem), 98rem); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.skip-link { position: fixed; inset: .8rem auto auto .8rem; z-index: 10; padding: .8rem; color: var(--ink); background: var(--light); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.masthead { border-bottom: 1px solid var(--line); background: var(--deep); }
.masthead-inner, .footer-inner { min-height: 5.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; font-size: .94rem; letter-spacing: -.035em; line-height: 1; flex: 0 0 auto; }
.wordmark img { filter: brightness(0) invert(1); }
.masthead nav, .site-footer nav { display: flex; gap: clamp(1rem, 3vw, 2.8rem); align-items: center; white-space: nowrap; }
.masthead nav a, .site-footer nav a { font-size: .83rem; color: var(--muted); }
.masthead nav a:hover, .site-footer nav a:hover { color: var(--light); }
.masthead-contact, .company-link { display: inline-flex; align-items: center; gap: .75rem; }
.masthead-contact { border: 1px solid #556264; font-size: .83rem; padding: .64rem .75rem; }
.masthead-contact:hover { background: var(--light); color: var(--deep); }

.hero { background: var(--deep); }
.hero-inner {
  min-height: clamp(34rem, calc(100svh - 5.1rem), 54rem);
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding-block: clamp(3.5rem, 7vw, 7.5rem);
}
.hero-copy { max-width: 40rem; }
h1, h2 { font-weight: 540; letter-spacing: -.065em; text-wrap: balance; }
h1 { max-width: 11ch; font-size: clamp(3.65rem, 6.1vw, 6.9rem); line-height: .94; }
.hero-copy p { max-width: 31ch; color: var(--muted); margin-top: 1.75rem; font-size: clamp(.99rem, 1.35vw, 1.24rem); line-height: 1.6; }
.hero-link { display: inline-flex; align-items: center; gap: .95rem; margin-top: 2.2rem; padding-bottom: .56rem; color: var(--light); border-bottom: 1px solid #636d70; font-size: .84rem; }
.hero-link:hover { border-color: var(--blue); color: var(--blue); }
.hero-link span { font-size: 1.1rem; line-height: 1; }

.scene { border: 1px solid var(--line); background: #151b1e; min-width: 0; }
.scene-top, .scene-bottom { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 3rem; padding: .65rem clamp(.8rem, 1.6vw, 1.25rem); font-size: .72rem; }
.scene-top { border-bottom: 1px solid var(--line); }
.scene-top figcaption { color: var(--light); font-weight: 500; }
.scene-top > span { color: var(--muted); font-family: var(--mono); font-size: .66rem; }
.scene-canvas { position: relative; aspect-ratio: 1.45; overflow: hidden; background-color: #181f22; background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px); background-size: 20px 20px; }
.scene-canvas canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.scene-bottom { border-top: 1px solid var(--line); }
.scene-keys, .scene-controls { display: flex; gap: .8rem; }
.scene-controls[hidden] { display: none; }
.scene-keys span { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; color: var(--muted); }
.scene-keys span::before { content: ""; width: .43rem; height: .43rem; border-radius: 50%; background-color: var(--blue); }
.scene-keys .key-b::before { background-color: var(--mint); }
.scene-controls { background: #101416; border: 1px solid #384346; padding: .18rem; gap: .12rem; }
.scene-controls button { background: none; color: var(--muted); border: 0; cursor: pointer; padding: .35rem .44rem; white-space: nowrap; }
.scene-controls button[aria-pressed="true"] { color: var(--light); background: #384346; }
.scene-controls button:hover { color: var(--light); }

.approach, .company-inner { display: grid; grid-template-columns: minmax(7.5rem, .38fr) minmax(0, 1fr); gap: clamp(1.75rem, 6vw, 7rem); padding-block: clamp(4.5rem, 9vw, 10rem); scroll-margin-top: 1rem; }
.approach { color: #141a1b; }
main { background: #f4f2e9; }
.label { font-family: var(--mono); font-size: .75rem; padding-top: .4rem; color: #475455; }
h2 { font-size: clamp(2.3rem, 5vw, 5.4rem); line-height: .99; }
.approach h2 { max-width: 15ch; }
.approach-copy > p { margin-top: 1.45rem; max-width: 60ch; color: #374243; font-size: clamp(1rem, 1.35vw, 1.19rem); line-height: 1.68; }
.company { color: var(--light); background: #1d2729; }
.company .label { color: var(--muted); }
.company h2 { max-width: 18ch; }
.company-link { display: inline-flex; margin-top: 1.75rem; border-bottom: 1px solid #8b9b99; padding-bottom: .4rem; font-size: .88rem; }
.company-link:hover { color: var(--mint); border-color: var(--mint); }
.site-footer { background: var(--deep); border-top: 1px solid var(--line); }

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.8rem; min-height: 0; }
  .hero-copy { max-width: 55rem; }
  h1 { max-width: 13ch; }
  .hero-copy p { max-width: 38ch; }
  .scene { max-width: 49rem; }
}
@media (max-width: 540px) {
  .masthead-inner { min-height: 4.2rem; }
  .masthead nav { gap: .9rem; }
  .masthead nav a, .masthead-contact { font-size: .74rem; }
  .masthead-contact { gap: .25rem; padding: .42rem .43rem; }
  .masthead .wordmark { gap: .44rem; font-size: .75rem; }
  .masthead .wordmark img { width: 24px; height: 20px; }
  .hero-inner { padding-top: 3.7rem; }
  h1 { font-size: clamp(3rem, 12vw, 4.25rem); }
  .hero-copy p { margin-top: 1.35rem; }
  .hero-link { margin-top: 1.55rem; }
  .scene-top, .scene-bottom { padding-inline: .6rem; font-size: .65rem; }
  .scene-keys { gap: .45rem; }
  .scene-controls button { padding: .3rem .25rem; }
  .approach, .company-inner { grid-template-columns: 1fr; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
