:root {
  --cream: #F5F1EA;
  --cream-2: #EDE7DA;
  --charcoal: #2B2924;
  --charcoal-soft: #524E45;
  --brass: #B08D57;
  /* Accessible brass for text on cream — #B08D57 is only 2.75:1, fails WCAG AA.
     --brass-deep is 4.65:1. Use --brass for decoration only (borders, fills). */
  --brass-deep: #88663A;
  --brass-light: #C9A876;
  --border: rgba(43, 41, 36, 0.12);
  --header-h: 96px;
  --font-serif: 'Frank Ruhl Libre', serif;
  --font-sans: 'Assistant', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Keyboard focus — without this, tab navigation is invisible over the hero video */
:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.hero :focus-visible,
.cta :focus-visible {
  outline-color: var(--brass-light);
}

/* Anchor targets must clear the fixed header */
section[id] {
  scroll-margin-top: var(--header-h);
}

.skip-link {
  position: absolute;
  right: 24px;
  top: -100px;
  z-index: 200;
  background: var(--charcoal);
  color: var(--cream);
  padding: 12px 20px;
  font-size: 15px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  padding: 28px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background: rgba(245, 241, 234, 0.94);
  padding: 16px 0;
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.logo-img {
  /* Source is 1023x240, so there is plenty of detail — the wordmark just
     loses definition when squeezed this far down. */
  height: 46px;
  width: auto;
  filter: invert(1);
  transition: filter 0.4s ease, height 0.4s ease;
}

.site-header.scrolled .logo-img {
  height: 40px;
  filter: none;
}

.logo-tagline {
  /* Was 11px at 0.85 opacity — small enough that antialiasing made it look
     blurred, and the fade cut contrast from 7.4:1 to 5.1:1. Full colour now. */
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--cream);
  white-space: nowrap;
  transition: color 0.4s ease;
}

.site-header.scrolled .logo-tagline {
  color: var(--charcoal-soft);
}

.main-nav {
  display: flex;
  gap: 36px;
}

.main-nav a {
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--cream);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.4s ease;
}

.site-header.scrolled .main-nav a {
  color: var(--charcoal-soft);
}

.main-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  /* 44x44 minimum touch target (WCAG / Apple HIG) */
  width: 44px;
  height: 44px;
  margin: -4px;
  padding: 0;
  touch-action: manipulation;
}

.nav-toggle span {
  width: 24px;
  height: 1px;
  background: var(--cream);
  transition: background 0.4s ease;
}

.site-header.scrolled .nav-toggle span {
  background: var(--charcoal);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh; /* avoids the mobile address-bar jump */
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-image,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,19,16,0.15) 0%, rgba(20,19,16,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--cream);
  padding: 0 48px 150px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 14px;
  letter-spacing: 0.08em;
  margin: 0 0 20px;
  color: var(--brass-light);
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.3;
  margin: 0 0 32px;
  color: var(--cream);
}

.hero-quote {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  max-width: 300px;
  text-align: center;
}

.hero-quote::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  margin: 0 auto 14px;
  background: rgba(245, 241, 234, 0.35);
}

.hero-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  color: rgba(245, 241, 234, 0.8);
  margin: 0 0 10px;
}

.hero-quote span {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--brass-light);
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--brass-light);
  display: inline-block;
}

/* ---------- Section helpers ---------- */

.section-eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--brass-deep);
  margin: 0 0 16px;
  text-transform: uppercase;
}

.section-eyebrow.light { color: var(--brass-light); }
.section-eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 64px;
}

.section-title.center { text-align: center; }

.text-link {
  display: inline-block;
  font-size: 15px;
  border-bottom: 1px solid var(--brass-deep);
  padding-bottom: 2px;
}

.text-link.center {
  display: block;
  text-align: center;
  width: fit-content;
  margin: 40px auto 0;
}

/* ---------- Intro ---------- */

.intro {
  padding: 140px 48px;
}

.intro-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.3;
  margin: 0 0 28px;
}

.intro-body {
  font-size: 17px;
  color: var(--charcoal-soft);
  margin: 0 0 32px;
  max-width: 460px;
}

.intro-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--charcoal);
}

.intro-image img {
  transition: transform 0.5s ease;
}

