/* =========================================================
   Beautifully Born Events
   Sizing follows the Wizardry technique: every dimension is in
   rem, and the root font-size scales with the viewport so that
   1rem = 16px on the 1440px artboard. (px / 16 = rem)
   ========================================================= */

:root {
  --bg-top: #491212;
  --bg-bottom: #7a403e;
  --text: #ecd1cf;
  --text-body: #f0c9c7;
  --accent: #ab6e6a;          /* decorative only (quote mark) */
  /* The original pink, lightened only as far as each use needs to pass WCAG AA
     against the lightest part of the gradient it can sit on (desktop through phone) */
  --accent-caption: #bd8e8b;  /* captions: 4.5:1 */
  --accent-attrib: #cca8a5;   /* testimonial attribution: 4.5:1 */
  --accent-ui: #b7837f;       /* arrows, dots, policy bullets: 3:1 */
  --muted: #d7c6c5;
  --rule: #9e7675;
  --rule-footer: #a17977;
  --white: #ffffff;

  --serif: "ivypresto-text", "Times New Roman", Georgia, serif;
  --serif-display: "ivypresto-display", "Times New Roman", Georgia, serif;
}
/* On desktop these sit higher on the gradient (darker background), so they can be darker */
@media (min-width: 992px) {
  :root {
    --accent-caption: #bc8b87;
    --accent-attrib: #c8a09d;
  }
}

/* ---------- Wizardry scaling ---------- */
html { font-size: 1.1111111vw; }                                   /* 16 / 1440 */
/* What shows when you scroll past either end of the page. script.js swaps it
   between the colour at the top of the page and the gradient's end colour. */
html { background-color: var(--bg-bottom); }
@media (min-width: 1920px) { html { font-size: 21.333333px; } }    /* cap at 1920 */
@media (max-width: 991px)  { html { font-size: 100%; } }           /* tablet + mobile: the visitor's own default size (16px unless changed) */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

body {
  margin: 0;
  background: var(--bg-top);
  color: var(--text);
  font-family: var(--serif);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
figure, blockquote { margin: 0; }

.display {
  font-family: var(--serif-display);
  font-weight: 300;
  letter-spacing: 0;
}

.container {
  position: relative;
  width: 90rem;
  max-width: 100%;
  margin: 0 auto;
}

/* anchor jumps land flush with the section top (the header stays tucked
   away while the page travels there, see script.js) */
section[id] { scroll-margin-top: 0; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;            /* scrolls away with the page from the top */
  inset: 0 0 auto 0;
  z-index: 20;
  pointer-events: none;          /* only the logo + links catch clicks */
}
/* after it scrolls out of view it parks above the screen as a fixed bar;
   script.js moves it in and out in step with the scroll */
.site-header.is-fixed { position: fixed; }
.site-header.is-hidden a, .site-header.is-hidden button { pointer-events: none; }
/* after a nav link sends you somewhere, the bar slides up out of the way */
.site-header.is-tucking { transition: translate .45s cubic-bezier(.4, 0, .2, 1), background-color .35s ease, box-shadow .35s ease; }
/* past the hero: a solid bar (gradient-matched, see script.js) with a hairline */
.site-header { transition: background-color .35s ease, box-shadow .35s ease; }
.site-header.has-bg {
  background-color: var(--bar-bg, var(--bg-top));   /* matches the page gradient behind it (script.js) */
  box-shadow: inset 0 -1px 0 rgba(236, 209, 207, 0.16);
  pointer-events: auto;          /* the bar itself shouldn't click through to the page */
}
/* used for the instant switch into the parked bar. Deliberately not applied
   to the menu drawer, so a closing menu keeps animating over the page */
.site-header.no-anim,
.site-header.no-anim .header-inner,
.site-header.no-anim .logo { transition: none !important; }
.site-header a, .site-header button { pointer-events: auto; }
.header-inner {
  position: relative;
  width: 90rem;
  margin: 0 auto;
  height: 7.5rem;
  transition: height .5s var(--ease-out);
}
.logo {
  position: absolute;
  left: 3.3125rem;
  top: 2.25rem;
  width: 17.375rem;
  transition: width .5s var(--ease-out), top .5s var(--ease-out);
}
.logo img { width: 100%; height: auto; }

.site-nav {
  position: absolute;
  right: 2.5rem;
  top: 2.6rem;
  display: flex;
  gap: 2.85rem;
  transition: top .5s var(--ease-out);
}

/* Desktop: a slimmer bar than the mockup. Fixed in px (not rem) so it stays
   compact on big monitors. 110px at the top of the page, where there's room
   to breathe; 82px once it's the fixed bar with a background (it changes size
   while parked out of view, and eases back to 110px as you return to the top).
   Logo at most 230px wide. The links sit a touch above centre, since their
   hover/current underline hangs below the text. */
@media (min-width: 992px) {
  .header-inner { height: 110px; }
  .site-header.is-fixed .header-inner { height: 82px; }
  .logo { width: min(17.375rem, 230px); top: 50%; transform: translateY(-50%); }
  .site-nav { top: 50%; transform: translateY(calc(-50% - 3px)); }
}

.site-nav a,
.footer-nav a {
  font-size: clamp(15px, 1.2rem, 16px);   /* full 16px from a 1200px window up; never under 15px */
  line-height: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  position: relative;
}
.site-nav a::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0.06em; bottom: -0.25rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.footer-nav a:hover::after,
.footer-nav a:focus-visible::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; }
.nav-palm { display: none; }  /* only part of the mobile menu */
.site-nav-inner { display: contents; }  /* a layout wrapper only on phones */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;               /* full screen; svh doesn't jump as phone toolbars show/hide */
  background: #000;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
}

