/* ==========================================================================
   Increase Media Co — site styles (2026 refresh)
   Brand tokens live in :root. Change a colour or font here and it updates
   every page.
   ========================================================================== */

:root {
  --charcoal: #1c1c1a;
  --charcoal-2: #262623;
  --cream: #f6f1e7;
  --cream-dim: #c9c4b8;
  --sage: #8b9574;
  --sage-dark: #6e7a5c;
  --ink-soft: #45453f;
  --line-dark: rgba(246, 241, 231, 0.16);
  --line-light: rgba(28, 28, 26, 0.2);

  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --accent: "Instrument Serif", Georgia, serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --band: clamp(4.5rem, 10vw, 9rem);
  --bar: 44px;               /* height of the timeline bar fixed to the bottom */
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-bottom: var(--bar); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  padding-bottom: var(--bar);
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; max-width: 60ch; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.band--cream :focus-visible, .band--sage :focus-visible { outline-color: var(--charcoal); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--cream); color: var(--charcoal); padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: 0.002em;
  margin: 0;
}
h1 { font-size: clamp(3.75rem, 12vw, 10.5rem); line-height: 0.82; }
h2 { font-size: clamp(2.75rem, 7.2vw, 6.25rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 700; line-height: 1; }

/* The italic accent word used in headlines: <em>life</em> */
h1 em, h2 em, .mega em {
  font-family: var(--accent);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--sage);
  font-size: 0.94em;
  padding-right: 0.04em;
}
.band--cream h2 em { color: var(--sage-dark); }
.band--sage h2 em { color: var(--cream); }

.lede { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.45; color: var(--cream-dim); }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-block;
  font-family: var(--display); font-weight: 700; font-size: 1.125rem;
  text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none;
  padding: 0.9rem 1.7rem;
  border: 2px solid var(--sage); background: var(--sage); color: var(--charcoal);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--cream); border-color: var(--cream); }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--line-dark); }
