:root {
  --paper: #F4F1EA;
  --paper-2: #EAE5DA;
  --ink: #121417;
  --ink-2: #2A2E34;
  --muted: #5E636B;
  --line: #D6D0C3;
  --orange: #FF5A1F;
  --green: #2E9E5B;
  --blue: #2F6BFF;
  --brown: #8A5A3C;
  --display: "Big Shoulders Display", Impact, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--orange); color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  background: var(--ink); color: var(--paper);
  padding: 16px 24px; border: 2px solid var(--ink); border-radius: 0;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--orange);
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--orange); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--orange); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); box-shadow: none; transform: none; }
.btn-small { padding: 10px 16px; font-size: 12px; box-shadow: 3px 3px 0 var(--orange); }
.btn-full { width: 100%; justify-content: center; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: flex; gap: 3px; height: 26px; }
.brand-mark i { width: 5px; background: var(--orange); }
.brand-mark i:nth-child(2) { background: var(--green); }
.brand-mark i:nth-child(3) { background: var(--blue); }
.brand-mark i:nth-child(4) { background: var(--brown); }
.brand-name {
  font-family: var(--display); font-weight: 900; font-size: 26px;
  text-transform: uppercase; letter-spacing: .01em; line-height: 1;
}
.brand-name span { font-weight: 500; color: var(--muted); margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) {
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; position: relative;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--orange); transition: width .25s ease;
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--ink); transition: transform .2s; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: 24px;
  min-height: calc(100vh - 62px);
  padding: 64px var(--gutter) 120px;
  max-width: 1600px; margin: 0 auto;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 45%, #000 10%, transparent 70%);
  opacity: .7;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
  border: 1px solid var(--ink); padding: 8px 14px; margin-bottom: 28px;
  background: var(--paper);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3BE37A; box-shadow: 0 0 0 3px rgba(59,227,122,.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(59,227,122,0); } }

