/* ═══════════════════════════════════════════════
   Shared sub-page components
   Used by /work, /work/*, /team, /the-edit, /contact, etc.
═══════════════════════════════════════════════ */

/* ── Image placeholder (same as home) ────── */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, var(--lum-3), var(--lum-1));
  border: 1px solid var(--edge-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hazelnut);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: 2rem;
  position: relative;
}
.img-placeholder::before {
  content: attr(data-size);
  position: absolute;
  bottom: 1rem; right: 1rem;
  font-size: 0.55rem;
  color: var(--gray-soft);
  letter-spacing: 0.15em;
}
.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 1rem;
  border: 1px solid var(--hz-border);
  pointer-events: none;
}
.img-placeholder.portrait { aspect-ratio: 4 / 5; }
.img-placeholder.square { aspect-ratio: 1 / 1; }
.img-placeholder.wide { aspect-ratio: 21 / 9; }
.light .img-placeholder, .westar .img-placeholder {
  background: linear-gradient(135deg, rgba(1,4,12,0.08), rgba(1,4,12,0.04));
  color: var(--charcoal);
  border-color: var(--divider-light);
}
.light .img-placeholder::after, .westar .img-placeholder::after { border-color: rgba(1,4,12,0.18); }

/* ── Page hero (shared shell) ────────────── */
.page-hero {
  padding: 12rem 2rem 6rem;
  text-align: center;
  position: relative;
}

/* Scroll cue — thin hazelnut line pulsing downward, centered at hero bottom */
.page-hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 3vh, 2.5rem);
  width: 1px;
  height: 3.5rem;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent 0%, var(--hazelnut) 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
  animation: pageHeroScrollCue 2.4s ease-in-out infinite;
  opacity: 0.9;
}
@keyframes pageHeroScrollCue {
  0%   { transform: translate(-50%, -60%); opacity: 0; }
  40%  { opacity: 0.9; }
  100% { transform: translate(-50%, 40%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero::after { animation: none; opacity: 0.45; }
}
@media (max-width: 720px) {
  .page-hero::after { height: 2.5rem; }
}
.page-hero .eyebrow {
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.page-hero .eyebrow::before { display: none; }
.page-hero .eyebrow::after {
  content: '';
  width: 40px; height: 1px;
  background: var(--hazelnut);
  opacity: 1;
}
.page-hero h1 {
  max-width: 20ch;
  margin: 0 auto;
}
.page-hero p { max-width: 58ch; margin: 2rem auto 0; }
@media (max-width: 720px) { .page-hero { padding: 9rem 1.5rem 4rem; } }

/* ── Grid of cards (work index, edit index) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}
@media (max-width: 720px) { .card-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}
@media (max-width: 960px) { .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid-3 { grid-template-columns: 1fr; } }

.card {
  display: block;
  color: inherit;
  transition: transform 0.6s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card-image { margin-bottom: 1.5rem; overflow: hidden; }
.card-image .img-placeholder { aspect-ratio: 4 / 3; transition: transform 1s var(--ease); }
.card-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .img-placeholder,
.card:hover .card-image img { transform: scale(1.04); }
.card-meta {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.75rem;
}
/* The Edit hub + sibling rails carry the brand color on card meta —
   matches the homepage Edit teaser treatment. */
[data-edit-cards] .card-meta,
.westar .card-meta { color: var(--hazelnut); }
.card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--porcelain);
  margin-bottom: 0.75rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.card h3 em { font-style: italic; color: var(--hazelnut); }
.card p { font-size: 0.9rem; max-width: none; color: var(--gray); }
.card.placeholder { pointer-events: none; }
.card.placeholder .card-meta,
.card.placeholder h3,
.card.placeholder p { opacity: 0.75; }
.card.placeholder .card-image { opacity: 0.28; }
.card--coming .card-image { opacity: 0.28; }
.card.placeholder::after {
  content: 'Coming';
  display: block;
  margin-top: 0.75rem;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-soft);
  font-style: italic;
}

/* ── Two-column feature ─────────────────── */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin: 6rem 0;
}
@media (max-width: 900px) { .feature-split { grid-template-columns: 1fr; gap: 3rem; } }
.feature-split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .feature-split.reverse > :first-child { order: 0; } }

/* ── Page backdrop (randomized image, heavy overlay) ───
   Used on /contact/ and other named pages. The named
   image fades behind a ~88% ink overlay so the page
   content reads as primary and the imagery reads as
   atmosphere. Per-page image set is chosen at random
   on load via inline script. */
body.has-contact-bg,
body.has-page-bg { background: transparent !important; }
.contact-bg,
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--lum-0);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.contact-bg::after,
.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(1, 4, 12, 0.88);
}
.has-contact-bg .page-hero { padding-bottom: 2rem; }
.has-contact-bg .form-block { margin-top: 2rem; }
/* Suppress the hero scroll cue when a form sits directly below the hero */
.has-contact-bg .page-hero::after { display: none; }

