/* =========================================
   ARTNEST TREASURES — BASE
   ========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--color-background-primary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: var(--z-index-overlay);
  padding: var(--space-3) var(--space-4);
  background: var(--color-neutral-charcoal);
  color: var(--color-text-inverse);
  font-size: var(--font-size-body-small);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}

/* First screen: the fixed header sits over its top padding
   (--header-h is measured by js/header.js), the hero fills the rest */
.first-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h, 96px);
}

.first-screen {
  overflow: clip;
}

.first-screen > .hero {
  position: relative;
  z-index: 1;
  flex: 1;
}

/* Faint radiating dot burst filling the whole first screen */
.hero-burst {
  /* centred on the hero mandala so the template spreads out from the
     artwork; a square larger than the screen, clipped to the hero */
  position: absolute;
  /* --bx / --by: the mandala's centre, measured by js/mandala.js */
  left: calc(var(--bx, 75%) - 100vmax);
  top: calc(var(--by, 50%) - 100vmax);
  width: 200vmax;
  height: 200vmax;
  overflow: visible;
  pointer-events: none;
  /* strongest around the mandala, dissolving toward the copy and edges */
  /* soft just outside the plate's edge so its detail stays the focus,
     crisp in a ring around it, dissolving toward the copy and edges */
  -webkit-mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 0.3) 20%, #000 30%, rgba(0, 0, 0, 0.5) 46%, transparent 72%);
  mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 0.3) 20%, #000 30%, rgba(0, 0, 0, 0.5) 46%, transparent 72%);
}

.hero-burst :is(line, circle) {
  fill: none;
  stroke: #C9B597; /* warm sand, a shade deeper so it reads on ivory */
  stroke-width: 0.8; /* drawing units (≈1px on screen) */
  opacity: 0.24;
}

.hero-burst .bl-ring--dash {
  stroke: var(--color-wireframe-soft);
}

/* Ivory veil over the text column: the template is clear around the
   mandala and stays just faintly visible behind the copy */
.first-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(var(--paper-rgb, 248, 245, 236), 0.7) 0%,
    rgba(var(--paper-rgb, 248, 245, 236), 0.6) 40%,
    rgba(var(--paper-rgb, 248, 245, 236), 0) 58%);
}

@media (max-width: 768px) {
  .first-screen::after {
    background: linear-gradient(180deg,
      rgba(var(--paper-rgb, 248, 245, 236), 0.72) 0%,
      rgba(var(--paper-rgb, 248, 245, 236), 0.66) 48%,
      rgba(var(--paper-rgb, 248, 245, 236), 0) 64%);
  }
}

/* Sketches outward once the hero mandala is complete */
.hero-burst.is-sketching .bl-spoke {
  animation: bl-draw 1600ms cubic-bezier(0.45, 0, 0.25, 1) forwards;
  animation-delay: calc(var(--i) * 18ms);
}

.hero-burst.is-sketching .bl-ring {
  animation: bl-draw 1800ms cubic-bezier(0.6, 0.05, 0.3, 1) forwards;
  animation-delay: calc(500ms + var(--i) * 70ms);
}

@keyframes bl-draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-burst.is-sketching :is(line, circle) {
    animation: none;
    stroke-dashoffset: 0;
  }
}


/* =========================================
   NAVIGATION
   ========================================= */

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);

  max-width: var(--container-max-width);
  margin-inline: auto;
  padding: var(--space-4) var(--container-padding-desktop);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: var(--font-size-wordmark);
  font-weight: var(--font-weight-display);
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-forest-green);
}

.brand__descriptor {
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: var(--font-weight-medium);
  line-height: 1;
  letter-spacing: var(--letter-spacing-descriptor);
  text-transform: uppercase;
  color: var(--color-neutral-charcoal);
}

/* Logo mark — a dotting tool laying down a line of dots */
.brand__mark {
  display: block;
  width: clamp(160px, 13vw, 198px);
  height: auto;
  aspect-ratio: 1880 / 165;
  overflow: visible;
  shape-rendering: geometricPrecision;
  fill: var(--color-brand-burnt-orange);
}

.brand__dot--orange {
  fill: var(--color-brand-burnt-orange);
}

.brand__dot--green {
  fill: var(--color-brand-forest-green);
}

.brand__tool-ring {
  fill: none;
  stroke: var(--color-brand-burnt-orange);
  stroke-width: 20; /* ≈1.8px at bar size: a clean, even ring */
}

