/* =========================================================
   Xibalba Resource Management Group — styles
   Palette: colorhunt.co/palette/f5ebddf2765e315b8c413333
   ========================================================= */

:root {
  --cream: #f5ebdd;
  --cream-2: #ede0cd;
  --cream-3: #e3d3bc;
  --brown: #413333;
  --brown-2: #4a3b3b;
  --brown-3: #564545;
  --coral: #f2765e;
  --blue: #315b8c;

  --line-d: rgba(245, 235, 221, 0.14);
  --line-l: rgba(65, 51, 51, 0.16);
  --muted-d: rgba(245, 235, 221, 0.62);
  --muted-l: #6e5f5a;

  --sans: "Geist", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --pad: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --nav-h: 68px;
  --r: 14px;
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0;
  background: var(--brown);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--coral); color: var(--brown); }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* Section themes */
.light { background: var(--cream); color: var(--brown); }
.light-2 { background: var(--cream-2); color: var(--brown); }
.dark { background: var(--brown); color: var(--cream); }
.light .muted, .light-2 .muted { color: var(--muted-l); }
.dark .muted, .muted { color: var(--muted-d); }
.light .muted, .light-2 .muted { color: var(--muted-l); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500; font-size: 16px;
  background: var(--coral); color: var(--brown);
  border: 1px solid var(--coral);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
  white-space: nowrap;
}
.btn .arr { display: inline-block; transition: transform 0.4s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn:hover { background: var(--cream); border-color: var(--cream); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: currentColor; }
.dark .btn.ghost:hover { color: var(--brown); background: var(--cream); border-color: var(--cream); }
.light .btn.ghost:hover, .light-2 .btn.ghost:hover { color: var(--cream); background: var(--brown); border-color: var(--brown); }
.btn.dark-btn { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.btn.dark-btn:hover { background: var(--cream); color: var(--brown); border-color: var(--cream); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow .arr { transition: transform 0.4s var(--ease-out); }
.link-arrow:hover .arr { transform: translateX(4px); }

/* Bracketed label: [ 01 ] SERVICES */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.tag b { font-weight: 500; color: var(--coral); }
.light .tag b, .light-2 .tag b { color: var(--blue); }

/* ---------------- Nav ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.35s, border-color 0.35s, color 0.35s;
  border-bottom: 1px solid transparent;
  color: var(--cream);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav.is-scrolled { background: color-mix(in srgb, var(--brown) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line-d); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 34px; height: 22px; }
.brand-word { font-weight: 600; letter-spacing: 0.14em; font-size: 15px; }
.brand-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--muted-d); border-left: 1px solid var(--line-d); padding-left: 12px; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav-links a:not(.btn) { position: relative; opacity: 0.85; transition: opacity 0.2s; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out); }
.nav-links a:not(.btn):hover { opacity: 1; }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links .btn { padding: 10px 18px; font-size: 14px; }
.nav-links .menu-foot { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-d); background: transparent; position: relative; cursor: pointer; z-index: 60; }
.menu-btn span:not(.sr-only) { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .brand-sub { display: none; }
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
    padding: calc(var(--nav-h) + 24px) var(--pad) 32px;
    background: var(--brown);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.6s var(--ease);
  }
  .menu-open .nav-links { clip-path: inset(0); }
  .nav-links a:not(.btn) { font-size: clamp(30px, 9vw, 48px); letter-spacing: -0.03em; padding: 14px 0; border-bottom: 1px solid var(--line-d); opacity: 1; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 28px; align-self: flex-start; font-size: 17px; padding: 14px 22px; }
  .nav-links .menu-foot { display: block; margin-top: auto; color: var(--muted-d); }
}

/* ---------------- Page fade ---------------- */
.page { opacity: 0; transition: opacity 0.6s var(--ease-out); }
.is-loaded .page { opacity: 1; }
.is-leaving .page { opacity: 0; transition-duration: 0.3s; }
.no-js .page { opacity: 1; }

/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms + 150ms); }
.is-loaded .split .w > span { transform: none; }
.no-js .split .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  /* Shorten fades and slide-ins only; the looping animations (ticker, house,
     pulse, process ring) are part of the design and keep running. */
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

/* ---------------- Hero ---------------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero-sheet { position: absolute; inset: 0; z-index: -1; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sheet-bar { display: none; }
.hero::after { /* fade toward bottom so the console reads cleanly */
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1;
  background: linear-gradient(transparent, var(--brown));
  pointer-events: none;
}
.hero .wrap { flex: 1; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + 48px); padding-bottom: 48px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted-d); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(242, 118, 94, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(242, 118, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 118, 94, 0); } }

