/* Wendy's Swim School — warm editorial redesign
   Light, dependency-free visual system: HTML + CSS + inline SVG carry the
   design; script.js only adds navigation, reveals and the award inspector.
   The page is complete and readable without JavaScript. */

:root {
  /* colour */
  --paper: #f6fafb;         /* page background */
  --mist: #e7f2f4;          /* soft aquatic band */
  --pool-100: #d9ecef;
  --pool-200: #c0e1e6;
  --accent: #0c7a96;        /* primary action */
  --accent-deep: #095e74;
  --deep: #0b3648;          /* contact band */
  --deep-2: #082939;        /* footer */
  --ink: #16323e;
  --ink-soft: #4a6570;
  --gold: #d9a857;          /* award accent */
  --gold-text: #7d5615;     /* readable gold on light surfaces (AA on mist) */
  --line: rgba(22, 50, 62, 0.14);

  /* shape and depth */
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 26px;
  --shadow-s: 0 8px 22px -12px rgba(11, 54, 72, 0.22);
  --shadow-m: 0 22px 48px -24px rgba(11, 54, 72, 0.3);

  /* rhythm */
  --container: 68rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --measure: 38rem;

  --focus-ring: #095e74;
  --font-body: "Seravek", "Gill Sans", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-display: "Georgia", "Charter", "Iowan Old Style", serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 0.8rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
p { margin: 0 0 1rem; max-width: var(--measure); }

a { color: inherit; }

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

.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;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--deep);
  color: #fff;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

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

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.9rem;
}
.eyebrow-warm { color: var(--gold-text); }

.note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: rgba(12, 122, 150, 0.07);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 0.7rem 1rem;
  max-width: var(--measure);
  margin-bottom: 0;
}

figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  padding-top: 0.7rem;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(246, 250, 251, 0.9);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
@supports (backdrop-filter: blur(6px)) {
  .site-header { background: rgba(246, 250, 251, 0.78); backdrop-filter: blur(10px); }
}
.site-header.scrolled { box-shadow: 0 12px 30px -20px rgba(11, 54, 72, 0.4); }

.brand { margin-right: auto; display: inline-flex; }
.brand img {
  width: auto;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
}

#site-nav { display: flex; gap: clamp(0.8rem, 2.5vw, 1.7rem); }
#site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.15rem;
}
#site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
#site-nav a:hover::after,
#site-nav a:focus-visible::after { transform: scaleX(1); }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.menu-button span[aria-hidden] {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease;
}
.menu-button[aria-expanded="true"] span[aria-hidden]:first-of-type { transform: translateY(4px) rotate(45deg); }
.menu-button[aria-expanded="true"] span[aria-hidden]:last-of-type { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 47.99rem) {
  html.js .menu-button { display: flex; }
  /* The menu only collapses when JS can open it; without JS the links stay visible */
  html.js #site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(246, 250, 251, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-s);
  }
  html.js #site-nav.open { display: flex; }
  html.js #site-nav a { padding: 0.85rem 0.25rem; border-bottom: 1px solid rgba(22, 50, 62, 0.08); }
  html:not(.js) #site-nav { flex-wrap: wrap; gap: 0.2rem 1rem; }
}

/* ——— Buttons and text links ——— */

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  min-height: 44px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 12px 24px -14px rgba(12, 122, 150, 0.65);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.primary-action:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -14px rgba(12, 122, 150, 0.7);
}
.primary-action:active { transform: translateY(0); }
.primary-action .arrow { transition: transform 0.2s ease; }
.primary-action:hover .arrow { transform: translateX(3px); }

.secondary-contact { margin: 0; font-weight: 600; }
.secondary-contact a { text-decoration-thickness: 2px; text-underline-offset: 3px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--accent-deep);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.text-link:hover { color: var(--ink); }

/* ——— Wave dividers ——— */

.divider { line-height: 0; }
.divider svg { display: block; width: 100%; height: clamp(44px, 7vw, 84px); }
.divider-mist path { fill: var(--mist); }
.divider-paper path { fill: var(--paper); }
.divider-deep path { fill: var(--deep); }

