/* ══════════════════════════════════════════════════════════════════════
   THE NEW BUSINESS CONSULTANT — styles.css
   Mobile-first. No framework. No build step.
   Edit colour tokens in :root to restyle; edit sections in blocks below.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  /* Palette (locked) */
  --paper: #F5F0E6;
  --paper-2: #EFE9DC;
  --ink: #1A1715;
  --terracotta: #B54E2C;
  --taupe: #8A7E6E;
  --taupe-soft: #C8BFAC;
  --rule: rgba(26, 23, 21, 0.14);
  --rule-strong: rgba(26, 23, 21, 0.28);

  /* Typography */
  --serif: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --script: 'Caveat', 'Brush Script MT', cursive;

  /* Layout */
  --max: 1280px;
  --gutter: 1.25rem;
  --radius: 12px;
  --radius-sm: 8px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 400ms;
}

@media (min-width: 768px) {
  :root { --gutter: 2.5rem; }
}

/* ─────────────────────────────────────────── Reset & base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the fixed header */
  scroll-padding-top: 76px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ─────────────────────────────────────────── Shared utilities */

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 640px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--terracotta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.eyebrow__rule {
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--terracotta);
  flex-shrink: 0;
}
.eyebrow--centered {
  justify-content: center;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw + 1rem, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin-bottom: 1.75rem;
}

.body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw + 0.8rem, 1.5rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: 2.25rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--terracotta);
  max-width: 28ch;
}

.signature {
  font-family: var(--script);
  font-size: clamp(3rem, 6vw + 1rem, 4.5rem);
  font-weight: 400;
  color: var(--terracotta);
  line-height: 1;
  margin-top: 2.5rem;
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw + 1rem, 2.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 2rem;
}

/* ═════════════════════════════════════════════════════════════════════════
   SITE HEADER — transparent over the hero, solid once scrolled
   ═════════════════════════════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--gutter);
  transition: background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.site-header__wordmark {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--paper);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: 1.6rem;
}
.site-header__nav a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.site-header__nav a:hover { border-bottom-color: var(--terracotta); }

.site-header__cta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--terracotta);
  padding: 0.7rem 1.2rem;
  border-radius: 100px;
  white-space: nowrap;
  transition: background var(--dur) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.site-header__cta:hover {
  background: #9a3f23;
  transform: translateY(-1px);
}

/* Solid state, toggled by JS once the hero is scrolled past */
.site-header--solid {
  background: rgba(245, 240, 230, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(26, 23, 21, 0.1);
}
.site-header--solid .site-header__wordmark { color: var(--ink); }
.site-header--solid .site-header__nav a { color: var(--ink); }

/* Five nav items plus the wordmark and CTA need real room — below this the
   bar overflows and pushes the button off screen, so the nav stays hidden */
@media (min-width: 940px) {
  .site-header__nav { display: flex; }
}
@media (min-width: 1120px) {
  .site-header__nav { gap: 2rem; }
}

/* ═════════════════════════════════════════════════════════════════════════
   HERO
   ═════════════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  background: #3E342C;
}
.hero__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 52% 30%;
  /* Slow settle-in on load — a single gentle drift, not a loop */
  animation: hero-drift 9s var(--ease) both;
}

@keyframes hero-drift {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(26,23,21,0.32) 0%,
      rgba(26,23,21,0.0) 28%,
      rgba(26,23,21,0.0) 55%,
      rgba(26,23,21,0.60) 100%);
  pointer-events: none;
}