.hero-main { margin-top: auto; max-width: 980px; }
.hero h1 {
  font-size: clamp(46px, 8.4vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 0 0 28px;
}
.hero h1 .c { color: var(--coral); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted-d); margin-bottom: 22px; }
.flow i { font-style: normal; color: var(--coral); }
.flow span { border: 1px solid var(--line-d); border-radius: 999px; padding: 5px 12px; color: var(--cream); }
.hero-lede { font-size: clamp(17px, 1.5vw, 20px); max-width: 52ch; color: var(--muted-d); margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-coords { position: absolute; right: var(--pad); bottom: 48px; text-align: right; color: var(--muted-d); display: grid; gap: 4px; }
@media (max-width: 900px) { .hero-coords { display: none; } }

/* corner brackets */
.corners { position: relative; }
.corners::before, .corners::after,
.corners > .c-tl, .corners > .c-br { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--coral); border-style: solid; pointer-events: none; }
.corners::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.corners::after { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }

/* ---------------- Console (dashboard panel) ---------------- */
.console-sec { padding: 0 0 clamp(70px, 9vw, 120px); }
.console { background: var(--brown-2); border: 1px solid var(--line-d); border-radius: var(--r); overflow: hidden; }
.console-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--line-d); color: var(--muted-d); }
.console-bar .live { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); }
.readouts { display: grid; grid-template-columns: repeat(4, 1fr); }
.readout { padding: 26px 22px 30px; border-right: 1px solid var(--line-d); }
.readout:last-child { border-right: 0; }
.readout .mono { color: var(--muted-d); display: block; margin-bottom: 30px; }
.readout .val { font-size: clamp(40px, 4.6vw, 64px); letter-spacing: -0.045em; line-height: 1; font-weight: 500; }
.readout .val small { font-size: 0.42em; letter-spacing: -0.01em; color: var(--muted-d); margin-left: 6px; font-weight: 400; }
.readout p { margin: 12px 0 0; font-size: 14px; color: var(--muted-d); }
.console-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--line-d); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid var(--line-d); border-radius: 6px; padding: 5px 10px; }
.light .chip, .light-2 .chip { border-color: var(--line-l); }
.stamp { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brown); background: var(--coral); border-radius: 6px; padding: 5px 10px; }
@media (max-width: 900px) {
  .readouts { grid-template-columns: 1fr 1fr; }
  .readout:nth-child(2) { border-right: 0; }
  .readout:nth-child(-n+2) { border-bottom: 1px solid var(--line-d); }
  .readout .mono { margin-bottom: 18px; }
}

/* ---------------- Ticker ---------------- */
.ticker { border-block: 1px solid var(--line-l); overflow: hidden; padding: 18px 0; white-space: nowrap; }
.ticker-track { display: inline-flex; will-change: transform; } /* moved by main.js */
.ticker-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.ticker-track span i { width: 6px; height: 6px; background: var(--coral); transform: rotate(45deg); display: inline-block; }
.ticker-track span i:nth-of-type(even) { background: var(--blue); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------- Generic section ---------------- */
.sec { padding: clamp(80px, 11vw, 150px) 0; }
.sec-head { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px 40px; margin-bottom: clamp(40px, 6vw, 72px); align-items: end; }
.sec-head h2 { margin: 0; max-width: 16ch; font-size: clamp(34px, 4.8vw, 68px); line-height: 1; letter-spacing: -0.04em; font-weight: 500; }
.sec-head p { grid-column: 2; margin: 0; max-width: 56ch; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; } .sec-head p { grid-column: auto; } }