/* ── Contact form ─────────────────────── */
.form-block {
  max-width: 580px;
  margin: 4rem auto 0;
  background: rgba(20, 24, 34, 0.55);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  border: 1px solid rgba(232, 228, 223, 0.08);
  border-radius: 16px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.form-block .form-field:last-of-type { margin-bottom: 0.5rem; }

/* Email-capture forms on Coming-Soon pages (shop, events) get the same panel */
.coming-soon .email-capture {
  background: rgba(20, 24, 34, 0.55);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  border: 1px solid rgba(232, 228, 223, 0.08);
  border-radius: 16px;
  padding: 0.5rem 1.25rem;
}
.form-field {
  margin-bottom: 2rem;
  position: relative;
}
.form-field label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hazelnut);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--divider-dark);
  color: var(--porcelain);
  font: 300 1rem var(--sans);
  padding: 0.75rem 0;
  transition: border-color 0.3s ease;
  font-family: var(--sans);
}
.form-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--hazelnut);
}
.form-submit {
  margin-top: 1.5rem;
  text-align: center;
}
.form-footnote {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-soft);
  margin-top: 2rem;
  font-style: italic;
}

.light .form-field input, .light .form-field textarea {
  color: var(--ink);
  border-bottom-color: var(--divider-light);
}
.light .form-field label { color: var(--charcoal); }
.light .form-field input:focus,
.light .form-field textarea:focus { border-bottom-color: var(--ink); }

/* ── AI assistant bubble (contact page) ─── */
.ai-bubble {
  background: linear-gradient(145deg, var(--lum-3), var(--lum-1));
  border: 1px solid var(--hz-border);
  padding: 2.5rem;
  margin: 4rem auto 0;
  max-width: 680px;
  position: relative;
}
.ai-bubble::before {
  content: '';
  position: absolute;
  top: 1rem; left: 1rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--hazelnut);
  box-shadow: 0 0 0 0 var(--hazelnut);
  animation: aiPulse 2.4s ease-out infinite;
}
@keyframes aiPulse {
  0% { box-shadow: 0 0 0 0 rgba(205, 169, 138, 0.6); }
  100% { box-shadow: 0 0 0 14px rgba(205, 169, 138, 0); }
}
.ai-bubble .label { display: block; margin-bottom: 1rem; color: var(--hazelnut); }
.ai-bubble p {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--porcelain);
  line-height: 1.55;
  font-weight: 400;
  font-style: italic;
  max-width: none;
}
.ai-bubble .ai-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  color: var(--hazelnut);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.ai-bubble .ai-cta:hover { color: var(--porcelain); }
.ai-bubble .ai-cta .arrow { transition: transform 0.4s var(--ease); }
.ai-bubble .ai-cta:hover .arrow { transform: translateX(4px); }

/* ── AI Agent guided intake ────────────── */
.ai-bubble .label .coming {
  display: inline-block;
  margin-left: 0.75rem;
  padding: 0.2rem 0.55rem;
  font-style: normal;
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  color: var(--hazelnut);
  border: 1px solid var(--hz-border-hot);
  border-radius: 2px;
  opacity: 0.85;
}
.ai-bubble .ai-q {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--porcelain);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 1.25rem;
  max-width: none;
}
.ai-bubble .ai-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
@media (max-width: 520px) { .ai-bubble .ai-choices { grid-template-columns: 1fr; } }
.ai-bubble .ai-choices button {
  text-align: left;
  padding: 0.95rem 1rem;
  font: 400 0.82rem var(--sans);
  color: var(--porcelain);
  background: rgba(232, 228, 223, 0.02);
  border: 1px solid var(--edge-2);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.ai-bubble .ai-choices button:hover {
  border-color: var(--hz-border-hot);
  background: var(--hz-dim);
  color: var(--hazelnut);
}
.ai-bubble .ai-input {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--edge-2);
  color: var(--porcelain);
  font: 300 0.95rem var(--sans);
  padding: 0.65rem 0;
  margin-bottom: 0.75rem;
  transition: border-color 0.3s ease;
}
.ai-bubble textarea.ai-input { resize: vertical; line-height: 1.6; min-height: 96px; margin-bottom: 1.25rem; }
.ai-bubble .ai-input:focus { outline: none; border-bottom-color: var(--hazelnut); }
.ai-bubble .ai-input::placeholder { color: var(--gray-soft); }
.ai-bubble .ai-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 520px) { .ai-bubble .ai-pair { grid-template-columns: 1fr; gap: 0; } }
.ai-bubble .ai-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  gap: 1rem;
}
.ai-bubble .ai-back {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.3s ease;
}
.ai-bubble .ai-back:hover { color: var(--porcelain); }
.ai-bubble .ai-actions .ai-cta { margin-top: 0; }
.ai-bubble .ai-note {
  margin-top: 1rem;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--gray-soft);
  max-width: none;
}

.ai-bubble.is-collapsed {
  opacity: 0.55;
  transform: scale(0.98);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s var(--ease);
}
.ai-bubble.is-collapsed .ai-stage { display: none; }
.ai-bubble.is-collapsed::before { animation: none; opacity: 0.3; }

/* Pulse on the main Send Inquiry button after intake completes */
.form-submit .btn.is-pulse {
  animation: sendPulse 1.2s ease-out 2;
}
@keyframes sendPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(205, 169, 138, 0); }
  40% { box-shadow: 0 0 0 10px rgba(205, 169, 138, 0.25); }
}