h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(64px, 10.5vw, 168px);
  line-height: .86; text-transform: uppercase; letter-spacing: -.01em;
}
h1 .line { display: block; overflow: hidden; animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
h1 .line:nth-child(2) { animation-delay: .1s; }
h1 .line:nth-child(3) { animation-delay: .2s; }
h1 .accent { color: var(--orange); }
@keyframes rise { from { transform: translateY(40px); opacity: 0; clip-path: inset(0 0 100% 0); } to { transform: none; opacity: 1; clip-path: inset(0); } }

.lede { max-width: 520px; font-size: 19px; color: var(--ink-2); margin: 28px 0 36px; animation: fade 1s .4s both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; animation: fade 1s .55s both; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hero-visual { position: relative; }
.wires { width: 100%; height: auto; overflow: visible; }
.w { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.6s cubic-bezier(.6,.05,.3,1) forwards; }
.w1, .w2 { stroke: var(--orange); }
.w3, .w6 { stroke: var(--green); }
.w4, .w5 { stroke: var(--blue); }
.w7, .w8 { stroke: var(--brown); }
.w2 { animation-delay: .06s; } .w3 { animation-delay: .12s; } .w4 { animation-delay: .18s; }
.w5 { animation-delay: .24s; } .w6 { animation-delay: .30s; } .w7 { animation-delay: .36s; } .w8 { animation-delay: .42s; }
.tracers { opacity: 0; animation: fade-in .4s 1.9s forwards, flow 1.2s linear 1.9s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes flow { to { stroke-dashoffset: -32; } }
.jack { opacity: 0; transform: translateX(30px); animation: jack .6s 1.5s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes jack { to { opacity: 1; transform: none; } }
.led { animation: blink 1.4s 2s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.spec-tag {
  position: absolute; right: 4%; bottom: -6%;
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  background: var(--ink); color: var(--paper);
  padding: 14px 18px; border-left: 4px solid var(--orange);
  opacity: 0; animation: fade .6s 2.1s forwards;
}
.spec-tag .pass { color: #3BE37A; }

.hero-ticker {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--ink); color: var(--paper);
  overflow: hidden; padding: 16px 0;
  transform: rotate(-1.2deg) scale(1.03); transform-origin: left;
}
.ticker-track { display: flex; gap: 48px; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span {
  font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap; display: flex; align-items: center; gap: 48px;
}
.ticker-track span::after { content: "◆"; color: var(--orange); font-size: 12px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 128px var(--gutter); max-width: var(--max); margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: 64px; }
.label {
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--orange); margin-bottom: 16px;
}
h2 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(42px, 6vw, 84px); line-height: .92; letter-spacing: -.005em;
}
.section-sub { margin-top: 24px; font-size: 18px; color: var(--ink-2); max-width: 620px; }
h3 { font-family: var(--display); font-weight: 700; font-size: 30px; text-transform: uppercase; line-height: 1; }

/* Services */
.service-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink); border-left: 1px solid var(--line);
}
.card {
  position: relative;
  padding: 36px 28px 32px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background .25s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 6px; width: 100%;
  background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.card:hover { background: #fff; }
.card:hover::before { transform: scaleX(1); }
.card-code { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; display: block; margin-bottom: 40px; }
.card-code::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--c); margin-right: 8px; vertical-align: -1px; }
.card h3 { margin-bottom: 14px; }
.card p { font-size: 15px; color: var(--ink-2); margin-bottom: 20px; }
.card ul { list-style: none; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.card li { padding: 6px 0; border-top: 1px dashed var(--line); }
.card li::before { content: "→ "; color: var(--c); }
.card-feature { background: var(--ink); color: var(--paper); --c: var(--orange); }
.card-feature:hover { background: var(--ink-2); }
.card-feature p { color: #C9C5BC; }
.card-feature .card-code { color: #8D9198; }
.text-link { font-family: var(--mono); font-size: 13px; color: var(--orange); text-decoration: none; border-bottom: 1px solid currentColor; }

/* Process */
.process { max-width: none; background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; counter-reset: s; }
.steps::before {
  content: ""; position: absolute; top: 27px; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 24px, var(--green) 24px 48px, var(--blue) 48px 72px, var(--brown) 72px 96px);
}
.step { position: relative; padding-right: 28px; }
.step-num {
  position: relative; z-index: 1;
  display: inline-grid; place-items: center;
  width: 58px; height: 58px; background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 16px; font-weight: 500;
  margin-bottom: 28px;
}
.step h3 { font-size: 26px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--ink-2); }

/* Sectors */
.sector-list { border-top: 2px solid var(--ink); }
.sector {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: padding .3s ease, color .3s;
  cursor: default;
}
.sector span { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.5vw, 56px); text-transform: uppercase; line-height: 1; }
.sector em { font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: right; }
.sector:hover { padding-left: 24px; }
.sector:hover span { color: var(--orange); }

/* Why */
.why { max-width: none; background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.why::after {
  content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 140%;
  background: repeating-linear-gradient(115deg, transparent 0 40px, rgba(255,255,255,.025) 40px 41px);
  pointer-events: none;
}
.why-inner { max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #2F343B; border: 1px solid #2F343B; }
.why-item { background: var(--ink); padding: 44px 40px; }
.why-item h3 { color: var(--paper); margin-bottom: 14px; }
.why-item h3::before { content: "✓"; color: var(--orange); margin-right: 12px; font-family: var(--mono); font-size: 22px; vertical-align: 3px; }
.why-item p { color: #B8B4AB; font-size: 16px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.contact-details { margin-top: 44px; border-top: 2px solid var(--ink); }
.contact-details > div { display: grid; grid-template-columns: 140px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-details dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 3px; }
.contact-details dd a { text-decoration: none; border-bottom: 1px solid var(--orange); }

.quote-form {
  background: #fff; border: 2px solid var(--ink); padding: 40px;
  box-shadow: 10px 10px 0 var(--ink);
  display: flex; flex-direction: column; gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quote-form label:not(.chip), legend {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2);
}
.quote-form input:not([type=checkbox]), .quote-form textarea {
  font: inherit; font-family: var(--body); font-size: 16px; text-transform: none; letter-spacing: 0;
  padding: 12px 14px; border: 1px solid var(--line); border-bottom: 2px solid var(--ink);
  background: var(--paper); color: var(--ink); border-radius: 0; resize: vertical;
}
.quote-form input:focus, .quote-form textarea:focus { outline: none; border-bottom-color: var(--orange); background: #fff; }
.quote-form .invalid { border-bottom-color: #D62828 !important; }
fieldset { border: 0; }
legend { margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--ink);
  font-size: 14px; cursor: pointer; user-select: none; transition: background .15s, color .15s;
}
.chip input:checked + span { background: var(--ink); color: var(--paper); box-shadow: inset 4px 0 0 var(--orange); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-status { font-family: var(--mono); font-size: 13px; min-height: 1.2em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #D62828; }

/* Footer */
.footer { background: var(--ink); color: var(--paper); }
.footer-wires { display: flex; height: 10px; }
.footer-wires i { flex: 1; }
.footer-wires i:nth-child(1) { background: repeating-linear-gradient(90deg, var(--orange) 0 14px, var(--paper) 14px 22px); }
.footer-wires i:nth-child(2) { background: var(--orange); }
.footer-wires i:nth-child(3) { background: repeating-linear-gradient(90deg, var(--green) 0 14px, var(--paper) 14px 22px); }
.footer-wires i:nth-child(4) { background: var(--blue); }
.footer-wires i:nth-child(5) { background: repeating-linear-gradient(90deg, var(--blue) 0 14px, var(--paper) 14px 22px); }
.footer-wires i:nth-child(6) { background: var(--green); }
.footer-wires i:nth-child(7) { background: repeating-linear-gradient(90deg, var(--brown) 0 14px, var(--paper) 14px 22px); }
.footer-wires i:nth-child(8) { background: var(--brown); }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 15px; color: #B8B4AB;
}
.brand-light .brand-name { color: var(--paper); }
.brand-light .brand-name span { color: #8D9198; }
.footer-meta { font-family: var(--mono); font-size: 12px; width: 100%; padding-top: 20px; border-top: 1px solid #2F343B; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { top: 0; bottom: 0; left: 27px; right: auto; width: 4px; height: auto;
    background: repeating-linear-gradient(180deg, var(--orange) 0 24px, var(--green) 24px 48px, var(--blue) 48px 72px, var(--brown) 72px 96px); }
  .step { display: grid; grid-template-columns: 58px 1fr; column-gap: 24px; padding-right: 0; }
  .step-num { grid-row: span 2; margin-bottom: 0; }
  .contact { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 48px; padding-bottom: 140px; }
  .hero-visual { max-width: 520px; margin: 0 auto 30px; width: 100%; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-links .btn { margin-top: 16px; justify-content: center; }
  .why-grid { grid-template-columns: 1fr; }
  .section { padding-top: 88px; padding-bottom: 88px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .quote-form { padding: 24px; box-shadow: 6px 6px 0 var(--ink); }
  .contact-details > div { grid-template-columns: 1fr; gap: 4px; }
  .sector { flex-direction: column; gap: 6px; }
  .sector em { text-align: left; }
  .why-item { padding: 32px 24px; }
  .spec-tag { right: 0; bottom: -14%; font-size: 11px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .w { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
