/* ============================================
   Tidemark Creative Co. — Site styles
   Editorial · Architectural · Restrained
   ============================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ============================================
   DEFENSIVE SIZING — locked, cannot be overridden
   ============================================ */
img.header-mark,
.site-header img.header-mark,
.wordmark-with-mark img.header-mark {
  width: 60px !important;
  height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  min-width: 60px !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}
.site-header .wordmark.wordmark-with-mark,
.wordmark-with-mark {
  display: inline-flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}
img.hero-badge,
.hero-media-logo img.hero-badge {
  width: 480px !important;
  max-width: 480px !important;
  height: auto !important;
  display: block !important;
}
img.page-header-badge-img,
.page-header-badge img {
  width: 360px !important;
  max-width: 360px !important;
  height: auto !important;
  display: block !important;
}
@media (max-width: 900px) {
  img.header-mark { width: 44px !important; height: 44px !important; max-width: 44px !important; max-height: 44px !important; min-width: 44px !important; }
  img.hero-badge,
  .hero-media-logo img.hero-badge {
    width: 260px !important;
    max-width: 260px !important;
  }
  .page-header-badge img {
    width: 220px !important;
    max-width: 220px !important;
  }
}

/* --- Tokens --- */
:root {
  --navy: #0D1F3C;
  --navy-light: #1A3358;
  --cream: #FAF7F2;
  --champagne: #C9A876;
  --champagne-soft: #E5D4B8;
  --charcoal: #1A1A1A;
  --gray: #5C6470;
  --light-gray: #E8E5DF;
  --line: rgba(13, 31, 60, 0.12);
  --line-light: rgba(250, 247, 242, 0.18);

  --font-serif: Georgia, 'Times New Roman', Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-w: 1280px;
  --gutter: clamp(20px, 4vw, 56px);

  --t-fast: 200ms cubic-bezier(.2,.7,.3,1);
  --t-med: 400ms cubic-bezier(.2,.7,.3,1);
}

/* --- Base --- */
body {
  font-family: var(--font-serif);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* --- Typography --- */
.eyebrow {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--champagne);
  opacity: 0.7;
}
.eyebrow.center { display: flex; justify-content: center; }
.eyebrow.center::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--champagne);
  opacity: 0.7;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy);
}
h1 { font-size: clamp(40px, 6.5vw, 84px); }
h2 { font-size: clamp(32px, 4.5vw, 56px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
h4 { font-size: clamp(18px, 1.8vw, 22px); }
.italic { font-style: italic; }

p { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.7; color: var(--charcoal); }
.lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--charcoal); }
.muted { color: var(--gray); }

/* On navy backgrounds */
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--cream); }
.on-dark p, .on-dark .lede { color: rgba(250, 247, 242, 0.85); }
.on-dark .muted { color: rgba(250, 247, 242, 0.6); }

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: clamp(64px, 9vw, 128px) 0;
}
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.section.navy { background: var(--navy); color: var(--cream); }
.section.navy h1, .section.navy h2, .section.navy h3 { color: var(--cream); }

.rule {
  width: 100%;
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0;
}
.rule.gold { background: var(--champagne); opacity: 0.5; }
.rule.short { width: 48px; }
.rule.center { margin-left: auto; margin-right: auto; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header.dark {
  background: rgba(13, 31, 60, 0.88);
  border-bottom: 1px solid var(--line-light);
}
.site-header.dark .nav a { color: var(--cream); }
.site-header.dark .wordmark { color: var(--cream); }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 250ms cubic-bezier(.2,.7,.3,1);
}
.site-header.is-scrolled .header-inner {
  padding-top: 8px;
  padding-bottom: 8px;
}
.site-header.is-scrolled .header-mark {
  width: 18px;
  height: 18px;
}
.wordmark {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--navy);
  white-space: nowrap;
}
.wordmark .italic { font-style: italic; color: var(--champagne); }
.wordmark-with-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-direction: row;
}
.header-mark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 600ms cubic-bezier(.2,.7,.3,1);
  vertical-align: middle;
}
.wordmark-with-mark:hover .header-mark {
  transform: rotate(-8deg) scale(1.05);
}
.site-header.dark .header-mark {
  filter: brightness(1.15);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.nav a {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
  transition: color var(--t-fast);
}
.nav a:hover { color: var(--champagne); }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--champagne);
}
.nav-cta {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--champagne) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.mobile-toggle { display: none; font-size: 24px; color: var(--navy); padding: 4px 8px; }
.site-header.dark .mobile-toggle { color: var(--cream); }