/* ——— Hero ——— */

.hero {
  background:
    radial-gradient(56rem 30rem at 88% -12%, rgba(12, 122, 150, 0.09), transparent 62%),
    radial-gradient(38rem 24rem at -8% 96%, rgba(217, 168, 87, 0.08), transparent 60%),
    linear-gradient(180deg, #fdfefe, var(--paper));
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.75rem, 7vh, 4.5rem) clamp(1.5rem, 4vh, 2.5rem);
}
.hero-copy .lede {
  font-size: clamp(1.1rem, 1.9vw, 1.2rem);
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.hero-photo {
  position: relative;
  isolation: isolate; /* keeps the plate and rings above the section background */
  margin: 0;
  max-width: 25rem;
  justify-self: end;
}
.hero-photo::before {
  /* offset plate behind the photograph */
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  background: var(--pool-100);
  border-radius: var(--radius-l);
  z-index: -1;
}
.hero-rings {
  position: absolute;
  top: -3.5rem;
  right: -3.5rem;
  width: clamp(11rem, 16vw, 15rem);
  height: auto;
  z-index: -1;
}
.hero-rings circle { fill: none; stroke: var(--pool-200); stroke-width: 1.6; }
.hero-rings circle:last-child { stroke: rgba(217, 168, 87, 0.55); }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 5px solid #ffffff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-rings { animation: rings-drift 13s ease-in-out infinite alternate; }
  @keyframes rings-drift {
    from { transform: translateY(-6px); }
    to { transform: translateY(8px); }
  }
}

@media (max-width: 47.99rem) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-block: 2rem 1.5rem;
  }
  .hero-photo { justify-self: start; max-width: 21rem; }
  .hero-photo::before { inset: 1rem -0.9rem -0.9rem 1rem; }
  .hero-rings { top: -2.5rem; right: -1.5rem; width: 9rem; }
}

/* ——— Lessons ——— */

.lessons { background: var(--mist); }
.lessons .container { padding-block: clamp(2.75rem, 6.5vw, 4.5rem) clamp(2.25rem, 5vw, 3.5rem); }

.lessons-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  background: #ffffff;
  border: 1px solid rgba(22, 50, 62, 0.08);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  padding: clamp(1.75rem, 4.5vw, 3rem);
}
.lessons-copy p:nth-last-child(2) { margin-bottom: 1.4rem; }

.enquiry-prompts {
  background: var(--pool-100);
  border-radius: var(--radius-m);
  padding: 1.4rem 1.5rem 1.5rem;
  align-self: start;
}
.enquiry-prompts h3 { margin-bottom: 0.9rem; }
.enquiry-prompts ul {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.enquiry-prompts li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 600;
  line-height: 1.45;
}
.enquiry-prompts li svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  fill: var(--accent);
}
.enquiry-prompts .text-link { font-size: 0.95rem; }

@media (max-width: 47.99rem) {
  .lessons-panel { grid-template-columns: 1fr; }
}

/* ——— Progress ——— */

.progress .container { padding-block: clamp(3.25rem, 7.5vw, 5.5rem); }

.progress-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.award-photo {
  margin: 0;
  background: #ffffff;
  padding: 0.9rem 0.9rem 0.5rem;
  border-radius: var(--radius-m);
  border-bottom: 3px solid var(--gold);
  max-width: 20rem;
  justify-self: center;
  rotate: -1.2deg;
  box-shadow: var(--shadow-m);
}
.award-photo img {
  width: 100%;
  object-fit: contain; /* the full certificate must stay visible */
  border-radius: 8px;
}

/* Award pathway */

.award-path-wrap {
  margin-top: clamp(2.75rem, 6vw, 4rem);
  background: #ffffff;
  border: 1px solid rgba(22, 50, 62, 0.08);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  padding: clamp(1.5rem, 4vw, 2.4rem);
}
.path-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
  margin-bottom: 0.5rem;
}
.path-intro h3 { margin-bottom: 0; }
.path-heading { text-transform: none; letter-spacing: 0.06em; } /* keep "STAnley" capitalisation */
.path-time-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 24rem;
  margin: 0;
  border-left: 2px solid var(--pool-200);
  padding-left: 0.8rem;
}