.btn--ghost:hover { background: transparent; border-color: var(--cream); }
.btn--dark { background: var(--charcoal); border-color: var(--charcoal); color: var(--cream); }
.btn--dark:hover { background: var(--cream); border-color: var(--cream); color: var(--charcoal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.text-link {
  font-family: var(--display); font-weight: 700; font-size: 1.125rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: underline; text-decoration-color: var(--sage);
  text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */

.site-header { position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 1.4rem; }

.wordmark {
  position: relative; z-index: 40;
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; line-height: 1; white-space: nowrap;
}
.wordmark span { color: var(--sage); }
.wordmark img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav a {
  font-family: var(--display); font-weight: 600; font-size: 1.125rem;
  text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none;
  padding-block: 0.3rem; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--sage); }
.nav a.btn { padding: 0.55rem 1.1rem; border-bottom: 2px solid var(--sage); }
.nav a.btn:hover { border-color: var(--cream); }

.nav-toggle {
  display: none; position: relative; z-index: 40;
  background: none; border: 2px solid var(--line-dark); color: var(--cream);
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 0.45rem 0.9rem; cursor: pointer;
}

/* Small screens: the menu opens as a full-screen sheet with poster-size links */
@media (max-width: 720px) {
  .wordmark { font-size: 1.3rem; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: fixed; inset: 0; z-index: 30;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.25rem;
    background: var(--charcoal); padding: 5rem var(--gutter) calc(var(--bar) + 2rem);
  }
  .nav.is-open { display: flex; }
  .nav a, .nav a.btn {
    font-size: clamp(3.25rem, 17vw, 5rem); font-weight: 800; letter-spacing: 0; line-height: 0.95;
    background: none; border: 0; color: var(--cream); padding: 0;
  }
  .nav a.btn { color: var(--sage); }
}

/* ---------- Bands (page sections) ---------- */

.band { padding-block: var(--band); }
.band--cream { background: var(--cream); color: var(--charcoal); }
.band--panel { background: var(--charcoal-2); }
.band--sage { background: var(--sage); color: var(--charcoal); }
.band--flush { padding-top: 0; }

.band-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: clamp(2rem, 5vw, 4rem);
}

/* ---------- Fit-to-width headlines ----------
   js/main.js sizes these so the longest line exactly fills the container.
   The font-size below is only the starting point before the script runs. */

.fit { font-size: clamp(3.5rem, 15vw, 14rem); }
.fit [data-fit-line] { display: block; width: max-content; white-space: nowrap; }

/* The hero headline breaks into two lines on wide screens and three on phones */
.narrow-only { display: none !important; }
@media (max-width: 720px) {
  .wide-only { display: none !important; }
  .narrow-only { display: revert !important; }
  .fit [data-fit-line].narrow-only { display: block !important; }
}

/* ---------- Home hero ---------- */

.hero { padding-top: clamp(0.5rem, 2vw, 1.5rem); overflow: hidden; }
.hero h1 { font-size: inherit; line-height: 0.8; position: relative; z-index: 2; }

/* One page-load moment: the headline lines rise in. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 [data-fit-line] { opacity: 0; transform: translateY(0.3em); animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* Widescreen showreel strip. The headline's feet overlap its top edge.
   Layers, top to bottom: video (assets/reel.mp4), poster image
   (assets/reel-poster.jpg), then brand colour bars as the standby card. */
.reel-strip {
  position: relative; z-index: 1;
  margin-top: -0.115em;                       /* em here = the fitted headline size */
  aspect-ratio: 2.39 / 1;
  overflow: hidden;
  background:
    url("../assets/reel-poster.jpg") center / cover no-repeat,
    linear-gradient(90deg,
      #2b2d26 0 14.3%, #3b3f32 14.3% 28.6%, #565d47 28.6% 42.9%, #6e7a5c 42.9% 57.2%,
      #8b9574 57.2% 71.5%, #565d47 71.5% 85.8%, #2b2d26 85.8%);
}
.reel-slides, .reel-slides img, .reel-strip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-slides img { opacity: 0; transform: scale(1.04); transition: opacity 1.4s ease, transform 6.5s ease-out; }
.reel-slides img.is-on { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .reel-slides img { transition: none; transform: none; } }
.reel-strip video { opacity: 0; transition: opacity 0.8s; }
.reel-strip video.is-ready { opacity: 1; }
.reel-strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(28,28,26,0.3), rgba(28,28,26,0) 45%); pointer-events: none; }
.reel-btn {
  position: absolute; z-index: 2; left: 1.25rem; bottom: 1.25rem;
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--display); font-weight: 700; font-size: 1.125rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--cream); color: var(--charcoal); border: 0; padding: 0.75rem 1.2rem; cursor: pointer;
}
.reel-btn::before { content: ""; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; }
.reel-btn:hover { background: var(--sage); }
@media (max-width: 720px) { .reel-strip { aspect-ratio: 16 / 9; } }

.hero-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem 3rem; padding-block: clamp(1.75rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}
.hero-foot .lede { max-width: 30ch; color: var(--cream); }

/* ---------- Services (accordion) ---------- */

.svc { border-top: 2px solid var(--charcoal); }
.svc:last-of-type { border-bottom: 2px solid var(--charcoal); }
.svc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: clamp(1rem, 2.4vw, 1.75rem); cursor: pointer; list-style: none;
}
.svc summary::-webkit-details-marker { display: none; }
.svc h3 { font-size: clamp(2.4rem, 7.4vw, 6.25rem); font-weight: 800; line-height: 0.88; transition: color 0.15s; }
.svc summary:hover h3, .svc[open] h3 { color: var(--sage-dark); }

.svc-mark { position: relative; flex: none; width: clamp(1.5rem, 3vw, 2.5rem); aspect-ratio: 1; }
.svc-mark::before, .svc-mark::after { content: ""; position: absolute; inset: 0; margin: auto; background: currentColor; }
.svc-mark::before { width: 100%; height: 3px; }
.svc-mark::after { width: 3px; height: 100%; transition: transform 0.2s; }
.svc[open] .svc-mark::after { transform: scaleY(0); }

.svc-body {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 1.5rem 4rem;
  padding-bottom: clamp(1.75rem, 3vw, 2.75rem);
}
.svc-body p { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--ink-soft); }
.svc-body ul { list-style: none; margin: 0; padding: 0; }
.svc-body li { padding-block: 0.6rem; border-top: 1px solid var(--line-light); font-weight: 500; }
.svc-body li:last-child { border-bottom: 1px solid var(--line-light); }
@media (max-width: 720px) { .svc-body { grid-template-columns: 1fr; } }