/* --- Hero (homepage) — flexbox layout, glow centered on badge --- */
.hero {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 96px) 0;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  position: relative;
  z-index: 2;
}
.hero-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero-content .eyebrow { color: var(--champagne); }
.hero h1 {
  color: var(--cream);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.025em;
}
.hero h1 .italic { color: var(--champagne-soft); }
.hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: rgba(250, 247, 242, 0.78);
  max-width: 460px;
  margin-top: 4px;
}
.hero-cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}
.hero-media,
.hero-media-logo {
  flex: 0 0 auto;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  border: none;
  width: 540px;
  max-width: 540px;
}
/* GLOW — child of badge container, perfectly centered behind the badge */
.hero-media-logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 580px;
  height: 580px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(
      circle at center,
      rgba(201, 168, 118, 0.55) 0%,
      rgba(201, 168, 118, 0.30) 18%,
      rgba(201, 168, 118, 0.14) 36%,
      rgba(201, 168, 118, 0.05) 55%,
      transparent 72%
    );
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: heroGlow 4.5s ease-in-out infinite;
  filter: blur(2px);
}
@keyframes heroGlow {
  0%, 100% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}
.hero-badge {
  height: auto;
  filter: drop-shadow(0 10px 32px rgba(0, 0, 0, 0.35));
  animation: heroFloat 8s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-1deg); }
}
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .hero-content { align-items: center; }
  .hero-sub { text-align: center; }
  .hero-cta-row { justify-content: center; }
  .hero-media-logo { width: 100%; max-width: 100%; }
  .hero-media-logo::before { width: 300px; height: 300px; }
  .hero::before { right: 50%; transform: translate(50%, -50%); width: 500px; height: 500px; }
}

/* --- Page header (interior pages) --- */
.page-header {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 7vw, 100px);
  border-bottom: 1px solid rgba(201, 168, 118, 0.18);
}
.page-header .eyebrow { color: var(--champagne); margin-bottom: 24px; }
.page-header h1 { color: var(--cream); max-width: 14ch; }
.page-header h1 .italic { color: var(--champagne-soft); }
.page-header .lede {
  margin-top: 28px;
  max-width: 56ch;
  color: rgba(250, 247, 242, 0.82);
}

/* Page header with logo on right (used on contact + about + services) */
.page-header.with-badge .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.page-header-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 360px;
  overflow: hidden;
}
/* Gradient glow behind page-header badge — centered, pulsing, champagne */
.page-header-badge::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 560px;
  height: 560px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(
      circle at center,
      rgba(201, 168, 118, 0.50) 0%,
      rgba(201, 168, 118, 0.26) 18%,
      rgba(201, 168, 118, 0.12) 36%,
      rgba(201, 168, 118, 0.04) 55%,
      transparent 72%
    );
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: heroGlow 4.5s ease-in-out infinite;
  filter: blur(2px);
}
.page-header-badge img {
  position: relative;
  z-index: 1;
  opacity: 0.96;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.25));
}
@media (max-width: 900px) {
  .page-header.with-badge .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .page-header-badge { min-height: 240px; }
  .page-header-badge::before { width: 340px; height: 340px; }
  .page-header-badge {
    order: -1;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: 1px solid var(--champagne);
  background: transparent;
  color: var(--champagne);
  transition: all var(--t-fast);
  cursor: pointer;
}
.btn:hover {
  background: var(--champagne);
  color: var(--navy);
}
.btn-solid {
  background: var(--champagne);
  color: var(--navy);
}
.btn-solid:hover {
  background: transparent;
  color: var(--champagne);
}
.btn-ghost {
  border-color: transparent;
  color: var(--cream);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover {
  background: transparent;
  color: var(--champagne);
}
.btn-ghost::after {
  content: '→';
  font-size: 18px;
  transition: transform var(--t-fast);
}
.btn-ghost:hover::after { transform: translateX(6px); }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: all var(--t-fast);
}
.btn-arrow::after { content: '→'; transition: transform var(--t-fast); }
.btn-arrow:hover::after { transform: translateX(4px); }
.btn-arrow:hover { border-bottom-color: var(--champagne); }

/* --- Manifesto section (home) --- */
.manifesto {
  padding: clamp(80px, 11vw, 160px) 0;
  text-align: left;
  background: var(--cream);
}
.manifesto .container { max-width: 980px; }
.manifesto .eyebrow { margin-bottom: 32px; }
.manifesto h2 {
  font-style: italic;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.1;
  margin-bottom: 36px;
  max-width: 16ch;
}
.manifesto p {
  max-width: 56ch;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.8;
  margin-bottom: 22px;
}
.manifesto .signature {
  margin-top: 40px;
  font-style: italic;
  color: var(--champagne);
  font-size: 16px;
}

/* --- Three-up principles row --- */
.principles-banner {
  position: relative;
  isolation: isolate;
}
.principles-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Full-width navy banner — feathers ONLY top and bottom into the cream */
  background:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(13, 31, 60, 0.30) 8%,
      rgba(13, 31, 60, 0.72) 16%,
      var(--navy) 26%,
      var(--navy) 74%,
      rgba(13, 31, 60, 0.72) 84%,
      rgba(13, 31, 60, 0.30) 92%,
      transparent 100%
    );
  z-index: -1;
  pointer-events: none;
}
.principles-banner .container {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 96px;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  /* No top/bottom borders — clean fade-in to navy */
}
.principle {
  padding: 56px 40px;
  /* Subtle vertical dividers in champagne instead of light gray */
  border-right: 1px solid rgba(201, 168, 118, 0.14);
}
.principle:last-child { border-right: none; }
.principle .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--champagne);
  margin-bottom: 18px;
  display: block;
}
.principle h3 {
  font-size: 24px;
  font-style: italic;
  margin-bottom: 16px;
  color: var(--cream);
}
.principle p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(250, 247, 242, 0.78);
}