.award-path {
  list-style: none;
  margin: 1.6rem 0;
  padding: 0;
  position: relative;
  display: flex;
}
.award-path::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--pool-200);
}
.award-path li { flex: 1; min-width: 0; position: relative; }

.path-point {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
  min-height: 44px;
  background: none;
  border: 0;
  padding: 0.3rem 0.4rem 0.5rem 0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-s);
  transition: color 0.18s ease;
}
.path-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: #ffffff;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.path-point:hover { color: var(--accent-deep); }
.path-point:hover .path-marker { background: var(--pool-200); transform: scale(1.18); }
.path-point.is-active { color: var(--ink); font-weight: 700; }
.path-point.is-active .path-marker {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 5px rgba(217, 168, 87, 0.28);
}
.path-next .path-point { color: var(--ink-soft); }
.path-next .path-marker { border-style: dashed; }
.path-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.award-inspector {
  background: var(--mist);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  padding: 1.1rem 1.4rem 1.2rem;
  max-width: 46rem;
  transition: opacity 0.18s ease, translate 0.18s ease;
}
.award-inspector.swap { opacity: 0; translate: 0 8px; }
.inspector-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 0.15rem;
}
#award-title { margin: 0 0 0.45rem; }
#award-summary { margin: 0; color: var(--ink-soft); }

.path-source { font-size: 0.8rem; color: var(--ink-soft); margin: 1.1rem 0 0; }
.path-source a { text-underline-offset: 3px; }

@media (max-width: 47.99rem) {
  .progress-grid { grid-template-columns: 1fr; }
  .award-photo { max-width: 17rem; rotate: none; }

  /* the pathway becomes wrapping chips */
  .award-path { flex-wrap: wrap; gap: 0.5rem; }
  .award-path::before { display: none; }
  .award-path li { flex: 0 0 auto; }
  .path-point {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
  }
  .path-point .path-marker { width: 12px; height: 12px; }
  .path-point.is-active { background: rgba(217, 168, 87, 0.14); border-color: var(--gold); }
  .path-tag { display: none; }
}

/* ——— School life ——— */

.school-life {
  background: var(--mist);
  border-radius: clamp(24px, 4vw, 40px);
  margin-inline: clamp(0.6rem, 2vw, 1.5rem);
}
.school-life .container { padding-block: clamp(3rem, 7vw, 5rem); }
.school-life .section-heading { max-width: var(--measure); }

.memory-wall {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.4rem, 3.5vw, 2.4rem);
  align-items: center;
  margin: 2.4rem 0;
  max-width: 54rem;
}
.memory-photo {
  margin: 0;
  background: #ffffff;
  padding: 0.7rem 0.7rem 0.35rem;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
}
.memory-photo.party-photo { rotate: -1deg; }
.memory-photo.halloween-photo { rotate: 1.3deg; margin-top: 2.6rem; }

/* Party photo: show only the building, decorations and school sign.
   The source has a black screenshot bar above y≈216 and identifiable
   children from y≈885 down (of 2048): render the y 216–860 window only. */
.party-photo img {
  width: 100%;
  aspect-ratio: 946 / 644;
  object-fit: cover;
  object-position: 50% 15.4%;
  border-radius: 8px;
}
.halloween-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}

.trust { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin-bottom: 0;
}
.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: var(--shadow-s);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.profile-links a:hover { border-color: var(--accent); transform: translateY(-2px); }

@media (max-width: 47.99rem) {
  .memory-wall { grid-template-columns: 1fr; }
  .memory-photo.party-photo, .memory-photo.halloween-photo { rotate: none; margin-top: 0; }
  .memory-photo.halloween-photo { max-width: 22rem; }
}

