/* TenzBuild — IRIS-style light theme over a blueprint schematic.
   Drafting-paper grey ground, ink text and ink linework, wide technical caps,
   amber used only as light (glow) and as a dark amber for text accents. */
:root {
  --bg: #d3d2cf;              /* drafting-paper grey behind the schematic */
  --ink: #151311;
  --ink-muted: #4b4740;
  --accent: #7f3d00;          /* amber, darkened until it reads as text */
  --glow: #ffb35c;            /* amber as light only — never as text */
  --hairline: rgba(21, 19, 17, 0.10);
  /* 0.88 keeps body text >= 4.5:1 even if the panel sits over pure black
     (the cables) — checked against both extremes in a11y.spec.js. */
  --panel-bg: rgba(241, 239, 235, 0.88);
  --shell: 0 0 0 6px rgba(255, 255, 255, 0.32), 0 0 0 7px var(--hairline),
           0 30px 60px -30px rgba(60, 40, 20, 0.28);
  --font-display: "Archivo", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-sans: "Archivo", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --container-width: 1100px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  /* Faint drafting-paper dot grid behind the schematic. */
  background:
    radial-gradient(circle at 1px 1px, rgba(21, 19, 17, 0.09) 1px, transparent 1.5px) 0 0 / 24px 24px fixed,
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 24px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  border-radius: 999px;
  transform: translateY(-150%);
  transition: transform 0.4s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* Floating bar, detached from the edges — logo left, corner-list nav right,
   the way the reference frames its browser card. */
.site-header {
  position: sticky;
  top: calc(12px + env(safe-area-inset-top, 0px));
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 16px 0;
  padding: 12px 20px;
  background: rgba(241, 239, 235, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--hairline), 0 12px 30px -18px rgba(60, 40, 20, 0.35);
}

.wordmark {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: 13px;
}
.wordmark::before { content: "( "; color: var(--ink-muted); }
.wordmark::after { content: " )"; color: var(--ink-muted); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  transition: color 0.4s var(--ease);
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--ink); }

/* Hero: amber light spilling under the first screen, as in the reference. */
.hero {
  position: relative;
  min-height: calc(100dvh - 72px);
  display: flex;
  align-items: flex-end;
  padding: 40px 24px 72px;
}
.hero::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 56px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255, 179, 92, 0.55), rgba(255, 179, 92, 0) 70%);
  filter: blur(8px);
  pointer-events: none;
}

.site-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto 0 max(24px, calc((100% - var(--container-width)) / 2));
  padding: 32px 32px 28px;
  background: var(--panel-bg);
  border-radius: 24px;
  box-shadow: var(--shell);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--hairline);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  font-weight: 600;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  margin: 0 0 22px;
}
.hero-headline em {
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-variation-settings: "wdth" 100;
  text-transform: lowercase;
}

.hero-subline {
  max-width: 540px;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--ink);
  margin: 0 0 24px;
}

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px var(--hairline);
}

section { padding: 128px 24px; }

section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 600;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0 0 32px;
  max-width: var(--container-width);
  margin-inline: auto;
}

/* Section headings outside a panel sit straight on the canvas, so they get
   their own pill of panel colour to stay legible where a cable passes. */
.services > h2,
.plans > h2 {
  width: fit-content;
  max-width: min(var(--container-width), 100%);
  margin-left: max(0px, calc((100% - var(--container-width)) / 2));
  padding: 10px 22px 12px;
  background: var(--panel-bg);
  border-radius: 999px;
}

.proof p,
.about p,
.contact p {
  color: var(--ink-muted);
  font-size: 1.08rem;
  max-width: 62ch;
}

.text-panel {
  max-width: var(--container-width);
  margin: 0 auto;
  background: var(--panel-bg);
  border-radius: 28px;
  padding: 40px 36px;
  box-shadow: var(--shell);
}

.service-grid,
.plan-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 28px;
}
.plan-grid { grid-template-columns: 5fr 7fr; }

.service-card,
.plan-card {
  background: var(--panel-bg);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shell);
}

.service-card h3,
.plan-card h3,
.process-steps h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 10px;
}
.service-card p,
.plan-card p:not(.plan-price) { color: var(--ink-muted); margin: 0; }

/* The accent card carries the amber as light: a warm underglow, not a
   loud border. */
.plan-card--accent {
  box-shadow: var(--shell), 0 24px 48px -20px rgba(255, 179, 92, 0.75);
}

.plan-price {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent);
  margin: 4px 0 12px;
}

.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-steps li { border-top: 1px solid var(--hairline); padding-top: 18px; }
.process-steps p { color: var(--ink-muted); margin: 0; }

.step-index {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 12px;
}
.step-index::before { content: "( "; }
.step-index::after { content: " )"; }

.contact {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.contact > .text-panel { width: 100%; }

.contact-links {
  margin: 28px 0 0;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Pill buttons with the arrow nested in its own circle. */
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #f1efeb;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.contact-links a::after {
  content: "↗";
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 179, 92, 0.22);
  color: var(--glow);
  transition: transform 0.5s var(--ease);
}
.contact-links a:hover { box-shadow: 0 14px 30px -14px rgba(255, 179, 92, 0.9); }
.contact-links a:hover::after { transform: translate(2px, -2px) scale(1.05); }
.contact-links a:active { transform: scale(0.98); }

.site-footer { padding: 40px 24px; }

.site-footer-inner {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container-width);
  margin: 0 auto;
  background: var(--panel-bg);
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: 0 0 0 1px var(--hairline);
}

/* Scroll entry: only armed once main.js confirms JS + IntersectionObserver
   and motion is allowed, so content is never hidden without a way back. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .service-grid,
  .plan-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .site-nav { gap: 14px; }
  section { padding: 96px 16px; }
}

@media (max-width: 520px) {
  .process-steps { grid-template-columns: 1fr; }
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-radius: 22px;
    margin: 8px 8px 0;
  }
  .hero { padding: 24px 12px 56px; }
  .hero-content { margin: 0; padding: 24px 20px; }
  .text-panel { padding: 28px 22px; }
  .contact-links { flex-direction: column; }
  .site-nav { gap: 10px; font-size: 10.5px; letter-spacing: 0.03em; }
  .site-footer-inner { flex-direction: column; border-radius: 18px; }
}