/* Positioning */
.position { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.position h2 { margin: 0 0 32px; font-size: clamp(36px, 5.4vw, 80px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 500; }
.position h2 .dim { color: var(--muted-l); }
.position p { max-width: 54ch; font-size: 18px; margin: 0 0 28px; }
@media (max-width: 900px) { .position { grid-template-columns: 1fr; gap: 20px; } }

/* ---------------- Services tabs ---------------- */
.svc { display: grid; grid-template-columns: 1fr 1.35fr; gap: 20px; }
.svc-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line-l); }
.svc-tab {
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-l);
  padding: 22px 0; cursor: pointer; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 4px 0;
  color: var(--muted-l); transition: color 0.3s;
}
.svc-tab .n { font-family: var(--mono); font-size: 12px; }
.svc-tab .t { font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.035em; font-weight: 500; line-height: 1.05; }
.svc-tab .plus { width: 28px; height: 28px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-family: var(--mono); font-size: 14px; transition: transform 0.5s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s; }
.svc-tab .subs { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.svc-tab:hover, .svc-tab[aria-selected="true"] { color: var(--brown); }
.svc-tab[aria-selected="true"] .plus { transform: rotate(45deg); background: var(--coral); border-color: var(--coral); color: var(--brown); }
.svc-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.svc-panels { position: relative; }
.svc-panel {
  background: var(--brown); color: var(--cream);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 40px);
  min-height: 100%;
  display: flex; flex-direction: column; gap: 26px;
}
.svc-panel[hidden] { display: none; }
.svc-panel.is-anim { animation: panelIn 0.6s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.svc-panel .top { display: flex; justify-content: space-between; align-items: center; color: var(--muted-d); }
.svc-panel h3 { margin: 0; font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -0.04em; font-weight: 500; line-height: 1; }
.svc-items { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc-item { border: 1px solid var(--line-d); border-radius: 10px; padding: 20px; }
.svc-item h4 { margin: 0 0 8px; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.svc-item p { margin: 0; color: var(--muted-d); font-size: 15px; }
.svc-panel .link-arrow { align-self: flex-start; margin-top: auto; color: var(--coral); }
@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr; }
  .svc-items { grid-template-columns: 1fr; }
}

/* ---------------- Who we serve ---------------- */
.serve { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.serve-card { background: var(--cream); border: 1px solid var(--line-l); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.6s var(--ease-out), box-shadow 0.6s; }
.serve-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(65, 51, 51, 0.45); }
.serve-art { aspect-ratio: 16 / 10; background: var(--brown); position: relative; overflow: hidden; }
.serve-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.serve-art .label { position: absolute; left: 16px; top: 14px; color: var(--muted-d); }
.serve-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.serve-body .meta { display: flex; justify-content: space-between; color: var(--muted-l); }
.serve-body h3 { margin: 0; font-size: clamp(28px, 2.8vw, 38px); letter-spacing: -0.04em; font-weight: 500; line-height: 1.05; }
.serve-body p { margin: 0; color: var(--muted-l); }
.serve-body .chips { margin: 4px 0 8px; }
.serve-body .link-arrow { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .serve { grid-template-columns: 1fr; } }

/* Line-art animation */
.draw path, .draw line, .draw rect, .draw polyline, .draw circle { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); transition: stroke-dashoffset 2.4s var(--ease-out); }
.draw.is-in path, .draw.is-in line, .draw.is-in rect, .draw.is-in polyline, .draw.is-in circle { stroke-dashoffset: 0; }
.no-js .draw path, .no-js .draw line, .no-js .draw rect, .no-js .draw polyline, .no-js .draw circle { stroke-dashoffset: 0; }

