:root {
  color-scheme: dark;
  --ink: #101110;
  --paper: #eeeee5;
  --lime: #d0fa52;
  --muted: #b8bcb2;
  --line: #343731;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--ink);
  color: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; font-size: .95rem; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
p, h1, h2, h3, figure { margin: 0; }
.shell { width: min(100% - 9vw, 1160px); margin-inline: auto; }
.skip { position: fixed; z-index: 3; top: 1rem; left: 1rem; padding: .75rem; color: var(--ink); background: var(--lime); transform: translateY(-200%); }
.skip:focus { transform: none; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; }
.masthead { position: sticky; top: 0; z-index: 2; width: 100%; padding: .8rem max(4.5vw, (100% - 1160px) / 2); border-bottom: 1px solid var(--line); background: var(--ink); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; font-size: 1.45rem; font-weight: 800; letter-spacing: -.075em; }
.accent { color: var(--lime); }
nav { display: flex; flex-wrap: wrap; gap: clamp(.75rem, 3vw, 2.5rem); }
nav a, .footer > a:last-child { color: var(--muted); font-size: .9rem; }
nav a:hover, .footer > a:last-child:hover { color: var(--lime); }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(1rem, 3.5vw, 3.5rem); padding-block: clamp(2rem, 5vw, 4.75rem); }
.eyebrow { font-family: ui-monospace, monospace; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; }
.hero .eyebrow { color: var(--lime); display: flex; gap: .7rem; align-items: center; }
.eyebrow span { width: .5rem; aspect-ratio: 1; border-radius: 50%; background: currentColor; }
h1, h2, h3 { letter-spacing: -.07em; line-height: .99; }
h1 { font-size: clamp(2.65rem, 5.2vw, 5.25rem); margin-block: 1.1rem; overflow-wrap: anywhere; }
h1 em { color: var(--lime); font-style: normal; }
.hero-copy > p:not(.eyebrow) { color: var(--muted); max-width: 38ch; font-size: clamp(.95rem, 1.3vw, 1.12rem); line-height: 1.55; }
.button { display: inline-flex; gap: 1.35rem; align-items: center; margin-top: 1.75rem; padding: .85rem 1.15rem; background: var(--lime); color: var(--ink); font-weight: 700; }
.button:hover { background: var(--paper); }
.button:focus-visible { outline-color: var(--lime); }
.workflow { border: 1px solid var(--line); border-top: 3px solid var(--lime); padding: clamp(1.2rem, 3.5vw, 3rem); background: #171917; }
.workflow .eyebrow { color: var(--lime); }
.workflow ol { list-style: none; padding: 0; margin: 1.2rem 0 0; counter-reset: step; }
.workflow li { display: grid; grid-template-columns: 2rem 1fr; gap: .4rem .65rem; padding-block: 1rem; border-top: 1px solid var(--line); counter-increment: step; }
.workflow li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; color: var(--lime); font-family: ui-monospace, monospace; }
.workflow strong { font-size: clamp(1rem, 1.6vw, 1.25rem); }
.workflow li span, .footer p { color: var(--muted); line-height: 1.5; }
.about { color-scheme: light; background: var(--paper); color: var(--ink); padding-block: clamp(2.5rem, 6vw, 5rem); }
.editorial { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; }
.editorial .eyebrow { padding-top: .5rem; }
h2 { font-size: clamp(1.95rem, 4vw, 3.65rem); }
.editorial div p { margin-top: 1.15rem; max-width: 58ch; line-height: 1.65; font-size: clamp(.95rem, 1.35vw, 1.12rem); }
.services, .tech { padding-block: clamp(2.5rem, 5.5vw, 4.75rem); }
.service-list, .tech-grid { margin-top: 2rem; }
.service-list { border-bottom: 1px solid var(--line); }
.service-list details { border-top: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1em; cursor: pointer; padding: .95rem .3rem; font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 650; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--lime); font-size: 1.55em; line-height: 1; }
details[open] summary::after { content: "−"; }
summary:hover { color: var(--lime); }
summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.service-body { max-width: 75ch; padding: 0 .3rem 1.2rem; color: var(--muted); line-height: 1.65; }
.service-body p + p { margin-top: .8rem; }
.service-body h3 { color: var(--paper); margin-top: 1.5rem; }
.service-body ul, .service-body ol, .tech-grid ul { padding-left: 1.4rem; }
.tech { background: var(--lime); color: var(--ink); }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #657b29; gap: 1.25rem; }
.tech-grid > div { padding-top: 1.4rem; }
.tech-grid h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); letter-spacing: -.04em; }
.tech-grid li, .tech-grid p { line-height: 1.55; }
.footer { border-top: 1px solid var(--line); }
.footer p { font-size: .9rem; }
.copyright { padding-block: .85rem 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.business-details { border-top: 1px solid var(--line); padding-block: 1.25rem; }
.business-details h2 { font-size: 1.15rem; letter-spacing: -.025em; }
.business-details dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: .9rem 1.25rem; margin: 1rem 0 0; }
.business-details dt { color: var(--muted); font-size: .8rem; }
.business-details dd { margin: .2rem 0 0; font-size: .9rem; line-height: 1.45; }

