/* ==========================================================================
   Ozriel LLC — stylesheet
   Editorial/agency layout: hairline rules, warm paper ground, one accent.
   Sections are numbered; no gradients, no glass, no drop-shadow cards.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --paper:      #f6f3ed;
  --paper-2:    #efeade;
  --paper-3:    #e7e1d3;
  --ink:        #15171b;
  --ink-2:      #3b3f46;
  --ink-3:      #6d6a63;
  --line:       #d9d2c4;
  --line-2:     #c4bbaa;
  --brick:      #b4472b;
  --brick-dark: #90361f;
  --pine:       #1f4a3f;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gut: 1.5rem;
  --rule: 1px solid var(--line);

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.19vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.38vw, 1.44rem);
  --step-2:  clamp(1.5rem, 1.33rem + 0.8vw, 2rem);
  --step-3:  clamp(1.95rem, 1.6rem + 1.7vw, 3rem);
  --step-4:  clamp(2.5rem, 1.8rem + 3.4vw, 4.6rem);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain. Sits above the background, below everything else. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 40;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }

::selection { background: var(--brick); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 999;
}
.skip:focus { left: 0; }

.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;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--ruled { border-top: var(--rule); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 3rem;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}

@media (min-width: 900px) {
  .section-head { grid-template-columns: 15rem minmax(0, 1fr); align-items: start; }
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.kicker::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--line-2);
  flex: none;
}

.section-head h2 { font-size: var(--step-3); }
.section-head .lede { margin-top: 1rem; color: var(--ink-2); font-size: var(--step-1); }

.lede { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  font-family: inherit;
}

.btn:hover { background: var(--brick); border-color: var(--brick); transform: translateY(-1px); }

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

.btn--brick { background: var(--brick); border-color: var(--brick); }
.btn--brick:hover { background: var(--brick-dark); border-color: var(--brick-dark); }

.btn--onink { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--onink:hover { background: var(--brick); border-color: var(--brick); color: var(--paper); }

.btn--ghost-onink { background: transparent; color: var(--paper); border-color: rgba(246, 243, 237, 0.32); }
.btn--ghost-onink:hover { background: transparent; border-color: var(--paper); color: var(--paper); }

.btn .arw { transition: transform 0.18s ease; }
.btn:hover .arw { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Text link with a rule that grows on hover */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.tlink:hover { color: var(--brick); border-color: var(--brick); }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-stuck { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__name strong { font-weight: 500; }
.brand__name span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: 0.4rem;
  vertical-align: 0.28em;
}

.nav { display: none; }

@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 2rem; }
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink-2);
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  cursor: pointer;
}

@media (min-width: 900px) { .nav-toggle { display: none; } }

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: var(--rule);
  background: var(--paper);
}
.mobile-nav.is-open { display: block; }
@media (min-width: 900px) { .mobile-nav, .mobile-nav.is-open { display: none; } }

.mobile-nav ul { list-style: none; margin: 0; padding: 0.5rem 0 1.5rem; }
.mobile-nav li { border-bottom: var(--rule); }
.mobile-nav a {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  font-size: 1.05rem;
}
.mobile-nav .btn { margin-top: 1.25rem; width: 100%; justify-content: center; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 1.5rem + 6vw, 6.5rem) clamp(2.5rem, 1rem + 4vw, 4.5rem); }

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 1rem + 5vw, 4.5rem);
}

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: end; }
}

.hero h1 {
  font-size: var(--step-4);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 60;
  color: var(--brick);
}

.hero__lede { font-size: var(--step-1); color: var(--ink-2); max-width: 46ch; }

.hero__meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__meta span::before { content: ""; width: 5px; height: 5px; background: var(--pine); border-radius: 50%; }

/* Index panel on the right of the hero */
.index-card { border-top: 2px solid var(--ink); padding-top: 1rem; }

.index-card__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.75rem;
}

.index-card ol { list-style: none; margin: 0; padding: 0; }

.index-card li { border-bottom: var(--rule); }

.index-card a {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.85rem 0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.index-card a:hover { color: var(--brick); }
.index-card a:hover .index-card__arw { transform: translateX(4px); }

.index-card .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
}

.index-card .label { font-size: 1.02rem; font-family: var(--font-display); }
.index-card__arw { color: var(--line-2); transition: transform 0.15s ease; }

/* Ticker strip under the hero */
.strip {
  border-block: var(--rule);
  background: var(--paper-2);
  overflow: hidden;
}

