/* DAME DIRECTED. Colours and fonts come from brand/tokens.json in the asset pack. */
:root {
  --bg: #F3ECE2;
  --panel: #E9DFD0;
  --tile-light: #FBF6EE;
  --espresso: #2A2420;
  --text: #3E3530;
  --text-2: #5C524A;
  --rule: #CDBFA9;
  --gold-text: #84601F;
  --gold-slogan: #A87A2A;
  --gold-accent: #C9A24D;
  --gold-soft: #E8C989;
  --gold-dark: #E2B866;
  --wine: #6E2B33;
  --on-dark: #F3ECE2;
  --on-dark-2: #E4D9C8;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Century Gothic', 'Segoe UI', sans-serif;

  --max: 1320px;
  --gutter: clamp(20px, 5vw, 72px);
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
  --head-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--espresso); font-family: var(--sans); font-size: 16px; line-height: 1.55; overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: var(--gold-text); }
a:hover { color: var(--espresso); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--espresso); color: var(--on-dark); padding: 10px 16px; }
.skip:focus { left: 8px; color: var(--on-dark); }

/* Shared type */
.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-text); }
.label { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 50px); line-height: 1.05; }
.h2--about { font-size: clamp(40px, 4.8vw, 54px); }
.h2--host { font-size: clamp(36px, 3.8vw, 42px); }
.h2--work { font-size: clamp(36px, 4vw, 46px); }
.h2--contact { font-size: clamp(36px, 3.8vw, 44px); }
.lede { font-size: 16px; line-height: 1.65; color: var(--text); max-width: 60ch; }
.note { font-size: 13px; line-height: 1.55; color: var(--text-2); }
.slogan { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.5vw, 30px); line-height: 1.3; color: var(--gold-slogan); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--rule); }
.site-head__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--head-h); }
.site-head__logo { display: block; flex: none; }
.site-head__logo img { width: 92px; height: auto; }
.site-nav { display: flex; gap: clamp(20px, 3vw, 40px); }
.site-nav a, .menu-btn { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--espresso); text-decoration: none; }
.site-nav a { padding: 10px 0; }
.site-nav a:hover { color: var(--gold-text); }
.menu-btn { display: none; background: none; border: 1px solid var(--rule); padding: 10px 14px; cursor: pointer; }

/* 01 Cover */
.cover { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .75fr) minmax(0, 1.1fr); gap: 24px; padding-block: 32px; }
.cover__text { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-block: 16px 0; }
.cover__eyebrow { display: flex; align-items: center; gap: 14px; }
.cover__rule { width: 48px; height: 2px; background: var(--gold-accent); flex: none; }
.cover__title { display: flex; flex-direction: column; gap: 28px; }
.cover h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(60px, 6.2vw, 92px); line-height: .95; letter-spacing: .01em; }
.cover__lines { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--rule); padding-top: 22px; }
.cover__line { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); }
.cover__line--strong { font-weight: 500; color: var(--espresso); }
.cover__place { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.cover__logo { background: var(--panel); display: flex; align-items: center; justify-content: center; padding: clamp(24px, 3vw, 48px); }
.cover__logo img { width: 100%; max-width: 420px; height: auto; }
.cover__reel { position: relative; background: var(--espresso); aspect-ratio: 4 / 5; overflow: hidden; }
.cover__reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-toggle { position: absolute; right: 12px; bottom: 12px; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark); background: rgba(42, 36, 32, .78); border: 1px solid rgba(243, 236, 226, .35); padding: 10px 12px; cursor: pointer; }
.reel-toggle:hover { background: var(--espresso); color: var(--gold-dark); }
.reel-toggle:focus-visible { outline-color: var(--gold-dark); }

/* Section shell */
.section { display: flex; flex-direction: column; gap: 32px; padding-block: clamp(56px, 7vw, 96px) 0; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; }
.section__tag { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-2); }