/* ---------- Gradient body ---------- */
.gradient-wrap {
  background: linear-gradient(to bottom, var(--bg-top), var(--bg-bottom));
  overflow: hidden;
}

/* ---------- About: intro ---------- */
.intro {
  padding-top: 4.8125rem;       /* 77 */
  text-align: center;
}
.signature {
  width: 28rem;
  height: auto;
  margin: -0.33rem auto -0.39rem;   /* trim the PNG's built-in padding */
}
.intro-text {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  margin: 0.125rem auto 0;
  font-size: 2.425rem;
  line-height: 3.25rem;
  color: var(--text);
}
.art { position: absolute; pointer-events: none; user-select: none; height: auto; }
.art-globe { left: 65.0625rem; top: 7.375rem; width: 15.14rem; }

/* ---------- About: work photos ---------- */
.work {
  display: grid;
  grid-template-columns: 46.8125rem 28.125rem;
  column-gap: 3.125rem;
  align-items: start;
  padding-left: 6.3125rem;
  margin-top: 7.5rem;
}
.work-item img { width: 100%; object-fit: cover; }
.work-item--lg img { height: 40.625rem; }
.work-item--sm { margin-top: 15.625rem; }
.work-item--sm img { height: 28.125rem; }
.work-item figcaption {
  margin-top: 0.9375rem;
  font-size: max(0.9125rem, 13px);
  line-height: 1.25rem;
  color: var(--accent-caption);
}
.work-item--sm figcaption { max-width: 25rem; }
.work-item figcaption a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

/* ---------- About: story ---------- */
.story {
  display: grid;
  grid-template-columns: 31.25rem 38.75rem;
  column-gap: 3.125rem;
  padding-left: 9.375rem;
  margin-top: 4.9rem;
  /* the About link lands here with a little air above the heading. Keep it
     under 2.4rem: the caption above sits 4.9rem up, and starts its fade-in
     2.5rem lower than that, so any more would show it */
  scroll-margin-top: 1.75rem;
}
.story-heading {
  margin: 0;
  max-width: 28.5rem;
  font-size: 2.425rem;
  line-height: 3.25rem;
  color: var(--text);
}
.story-body { padding-top: 0.6rem; }
.story-body p {
  margin: 0 0 1rem;
  font-size: max(1.03125rem, 15px);
  line-height: 1.875rem;
  color: var(--text-body);
}
.story-body p:last-child { margin-bottom: 0; }