.intro-image.guide-card:hover img {
  transform: scale(1.04);
}

/* ---------- Projects ---------- */

.projects {
  padding: 100px 48px 140px;
  max-width: 1240px;
  margin: 0 auto;
}

.project-story {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 140px;
}

.project-story:last-child { margin-bottom: 0; }

.project-story.reverse {
  grid-template-columns: 1fr 1.3fr;
}

.project-story.reverse .project-image { order: 2; }
.project-story.reverse .project-text { order: 1; }

.project-image {
  aspect-ratio: 7 / 5;
  overflow: hidden;
  border-radius: 2px;
}

.project-index {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--brass-deep);
  letter-spacing: 0.1em;
}

.project-text h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 12px 0 20px;
}

.project-text p {
  color: var(--charcoal-soft);
  font-size: 16px;
  max-width: 420px;
}

/* ---------- Gallery ---------- */

.gallery {
  padding: 40px 48px 140px;
  max-width: 1240px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Uniform tiles. The old layout had images 1 and 4 spanning two rows, which
   left an empty cell under images 2 and 3. Equal ratios keep the row solid
   and stay correct for any number of images added through the CMS.
   aspect-ratio also reserves height before decode, so there is no CLS. */
.gallery-grid img {
  border-radius: 2px;
  height: auto;
  aspect-ratio: 4 / 3;
}

/* ---------- Guides ---------- */

.guides {
  padding: 40px 48px 140px;
  max-width: 1240px;
  margin: 0 auto;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.guide-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background: var(--charcoal);
}

.guide-thumb img {
  transition: transform 0.5s ease;
}

.guide-card:hover .guide-thumb img {
  transform: scale(1.04);
}

.guide-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(245, 241, 234, 0.7);
  background: rgba(20, 19, 16, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.guide-card:hover .guide-play {
  background: var(--brass);
  border-color: var(--brass);
}

.play-triangle {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--cream);
  margin-left: -3px;
}

.guide-title {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--charcoal-soft);
  line-height: 1.5;
}

.guide-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Press ---------- */

.press {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.press-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}

.press-item h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 21px;
  line-height: 1.35;
  margin: 0 0 12px;
}

.press-item p {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--charcoal-soft);
  line-height: 1.65;
}

.press-source {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

/* ---------- Work process ---------- */

.process {
  padding: 120px 48px;
}

.process-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.process-lead {
  max-width: 620px;
  margin: -40px auto 64px;
  text-align: center;
  font-size: 17px;
  color: var(--charcoal-soft);
}

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
  counter-reset: step;
}

.process-steps li {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.step-num {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--brass-deep);
}

.process-steps h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 22px;
  margin: 10px 0 10px;
}

.process-steps p {
  margin: 0;
  font-size: 15px;
  color: var(--charcoal-soft);
  line-height: 1.65;
}

/* ---------- Testimonials ---------- */

.testimonials {
  padding: 120px 48px;
  max-width: 1240px;
  margin: 0 auto;
}

.testimonials-inner {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 72px;
  align-items: center;
}

.testimonial-video {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--charcoal);
  max-width: 320px;
}

.testimonial-video img {
  transition: transform 0.5s ease;
}

.testimonial-video.guide-card:hover img {
  transform: scale(1.04);
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 24px;
}

.testimonial-sub {
  font-size: 17px;
  color: var(--charcoal-soft);
  max-width: 440px;
  margin-bottom: 32px;
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 460px;
}

.rating-score {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  color: var(--brass-deep);
  line-height: 1;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.rating-label {
  display: block;
  font-size: 13px;
  color: var(--charcoal-soft);
  margin-bottom: 8px;
}

.rating-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13px;
  color: var(--charcoal-soft);
  font-variant-numeric: tabular-nums;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  margin: 0 0 16px;
}

.quote-author {
  font-size: 13px;
  color: var(--charcoal-soft);
}

/* ---------- CTA ---------- */

.cta {
  background: var(--charcoal);
  color: var(--cream);
  padding: 140px 48px;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 20px;
}

.cta-sub {
  color: rgba(245, 241, 234, 0.7);
  margin: 0 0 56px;
}

.cta-details {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.cta-label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--brass-light);
  margin-bottom: 10px;
}