/* --- Work grid --- */
.work {
  background: var(--cream);
}
.work-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
  align-items: end;
}
.work-header h2 { max-width: 14ch; }
.work-header p { max-width: 42ch; color: var(--gray); }

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.work-card {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  cursor: pointer;
  transition: transform var(--t-med);
  display: flex;
  flex-direction: column;
}
.work-card:hover { transform: translateY(-4px); }
.work-card .media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy);
}
.work-card .media img,
.work-card .media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(.2,.7,.3,1);
}
.work-card:hover .media img,
.work-card:hover .media video { transform: scale(1.04); }
.work-card .caption {
  padding: 20px 22px 22px;
  background: var(--cream);
  border-top: 1px solid var(--line);
}
.work-card .caption .number {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  color: var(--champagne);
  letter-spacing: 0.08em;
}
.work-card .caption h3 {
  font-size: 22px;
  margin: 6px 0 6px;
  line-height: 1.15;
}
.work-card .caption h3 .italic { color: var(--champagne); }
.work-card .caption p {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
}

.work-card.feature { grid-column: 1 / -1; }
.work-card.feature .media { aspect-ratio: 16 / 9; }
.work-card.feature .caption { padding: 28px 32px 32px; }
.work-card.feature .caption h3 { font-size: 28px; }

@media (min-width: 900px) {
  .work-grid.layout-hero {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-grid.layout-hero .work-card.feature { grid-column: span 2; }
}

/* --- Featured case study — editorial layout --- */
.case-video-frame {
  position: relative;
  margin: clamp(28px, 4vw, 48px) 0 0;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(13, 31, 60, 0.22);
  border: 1px solid var(--line);
  background: var(--navy);
}
.case-video-frame video {
  display: block;
  width: 100%;
  height: auto;
  /* Match the video's actual aspect ratio (1280x658) so nothing gets cropped */
  aspect-ratio: 1280 / 658;
  object-fit: contain;
  object-position: center center;
  background: var(--navy);
}
.case-video-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 168, 118, 0.18);
  pointer-events: none;
  z-index: 2;
}