/* ---------------- Built to last ---------------- */
.last { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.last-features { display: grid; gap: 20px; align-content: start; }
.feature { border-top: 1px solid var(--line-d); padding-top: 22px; }
.feature .mono { color: var(--coral); }
.feature h3 { margin: 14px 0 10px; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.035em; font-weight: 500; line-height: 1.05; }
.feature p { margin: 0; color: var(--muted-d); max-width: 46ch; }
.plan { background: var(--brown-2); border: 1px solid var(--line-d); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; }
.plan .console-bar { padding: 0 0 14px; margin-bottom: 14px; }
.plan svg { width: 100%; height: auto; flex: 1; }
@media (max-width: 900px) { .last { grid-template-columns: 1fr; } }

/* ---------------- Toolkit grid ---------------- */
.kit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kit-card { border: 1px solid var(--line-d); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 280px; background: var(--brown); transition: background 0.4s, border-color 0.4s; }
.kit-card:hover { background: var(--brown-2); border-color: rgba(242, 118, 94, 0.5); }
.kit-card .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--brown-3); display: grid; place-items: center; color: var(--coral); }
.kit-card .ico svg { width: 22px; height: 22px; }
.kit-card h3 { margin: auto 0 0; font-size: 22px; letter-spacing: -0.025em; font-weight: 500; }
.kit-card p { margin: 0; color: var(--muted-d); font-size: 15px; }
.kit-card .spec { color: var(--coral); margin-top: 6px; }
@media (max-width: 1000px) { .kit { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .kit { grid-template-columns: 1fr; } .kit-card { min-height: 0; } .kit-card h3 { margin-top: 28px; } }

/* ---------------- Process stepper ---------------- */
.process { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; }
.process-visual { background: var(--brown); border-radius: var(--r); color: var(--cream); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; min-height: 440px; position: relative; overflow: hidden; }
.process-visual .big { font-size: clamp(120px, 16vw, 230px); line-height: 0.8; letter-spacing: -0.07em; font-weight: 500; color: var(--coral); }
.process-visual .big span { display: inline-block; animation: numIn 0.7s var(--ease-out); }
@keyframes numIn { from { opacity: 0; transform: translateY(30px); } }
.process-visual .ring { position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border: 1px dashed var(--line-d); border-radius: 50%; animation: spin 60s linear infinite; }
.process-visual .ring::after { content: ""; position: absolute; top: 50%; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
@keyframes spin { to { transform: rotate(360deg); } }
.steps-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 30px; }
.step-btn { background: none; border: 0; padding: 0 0 10px; text-align: left; cursor: pointer; color: var(--muted-l); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; position: relative; }
.step-btn::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line-l); }
.step-btn .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--coral); }
.step-btn.done .bar { width: 100%; }
.step-btn[aria-selected="true"] { color: var(--brown); }
.step-btn[aria-selected="true"] .bar { animation: fill var(--step-ms, 6000ms) linear forwards; }
.steps-paused .step-btn[aria-selected="true"] .bar { animation: none; width: 100%; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
.step-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.step-panel[hidden] { display: none; }
.step-panel { animation: panelIn 0.6s var(--ease-out); }
.step-panel h3 { margin: 0 0 14px; font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -0.04em; font-weight: 500; line-height: 1; }
.step-panel p { margin: 0 0 24px; font-size: 18px; max-width: 50ch; color: var(--muted-l); }
.deliver { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deliver div { border: 1px solid var(--line-l); border-radius: 10px; padding: 14px 16px; }
.deliver .mono { color: var(--blue); display: block; margin-bottom: 4px; font-size: 11px; }
.deliver b { font-weight: 500; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; }
  .process-visual { min-height: 220px; order: 2; }
  .steps-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .step-btn { font-size: 10.5px; }
  .deliver { grid-template-columns: 1fr; }
}

/* ---------------- CTA ---------------- */
.cta { background: var(--coral); color: var(--brown); padding: clamp(90px, 12vw, 160px) 0; position: relative; overflow: hidden; }
.cta h2 { margin: 18px 0 26px; font-size: clamp(46px, 8vw, 124px); line-height: 0.93; letter-spacing: -0.05em; font-weight: 500; max-width: 12ch; }
.cta p { font-size: 19px; max-width: 46ch; margin: 0 0 32px; }
.cta .tag b { color: var(--brown); }
.cta-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(65, 51, 51, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(65, 51, 51, 0.12) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none; }
.cta .wrap { position: relative; }

/* ---------------- Contact page ---------------- */
.contact { padding: calc(var(--nav-h) + 56px) 0 100px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; }
.contact h1 { font-size: clamp(46px, 7vw, 104px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 500; margin: 22px 0 24px; }
.contact h1 .c { color: var(--coral); }
.contact .lede { color: var(--muted-d); font-size: 19px; max-width: 40ch; margin: 0 0 36px; }
.info { display: grid; gap: 0; border-top: 1px solid var(--line-d); }
.info div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-d); }
.info .mono { color: var(--muted-d); }
.info a:hover { color: var(--coral); }
.form { background: var(--brown-2); border: 1px solid var(--line-d); border-radius: var(--r); overflow: hidden; }
.form-body { padding: clamp(20px, 3vw, 32px); display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-d); padding: 0; }
.field input, .field textarea {
  font: inherit; font-size: 17px; color: var(--cream);
  background: var(--brown); border: 1px solid var(--line-d); border-radius: 10px;
  padding: 13px 14px; outline: none; width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(242, 118, 94, 0.18); }