@media (prefers-reduced-motion: reduce) {
  .ai-bubble::before { animation: none; }
  .form-submit .btn.is-pulse { animation: none; }
  .ai-bubble.is-collapsed { transition: none; }
}

/* ── Back link ──────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hazelnut);
  margin-bottom: clamp(3rem, 6vh, 5rem);
  transition: color 0.3s ease;
}
.back-link:hover { color: var(--porcelain); }
.back-link .arrow { display: inline-block; transition: transform 0.4s var(--ease); }
.back-link:hover .arrow { transform: translateX(-4px); }

/* ── Editorial article (The Edit posts) ─── */
.article {
  padding: 10rem 2rem 6rem;
  color: var(--porcelain);
}
.article .article-meta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hazelnut);
}
.article .article-meta span { position: relative; }
.article .article-meta span + span::before {
  content: '·';
  position: absolute;
  left: -0.7rem;
  color: var(--gray-soft);
}
.article h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 auto 2rem;
  text-align: center;
}
.article h1 em { font-style: italic; color: var(--hazelnut); }
.article .article-dek {
  font-size: 1.1rem;
  max-width: 56ch;
  margin: 0 auto 4rem;
  text-align: center;
  line-height: 1.6;
  color: var(--gray);
  font-style: italic;
}
.article .article-hero {
  max-width: 1200px;
  margin: 0 auto 5rem;
}
.article .article-hero img { margin: 0 auto; }
.article .article-hero .img-placeholder { aspect-ratio: 16 / 9; }
.article .article-body {
  max-width: 640px;
  margin: 0 auto;
}
.article .article-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gray);
  margin-bottom: 1.5rem;
  max-width: none;
}
.article .article-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.8rem;
  float: left;
  line-height: 0.85;
  padding: 0.5rem 0.6rem 0 0;
  color: var(--hazelnut);
}
.article .article-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  margin: 3.5rem 0 1.25rem;
  color: var(--porcelain);
  letter-spacing: -0.01em;
}
.article .article-body h2 em { font-style: italic; color: var(--hazelnut); }
.article .article-body blockquote {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--porcelain);
  margin: 3rem 0;
  padding-left: 2rem;
  border-left: 2px solid var(--hazelnut);
}
.article .article-body em { color: var(--porcelain); font-style: italic; }
.article .article-inline-image {
  margin: 3rem 0;
}
.article .article-inline-image img { margin: 0 auto; }
.article .article-inline-image figcaption {
  font-size: 0.72rem;
  color: var(--gray-soft);
  text-align: center;
  margin-top: 1rem;
  letter-spacing: 0.08em;
  font-style: italic;
}
.article figcaption.credit {
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gray-soft);
  opacity: 0.6;
  font-style: normal;
  text-align: center;
  margin-top: 0.85rem;
}
.article figcaption.credit a {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}
.article figcaption.credit a:hover { border-bottom-color: var(--gray-soft); }

/* ── RidgeVale case study sections ─────── */
.case-hero {
  min-height: 85vh;
  display: flex;
  align-items: end;
  padding: 12rem 2rem 6rem;
  position: relative;
  overflow: hidden;
}
.case-hero .img-placeholder,
.case-hero-image {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.case-image {
  width: 100%;
  height: auto;
  display: block;
}
.case-image--wide { aspect-ratio: 24 / 10; object-fit: cover; }
.wordmark-study {
  background: var(--porcelain);
  padding: clamp(3rem, 8vw, 6rem) 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 7 / 5;
  border: 1px solid var(--edge-2);
}
.wordmark-study img {
  width: 62%;
  max-width: 420px;
  height: auto;
  display: block;
}

/* ── Case study — lot triptych ──────────── */
.lot-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}
@media (max-width: 820px) { .lot-triptych { grid-template-columns: 1fr; gap: 3.5rem; } }
.lot {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-top: none;
}
.lot-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--lum-4);
  border: 1px solid var(--edge-2);
}
.lot-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s ease;
}
.lot:hover .lot-image { transform: scale(1.03); }
.lot-logo {
  display: block;
  height: 34px;
  width: auto;
  margin: 2rem auto 0;
  opacity: 1;
  transition: opacity 0.5s ease;
}
@media (hover: hover) {
  .lot-logo { opacity: 0.55; }
  .lot:hover .lot-logo { opacity: 1; }
}
.lot-register {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hazelnut);
  text-align: center;
  margin: 1rem 0 1.25rem;
}
.lot p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--gray);
  max-width: none;
  text-align: center;
  padding: 0 0.5rem;
  margin: 0 auto;
}