/* Case study editorial write-up — same voice as the rest of the site */
.case-write-up {
  max-width: 880px;
  margin: clamp(48px, 6vw, 80px) auto 0;
  padding: 0 var(--gutter);
  text-align: left;
}
.case-write-up .eyebrow {
  display: block;
  margin-bottom: 24px;
  font-size: 13px;
}
.case-write-up .case-lede {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 28px;
  letter-spacing: -0.008em;
}
.case-write-up p {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 28px;
}
.case-write-up p .italic {
  font-style: italic;
  color: var(--champagne);
}
.case-live-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--champagne);
  border-bottom: 1px solid rgba(201, 168, 118, 0.4);
  padding-bottom: 4px;
  margin-top: 16px;
  transition: border-color 300ms ease, color 300ms ease;
}
.case-live-link .arrow {
  font-style: normal;
  transition: transform 300ms cubic-bezier(.2,.7,.3,1);
}
.case-live-link:hover {
  border-bottom-color: var(--champagne);
  color: var(--navy);
}
.case-live-link:hover .arrow { transform: translateX(6px); }
@media (max-width: 900px) {
  .case-write-up .case-lede { font-size: 22px; }
  .case-write-up p { font-size: 17px; }
  .case-live-link { font-size: 19px; }
}

/* Old byline removed — kept hidden in case any deploy still uses it */
.case-byline {
  display: none !important;
}

/* OLD: */
.case-byline-legacy {
  display: grid;
  grid-template-columns: 1fr 1.4fr 2fr auto;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
  align-items: start;
}
.case-byline-item .label {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--champagne);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.case-byline-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--charcoal);
  margin: 0;
}
.case-byline-item.studio p {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--navy);
  line-height: 1.3;
}
.case-byline-item.link a {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--champagne);
  border-bottom: 1px solid rgba(201, 168, 118, 0.3);
  white-space: nowrap;
  transition: border-color 300ms ease;
}
.case-byline-item.link a:hover {
  border-bottom-color: var(--champagne);
}
.case-byline-item.link {
  align-self: end;
  padding-bottom: 2px;
}

@media (max-width: 900px) {
  .case-byline {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .case-byline-item.link { align-self: start; }
}

/* Keep old class for backward compat */
.case-study-feature {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: stretch;
  background: var(--navy);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 8px;
}
.case-media {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 16 / 10;
}
.case-media video,
.case-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-meta {
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--cream);
}
.case-meta dl { display: grid; gap: 24px; }
.case-meta dt {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 4px;
}
.case-meta dd {
  font-size: 16px;
  color: var(--cream);
  line-height: 1.5;
}
.case-meta dd a {
  color: var(--champagne);
  border-bottom: 1px solid rgba(201, 168, 118, 0.3);
  transition: border-color var(--t-fast);
}
.case-meta dd a:hover { border-bottom-color: var(--champagne); }
/* Case study endnote — editorial, intentional */
.case-endnote {
  margin-top: clamp(56px, 7vw, 96px);
  text-align: center;
  position: relative;
}
.case-endnote::before {
  content: '';
  display: block;
  width: 56px;
  height: 1px;
  background: var(--champagne);
  margin: 0 auto clamp(24px, 3vw, 36px);
  opacity: 0.6;
}
.case-endnote .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
}
.case-endnote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--charcoal);
  max-width: 48ch;
  margin: 0 auto;
}
.case-endnote p .italic { color: var(--champagne); font-style: italic; }

/* Old case-note hidden if still present */
.case-note { display: none; }

@media (max-width: 900px) {
  .case-study-feature { grid-template-columns: 1fr; gap: 0; }
  .case-media { aspect-ratio: 16 / 9; }
  .case-meta { padding: 32px 28px; }
}

/* Two-column services grid (v2 — signs removed) */
.services-grid.two-up {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
  .services-grid.two-up { grid-template-columns: 1fr; }
}

/* --- Services preview (home) --- */
.services-preview {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(80px, 10vw, 140px) 0;
}
.services-preview .eyebrow { color: var(--champagne); margin-bottom: 28px; }
.services-preview h2 { color: var(--cream); margin-bottom: 64px; max-width: 16ch; }
.services-preview h2 .italic { color: var(--champagne-soft); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-light);
}
.service-block {
  padding: 48px 40px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 360px;
}
.service-block:last-child { border-right: none; }
.service-block .num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--champagne);
  font-size: 14px;
}
.service-block h3 {
  font-size: 28px;
  color: var(--cream);
  font-style: normal;
}
.service-block h3 .italic { color: var(--champagne-soft); font-style: italic; }
.service-block p {
  font-size: 15px;
  color: rgba(250, 247, 242, 0.7);
  line-height: 1.7;
  flex-grow: 1;
}
.service-block .price {
  font-style: italic;
  color: var(--champagne);
  font-size: 14px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(201, 168, 118, 0.2);
}

