:root {
  --bg: #000;
  --fg: #f4efe6;
  --dim: #a3a09a;
  --line: #2a2a2a;
  --sun: #ffa63d;
  --sun-deep: #ff7a1f;
  --sans: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
  --pad: clamp(1rem, 4vw, 3rem);
  --gap: clamp(4rem, 10vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1rem/1.6 var(--sans); overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
::selection { background: var(--sun); color: #000; }
[id] { scroll-margin-top: 4.5rem; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); }

.skip-link { position: absolute; left: var(--pad); top: -4rem; z-index: 10; background: var(--sun); color: #000; padding: .75rem 1rem; font-family: var(--mono); }
.skip-link:focus { top: .5rem; }

/* Header */
.site-header { position: relative; z-index: 2; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 1.5rem; padding-block: .5rem; }
.wordmark, .nav-list a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--mono); text-decoration: none; }
.wordmark { font-weight: 700; letter-spacing: .08em; font-size: .9rem; }
.wordmark span { color: var(--sun); margin-left: .6ch; }
.nav-list { display: flex; flex-wrap: wrap; column-gap: 1.25rem; }
.nav-list a { font-size: .85rem; color: var(--dim); padding-inline: .25rem; }
.nav-list a:hover { color: var(--sun); }

/* ASCII artwork: the static frame in the HTML is the no-JS fallback */
.art { position: relative; overflow: hidden; }
.art-canvas { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 58%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 58%, transparent); }
.art pre { margin: 0; font: min(13px, calc((100vw - 2rem) / 44)) / 1 var(--mono); letter-spacing: 0; white-space: pre; overflow: hidden; user-select: none; text-align: center; width: fit-content; margin-inline: auto; }
.art-sky { background: radial-gradient(ellipse 60% 130% at 50% 100%, #fff0c8 0%, #ffb347 22%, var(--sun-deep) 46%, #8a3a14 80%, #3a1a0c 100%); }
.art-field { background: radial-gradient(ellipse 70% 110% at 50% 0%, var(--sun-deep) 0%, #a85a22 35%, #555 75%, #333 100%); }
.art-sky, .art-field { -webkit-background-clip: text; background-clip: text; color: var(--sun); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .art-sky, .art-field { color: transparent; }
}
.js .art { height: clamp(180px, 28vh, 300px); }
.js .art pre { font-size: clamp(10px, .5vw + 6px, 13px); width: auto; text-align: left; }
.art-toggle { position: absolute; right: var(--pad); bottom: .5rem; min-width: 44px; min-height: 44px; padding: 0 1rem; background: rgba(0, 0, 0, .7); color: var(--fg); border: 1px solid var(--line); font: .8rem var(--mono); cursor: pointer; }
.art-toggle:hover { border-color: var(--sun); color: var(--sun); }

/* Hero */
.hero-copy { padding-top: clamp(1rem, 3vw, 2rem); padding-bottom: var(--gap); }
h1 { font-weight: 800; font-size: clamp(2.5rem, 7.2vw, 5.5rem); line-height: .98; letter-spacing: -.045em; }
h1 span { display: block; }
.accent { color: var(--sun); }
.lede { margin-top: 1.75rem; max-width: 40rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--dim); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; margin-top: 2.25rem; }
.button { display: inline-flex; align-items: center; min-height: 52px; padding: 0 1.75rem; background: var(--sun); color: #000; font: 700 1rem var(--mono); text-decoration: none; border: 1px solid var(--sun); }
.button:hover { background: #000; color: var(--sun); }

/* Sections */
.section { padding-bottom: var(--gap); }
h2 { font-size: clamp(1.75rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; max-width: 20ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }

.service { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem clamp(1rem, 3vw, 3rem); padding-block: 2.25rem; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service-no { font-family: var(--mono); color: var(--sun); padding-top: .35rem; }
.service-head p { margin-top: .75rem; color: var(--dim); }
.service-list li { position: relative; padding: .45rem 0 .45rem 2ch; }
.service-list li::before { content: "+"; position: absolute; left: 0; font-family: var(--mono); color: var(--sun); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(1rem, 2.5vw, 2rem); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 1.75rem; border-top: 1px dashed #555; }
.steps li::before { content: "0" counter(step) " >"; position: absolute; top: -.8em; left: 0; padding-right: .75ch; background: var(--bg); font-family: var(--mono); font-size: .85rem; color: var(--sun); }
.steps p { margin-top: .6rem; color: var(--dim); }

.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; font-size: .85rem; color: var(--dim); }
.footer-row { display: grid; gap: .5rem; }

@media (max-width: 900px) {
  .service { grid-template-columns: 3rem minmax(0, 1fr); }
  .service-list { grid-column: 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .service { grid-template-columns: 1fr; }
  .service-list { grid-column: 1; }
  .steps { grid-template-columns: 1fr; }
  .button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: settle .9s ease both; }
  .hero-copy > :nth-child(2) { animation-delay: .1s; }
  .hero-copy > :nth-child(3) { animation-delay: .2s; }
  .button, .nav-list a, .art-toggle { transition: background-color .2s, color .2s, border-color .2s; }
}
@keyframes settle { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