/* ---------- Work: horizontal filmstrip (home) ----------
   Every frame is the same height and keeps its own shape, like a contact
   strip, so portrait and landscape photos sit side by side uncropped. */

.strip {
  --strip-h: clamp(300px, 56vh, 560px);
  display: flex; gap: 1rem; align-items: flex-start;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding-inline: var(--edge); scroll-padding-inline: var(--edge);
  padding-bottom: 1.25rem;
  scrollbar-width: thin; scrollbar-color: var(--sage) transparent;
}
.frame { flex: none; scroll-snap-align: start; display: block; text-decoration: none; color: inherit; }
.frame img { display: block; height: var(--strip-h); width: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--charcoal-2); }
.frame[data-shape="v"] img { aspect-ratio: 2 / 3; }
.frame-cap { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.7rem; }
.frame-title { font-family: var(--display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; line-height: 1; }
.frame-kind { color: var(--sage); font-size: 0.95rem; white-space: nowrap; }
.frame:hover .frame-title { color: var(--sage); }
@media (max-width: 720px) { .strip { --strip-h: 52vw; } }

.strip-nav { display: flex; gap: 0.5rem; }
.strip-nav button {
  width: 3.25rem; height: 3.25rem; display: grid; place-items: center;
  background: none; border: 2px solid var(--line-dark); color: var(--cream); cursor: pointer;
}
.strip-nav button:hover { border-color: var(--cream); }
.strip-nav button::before { content: ""; width: 0.7rem; height: 0.7rem; border: solid currentColor; border-width: 0 0 3px 3px; transform: translateX(2px) rotate(45deg); }
.strip-nav button[data-dir="next"]::before { transform: translateX(-2px) rotate(-135deg); }

/* ---------- Work page: project cards ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.filters button {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: none; color: var(--cream); border: 2px solid var(--line-dark); padding: 0.4rem 1rem; cursor: pointer;
}
.filters button:hover { border-color: var(--cream); }
.filters button[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--charcoal); }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.25rem, 4.5vw, 4rem) clamp(1rem, 2.4vw, 2rem); }
@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; } }

.card { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--charcoal-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .card-media img { transition: none; } }
.card-cap { display: block; margin-top: 1rem; }
.card-title { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.75rem); text-transform: uppercase; line-height: 0.95; }
.card:hover .card-title { color: var(--sage); }
.card-meta { display: flex; gap: 1.25rem; margin-top: 0.45rem; font-size: 1rem; }
.card-kind { color: var(--sage); }
.card-count { color: var(--cream-dim); }
.empty { color: var(--cream-dim); }

.play-dot {
  position: absolute; left: 1rem; bottom: 1rem;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--cream); color: var(--charcoal); display: grid; place-items: center;
}
.play-dot::before { content: ""; margin-left: 5px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent currentColor; }
.card:hover .play-dot, .embed-poster:hover .play-dot { background: var(--sage); }

/* ---------- Project page ---------- */

.project-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 0 0 1rem; font-size: 1.05rem; }
.project-meta span:first-child { color: var(--sage); }
.project-meta span + span { color: var(--cream-dim); }
.project-intro .lede { margin-top: 1.5rem; }
@media (max-width: 720px) {
  /* On phones long client names wrap instead of shrinking to fit one line */
  .project-intro .fit { font-size: clamp(2.6rem, 14vw, 4.25rem) !important; }
  .project-intro .fit [data-fit-line] { white-space: normal; width: auto; }
}