/* --- Services page detailed blocks --- */
.service-detail {
  padding: clamp(72px, 9vw, 120px) 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:last-of-type { border-bottom: none; }
.service-detail .container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.service-detail .side {
  position: sticky;
  top: 100px;
}
.service-detail .num-big {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 64px;
  color: var(--champagne);
  line-height: 1;
  margin-bottom: 20px;
}
.service-detail h2 {
  font-size: clamp(34px, 4.2vw, 52px);
  margin-bottom: 28px;
}
.service-detail h2 .italic { color: var(--champagne); }
.service-detail .description p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 20px;
  color: var(--charcoal);
}
.service-detail .includes {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.service-detail .includes h4 {
  font-style: italic;
  color: var(--gray);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.service-detail .includes ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
}
.service-detail .includes li {
  font-size: 15px;
  color: var(--charcoal);
  padding-left: 22px;
  position: relative;
  line-height: 1.55;
}
.service-detail .includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1px;
  background: var(--champagne);
}
.price-card {
  background: var(--navy);
  color: var(--cream);
  padding: 36px 32px;
  margin-top: 40px;
}
.price-card.status-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border: 1px solid rgba(201, 168, 118, 0.3);
}
.price-card.status-card .amount {
  color: var(--champagne);
}
.price-card .label {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--champagne);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.price-card .amount {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--cream);
  margin: 8px 0 4px;
  line-height: 1.1;
}
.price-card .amount .italic { color: var(--champagne-soft); }
.price-card .terms {
  font-size: 14px;
  color: rgba(250, 247, 242, 0.65);
  line-height: 1.55;
  margin-top: 12px;
}

/* --- About page --- */
.about-intro {
  padding: clamp(72px, 9vw, 120px) 0;
}
.about-intro .container {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-intro .side .eyebrow { margin-bottom: 28px; }
.about-intro .side h2 {
  font-style: italic;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  color: var(--navy);
}
.about-intro .copy p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-intro .copy .first-letter::first-letter {
  font-size: 64px;
  float: left;
  line-height: 0.9;
  padding: 4px 12px 0 0;
  color: var(--champagne);
  font-style: italic;
}

.pull-quote {
  background: var(--cream);
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.pull-quote .container { max-width: 800px; }
.pull-quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.3;
  color: var(--navy);
}
.pull-quote blockquote::before {
  content: '"';
  display: block;
  color: var(--champagne);
  font-size: 56px;
  line-height: 0.8;
  margin-bottom: 8px;
}
.pull-quote cite {
  display: block;
  margin-top: 28px;
  font-style: italic;
  color: var(--champagne);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-process {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--navy);
  color: var(--cream);
}
.about-process .eyebrow { color: var(--champagne); margin-bottom: 28px; }
.about-process h2 { color: var(--cream); max-width: 14ch; margin-bottom: 64px; }
.about-process h2 .italic { color: var(--champagne-soft); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 32px;
}
/* Horizontal timeline line connecting all four steps */
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(201, 168, 118, 0.15) 0%,
    rgba(201, 168, 118, 0.5) 50%,
    rgba(201, 168, 118, 0.15) 100%);
  z-index: 0;
}
.process-step {
  padding: 64px 28px 36px;
  border-right: 1px solid var(--line-light);
  position: relative;
}
.process-step:last-child { border-right: none; }
/* The marker dot on the timeline — positioned at the top edge to align with line */
.process-step::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 50%;
  width: 13px;
  height: 13px;
  background: var(--navy);
  border: 1px solid var(--champagne);
  border-radius: 50%;
  transform: translateX(-50%);
  transition: background 500ms ease, transform 400ms cubic-bezier(.2,.7,.3,1), box-shadow 500ms ease;
  z-index: 2;
}
.process-step::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 50%;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(201, 168, 118, 0.18);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.process-step:hover::before {
  background: var(--champagne);
  transform: translateX(-50%) scale(1.15);
  box-shadow: 0 0 24px rgba(201, 168, 118, 0.4);
}
.process-step.is-active::before {
  background: var(--champagne);
}
.process-step .num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--champagne);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}
.process-step h3 {
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 12px;
  font-style: italic;
}
.process-step p {
  font-size: 14px;
  color: rgba(250, 247, 242, 0.7);
  line-height: 1.65;
}

