/* tagnat.com — design tokens
   Light warm-plastic palette in the teenage engineering register: one
   worker accent (TE-orange) reused for both text and fills, boxed
   part-number labels, corner ticks framing the hero like a datasheet. */

:root {
  --bg: #ece9e2;
  --bg-raised: #f7f6f1;
  --bg-raised-hover: #ffffff;
  --scope: #c03a00;
  --scope-dim: #d9b09d;
  --copper: #ff5b14;
  --copper-dim: #c94a16;
  --ink: #17171a;
  --ink-dim: #5b5b58;
  --ink-faint: #6a6962;
  --line: #d6d2c6;
  --line-bright: #c0bbaa;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 8px;
  --btn-primary-ink: #1a1006;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  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;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--scope);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--scope);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink); }
p.lede { color: var(--ink-dim); font-size: 1.15rem; }

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 21, 26, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  color: var(--scope);
  flex: none;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--scope);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  color: var(--ink);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 260px; }
  .nav-links a {
    display: block;
    padding: 0.85rem var(--pad);
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Hero / scope trace ---------- */

.hero {
  position: relative;
  padding: clamp(64px, 12vw, 128px) 0 clamp(48px, 8vw, 88px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.scope-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

/* Corner ticks framing the hero like a spec-sheet crop mark. */
.hero-inner::before,
.hero-inner::after {
  content: "+";
  position: absolute;
  top: -1.75rem;
  font-family: var(--font-mono);
  color: var(--ink-faint);
  font-size: 0.9rem;
}
.hero-inner::before { left: -0.4rem; }
.hero-inner::after { right: -0.4rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--scope);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.25em;
  display: block;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  color: var(--ink);
  margin-bottom: 0.4em;
}

.hero h1 em {
  font-style: normal;
  color: var(--scope);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.85em 1.4em;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--copper);
  color: var(--btn-primary-ink);
  font-weight: 600;
}
.btn-primary:hover { background: #ec9a5c; }

.btn-ghost {
  border-color: var(--line-bright);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--scope); color: var(--scope); }

.btn-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ---------- Sections ---------- */

section { padding: clamp(56px, 9vw, 96px) 0; }
section[id] { scroll-margin-top: 68px; } /* matches .site-nav's sticky height */
section.tight { padding: clamp(40px, 6vw, 64px) 0; }
section + section { border-top: 1px solid var(--line); }

.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

/* ---------- Channel strips (services) ---------- */
/* Modeled on a real mixer channel strip: a fader mark on the left, a stacked
   column of controls below the label. One strip per service, full width — a
   3-column card grid was wrong once each service carried real detail, not a
   one-line teaser. */

.channel-strips {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.strip {
  background: var(--bg-raised);
  padding: 2rem clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 0 clamp(1.25rem, 3vw, 2.5rem);
}

.strip-fader {
  background: var(--scope-dim);
  border-radius: 2px;
  grid-row: 1 / -1;
}
.strip:hover .strip-fader { background: var(--scope); }

.strip-head { grid-column: 2; }
.strip-body { grid-column: 2; max-width: 640px; }

.channel-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  margin-bottom: 0.6em;
  display: inline-block;
  border: 1px solid var(--line-bright);
  border-radius: 3px;
  padding: 0.2em 0.5em;
}

.strip h3 { font-size: 1.3rem; margin-bottom: 0.75em; }

.strip-body p { color: var(--ink-dim); font-size: 0.95rem; }
.strip-body ul { padding-left: 1.2em; color: var(--ink-dim); margin: 0 0 1.2em; }
.strip-body li { margin-bottom: 0.5em; }
.strip-body li strong { color: var(--ink); }

.engagement { font-size: 0.9rem; margin-bottom: 0; }

@media (max-width: 640px) {
  .strip { grid-template-columns: 1fr; padding: 1.75rem var(--pad); }
  .strip-fader { display: none; }
  .strip-head, .strip-body { grid-column: 1; }
}

/* ---------- Trace divider ---------- */

.trace-divider {
  height: 40px;
  width: 100%;
  display: block;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.site-footer a { color: var(--ink-dim); }

/* ---------- Callout ---------- */

.callout {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  color: var(--ink-dim);
}
.callout strong { color: var(--ink); }

.todo {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--copper-dim);
  background: rgba(224, 138, 75, 0.08);
  border: 1px dashed var(--copper-dim);
  border-radius: 4px;
  padding: 0.15em 0.5em;
  display: inline-block;
}

/* ---------- Work list ---------- */

.work-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.work-item {
  background: var(--bg-raised);
  padding: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.work-item h3 { font-size: 1.1rem; margin: 0 0 0.3em; }
.work-item p { margin: 0; color: var(--ink-dim); font-size: 0.9rem; }
.work-item .work-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  white-space: nowrap;
}
.work-item.placeholder { opacity: 0.55; }

/* ---------- Contact form ---------- */

.contact-form {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 640px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

.field { margin-bottom: 1.25rem; }
.field:last-of-type { margin-bottom: 0; }

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  margin-bottom: 0.5em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75em 0.9em;
}
.field textarea { resize: vertical; min-height: 7em; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--scope);
}

/* Honeypot — off-screen, not display:none (some bots skip hidden fields but
   still probe for offscreen ones; keep it out of tab order and out of the
   accessibility tree either way). */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.form-status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin: 0;
}
.form-status.sending { color: var(--ink-dim); }
.form-status.success { color: var(--scope); }
.form-status.error { color: var(--copper); }

/* ---------- 404 ---------- */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--pad);
}
.error-page .mono { color: var(--scope); font-size: 0.9rem; }