/* ---------- About: portraits ---------- */
.portraits {
  display: flex;
  align-items: flex-start;
  gap: 3.125rem;
  padding-left: 6.25rem;
  margin-top: 10.25rem;
}
.portrait { object-fit: cover; }
.portrait--side { margin-top: 3.125rem; height: 28.125rem; }
.portrait--side:first-child { width: 21.25rem; }
.portrait--side:last-child { width: 21.875rem; }
.portrait--center { width: 28.125rem; height: 34.375rem; }

/* ---------- Testimonials ---------- */
.testimonials-inner {
  padding: 6.25rem 0 4.5625rem;
  text-align: center;
}
.art-cactus { left: 8.3125rem; top: 1.75rem; width: 16.3125rem; opacity: 0.3; }

.quote-mark {
  display: block;
  width: 3.375rem;
  height: auto;
  margin: 0 auto;
}

.carousel { position: relative; margin-top: 3.1rem; }
.carousel-viewport {
  width: 64rem;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  /* height follows the current slide (set in script.js), so longer quotes push the page down */
  transition: height .7s cubic-bezier(.65, 0, .35, 1);
}
.carousel-track {
  display: flex;
  align-items: flex-start;
  transition: transform .7s cubic-bezier(.65, 0, .35, 1);
}
.slide {
  flex: 0 0 100%;
  min-width: 0;
  /* room below the name: its line box is shorter than the glyphs, and the
     viewport clips to the slide's height (see script.js) */
  padding-bottom: 0.75rem;
}
.slide blockquote {
  font-size: 2rem;
  line-height: 3.2rem;
  color: var(--text);
}
.slide blockquote p { margin: 0; }
.slide blockquote p + p { margin-top: 0.75em; }
/* the long third quote runs 5% smaller (1.9rem vs 2rem on desktop) */
.slide--long blockquote p { font-size: 0.95em; line-height: 1.6; }
.slide figcaption {
  margin-top: 2.1rem;
  font-size: max(1.27rem, 15px);
  line-height: 1.5rem;
  color: var(--accent-attrib);
}

.carousel-btn {
  position: absolute;
  top: calc(var(--quote-mid, 14.25rem) - 0.75rem);   /* level with the middle of the quote */
  width: 2.625rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform .25s ease, top .7s cubic-bezier(.65, 0, .35, 1);
}
.carousel-btn picture { display: contents; } /* size the arrow against the button */
.carousel-btn img { width: 100%; height: auto; }
.carousel-btn--prev { left: 5.8125rem; }
.carousel-btn--next { right: 5.8125rem; }
@media (hover: hover) {
  .carousel-btn--prev:hover { transform: translateX(-0.25rem); }
  .carousel-btn--next:hover { transform: translateX(0.25rem); }
}
.carousel-btn { touch-action: manipulation; }

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;           /* + the slide's 0.75rem bottom padding */
  position: relative;
  pointer-events: none;      /* the strip must never cover the arrows */
}
.carousel-dots button {
  pointer-events: auto;
  width: 1.125rem; height: 1.5rem; padding: 0;
  border: 0; background: none; cursor: pointer;
  touch-action: manipulation;
}
.carousel-dots button::after {
  content: "";
  display: block;
  width: 0.5rem; height: 0.5rem; margin: 0 auto;
  border: 1px solid var(--accent-ui); border-radius: 50%;
  transition: background-color .3s ease;
}
.carousel-dots button[aria-current="true"]::after { background: var(--accent-ui); }

/* ---------- Gallery ---------- */
.gallery-inner { height: 109.375rem; }
.g-col { display: contents; } /* columns only matter on mobile */
.g { position: absolute; z-index: 1; object-fit: cover; }
.g1 { left: 43.75rem; top: 0;         width: 37.5rem;   height: 43.75rem; }
.g2 { left: 12.5rem;  top: 15.625rem; width: 28.125rem; height: 34.375rem; }
.g3 { left: 9.375rem; top: 53.125rem; width: 31.25rem;  height: 38.0625rem; }
.g4 { left: 43.75rem; top: 46.875rem; width: 34.375rem; height: 50.625rem; }
.art-mountain { left: 54.5625rem; top: 93.4375rem; width: 41.47rem; z-index: 2; opacity: 0.8; }