.cnc-broll {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  margin-top: 64px;
}
.cnc-broll video {
  width: 100%;
  height: clamp(280px, 40vw, 480px);
  object-fit: cover;
  opacity: 0.55;
}
.cnc-broll .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent 0%, rgba(13,31,60,0.4) 100%);
}
.cnc-broll .overlay p {
  font-style: italic;
  color: var(--cream);
  font-size: clamp(20px, 2.4vw, 28px);
  text-align: center;
  max-width: 22ch;
}

/* Ethos block — typography-led, replaces media B-roll */
.ethos-block {
  padding: clamp(80px, 11vw, 140px) 0;
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  border-top: 1px solid var(--line);
}
.ethos-block .eyebrow { margin-bottom: 40px; }
.ethos-block .ethos-line {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  color: var(--cream);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.ethos-block .ethos-line .italic { color: var(--champagne); }

/* --- Contact form --- */
.contact-section {
  padding: clamp(72px, 9vw, 120px) 0;
}
.contact-section .container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-info .eyebrow { margin-bottom: 24px; }
.contact-info h2 { margin-bottom: 28px; }
.contact-info h2 .italic { color: var(--champagne); }
.contact-info p { margin-bottom: 20px; }
.contact-meta {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.contact-meta dt {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 6px;
}
.contact-meta dd {
  font-size: 16px;
  color: var(--charcoal);
  margin-bottom: 24px;
}
.contact-meta dd a { color: var(--navy); border-bottom: 1px solid var(--champagne); }
.contact-meta dd a:hover { color: var(--champagne); }

.contact-form {
  background: var(--cream);
  padding: clamp(32px, 4vw, 48px);
  border: 1px solid var(--line);
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.contact-form .field { margin-bottom: 24px; }
.contact-form label {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--charcoal);
  transition: border-color var(--t-fast);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--champagne);
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-serif);
  line-height: 1.6;
}
.contact-form .submit-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-form .submit-row .note {
  font-style: italic;
  font-size: 13px;
  color: var(--gray);
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(56px, 7vw, 96px) 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-light);
}
.footer-brand .footer-mark {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.03em;
  color: var(--cream);
  display: block;
  margin-bottom: 14px;
}
.footer-brand .footer-mark .italic { color: var(--champagne); }
.footer-brand .tagline {
  font-style: italic;
  font-size: 14px;
  color: rgba(250, 247, 242, 0.65);
  margin-top: 12px;
  max-width: 32ch;
  line-height: 1.55;
}
.footer-col h5 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(250, 247, 242, 0.78);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--champagne); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(250, 247, 242, 0.5);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .italic { color: var(--champagne); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero {
    padding: 48px 0;
  }
  .hero-content { gap: 22px; }

  .work-header { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card.feature { grid-column: auto; }
  .work-card.feature .media { aspect-ratio: 16 / 10; }

  .principles { grid-template-columns: 1fr; }
  .principle { border-right: none; border-bottom: 1px solid var(--line); padding: 40px 0; }
  .principle:last-child { border-bottom: none; }

  .services-grid { grid-template-columns: 1fr; }
  .service-block { border-right: none; min-height: auto; padding: 40px 0; }

  .service-detail .container { grid-template-columns: 1fr; gap: 32px; }
  .service-detail .side { position: static; }
  .service-detail .num-big { font-size: 44px; }
  .service-detail .includes ul { grid-template-columns: 1fr; }

  .about-intro .container { grid-template-columns: 1fr; gap: 32px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-step { padding: 32px 20px; }

  .contact-section .container { grid-template-columns: 1fr; gap: 40px; }
  .contact-form .form-row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 0; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }

  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 24px var(--gutter);
    gap: 18px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }
  .site-header.dark .nav.open { background: var(--navy); border-bottom-color: var(--line-light); }
  .mobile-toggle { display: block; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--line-light); }
  .process-step:last-child { border-bottom: none; }
}

/* --- Ultra-narrow screens (Samsung Fold outer, ~260–400px) --- */
@media (max-width: 400px) {
  img.hero-badge,
  .hero-media-logo img.hero-badge {
    width: 160px !important;
    max-width: 160px !important;
  }
  .hero-media-logo::before { width: 200px !important; height: 200px !important; }
  .page-header-badge::before { width: 200px !important; height: 200px !important; }
  .hero-eyebrow { font-size: 0.62rem; }
  .hero-headline { font-size: clamp(1.75rem, 8vw, 2.4rem); }
}