.cta-details a:hover {
  border-bottom: 1px solid var(--brass-light);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 32px 48px;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--charcoal-soft);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-social {
  display: flex;
  gap: 28px;
}

.footer-social a:hover {
  color: var(--brass-deep);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .main-nav.open {
    max-height: 320px;
    box-shadow: 0 1px 0 var(--border);
  }
  .main-nav a {
    color: var(--charcoal-soft);
    padding: 16px 0;
  }
  .nav-toggle { display: flex; }

  .intro-inner {
    grid-template-columns: 1fr;
  }
  .intro-image { order: -1; }

  .project-story,
  .project-story.reverse {
    grid-template-columns: 1fr;
  }
  .project-story.reverse .project-image,
  .project-story.reverse .project-text {
    order: initial;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .testimonial-video {
    margin: 0 auto;
  }

  .testimonial-sub {
    margin-inline: auto;
  }

  .rating-badge {
    margin-inline: auto;
    text-align: right;
  }

  .quotes-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .press-grid,
  .process-steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .process-lead { margin-top: -20px; }

  .cta-details {
    gap: 32px;
  }

  .hero-quote {
    max-width: 240px;
    bottom: 32px;
  }

  .hero-quote p {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .header-inner, .intro, .projects, .gallery, .press, .cta, .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero-content { padding: 0 24px 170px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Keep the hero readable as a still frame instead of a moving background */
  .hero-video { display: none; }

  .hero {
    background-image: url('../assets/site-photos/hero-living-kitchen.jpg');
    background-size: cover;
    background-position: center;
  }

  .intro-image.guide-card:hover img,
  .testimonial-video.guide-card:hover img,
  .guide-card:hover .guide-thumb img {
    transform: none;
  }
}

/* ---------- Project pages ---------- */

.project-page-main {
  padding-top: 120px;
}

.project-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 48px 0;
}

.project-back {
  display: inline-block;
  font-size: 14px;
  color: var(--charcoal-soft);
  margin-bottom: 32px;
  border-bottom: 1px solid transparent;
}

.project-back:hover { border-bottom-color: var(--brass-deep); }

.project-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.25;
  margin: 0 0 28px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}

.project-meta div { min-width: 140px; }

.project-meta dt,
.project-meta .meta-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 6px;
}

.project-meta dd,
.project-meta .meta-value {
  margin: 0;
  font-size: 16px;
  color: var(--charcoal);
}

.project-cover {
  max-width: 1240px;
  margin: 0 auto 20px;
  padding: 0 48px;
}

.project-cover img {
  aspect-ratio: 3 / 2;
  height: auto;
  border-radius: 2px;
}

