/*
  styles.css
  hackerSlash marketing site. warm cream base pulled straight from the logo
  (red apple, green leaves, dark brown ring). built mobile first and meant to
  hold from a 320px phone all the way up to a 4k display.
*/

/* ----- fonts -----
   inter ships with the site so nothing hangs on an outside font host.
   this loads offline and lets us keep the security policy tight. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-800.woff2") format("woff2"); }

/* ----- design tokens ----- */
:root {
  /* surfaces */
  --paper: #fdf6ea;
  --paper-2: #fbf0dd;
  --card: #ffffff;

  /* ink */
  --ink: #2a1a15;
  --ink-soft: #6b574a;
  --ink-faint: #9a8779;

  /* lines */
  --line: #ecdfc9;
  --line-strong: #e1cfb0;

  /* brand accents */
  --red: #e8443c;
  --red-deep: #c7362f;
  --red-ink: #8f2f28;
  --green: #3ea83a;
  --green-deep: #2e7d2b;

  /* chips */
  --chip-bg: #fbeed6;
  --chip-line: #e7d2a6;
  --chip-ink: #6b4a2e;

  /* type */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;

  /* shape and rhythm */
  --container: 1200px;
  --radius-card: 14px;
  --radius-btn: 11px;
  --shadow-sm: 0 1px 2px rgba(42, 26, 21, 0.06);
  --shadow-card: 0 10px 30px rgba(42, 26, 21, 0.08);
  --section-pad: clamp(56px, 8vw, 120px);
  --gutter: clamp(20px, 5vw, 48px);
}

/* ----- reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

/* keyboard users need to see where they are */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* screen reader only helper, keeps the visual clean but the page readable */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* skip link so keyboard folks can jump past the nav */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  z-index: 2000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ----- shared layout ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }
.section--tint { background: var(--paper-2); }

/* the little terminal style label above most section titles */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--red-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.eyebrow::before { content: "//"; color: var(--red); font-weight: 700; }

.section-title {
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-lead {
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.7;
  max-width: 620px;
  margin-top: 16px;
}

.section-head { margin-bottom: clamp(32px, 5vw, 56px); }

/* the signature: a hand drawn looking wavy underline on one key word */
.accent {
  color: var(--red);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--red);
  text-underline-offset: 8px;
  text-decoration-thickness: 3px;
}

/* ----- buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--red-deep); box-shadow: 0 8px 20px rgba(232, 68, 60, 0.28); }

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

.btn--light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { color: var(--red); }

/* ----- header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253, 246, 234, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* drop a hairline and soft shadow once the page is scrolled */
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
.brand-lockup img { height: 40px; width: auto; }
.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-name .brand-name__slash { color: var(--red); }

.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-desktop__links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-desktop__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.18s ease;
}
.nav-desktop__links a:hover { color: var(--red); }
/* underline grows in on hover and for the active page */
.nav-desktop__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--red);
  transition: width 0.22s ease;
}
.nav-desktop__links a:hover::after,
.nav-desktop__links a.is-active::after { width: 100%; }
.nav-desktop__links a.is-active { color: var(--ink); }

/* hamburger, hidden until we hit the mobile breakpoint */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* compact dropdown for phones and tablets, only as wide as its own text */
.nav-mobile {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: var(--gutter);
  width: max-content;
  max-width: calc(100vw - 2 * var(--gutter));
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  z-index: 1100;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-mobile a:hover { background: rgba(232, 68, 60, 0.08); color: var(--red); }
.nav-mobile a.is-active { color: var(--red); }
.nav-mobile .nav-mobile__cta {
  margin-top: 6px;
  text-align: center;
  border: none;
}

/* ----- hero ----- */
.hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 120px);
  overflow: hidden;
}
/* faint dotted grid, keeps the big cream space from feeling empty */
.hero::before,
.page-hero::before,
.notfound::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(42, 26, 21, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 30% 25%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 30% 25%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 56px);
  align-items: center;
}
.hero__copy { max-width: 620px; }
/* the scan window only shows up where there is room to spare */
.hero__visual { display: none; }