/* ---------- Contact ---------- */
/* the Contact link lands with some air above the photos. Kept under the
   ~3.5rem gap to the mountain drawing above, so no sliver of it shows */
#contact { scroll-margin-top: 3rem; }
.contact-inner { height: 43.625rem; }
.c { position: absolute; object-fit: cover; }
.c1 { left: 6.3125rem;  top: 0;       width: 28.125rem; height: 18.75rem; }
.c2 { left: 25.0625rem; top: 9.375rem; width: 21.875rem; height: 25rem; z-index: 1; }

.contact-info {
  position: absolute;
  left: 53.125rem;
  top: 5.75rem;
  width: 22.4rem;
}
.contact-heading {
  margin: 0;
  font-size: 3.8125rem;
  line-height: 4.375rem;
  color: var(--white);
  white-space: nowrap;
}
.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.contact-list li { position: relative; }
.contact-list li::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--rule);
  transform-origin: left;
}
.contact-list li:last-child::after { display: none; }
.contact-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
  font-size: max(1.2125rem, 15px);
  line-height: 2rem;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s ease;
}
.contact-list a:hover, .contact-list a:focus-visible { color: var(--text); }
.contact-list svg { flex: none; width: 1.375rem; height: 1.375rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule-footer); }
/* in normal flow (not absolutely placed) so the footer grows if a visitor
   enlarges text or spacing; same positions as the design at default sizes */
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 2.625rem 2rem 3.0625rem;
}
.footer-mark {
  margin-top: 2.6875rem;
  width: 7.8125rem;
  flex: none;
}
.footer-mark img { width: 100%; height: auto; }
.footer-right {
  margin-top: 3.85rem;
  text-align: right;
}
.footer-nav { display: flex; justify-content: flex-end; gap: 2.5rem; }
.footer-nav a { color: #f2dad9; } /* size + tracking shared with the header nav */
.legal {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  margin: 3.65rem 0 0;
  padding: 0;
  font-size: max(0.875rem, 11px);
  line-height: 1.625rem;
}
.legal a, .credit a { color: var(--muted); }
.legal a { text-decoration: none; }
.legal a:hover, .legal a:focus-visible { text-decoration: underline; }
.copyright, .credit {
  margin: 0;
  font-size: max(0.75rem, 10px);
  line-height: 1.625rem;
  color: var(--muted);
}

/* ---------- Policy pages ---------- */
.page-policy .gradient-wrap { min-height: 100vh; }
.policy { padding: 12rem 0 8rem; }
.policy-body {
  max-width: 47.5rem;
  margin: 0 auto;
  color: var(--text-body);
  font-size: max(1.03125rem, 15px);
  line-height: 1.875rem;
}
.policy-body h1,
.policy-body h2,
.policy-body h3,
.policy-body h4 {
  font-family: var(--serif-display);
  font-weight: 300;
  color: var(--text);
  line-height: 1.2;
}
.policy-body h1 { font-size: 4rem; margin: 0 0 2.5rem; }
.policy-body h2 { font-size: 2.25rem; margin: 3.5rem 0 1rem; }
.policy-body h3 { font-size: 1.625rem; margin: 2.25rem 0 0.75rem; }
.policy-body h4 {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 1.75rem 0 0.5rem;
}
.policy-body p { margin: 0 0 1rem; }
.policy-body ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.policy-body li { margin-bottom: 0.5rem; }
.policy-body li::marker { color: var(--accent-ui); }
.policy-body strong { font-weight: 400; color: var(--text); }
.policy-body a { color: var(--text); text-underline-offset: 0.2em; text-decoration-color: var(--accent-ui); }
.policy-body a:hover { text-decoration-color: currentColor; }

/* ---------- Focus ---------- */
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 1rem; left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--text);
  color: var(--bg-top);
  font-size: 1rem;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
main:focus { outline: none; }

/* =========================================================
   Tablet + mobile (fixed rem, stacked layout)
   ========================================================= */