.hero__headline {
  position: absolute;
  left: 50%;
  bottom: clamp(5rem, 13vh, 8rem);
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: clamp(2.3rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1.0;
  color: var(--paper);
  letter-spacing: -0.022em;
  text-align: center;
  padding: 0 1rem;
  width: 100%;
  max-width: 1100px;
  /* Rises in just after the photo starts settling */
  animation: hero-headline-in 900ms var(--ease) 250ms both;
}

@keyframes hero-headline-in {
  from { opacity: 0; transform: translate(-50%, 18px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 0.5px solid rgba(245, 240, 230, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  /* Fades in last, then drifts gently to invite the scroll */
  animation: hero-cue-in 700ms var(--ease) 1000ms both,
    hero-cue-bob 3s ease-in-out 2.2s infinite;
}

@keyframes hero-cue-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes hero-cue-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}
.hero__scroll:hover {
  background: rgba(245, 240, 230, 0.12);
  border-color: rgba(245, 240, 230, 0.8);
}
.hero__scroll-arrow {
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--paper);
  border-bottom: 1.5px solid var(--paper);
  transform: rotate(45deg);
  margin-bottom: 3px;
}

/* ═════════════════════════════════════════════════════════════════════════
   01 INTRO — left-aligned editorial measure
   ═════════════════════════════════════════════════════════════════════════ */

.intro {
  padding: clamp(2.5rem, 5vw, 3.75rem) var(--gutter);
  text-align: center;
}

/* Wider measure + slightly smaller type so the section reads in fewer
   lines and takes up less of the page */
.intro .container--narrow { max-width: 780px; }

.intro .display { margin-bottom: 1.25rem; }
.intro .body {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 0.85rem;
}
.intro .body:last-of-type { margin-bottom: 0; }

.intro .pullquote {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  max-width: 36ch;
  font-size: clamp(1.1rem, 1.6vw + 0.7rem, 1.35rem);
}

.intro .signature {
  font-size: clamp(2.25rem, 4vw + 0.75rem, 3.25rem);
  margin-top: 1.35rem;
}

/* ═════════════════════════════════════════════════════════════════════════
   SCROLL REVEAL — one restrained fade-up, used everywhere
   ═════════════════════════════════════════════════════════════════════════ */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 640ms var(--ease) var(--reveal-delay, 0ms),
    transform 640ms var(--ease) var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
/* If JS fails, never hide content */
.no-observer [data-reveal] { opacity: 1; transform: none; }

/* Eyebrow rules draw themselves in as their section reveals */
[data-reveal] .eyebrow__rule {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease) 300ms;
}
[data-reveal].is-visible .eyebrow__rule,
.no-observer [data-reveal] .eyebrow__rule { transform: scaleX(1); }

/* ═════════════════════════════════════════════════════════════════════════
   02 LOGO CAROUSEL
   ═════════════════════════════════════════════════════════════════════════ */

.logos {
  padding: 1.5rem 0 3.5rem;
  background: var(--paper);
  overflow: hidden;
}

/* Scrollable in its own right — drag, swipe or trackpad-scroll to browse.
   The gentle auto-drift is driven from main.js (scrollLeft), so manual
   scrolling and the animation never fight each other. */
.logos__marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.logos__marquee::-webkit-scrollbar { display: none; }
.logos__marquee.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
/* While dragging, don't let the pointer "grab" the images themselves */
.logos__marquee.is-dragging .logos__logo { pointer-events: none; }

.logos__track {
  display: flex;
  gap: 3rem;
  align-items: center;
  width: max-content;
}
.logos__logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.62;
  filter: grayscale(1);
  transition: opacity var(--dur) var(--ease);
}
.logos__logo:hover { opacity: 0.92; }

/* Square/badge marks need a little more height to carry the same visual
   weight as the horizontal wordmarks */
.logos__logo--mark { height: 46px; }

/* Two-line lockups (wordmark + tagline) need a touch more height again,
   or the tagline becomes unreadable at the default size */
.logos__logo--stacked { height: 48px; }

@media (min-width: 768px) {
  .logos__logo--mark { height: 54px; }
  .logos__logo--stacked { height: 56px; }
}

@media (min-width: 768px) {
  .logos { padding: 2rem 0 4.5rem; }
  .logos__track { gap: 4rem; }
  .logos__logo { height: 42px; }
}

/* ═════════════════════════════════════════════════════════════════════════
   SERVICES — flip cards inside the Services accordion panel
   ═════════════════════════════════════════════════════════════════════════ */

.offer {
  padding: clamp(1.75rem, 4vw, 2.5rem) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

/* Two photo-led cards, centred and contained (stack on small screens) */
.offer__split {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 3.25rem);
}
@media (min-width: 720px) {
  .offer__split {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3rem);
  }
}