/* ── Case study — identity flipbook ─────── */
.flipbook {
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
}
.flipbook-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--lum-1);
  border: 1px solid var(--edge-2);
  overflow: hidden;
}
.flipbook-page {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}
.flipbook-page.is-active { opacity: 1; pointer-events: auto; }
.flipbook-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.flipbook-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
}
.flipbook-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--edge-3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--porcelain);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
}
.flipbook-btn:hover {
  background: var(--hazelnut);
  color: var(--ink);
  border-color: var(--hazelnut);
}
.flipbook-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  background: transparent;
  color: var(--porcelain);
  border-color: var(--edge-3);
}
.flipbook-indicator {
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--hazelnut);
  min-width: 6ch;
  text-align: center;
}
.flipbook-caption {
  text-align: center;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--gray);
  margin: 1.25rem auto 0;
  max-width: 50ch;
  min-height: 2.8em;
}
.flipbook-caption em { color: var(--hazelnut); font-style: italic; }
@media (max-width: 820px) {
  .flipbook-controls { gap: 1.5rem; margin-top: 1.5rem; }
  .flipbook-btn { width: 40px; height: 40px; }
}

/* ── Case study — site preview (browser frame) ─ */
.site-preview { max-width: 900px; margin: 0 auto; }
.browser-frame {
  background: var(--lum-3);
  border: 1px solid var(--edge-3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.75);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  background: var(--lum-4);
  border-bottom: 1px solid var(--edge-2);
}
.browser-dots {
  display: inline-flex;
  gap: 0.45rem;
  flex-shrink: 0;
}
.browser-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}
.browser-dots span:nth-child(1) { background: #E06B63; }
.browser-dots span:nth-child(2) { background: #E0B142; }
.browser-dots span:nth-child(3) { background: #4FB26B; }
.browser-url {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--porcelain);
  font-family: var(--sans);
  background: var(--lum-2);
  border: 1px solid var(--edge-3);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
  opacity: 0.85;
}
.browser-url-secure { color: var(--hazelnut); margin-right: 0.4em; }
.browser-viewport {
  position: relative;
  height: clamp(480px, 62vh, 620px);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.browser-viewport::-webkit-scrollbar { width: 6px; }
.browser-viewport::-webkit-scrollbar-track { background: transparent; }
.browser-viewport::-webkit-scrollbar-thumb { background: var(--edge-3); border-radius: 3px; }
.browser-viewport::-webkit-scrollbar-thumb:hover { background: var(--hazelnut); }
.browser-content {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Case study — browser viewport: hero mockup variant ── */
.browser-viewport--hero {
  height: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}
.browser-viewport--hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rv-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(1,4,12,0.55) 75%, rgba(1,4,12,0.92) 100%);
  z-index: 1;
}
.rv-hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1.25rem, 3.5vw, 2.75rem) clamp(1.5rem, 4vw, 3rem);
  z-index: 2;
}
.rv-hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--hazelnut);
  display: block;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.rv-hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.8vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--porcelain);
  margin: 0;
}
.rv-hero-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(0.75rem, 1.6vw, 1.25rem) clamp(1.25rem, 3vw, 2.25rem);
}
.rv-hero-nav-logo {
  height: clamp(14px, 1.6vw, 22px);
  width: auto;
  opacity: 0.95;
}
.rv-hero-nav-links {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2rem);
  font-family: var(--sans);
  font-size: clamp(0.5rem, 0.75vw, 0.65rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--porcelain);
  opacity: 0.82;
  font-weight: 400;
}
@media (max-width: 600px) {
  .rv-hero-nav-links { display: none; }
}

/* ── Case study — brand guides composite (below flipbook) ── */
.brand-guides-composite {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.brand-guides-composite img {
  width: 100%;
  height: auto;
  display: block;
}
.brand-guides-composite figcaption {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 1.5rem;
  letter-spacing: 0.02em;
}

/* ── Team portraits ─────────────────────── */
.team-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border: 1px solid var(--edge-2);
}

/* ── Team → Private Reserve teaser (ink + gold pop) ── */
.pr-teaser {
  position: relative;
  overflow: hidden;
  padding: 10rem 0;
  background: var(--lum-0);
  border-top: 1.5px solid rgba(205,169,138,0.55);
  border-bottom: 1.5px solid rgba(205,169,138,0.55);
  text-align: center;
}
.pr-teaser-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
  filter: grayscale(0.5) brightness(0.82) contrast(1.05);
}
.pr-teaser-content {
  position: relative;
  z-index: 2;
}

/* ── Listing hero — full-bleed video + centered content ── */
.listing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(6rem, 12vh, 9rem) clamp(1.5rem, 4vw, 3rem) clamp(4rem, 8vh, 6rem);
  overflow: hidden;
  color: var(--porcelain);
}
.listing-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(0.85) brightness(0.85);
}
.listing-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1,4,12,0.35) 0%, rgba(1,4,12,0.55) 50%, rgba(1,4,12,0.85) 100%);
  z-index: 1;
}
.listing-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 52rem;
  width: 100%;
}
.listing-hero-content .back-link { justify-content: center; margin-bottom: 2rem; }
.listing-hero-content .eyebrow--stack {
  justify-content: center;
  display: flex;
}
.listing-hero-content h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 1rem 0 1.5rem;
}
.listing-hero-content h1 em { font-style: italic; color: var(--hazelnut); }
.listing-hero-content .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: rgba(232, 228, 223, 0.85);
  margin: 0 auto 2.5rem;
  max-width: 40ch;
}
.listing-hero-meta {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.listing-hero-meta span {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 228, 223, 0.7);
}
.listing-hero-meta strong {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--porcelain);
}
.listing-hero-cue {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(2rem, 4vh, 3rem);
  width: 1px;
  height: 3rem;
  overflow: hidden;
  z-index: 2;
}
.listing-hero-cue span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--hazelnut);
  animation: listingCue 2.4s ease-in-out infinite;
}
@keyframes listingCue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}
@media (prefers-reduced-motion: reduce) {
  .listing-hero-cue span { animation: none; background: transparent; border-top: 1px solid var(--hazelnut); }
}
@media (max-width: 720px) {
  .listing-hero-content h1 { font-size: clamp(2.25rem, 10vw, 3.2rem); }
  .listing-hero-meta { gap: 1.25rem; }
}