@media (max-width: 991px) {
  .container, .header-inner { width: 100%; padding-left: 2.5rem; padding-right: 2.5rem; }

  /* header */
  .header-inner { height: 5.5rem; padding: 0; }
  .logo { left: 1.5rem; top: 1.75rem; width: 12.5rem; z-index: 2; }
  .nav-toggle {
    display: block;
    position: absolute;
    right: 1rem; top: 1.5rem;
    z-index: 2;
    width: 2.75rem; height: 2.75rem;
    padding: 0; border: 0; background: none; cursor: pointer;
    transition: top .5s var(--ease-out);
  }
  .nav-toggle span {
    position: absolute; left: 0.5rem; right: 0.5rem;
    height: 1px; background: var(--white);
    transition: transform .35s ease, top .35s ease;
  }
  .nav-toggle span:first-child { top: 1.05rem; }
  .nav-toggle span:last-child  { top: 1.65rem; }
  .nav-open .nav-toggle span:first-child { top: 1.35rem; transform: rotate(45deg); }
  .nav-open .nav-toggle span:last-child  { top: 1.35rem; transform: rotate(-45deg); }

  /* Menu (after buttonatelier.com): a full-screen drawer drops down, then
     the links open out from the centre of the screen as the drawer settles,
     with a faint palm tree behind them. The drawer slides down while its
     contents slide up by the same amount, so the links and palm stay still
     on screen. Both are transforms, which the phone's graphics hardware
     animates smoothly even while the page is busy. */
  .site-nav {
    position: fixed;
    inset: 0;
    display: block;
    overflow: hidden;
    background: var(--bg-top);
    transform: translateY(-100%);
    visibility: hidden;
    /* closing: the drawer starts lifting while the links are still closing */
    transition: transform .7s cubic-bezier(.77, 0, .18, 1) .25s, visibility 0s .95s;
  }
  .site-nav-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    transition: transform .7s cubic-bezier(.77, 0, .18, 1) .25s;
  }
  .nav-open .site-nav-inner {
    transform: none;
    transition: transform .8s cubic-bezier(.77, 0, .18, 1);
  }
  /* visible instantly on open so the first link can take keyboard focus */
  .nav-open .site-nav {
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: transform .8s cubic-bezier(.77, 0, .18, 1), visibility 0s;
  }
  .nav-open { overflow: hidden; }
  .nav-open .site-header,
  .nav-closing .site-header { position: fixed; }
  /* Each link is a window that grows from zero height with its word centred
     inside, so every word opens from its middle and the stack grows outward
     from the centre of the screen */
  .site-nav a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 0;
    overflow: hidden;
    padding: 0 0.25em;
    font-family: var(--serif-display);
    font-weight: 300;
    /* caps no taller than the logo's BEAUTIFULLY BORN (~21px on phones),
       so the links don't overpower it (was 2.5rem) */
    font-size: 1.5rem;
    line-height: 1.15;
    letter-spacing: 0.02em;
    white-space: nowrap;
    /* closing mirrors opening: each window shrinks back to its centre line */
    transition: height .6s cubic-bezier(.65, 0, .35, 1);
  }
  .nav-open .site-nav a {
    height: calc(1.725rem + 16px);   /* one line (1.5rem × 1.15) plus 16px of space between links */
    /* starts as the drawer is landing, so you see it open */
    transition: height 1s cubic-bezier(.65, 0, .35, 1) .2s;
  }
  .site-nav a::after { display: none; }
  /* the words fade in as their windows open, so the thin overlapping
     slivers at the very start never show */
  .site-nav a span {
    display: block;
    opacity: 0;
    transition: opacity .4s ease .1s;   /* fades as the windows close */
  }
  .nav-open .site-nav a span {
    opacity: 1;
    transition: opacity .7s ease .4s;
  }
  /* faint palm tree behind the links, close to the background colour */
  .nav-palm {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    display: block;
    height: min(72vh, 34rem);
    width: auto;
    opacity: 0;
    transform: translate(-50%, -50%);   /* never moves, so it can't jump or stutter */
    pointer-events: none;
    will-change: opacity;
    transition: opacity .6s ease;
  }
  .nav-open .nav-palm {
    opacity: 0.12;
    transition: opacity 1.4s ease .2s;
  }

  /* hero */
  .hero-img {
    object-position: 78% 30%;
    /* 5% zoom. Anchored at the right edge so her head is cropped no more than
       unzoomed, and at the top of her head (18%) so that stays put vertically */
    scale: 1.05;
    transform-origin: 100% 18%;
  }

  /* intro */
  .intro { padding-top: 3.5rem; }
  .signature { width: min(22rem, 80%); }
  .intro-text { font-size: 1.75rem; line-height: 1.3; margin-top: 0.75rem; max-width: 38rem; }
  /* globe sits low beside the intro text, 10px in from the edge, with room
     above the photo below so the drift never brings it into contact */
  .art-globe { left: auto; right: 10px; top: auto; bottom: -0.5rem; width: 8.5rem; opacity: .8; }

  /* work */
  .work { grid-template-columns: 1fr; padding-left: 2.5rem; margin-top: 3.5rem; row-gap: 2.5rem; }
  .work-item--lg img { height: auto; aspect-ratio: 749 / 650; }
  .work-item--sm { margin-top: 0; width: 70%; justify-self: end; }
  .work-item--sm img { height: auto; aspect-ratio: 1; }
  .work-item figcaption { font-size: 0.875rem; }

  /* story */
  .story { grid-template-columns: 1fr; padding-left: 2.5rem; margin-top: 4rem; row-gap: 1.75rem; scroll-margin-top: 1rem; }   /* keep under 1.5rem (4rem gap minus the caption's 2.5rem fade-in offset) */
  .story-heading { font-size: 2rem; line-height: 1.25; max-width: 30rem; }
  .story-body p { font-size: 1rem; line-height: 1.6; }

  /* portraits */
  .portraits {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 0.75rem;
    padding-left: 2.5rem;
    margin-top: 4rem;
  }
  .portrait--side, .portrait--center { width: 100% !important; height: auto; }
  .portrait--side { margin-top: 1.5rem; aspect-ratio: 340 / 450; }
  .portrait--center { aspect-ratio: 450 / 550; }

  /* testimonials */
  .testimonials-inner { padding: 4.5rem 2.5rem 4rem; }
  /* 10px in from the edge, lowered about a third of its height to sit behind the quote */
  .art-cactus { left: 10px; top: 8.4rem; width: 8rem; opacity: .7; }
  .quote-mark { width: 2.5rem; }
  .carousel { margin-top: 2.25rem; padding-bottom: 3rem; }   /* + the slide's 0.75rem bottom padding */
  .slide blockquote { font-size: 1.3125rem; line-height: 1.6; letter-spacing: -0.01em; }
  .slide figcaption { margin-top: 1.5rem; font-size: 1rem; }
  /* 44px tap targets; the arrow art stays the same size and position */
  .carousel-btn {
    top: auto; bottom: -0.625rem;
    width: 2.75rem; height: 2.75rem;
    display: flex; align-items: center; justify-content: center;
  }
  .carousel-btn img { width: 2.3625rem; }
  .carousel-btn--prev { left: calc(50% - 7.25rem); }
  .carousel-btn--next { right: calc(50% - 7.25rem); }
  .carousel-dots { margin-top: -1.5rem; }   /* sits between the arrows */

  /* gallery */
  /* two independent columns so the gap between photos is always the same */
  .gallery-inner {
    height: auto;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 5rem;
  }
  .g-col { display: flex; flex-direction: column; gap: 1rem; flex: 1; min-width: 0; }
  .g-col--left { margin-top: 4rem; }
  .g { position: static; width: 100% !important; height: auto !important; }
  .g1 { aspect-ratio: 600 / 700; }
  .g2 { aspect-ratio: 450 / 550; }
  .g3 { aspect-ratio: 500 / 609; }
  .g4 { aspect-ratio: 550 / 810; }
  /* under the right-hand photos (it lives in that column on phones), peak 40px
     below them; it may run behind the Let's Do This text */
  .g-col--right { position: relative; }
  .art-mountain { left: -30%; top: calc(100% + 40px); bottom: auto; width: 180%; max-width: none; }

  /* contact */
  #contact { scroll-margin-top: 1.25rem; }   /* under the 1.5rem gap to the mountain drawing */
  .contact-inner { height: auto; padding-bottom: 4.5rem; display: flex; flex-direction: column-reverse; }
  /* photos below the info, spanning the full content width. Same overlap as
     desktop, scaled (the glass photo must cover the corner of the DJ crop) */
  .contact-photos { position: relative; height: 0; padding-bottom: 84.62%; margin-top: 3rem; }
  .c1 { left: 0; top: 0; width: 69.24%; height: auto; aspect-ratio: 450 / 300; }
  .c2 { left: 46.15%; top: 27.27%; width: 53.85%; height: auto; aspect-ratio: 350 / 400; }
  /* relative + z-index: keeps the heading and links above the mountain drawing */
  .contact-info { position: relative; left: auto; top: auto; z-index: 3; width: auto; max-width: 26rem; }
  .contact-heading { font-size: 3rem; line-height: 1.1; }
  .contact-list a { font-size: 1.125rem; padding: 1.125rem 0; white-space: normal; word-break: break-word; }

  /* footer */
  .footer-inner { height: auto; padding-top: 2.5rem; padding-bottom: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 2rem; }
  .footer-mark, .footer-right { position: static; margin-top: 0; }
  .footer-mark { width: 5.5rem; }
  .footer-right { text-align: center; }
  .footer-nav, .legal { justify-content: center; flex-wrap: wrap; }
  .footer-nav { gap: 1.75rem; flex-wrap: nowrap; }
  .footer-nav a { font-size: 1rem; white-space: nowrap; }
  .legal { margin-top: 1.5rem; gap: 0.25rem 1.25rem; font-size: 0.8125rem; }
  .copyright, .credit { font-size: 0.75rem; }
}

