/* =================================================================
   Albert Dunglison, portfolio
   Shared stylesheet
   Palette: near-black ink, warm bone, single amber accent.
   Type: Bricolage Grotesque (display) / Hanken Grotesk (body) /
         Space Mono (utility labels).
   ================================================================= */

/* ----- Tokens ----- */
:root {
  --ink:          #0E0E10;
  --ink-2:        #17171B;
  --bone:         #ECE8E0;
  --bone-dim:     #9C9A90;
  --amber:        #F4A934;
  --amber-bright: #FFCB6B;
  --line:         rgba(236, 232, 224, 0.12);
  --line-strong:  rgba(236, 232, 224, 0.22);
  --maroon:       #6E2630; /* tactics-board motif only, never text */

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body:    "Hanken Grotesk", system-ui, sans-serif;
  --f-mono:    "DM Mono", ui-monospace, monospace;

  --maxw: 1200px;
  --pad:  clamp(1.25rem, 5vw, 4rem);
  --r:    5px;
  --nav-h-top: 5.75rem;  /* top of page, enlarged */
  --nav-h:     4.25rem;  /* after scroll, reduced */
  --logo-top:  3.5rem;   /* logo at top */
  --logo:      2.7rem;   /* logo after scroll */

  /* type scale */
  --t-hero:    clamp(3.4rem, 13vw, 9.5rem);
  --t-title:   clamp(2.6rem, 8vw, 6rem);
  --t-h2:      clamp(1.6rem, 4vw, 2.9rem);
  --t-stat:    clamp(3.2rem, 11vw, 7.5rem);
  --t-lead:    clamp(1.12rem, 1.7vw, 1.4rem);
  --t-body:    1.0625rem;
  --t-label:   0.74rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--bone);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background, soft amber and maroon wash behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(62% 42% at 82% -8%, rgba(244, 169, 52, 0.07), transparent 70%),
    radial-gradient(52% 38% at -5% 104%, rgba(110, 38, 48, 0.12), transparent 72%);
}

/* Home page leads with a larger logo and a taller top bar */
body.is-home {
  --nav-h-top: 7rem;
  --logo-top: 5rem;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.02em;
}

/* ----- Focus visibility ----- */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ----- Reusable layout ----- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.divide { border-top: 1px solid var(--line); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--amber);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-family: var(--f-mono);
  font-size: 0.8rem;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

/* ----- Utility label (Space Mono caps) ----- */
.label {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--bone-dim);
}
.label--amber { color: var(--amber); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--amber);
  display: inline-block;
  margin-bottom: 1.5rem;
}

/* ===============================================================
   Tactics-board motif, faint maroon X / O / arrows behind bands
   =============================================================== */
.motif { position: relative; isolation: isolate; }
.motif::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%236E2630' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M22 24 L52 54 M52 24 L22 54'/%3E%3Ccircle cx='150' cy='44' r='17'/%3E%3Cpath d='M28 132 Q78 96 128 132'/%3E%3Cpath d='M128 132 l-15 -2 M128 132 l-3 -14'/%3E%3Cpath d='M140 168 L170 138 M170 168 L140 138'/%3E%3Ccircle cx='58' cy='160' r='14'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* ===============================================================
   Navigation
   =============================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(14, 14, 16, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.32s var(--ease), border-color 0.32s var(--ease);
}
.nav.is-scrolled {
  background: rgba(14, 14, 16, 0.9);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  height: var(--nav-h-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.32s var(--ease);
}
.nav.is-scrolled .nav__inner { height: var(--nav-h); }
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img {
  width: var(--logo-top);
  height: var(--logo-top);
  transition: width 0.32s var(--ease), height 0.32s var(--ease);
}
.nav.is-scrolled .nav__logo img { width: var(--logo); height: var(--logo); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.2rem);
}
.nav__links a {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--bone-dim);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  height: 2px;
  width: 100%;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__links a:hover,
.nav__links a:focus-visible { color: var(--bone); }
.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--bone); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin-inline: auto;
  background: var(--bone);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* page offset for fixed nav, clears the enlarged top bar */