/* ── Listing pages (DHV Team) ──────────── */
/* 2-column intro: narrative left, spec grid right */
.listing-intro {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  margin-top: 2rem;
}
.listing-intro-narrative > * + * { margin-top: 1.25rem; }
.listing-intro-narrative p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.85;
}
.listing-intro-narrative p:first-of-type::first-line {
  color: var(--porcelain);
}
.listing-intro-rule {
  width: 60px;
  height: 1px;
  background: var(--hazelnut);
  margin-bottom: 2rem;
  opacity: 0.7;
}
.listing-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.listing-spec {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(232, 228, 223, 0.08);
}
.listing-spec:nth-child(odd) { padding-right: 1rem; }
.listing-spec:nth-child(even) { padding-left: 1rem; border-left: 1px solid rgba(232, 228, 223, 0.06); }
.listing-spec-label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hazelnut);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.listing-spec-value {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--porcelain);
  line-height: 1.2;
  margin: 0;
}

/* Gallery — CSS-columns masonry (mirrors Felicity's layout), dim until hovered */
.listing-gallery {
  columns: 3;
  column-gap: clamp(0.5rem, 1vw, 0.85rem);
  margin-top: 4rem;
}
.listing-gallery-item {
  break-inside: avoid;
  margin-bottom: clamp(0.5rem, 1vw, 0.85rem);
  overflow: hidden;
  background: var(--lum-2);
  line-height: 0;
}
.listing-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease), opacity 0.4s var(--ease);
  filter: saturate(0.55) brightness(0.62) contrast(1.02);
  opacity: 0.72;
}
.listing-gallery-item:hover img,
.listing-gallery-item:focus-within img {
  transform: scale(1.02);
  filter: saturate(1) brightness(1) contrast(1);
  opacity: 1;
}
.listing-gallery-item.is-hidden { display: none; }
.listing-gallery.is-expanded .listing-gallery-item.is-hidden { display: block; }

@media (max-width: 960px) { .listing-gallery { columns: 2; } }
@media (max-width: 540px) { .listing-gallery { columns: 1; } }

.listing-gallery-item { cursor: zoom-in; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(1, 4, 12, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox.is-open { display: flex; }
.lightbox-bg {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}
.lightbox-img-wrap {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid rgba(232, 228, 223, 0.25);
  color: var(--porcelain);
  font-family: var(--sans);
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--hazelnut);
  border-color: var(--hazelnut);
  color: var(--ink);
}
.lightbox-close {
  top: clamp(1rem, 3vh, 2rem);
  right: clamp(1rem, 3vw, 2rem);
}
.lightbox-prev { left: clamp(1rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(1rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: clamp(1rem, 3vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--porcelain-dim, rgba(232, 228, 223, 0.7));
}
@media (max-width: 720px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: clamp(1rem, 3vh, 2rem); transform: none; }
  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }
  .lightbox-counter { bottom: auto; top: clamp(1rem, 3vh, 1.5rem); }
}

/* Full-bleed parallax break — soft drift via JS data-parallax */
.listing-parallax-break {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 65vh;
  overflow: hidden;
  background: var(--lum-0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}
.listing-parallax-break-img {
  position: absolute;
  inset: -15% 0;
  width: 100%;
  height: 130%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  filter: saturate(0.78) brightness(0.78);
}
/* Dim overlay across the whole image */
.listing-parallax-break::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1,4,12,0.45) 0%, rgba(1,4,12,0.35) 50%, rgba(1,4,12,0.45) 100%);
  pointer-events: none;
  z-index: 1;
}
/* Bottom fade into the next section */
.listing-parallax-break::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 70%, var(--lum-0) 100%);
  pointer-events: none;
  z-index: 1;
}
.listing-parallax-quote {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: var(--porcelain);
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-align: center;
  max-width: 22ch;
  margin: 0;
  text-shadow: 0 1px 30px rgba(1, 4, 12, 0.4);
}
.listing-parallax-quote em { color: var(--hazelnut); font-style: italic; }

@media (max-width: 720px) {
  .listing-parallax-break { height: 50vh; }
}

