/* Dreams "Somebody to Love" case study.
   Loads after /shared/gas-tokens.css and /shared/gas-components.css.
   Desktop values follow reference/design-canvas/Main.dc.html (1440 wide),
   phone values follow Mobile.dc.html (390 wide). Breakpoint: 720px. */

:root {
  --cream: #ECE3D8;
  --night: #2A2470;
  --lilac: #B9A8F0;
  --cream-ink: #5a4e44;
  --cream-ink-2: #4a4038;
  --night-ink: #A9A4D0;
  --night-ink-2: #CFCBE8;
  --hair-on-cream: rgba(0, 0, 0, 0.18);
  --hair-on-dark: rgba(255, 255, 255, 0.14);
  --gutter: max(64px, (100% - 1312px) / 2);
}

[hidden] { display: none !important; }
html { background: #000; }
body { overflow-x: hidden; }
img, video, canvas { display: block; }
p { margin: 0; }
a { border-bottom: 0; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 50;
  background: #fff; color: #000; padding: 12px 16px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.skip:focus { top: 16px; }

.only-phone { display: none; }

/* Cream bands: dark text, dark focus ring */
.cream { background: var(--cream); color: #000; }
.cream a, .cream :focus-visible { color: #000; outline-color: #000; }

/* ---------- Header ---------- */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
}
.wordmark { font-weight: 900; font-size: 22px; letter-spacing: -0.03em; color: #fff; }
.site-nav { display: flex; gap: 32px; }
.site-nav a { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: #fff; }

/* ---------- Hero film ---------- */
.hero {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 900px;
  overflow: hidden; background: #000;
}
.hero-poster, .hero-poster img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-poster img { object-fit: cover; }
.hero-film {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #000;
}
.hero-vignette { position: absolute; inset: 0; box-shadow: inset 0 0 240px 40px rgba(0, 0, 0, 0.75); pointer-events: none; }
.hero-scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60%; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 100%);
}
.hero-scrim-top { display: none; }
.round-play {
  border-radius: 999px; border: 2px solid #fff; background: transparent; color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.round-play:hover { background: rgba(255, 255, 255, 0.1); }
.round-play:active { transform: scale(0.96); }
.round-play:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.round-play svg { fill: currentColor; }
.hero-play {
  position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%);
  width: 96px; height: 96px;
}
.hero-play:active { transform: translate(-50%, -50%) scale(0.96); }
.hero-play svg { width: 30px; height: 30px; margin-left: 4px; }
.hero-copy {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 64px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px;
  pointer-events: none;
}
.hero-title-block { flex: 1 1 560px; display: flex; flex-direction: column; gap: 20px; max-width: 900px; }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.32em; color: rgba(255, 255, 255, 0.85); }
.hero h1 {
  margin: 0; font-size: clamp(56px, 7vw, 112px); font-weight: 900; line-height: 0.92;
  letter-spacing: -0.035em; text-transform: uppercase; color: #fff;
}
.hero-sub { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.75); }
.hero-meta {
  flex: none; display: flex; gap: 40px; margin: 0; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; line-height: 1.8;
}
.hero-meta dt { color: #8a8a8a; }
.hero-meta dd { margin: 0; color: #fff; }

/* Once the film starts, the poster furniture steps aside */
.hero-poster, .hero-vignette, .hero-scrim, .hero-scrim-top, .hero-play, .hero-copy {
  transition: opacity var(--dur-base) var(--ease-out);
}
.hero.is-playing .hero-poster,
.hero.is-playing .hero-vignette,
.hero.is-playing .hero-scrim,
.hero.is-playing .hero-scrim-top,
.hero.is-playing .hero-play,
.hero.is-playing .hero-copy { opacity: 0; visibility: hidden; }

/* ---------- Standfirst ---------- */
.standfirst {
  padding: 128px var(--gutter) 96px;
  display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; align-items: flex-end;
  border-bottom: 1px solid var(--hair-on-cream);
}
.standfirst-line {
  max-width: 980px; font-size: clamp(32px, 3.6vw, 52px); font-weight: 300;
  line-height: 1.12; letter-spacing: -0.02em; color: #000;
}
.standfirst-facts {
  display: flex; flex-direction: column; gap: 10px; font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--cream-ink-2); text-transform: uppercase;
}
.standfirst-grid {
  margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.8;
}
.standfirst-grid dt { color: var(--cream-ink); }
.standfirst-grid dd { margin: 0; }

/* ---------- 01 The ask ---------- */
.ask { padding: 128px var(--gutter); display: flex; flex-direction: column; gap: 96px; }
.ask-row { display: flex; flex-wrap: wrap; gap: 64px; }
.section-head { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.section-num { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--cream-ink); font-variant-numeric: tabular-nums; }
.section-title {
  margin: 0; font-size: 64px; font-weight: 900; line-height: 0.95;
  letter-spacing: -0.03em; text-transform: uppercase;
}
.ask-body { flex: 2 1 560px; max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.ask-body p { font-size: 20px; font-weight: 300; line-height: 1.55; color: #000; }
.ask-body p + p { color: var(--cream-ink-2); }


/* ---------- Pull quote ---------- */
.quote { padding: 160px var(--gutter); display: flex; flex-wrap: wrap; gap: 64px; align-items: center; background: #000; }
.quote blockquote { margin: 0; flex: 3 1 640px; display: flex; flex-direction: column; gap: 32px; }
.quote blockquote p {
  font-size: clamp(32px, 3.4vw, 48px); font-weight: 300; line-height: 1.18;
  letter-spacing: -0.02em; color: #fff;
}
.quote-cite { font-size: 11px; font-weight: 700; letter-spacing: 0.24em; color: #8a8a8a; line-height: 1.8; }
.quote figure { margin: 0; flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; }
.quote figure img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
.quote figcaption { font-size: 11px; font-weight: 700; letter-spacing: 0.24em; color: #8a8a8a; }

/* ---------- 02 The craft ---------- */
.craft { background: var(--night); color: #fff; padding: 128px var(--gutter); display: flex; flex-direction: column; gap: 56px; }
.craft-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.craft-head { display: flex; flex-direction: column; gap: 16px; }
.craft-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.32em; color: var(--night-ink); }
.craft .section-title { color: #fff; }
.craft-body { max-width: 620px; display: flex; flex-direction: column; gap: 16px; }
.craft-body p { font-size: 18px; line-height: 1.6; color: #fff; }
.craft-body p + p { line-height: 1.55; color: var(--night-ink-2); }

/* ---------- Stem player ---------- */
.sp {
  --ctl: 200px;
  --line: var(--hair-on-dark);
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.16); color: #fff;
  -webkit-tap-highlight-color: transparent;
}
.sp-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.sp-play { width: 56px; height: 56px; flex-shrink: 0; }
.sp-play svg { width: 20px; height: 20px; }
.sp-play .i-play { margin-left: 3px; }
.sp-play[disabled] { opacity: 0.4; cursor: wait; }
.sp-status {
  flex-grow: 1; display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
}
.sp-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--gas-signal); opacity: 0.3; transition: opacity 0.2s; }
.sp.is-playing .sp-dot { opacity: 1; box-shadow: 0 0 12px var(--gas-signal); }
.sp-all {
  font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: #fff; background: none; border: 0; border-bottom: 1px solid #fff;
  padding: 8px 0; cursor: pointer; border-radius: 0;
}
.sp-all:hover { opacity: 0.6; }

.sp-grid { display: grid; grid-template-columns: var(--ctl) minmax(0, 1fr); }
.sp-corner { height: 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sp-ruler {
  position: relative; height: 40px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line); cursor: pointer; touch-action: none;
}
.sp-ruler:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.sp-ruler span {
  display: flex; align-items: center; padding-left: 8px; border-left: 1px solid var(--line);
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; font-variant-numeric: tabular-nums;
  color: var(--night-ink); transition: color 0.12s;
}
.sp-ruler span:first-child { border-left: 0; }
.sp-ruler span:nth-child(4) { border-left-color: rgba(255, 255, 255, 0.3); }
.sp-ruler span.is-now { color: #fff; }
.sp-ph { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }

.sp-ctl {
  height: 96px; display: flex; align-items: center; gap: 14px; padding: 0 20px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0;
}
.sp-wave { position: relative; height: 96px; border-bottom: 1px solid var(--line); cursor: pointer; touch-action: none; min-width: 0; }
.sp-grid > :nth-last-child(-n+2) { border-bottom: 0; }
.sp-wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.sp-pair { display: flex; flex-shrink: 0; margin-left: -12px; }
.sp-ic,
.sp-ic:hover,
.sp-ic:active,
.sp-ic:focus {
  -webkit-appearance: none; appearance: none; background: none; box-shadow: none; border-radius: 0;
  -webkit-tap-highlight-color: transparent;
}
.sp-ic {
  width: 44px; height: 44px; border: 0; padding: 0; color: var(--night-ink); opacity: 0.32;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: color 0.15s, opacity 0.15s, transform 0.2s var(--ease-out);
}
.sp-ic:hover { opacity: 0.8; }
.sp-ic:active { transform: scale(0.92); }
.sp-ic:focus:not(:focus-visible) { outline: none; }
.sp-ic:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.sp-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.sp-ic.is-active { opacity: 1; }
.sp-ic.is-active svg { stroke-width: 2.25; }
.sp-on.is-active { color: var(--lilac); }
.sp-off.is-active { color: #fff; }

.sp-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sp-label { font-size: 14px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; transition: color 0.2s; }
.sp-ctl.is-silent .sp-label { color: var(--night-ink); }
.sp-ctl.is-pending .sp-label { color: var(--lilac); }
.sp-wait { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lilac); font-variant-numeric: tabular-nums; }

.sp-foot { padding: 14px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--night-ink); }

/* ---------- 03 The result ---------- */
.result { position: relative; width: 100%; aspect-ratio: 21 / 9; overflow: hidden; background: #000; }
.result img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.result-scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 70%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
}
.result-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 64px; display: flex; flex-direction: column; gap: 16px; }
.result-num { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.75); font-variant-numeric: tabular-nums; }
.result h2 {
  margin: 0; font-size: clamp(40px, 5vw, 80px); font-weight: 900; line-height: 0.95;
  letter-spacing: -0.03em; text-transform: uppercase; color: #fff;
}

/* ---------- Credits ---------- */
.credits { padding: 128px var(--gutter); display: flex; flex-wrap: wrap; gap: 64px; }
.credits-head { flex: 1 1 280px; }
.credits-head h2 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.24em; line-height: 1.5; color: var(--cream-ink); }
.credits dl { flex: 2 1 560px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.credits dl > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--hair-on-cream);
}
.credits dt { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: var(--cream-ink); text-transform: uppercase; }
.credits dd { margin: 0; font-size: 14px; text-align: right; }

/* ---------- Footer ---------- */
.site-foot {
  padding: 64px var(--gutter); border-top: 1px solid #262626; background: #000;
  display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; align-items: flex-end;
}
.lockup { font-size: 32px; font-weight: 600; line-height: 0.95; letter-spacing: -0.01em; }
.address { font-size: 12px; line-height: 1.7; letter-spacing: 0.16em; color: #fff; font-style: normal; }
.site-foot .gm-btn { text-decoration: none; }
.site-foot .gm-btn:hover { opacity: 1; }


/* ---------- Phone (Mobile.dc.html) ---------- */
@media (max-width: 720px) {
  :root { --gutter: 24px; }
  .only-desk { display: none !important; }
  .only-phone { display: block; }
  .standfirst-grid.only-phone { display: grid; }

  .site-head {
    position: absolute; top: 0; left: 0; right: 0; z-index: 3;
    padding: 20px 24px; border-bottom: 0; background: transparent;
    transition: opacity var(--dur-base) var(--ease-out);
  }
  .site-head.over-film { opacity: 0; visibility: hidden; }
  .wordmark { font-size: 20px; }

  .hero { aspect-ratio: 9 / 16; max-height: none; }
  .hero-vignette { display: none; }
  .hero-scrim-top {
    display: block; position: absolute; left: 0; right: 0; top: 0; height: 22%; pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
  }
  .hero-scrim { height: 62%; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.88) 100%); }
  .hero-play { top: 40%; width: 72px; height: 72px; }
  .hero-play svg { width: 24px; height: 24px; margin-left: 3px; }
  .hero-copy { bottom: 40px; }
  .hero-title-block { gap: 16px; }
  .hero-eyebrow { font-size: 11px; letter-spacing: 0.3em; }
  .hero h1 { font-size: 48px; }
  .hero-sub { font-size: 11px; }

  .standfirst { padding: 64px 24px 56px; flex-direction: column; align-items: stretch; gap: 32px; }
  .standfirst-line { font-size: 28px; line-height: 1.15; }

  .ask { padding: 72px 24px; gap: 32px; }
  .ask-row { flex-direction: column; gap: 32px; }
  .section-head { flex: none; gap: 32px; }
  .section-title { font-size: 44px; }
  .ask-body { flex: none; gap: 32px; }
  .ask-body p { font-size: 18px; }

  .quote { padding: 80px 24px; flex-direction: column; align-items: stretch; gap: 32px; }
  .quote blockquote { flex: none; gap: 24px; }
  .quote blockquote p { font-size: 26px; line-height: 1.22; }
  .quote-cite { font-size: 10px; letter-spacing: 0.22em; }
  .quote figure { flex: none; gap: 10px; }
  .quote figcaption { font-size: 10px; letter-spacing: 0.22em; }

  .craft { padding: 72px 24px; gap: 32px; }
  .craft-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .craft-head { gap: 14px; }
  .craft-eyebrow { letter-spacing: 0.3em; }
  .craft-body { gap: 14px; }
  .craft-body p { font-size: 17px; }
  .craft-body p + p { font-size: 16px; }

  .sp { --ctl: 104px; }
  .sp-top { padding: 14px 12px; gap: 12px; }
  .sp-play { width: 48px; height: 48px; }
  .sp-status { letter-spacing: 0.14em; font-size: 10px; }
  .sp-ctl { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 0 10px; }
  .sp-label { font-size: 13px; }
  .sp-ruler span { padding-left: 5px; }
  .sp-foot { padding: 14px 12px; }

  .result { aspect-ratio: 4 / 5; }
  .result img { object-position: 35% 50%; }
  .result-scrim { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.88) 100%); }
  .result-copy { bottom: 40px; gap: 14px; }
  .result-num { font-size: 11px; }
  .result h2 { font-size: 36px; }

  .credits { padding: 72px 24px; flex-direction: column; gap: 24px; }
  .credits-head { flex: none; }
  .credits dl { flex: none; grid-template-columns: minmax(0, 1fr); }
  .credits dl > div { padding: 14px 0; }
  .credits dt { font-size: 10px; }

  .site-foot { padding: 56px 24px 64px; flex-direction: column; align-items: stretch; gap: 32px; }
  .lockup { font-size: 28px; letter-spacing: 0; }
  .address { font-size: 11px; }
  .site-foot .gm-btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
