/* ============================================================
   JAUNT — EDITORIAL FEATURE
   Cinematic feature pages on individual notable builds.
   Pairs with editorial photography (location, atmosphere, character).
   ============================================================ */

/* ---------- COVER ---------- */
.feature-cover {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: flex-end;
}

.feature-cover__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.feature-cover__media img,
.feature-cover__media video {
  width: 100%; height: 100%; object-fit: cover;
}

.feature-cover__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.20) 0%,
    rgba(0,0,0,0.05) 25%,
    rgba(0,0,0,0.10) 55%,
    rgba(0,0,0,0.85) 100%);
}

.feature-cover__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--s9);
  color: #fff;
}

.feature-cover__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: var(--s5);
}

.feature-cover__title {
  font-family: var(--font-serif);
  font-size: clamp(56px, 8vw, 128px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: var(--s5);
  max-width: 16ch;
}

.feature-cover__title em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
}

.feature-cover__sub {
  font-size: var(--t5);
  font-weight: 300;
  line-height: var(--leading-loose);
  color: rgba(255, 255, 255, 0.72);
  max-width: 48ch;
}

.feature-cover__scroll {
  position: absolute;
  bottom: var(--s5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2.4s var(--ease-in-out) infinite;
}

/* ---------- CHAPTER MARK ---------- */
.feature-chapter-mark {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s7);
  align-items: end;
  padding: var(--section-pad-y) 0 var(--s8);
  border-bottom: 1px solid var(--hairline);
  max-width: var(--max-content);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.feature-chapter-mark__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(72px, 12vw, 200px);
  line-height: 1;
  color: var(--accent);
}

.feature-chapter-mark__copy {
  padding-bottom: var(--s5);
}

.feature-chapter-mark__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--s4);
}

.feature-chapter-mark__title {
  font-family: var(--font-serif);
  font-size: var(--t2);
  line-height: var(--leading-tight);
  color: var(--text);
  margin-bottom: var(--s4);
  max-width: 22ch;
}

.feature-chapter-mark__title em { font-style: italic; color: var(--accent-deep); }

/* ---------- PROSE BLOCK ---------- */
.feature-prose {
  max-width: var(--max-reading);
  margin: 0 auto;
  padding: var(--s9) var(--gutter);
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: var(--leading-loose);
  color: var(--text);
}

.feature-prose p {
  margin-bottom: var(--s5);
}

.feature-prose p:first-child {
  font-size: clamp(20px, 2vw, 24px);
  line-height: var(--leading-snug);
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--text);
  margin-bottom: var(--s7);
  max-width: 36ch;
}

.feature-prose strong { font-weight: 600; }

/* ---------- FULL-BLEED SPREAD ---------- */
.feature-spread {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.feature-spread--tall {
  height: 100vh;
  min-height: 720px;
  max-height: 1100px;
}

.feature-spread--wide {
  aspect-ratio: 21 / 9;
}

.feature-spread--cinema {
  aspect-ratio: 21 / 9;
  max-height: 720px;
}

.feature-spread__media {
  position: absolute;
  inset: 0;
}

.feature-spread__media img,
.feature-spread__media video {
  width: 100%; height: 100%; object-fit: cover;
}

.feature-spread__caption {
  position: absolute;
  bottom: var(--s6);
  right: var(--s8);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  text-align: right;
  max-width: 28ch;
  line-height: 1.5;
}

.feature-spread__quote-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  pointer-events: none;
}

.feature-spread__quote-overlay-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: var(--leading-snug);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  max-width: 22ch;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.6);
}

/* ---------- DETAIL STRIP (multi-image) ---------- */
.feature-detail-strip {
  display: grid;
  gap: var(--s4);
  padding: var(--s8) var(--gutter);
  max-width: var(--max-wide);
  margin: 0 auto;
}

.feature-detail-strip--3 { grid-template-columns: repeat(3, 1fr); }
.feature-detail-strip--4 { grid-template-columns: repeat(4, 1fr); }

.feature-detail-strip__item {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-deep);
}

.feature-detail-strip__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out-soft);
}

.feature-detail-strip__item:hover img { transform: scale(1.04); }

@media (max-width: 900px) {
  .feature-detail-strip--3,
  .feature-detail-strip--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .feature-detail-strip--3,
  .feature-detail-strip--4 { grid-template-columns: 1fr; }
}

/* ---------- TWO-COL EDITORIAL ---------- */
.feature-pair-editorial {
  display: grid;
  gap: var(--s8);
  align-items: center;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: var(--section-pad-y) var(--gutter);
}

@media (min-width: 901px) {
  .feature-pair-editorial { grid-template-columns: 1fr 1fr; }
  .feature-pair-editorial--portrait-right { grid-template-columns: 1.2fr 0.8fr; }
}

.feature-pair-editorial__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-deep);
}

.feature-pair-editorial__media--landscape {
  aspect-ratio: 4 / 3;
}

.feature-pair-editorial__media img,
.feature-pair-editorial__media video {
  width: 100%; height: 100%; object-fit: cover;
}

.feature-pair-editorial__copy {
  max-width: 44ch;
}

.feature-pair-editorial__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s4);
}

.feature-pair-editorial__heading {
  font-family: var(--font-serif);
  font-size: var(--t3);
  line-height: var(--leading-tight);
  margin-bottom: var(--s4);
}

.feature-pair-editorial__body {
  font-size: 17px;
  color: var(--text-mid);
  line-height: var(--leading-loose);
}