/* Flip cards — photo on the front, full details on the back.
   Reveals on hover (pointer devices) or tap (touch, via .is-flipped). */
.offer__card {
  perspective: 1600px;
}
.offer__card-inner {
  position: relative;
  width: 100%;
  height: 33rem;
  transform-style: preserve-3d;
  transition: transform var(--dur-slow) var(--ease);
}
@media (hover: hover) {
  .offer__card:hover .offer__card-inner { transform: rotateY(180deg); }
}
.offer__card:focus-within .offer__card-inner,
.offer__card.is-flipped .offer__card-inner { transform: rotateY(180deg); }

.offer__face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ── Front: the photograph ── */
.offer__face--front { background: var(--taupe-soft); }
.offer__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.offer__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 23, 21, 0) 40%,
    rgba(26, 23, 21, 0.74) 100%
  );
}
.offer__front-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1.65rem 1.75rem;
}
.offer__cue {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 240, 230, 0.55);
  border-radius: 50%;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1;
  transition: background var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.offer__card:hover .offer__cue {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: rotate(90deg);
}

/* ── Back: the details ── */
.offer__face--back {
  transform: rotateY(180deg);
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 2rem);
  overflow-y: auto;
}

.offer__kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.55rem;
}
.offer__kicker--light { color: var(--paper); opacity: 0.9; }

.offer__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw + 0.7rem, 1.7rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.8rem;
}
.offer__title--light { color: var(--paper); margin-bottom: 0; }

.offer__desc {
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink);
  margin-bottom: 1.15rem;
}

.offer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}
.offer__list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}
.offer__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 13px;
  height: 1.5px;
  background: var(--terracotta);
}

/* Push the note + CTA to the bottom */
.offer__for {
  margin-top: auto;
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.55;
  color: var(--taupe);
  margin-bottom: 1.05rem;
}

.offer__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--terracotta);
}
.offer__cta-arrow {
  color: var(--terracotta);
  transition: transform var(--dur) var(--ease);
}
.offer__cta:hover .offer__cta-arrow { transform: translateX(4px); }

/* ═════════════════════════════════════════════════════════════════════════
   03–06 SECTION BANNERS (collapsed) + PANELS (expanded)
   ═════════════════════════════════════════════════════════════════════════ */

.sections {
  display: flex;
  flex-direction: column;
}

.section + .section .banner { border-top: 0.5px solid rgba(0,0,0,0.2); }

/* h2 wrapper around each banner button (ARIA accordion heading pattern) —
   purely structural, contributes nothing visually */
.banner-heading {
  margin: 0;
  font-size: inherit;
  line-height: 0;
}

.banner {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(120px, 18vw, 180px);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  background: #3E342C;
}
.banner__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.banner:hover .banner__photo { transform: scale(1.03); }
.banner__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,23,21,0.28) 0%, rgba(26,23,21,0.16) 45%, rgba(26,23,21,0.42) 100%);
  pointer-events: none;
}
.banner__meta {
  position: absolute;
  left: var(--gutter);
  bottom: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}