/* mock terminal that fills the space beside the headline */
.term {
  background: #241611;
  border: 1px solid #3a2820;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(42, 26, 21, 0.22);
  font-family: var(--font-mono);
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: #31201a;
  border-bottom: 1px solid #3a2820;
}
.term__dot { width: 11px; height: 11px; border-radius: 50%; background: #5b463c; }
.term__dot:nth-child(1) { background: #e05b52; }
.term__dot:nth-child(2) { background: #e8b53c; }
.term__dot:nth-child(3) { background: #3ea83a; }
.term__title { margin-left: 10px; font-size: 0.78rem; color: #a98d7b; }
.term__body { padding: 20px 18px; font-size: 0.86rem; line-height: 1.85; }
.term__line { display: flex; gap: 10px; white-space: nowrap; }
.term__sym { flex: none; min-width: 30px; color: #8a7360; }
.term__txt { color: #fbf1df; }
.term__line--cmd .term__sym { color: #5fd08a; }
.term__line--muted .term__sym { color: #7c6455; }
.term__line--muted .term__txt { color: #a98d7b; }
.term__line--warn .term__sym { color: #ff6a5c; }
.term__line--warn .term__txt { color: #e7c9b6; }
.term__line--ok .term__sym { color: #5fd08a; }
.term__line--ok .term__txt { color: #bfe6cf; }
.term__cursor {
  display: inline-block;
  width: 9px; height: 16px;
  background: #5fd08a;
  animation: term-blink 1.1s steps(1) infinite;
}
@keyframes term-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* on wide screens split the hero into copy on the left, scan on the right */
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .hero__visual { display: block; }
}

.hero__title {
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 22px;
}

.hero__sub {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--chip-ink);
  background: var(--chip-bg);
  border: 1.5px solid var(--chip-line);
  border-radius: 999px;
  padding: 7px 15px;
}

/* ----- stat strip ----- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.stat {
  background: var(--paper);
  padding: clamp(22px, 3vw, 34px) clamp(18px, 2.5vw, 28px);
}
.stat__num {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat__num span { color: var(--red); }
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-faint);
  margin-top: 10px;
}

/* ----- card grids ----- */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 22px);
}
.grid--services { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid--build { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.grid--approach { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* the icon tile that sits at the top of each card */
.ic-tile {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(232, 68, 60, 0.09);
  color: var(--red);
  margin-bottom: 18px;
}
.ic-tile svg { width: 24px; height: 24px; }
/* a couple of tiles lean green to echo the leaves in the logo */
.ic-tile--green { background: rgba(62, 168, 58, 0.12); color: var(--green-deep); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(22px, 2.6vw, 30px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}
.card__title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.card__desc { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.65; }

/* smaller cards for the build section */
.mini {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.mini:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.mini .ic-tile { width: 42px; height: 42px; margin-bottom: 14px; }
.mini .ic-tile svg { width: 22px; height: 22px; }
.mini__title { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.mini__desc { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.55; }

/* a plain text link with a moving arrow, used under each preview block */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--red);
  font-size: 0.98rem;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ----- cta band ----- */
.cta-band { background: var(--ink); color: var(--paper); }
.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
}
.cta-band__title {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 620px;
}
.cta-band__text { color: #d9c8ba; margin-top: 14px; max-width: 480px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ----- footer ----- */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 72px) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 56px);
}
.footer-brand__lockup { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand__lockup img { height: 38px; width: auto; }
.footer-brand__blurb { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.6; max-width: 320px; }

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-soft); font-size: 0.94rem; transition: color 0.18s ease; }
.footer-col a:hover { color: var(--red); }

.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a, .footer-contact address {
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-style: normal;
  line-height: 1.55;
  transition: color 0.18s ease;
}
.footer-contact a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-bottom__copy { color: var(--ink-faint); font-size: 0.84rem; }
.footer-bottom__legal { display: flex; gap: 20px; }
.footer-bottom__legal a { color: var(--ink-faint); font-size: 0.84rem; transition: color 0.18s ease; }
.footer-bottom__legal a:hover { color: var(--red); }
.footer-bottom__meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer-badge:hover { color: var(--red); border-color: var(--red); }
.footer-badge svg { width: 15px; height: 15px; color: var(--green); }

/* ----- scroll reveal ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ----- page hero (services and other inner pages) ----- */
.page-hero {
  position: relative;
  padding-block: clamp(52px, 8vw, 104px);
  overflow: hidden;
}
.page-hero__title {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.page-hero__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 28px;
}
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

/* chips that double as jump links pick up a hover state */
.chip--link { cursor: pointer; transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.chip--link:hover { color: var(--red-ink); border-color: var(--red); background: #fff; }

/* ----- services detail rows ----- */
.svc-rows { border-top: 1px solid var(--line); }
.svc-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 3vw, 26px);
  padding-block: clamp(30px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
}
.svc-row__head .ic-tile { margin-bottom: 6px; }
.svc-row__title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 14px 0 8px;
}
.svc-row__tagline { color: var(--red-ink); font-weight: 600; font-size: 1rem; }
.svc-row__text {
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.08rem);
  line-height: 1.7;
  margin-bottom: 22px;
}
/* small mono label above the tech tags on the build page */
.stack-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.svc-row__list { list-style: none; display: grid; gap: 13px; }
.svc-row__list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-size: 0.97rem;
  line-height: 1.5;
}
/* small green check drawn from a rotated border, a nod to the leaves */
.svc-row__list li::before {
  content: "";
  position: absolute;
  left: 3px; top: 3px;
  width: 6px; height: 11px;
  border: solid var(--green-deep);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (min-width: 860px) {
  .svc-row {
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
  }
}

/* ----- approach principles (numbered manifesto) ----- */
.principles { border-top: 1px solid var(--line); }
.principle {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(8px, 2vw, 16px);
  padding-block: clamp(30px, 5vw, 54px);
  border-bottom: 1px solid var(--line);
}
.principle__no {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.principle__title {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 6px 0 14px;
}
.principle__text {
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 18px;
}
.principle__payoff {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 620px;
}
/* a short red rule marks the payoff line, a different accent from the checks */
.principle__payoff::before {
  content: "";
  flex: none;
  margin-top: 9px;
  width: 22px; height: 2px;
  background: var(--red);
}

@media (min-width: 860px) {
  .principle {
    grid-template-columns: 120px 1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
  }
}

/* ----- about story (editorial label plus prose) ----- */
.about-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 4vw, 36px);
}
.about-story__lead {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 720px;
}
.about-story__body p {
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.75;
  margin-bottom: 18px;
  max-width: 680px;
}
.about-story__body p:last-child { margin-bottom: 0; }

@media (min-width: 860px) {
  .about-story {
    grid-template-columns: 200px 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
  }
}

/* ----- contact cards ----- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2vw, 22px);
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 34px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.contact-card__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.contact-card__value {
  display: inline-block;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  word-break: break-word;
  transition: color 0.18s ease;
}
a.contact-card__value:hover { color: var(--red); }
.contact-card__value--addr { font-weight: 600; font-size: 1.02rem; line-height: 1.55; }
.contact-card__directions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-weight: 700;
  color: var(--red);
  font-size: 0.92rem;
}
.contact-card__directions svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.contact-card__directions:hover svg { transform: translateX(3px); }
.contact-card__helper { color: var(--ink-soft); font-size: 0.9rem; margin-top: 14px; }

/* ----- 404 ----- */
.notfound {
  position: relative;
  overflow: hidden;
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(60px, 10vh, 120px);
}
.notfound__inner { position: relative; max-width: 560px; }
.notfound__code {
  font-family: var(--font-mono);
  font-size: clamp(4.5rem, 16vw, 9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--red);
}
.notfound__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
}
.notfound__text {
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.7;
  margin-bottom: 28px;
}
.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ----- legal pages (privacy, terms) ----- */
.legal { max-width: 760px; }
.legal__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 14px 0 0;
}
.legal__updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 14px;
}
.legal__intro {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  line-height: 1.7;
  margin-top: 22px;
  max-width: 680px;
}
.legal__section { margin-top: clamp(32px, 5vw, 48px); }
.legal__section h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.legal__section p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 14px;
  max-width: 680px;
}
.legal__section p:last-child { margin-bottom: 0; }
.legal__list { list-style: none; display: grid; gap: 12px; margin-top: 4px; }
.legal__list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 680px;
}
.legal__list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.legal a {
  color: var(--red-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}
.legal a:hover { color: var(--red); }

/* ----- faq accordion ----- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: left;
  transition: color 0.18s ease;
}
.faq-item__q:hover { color: var(--red); }
.faq-item__icon {
  flex: none;
  display: inline-flex;
  color: var(--red);
  transition: transform 0.25s ease;
}
.faq-item__icon svg { width: 20px; height: 20px; display: block; }
.faq-item__q[aria-expanded="true"] .faq-item__icon { transform: rotate(180deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item__a-inner { padding: 0 22px 20px; }
.faq-item__a-inner p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0;
  max-width: 68ch;
}

/* ----- entrance motion ----- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero__copy > *,
.hero__visual {
  animation: rise-in 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero__copy > *:nth-child(1) { animation-delay: 0.04s; }
.hero__copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.20s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.28s; }
.hero__copy > *:nth-child(5) { animation-delay: 0.36s; }
.hero__visual { animation-delay: 0.24s; }

/* ----- responsive ----- */

/* tablets and down: swap the desktop menu for the drawer */
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* phones */
@media (max-width: 560px) {
  .header-inner { height: 64px; }
  .brand-lockup img { height: 34px; }
  .hero__actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* very small phones, keep everything from spilling at 320px */
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .chip { font-size: 0.76rem; padding: 6px 12px; }
}

/* big screens: hold the line length and let the art breathe */
@media (min-width: 1800px) {
  :root { --container: 1360px; }
  body { font-size: 1.06rem; }
}

/* respect people who asked their system to cut motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