/* Intro: the orange and green dots and the tool are present;
   the tool then travels right, tapping down orange, green,
   orange dots as it goes. */
.brand__dot--draw {
  transform-box: fill-box;
  transform-origin: center;
  animation: mark-dot 520ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.brand__dot--3 { animation-delay: 1164ms; }
.brand__dot--4 { animation-delay: 1932ms; }
.brand__dot--5 { animation-delay: 2604ms; }

.brand__tool {
  animation: mark-tool 2400ms ease-in-out 300ms both;
}

@keyframes mark-dot {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Offsets in SVG user units: the tool tip lands beside each new dot */
@keyframes mark-tool {
  0%   { transform: translateX(-376px); }
  10%  { transform: translateX(-376px); }
  30%  { transform: translateX(-207px); }
  36%  { transform: translateX(-221px); }
  42%  { transform: translateX(-207px); }
  62%  { transform: translateX(-104px); }
  68%  { transform: translateX(-118px); }
  74%  { transform: translateX(-104px); }
  92%  { transform: translateX(0); }
  96%  { transform: translateX(-12px); }
  100% { transform: translateX(0); }
}

.brand:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 4px;
}


/* =========================================
   HERO
   ========================================= */

.hero {
  display: flex;
  align-items: center;
  width: 100%;
  background-color: transparent; /* the page is ivory; lets the dot burst show */
  color: var(--color-text-primary);
  padding-block: var(--space-5) calc(var(--cue-size) + var(--cue-bottom) + var(--space-5));
}

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

  display: grid;
  grid-template-columns:
    minmax(0, 1.04fr)
    minmax(0, 0.96fr);

  gap: var(--hero-column-gap);
  align-items: center;
}

.hero__content {
  max-width: 620px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-5);

  font-family: var(--font-body);
  font-size: var(--font-size-eyebrow);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  line-height: var(--line-height-label);
  color: var(--color-brand-forest-green);
  text-transform: uppercase;
}

/* Short hairline lead-in, as on an editorial section opener */
.hero__eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background-color: var(--color-brand-burnt-orange);
}

.hero__title {
  margin: 0 0 var(--space-6);

  font-family: var(--font-display);
  /* Scales with width and height, so short screens keep it in view */
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-display);
  line-height: 1.1;
  text-wrap: balance;
  letter-spacing: var(--letter-spacing-display);
  color: var(--color-brand-forest-green);
}

.hero__title-accent {
  color: var(--color-brand-burnt-orange);
  font-style: italic;
  font-weight: var(--font-weight-display);
}

/* "Creativity" reveals letter by letter, left to right.
   Letters stay inline (kerning intact) and rise via relative
   offset, which never affects layout. Held while the intro
   loader is showing, so it plays just after the page appears. */
/* ---------- Headline word animation (js/hero-words.js) ----------
   All five words share one grid cell sized to the longest, so the
   headline never shifts. Letters rise in softly; the outgoing word
   drifts up and fades. */
.hero-words {
  display: inline-grid;
  vertical-align: baseline;
}

.hero-word {
  grid-area: 1 / 1;
  white-space: nowrap;
}

.hw-ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.22em);
  filter: blur(6px);
  transition:
    opacity 700ms ease,
    filter 800ms ease,
    transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i) * 38ms);
}

.hero-word.is-active .hw-ch {
  opacity: 1;
  transform: none;
  filter: none;
}

.hero-word.is-leaving .hw-ch {
  opacity: 0;
  transform: translateY(-0.14em);
  filter: blur(6px);
  transition-duration: 500ms, 500ms, 700ms;
  transition-delay: calc(var(--i) * 25ms);
}

/* Opening sequence (held until the loader has gone): the eyebrow, then
   "Where", the accent word letter by letter, "Finds Its Home.", the
   paragraphs and the buttons each rise softly out of a light blur,
   one after another. */
.hero__where,
.hero__home,
.hero__content.is-ready :is(.hero__eyebrow, .hero__description, .hero__actions) {
  opacity: 0;
  translate: 0 16px;
  filter: blur(8px);
  transition:
    opacity 900ms ease,
    filter 1000ms ease,
    translate 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__where { display: inline-block; }
.hero__home { display: inline-block; }

.hero__title.is-in :is(.hero__where, .hero__home),
.hero__content.is-in :is(.hero__eyebrow, .hero__description, .hero__actions) {
  opacity: 1;
  translate: 0 0;
  filter: none;
}

.hero__title.is-in .hero__where { transition-delay: 120ms; }
.hero__title.is-in .hero__home { transition-delay: 640ms; }
.hero__content.is-in .hero__description { transition-delay: 820ms; }
.hero__content.is-in .hero__actions { transition-delay: 980ms; }

/* Before JS runs, show the headline as plain text */
.hero__title:not(.is-ready) :is(.hero__where, .hero__home) { opacity: 1; translate: none; filter: none; }
.hero__title:not(.is-ready) .hero-word:first-child .hw-ch { opacity: 1; transform: none; }

.hero__description {
  max-width: 600px;
  margin: 0 0 2.5rem;

  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-text-primary);
}