/* Content-width map — blue-tinted greyscale */
.listing-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: #0e1724;
  border: 1px solid rgba(232, 228, 223, 0.10);
}
.listing-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: invert(0.92) hue-rotate(185deg) saturate(0.5) contrast(0.95);
}
@media (max-width: 720px) { .listing-map { aspect-ratio: 4/3; } }
.listing-gallery-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem auto 0;
  padding: 0.95rem 1.75rem;
  background: transparent;
  border: 1px solid var(--hazelnut);
  color: var(--hazelnut);
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.listing-gallery-toggle:hover {
  background: var(--hazelnut);
  color: var(--ink);
}
.listing-gallery-toggle-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

/* Listed-by agent card */
.listing-agent-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  max-width: 480px;
  margin: 4rem auto 0;
  padding: clamp(2rem, 4vw, 2.75rem);
  background: rgba(20, 24, 34, 0.55);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  border: 1px solid rgba(232, 228, 223, 0.08);
  border-radius: 2px;
}
.listing-agent-card > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.listing-agent-headshot {
  width: clamp(110px, 12vw, 150px);
  height: clamp(110px, 12vw, 150px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid var(--hazelnut);
  filter: saturate(0.85) brightness(0.95);
}
.listing-agent-eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--hazelnut);
  margin-bottom: 0.85rem;
  font-weight: 500;
}
.listing-agent-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--porcelain);
  margin: 0 0 0.4rem;
  line-height: 1.1;
}
.listing-agent-title {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-soft);
  margin: 0 0 1.25rem;
}
.listing-agent-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.listing-agent-contact a {
  color: var(--porcelain);
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.listing-agent-contact a:hover {
  color: var(--hazelnut);
  border-color: var(--hz-border);
}
.listing-agent-card img.listing-agent-lockup {
  height: 28px;
  width: auto;
  display: block;
  opacity: 0.85;
}

@media (max-width: 720px) {
  .listing-intro { grid-template-columns: 1fr; gap: 2.5rem; }
  .listing-spec-grid { grid-template-columns: 1fr 1fr; }
  .listing-gallery { grid-template-columns: 1fr 1fr; }
  .listing-agent-card { grid-template-columns: 1fr; text-align: center; }
  .listing-agent-headshot { margin: 0 auto; }
  .listing-agent-contact { align-items: center; }
  .listing-agent-card img.listing-agent-lockup { margin: 0 auto; }
}

/* ── Region gazetteer (Team page) ──────── */
.region-gazetteer {
  margin-top: 4rem;
  border-top: 1px solid var(--frost, rgba(232, 228, 223, 0.10));
}
.region-row {
  display: grid;
  grid-template-columns: minmax(140px, 18%) 1fr;
  align-items: baseline;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  border-bottom: 1px solid rgba(232, 228, 223, 0.10);
}
.region-county {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1;
  color: var(--hazelnut);
  letter-spacing: -0.01em;
}
.region-towns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.6rem;
  color: var(--porcelain);
  font-size: clamp(0.85rem, 1.05vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  position: relative;
}
.region-towns span {
  position: relative;
  white-space: nowrap;
}
.region-towns span:not(:last-child)::after {
  content: '·';
  color: var(--hazelnut);
  margin-left: 1.6rem;
  opacity: 0.6;
  position: absolute;
  right: -1.1rem;
}
@media (max-width: 720px) {
  .region-row { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.5rem 0; }
  .region-county { font-size: 1.4rem; }
}
.pr-teaser-content .eyebrow::before,
.pr-teaser-content .eyebrow::after {
  background: var(--hazelnut);
  opacity: 0.85;
}
.pr-teaser-content .eyebrow span {
  color: var(--hazelnut);
  letter-spacing: 0.32em;
}
.pr-teaser-content .headline em { color: var(--hazelnut); font-style: italic; }
.pr-teaser-content .btn {
  background: var(--hazelnut);
  color: var(--ink);
  border-color: var(--hazelnut);
}
/* Suppress the base ::before fill so the inverted hover (solid → outlined) reads correctly */
.pr-teaser-content .btn::before { display: none; }
.pr-teaser-content .btn:hover {
  background: transparent;
  color: var(--hazelnut);
  border-color: var(--hazelnut);
}
.site-preview-caption {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gray);
  margin: 1.75rem auto 0;
}
.site-preview-caption a {
  color: var(--porcelain);
  border-bottom: 1px solid var(--hazelnut);
  padding-bottom: 2px;
  font-style: normal;
  margin-left: 0.4rem;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}
.site-preview-caption a:hover { color: var(--hazelnut); }
.site-preview-caption .arrow { margin-left: 0.25rem; }
@media (max-width: 820px) {
  .browser-viewport { height: clamp(380px, 55vh, 500px); }
  .browser-url { font-size: 0.7rem; max-width: 200px; }
}

/* ── Case study — social chapter split (copy + phone) ─ */
.social-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.social-copy { max-width: 56ch; }
.social-phone { display: flex; justify-content: center; }
@media (max-width: 900px) {
  .social-split { grid-template-columns: 1fr; gap: 3.5rem; }
  .social-copy { max-width: none; }
}