.page { padding-top: var(--nav-h-top); }

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h-top) 0 0 0;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    background: var(--ink);
    border-top: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0s 0.28s;
  }
  .nav.is-open .nav__links {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  }
  .nav__links a {
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    padding: 0.85rem 0;
  }
  .nav__links a::after { display: none; }
  .nav__links a[aria-current="page"] { color: var(--amber); }
}

/* ===============================================================
   Buttons
   =============================================================== */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--solid { background: var(--amber); color: var(--ink); font-weight: 500; }
.btn--solid:hover,
.btn--solid:focus-visible { background: var(--amber-bright); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-strong); color: var(--bone); }
.btn--ghost:hover,
.btn--ghost:focus-visible { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

/* ===============================================================
   Collaborator credit row (signature)
   =============================================================== */
.collab {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 0.9rem;
  font-family: var(--f-mono);
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.collab__lead { color: var(--bone-dim); white-space: nowrap; }
.collab__handles {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
  list-style: none;
  padding: 0;
}
.collab__handles li {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--bone);
}
.collab__handles li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}

/* ===============================================================
   Home, hero
   =============================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 7rem);
}
.hero__title {
  font-size: var(--t-hero);
  margin: 0.2rem 0 1.6rem;
}
.hero__lead {
  font-size: var(--t-lead);
  color: #cfccc3;
  max-width: 34ch;
  margin-bottom: 2.2rem;
}
.hero__lead strong { color: var(--bone); font-weight: 600; }
.hero__media { display: flex; flex-direction: column; gap: 1rem; }
.figure {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink-2);
}
.figure img { width: 100%; }
.caption {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  line-height: 1.6;
  color: var(--bone-dim);
  letter-spacing: 0.04em;
  text-transform: none;
}

/* selected work signpost */
.signpost { border-top: 1px solid var(--line); }
.signpost__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.signpost__head h2 { font-size: var(--t-h2); }
.signpost__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.signlink {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.6rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  min-height: 11rem;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}
.signlink__index {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  color: var(--amber);
  letter-spacing: 0.14em;
}
.signlink__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-top: auto;
}
.signlink__go {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bone-dim);
  transition: color 0.22s var(--ease);
}
.signlink:hover,
.signlink:focus-visible { transform: translateY(-4px); border-color: var(--amber); }
.signlink:hover .signlink__go,
.signlink:focus-visible .signlink__go { color: var(--amber); }

/* ===============================================================
   Page headers (Work, About, Contact, Case study)
   =============================================================== */