@media (max-width: 600px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .work, .story, .portraits { padding-left: 1rem; }
  .testimonials-inner { padding-left: 1rem; padding-right: 1rem; }
  .intro-text { font-size: 1.5rem; }
  .art-globe { width: 6rem; right: 10px; }
  .story-heading { font-size: 1.75rem; }
  .work-item--sm { width: 85%; }
  .portraits { grid-template-columns: 1fr 1fr; }
  .portrait--center { grid-column: 1 / -1; grid-row: 1; }
  .portrait--side { margin-top: 0; }
  .slide { padding-left: 0.25rem; padding-right: 0.25rem; }
  .slide blockquote { font-size: 1.1875rem; }
  .gallery-inner, .g-col { gap: 0.625rem; }
  .contact-heading { font-size: 2.5rem; }
  .contact-list a { font-size: 1rem; }
  /* footer nav: one line, centred, clear of the screen edges */
  .footer-right { width: 100%; }
  .footer-nav { justify-content: center; gap: min(1.25rem, 4.8vw); }
  .footer-nav a { font-size: min(0.9375rem, 3.9vw); }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track, .carousel-viewport, .carousel-btn { transition: none; }
  .site-header, .site-header.is-tucking { transition: none; }
  .site-nav, .site-nav-inner, .site-nav a, .site-nav a span, .nav-palm { transition: none !important; }
}

