/* ==========================================================================
   Self-hosted fonts (replaces the Google Fonts CDN — see README)
   ========================================================================== */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --ink: #14213D;
  --paper: #F6F5F1;
  --paper-dim: #EDEBE4;
  --amber: #E8A33D;
  --amber-dim: #C98523;
  --slate: #4C6B77;
  --text: #1B1B1E;
  --text-muted: #5B5D63;
  --line: #D8D5CC;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --max-width: 1180px;
  --gap: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================================================
   Utility / eyebrow labels (mono, does real labeling work — not decoration)
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--amber);
}

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

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em 0; }

.lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 46ch;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.logo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .tick {
  width: 10px;
  height: 10px;
  background: var(--amber);
}

.logo-img {
    height: 70px;
    width: auto;
    display: block;
}

nav.main-nav {
  display: flex;
  gap: 2px;
}

nav.main-nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  padding: 10px 16px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

nav.main-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-family: var(--font-mono);
  cursor: pointer;
}

@media (max-width: 760px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 8px 0;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 14px 32px; border-bottom: 1px solid var(--paper-dim); }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--amber-dim); border-color: var(--amber-dim); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn:active { transform: translateY(1px); }

/* ==========================================================================
   Grid / tick-mark motif (chart-axis reference — hairlines earn their keep)
   ========================================================================== */
.axis-frame {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  padding: 96px 0;
}

.axis-frame::before,
.axis-frame::after {
  content: "";
  position: absolute;
  left: 32px;
  width: 1px;
  height: 8px;
  background: var(--line);
}
.axis-frame::before { top: -1px; }
.axis-frame::after { bottom: -1px; }

section { padding: 88px 0; }
section.tight { padding: 56px 0; }

.section-head {
  margin-bottom: 48px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 0;
  width: 1px;
  height: 8px;
  background: var(--line);
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  opacity: 0.6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.signal-panel {
  background: var(--ink);
  padding: 24px 28px 28px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 48px -24px rgba(20, 33, 61, 0.5);
}

.signal-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.signal-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8FA3B0;
}

.signal-panel .caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8FA3B0;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
}

.caption .swatch {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  vertical-align: middle;
}
.swatch-noise { background: #5A7280; }
.swatch-clean { background: var(--amber); }

.signal-panel svg { width: 100%; height: auto; display: block; }

.signal-grid line {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.signal-end {
  fill: var(--amber);
  opacity: 0;
  animation: signal-end-in 0.4s ease forwards 2.7s;
}

@keyframes signal-end-in {
  to { opacity: 1; }
}

/* signature: noisy line drawing itself into a clean trend */
.signal-line-noise,
.signal-line-clean {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.signal-line-noise {
  stroke: #5A7280;
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: draw 1.6s ease forwards;
}
.signal-line-clean {
  stroke: var(--amber);
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: draw 1.6s ease forwards 1.3s;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .signal-line-noise, .signal-line-clean { animation: none; stroke-dashoffset: 0; }
  .signal-end { animation: none; opacity: 1; }
}

/* ==========================================================================
   Cards (services / values)
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  padding: 36px 30px;
}

.card .index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber-dim);
  margin-bottom: 18px;
  display: block;
}

.card p { color: var(--text-muted); margin-bottom: 0; }

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
@media (max-width: 760px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
.stat .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--ink);
  font-weight: 600;
}
.stat .label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Two-column content
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-item .mark {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber-dim);
  padding-top: 3px;
}

/* ==========================================================================
   Team / about
   ========================================================================== */
.value-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.value-list li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
}
.value-list li:last-child { border-bottom: 1px solid var(--line); }
.value-list .term {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.value-list p { margin: 0; color: var(--text-muted); }

/* ==========================================================================
   Pricing / engagement models
   ========================================================================== */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 860px) {
  .model-grid { grid-template-columns: 1fr; }
}
.model-card {
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.model-card.featured {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.model-card.featured h3 { color: var(--paper); }
.model-card.featured .eyebrow { color: var(--amber); }
.model-card.featured .eyebrow::before { background: var(--amber); }
.model-card.featured p { color: #C7CFD9; }
.model-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex-grow: 1;
}
.model-card ul li {
  font-size: 14px;
  padding: 8px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.model-card.featured ul li { border-top-color: rgba(255,255,255,0.14); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: #C7CFD9; }

/* ==========================================================================
   Forms (enquiry)
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }

label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber-dim);
}

textarea { resize: vertical; min-height: 120px; }

.field .error {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #B3411E;
  min-height: 16px;
}

.consent-field { margin-top: 4px; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-muted);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--amber-dim);
}

.form-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.form-status {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px solid var(--line);
  display: none;
}
.form-status.visible { display: block; }
.form-status.success { border-color: var(--slate); background: #EDF2F2; }
.form-status.error { border-color: #B3411E; background: #FBECE7; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info .item {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.contact-info .item:first-child { border-top: none; padding-top: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  margin-top: 64px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-grid .copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--ink); }

.footer-social {
  display: flex;
  gap: 16px;
}
.social-link {
  display: inline-flex;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.social-link:hover { color: var(--ink); }

/* Placeholder state for socials that aren't live yet.
   Once a profile exists: remove aria-disabled from the <a> in the HTML,
   swap href="#" for the real URL, and this styling drops away automatically. */
.social-link[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

/* Legal pages (privacy, terms) — narrower measure for readability */
.legal-content {
  max-width: 72ch;
}
.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li {
  color: var(--text-muted);
}
.legal-content .updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2em;
}

/* skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 13px;
}
.skip-link:focus { left: 16px; top: 16px; }