.banner__index {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(245, 240, 230, 0.72);
}
.banner__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--paper);
}
/* Terracotta rule sweeps in under the title on hover / while open */
.banner__title::after {
  content: '';
  display: block;
  margin-top: 0.55rem;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.banner:hover .banner__title::after,
.banner[aria-expanded="true"] .banner__title::after { transform: scaleX(1); }

.banner__toggle {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  translate: 0 -50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 240, 230, 0.5);
  border-radius: 50%;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 300;
  line-height: 1;
  transition: background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.banner:hover .banner__toggle {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: rotate(90deg);
}
.banner[aria-expanded="true"] .banner__toggle {
  transform: rotate(45deg);
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

/* ── Panel reveal — smooth accordion expansion ──
   The panel height is animated from 0 to its measured content height (set in
   JS), so the content below glides down continuously — no instant reflow, no
   snap. The inner content also cross-fades for a soft reveal. */
.panel {
  height: 0;
  overflow: hidden;
  visibility: hidden;
  background: var(--paper);
  transition: height var(--dur-slow) var(--ease),
              visibility 0s linear var(--dur-slow);
}
.panel > * {
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.panel.is-open {
  visibility: visible;
  transition: height var(--dur-slow) var(--ease);
}
.panel.is-open > * {
  opacity: 1;
  /* Let the box start opening first, then fade the content in behind it. */
  transition: opacity var(--dur) var(--ease) 120ms;
}

/* ═════════════════════════════════════════════════════════════════════════
   CAROUSEL (shared across sections 03–06)
   ═════════════════════════════════════════════════════════════════════════ */

.carousel {
  padding: clamp(2.5rem, 6vw, 3.5rem) var(--gutter) clamp(2.5rem, 6vw, 3.5rem);
  max-width: var(--max);
  margin: 0 auto;
}

.slides { position: relative; }

.slide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  animation: fade-in var(--dur-slow) var(--ease);
}
.slide[hidden] { display: none; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Direction-aware slide entrances — the incoming slide drifts in from the
   side you're moving towards (data-dir is set by the arrow handlers) */
[data-carousel][data-dir='next'] .slide { animation-name: slide-in-next; }
[data-carousel][data-dir='prev'] .slide { animation-name: slide-in-prev; }

@keyframes slide-in-next {
  from { opacity: 0; transform: translateX(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes slide-in-prev {
  from { opacity: 0; transform: translateX(-26px); }
  to { opacity: 1; transform: none; }
}

/* Bullet points and testimonials cascade in just behind their slide */
.slide .points li,
.slide .testimonial {
  animation: fade-in 480ms var(--ease) both;
}
.slide .points li:nth-child(1) { animation-delay: 100ms; }
.slide .points li:nth-child(2) { animation-delay: 160ms; }
.slide .points li:nth-child(3) { animation-delay: 220ms; }
.slide .points li:nth-child(4) { animation-delay: 280ms; }
.slide .points li:nth-child(5) { animation-delay: 340ms; }
.slide .testimonial { animation-delay: 120ms; }
.slide .testimonial + .testimonial { animation-delay: 260ms; }

.slide__photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--taupe-soft);
}
.slide__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.slide__content {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
  max-width: 520px;
}

.slide__category {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw + 0.5rem, 1.875rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 1.1rem 0;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--terracotta);
}

.testimonial { margin-bottom: 1.5rem; }
.testimonial:last-child { margin-bottom: 0; }

.quote {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 0.6rem;
  letter-spacing: -0.003em;
}

.attrib {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--taupe);
  line-height: 1.45;
}
.attrib__name {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 12px;
  margin-bottom: 1px;
}

.points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.points li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.points li::before {
  content: '—';
  color: var(--terracotta);
  font-weight: 500;
  line-height: 1.55;
}

/* Desktop: photo on the side, alternating */

@media (min-width: 768px) {
  .slide {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
  .slide--reverse .slide__content { order: 1; }
  .slide--reverse .slide__photo { order: 2; }

  .slide--reverse .slide__content {
    margin-left: auto;
  }

  .slide__photo {
    aspect-ratio: 4/5;
    min-height: 0;
    height: 100%;
    max-height: 520px;
  }
}

/* Nav */

/* Mobile: a centred control row above the slides, visible as soon as the
   panel opens. Desktop: the arrows float at the sides of the slide,
   vertically centred — the classic carousel pattern — with the counter as
   a small caption at the top. The slide layout itself is untouched. */
.carousel__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 768px) {
  /* Widen the carousel's side padding to create a clear channel for the
     arrows, so they never sit on top of the content */
  .carousel {
    position: relative;
    padding-left: calc(var(--gutter) + 3.75rem);
    padding-right: calc(var(--gutter) + 3.75rem);
  }
  .carousel__nav {
    position: static;
    margin: 0;
  }
  .carousel__nav .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--paper);
    z-index: 2;
  }
  .carousel__nav .nav-btn[data-prev] { left: var(--gutter); }
  .carousel__nav .nav-btn[data-next] { right: var(--gutter); }
  .carousel__nav .counter {
    position: absolute;
    top: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
  }
}
.nav-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0.5px solid var(--rule-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    scale var(--dur-fast) var(--ease);
}
.nav-btn:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  scale: 1.08;
}
.nav-btn:active { scale: 0.95; }
.nav-btn:hover .nav-btn__arrow {
  border-color: var(--paper);
}
.nav-btn__arrow {
  width: 7px; height: 7px;
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transition: border-color var(--dur) var(--ease);
}
.nav-btn__arrow--left {
  transform: rotate(45deg);
  margin-right: -2px;
}
.nav-btn__arrow--right {
  transform: rotate(-135deg);
  margin-left: -2px;
}