@media (max-width: 991px) {
  .policy { padding: 8rem 1.5rem 5rem; }
  .policy-body { font-size: 1rem; line-height: 1.6; }
  .policy-body h1 { font-size: 2.75rem; }
  .policy-body h2 { font-size: 1.75rem; }
  .policy-body h3 { font-size: 1.375rem; }
}

/* =========================================================
   Motion
   Only active when <html> has .anim (set in <head> unless the
   visitor prefers reduced motion). Without JS everything shows.
   ========================================================= */
:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* Load sequence: hero settles in, header drifts down */
.anim .hero-img {
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.6s ease, transform 3.2s var(--ease-out);
}
.anim.is-loaded .hero-img { opacity: 1; transform: none; }

.anim .nav-toggle {
  opacity: 0;
  translate: 0 -0.75rem;
  transition: opacity 1s ease, translate 1.2s var(--ease-out), top .5s var(--ease-out);
}
.anim .logo {
  opacity: 0;
  translate: 0 -0.75rem;
  transition: opacity 1s ease, translate 1.2s var(--ease-out), width .5s var(--ease-out), top .5s var(--ease-out);
}
.anim.is-loaded .logo,
.anim.is-loaded .nav-toggle { opacity: 1; translate: none; }
.anim.is-loaded .logo { transition-delay: .5s, .5s, 0s, 0s; }
.anim.is-loaded .nav-toggle { transition-delay: .65s, .65s, 0s; }
/* the desktop nav links drift in one by one on load (on phones they live in
   the menu drawer, which has its own animation) */