/* ——— Location ——— */

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.25rem, 7.5vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
}
.pool-portal { margin: 0; max-width: 23rem; justify-self: center; }
.pool-portal img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 5px solid #ffffff;
  border-radius: 999px 999px var(--radius-m) var(--radius-m); /* soft arched window */
  box-shadow: var(--shadow-m);
}

.location-panel {
  background: #ffffff;
  border: 1px solid rgba(22, 50, 62, 0.08);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  max-width: 34rem;
}
.location-panel address {
  display: flex;
  gap: 0.8rem;
  font-style: normal;
  font-size: 1.12rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.location-panel .pin {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 6px;
  fill: var(--accent);
}

@media (max-width: 47.99rem) {
  .location-grid { grid-template-columns: 1fr; }
  .pool-portal { max-width: 19rem; }
}

/* ——— Contact ——— */

.contact {
  background: linear-gradient(180deg, var(--deep), var(--deep-2));
  color: #f2f9fb;
  --focus-ring: #f0c98a;
}
.contact .container {
  padding-block: clamp(3.25rem, 7vw, 4.75rem) clamp(3.75rem, 8vw, 5.5rem);
  text-align: center;
}
.contact-inner { max-width: 42rem; margin-inline: auto; display: grid; justify-items: center; }
.contact-waves { width: 130px; height: auto; color: rgba(240, 249, 251, 0.4); margin-bottom: 1.4rem; }
.contact .eyebrow { color: #e9c07a; }
.contact h2 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); }
.contact p { color: rgba(242, 249, 251, 0.88); }
.contact a { color: #f2f9fb; }
.contact-actions {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  margin-top: 1.3rem;
}
.contact .primary-action {
  background: #f6fafb;
  color: var(--ink);
  font-size: 1.05rem;
  padding: 1rem 1.9rem;
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.55);
}
.contact .primary-action:hover { background: #ffffff; }

/* ——— Footer ——— */

.site-footer {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  padding: 2.4rem 1.25rem 2.9rem;
  color: rgba(242, 249, 251, 0.9);
  background: var(--deep-2);
  border-top: 1px solid rgba(242, 249, 251, 0.09);
  text-align: center;
  --focus-ring: #f0c98a;
}
.site-footer img {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
  padding: 3px 8px;
}
.site-footer p { margin: 0; font-size: 0.9rem; opacity: 0.85; }
.site-footer a { color: inherit; font-weight: 600; text-underline-offset: 3px; }

/* ——— Reveals and motion ———
   Content is only hidden once JS confirms it will reveal it (html.js-motion).
   Without JS, or with reduced motion, everything is simply visible. Revealed
   content stays fully opaque — earlier sections never fade back out. */

.reveal { transition: opacity 0.8s ease, translate 0.8s ease; }
html.js-motion .reveal { opacity: 0; translate: 0 22px; }
html.js-motion .reveal.in-view { opacity: 1; translate: 0 0; }

html.js-motion .stagger > * {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 0.55s ease, translate 0.55s ease;
}
html.js-motion .stagger.in-view > * { opacity: 1; translate: 0 0; }
html.js-motion .stagger.in-view > *:nth-child(2) { transition-delay: 0.08s; }
html.js-motion .stagger.in-view > *:nth-child(3) { transition-delay: 0.16s; }
html.js-motion .stagger.in-view > *:nth-child(4) { transition-delay: 0.24s; }
html.js-motion .stagger.in-view > *:nth-child(5) { transition-delay: 0.32s; }
html.js-motion .stagger.in-view > *:nth-child(6) { transition-delay: 0.4s; }

/* photographs settle from a slight zoom as they reveal */
html.js-motion figure.reveal img {
  scale: 1.05;
  transition: scale 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.js-motion figure.reveal.in-view img { scale: 1; }

/* ——— Reduced motion ——— */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.js-motion .reveal,
  html.js-motion .stagger > * { opacity: 1; translate: none; }
  html.js-motion figure.reveal img { scale: none; }
  .primary-action:hover,
  .profile-links a:hover { transform: none; }
  .primary-action:hover .arrow { transform: none; }
  .path-point:hover .path-marker { transform: none; }
}
