/* ==========================================================================
   Athora Studio — styles
   ========================================================================== */

:root {
  --orange: #F38020;
  --orange-hover: #E66A10;
  --orange-ink: #E66A10;   /* large orange text on off-white (≥3:1) */
  --orange-deep: #B3500A;  /* small orange text on off-white (≥4.5:1) */
  --charcoal: #171717;
  --offwhite: #FAFAF8;
  --gray: #F1F1EF;
  --muted: #737373;
  --line: rgba(23, 23, 23, 0.1);

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5.5rem, 12vw, 10rem);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 72px;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul[role="list"], .site-nav ul { list-style: none; padding: 0; }
::selection { background: var(--orange); color: var(--charcoal); }

:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 4px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--charcoal);
  color: var(--offwhite);
  font-weight: 600;
  border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250, 250, 248, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  fill: var(--orange);
  flex: none;
  transition: transform 0.5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-sub { font-weight: 500; color: var(--muted); }

.site-nav ul { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.site-nav a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: color 0.2s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

/* Buttons & links -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary {
  background: var(--orange);
  color: var(--charcoal);
  box-shadow: 0 1px 0 rgba(23, 23, 23, 0.08), 0 10px 30px -12px rgba(243, 128, 32, 0.7);
}
.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(23, 23, 23, 0.08), 0 18px 40px -14px rgba(230, 106, 16, 0.75);
}
.btn-primary:active { transform: translateY(0); }
.btn-arrow { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.link-quiet {
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--charcoal);
  background: linear-gradient(var(--charcoal), var(--charcoal)) left bottom / 100% 1.5px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.35s var(--ease), color 0.2s;
}
.link-quiet:hover { background-size: 0% 1.5px; background-position: right bottom; }

/* Section primitives ----------------------------------------------------- */
.section { padding-block: var(--section-y); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.section-label span {
  font-variant-numeric: tabular-nums;
  color: var(--orange-deep);
}
.section-label span::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-left: 0.75rem;
  vertical-align: middle;
  background: currentColor;
}
.section-label--dark,
.section-label--dark span { color: var(--charcoal); }

.section-title {
  font-size: clamp(2.4rem, 5.6vw, 4.75rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.accent { color: var(--orange-ink); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(243, 128, 32, 0.14), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(243, 128, 32, 0.06), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "head head"
    "copy visual";
  align-items: start;
  column-gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
}
.hero-head { grid-area: head; }
.hero-copy { grid-area: copy; padding-top: clamp(1.5rem, 3vw, 2.5rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(243, 128, 32, 0.18);
  animation: pulse 2.6s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.2rem, 10.5vw, 8.75rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.055em;
  margin-left: -0.04em;
}
.hero-title .line { display: block; white-space: nowrap; }
.hero-title em { font-style: normal; color: var(--orange-ink); }
.hero-title .dot { color: var(--orange); }

.hero-lede {
  max-width: 30rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

/* Hero visual — layered abstract composition */
.hero-visual {
  grid-area: visual;
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  justify-self: end;
  margin-top: clamp(-1rem, -2vw, 0rem);
}
.hv-grid {
  position: absolute;
  inset: -8%;
  background-image: radial-gradient(rgba(23, 23, 23, 0.16) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 68%);
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 68%);
}
.hv-sun {
  position: absolute;
  width: 64%;
  aspect-ratio: 1;
  top: 12%;
  right: 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #FFC58F 0%, rgba(255, 197, 143, 0) 42%),
    radial-gradient(circle at 50% 50%, var(--orange) 40%, var(--orange-hover) 100%);
  box-shadow: inset -20px -30px 60px rgba(180, 70, 0, 0.25), 0 40px 80px -30px rgba(243, 128, 32, 0.55);
  animation: float 9s ease-in-out infinite;
}
.hv-ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(23, 23, 23, 0.16);
  animation: spin 48s linear infinite;
}
.hv-orbit-dot {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: var(--charcoal);
  border-radius: 3px;
}
.hv-tri {
  position: absolute;
  width: 56%;
  left: 2%;
  bottom: 8%;
  color: var(--charcoal);
  animation: drift 12s ease-in-out infinite;
}
.hv-square {
  position: absolute;
  width: 13%;
  aspect-ratio: 1;
  top: 8%;
  left: 14%;
  background: var(--charcoal);
  border-radius: 6px;
  transform: rotate(14deg);
  animation: bob 7s ease-in-out infinite;
}
.hv-bar {
  position: absolute;
  width: 42%;
  height: 22%;
  right: 0;
  bottom: 14%;
  border-radius: 16px;
  background: rgba(250, 250, 248, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 20px 40px -20px rgba(23, 23, 23, 0.25);
  animation: bob 8s ease-in-out -2s infinite;
}
.hv-bar::before,
.hv-bar::after {
  content: "";
  position: absolute;
  left: 14%;
  height: 8%;
  min-height: 6px;
  border-radius: 99px;
  background: rgba(23, 23, 23, 0.75);
}
.hv-bar::before { top: 32%; width: 46%; }
.hv-bar::after { top: 56%; width: 28%; background: rgba(23, 23, 23, 0.25); }
.hv-pill {
  position: absolute;
  left: 38%;
  bottom: 2%;
  display: flex;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 99px;
  background: var(--charcoal);
  animation: bob 6s ease-in-out -1s infinite;
}
.hv-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(250, 250, 248, 0.35);
}
.hv-pill span:first-child { background: var(--orange); }

/* Ticker */
.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 1.1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.ticker-track span {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.ticker-track i {
  width: 10px;
  height: 10px;
  background: var(--orange);
  transform: rotate(45deg);
  border-radius: 2px;
  flex: none;
}

/* About ------------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  align-items: end;
}
.about-grid .section-label { grid-column: 1 / -1; }
.about-grid .section-title { grid-column: 1 / span 7; }
.about-body {
  grid-column: 8 / -1;
  display: grid;
  gap: 1.25rem;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  color: var(--muted);
}
.about-body p:first-child { color: var(--charcoal); font-weight: 500; }

.about-shape {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(1rem, 3vw, 2.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.about-shape span { width: 44px; height: 44px; flex: none; }
.as-a { border-radius: 50%; background: var(--orange); }
.as-b { border-radius: 44px 44px 0 0; height: 22px !important; background: var(--charcoal); align-self: flex-end; margin-bottom: 11px; }
.as-c { border: 1.5px solid var(--charcoal); border-radius: 6px; transform: rotate(45deg) scale(0.78); }

/* What We Create --------------------------------------------------------- */
.create { background: var(--gray); }
.create-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  min-height: 360px;
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(23, 23, 23, 0.14);
  box-shadow: 0 30px 60px -36px rgba(23, 23, 23, 0.35);
}
.card:hover::before { transform: scaleX(1); }

.card-num {
  position: absolute;
  top: clamp(1.75rem, 3vw, 2.5rem);
  right: clamp(1.75rem, 3vw, 2.5rem);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s var(--ease);
}
.card:hover .card-num { color: var(--orange-deep); }

.card h3 {
  margin-top: auto;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.card p {
  margin-top: 0.85rem;
  color: var(--muted);
  max-width: 22rem;
}

/* Card icons */
.card-icon {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 3.5rem;
}
.card-icon span { position: absolute; transition: transform 0.6s var(--ease); }

.ia-phone {
  left: 18px;
  top: 4px;
  width: 36px;
  height: 64px;
  border: 2px solid var(--charcoal);
  border-radius: 10px;
}
.ia-dot {
  left: 50%;
  bottom: 7px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--orange);
}
.ia-phone::before {
  content: "";
  position: absolute;
  inset: 8px 6px 24px;
  border-radius: 4px;
  background: rgba(243, 128, 32, 0.16);
  transition: background-color 0.4s var(--ease);
}
.card:hover .ia-phone { transform: rotate(-8deg); }
.card:hover .ia-dot { transform: translateY(-18px) scale(1.2); }
.card:hover .ia-phone::before { background: rgba(243, 128, 32, 0.32); }

.ig-tri {
  left: 0;
  top: 8px;
  width: 42px;
  height: 38px;
  background: var(--orange);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.ig-circle {
  right: 2px;
  top: 2px;
  width: 30px;
  height: 30px;
  border: 2px solid var(--charcoal);
  border-radius: 50%;
}
.ig-square {
  left: 30px;
  bottom: 2px;
  width: 24px;
  height: 24px;
  background: var(--charcoal);
  border-radius: 4px;
  transform: rotate(12deg);
}
.card:hover .ig-tri { transform: rotate(-12deg) translateY(-3px); }
.card:hover .ig-circle { transform: translate(-4px, 6px); }
.card:hover .ig-square { transform: rotate(57deg); }

.id-a, .id-b {
  top: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.id-a { left: 2px; background: var(--orange); }
.id-b {
  left: 26px;
  border: 2px solid var(--charcoal);
  background: rgba(250, 250, 248, 0.35);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.card:hover .id-a { transform: translateX(-4px); }
.card:hover .id-b { transform: translateX(4px); }

/* Contact ---------------------------------------------------------------- */
.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--orange);
  color: var(--charcoal);
  padding-block: clamp(6rem, 14vw, 11rem);
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(255, 196, 140, 0.55), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(214, 90, 0, 0.35), transparent 70%);
}
.contact-mark {
  position: absolute;
  z-index: -1;
  right: -6%;
  bottom: -14%;
  width: clamp(320px, 52vw, 760px);
  height: auto;
  fill: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.contact-inner { display: grid; justify-items: start; }
.contact-title {
  margin-top: 2rem;
  max-width: 14ch;
  font-size: clamp(2.9rem, 8.4vw, 7.5rem);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.contact-lede {
  max-width: 32rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 500;
  color: rgba(23, 23, 23, 0.82);
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: clamp(1.5rem, 4.6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 100%;
}
.contact-email:focus-visible { outline-offset: 8px; }
.ce-text {
  overflow-wrap: anywhere;
  background: linear-gradient(var(--charcoal), var(--charcoal)) left bottom / 100% 3px no-repeat;
  padding-bottom: 0.12em;
  transition: background-size 0.45s var(--ease);
}
.contact-email:hover .ce-text { background-size: 0% 3px; background-position: right bottom; }
.ce-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(48px, 6vw, 76px);
  height: clamp(48px, 6vw, 76px);
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--orange);
  transition: transform 0.45s var(--ease), background-color 0.3s;
}
.ce-arrow svg { width: 46%; height: 46%; }
.contact-email:hover .ce-arrow { transform: rotate(45deg) scale(1.06); }

/* Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--charcoal);
  color: var(--offwhite);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: 0.9375rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.5rem 3rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.85rem; }
.footer-name { font-weight: 700; letter-spacing: -0.02em; }
.footer-tag, .footer-copy { color: #A3A3A3; }
.footer-tag { font-size: 0.875rem; }
.footer-email {
  font-weight: 600;
  background: linear-gradient(var(--orange), var(--orange)) left bottom / 0% 1.5px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.35s var(--ease), color 0.2s;
}
.footer-email:hover { color: var(--orange); background-size: 100% 1.5px; }
.site-footer :focus-visible { outline-color: var(--orange); }

/* Motion ----------------------------------------------------------------- */
.load-in {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 1s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 110ms + 80ms);
}
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes drift { 0%, 100% { transform: rotate(0) translate(0, 0); } 50% { transform: rotate(-4deg) translate(6px, -6px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(243, 128, 32, 0.18); } 50% { box-shadow: 0 0 0 7px rgba(243, 128, 32, 0.06); } }

@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;
    transition-delay: 0ms !important;
  }
  .load-in { animation-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none !important; }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
  .hero-visual { max-width: 380px; margin-top: 2rem; }
  .about-grid .section-title,
  .about-body { grid-column: 1 / -1; }
  .about-body { max-width: 40rem; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 0; }
  .card-icon { margin-bottom: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-copy { grid-column: 1 / -1; }
}

@media (min-width: 640px) and (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards .card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .site-nav ul { gap: 1.1rem; }
  .site-nav a { font-size: 0.875rem; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "copy" "visual";
  }
  .hero-visual { justify-self: center; max-width: 340px; margin-top: 3.5rem; }
  .hero-title .line { white-space: normal; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .brand { font-size: 1.0625rem; }
  .site-nav ul { gap: 0.9rem; }
}

/* 404 -------------------------------------------------------------------- */
.not-found {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.75rem;
}
.not-found .brand-mark { width: 56px; height: 56px; }