.project-photos {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px 120px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-photos img {
  aspect-ratio: 3 / 2;
  height: auto;
  border-radius: 2px;
}

/* every third photo runs full width, to break the rhythm */
.project-photos img:nth-child(3n) {
  grid-column: 1 / -1;
  aspect-ratio: 2 / 1;
}

.project-pager {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px 120px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.project-pager a {
  font-size: 15px;
  border-bottom: 1px solid var(--brass-deep);
  padding-bottom: 2px;
}

.project-pager span { color: var(--charcoal-soft); opacity: 0.5; font-size: 15px; }

/* index of all projects */
.projects-index {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
}

.project-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background: var(--cream-2);
}

.project-card-img img {
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-img img { transform: scale(1.04); }

.project-card h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 20px;
  margin: 16px 0 6px;
  line-height: 1.35;
}

.project-card p {
  margin: 0;
  font-size: 14px;
  color: var(--charcoal-soft);
}

@media (max-width: 900px) {
  .project-page-main { padding-top: 90px; }
  .project-hero, .project-cover, .project-photos, .project-pager, .projects-index {
    padding-left: 24px;
    padding-right: 24px;
  }
  .project-photos { grid-template-columns: 1fr; }
  .project-photos img:nth-child(3n) { aspect-ratio: 3 / 2; }
  .projects-index { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .projects-index { grid-template-columns: 1fr; }
  .project-meta { gap: 16px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card:hover .project-card-img img { transform: none; }
}

/* project cards on the home page link through to the project page */
.project-text h3 a:hover,
.project-image:hover + .project-text h3 a { color: var(--brass-deep); }

.project-text .text-link { margin-top: 18px; }

.project-image { display: block; }

/* ---------- Full photo gallery page ---------- */

.gallery-full {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px 120px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-tile {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background: var(--cream-2);
}

.gallery-tile img {
  transition: transform 0.5s ease;
}

.gallery-tile:hover img {
  transform: scale(1.04);
}

@media (max-width: 1100px) {
  .gallery-full { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .gallery-full { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 700px) {
  .gallery-full { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-tile:hover img { transform: none; }
}

/* ---------- Project walkthrough video ---------- */

.project-video {
  max-width: 1240px;
  margin: 0 auto 100px;
  padding: 0 48px;
}

.project-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--charcoal);
  border-radius: 2px;
}

.project-video figcaption {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

@media (max-width: 900px) {
  .project-video { padding-left: 24px; padding-right: 24px; }
}

/* ---------- Project process section (collapsed by default) ---------- */

/* <details> is used deliberately: it opens and closes with no JavaScript and
   is keyboard-operable and screen-reader-announced out of the box. */
.project-process {
  max-width: 1240px;
  margin: 0 auto 100px;
  padding: 0 48px;
}

.project-process summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  transition: border-color 0.3s ease;
}

.project-process summary::-webkit-details-marker { display: none; }

.project-process summary:hover { border-color: var(--brass-deep); }

.process-toggle-label {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--charcoal);
}

.process-toggle-label::after {
  content: ' ↓';
  color: var(--brass-deep);
  display: inline-block;
  transition: transform 0.3s ease;
}

.project-process[open] .process-toggle-label::after {
  transform: rotate(180deg);
}

.process-count {
  font-size: 13px;
  color: var(--charcoal-soft);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.process-grid img {
  aspect-ratio: 3 / 2;
  height: auto;
  border-radius: 2px;
  background: var(--cream-2);
}

@media (max-width: 900px) {
  .project-process { padding-left: 24px; padding-right: 24px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .process-toggle-label::after { transition: none; }
}

/* ---------- Press page ---------- */

.press-entries {
  max-width: 1240px;
  margin: 0 auto 100px;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 56px;
}

.press-entry {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.press-entry.featured {
  grid-column: 1 / -1;
  border-top-color: var(--brass-deep);
}

.press-entry h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 23px;
  line-height: 1.35;
  margin: 0 0 14px;
}

.press-entry.featured h2 { font-size: 30px; }

.press-entry p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal-soft);
  max-width: 62ch;
}

.press-clips {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px 120px;
}

.press-clips .section-title { margin-bottom: 48px; }

/* Clippings are scans of mixed proportions, so let them keep their own
   aspect ratio rather than cropping a magazine page to a fixed box. */
.press-clips-grid {
  columns: 4;
  column-gap: 18px;
}

.press-clips-grid img {
  width: 100%;
  height: auto;
  margin-bottom: 18px;
  break-inside: avoid;
  border-radius: 2px;
  background: var(--cream-2);
}

@media (max-width: 1100px) {
  .press-clips-grid { columns: 3; }
}

@media (max-width: 900px) {
  .press-entries, .press-clips { padding-left: 24px; padding-right: 24px; }
  .press-entries { grid-template-columns: 1fr; gap: 36px; }
  .press-clips-grid { columns: 2; }
}

@media (max-width: 560px) {
  .press-clips-grid { columns: 1; }
}

/* Header sizing on small screens: keep the bigger logo but let the tagline
   step down rather than force the header wider than the viewport. */
@media (max-width: 560px) {
  .logo-img { height: 38px; }
  .site-header.scrolled .logo-img { height: 34px; }
  .logo-tagline { font-size: 11px; }
}

@media (max-width: 380px) {
  .logo-tagline { display: none; }
}

/* Clips shot for social are not 16:9. Carry their real ratio through so the
   player fits the footage instead of letterboxing it. */
.project-video.custom-aspect video {
  aspect-ratio: var(--video-aspect);
  max-width: 560px;
  margin-inline: auto;
}

.project-video.custom-aspect figcaption {
  max-width: 560px;
  margin-inline: auto;
}

@media (max-width: 620px) {
  .project-video.custom-aspect video,
  .project-video.custom-aspect figcaption { max-width: 100%; }
}