.hero__description p {
  margin: 0;
}

.hero__description p + p {
  margin-top: var(--space-4);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--button-gap);
}

/* Illustration area — no frame: a faint mandala layout template
   sits behind the column, and the dot mandala draws itself in it. */
.hero__illustration {
  position: relative;
  display: grid;
  place-items: center;

  /* Sized to fit the screen height below the header, too */
  width: min(100%, 720px, calc(100svh - var(--header-h, 96px) - 200px));
  min-width: 0;
  justify-self: center;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;

  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  perspective: 1400px;
}

.hero__illustration.is-revealed {
  cursor: default;
}

.hero__illustration:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 6px;
}

/* =========================================
   MANDALA
   ========================================= */

.mandala {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* --- Plate layer: tilts toward the pointer once drawn ---
   --tilt-x / --tilt-y (-1 … 1) are set by js/mandala.js. */
.mandala--art {
  transform:
    rotateX(calc(var(--tilt-y, 0) * -6deg))
    rotateY(calc(var(--tilt-x, 0) * 6deg))
    translate3d(calc(var(--tilt-x, 0) * 6px), calc(var(--tilt-y, 0) * 6px), 0)
    scale(var(--lift, 1));
  will-change: transform;
}

.is-tilting {
  --lift: 1.035;
}

.is-tilting:not(.is-switching) .hero-view {
  transition: transform 180ms ease-out;
}

/* ---------- Plate → leaf → pumpkin, cycling automatically ----------
   The current piece gently shrinks away; the next one bounces in.
   Classes is-shown / is-before / is-after / is-entering are set by
   js/mandala.js. */

.hero-view {
  /* follows the cursor: tilts toward it, turns gently, lifts slightly */
  transform:
    rotateX(calc(var(--tilt-y, 0) * -11deg))
    rotateY(calc(var(--tilt-x, 0) * 11deg))
    rotateZ(calc(var(--tilt-x, 0) * 7deg))
    scale(var(--lift, 1));
  will-change: transform;
}

.mandala--leaf,
.mandala--pumpkin {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* hiding: shrinks slightly and fades */
.hero-view.is-before,
.hero-view.is-after {
  opacity: 0;
  transform: scale(0.82);
  transition:
    transform 450ms cubic-bezier(0.5, 0, 0.75, 0.3),
    opacity 380ms ease;
}

.hero-view.is-shown {
  opacity: 1;
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* the incoming piece bounces in once the outgoing one has gone */
.hero-view.is-shown.is-entering {
  animation: view-fade 900ms cubic-bezier(0.22, 1, 0.36, 1) 300ms both;
}

@keyframes view-fade {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes view-bounce {
  0%   { opacity: 0; transform: scale(0.7); }
  55%  { opacity: 1; transform: scale(1.06); }
  78%  { transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-view.is-shown.is-entering {
    animation: none;
  }
}

/* the layout template steps back for the leaf and pumpkin */
.mandala--template {
  transition: opacity 700ms ease;
}

.show-alt .mandala--template {
  opacity: 0;
}

.hero__illustration.is-complete {
  cursor: default;
}

/* leaf & pumpkin draw themselves each time they are shown */
.hero-view .lf-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.hero-view .lf-fade {
  opacity: 0;
}

.hero-view .lf-dot {
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
}

.hero-view.is-shown .lf-line {
  animation: lf-draw var(--t, 900ms) cubic-bezier(0.45, 0, 0.25, 1) var(--d, 0ms) forwards;
}

.hero-view.is-shown .lf-fade {
  animation: lf-fade 700ms ease var(--d, 0ms) forwards;
}

.hero-view.is-shown .lf-dot {
  animation: lf-pop 380ms cubic-bezier(0.2, 0.9, 0.3, 1.2) var(--d, 0ms) forwards;
}

@keyframes lf-draw { to { stroke-dashoffset: 0; } }
@keyframes lf-fade { to { opacity: 1; } }
@keyframes lf-pop { to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .hero-view.is-shown :is(.lf-line, .lf-fade, .lf-dot) {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
    transform: none;
  }
}


/* --- Background template: always there, at low opacity behind the
       column (no draw-in, so it never arrives late) --- */

.mandala__wire {
  opacity: 0.5;
}

.wire-line {
  fill: none;
  stroke: var(--color-wireframe);
  stroke-width: 1.6;
}

.wire-guide {
  fill: none;
  stroke: var(--color-wireframe-soft);
  stroke-width: 1.2;
  stroke-dasharray: 4 7;
}

.wire-spoke {
  stroke: var(--color-wireframe-soft);
  stroke-width: 1.2;
}

.wire-node {
  fill: var(--color-neutral-soft-sage);
}

@keyframes wire-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes wire-fade {
  to { opacity: 1; }
}

/* --- Dot mandala plate: the plate fades in here; js/mandala.js
       then sketches the guide lines and dots in order. On leave the
       whole drawing fades out before the script clears it. --- */

.mandala__art {
  opacity: 0;
  transition: opacity 400ms ease;
}

/* Charcoal plate: grows smoothly from the centre to cover the template */
.art-base {
  opacity: 0;
  transform-box: view-box;
  transform-origin: 0 0;
  transform: scale(0.15);
  transition:
    transform 0s 450ms,
    opacity 0s 450ms;
}

/* White template lines on the plate — sketched by js/mandala.js */
.art-guide {
  fill: none;
  stroke-width: 1.6;
  stroke-opacity: 0.28;
  opacity: 0;
}

.art-spoke {
  stroke-width: 1.2;
  stroke-opacity: 0.14;
  opacity: 0;
}

/* Drawing */
.is-revealed .mandala__art {
  opacity: 1;
  transition-duration: 150ms;
}

.is-revealed .art-base {
  opacity: 1;
  transform: scale(1);
  transition:
    transform 750ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 350ms ease;
}



/* =========================================
   CTA BUTTONS — shared hover behaviour
   On hover / keyboard focus: a fine outline strokes itself around
   the pill, the label decodes and slides aside, and a circled arrow
   draws in at the end. Ring + arrow SVGs are added by js/buttons.js.
   ========================================= */

.button-primary,
.button-secondary {
  position: relative;
  isolation: isolate;
}

/* Outline ring, drawn as a stroke */
.btn-ring {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}

.btn-ring rect {
  fill: none;
  stroke: var(--ring-color);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 320ms ease-in;
}

:is(.button-primary, .button-secondary):is(:hover, :focus-visible) .btn-ring rect {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 700ms cubic-bezier(0.65, 0, 0.35, 1);
}

/* Decoding label: each character keeps its resting width */
.decode {
  display: inline-flex;
  white-space: nowrap;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.decode__char {
  display: inline-block;
  text-align: center;
}

.decode__char.is-scrambled {
  opacity: 0.72;
}

:is(.button-primary, .button-secondary):is(:hover, :focus-visible) .decode {
  transform: translateX(-12px);
}

/* Circled arrow */
.btn-arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  overflow: visible;
  pointer-events: none;
}

.btn-arrow circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 220ms ease-in;
}

.btn-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: translateX(-5px);
  transition:
    opacity 160ms ease,
    transform 220ms ease;
}

:is(.button-primary, .button-secondary):is(:hover, :focus-visible) .btn-arrow circle {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 520ms cubic-bezier(0.65, 0, 0.35, 1) 80ms;
}

:is(.button-primary, .button-secondary):is(:hover, :focus-visible) .btn-arrow path {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 240ms ease 260ms,
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1) 260ms;
}


/* =========================================
   PRIMARY CTA
   ========================================= */

.button-primary {
  --ring-color: var(--color-brand-burnt-orange);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: var(--button-height);
  padding: var(--button-padding-y) var(--button-padding-x);

  font-family: var(--button-font-family);
  font-size: var(--button-font-size);
  font-weight: var(--button-font-weight);
  line-height: 1;
  letter-spacing: 0.01em;

  color: var(--color-button-primary-text);
  background-color: var(--color-button-primary);

  border: var(--button-border-width) solid var(--color-button-primary);
  border-radius: var(--button-border-radius);
  text-decoration: none;
  cursor: pointer;

  transition:
    background-color var(--button-transition),
    border-color var(--button-transition);
}

.button-primary:hover {
  background-color: var(--color-button-primary-hover);
  border-color: var(--color-button-primary-hover);
}

.button-primary:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 3px;
}


/* =========================================
   SECONDARY CTA
   ========================================= */

.button-secondary {
  --ring-color: var(--color-brand-forest-green);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: var(--button-height);
  padding: var(--button-padding-y) var(--button-padding-x);

  font-family: var(--button-font-family);
  font-size: var(--button-font-size);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  letter-spacing: 0.01em;

  color: var(--color-button-secondary-text);
  background-color: var(--color-button-secondary);

  border: var(--button-border-width) solid var(--color-button-secondary-border);
  border-radius: var(--button-border-radius);
  text-decoration: none;
  cursor: pointer;

  transition:
    color var(--button-transition),
    border-color var(--button-transition),
    background-color var(--button-transition);
}

.button-secondary:hover {
  color: var(--color-brand-forest-green);
  border-color: var(--color-brand-forest-green);
  background-color: rgba(47, 93, 58, 0.06);
}

.button-secondary:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 3px;
}


