/* samtonline.co.uk: system fonts for the UI, one accent colour, light and dark themes.
   Everything is self-hosted (the only third party is Turnstile on the contact form). */
:root {
  --bg: #ffffff;
  --bg-alt: #faf8f6;
  --surface: #ffffff;
  --text: #1a1714;
  --muted: #5c5650;
  --border: #ebe6e1;
  /* Form field borders: 3:1+ against white and --bg-alt (WCAG 1.4.11). */
  --border-strong: #857b71;
  /* Brand: Bitcoin orange. Fills only (buttons, badges, dots, highlights), always with dark text.
     #1a1a1a on #F7931A = 7.6:1; on hover #e2840f = 6.3:1. #F7931A on white is only 2.3:1, so it is
     never used for text or focus rings on light backgrounds. */
  --brand: #f7931a;
  --brand-hover: #e2840f;
  --on-brand: #1a1a1a;
  --brand-soft: #fef1de;
  /* Readable orange for links, small text and focus rings on light bg: #b45309 = 5.0:1 on white. */
  --accent: #b45309;
  --accent-hover: #8a3f06;
  --error: #b42318;
  --radius: 14px;
  --max: 68rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light dark;
}
/* Dark theme. JS sets data-theme on <html> before paint (js/theme.js);
   without JS the media query applies instead. */
:root[data-theme="dark"] {
  --bg: #12100e; /* warm near-black */
  --bg-alt: #171411;
  --surface: #1c1915;
  --text: #f3eee8; /* 16.5:1 on --bg */
  --muted: #b3a99e; /* 8.3:1 on --bg */
  --border: #2f2a24;
  --border-strong: #7d7266; /* 3.7:1+ on --bg and --surface */
  --brand: #f7931a; /* 8.0:1 on --bg */
  --brand-hover: #ffa53d;
  --on-brand: #1a1a1a;
  --brand-soft: #33240f;
  --accent: #f7931a;
  --accent-hover: #ffad4d;
  --error: #ff8a80;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #12100e; /* warm near-black */
    --bg-alt: #171411;
    --surface: #1c1915;
    --text: #f3eee8; /* 16.5:1 on --bg */
    --muted: #b3a99e; /* 8.3:1 on --bg */
    --border: #2f2a24;
    --border-strong: #7d7266; /* 3.7:1+ on --bg and --surface */
    --brand: #f7931a; /* 8.0:1 on --bg */
    --brand-hover: #ffa53d;
    --on-brand: #1a1a1a;
    --brand-soft: #33240f;
    --accent: #f7931a;
    --accent-hover: #ffad4d;
    --error: #ff8a80;
    color-scheme: dark;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
}
/* Smooth colour change when the visitor switches theme (class added briefly by theme.js;
   never added under prefers-reduced-motion). */
.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    fill 0.3s ease,
    stroke 0.3s ease !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