@media (min-width: 992px) {
  .anim .site-nav a {
    opacity: 0;
    translate: 0 -0.75rem;
    transition: opacity 1s ease, translate 1.2s var(--ease-out);
  }
  .anim.is-loaded .site-nav a { opacity: 1; translate: none; }
  .anim.is-loaded .site-nav a:nth-child(1) { transition-delay: .65s; }
  .anim.is-loaded .site-nav a:nth-child(2) { transition-delay: .75s; }
  .anim.is-loaded .site-nav a:nth-child(3) { transition-delay: .85s; }
  .anim.is-loaded .site-nav a:nth-child(4) { transition-delay: .95s; }
}

/* Scroll reveals */
.anim [data-reveal] {
  transition:
    opacity 1.1s ease,
    transform 1.3s var(--ease-out),
    clip-path 1.5s var(--ease-io),
    filter 1.4s ease;
  transition-delay: var(--d, 0s);
}
.anim [data-reveal="up"]:not(.is-in)    { opacity: 0; transform: translateY(2.5rem); }
.anim [data-reveal="left"]:not(.is-in)  { opacity: 0; transform: translateX(-4.5rem); }
.anim [data-reveal="right"]:not(.is-in) { opacity: 0; transform: translateX(4.5rem); }
.anim [data-reveal="fade"]:not(.is-in)  { opacity: 0; }
.anim [data-reveal="fade"]  { transition-duration: 2s; }

/* Photos: a simple rise and fade */
.anim [data-reveal="photo"] { transition-duration: 1.2s, 1.4s; }
.anim [data-reveal="photo"]:not(.is-in) { opacity: 0; transform: translateY(3rem); }

/* Contact pair: open like a curtain and come into focus */
.anim [data-reveal="image"]:not(.is-in) {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.1);
  filter: blur(8px);
}
.anim [data-reveal="image"].is-in { clip-path: inset(0 0 0 0); }
.anim [data-reveal="image"] { transition-duration: .8s, 1.4s, 1.2s, 1.2s; }  /* opacity, transform, clip, blur */

/* Signature writes itself on */
.anim [data-reveal="sign"]:not(.is-in) { clip-path: inset(0 100% 0 0); }
.anim [data-reveal="sign"].is-in { clip-path: inset(0 0 0 0); }
.anim [data-reveal="sign"] { transition: clip-path 2.4s cubic-bezier(.45, .05, .35, 1) var(--d, 0s); }

/* Display type rises line by line (lines are built in script.js) */
.anim [data-reveal="lines"] .line {
  display: block;
  /* mask only above and below (for the rise); never clip a line's sides */
  clip-path: inset(0 -100vw);
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  white-space: nowrap;
}
.anim [data-reveal="lines"] .line-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.3s var(--ease-out);
  transition-delay: calc(var(--d, 0s) + var(--i) * 0.1s);
}
.anim [data-reveal="lines"].is-in .line-inner { transform: none; }

/* Contact rows fade up while their rule draws across */
.anim [data-reveal="draw"] { transition-property: opacity, transform; }
.anim [data-reveal="draw"]:not(.is-in) { opacity: 0; transform: translateY(1rem); }
.anim [data-reveal="draw"]::after {
  transform: scaleX(0);
  transition: transform 1.4s var(--ease-io);
  transition-delay: calc(var(--d, 0s) + .2s);
}
.anim [data-reveal="draw"].is-in::after { transform: none; }

/* Scroll-linked drift (values set in script.js) */
[data-speed] { will-change: translate; }

/* Carousel: outgoing slide dims as it moves away */
.slide { transition: opacity .7s ease; opacity: 0.15; }
.slide.is-current { opacity: 1; }
.carousel-track.is-jumping,
.carousel-track.is-jumping .slide { transition: none; }

