/* Beyroute: a quiet, editorial case study. Existing artwork defines the palette.
   Design variance 5 / motion 3 / density 3. Layer 1: chapter navigation. */
:root {
  color-scheme: light;
  --paper: #f5f4f1;
  --ink: #1c3853;
  --muted: #5d646b;
  --line: #d6d7d5;
  --surface: #ebece9;
  --color-base-100: var(--paper);
  --color-base-200: var(--surface);
  --color-base-content: var(--ink);
  --radius-field: 0;
  --size-field: .3rem;
  --border: 1px;
  --depth: 0;
  --noise: 0;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a, video { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid currentColor; outline-offset: 6px; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3, dl, dd { margin: 0; }
.wrap { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; padding: 14px; background: var(--paper); color: var(--ink); transform: translateY(-150%); z-index: 2; }
.skip-link:focus { transform: none; }
.site-header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 20px; }
.studio-brand img { width: 108px; height: auto; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; font-size: 12px; }
.case-intro { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 48px; padding-block: 56px; }
.eyebrow { font-size: 11px; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1 { margin-top: 23px; font-size: clamp(58px, 6.8vw, 100px); font-weight: 500; line-height: 1; letter-spacing: -.065em; }
.intro-summary { margin-top: 26px; font-size: clamp(19px, 2vw, 27px); line-height: 1.4; letter-spacing: -.025em; }
.text-link { margin-top: 36px; display: inline-flex; min-height: 44px; gap: 24px; align-items: center; border-bottom: 1px solid var(--ink); font-size: 12px; }
.intro-art { background: #1c3853; }
.intro-art img { width: 100%; }
.chapter-bar { position: sticky; top: 0; z-index: 1; background: var(--paper); border-block: 1px solid var(--line); }
.chapter-nav { display: flex; align-items: center; gap: 36px; }
.chapter-nav a { position: relative; display: flex; align-items: center; min-height: 60px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.chapter-nav a::after { content: ''; position: absolute; bottom: -1px; inset-inline: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease-out; }
.chapter-nav a[aria-current], .chapter-nav a:hover { color: var(--ink); }
.chapter-nav a[aria-current]::after, .chapter-nav a:hover::after { transform: scaleX(1); }
.chapter { padding-block: 96px 0; scroll-margin-top: 0; }
h2 { max-width: 850px; font-size: clamp(34px, 4.3vw, 62px); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.section-copy { max-width: 640px; margin-top: 24px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.section-heading { margin-bottom: 44px; }
.overview { display: grid; grid-template-columns: 1.35fr .65fr; gap: 100px; margin-bottom: 48px; }
.project-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; align-content: center; }
.project-facts dt { color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.project-facts dd { font-size: 13px; line-height: 1.5; }
.identity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.motion-piece { min-width: 0; }
.video-frame { position: relative; }
.video-play.btn { position: absolute; left: 20px; bottom: 20px; --btn-color: #f5f4f1; --btn-fg: #1c3853; gap: 12px; min-height: 44px; font-family: inherit; font-size: 12px; font-weight: 500; }
.video-play span { font-size: 20px; line-height: 1; }
.video-play:focus-visible { outline-color: #1c3853; box-shadow: 0 0 0 8px #f5f4f1; }
video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: #1c3853; color-scheme: dark; }
figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.motion-piece figcaption span:first-child { color: var(--ink); }
.motion-piece figcaption span:last-child { font-size: 10px; white-space: nowrap; }
.concept-panel { min-width: 0; background: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px; margin-bottom: 32px; }
.concept-panel img { width: min(100%, 440px); }
.concept-panel p { margin-top: 28px; font-size: 12px; color: #5d646b; text-align: center; }
.still { margin-top: 28px; }
.still img { width: 100%; }
.identity-grid + .still { margin-top: 48px; }
.motion-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.type-note { padding-block: 48px 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
h3 { font-size: clamp(22px, 2.5vw, 34px); line-height: 1.2; font-weight: 500; letter-spacing: -.03em; }
.type-note p { max-width: 530px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.applications-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
.gallery-heading { margin-top: 72px; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.social-grid .still { margin: 0; }
.next-project { margin-top: 96px; border-top: 1px solid var(--line); }
.next-project a { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 32px; padding-block: 42px; }
.next-project span { color: var(--muted); font-size: 11px; }
.next-project strong { grid-column: 1; margin-top: 12px; font-size: clamp(23px, 3.3vw, 46px); font-weight: 500; letter-spacing: -.04em; }
.next-project b { grid-column: 2; grid-row: 1 / 3; font-size: 36px; font-weight: 400; transition: transform 180ms ease-out; }
.next-project a:hover b { transform: translate(3px,-3px); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 96px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.site-footer a { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; color: var(--ink); }
.media-error { padding-top: 12px; font-size: 13px; color: var(--muted); }
.media-error a { text-decoration: underline; }
[hidden] { display: none !important; }
@media (min-width: 1500px) { .case-intro { padding-block: 64px; } }
@media (max-width: 1024px) {
 .wrap { width: calc(100% - 64px); }
 .case-intro { gap: 28px; }
 .overview { gap: 40px; }
 .concept-panel { padding: 20px; }
}
@media (max-width: 767px) {
 html { scroll-padding-top: 80px; }
 .wrap { width: calc(100% - 40px); }
 .site-header { min-height: 72px; }
 .studio-brand img { width: 95px; }
 .back-link { font-size: 11px; gap: 8px; }
 .case-intro { grid-template-columns: 1fr; gap: 32px; padding-block: 36px 32px; }
 h1 { margin-top: 16px; font-size: clamp(56px, 15vw, 85px); }
 .eyebrow { font-size: 10px; }
 .intro-summary { margin-top: 16px; font-size: 21px; }
 .text-link { margin-top: 18px; }
 .intro-art img { aspect-ratio: 3 / 2; object-fit: cover; }
 .chapter-nav { justify-content: space-between; gap: 12px; }
 .chapter-nav a { min-height: 56px; font-size: 10px; }
 .chapter { padding-top: 64px; }
 .overview, .identity-grid, .motion-pair, .applications-grid, .type-note, .social-grid { grid-template-columns: 1fr; }
 .overview { gap: 30px; margin-bottom: 32px; }
 .project-facts { gap: 24px; }
 .section-copy { margin-top: 20px; font-size: 15px; line-height: 1.65; }
 .section-heading { margin-bottom: 30px; }
 .concept-panel { margin-bottom: 0; padding: 24px; }
 .concept-panel img { max-width: 320px; }
 .concept-panel p { margin-top: 12px; }
 .identity-grid + .still { margin-top: 24px; }
 .type-note { gap: 16px; padding-top: 32px; }
 .motion-pair, .applications-grid { gap: 28px; }
 .gallery-heading { margin-top: 48px; }
 .social-grid { gap: 20px; }
 .next-project { margin-top: 64px; }
 .next-project a { padding-block: 32px; }
 .site-footer { min-height: 84px; }
}
@media (prefers-color-scheme: dark) {
 :root { color-scheme: dark; --paper: #142a3b; --ink: #f5f4ef; --muted: #b5c1c9; --line: #3a4b58; --surface: #213a4d; }
 .studio-brand img { filter: brightness(0) invert(1); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