.films { display: grid; gap: clamp(1rem, 2.5vw, 2rem); margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.films--vertical { grid-template-columns: repeat(auto-fit, minmax(240px, 380px)); }
.film { margin: 0; }
.film video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.film--vertical video { aspect-ratio: 9 / 16; }
.film figcaption { margin-top: 0.7rem; font-family: var(--display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; }

.embed-poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--charcoal-2); cursor: pointer; overflow: hidden; margin-bottom: 2rem; }
.embed-poster img { width: 100%; height: 100%; object-fit: cover; }
.embed-poster .play-dot { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: 88px; height: 88px; }
.embed-frame { aspect-ratio: 16 / 9; margin-bottom: 2rem; background: #000; }
.embed-frame iframe { width: 100%; height: 100%; border: 0; }

/* Masonry gallery: columns keep each photo's own shape */
.gallery { columns: 3; column-gap: clamp(0.6rem, 1.4vw, 1rem); }
@media (max-width: 960px) { .gallery { columns: 2; } }
.shot { display: block; width: 100%; padding: 0; border: 0; background: var(--charcoal-2); margin: 0 0 clamp(0.6rem, 1.4vw, 1rem); break-inside: avoid; cursor: zoom-in; }
.shot img { display: block; width: 100%; height: auto; transition: opacity 0.2s; }
.shot--wide { column-span: all; }
.shot:hover img { opacity: 0.85; }

.next-project { border-top: 2px solid var(--sage); margin-top: clamp(3rem, 7vw, 6rem); padding-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; }
.next-label { color: var(--cream-dim); }
.next-link { font-family: var(--display); font-weight: 800; font-size: clamp(2.25rem, 6vw, 4.75rem); text-transform: uppercase; line-height: 0.9; color: var(--cream); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.next-link::after { content: ""; display: inline-block; width: 0.42em; height: 0.42em; border: solid currentColor; border-width: 0.09em 0.09em 0 0; transform: rotate(45deg); margin-left: 0.25em; vertical-align: 0.12em; }
.next-link:hover { color: var(--sage); }
.next-link { text-wrap: balance; }

/* ---------- Process ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; border-top: 2px solid var(--sage); }
.steps li { counter-increment: step; padding: 1.5rem 2rem 0 0; }
.steps li + li { border-left: 1px solid var(--line-dark); padding-left: 2rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--accent); font-style: italic; font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: 1; color: var(--sage); margin-bottom: 1rem; }
.steps p { color: var(--cream-dim); margin-top: 0.75rem; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { border-left: 0; padding: 1.5rem 0; }
  .steps li + li { border-top: 1px solid var(--line-dark); }
}

/* ---------- Closing call to action + footer ---------- */

.closer h2 { font-size: clamp(3.25rem, 11vw, 10rem); line-height: 0.84; }
.closer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.5rem; margin-top: clamp(2rem, 4vw, 3.5rem); }
.closer-mail { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 2.6vw, 2.1rem); text-transform: uppercase; letter-spacing: 0.02em; text-decoration-thickness: 2px; text-underline-offset: 0.25em; overflow-wrap: anywhere; }
.closer-mail:hover { color: var(--cream); }

.site-footer { padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; overflow: hidden; }
.site-footer .fit { margin-bottom: clamp(1.25rem, 2.5vw, 2.25rem); }
.mega { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.86; color: var(--cream); margin: 0 0 2.25rem; max-width: none; }
.mega span span { color: var(--sage); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; border-top: 1px solid var(--line-dark); padding-top: 1.25rem; }
.footer-row p { color: var(--cream-dim); font-size: 0.975rem; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-nav a { font-family: var(--display); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; }
.footer-nav a:hover { color: var(--sage); }

/* ---------- Inner page intro ---------- */

.page-intro { padding-block: clamp(1rem, 3vw, 2rem) clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.page-intro h1 { font-size: inherit; }
.page-intro .lede { margin-top: 1.75rem; max-width: 44ch; }
.page-intro--short { min-height: 60vh; }
.page-intro--short .btn-row { margin-top: 2rem; }

/* ---------- About ---------- */

.statement { font-size: clamp(1.7rem, 3.6vw, 3.25rem); line-height: 1.12; font-weight: 500; max-width: 28ch; letter-spacing: -0.01em; }
.statement em { font-family: var(--accent); font-style: italic; font-weight: 400; color: var(--sage-dark); font-size: 1.06em; }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--charcoal-2); }
.prose h2 { margin-bottom: 1.75rem; }
.prose p { font-size: 1.15rem; color: var(--cream-dim); }
.prose .btn-row { margin-top: 2rem; }