/* ── Case study — phone mockup (social) ───────── */
.phone-mock {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}
.phone-device {
  width: clamp(280px, 38vw, 380px);
  aspect-ratio: 9 / 19.5;
  background: #0a0c12;
  border-radius: 2.6rem;
  border: 1px solid var(--edge-3);
  padding: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 50px 110px -40px rgba(0,0,0,0.85);
  position: relative;
  overflow: hidden;
}
.phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.6rem 0.4rem;
  font-size: 0.62rem;
  color: var(--porcelain);
  letter-spacing: 0.04em;
  font-family: var(--sans);
  font-weight: 500;
  position: relative;
}
.phone-time { flex: 0 0 auto; min-width: 3ch; }
.phone-notch {
  position: absolute;
  top: 0.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: 22%;
  height: 1.2rem;
  background: #000;
  border-radius: 999px;
}
.phone-signals { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.phone-signals .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--porcelain); display: inline-block; }
.phone-signals .bar { width: 12px; height: 5px; border: 1px solid var(--porcelain); border-radius: 1px; margin-left: 4px; opacity: 0.7; }

.phone-screen {
  position: relative;
  width: 100%;
  height: calc(100% - 2rem);
  border-radius: 2rem;
  background: #09090d;
  overflow: hidden;
}
.phone-screen::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 20%;
  background: linear-gradient(180deg, transparent, #09090d 85%);
  pointer-events: none;
  z-index: 3;
}
.phone-scroller {
  animation: phoneScroll 60s ease-in-out infinite alternate;
  transform-origin: top center;
  will-change: transform;
}
/* Pause only when hovering an actual post image */
.phone-scroller:has(.ig-post-image:hover) { animation-play-state: paused; }
@keyframes phoneScroll {
  0%, 6% { transform: translateY(0); }
  94%, 100% { transform: translateY(-83%); }
}

/* ── Case study — IG single-column feed posts ──── */
.ig-post {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ig-post-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.85rem;
}
.ig-post-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--edge-3);
}
.ig-post-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.ig-post-handle {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--porcelain);
  letter-spacing: 0.01em;
}
.ig-post-sub {
  font-family: var(--sans);
  font-size: 0.62rem;
  color: var(--gray);
  font-weight: 400;
  margin-top: 1px;
}
.ig-post-more {
  font-size: 1rem;
  color: var(--porcelain);
  opacity: 0.75;
}
.ig-post-image {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.ig-post-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 0.85rem 0.9rem;
  font-size: 0.95rem;
  color: var(--porcelain);
  opacity: 0.88;
}
.ig-post-actions .ig-post-save {
  margin-left: auto;
  opacity: 0.85;
}

.phone-coming {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--hazelnut);
  font-size: 0.78rem;
  padding: 1.5rem 0 2.5rem;
  opacity: 0.75;
  letter-spacing: 0.04em;
}
@media (max-width: 600px) {
  .phone-device { width: clamp(260px, 78vw, 340px); }
}

/* ── Case study — feature images ───────── */
.brand-guide-feature {
  max-width: 620px;
  margin: 0 auto;
  border: 1px solid var(--edge-3);
}
.ig-grid-feature {
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--edge-3);
}
.case-image-caption {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-style: italic;
  color: var(--gray-soft);
  margin: 1rem auto 0;
  max-width: none;
}
.light .case-image-caption { color: var(--charcoal); }
.case-image-caption a {
  color: inherit;
  border-bottom: 1px solid currentColor;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.case-image-caption a:hover { opacity: 1; }

/* ── Case study — testimonial ───────────── */
.testimonial-section {
  background: var(--lum-1);
  border-top: 1px solid var(--edge-2);
  border-bottom: 1px solid var(--edge-2);
}

/* ── Case study — courtyard atmosphere bridge ── */
.courtyard-bridge {
  position: relative;
  width: 100%;
  height: clamp(440px, 62vh, 720px);
  overflow: hidden;
  background: #000;
  padding: 0;
}
.courtyard-bridge video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.courtyard-bridge::before,
.courtyard-bridge::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 18%;
  pointer-events: none;
  z-index: 1;
}
.courtyard-bridge::before { top: 0; background: linear-gradient(180deg, rgba(0,2,6,0.75), transparent); }
.courtyard-bridge::after  { bottom: 0; background: linear-gradient(0deg, rgba(0,2,6,0.85), transparent); }
.testimonial {
  padding: 2rem 0;
  text-align: center;
  position: relative;
}
.testimonial::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--hazelnut);
  margin: 0 auto 2.5rem;
}
.testimonial-quote {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--porcelain);
  max-width: 28ch;
  margin: 0 auto;
}
.testimonial-quote::before { content: '\201C'; margin-right: 0.1em; color: var(--hazelnut); }
.testimonial-quote::after { content: '\201D'; margin-left: 0.1em; color: var(--hazelnut); }
.testimonial-attr {
  margin-top: 2.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.testimonial-name { color: var(--porcelain); }
.testimonial-role { display: block; color: var(--gray); margin-top: 0.4rem; }
.testimonial-note {
  margin-top: 2.5rem;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hazelnut);
  opacity: 0.5;
  max-width: none;
}
.testimonial-note::before { content: '* '; }
.case-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1,4,12,0.5), rgba(1,4,12,0.95));
  z-index: -1;
}
.case-hero-content { max-width: var(--max); margin: 0 auto; width: 100%; }
.case-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 1.5rem 0 2rem;
  max-width: 14ch;
}
.case-hero h1 em { font-style: italic; color: var(--hazelnut); }
.case-hero .lead { max-width: 50ch; }
.case-hero-meta {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--divider-dark);
  flex-wrap: wrap;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--gray);
  text-transform: uppercase;
}
.case-hero-meta strong {
  display: block;
  color: var(--porcelain);
  font-weight: 400;
  margin-top: 0.35rem;
  letter-spacing: 0.05em;
  text-transform: none;
  font-size: 0.88rem;
}

