/* Theme 08: Cinematic Full-Bleed, shown for a fictional landscape company (Fern & Field Landscapes).
   Edge-to-edge photographs carry the page; black is the cinema around them. Type sits on scrims;
   captions read like location titles and subtitles; the page runs in film order:
   opening shot, opening credits, a scene in letterbox, an intertitle, the reel, a credits roll,
   trailer cards, the crew, a closing shot and end credits. No JavaScript. */

:root {
  /* ---- Re-skin: these six values carry the brand ---- */
  --black: #000000;     /* the cinema around the photos (true black, on purpose) */
  --white: #FFFFFF;     /* titles, text over photos, primary buttons */
  --silver: #BDC2B6;    /* secondary text on black (a lichen gray) */
  --gold: #E3C47E;      /* field gold: location titles, credit roles, stars, focus */
  --line: #30342D;      /* dividers between black sections */
  --font: "Jost", "Futura", "Century Gothic", "Avenir Next", sans-serif;

  /* shape and spacing */
  --radius: 999px;      /* buttons are pills; photos stay square-cornered */
  --pad: clamp(16px, 4.4vw, 64px);
  --s2: 16px;
  --s3: 28px;
  --s4: 48px;
  --s5: 80px;
  --s6: 112px;
  --demo-h: 2rem;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; background: var(--black); color-scheme: dark; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 1.0625rem/1.6 var(--font);
  font-kerning: normal;
}
:where(*, *::before, *::after) { box-sizing: border-box; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:where(h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
:where(ul, ol) { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--black); }

.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--white); color: var(--black); padding: 12px 18px; font-weight: 500; }
.skip:focus { top: 12px; }

.demo-bar {
  min-height: var(--demo-h); display: grid; place-items: center;
  padding: 4px var(--pad); border-bottom: 1px solid var(--line);
  color: var(--silver); font-size: .75rem; letter-spacing: .03em; line-height: 1.3; text-align: center;
}

/* ---------- Type ---------- */
h1 {
  font-size: clamp(2.4rem, 1.2rem + 4.6vw, 5.25rem);
  font-weight: 500; line-height: 1.02; letter-spacing: -0.02em;
  text-wrap: balance; max-width: 12em;
}
.title {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.4rem);
  font-weight: 500; line-height: 1.06; letter-spacing: -0.015em;
  text-wrap: balance;
}
.lede { font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); line-height: 1.45; max-width: 32em; text-wrap: pretty; }
p { max-width: 38em; }

/* film captions: a location title in tracked type, then the scene in plain type */
.super { font-size: .9375rem; line-height: 1.4; letter-spacing: .02em; }
.super span { display: block; margin-bottom: 2px; font-size: .8125rem; letter-spacing: .16em; color: var(--gold); }
/* credit typography: small tracked role, large name */
.quiet-h { font-size: .9375rem; font-weight: 500; letter-spacing: .16em; color: var(--silver); text-align: center; }

/* ---------- Header: minimal chrome laid over the opening shot ---------- */
.stage { position: relative; }
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px;
  padding: 6px var(--pad) 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; font-weight: 500; font-size: 1.125rem; letter-spacing: .04em; }
.mark { width: 30px; height: 30px; color: var(--gold); flex: none; }
.call { grid-row: 1; grid-column: 2; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 500; font-size: .9375rem; letter-spacing: .02em; }
.nav { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.nav a { min-height: 48px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: .9375rem; font-weight: 500; letter-spacing: .03em; }
.nav .nav-cta { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--white); border-radius: var(--radius); background: rgb(0 0 0 / .35); }
.nav a:not(.nav-cta):hover, .call:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.nav .nav-cta:hover { background: var(--white); color: var(--black); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s3); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius);
  background: var(--white); color: var(--black);
  border: 1.5px solid var(--white);
  font-weight: 500; font-size: 1rem; letter-spacing: .02em; text-decoration: none;
}
.btn:hover { background: var(--gold); border-color: var(--gold); }
.btn.line { background: rgb(0 0 0 / .3); color: var(--white); }
.btn.line:hover { background: rgb(255 255 255 / .14); }