.reference-intro { max-width: 72ch; margin-top: .85rem; color: var(--muted); line-height: 1.6; }
.reference { margin-top: 1.4rem; border: 1px solid var(--line); border-top: 3px solid var(--lime); background: #171917; }
.reference-header { padding: clamp(1rem, 4vw, 2.5rem); }
.reference-summary { justify-content: flex-start; padding: clamp(.85rem, 3vw, 1.75rem); gap: clamp(.75rem, 3vw, 2rem); }
.reference-summary::after { margin-left: auto; flex: none; }
.reference-summary img { width: clamp(72px, 16vw, 200px); aspect-ratio: 3 / 2; object-fit: contain; background: #e7e7e7; flex: none; }
.reference-title { font-size: clamp(1.05rem, 2.45vw, 1.9rem); letter-spacing: -.045em; line-height: 1.15; overflow-wrap: anywhere; }
.reference-header:empty { display: none; }
.reference[open] .reference-summary { border-bottom: 1px solid var(--line); }
.languages { display: flex; gap: .5rem; font-family: ui-monospace, monospace; }
.languages a { padding: .35rem .45rem; border: 1px solid var(--line); font-size: .8rem; }
.languages [aria-current="page"] { color: var(--lime); border-color: currentColor; }
.reference p { max-width: 76ch; margin-top: .9rem; color: var(--muted); line-height: 1.65; }
.reference-grid { list-style: none; margin: 0; padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2.5rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.reference-grid a { display: block; height: 100%; border: 1px solid var(--line); background: var(--ink); }
.reference-grid a:hover { border-color: var(--lime); }
.reference-grid img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #e7e7e7; }
.reference-grid span { display: block; padding: .6rem .75rem; font-size: .9rem; }

@media (prefers-reduced-motion: no-preference) {
  nav a, .button, summary, .reference-grid a { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
  .hero-copy, details[open] > .service-body, .reference[open] > .reference-header, .reference[open] > .reference-grid { animation: content-enter 220ms ease-out; }
}

@keyframes content-enter {
  from { opacity: .65; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 8.5rem; }
  .hero, .editorial { grid-template-columns: 1fr; }
  .hero { gap: 2rem; }
  h1 { font-size: clamp(2.25rem, 8.3vw, 3.75rem); }
  .tech-grid { grid-template-columns: 1fr; }
  .masthead { gap: .55rem 1rem; }
  .masthead nav:first-of-type { order: 1; width: 100%; gap: .45rem 1rem; }
  .masthead nav:first-of-type a { font-size: .82rem; }
  .footer { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