.strip__inner {
  display: flex;
  gap: 3rem;
  padding-block: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  width: max-content;
}

.strip:hover .strip__inner { animation-play-state: paused; }

.strip__inner span { display: inline-flex; align-items: center; gap: 3rem; }
.strip__inner span::after { content: "◆"; color: var(--line-2); font-size: 0.6rem; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .strip__inner { animation: none; width: 100%; flex-wrap: wrap; white-space: normal; }
}

/* --------------------------------------------------------------------------
   7. Service grid
   -------------------------------------------------------------------------- */
.svc-grid {
  display: grid;
  gap: 0;
  border-top: var(--rule);
}

@media (min-width: 820px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.svc {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.75rem, 1rem + 2vw, 2.75rem) 0;
  border-bottom: var(--rule);
  text-decoration: none;
  transition: background 0.2s ease;
}

@media (min-width: 820px) {
  .svc { padding-inline: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
  .svc:nth-child(odd) { border-right: var(--rule); padding-left: 0; }
  .svc:nth-child(even) { padding-right: 0; }
}

.svc:hover { background: var(--paper-2); }
.svc:hover .svc__go { color: var(--brick); border-color: var(--brick); }

.svc__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.svc h3 { font-size: var(--step-2); }
.svc p { color: var(--ink-2); font-size: 0.98rem; margin: 0; }

.svc__tags {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.svc__tags li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.25rem 0.5rem;
}

.svc__go {
  margin-top: auto;
  padding-top: 1rem;
  align-self: flex-start;
  font-size: var(--step--1);
  font-weight: 500;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

/* Closing note under the service grid */
.svc-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  padding-top: 1.75rem;
  color: var(--ink-3);
  font-size: 0.95rem;
}

.svc-note p { margin: 0; max-width: 52ch; }

/* --------------------------------------------------------------------------
   7b. Capability columns
   -------------------------------------------------------------------------- */
.cap-grid {
  display: grid;
  gap: 2.5rem 3rem;
  border-top: var(--rule);
  padding-top: 2.5rem;
}

@media (min-width: 640px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cap h3 {
  font-size: var(--step-1);
  padding-bottom: 0.75rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--line-2);
}

.cap ul { list-style: none; margin: 0; padding: 0; }

.cap li {
  padding: 0.55rem 0;
  border-bottom: var(--rule);
  font-size: 0.94rem;
  color: var(--ink-2);
}

.cap li:last-child { border-bottom: none; }

/* --------------------------------------------------------------------------
   8. Process / steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
  border-top: var(--rule);
}

@media (min-width: 780px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.step {
  padding: 1.75rem 0;
  border-bottom: var(--rule);
}

@media (min-width: 780px) {
  .step { padding: 2rem 1.5rem 2.5rem 0; border-bottom: none; }
  .step + .step { border-left: var(--rule); padding-left: 1.5rem; }
}

.step__n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--brick);
  display: block;
  margin-bottom: 0.75rem;
}

.step h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.step p { font-size: 0.94rem; color: var(--ink-2); margin: 0; }

/* --------------------------------------------------------------------------
   9. Two-column prose + aside
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
}

@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--form { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr); }
}

.prose p { font-size: var(--step-0); color: var(--ink-2); }
.prose h3 { font-size: var(--step-2); margin: 2rem 0 0.75rem; }
.prose ul { padding-left: 1.1rem; color: var(--ink-2); }
.prose li { margin-bottom: 0.4rem; }

/* Bordered fact panel */
.panel {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2rem);
  border-radius: 3px;
}

.panel h3 { font-size: var(--step-1); margin-bottom: 0.75rem; }
.panel p:last-child { margin-bottom: 0; }

/* Checklist */
.checks { list-style: none; margin: 0; padding: 0; }

.checks li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.75rem;
  border-bottom: var(--rule);
  color: var(--ink-2);
  font-size: 0.97rem;
}

.checks li:last-child { border-bottom: none; }

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 1.5px solid var(--brick);
  border-bottom: 1.5px solid var(--brick);
  transform: rotate(-45deg);
}

/* Stats */
.stats {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--ink);
}

@media (min-width: 700px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.stat { padding: 1.5rem 0; border-bottom: var(--rule); }

@media (min-width: 700px) {
  .stat { padding: 1.75rem 1.5rem 1.75rem 0; border-bottom: none; }
  .stat + .stat { border-left: var(--rule); padding-left: 1.5rem; }
}

.stat dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}