.field ::placeholder { color: rgba(245, 235, 221, 0.35); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.pills input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pills label { font-family: var(--sans); font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--cream); border: 1px solid var(--line-d); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.pills label:hover { border-color: var(--cream); }
.pills input:checked + label { background: var(--coral); border-color: var(--coral); color: var(--brown); }
.pills input:focus-visible + label { outline: 2px solid var(--coral); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; cursor: pointer; }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { margin: 0; min-height: 1.5em; font-size: 15px; }
.form-status.ok { color: #9fd3a8; }
.form-status.err { color: var(--coral); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .row2 { grid-template-columns: 1fr; } }

/* ---------------- 404 ---------------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--pad); }
.nf h1 { font-size: clamp(90px, 20vw, 260px); line-height: 0.85; letter-spacing: -0.07em; margin: 18px 0; font-weight: 500; color: var(--coral); }
.nf p { color: var(--muted-d); margin: 0 0 28px; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--line-d); padding: 64px 0 28px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-top h3 { margin: 0 0 18px; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; font-weight: 500; line-height: 1.1; max-width: 16ch; }
.foot-col { display: grid; gap: 8px; align-content: start; font-size: 15px; }
.foot-col .mono { color: var(--muted-d); margin-bottom: 8px; }
.foot-col a { opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.foot-col a:hover { opacity: 1; color: var(--coral); }
.foot-col span { opacity: 0.85; }
.foot-word { margin-top: 64px; font-size: clamp(48px, 13.4vw, 200px); letter-spacing: -0.06em; line-height: 0.78; font-weight: 600; color: var(--brown-2); -webkit-text-stroke: 1px var(--line-d); user-select: none; white-space: nowrap; }
.foot-bottom { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted-d); }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > div:first-child { grid-column: 1 / -1; } }

/* --- refinements --- */
.kit-card h3 { margin: 52px 0 0; }
.kit-card .spec { margin-top: auto; padding-top: 6px; }
.process-visual .muted { color: var(--muted-d); }
/* dashed "proposed work" lines fade in instead of drawing (keeps their dashes) */
.draw g[stroke-dasharray] * { stroke-dasharray: inherit; stroke-dashoffset: 0; opacity: 0; transition: opacity 1.2s 1.4s; }
.draw.is-in g[stroke-dasharray] * { stroke-dasharray: inherit; stroke-dashoffset: 0; opacity: 1; }
.no-js .draw g[stroke-dasharray] * { opacity: 1; }

@media (max-width: 900px) {
  .svc-tabs .svc-panel { margin: 0 0 18px; min-height: 0; }
}

/* ---------------- Hero on phones & small tablets ----------------
   The drawing gets its own framed sheet between the headline and the intro,
   so it never runs behind the text. */
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero::after { display: none; }
  .hero .wrap { padding-bottom: 56px; }
  .hero-main { margin-top: 36px; }
  .hero-sheet {
    position: relative; inset: auto; z-index: auto;
    margin: 4px 0 28px;
    background: var(--brown-2);
    border: 1px solid var(--line-d);
    border-radius: var(--r);
    overflow: hidden;
  }
  .sheet-bar { display: flex; justify-content: space-between; gap: 12px; white-space: nowrap; padding: 10px 14px; border-bottom: 1px solid var(--line-d); color: var(--muted-d); font-size: 10.5px; }
  .sheet-hint { color: var(--coral); }
  .hero-canvas { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; touch-action: pan-y; cursor: grab; }
}