/* ============================================
   ANIMATION SYSTEM
   Editorial motion — restrained, slow, intentional
   ============================================ */

/* --- Initial page-load fade-up (existing) --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 900ms cubic-bezier(.2,.7,.3,1) both; }
.delay-1 { animation-delay: 120ms; }
.delay-2 { animation-delay: 260ms; }
.delay-3 { animation-delay: 400ms; }
.delay-4 { animation-delay: 540ms; }
.delay-5 { animation-delay: 680ms; }

/* --- Scroll-triggered reveals — progressive enhancement --- */
/* Default state: VISIBLE. If JS fails, content still shows. */
.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 1000ms cubic-bezier(.2,.7,.3,1),
    transform 1000ms cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
/* Only when JS has marked elements as pending — hidden until scrolled into view */
.reveal.js-pending {
  opacity: 0;
  transform: translateY(32px);
}
.reveal.js-pending.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Backwards compat: old code that adds .is-visible directly still works */
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal variants */
.reveal-slow { transition-duration: 1400ms; }
.reveal-up-small { transform: translateY(16px); }
.reveal-up-large { transform: translateY(56px); }
.reveal-left { transform: translateX(-32px); }
.reveal-left.is-visible { transform: translateX(0); }
.reveal-right { transform: translateX(32px); }
.reveal-right.is-visible { transform: translateX(0); }
.reveal-scale { transform: scale(0.96); }
.reveal-scale.is-visible { transform: scale(1); }

/* Stagger children — each takes 90ms longer */
.reveal-stagger > * {
  opacity: 1;
  transform: none;
  transition:
    opacity 900ms cubic-bezier(.2,.7,.3,1),
    transform 900ms cubic-bezier(.2,.7,.3,1);
}
.reveal-stagger.js-pending > * {
  opacity: 0;
  transform: translateY(28px);
}
.reveal-stagger.js-pending.is-visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.js-pending.is-visible > *:nth-child(2) { transition-delay: 110ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.js-pending.is-visible > *:nth-child(3) { transition-delay: 220ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.js-pending.is-visible > *:nth-child(4) { transition-delay: 330ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.js-pending.is-visible > *:nth-child(5) { transition-delay: 440ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.js-pending.is-visible > *:nth-child(6) { transition-delay: 550ms; opacity: 1; transform: translateY(0); }
/* Backwards compat */
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }

/* --- Horizontal rule drawing animation --- */
.rule-draw {
  position: relative;
  overflow: hidden;
}
.rule-draw::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform-origin: left;
  transform: scaleX(1);
  transition: transform 1200ms cubic-bezier(.2,.7,.3,1) 200ms;
}
.rule-draw.is-visible::after {
  transform: scaleX(0);
}

/* Eyebrow with animated line */
.eyebrow.animated-line::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 800ms cubic-bezier(.2,.7,.3,1) 300ms;
}
.eyebrow.animated-line.is-visible::before {
  transform: scaleX(1);
}

/* --- Header backdrop intensifies on scroll --- */
.site-header {
  transition:
    background-color 300ms ease,
    backdrop-filter 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease;
}
.site-header.is-scrolled {
  background: rgba(250, 247, 242, 0.98);
  box-shadow: 0 1px 24px rgba(13, 31, 60, 0.04);
}
.site-header.dark.is-scrolled {
  background: rgba(13, 31, 60, 0.96);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.2);
}

/* --- Work card refinement (smoother) --- */
.work-card {
  transition: transform 600ms cubic-bezier(.2,.7,.3,1);
}
.work-card .media img,
.work-card .media video {
  transition: transform 1200ms cubic-bezier(.2,.7,.3,1);
}

/* --- Magnetic-feel button hover --- */
.btn, .btn-solid {
  transition:
    background 300ms cubic-bezier(.2,.7,.3,1),
    color 300ms cubic-bezier(.2,.7,.3,1),
    border-color 300ms cubic-bezier(.2,.7,.3,1),
    transform 200ms cubic-bezier(.2,.7,.3,1);
}
.btn:hover, .btn-solid:hover {
  transform: translateY(-2px);
}
.btn-ghost::after {
  transition: transform 300ms cubic-bezier(.2,.7,.3,1);
}