/* scroll-padding keeps focused elements clear of the sticky header (WCAG 2.4.11). */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
}
a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--accent-hover);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
p {
  margin: 0 0 1em;
}
main:focus {
  outline: none;
} /* skip-link target */

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}
.narrow {
  max-width: 44rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--brand);
  color: var(--on-brand);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
  color: var(--on-brand);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
}
.site-nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  /* soft orange glow */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 32rem at 85% -10%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 70%),
    radial-gradient(40rem 26rem at -10% 110%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 55%, var(--border));
  border-radius: 999px;
  padding: 0.4rem 0.95rem 0.4rem 0.8rem;
  margin: 0 0 1.5rem;
}
.pulse {
  position: relative;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulse::after {
    animation: none;
    display: none;
  }
}
.hero-eyebrow {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.hero-eyebrow strong {
  color: var(--text);
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
/* "whole systems": dark text on an orange marker stroke (orange text would be 2.3:1 on white). */
.hero h1 em {
  font-style: normal;
  background-image: linear-gradient(transparent 58%, var(--brand) 58%, var(--brand) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.06em;
}
[data-theme="dark"] .hero h1 em {
  background-image: none;
  color: var(--brand);
  padding: 0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .hero h1 em {
    background-image: none;
    color: var(--brand);
    padding: 0;
  }
}
.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.btn-lg {
  padding: 1rem 1.6rem;
  font-size: 1.05rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 1rem 3rem;
}
.about-grid > div {
  max-width: 44rem;
}
.about-lead {
  font-size: 1.25rem;
  font-weight: 500;
}
.muted {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
}
.btn-primary:hover {
  background: var(--brand-hover);
  color: var(--on-brand);
}
.btn-secondary {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: progress;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 750;
  margin-bottom: 0.4rem;
}
.section-intro {
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

/* Project cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  gap: 1.25rem;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.card-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.card h3 {
  font-size: 1.3rem;
}
.card p {
  color: var(--muted);
}
.card .tags {
  margin-top: auto;
  padding-top: 0.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tags li {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--text);
}

.also {
  margin-top: 2.5rem;
}
.also h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.also ul {
  margin: 0;
  padding-left: 1.2rem;
}
.also li {
  margin-bottom: 0.35rem;
}
.also li::marker {
  color: var(--brand);
}

/* Skills */
.skill-groups {
  display: grid;
  gap: 1.5rem;
}
.skill-group {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.75rem 1.5rem;
  align-items: start;
}
.skill-group h3 {
  font-size: 1rem;
  margin: 0.25rem 0 0;
}
.skill-group .tags li {
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border);
}
.timeline li {
  position: relative;
  padding: 0 0 2rem 1.75rem;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 0.45rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--brand);
}
.timeline li.current::before {
  background: var(--brand);
}
.timeline h3 {
  font-size: 1.15rem;
  margin-bottom: 0.1rem;
}
.timeline h3 span {
  font-weight: 500;
  color: var(--muted);
}
.timeline .meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
}
.timeline p:last-child {
  margin-bottom: 0;
}
.education {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.education h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-links {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.6rem;
}
.contact-links a {
  font-weight: 600;
}
.contact-links span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}
.field [aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error); /* thicker without shifting layout */
}
.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--error);
}
.field-error:empty {
  display: none;
}
.form-required {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.turnstile {
  min-height: 65px;
  margin-bottom: 1rem;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.form-status {
  font-weight: 600;
  color: var(--accent);
}
.form-status.is-error {
  color: var(--error);
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.site-footer p {
  margin: 0;
}
.site-footer a {
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--accent);
}

/* Message pages (thanks / sorry / 404) */
.message-page main {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}
.message-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}
.message-page p {
  color: var(--muted);
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 7.5rem; /* the header wraps to two rows here */
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .skill-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .site-header .container {
    padding: 0.6rem 0;
  }
  .site-nav ul {
    gap: 0.25rem 1rem;
  }
}
@media (max-width: 480px) {
  html {
    scroll-padding-top: 9rem; /* the header is up to ~135px tall at 320px */
  }
  .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  } /* visually hidden, still the link name */
  .site-nav ul {
    gap: 0.25rem 0.8rem;
  }
  .site-nav a {
    font-size: 0.9rem;
  }
  .actions .btn {
    width: 100%;
  }
}
.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;
}
.skill-group .tags li::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--brand);
  margin-right: 0.45rem;
  vertical-align: 0.1em;
}