.counter {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--taupe);
  letter-spacing: 0.2em;
  min-width: 56px;
  text-align: center;
}

/* ═════════════════════════════════════════════════════════════════════════
   POWER PROCESS STEPPER
   ═════════════════════════════════════════════════════════════════════════ */

.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.25rem;
  margin: 0 -1rem 2.5rem;
  padding: 0 1rem 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.stepper::-webkit-scrollbar { display: none; }

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 0 0 100px;
  padding: 4px;
  background: none;
}
.step__circle {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--taupe-soft);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--taupe);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.step__title {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--taupe);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  transition: color var(--dur) var(--ease);
}
.step[aria-selected="true"] .step__circle {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--paper);
}
.step[aria-selected="true"] .step__title { color: var(--ink); }

.stepper__line {
  flex: 1 0 16px;
  height: 1px;
  background: var(--taupe-soft);
  margin-top: 15px;
  max-width: 40px;
  min-width: 16px;
}

@media (min-width: 768px) {
  .stepper {
    justify-content: space-between;
    overflow-x: visible;
    padding: 0 4px;
    margin: 0 0 2.75rem;
  }
  .step { flex: 0 0 auto; min-width: 110px; }
}

/* ═════════════════════════════════════════════════════════════════════════
   07 CONTACT
   ═════════════════════════════════════════════════════════════════════════ */

.contact {
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) 2.5rem;
}

/* Asymmetric editorial layout: invitation + direct details on the left,
   the form on the right. Collapses to a single column on small screens,
   ordered head → form → aside so the form stays high on the page. */
.contact__grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "head" "form" "aside";
  column-gap: clamp(2.5rem, 6vw, 5rem);
  row-gap: 2.75rem;
}
.contact__head { grid-area: head; }
.contact__form { grid-area: form; }
.contact__aside { grid-area: aside; }

@media (min-width: 840px) {
  .contact__grid {
    grid-template-columns: 0.82fr 1fr;
    grid-template-areas:
      "head form"
      "aside form";
    align-items: start;
    row-gap: 3.25rem;
  }
  .contact__aside { align-self: end; }
}

.contact .display { margin-bottom: 1.25rem; }

.contact__intro {
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink);
}

/* The form lives in a contained card so the section has a visual anchor */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--paper-2);
  border: 0.5px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 520px) {
  .field-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

.field { display: flex; flex-direction: column; gap: 0.5rem; }

.field label {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.005em;
}

.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 0.5px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  outline: none;
  width: 100%;
  resize: vertical;
  transition: border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.field input:hover,
.field textarea:hover { border-color: var(--ink); }
.field input:focus,
.field textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(181, 78, 44, 0.14);
}

.field textarea { min-height: 120px; line-height: 1.55; }

/* Honeypot — hidden from users but visible to bots */
.hp { position: absolute; left: -9999px; visibility: hidden; }

.contact__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.7rem;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--terracotta);
  color: var(--paper);
  padding: 1rem 1.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 0.35rem;
  transition: background var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.contact__submit-arrow { transition: transform var(--dur) var(--ease); }
.contact__submit:hover {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 23, 21, 0.16);
}
.contact__submit:hover .contact__submit-arrow { transform: translateX(4px); }
.contact__submit:active { transform: translateY(1px); }