/* =========================================
   RESPONSIVE BEHAVIOR
   ========================================= */

/* Tablet */
@media (max-width: 1024px) {
  .site-header__inner,
  .hero__container {
    padding-inline: var(--container-padding-tablet);
  }

  .hero__container {
    gap: var(--space-6);
  }

  .hero__title {
    font-size: clamp(3rem, 7vw, 4rem);
  }

  .hero__description {
    font-size: var(--font-size-body);
  }

}

/* Mobile: stack, illustration canvas beneath the copy */
@media (max-width: 768px) {
  .first-screen {
    min-height: 0;
  }

  .site-header__inner {
    gap: var(--space-4);
    padding: var(--space-4) var(--container-padding-mobile);
  }

  .brand {
    gap: 14px;
  }

  .brand__mark {
    width: 136px;
  }

  .brand__name {
    font-size: var(--font-size-body);
  }

  .hero {
    padding-block: var(--space-7) var(--space-8);
  }

  .hero__container {
    grid-template-columns: 1fr;
    padding-inline: var(--container-padding-mobile);
    gap: var(--space-7);
  }

  .hero__title {
    font-size: clamp(2.75rem, 12vw, 3.75rem);
    line-height: 1.1;
  }

  .hero__description {
    margin-bottom: var(--space-6);
  }

  .hero__illustration {
    width: 100%;
    margin-block: var(--space-7) var(--space-8);
  }
}