/* ---------- Contact form ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 2rem; }
.field label { display: block; font-family: var(--display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--sage); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.25rem; color: var(--cream);
  background: transparent; border: 0; border-bottom: 2px solid var(--line-dark); border-radius: 0;
  padding: 0.6rem 0 0.8rem;
}
.field select option { color: var(--charcoal); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--sage); box-shadow: 0 2px 0 var(--sage); }

.contact-aside h3 { color: var(--sage); margin-bottom: 0.4rem; font-size: 1.35rem; }
.contact-aside p { font-size: 1.2rem; }
.contact-aside p + h3 { margin-top: 2rem; }
.contact-aside a { text-decoration-color: var(--sage); text-underline-offset: 0.25em; overflow-wrap: anywhere; }

/* ---------- Timeline bar ----------
   Fixed to the bottom of every page. Scrolling moves the playhead and runs
   the timecode; on the home page each section is a clip you can jump to. */

.timeline {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  height: var(--bar);
  display: flex; align-items: stretch;
  background: var(--charcoal); border-top: 1px solid var(--line-dark);
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.timeline .tc {
  flex: none; display: flex; align-items: center; padding-inline: 1rem;
  font-variant-numeric: tabular-nums; color: var(--sage);
  border-right: 1px solid var(--line-dark); min-width: 8.6em;
}
.timeline .track {
  position: relative; flex: 1; display: flex;
  background-image: repeating-linear-gradient(90deg, var(--line-dark) 0 1px, transparent 1px 12px);
  background-size: 100% 7px; background-repeat: no-repeat; background-position: 0 0;
}
.timeline .clip {
  flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end;
  padding: 0 0.75rem 0.5rem; overflow: hidden; white-space: nowrap;
  color: var(--cream-dim); text-decoration: none;
  border-right: 1px solid var(--line-dark);
}
.timeline .clip:hover { color: var(--cream); background: rgba(246, 241, 231, 0.05); }
.timeline .clip.is-current { color: var(--charcoal); background: var(--sage); }
.timeline .playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--cream); pointer-events: none; will-change: transform; }
.timeline .playhead::before { content: ""; position: absolute; top: 0; left: -5px; border-style: solid; border-width: 7px 6px 0; border-color: var(--cream) transparent transparent; }

@media (max-width: 720px) {
  :root { --bar: 36px; }
  .timeline { font-size: 0.85rem; }
  .timeline .clip { font-size: 0; padding: 0; }      /* segments only, no labels */
}
@media print { .timeline { display: none; } body { padding-bottom: 0; } }

/* ---------- Lightbox: photos, films and embeds ---------- */

dialog.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(12, 12, 11, 0.96); color: var(--cream);
  overflow: hidden;
}
dialog.lightbox::backdrop { background: rgba(12, 12, 11, 0.6); }
.lightbox-bar {
  position: absolute; z-index: 2; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem var(--gutter);
  font-family: var(--display); font-weight: 700; font-size: 1.125rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.lightbox-count { font-variant-numeric: tabular-nums; color: var(--cream-dim); }
.lightbox-close { margin-left: auto; background: none; border: 0; color: var(--cream); cursor: pointer; font: inherit; letter-spacing: inherit; padding: 0.4rem 0; }
.lightbox-close:hover { color: var(--sage); }
.lightbox-stage { position: absolute; inset: 3.75rem var(--gutter) 2rem; display: flex; align-items: center; justify-content: center; }
.lightbox-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.lightbox-stage video { max-width: 100%; max-height: 100%; background: #000; }
[data-mode="file"] .lightbox-stage video { width: min(1200px, 100%); aspect-ratio: 16 / 9; }
[data-mode="file-vertical"] .lightbox-stage video { height: 100%; aspect-ratio: 9 / 16; }
.lightbox-frame { width: min(1200px, 100%); aspect-ratio: 16 / 9; background: #000; }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox-nav {
  position: absolute; z-index: 2; top: 50%; transform: translateY(-50%);
  width: 3.5rem; height: 3.5rem; display: grid; place-items: center;
  background: rgba(28, 28, 26, 0.6); border: 2px solid var(--line-dark); color: var(--cream); cursor: pointer;
}
.lightbox-nav:hover { border-color: var(--cream); }
.lightbox-nav::before { content: ""; width: 0.75rem; height: 0.75rem; border: solid currentColor; border-width: 0 0 3px 3px; transform: translateX(2px) rotate(45deg); }
.lightbox-next::before { transform: translateX(-2px) rotate(-135deg); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
@media (max-width: 720px) {
  .lightbox-stage { inset: 3.5rem 0 4.5rem; }
  .lightbox-nav { top: auto; bottom: 1rem; transform: none; }
}