/* Direct contact details */
.contact__aside {
  border-top: 0.5px solid var(--rule);
  padding-top: 1.9rem;
}
.contact__direct-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.15rem;
}
.contact__direct {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.contact__direct a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  max-width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.contact__direct a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact__direct svg {
  color: var(--terracotta);
  flex-shrink: 0;
}
.contact__direct a:hover { color: var(--terracotta); }

.contact__sign {
  font-size: clamp(2.4rem, 3.5vw + 1rem, 3rem);
  margin-top: 1.6rem;
}

/* ═════════════════════════════════════════════════════════════════════════
   FOOTER — a deliberate full stop
   ═════════════════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--ink);
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2rem;
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* Top: brand left, link columns right (stacks on mobile) */
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: clamp(2.25rem, 5vw, 3.25rem);
}
@media (min-width: 720px) {
  .site-footer__top {
    grid-template-columns: 1.4fr auto auto;
    gap: clamp(3rem, 7vw, 6.5rem);
  }
}

.site-footer__wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-bottom: 0.55rem;
}
.site-footer__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: rgba(245, 240, 230, 0.55);
}

.site-footer__label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe-soft);
  margin-bottom: 0.45rem;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}
.site-footer__col a {
  font-family: var(--sans);
  font-size: 13.5px;
  color: rgba(245, 240, 230, 0.78);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.site-footer__col a:hover {
  color: var(--paper);
  border-bottom-color: var(--terracotta);
}
.site-footer__location {
  font-family: var(--sans);
  font-size: 13.5px;
  color: rgba(245, 240, 230, 0.45);
  margin-top: 0.2rem;
}

/* Bottom bar: copyright + back to top, divided by a hairline */
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding-top: 1.6rem;
  border-top: 0.5px solid rgba(245, 240, 230, 0.14);
}
@media (min-width: 640px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
.site-footer__copy {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(245, 240, 230, 0.45);
  letter-spacing: 0.04em;
}
.site-footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.6);
  transition: color var(--dur) var(--ease);
}
.site-footer__top-link span {
  color: var(--terracotta);
  transition: transform var(--dur) var(--ease);
}
.site-footer__top-link:hover { color: var(--paper); }
.site-footer__top-link:hover span { transform: translateY(-2px); }

/* ─────────────────────────────────────────────────────
   Banner crop tuning — keeps the subject in frame at
   any viewport size. Tweak values by ±5–10% if any
   banner looks off after viewing live.
   ───────────────────────────────────────────────────── */

#section-02 .banner__photo { object-position: 50% 55%; }
/* 02 — Grazia viewing the LED installation. The banner is far wider than
   the photo, so `cover` scales to width and only the Y value crops:
   55% frames her head and hair with the light columns filling the left. */

#section-03 .banner__photo { object-position: 72% 62%; }
/* 03 — Grazia at Tate, lower-right of frame */

#section-04 .banner__photo { object-position: 65% 38%; }
/* 04 — Grazia's face and camera, upper-right */

#section-06 .banner__photo { object-position: center 55%; }
/* 06 — laptop and hands centre; nudge down so phone doesn't dominate */

/* ═════════════════════════════════════════════════════════════════════════
   THANK-YOU MODAL — keeps the visitor on the site after submitting
   ═════════════════════════════════════════════════════════════════════════ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.modal[hidden] { display: none; }

.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(26, 23, 21, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: modal-scrim-in var(--dur) var(--ease) both;
}

.modal__card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem)
    clamp(1.75rem, 4vw, 2.25rem);
  text-align: center;
  box-shadow: 0 24px 60px rgba(26, 23, 21, 0.28);
  animation: modal-card-in var(--dur-slow) var(--ease) both;
}

.modal__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--paper);
}
.modal__mark svg { width: 26px; height: 26px; }

.modal__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw + 0.75rem, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.7rem;
}

.modal__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--taupe);
  max-width: 32ch;
  margin: 0 auto 1.75rem;
}

.modal__close {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.modal__close:hover { background: var(--terracotta); }

@keyframes modal-scrim-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* Sending state on the submit button */
.contact__submit[aria-busy='true'] {
  opacity: 0.72;
  pointer-events: none;
}

/* Inline error, shown only if the send genuinely fails */
.contact__error {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: #9a3f23;
  margin-top: 0.9rem;
}
.contact__error[hidden] { display: none; }