/* Header theme toggle (System / Light / Dark). Hidden without JS, where the OS setting is used. */
.header-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 1.25rem;
}
.theme-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}
html:not([data-theme]) .theme-toggle {
  display: none;
}
.theme-btn {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-btn:hover {
  color: var(--text);
}
/* The inset ring keeps the selected state at 3:1+ in light mode (orange alone is 2.3:1 on white). */
.theme-btn[aria-pressed="true"] {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.theme-btn:focus-visible {
  outline-offset: 1px;
  border-radius: 999px;
}

/* Hero: copy on the left, architecture panel on the right */
.hero .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 3rem;
  align-items: center;
}
.hero-grid .hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
.arch {
  margin: 0;
}
.arch-svg {
  display: block;
  width: 100%;
  height: auto;
  padding: 0.8rem 0.9rem;
}
/* Hand-drawn sketch diagram. Wobbly strokes are static SVG paths generated
   offline; the only runtime cost is the self-hosted Caveat font.
   Light: dark ink on paper, #b45309 accents. Dark: chalk on a warm board, orange accents. */
@font-face {
  font-family: "Caveat";
  src: url("/fonts/caveat-400-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/fonts/caveat-700-subset.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
.arch-paper {
  --ink: #2a2520;
  --ink-soft: #5c5650;
  --sk-accent: #b45309;
  position: relative;
}
/* Faint dot grid, faded out towards the edges so it has no hard edge. */
.arch-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 11%, transparent) 1px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 45%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 45%, transparent 75%);
}
.arch-paper > svg {
  position: relative;
}
:root[data-theme="dark"] .arch-paper {
  --ink: #ece6dc;
  --ink-soft: #b3a99e;
  --sk-accent: #f7931a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .arch-paper {
    --ink: #ece6dc;
    --ink-soft: #b3a99e;
    --sk-accent: #f7931a;
  }
}
.sketch path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sketch .sk {
  stroke: var(--ink);
  stroke-width: 1.5;
}
.sketch .sk-thin {
  stroke-width: 1;
  opacity: 0.75;
}
.sketch .sk-acc {
  stroke: var(--sk-accent);
  stroke-width: 1.5;
}
.sketch .sk-zone {
  stroke: var(--ink-soft);
  stroke-width: 1.1;
  opacity: 0.7;
}
.sketch .sk-arrow {
  stroke: var(--sk-accent);
  stroke-width: 1.7;
}
.sketch text {
  font-family: "Caveat", "Comic Sans MS", cursive;
}
.sk-label {
  font-size: 21px;
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
}
.sk-sub {
  font-size: 16px;
  fill: var(--ink-soft);
  text-anchor: middle;
}
.sk-zlabel {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  fill: var(--sk-accent);
}
.sk-alabel {
  font-size: 16px;
  font-weight: 700;
  fill: var(--sk-accent);
}
.sk-mid {
  text-anchor: middle;
}
.sk-end {
  text-anchor: end;
}
.sk-glyph {
  font-size: 32px;
  font-weight: 700;
  fill: var(--sk-accent);
  text-anchor: middle;
}
.sk-glyph-sm {
  font-size: 15px;
}

/* Arrows draw themselves once on load (pathLength="1" on each path). */
.sk-arrow {
  animation: sk-draw 0.9s ease-out both;
}
@keyframes sk-draw {
  from {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  to {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
  }
}
.sk-arrow.a1 {
  animation-delay: 0.2s;
}
.sk-arrow.a2 {
  animation-delay: 0.5s;
}
.sk-arrow.a3 {
  animation-delay: 0.8s;
}
.sk-arrow.a4 {
  animation-delay: 1.1s;
  animation-duration: 1.2s;
}
.sk-arrow.a5 {
  animation-delay: 1.6s;
}
.sk-arrow.a6 {
  animation-delay: 0.3s;
}
.sk-arrow.a7 {
  animation-delay: 0.6s;
}
.sk-arrow.a8 {
  animation-delay: 0.9s;
}
.sk-arrow.a9 {
  animation-delay: 1.3s;
}
.sk-arrow.a10 {
  animation-delay: 1.5s;
}
@media (prefers-reduced-motion: reduce) {
  .sk-arrow {
    animation: none;
  }
}

@media (max-width: 960px) {
  .hero .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .arch {
    max-width: 34rem;
  }
}
@media (max-width: 760px) {
  .header-end {
    display: contents;
  }
  .site-nav {
    order: 3;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .arch-svg {
    padding: 0.75rem 0.6rem 0.4rem;
  }
}
/* Short viewports (landscape phones, heavy zoom): unstick the header so it can't cover content. */
@media (max-height: 500px) {
  .site-header {
    position: static;
  }
  html {
    scroll-padding-top: 0;
  }
}