.phead { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.phead__title { font-size: var(--t-title); }
.phead__intro {
  font-size: var(--t-lead);
  color: #cfccc3;
  max-width: 52ch;
  margin-top: 1.5rem;
}
.inline-link {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
.inline-link:hover,
.inline-link:focus-visible { color: var(--amber-bright); }

/* ===============================================================
   Work, editorial rows
   =============================================================== */
.workset { padding-top: clamp(2.5rem, 5vw, 4rem); }
.workset__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.workset__label h2 { font-size: var(--t-h2); }
.workset__label .label { white-space: nowrap; }
.workset__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.piece { display: block; }
.piece__frame {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink-2);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.piece__frame img { width: 100%; }
.piece:hover .piece__frame,
.piece:focus-within .piece__frame { transform: translateY(-4px); border-color: var(--line-strong); }
.piece__cap {
  margin-top: 1rem;
  color: var(--bone-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 60ch;
}
.piece__cap b {
  color: var(--bone);
  font-weight: 600;
}

/* editorial row patterns */
.row { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); margin-bottom: clamp(2.5rem, 6vw, 5rem); }
/* one large left, two stacked right */
.row--feature { grid-template-columns: 1.55fr 1fr; align-items: start; }
.row--feature .row__stack { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); }
/* offset two-up */
.row--two { grid-template-columns: 1fr 1fr; align-items: start; }
.row--two > :nth-child(2) { margin-top: clamp(2rem, 6vw, 5rem); }
/* single wide, breaks container */
.row--wide { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.bleed-wide {
  width: min(100% + (var(--pad) * 1.4), 100vw);
  margin-inline: calc(var(--pad) * -0.7);
}

/* ===============================================================
   Case study
   =============================================================== */
.cs-summary { font-size: var(--t-lead); color: #cfccc3; max-width: 48ch; margin-top: 1.4rem; }

.statband {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-block: 1px solid var(--line);
}
.stat__figure {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--t-stat);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--amber);
}
.stat__label { margin-top: 0.9rem; max-width: 18ch; line-height: 1.5; }

.chapter {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
.chapter__num {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--amber);
  letter-spacing: 0.05em;
  padding-top: 0.4rem;
}
.chapter__title { font-size: var(--t-h2); margin-bottom: 1.4rem; }
.chapter__body p { max-width: 64ch; color: #cdcabf; }
.chapter__body p + p { margin-top: 1.1rem; }
.chapter__media { margin-top: 2.2rem; }

/* three-system comparison (signature) */
.systems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.system figure { margin: 0; }
.system__frame {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink-2);
}
.system__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.system figcaption {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.system figcaption::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: var(--amber);
  flex: none;
}

.single-media { margin-top: 1rem; }
.single-media .figure img { width: 100%; }

.cs-close {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.5rem;
}

/* ===============================================================
   Carousel
   =============================================================== */
.carousel { margin-top: 2.2rem; }
.carousel__viewport {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink-2);
  touch-action: pan-y;
}
.carousel__track {
  display: flex;
  transition: transform 0.45s var(--ease);
}
.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
}
.carousel__slide img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #0b0b0d;
}
.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
}
.carousel__arrows { display: flex; gap: 0.6rem; }
.carousel__arrow {
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--amber);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.carousel__arrow svg { width: 1.1rem; height: 1.1rem; }
.carousel__arrow:hover,
.carousel__arrow:focus-visible { border-color: var(--amber); background: rgba(244, 169, 52, 0.1); }
.carousel__status {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  color: var(--bone-dim);
  letter-spacing: 0.1em;
}
.carousel__status b { color: var(--amber); font-weight: 400; }
.carousel__dots { display: flex; gap: 0.5rem; }
.carousel__dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.carousel__dot[aria-current="true"] {
  background: var(--amber);
  border-color: var(--amber);
  transform: scale(1.15);
}
.carousel__caption {
  margin-top: 1rem;
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  color: var(--bone-dim);
  text-transform: uppercase;
}

/* ===============================================================
   About
   =============================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-body p { max-width: 60ch; color: #cdcabf; }
.about-body p + p { margin-top: 1.2rem; }
.photo-slot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink-2);
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  padding: 2rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.photo-slot--filled { padding: 0; overflow: hidden; }
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
}
.photo-slot span {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bone-dim);
  text-align: center;
  line-height: 1.7;
}

/* ===============================================================
   Contact
   =============================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.ccard {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.8rem;
  min-height: 12rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}
.ccard__value {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  margin-top: auto;
}
.ccard__go {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bone-dim);
  transition: color 0.22s var(--ease);
}
.ccard__value--email {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  overflow-wrap: anywhere;
}
.ccard:hover,
.ccard:focus-within { transform: translateY(-4px); border-color: var(--amber); }
.ccard:hover .ccard__go,
.ccard:focus-within .ccard__go { color: var(--amber); }

/* ===============================================================
   Footer
   =============================================================== */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.foot__logo img { width: 3.25rem; height: 3.25rem; }
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.foot__links a {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bone-dim);
  transition: color 0.2s var(--ease);
}
.foot__links a:hover,
.foot__links a:focus-visible { color: var(--amber); }
.foot__copy {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  color: var(--bone-dim);
}

/* ===============================================================
   Scroll reveal
   =============================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===============================================================
   Responsive
   =============================================================== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { order: 2; }
  .signpost__grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .photo-slot { position: static; max-width: 22rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .chapter { grid-template-columns: 1fr; gap: 0.5rem; }
  .chapter__num { padding-top: 0; }
}

@media (max-width: 680px) {
  .row--feature,
  .row--two { grid-template-columns: 1fr; }
  .row--two > :nth-child(2) { margin-top: 0; }
  .systems { grid-template-columns: 1fr; gap: 1.5rem; }
  .statband { grid-template-columns: 1fr; gap: 2rem; text-align: left; }
  .bleed-wide { width: 100%; margin-inline: 0; }
}

/* ===============================================================
   Reduced motion
   =============================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .carousel__track { transition: none; }
}