/* --- Pull quote enhancement --- */
.pull-quote blockquote::before {
  display: inline-block;
  transform: scale(0.6);
  opacity: 0;
  transition:
    transform 700ms cubic-bezier(.2,.7,.3,1) 200ms,
    opacity 700ms ease 200ms;
}
.pull-quote.is-visible blockquote::before {
  transform: scale(1);
  opacity: 1;
}

/* --- Case study media reveal --- */
.case-media-wrapper {
  overflow: hidden;
}
.case-study-feature.reveal .case-media {
  transform: scale(1.08);
  transition: transform 1600ms cubic-bezier(.2,.7,.3,1);
}
.case-study-feature.is-visible .case-media {
  transform: scale(1);
}

/* --- Marquee strip (subtle editorial detail) --- */
.marquee {
  background: var(--navy);
  color: var(--cream);
  border-top: 1px solid rgba(201, 168, 118, 0.18);
  border-bottom: 1px solid rgba(201, 168, 118, 0.18);
  overflow: hidden;
  padding: 28px 0;
  white-space: nowrap;
  position: relative;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 60px;
  animation: marqueeScroll 60s linear infinite;
  padding-right: 60px;
}
.marquee-item {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: 0.02em;
  color: rgba(250, 247, 242, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee-item::after {
  content: '◆';
  color: var(--champagne);
  font-style: normal;
  font-size: 10px;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* Marquee scrolls continuously — never pauses, even on hover */
.marquee:hover .marquee-track { animation-play-state: running; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-badge { animation: none; }
  .marquee-track { animation: none; }
}

/* ============================================================
   v15 IMPROVEMENT ADDITIONS — 2026-05-26 (Opus 4.7 execution)
   Items 3, 4, 5, 6, 11 from v15_improvement_notes.md
   ============================================================ */

/* Item 3: Float animation on interior page-header badges
   (matches hero badge float for visual cohesion across pages)
   ---------------------------------------------------------- */
.page-header-badge img {
  animation: heroFloat 8s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

/* Item 4: Marquee edge fade — premium editorial soft edges
   (gradient fades from navy to transparent on each side)
   ---------------------------------------------------------- */
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  pointer-events: none;
  z-index: 2;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(13, 31, 60, 0) 100%);
}
.marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--navy) 0%, rgba(13, 31, 60, 0) 100%);
}

/* Item 6: Process timeline horizontal line draws left-to-right
   when section enters viewport — adds narrative motion to the timeline
   ---------------------------------------------------------- */
.process-steps::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1400ms cubic-bezier(0.22, 0.61, 0.36, 1) 200ms;
}
.process-steps.is-visible::before {
  transform: scaleX(1);
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .process-steps::before { transform: scaleX(1); transition: none; }
}

/* Item 11: Nav link underline draws on hover (Monocle-style editorial micro)
   Replaces the static color-only hover with an underline that grows from left.
   .active state keeps full underline.
   ---------------------------------------------------------- */
.nav a:not(.nav-cta) {
  overflow: visible;
}
.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--champagne);
  transition: width 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav a.active::after { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .nav a:not(.nav-cta)::after { transition: none; }
}

/* Item 5: Mobile nav opens with smooth transition
   Replaces the snap-open (display: none → display: flex) with
   a height + opacity + padding transition.
   Sits inside max-width: 900px breakpoint to match the existing mobile nav block.
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .nav {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 0 var(--gutter);
    gap: 0;
    border-bottom: 0 solid transparent;
    align-items: flex-start;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      max-height 380ms cubic-bezier(0.22, 0.61, 0.36, 1),
      opacity 280ms ease,
      padding 380ms cubic-bezier(0.22, 0.61, 0.36, 1),
      gap 280ms ease,
      border-bottom-color 280ms ease;
  }
  .nav.open {
    max-height: 600px;
    opacity: 1;
    padding: 24px var(--gutter);
    gap: 18px;
    border-bottom-color: var(--line);
    pointer-events: auto;
  }
  .site-header.dark .nav {
    background: var(--navy);
  }
  .site-header.dark .nav.open {
    border-bottom-color: var(--line-light);
  }
  /* Disable the hover underline on mobile (acts as full-width nav row instead) */
  .nav a:not(.nav-cta)::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav { transition: none !important; }
}