/* Tablet: when the two CTAs stack in the narrow column, give them
   equal full width so they read as a pair */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero__actions > a {
    flex: 1 1 100%;
  }
}

/* Short desktop screens (e.g. 1280×720 laptops): tighten the copy
   so the hero and the scroll cue fit within one screen */
@media (min-width: 769px) and (max-height: 800px) {
  .hero {
    padding-block: var(--space-3) calc(var(--cue-size) + var(--cue-bottom) + var(--space-4));
  }

  .hero__eyebrow {
    margin-bottom: var(--space-4);
  }

  .hero__title {
    margin-bottom: var(--space-5);
  }

  .hero__description {
    font-size: var(--font-size-body);
    margin-bottom: var(--space-6);
  }

  .hero__description p + p {
    margin-top: var(--space-4);
  }
}

@media (max-width: 400px) {
  .hero__actions > a {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button-primary,
  .button-secondary,
  .mandala__art,
  .is-revealed .mandala__art {
    transition: opacity 300ms ease;
  }

  .art-base,
  .is-revealed .art-base {
    transition: none;
  }

  .btn-ring rect,
  .btn-arrow circle,
  .btn-arrow path,
  .decode,
  :is(.button-primary, .button-secondary) :is(.btn-ring rect, .btn-arrow circle, .btn-arrow path, .decode) {
    transition: none !important;
  }

  .mandala--art {
    transform: none !important;
    transition: opacity 300ms ease;
  }

  .hw-ch,
  .hero__where,
  .hero__home,
  .brand__dot--draw,
  .brand__tool {
    animation: none !important;
  }

  /* reduced motion: content simply fades in, no rise or blur */
  .hw-ch,
  .hero__where,
  .hero__home,
  .hero__content :is(.hero__eyebrow, .hero__description, .hero__actions) {
    translate: none !important;
    transform: none !important;
    filter: none !important;
    transition: opacity 400ms ease !important;
    transition-delay: 0ms !important;
  }

  .wire-line,
  .wire-guide,
  .wire-spoke,
  .wire-node {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}