/* 02 About */
.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.about__text { display: flex; flex-direction: column; gap: 26px; }
.ruled-list { border-top: 1px solid var(--rule); }
.ruled-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.about__founder { display: flex; flex-direction: column; gap: 22px; }
.about__photo { background: var(--espresso); aspect-ratio: 4 / 5; overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.about__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--rule); padding-top: 20px; }
.about__meta .label { margin-bottom: 6px; }
.about__name { font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.about__roles { font-size: 14px; line-height: 1.5; }

/* 03 Services */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.tile__no { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.tile h3 { font-size: 16px; font-weight: 500; }
.tile p:last-child { font-size: 14px; line-height: 1.55; }
.tile--espresso { background: var(--espresso); color: var(--on-dark); }
.tile--espresso .tile__no { color: var(--gold-dark); }
.tile--espresso p:last-child { color: var(--on-dark-2); }
.tile--light { background: var(--tile-light); }
.tile--light .tile__no { color: var(--gold-text); }
.tile--light p:last-child { color: var(--text); }
.tile--gold { background: var(--gold-soft); }
.tile--gold .tile__no { color: #5A4220; }
.tile--wine { background: var(--wine); color: var(--on-dark); }
.tile--wine .tile__no { color: var(--gold-soft); }
.tile--wine p:last-child { color: #EADBCB; }

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tier { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border-top: 3px solid; }
.tier__label { font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.tier__name { font-family: var(--serif); font-size: 32px; line-height: 1.2; }
.tier--light { background: var(--tile-light); border-color: var(--gold-accent); }
.tier--light .tier__label { color: var(--gold-text); }
.tier--espresso { background: var(--espresso); color: var(--on-dark); border-color: var(--gold-dark); }
.tier--espresso .tier__label { color: var(--gold-dark); }
.tier--wine { background: var(--wine); color: var(--on-dark); border-color: var(--gold-soft); }
.tier--wine .tier__label { color: var(--gold-soft); }
.tiers + .note { margin-top: -18px; }

/* 04, 05 Selected work */
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.film { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.film video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--espresso); }
/* Landscape films sit in the portrait frame on their cover, then show whole once playing. */
.film video.is-wide.is-playing { object-fit: contain; }
.film h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.1; }
.film__desc { font-size: 14px; line-height: 1.55; color: var(--text); }
.film__roles { font-size: 13px; line-height: 1.5; color: var(--text-2); border-top: 1px solid var(--rule); padding-top: 10px; }

/* 06 Host */
.host { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 4vw, 56px); }
.host__text { display: flex; flex-direction: column; gap: 20px; }
.formats { border-top: 1px solid var(--rule); }
.formats > div { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.formats h3 { font-size: 15px; font-weight: 500; }
.formats p { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.callout { font-size: 13px; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--gold-text); margin-top: auto; padding-top: 8px; }
.rail--host { grid-template-columns: repeat(2, 266px); gap: 22px; }
.film--host { gap: 8px; }
.film--host .label { letter-spacing: .18em; }
.band { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 32px; background: var(--espresso); color: var(--on-dark); padding: 22px 32px; }
.band__label { font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 6px; }
.band__name { font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.band__name a { color: var(--on-dark); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.band__name a:hover { color: var(--gold-dark); }
.band a:focus-visible { outline-color: var(--gold-dark); }
.band__line { font-size: 15px; color: var(--on-dark-2); }

/* 07 How we work & contact */
.closing { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); margin-top: clamp(56px, 7vw, 96px); }
.closing__work { display: flex; flex-direction: column; gap: 26px; padding: clamp(48px, 6vw, 72px) clamp(32px, 5vw, 64px) 48px var(--edge); }
.steps { border-top: 1px solid var(--rule); }
.steps li { display: flex; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.steps__no { width: 36px; flex: none; font-family: var(--serif); font-size: 22px; line-height: 1.2; color: var(--gold-text); }
.steps h3 { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.steps p { font-size: 14px; line-height: 1.5; color: var(--text); }
.closing__work .note { margin-top: auto; }
.closing__contact { display: flex; flex-direction: column; gap: 28px; background: var(--espresso); color: var(--on-dark); padding: clamp(48px, 6vw, 72px) var(--edge) 40px clamp(28px, 4vw, 56px); scroll-margin-top: var(--head-h); }
.closing__contact a { color: var(--on-dark); overflow-wrap: anywhere; }
.closing__contact a:hover { color: var(--gold-dark); }
.closing__contact a:focus-visible { outline-color: var(--gold-dark); }
.contact__label { font-size: 12px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-dark); }
.contact__list { display: flex; flex-direction: column; gap: 18px; border-top: 1px solid var(--text-2); padding-top: 22px; }
.contact__list dt { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px; }
.contact__list dd { font-size: 16px; }
.contact__slogan { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.3; color: var(--gold-dark); margin-top: auto; padding-top: 12px; }
.closing__contact .contact__top { font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dark); text-decoration: none; align-self: flex-start; padding: 8px 0; }
.closing__contact .contact__top:hover { color: var(--on-dark); }

/* Laptop and tablet: logo and reel share the right column */
@media (max-width: 1240px) {
  .cover { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto auto; }
  .cover__text { grid-row: span 2; padding-right: 16px; }
  .cover__logo { padding: 28px; }
  .cover__logo img { max-width: 280px; }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail--host { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .host { grid-template-columns: minmax(0, 1fr); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone: single column; film grids become swipeable rails */
@media (max-width: 760px) {
  :root { --head-h: 60px; }
  .site-head__logo img { width: 76px; }
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--rule); padding: 4px var(--gutter) 12px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; }
  .site-head__row { position: relative; }

  .cover { grid-template-columns: minmax(0, 1fr); padding-block: 20px 0; }
  .cover__text { grid-row: auto; padding-right: 0; gap: 32px; padding-top: 12px; }
  .cover h1 { font-size: clamp(46px, 16.5vw, 92px); }
  .cover__reel { width: 100%; max-width: 480px; justify-self: center; }
  .cover__lines { padding-top: 18px; }
  .cover__line { letter-spacing: .14em; }

  .about, .host { grid-template-columns: minmax(0, 1fr); }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .tiers + .note { margin-top: -18px; }
  .tier { padding: 16px 20px; }

  .rail, .rail--host {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 8px;
    scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  }
  .rail .film { flex: 0 0 min(72vw, 300px); scroll-snap-align: start; }
  .rail:focus-visible { outline-offset: -2px; }

  .band { padding: 20px; }
  .closing { grid-template-columns: minmax(0, 1fr); }
  .closing__work { padding: 56px var(--gutter) 48px; }
  .closing__contact { padding: 48px var(--gutter) 28px; }
}

@media (max-width: 420px) {
  .services { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