.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.15;
}

/* --------------------------------------------------------------------------
   10. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: var(--rule); }

.faq details {
  border-bottom: var(--rule);
}

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--step-1);
  list-style: none;
  transition: color 0.15s ease;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brick); }

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--ink-3);
  flex: none;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { color: var(--brick); }

.faq .faq__body { padding-bottom: 1.5rem; max-width: 68ch; }
.faq .faq__body p { color: var(--ink-2); margin-bottom: 0.75em; }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   11. Dark call-to-action band
   -------------------------------------------------------------------------- */
.cta {
  background: var(--ink);
  color: var(--paper);
}

.cta__grid {
  display: grid;
  gap: 2rem;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .cta__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4rem; }
}

.cta h2 { font-size: var(--step-3); }
.cta p { color: rgba(246, 243, 237, 0.72); margin-top: 1rem; }
.cta .kicker { color: rgba(246, 243, 237, 0.55); }
.cta .kicker::before { background: rgba(246, 243, 237, 0.35); }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.25rem; }

.field { display: grid; gap: 0.4rem; }

.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.field .req { color: var(--brick); }

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  padding: 0.65rem 0;
  transition: border-color 0.18s ease;
  width: 100%;
}

.field textarea { min-height: 7rem; resize: vertical; line-height: 1.55; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236d6a63' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 1.5rem;
  cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--brick);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; }

.field--error input,
.field--error select,
.field--error textarea { border-bottom-color: var(--brick); }

.field__err {
  font-size: 0.78rem;
  color: var(--brick);
  min-height: 1rem;
}

.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The fieldset has no error slot, so it needs the spacing the others get free. */
.form fieldset.field { padding-bottom: 0.9rem; }

.checkgroup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.checkgroup input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.checkgroup label {
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
}

.checkgroup input:checked + label {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.checkgroup input:focus-visible + label { outline: 2px solid var(--brick); outline-offset: 2px; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
}

.form__note { font-size: 0.82rem; color: var(--ink-3); margin: 0; max-width: 34ch; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status {
  display: none;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--pine);
  background: var(--paper-2);
  padding: 1rem 1.25rem;
  font-size: 0.94rem;
}
.form-status.is-visible { display: block; }
.form-status.is-error { border-left-color: var(--brick); }

/* --------------------------------------------------------------------------
   13. Contact details list
   -------------------------------------------------------------------------- */
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }

.contact-list li { border-bottom: var(--rule); padding: 1.1rem 0; }

.contact-list dt,
.contact-list .ct-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.3rem;
}

.contact-list .ct-value {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.3;
}

.contact-list .ct-value a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.contact-list .ct-value a:hover { color: var(--brick); border-color: var(--brick); }

.contact-list .ct-sub { font-size: 0.85rem; color: var(--ink-3); margin: 0.3rem 0 0; }

/* --------------------------------------------------------------------------
   14. Page header (interior pages)
   -------------------------------------------------------------------------- */
.page-head {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(2rem, 1rem + 3vw, 3.5rem);
  border-bottom: var(--rule);
}

.crumbs {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.5rem;
}

.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brick); }
.crumbs span { margin-inline: 0.5rem; color: var(--line-2); }

.page-head h1 { font-size: var(--step-4); max-width: 18ch; }
.page-head .lede { margin-top: 1.25rem; font-size: var(--step-1); max-width: 54ch; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: var(--rule);
  background: var(--paper-2);
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) 2rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 760px) {
  .footer__grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
}

.footer__grid h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}

.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin-bottom: 0.6rem; }
.footer__grid a { text-decoration: none; font-size: 0.94rem; color: var(--ink-2); }
.footer__grid a:hover { color: var(--brick); }

.footer__blurb { color: var(--ink-2); font-size: 0.95rem; max-width: 34ch; margin-top: 1rem; }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: var(--rule);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.footer__bar a { text-decoration: none; }
.footer__bar a:hover { color: var(--brick); }

/* --------------------------------------------------------------------------
   16. Reveal on scroll
   -------------------------------------------------------------------------- */
/* Only ever hide content when there is script available to bring it back.
   With JS off — or where `scripting` is unsupported — .reveal is inert and
   every section renders normally. */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(14px); }

  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   17. 404
   -------------------------------------------------------------------------- */
.notfound {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 5rem;
}

.notfound .code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--brick);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   18. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta, .strip, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
  a { text-decoration: none; color: #000; }
}