.feature-pair-editorial__body p + p { margin-top: var(--s4); }

/* ---------- SPEC SHEET (editorial style) ---------- */
.feature-spec {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--section-pad-y) 0;
}

.feature-spec__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.feature-spec__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  padding-bottom: var(--s5);
  margin-bottom: var(--s7);
  gap: var(--s7);
  flex-wrap: wrap;
}

.feature-spec__title {
  font-family: var(--font-serif);
  font-size: var(--t3);
  font-weight: 400;
  color: #fff;
}

.feature-spec__sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.feature-spec__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

@media (min-width: 901px) {
  .feature-spec__grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-spec__row {
  padding: var(--s5) var(--s5) var(--s5) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-spec__row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: var(--s2);
}

.feature-spec__row dd {
  font-family: var(--font-mono);
  font-size: 18px;
  color: #fff;
}

/* ============================================================
   PLACEHOLDER / LOREM — visually flagged copy that hasn't been
   written yet. Dave will replace at content-fill time.
   ============================================================ */
.lorem {
  position: relative;
  color: var(--text-dim);
  font-style: italic;
  background: rgba(168, 116, 42, 0.05);
  border-left: 2px solid var(--amber);
  padding: var(--s3) var(--s4);
}

.lorem::before {
  content: 'Placeholder copy';
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  font-style: normal;
  margin-bottom: var(--s2);
}

.placeholder-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(168, 116, 42, 0.10);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   BUILD STAGE — divider that splits a journey feature into
   stages (Commission · Engineering · Build · Delivery · Service)
   ============================================================ */
.build-stage {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--s10) var(--gutter) var(--s8);
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: var(--s5);
}

@media (min-width: 901px) {
  .build-stage {
    grid-template-columns: 1fr 2fr;
    align-items: end;
    gap: var(--s8);
  }
}

.build-stage__index {
  display: flex;
  align-items: baseline;
  gap: var(--s4);
}

.build-stage__num {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.build-stage__date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.build-stage__copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: var(--leading-tight);
  margin-bottom: var(--s4);
  max-width: 22ch;
}

.build-stage__copy h2 em {
  font-style: italic;
  color: var(--accent-deep);
}

.build-stage__copy p {
  font-size: 17px;
  color: var(--text-mid);
  line-height: var(--leading-loose);
  max-width: 56ch;
}

.build-stage__copy p + p {
  margin-top: var(--s4);
}

/* ============================================================
   BUILD PHOTO STRIP — small grid of build-stage photos with
   captions (date / what / who).
   ============================================================ */
.build-photos {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--s8);
  display: grid;
  gap: var(--s4);
}

@media (min-width: 720px)  { .build-photos--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 901px)  { .build-photos--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .build-photos--4 { grid-template-columns: repeat(4, 1fr); } }

.build-photos__item {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.build-photos__item figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-cream);
  aspect-ratio: 4 / 3;
}

.build-photos__item--portrait figure { aspect-ratio: 3 / 4; }

.build-photos__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.build-photos__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  line-height: var(--leading-snug);
  text-transform: uppercase;
}

/* ============================================================
   BUILD VIDEO — full-bleed inline video with sub-caption
   Used for embedding social-format videos alongside build photos.
   ============================================================ */
.build-video {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--s8);
}

.build-video__frame {
  background: var(--bg-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
}

.build-video__frame--portrait {
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
}

.build-video__frame video,
.build-video__frame iframe,
.build-video__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.build-video__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

.build-video__platform {
  position: absolute;
  top: var(--s4); left: var(--s5); right: var(--s5);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
}

.build-video__title {
  position: absolute;
  bottom: var(--s5); left: var(--s5); right: var(--s5);
  z-index: 3;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: var(--leading-snug);
  color: #fff;
  max-width: 28ch;
}

.build-video__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.42);
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  cursor: pointer;
}

.build-video__play svg {
  width: 28px; height: 28px;
  fill: #fff;
  margin-left: 4px;
}

.build-video__caption {
  margin-top: var(--s3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  line-height: var(--leading-body);
}

/* ============================================================
   BUILD QUOTE — small italic owner moment between stages
   ============================================================ */
.build-quote {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--s9) var(--gutter);
  text-align: center;
}

.build-quote__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 36px);
  line-height: var(--leading-snug);
  color: var(--accent-deep);
  max-width: 32ch;
  margin: 0 auto var(--s4);
}

.build-quote__attr {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   HERO-ONLY FEATURE — compact gallery + spec
   For builds that are just a few hero shots and a spec sheet.
   ============================================================ */
.hero-only-gallery {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: var(--s8) var(--gutter);
  display: grid;
  gap: var(--s4);
}

@media (min-width: 720px) {
  .hero-only-gallery { grid-template-columns: 2fr 1fr; }
  .hero-only-gallery__main { grid-row: span 2; aspect-ratio: 4 / 3; }
}

.hero-only-gallery__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-cream);
  aspect-ratio: 4 / 3;
}

.hero-only-gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ---------- META BAR (top of cover) ---------- */
.feature-meta-bar {
  background: var(--bg-cream);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--hairline);
}

.feature-meta-bar__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s5);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.feature-meta-bar__back a {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--text-mid);
  transition: color var(--dur-base) var(--ease-out-soft);
}

.feature-meta-bar__back a:hover { color: var(--text); }

.feature-meta-bar__chips {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
}