.chapter {
  counter-increment: chapter;
  position: relative;
}
.chapter-num {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--hazelnut);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.chapter-num::before {
  content: 'CH. ' counter(chapter, decimal-leading-zero) ' — ';
}
.case-hero { counter-reset: chapter; }

/* ── Case study — full-bleed chapter hero ─ */
.chapter-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 10rem 2rem;
  overflow: hidden;
}
.chapter-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.chapter-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1,4,12,0.35) 0%, rgba(1,4,12,0.75) 70%, rgba(1,4,12,0.9) 100%);
  z-index: -1;
}
.chapter-hero-content {
  width: 100%;
  position: relative;
}
.chapter-hero .chapter-num { color: var(--hazelnut); }
.chapter-hero .headline,
.chapter-hero p { color: var(--porcelain); }
.chapter-hero .headline em { color: var(--hazelnut); }
@media (max-width: 820px) {
  .chapter-hero { padding: 7rem 2rem; min-height: 75vh; }
}

/* ── Case study — chapter footnote ──────── */
.chapter-footnote {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--gray-soft);
  font-style: italic;
  text-align: center;
  border-top: 1px solid var(--divider-light);
  padding-top: 1.5rem;
  margin: 0 auto;
  max-width: 52ch;
}
.westar .chapter-footnote { color: var(--gray); border-top-color: var(--edge-2); }
.chapter-footnote--inline {
  text-align: left;
  margin: 0;
  max-width: none;
  padding-top: 1.25rem;
}
.chapter-footnote a {
  color: inherit;
  border-bottom: 1px solid currentColor;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}
.chapter-footnote a:hover { opacity: 1; }

/* ── Simple placeholder page (events/shop) ─ */
.coming-soon {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem;
}
.coming-soon .display { max-width: 18ch; margin: 1.5rem auto 2rem; }
.coming-soon .eyebrow { justify-content: center; }
.coming-soon p { margin: 0 auto 2.5rem; }
.coming-soon .email-capture {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 2rem auto 0;
}
.coming-soon .email-capture input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--porcelain);
  padding: 1rem 0;
  font: 300 0.9rem var(--sans);
}
.coming-soon .email-capture input:focus { outline: none; }
.coming-soon .email-capture button {
  color: var(--hazelnut);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0 1rem;
  font-weight: 500;
}

/* ── 404 ────────────────────────────── */
.not-found { text-align: center; padding: 14rem 2rem 8rem; }
.not-found .num {
  font-family: var(--serif);
  font-size: clamp(6rem, 14vw, 11rem);
  font-weight: 400;
  color: var(--hazelnut);
  line-height: 1;
  font-style: italic;
  margin-bottom: 1rem;
}
.not-found h1 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; margin-bottom: 1.5rem; max-width: 22ch; margin-left: auto; margin-right: auto; }
.not-found p { max-width: 44ch; margin: 0 auto 2.5rem; }

/* ── Editorial article: audio companion ────────────────
   The "Listen — N min" block placed between dek and hero
   on Edit features. Markup in skill: dhv-the-edit. */
.article-podcast {
  max-width: 720px;
  margin: 2.5rem auto 3rem;
  padding: 1.75rem 1.75rem 1.5rem;
  border-top: 1px solid var(--divider-dark);
  border-bottom: 1px solid var(--divider-dark);
  text-align: center;
}
.article-podcast .label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
}
.article-podcast .lead {
  margin: 0 auto 1.1rem;
  font-style: italic;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.5;
}
.article-podcast audio {
  width: 100%;
  max-width: 560px;
  display: block;
  margin: 0 auto;
}
.article-podcast .credit {
  margin-top: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--gray-soft);
  font-style: italic;
}

/* ── Editorial article: share row ──────────────────────
   Reusable across The Edit articles. JS in main.js wires
   each [data-share-action] element to its destination. */
.article-share {
  max-width: 720px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--divider-dark);
  text-align: center;
}
.article-share .label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
}
.article-share-options {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.85rem;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.article-share-options > button,
.article-share-options > a {
  padding: 0.4rem 0;
  background: none;
  border: 0;
  color: var(--gray);
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}
.article-share-options > button:hover,
.article-share-options > button:focus-visible,
.article-share-options > a:hover,
.article-share-options > a:focus-visible {
  color: var(--hazelnut);
  outline: none;
}
.article-share-options .sep {
  color: var(--gray-soft);
  user-select: none;
  pointer-events: none;
}
.article-share-options .is-copied {
  color: var(--hazelnut);
}