/* ---------- Full-bleed shots ---------- */
.shot {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-content: end;
  padding: 0 var(--pad) clamp(28px, 6vh, 64px);
  background: var(--black);
}
.shot .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.shot::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.over { position: relative; }
.shot .super { margin-top: var(--s3); }

/* opening shot */
.hero { min-height: calc(100vh - var(--demo-h)); min-height: calc(100svh - var(--demo-h)); }
.hero::before {
  background:
    linear-gradient(to bottom, rgb(0 0 0 / .72) 0, rgb(0 0 0 / .3) 130px, rgb(0 0 0 / 0) 210px),
    linear-gradient(to top, rgb(0 0 0 / .9) 0%, rgb(0 0 0 / .78) 30%, rgb(0 0 0 / .4) 52%, rgb(0 0 0 / 0) 70%),
    linear-gradient(to right, rgb(0 0 0 / .6) 0%, rgb(0 0 0 / .25) 45%, rgb(0 0 0 / 0) 65%);
}
.hero .bg { object-position: 70% 45%; }
.hero h1 { margin-top: 140px; }
.hero .lede { margin-top: 20px; }
.hero h1, .hero .lede, .closing .title, .closing .lede { text-shadow: 0 1px 24px rgb(0 0 0 / .5); }

/* ---------- Opening credits: the trust band ---------- */
.credits { padding: var(--s5) var(--pad); border-bottom: 1px solid var(--line); text-align: center; }
.roll-call { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 16px; margin: 40px auto 0; max-width: 72rem; }
.roll-call div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.roll-call dd { order: -1; }
.roll-call dd { font-size: clamp(2.1rem, 1.5rem + 2vw, 3.4rem); font-weight: 400; line-height: 1; letter-spacing: -0.01em; }
.roll-call dt { color: var(--silver); font-size: .9375rem; line-height: 1.35; max-width: 14em; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: var(--s4); }
.badges li {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 6px 16px 6px 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .9375rem; letter-spacing: .02em;
}
.badges svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- A scene, in letterbox ---------- */
.scene { padding: var(--s5) 0 var(--s4); }
.scene .title { padding: 0 var(--pad); margin-bottom: 32px; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 62%; background: #111; }
.subtitle {
  margin: 22px auto 0; padding: 0 var(--pad);
  max-width: 36em; text-align: center;
  font-size: 1.125rem; line-height: 1.45; text-wrap: balance;
}
.scene .super { padding: 0 var(--pad); margin: var(--s3) auto 0; text-align: center; }

/* ---------- Intertitle: services ---------- */
.intertitle { padding: var(--s5) var(--pad) var(--s5); border-top: 1px solid var(--line); }
.it-head p { color: var(--silver); margin-top: 16px; font-size: 1.125rem; }
.it-head .consult { color: var(--white); font-size: 1rem; padding-left: 14px; border-left: 2px solid var(--gold); margin-top: 24px; }
.it-head .consult b { font-weight: 500; }
.svc { display: grid; margin-top: 44px; }
.svc > div { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: baseline; padding: 20px 0 22px; border-top: 1px solid var(--line); }
.svc dt { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.005em; line-height: 1.2; }
.svc .price { color: var(--gold); font-size: .9375rem; letter-spacing: .04em; text-align: right; font-variant-numeric: tabular-nums; }
.svc dd:not(.price) { grid-column: 1 / -1; color: var(--silver); margin-top: 6px; max-width: 30em; }

/* ---------- The reel ---------- */
.reel-wrap { padding: var(--s5) 0 72px; border-top: 1px solid var(--line); }
.reel-head { padding: 0 var(--pad); margin-bottom: 28px; display: grid; gap: 10px; }
.reel-hint { color: var(--silver); font-size: .9375rem; }
.reel {
  position: relative;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  scrollbar-width: thin; scrollbar-color: #8A8F84 #1A1C18;
  anchor-name: --reel;
}
.reel ol { display: flex; gap: 12px; width: max-content; padding: 0 var(--pad) 20px; }
.reel li { width: calc(86vw - var(--pad)); scroll-snap-align: start; }
.reel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #111; }
.reel figcaption { padding-top: 14px; font-size: 1.0625rem; line-height: 1.4; }
.reel figcaption span { display: block; margin-bottom: 2px; font-size: .8125rem; letter-spacing: .16em; color: var(--gold); }
.reel:focus-visible { outline-offset: -2px; }

/* Optional: previous/next buttons drawn by the browser itself (CSS scroll buttons, no script).
   Browsers without them keep swipe, scroll and the arrow keys. */
@supports selector(::scroll-button(*)) {
  .reel-head { padding-right: calc(var(--pad) + 124px); }
  .reel::scroll-button(*) {
    position: absolute; position-anchor: --reel;
    top: calc(anchor(top) - 76px);
    width: 52px; height: 52px; border-radius: 50%;
    border: 1.5px solid var(--white); background: var(--black); color: var(--white);
    font: 400 1.5rem/1 var(--font); cursor: pointer;
  }
  .reel::scroll-button(left) { content: "‹" / "Previous garden"; right: calc(anchor(right) + var(--pad) + 64px); }
  .reel::scroll-button(right) { content: "›" / "Next garden"; right: calc(anchor(right) + var(--pad)); }
  .reel::scroll-button(*):hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
  .reel::scroll-button(*):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
  .reel::scroll-button(*):disabled { opacity: .35; cursor: default; }
}

/* ---------- Credits roll: the process over a mossy trunk ---------- */
.roll { position: relative; border-top: 1px solid var(--line); }
.roll-bg { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.roll-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.roll-text {
  position: relative; margin-top: -100vh; margin-top: -100svh;
  padding: 24vh var(--pad) 26vh; text-align: center;
  display: grid; justify-items: center;
}
.roll-intro { margin-top: 18px; font-size: 1.125rem; max-width: 30em; }
.steps { counter-reset: s; margin-top: 14vh; display: grid; gap: 12vh; max-width: 34rem; }
.steps li { counter-increment: s; }
.steps li::before { content: "Step " counter(s); display: block; margin-bottom: 8px; color: var(--gold); font-size: .875rem; letter-spacing: .16em; }
.steps h3 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
.steps p { margin: 12px auto 0; font-size: 1.125rem; max-width: 26em; }

/* ---------- Reviews as trailer cards ---------- */
.trailer { padding: var(--s6) var(--pad) var(--s5); border-top: 1px solid var(--line); }
.cards { display: grid; gap: 64px; margin: 48px auto 0; max-width: 76rem; text-align: center; }
.stars { color: var(--gold); font-size: 1.25rem; letter-spacing: .2em; }
.cards blockquote p { margin: 14px auto 0; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; max-width: 14em; }
.cards figcaption { margin-top: 18px; font-size: .9375rem; letter-spacing: .14em; }
.cards small { display: block; margin-top: 6px; color: var(--silver); font-size: .8125rem; letter-spacing: .06em; }

/* ---------- The crew ---------- */
.crew { padding: var(--s5) var(--pad); border-top: 1px solid var(--line); display: grid; gap: 48px; }
.crew-text p { color: var(--silver); margin-top: 18px; font-size: 1.125rem; }
.crew-text p:first-of-type { color: var(--white); }
.crew-list { display: grid; gap: 22px; align-content: start; }
.crew-list div { display: flex; flex-direction: column; gap: 2px; }
.crew-list dt { color: var(--gold); font-size: .8125rem; letter-spacing: .16em; }
.crew-list dd { font-size: 1.5rem; line-height: 1.2; }

/* ---------- Closing shot ---------- */
.closing { padding-top: var(--s6); }
.closing::before {
  background:
    linear-gradient(to top, rgb(0 0 0 / .92) 0%, rgb(0 0 0 / .8) 40%, rgb(0 0 0 / .45) 66%, rgb(0 0 0 / .2) 100%),
    linear-gradient(to right, rgb(0 0 0 / .5) 0%, rgb(0 0 0 / 0) 60%);
}
.closing .bg { object-position: 50% 40%; }
.closing .lede { margin-top: 18px; }
.visit { display: grid; gap: 18px; margin-top: var(--s4); }
.visit dt { color: var(--gold); font-size: .8125rem; letter-spacing: .16em; }
.visit dd { margin-top: 2px; }

/* ---------- End credits ---------- */
.end { padding: var(--s5) var(--pad) 48px; text-align: center; display: grid; justify-items: center; border-top: 1px solid var(--line); }
.end-name { font-size: 1.75rem; font-weight: 500; letter-spacing: .04em; }
.end-line { color: var(--silver); margin-top: 10px; }
.end-cols { display: grid; gap: 32px; margin-top: 48px; max-width: 64rem; width: 100%; }
.end h2 { margin-bottom: 8px; font-size: .8125rem; font-weight: 500; letter-spacing: .16em; color: var(--gold); }
.end address { font-style: normal; }
.end-cols p { margin-inline: auto; }
.end a { min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.legal { margin-top: 56px; color: var(--silver); font-size: .875rem; max-width: 46em; }

/* ---------- Signature moment: the opening shot opens from a cinemascope slit ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .bg, .hero::before { animation: open 1.7s cubic-bezier(.66, 0, .14, 1) .15s both; }
  .hero .over, .hero .super { animation: rise .9s ease-out 1.25s both; }
}
@keyframes open { from { clip-path: inset(36% 0 36% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Larger screens ---------- */
@media (min-width: 700px) {
  .frame img { aspect-ratio: 2.39 / 1; }
  .reel li { width: calc(78vw - var(--pad)); }
  .reel img { aspect-ratio: 2.39 / 1; }
  .roll-call { grid-template-columns: repeat(4, 1fr); }
  .svc { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .cards blockquote p { font-size: clamp(1.4rem, .9rem + 1vw, 1.9rem); }
  .end-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px) {
  .top { grid-template-columns: auto 1fr auto; padding-top: 16px; gap: 0 32px; }
  .nav { grid-column: 2; grid-row: 1; justify-content: center; gap: 30px; }
  .call { grid-column: 3; }
  .shot { grid-template-columns: 1fr auto; align-items: end; column-gap: 48px; }
  .shot .super { margin: 0; text-align: right; }
  .hero, .closing { padding-bottom: 64px; }
  .scene .title, .scene .super { text-align: center; }
  .intertitle { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .svc { margin-top: 8px; }
  .reel li { width: min(76vw, 1120px); }
  .crew { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
  .visit { grid-template-columns: repeat(3, minmax(0, 16rem)); gap: 32px; }
}

/* ---------- Phones: a heavier hero scrim ---------- */
@media (max-width: 699.98px) {
  .hero::before {
    background:
      linear-gradient(to bottom, rgb(0 0 0 / .72) 0, rgb(0 0 0 / .35) 120px, rgb(0 0 0 / 0) 180px),
      linear-gradient(to top, rgb(0 0 0 / .92) 0%, rgb(0 0 0 / .84) 45%, rgb(0 0 0 / .66) 64%, rgb(0 0 0 / .3) 80%, rgb(0 0 0 / 0) 92%);
  }
  .closing::before {
    background: linear-gradient(to top, rgb(0 0 0 / .9) 0%, rgb(0 0 0 / .8) 55%, rgb(0 0 0 / .74) 80%, rgb(0 0 0 / .6) 100%);
  }
  .hero h1 { font-size: 2.375rem; }
  .btn { padding: 0 20px; }
  .svc dt { font-size: 1.3125rem; }
}
@media (max-width: 380px) {
  .nav a { font-size: .875rem; }
  .nav .nav-cta { padding: 0 10px; }
}
