/* Layout concept: a screening room. Full-bleed reel up top, films as title cards
   that light up with their own footage, an end-credits client roll, and a big
   email address as the final frame. Cold Pacific water as the ground, tungsten
   brass as the only light. */
:root {
  --deep: #0f1d20;      /* cold coastal water: page ground */
  --deep-2: #172a2d;    /* raised surfaces, player chrome */
  --fog: #e3e7e1;       /* primary text */
  --mist: #98aaa6;      /* secondary text */
  --rule: rgba(227, 231, 225, 0.16);
  --flare: #d9ae5c;     /* tungsten / brass: focus, links, the one accent */
  --scrim: rgba(9, 18, 20, 0.62);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--fog);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--flare); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 50;
  background: var(--flare); color: var(--deep); padding: 8px 14px;
  font-family: var(--display); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) var(--gutter) 20px;
  font-family: var(--display);
  font-size: 0.95rem;
}
.nav a { text-decoration: none; }
.nav-name {
  font-weight: 700;
  font-variation-settings: "wdth" 112;
  letter-spacing: 0.01em;
}
.nav nav { display: flex; gap: clamp(14px, 3vw, 36px); }
.nav nav a { color: var(--fog); opacity: 0.82; }
.nav nav a:hover { opacity: 1; color: var(--flare); }

/* ---------- Shared ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--display); font-size: 1rem; font-weight: 600;
  border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-solid { background: var(--fog); color: var(--deep); }
.btn-solid:hover { background: var(--flare); }
.btn-ghost { background: transparent; color: var(--fog); border-color: rgba(227, 231, 225, 0.5); }
.btn-ghost:hover { border-color: var(--flare); color: var(--flare); }
.btn-time { font-weight: 400; opacity: 0.6; font-variant-numeric: tabular-nums; }

.sec-h {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  font-variation-settings: "wdth" 100;
  color: var(--mist);
  letter-spacing: 0.01em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(560px, 100svh);
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--deep) 0%, rgba(15, 29, 32, 0.55) 38%, rgba(15, 29, 32, 0.1) 70%, rgba(15, 29, 32, 0.45) 100%);
}
.hero-copy {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 8vh, 88px);
}
.hero-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero-name span { display: inline-block; }
.hero-line {
  max-width: 34ch;
  margin: clamp(20px, 3vw, 32px) 0 0;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.45;
  color: var(--fog);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* one orchestrated moment: the title card resolves out of the footage */
@media (prefers-reduced-motion: no-preference) {
  .hero-name span { animation: titleIn 1.4s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
  .hero-name span + span { animation-delay: 0.18s; }
  .hero-line, .hero-actions { animation: fadeIn 1s 0.7s ease-out both; }
}
@keyframes titleIn {
  from { opacity: 0; letter-spacing: 0.08em; filter: blur(8px); }
  to   { opacity: 1; letter-spacing: -0.02em; filter: blur(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Films ---------- */
.films {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(64px, 10vw, 140px) var(--gutter) 0;
}
.rows { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 48px; }
.row a { display: grid; gap: 10px; text-decoration: none; position: relative; }
.row-media {
  display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--deep-2);
  margin-bottom: 8px;
}
.row-media img, .row-media video { width: 100%; height: 100%; object-fit: cover; }
.row-title {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 112;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.row-meta {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  font-family: var(--display); font-size: 0.95rem; color: var(--mist);
}
.row-run { font-variant-numeric: tabular-nums; }
.row-line { max-width: 52ch; color: var(--fog); opacity: 0.85; }

@media (min-width: 900px) and (hover: hover) {
  .rows { gap: 0; }
  .row a {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 30%);
    grid-template-areas: "title meta" "title line";
    column-gap: 48px; row-gap: 8px;
    align-items: end;
    padding: 34px 28px;
    margin: 0 -28px;
    isolation: isolate;
  }
  .row + .row a { border-top: 1px solid var(--rule); }
  .row-media {
    position: absolute; inset: 0; z-index: -1; margin: 0; aspect-ratio: auto;
    opacity: 0; transition: opacity 0.45s ease;
  }
  .row-media::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
  .row-title { grid-area: title; transition: transform 0.45s ease; }
  .row-meta { grid-area: meta; }
  .row-line { grid-area: line; font-size: 1rem; }
  .row a:hover .row-media, .row a:focus-visible .row-media { opacity: 1; }
  .row a:hover .row-title { transform: translateX(12px); }
  .row a:hover + * { border-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .row-title, .row-media { transition: none !important; }
}

/* ---------- Social ---------- */
.social {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 11vw, 160px) var(--gutter) 0;
}
.social-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.social-head p { margin: 0; color: var(--mist); font-size: 1rem; }
.social-strip {
  list-style: none; margin: 24px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 8px;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(170px, 22vw, 280px);
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
}
.social-strip li { scroll-snap-align: start; }
.social-strip video {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--deep-2);
  border-radius: 14px;
}
@media (min-width: 1200px) {
  .social-strip { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
}

/* ---------- About ---------- */
.about {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 11vw, 160px) var(--gutter) 0;
  display: grid; gap: clamp(28px, 5vw, 72px);
}
.about-fig { margin: 0; }
.about-fig { max-width: 560px; }
.about-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-copy { min-width: 0; max-width: 62ch; }
.about-copy .sec-h { margin-bottom: 18px; }
.about-copy p { margin: 0 0 1em; font-size: clamp(1.15rem, 1.5vw, 1.3rem); line-height: 1.55; }
.facts { margin: 32px 0 0; display: grid; gap: 18px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-family: var(--display); font-size: 0.9rem; color: var(--mist); }
.facts dd { margin: 0; }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  .about-fig { position: sticky; top: 32px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- Credits roll ---------- */
.credits {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 11vw, 160px) var(--gutter) 0;
}
.credits-h {
  margin: 0 0 24px;
  font-family: var(--display); font-size: 1rem; font-weight: 600;
  color: var(--mist); letter-spacing: 0.01em;
}
.credits-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  column-gap: 32px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.3;
}
.credits-list li { border-top: 1px solid var(--rule); }
.credits-list a { display: block; padding: 14px 0; }
.credits-list a { text-decoration: none; color: var(--fog); }
.credits-list a:hover { color: var(--flare); }

/* ---------- Footer / contact ---------- */
.foot {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(110px, 15vw, 220px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 40px);
}
.foot-ask { margin: 0 0 12px; font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--mist); }
.foot-mail {
  display: inline-block;
  font-family: var(--display); font-weight: 700;
  font-variation-settings: "wdth" 112;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.1; letter-spacing: -0.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
  background-image: linear-gradient(var(--flare), var(--flare));
  background-size: 0 3px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: 8px;
  transition: background-size 0.4s ease, color 0.3s;
}
.foot-mail:hover { color: var(--flare); background-size: 100% 3px; }
.foot-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(56px, 8vw, 96px); padding-top: 20px; border-top: 1px solid var(--rule);
  font-family: var(--display); font-size: 0.9rem; color: var(--mist);
}
.foot-meta p { margin: 0; }

/* ---------- Player ---------- */
.player {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 10, 11, 0.96);
  display: grid; place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 64px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 24px);
}
.player-video { width: 100%; max-width: 1600px; max-height: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-close {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 16px); right: var(--gutter);
  min-height: 44px; padding: 8px 18px; border-radius: 999px;
  background: transparent; color: var(--fog); border: 1px solid var(--rule);
  font-family: var(--display); font-size: 0.95rem; cursor: pointer;
}
.player-close:hover { border-color: var(--flare); color: var(--flare); }

/* ---------- Film page ---------- */
.film { padding-top: calc(env(safe-area-inset-top, 0px) + 76px); }
.screen {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.screen video, .screen img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.film-head {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) var(--gutter) 0;
}
.film-head h1 {
  margin: 0;
  font-family: var(--display); font-weight: 700;
  font-variation-settings: "wdth" 112;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.1; letter-spacing: -0.01em;
  text-wrap: balance;
}
.film-log { max-width: 52ch; margin: 14px 0 0; font-size: clamp(1.15rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--fog); }
.film-grid {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) 0;
  display: grid; gap: 36px;
}
.film-dl { margin: 0; display: grid; gap: 18px; align-content: start; }
.film-dl div { display: grid; gap: 2px; }
.film-dl dt { font-family: var(--display); font-size: 0.9rem; color: var(--mist); }
.film-dl dd { margin: 0; font-family: var(--display); font-size: 1.05rem; }
.film-body { min-width: 0; max-width: 64ch; }
.film-body p { margin: 0 0 1.1em; }
.result {
  margin-top: 2em !important;
  font-style: italic;
  font-size: clamp(1.15rem, 1.5vw, 1.3rem);
  line-height: 1.5;
}
.result strong {
  display: block; margin-bottom: 6px;
  font-family: var(--display); font-style: normal; font-weight: 600;
  font-size: 0.9rem; color: var(--flare);
}
@media (min-width: 900px) {
  .film-grid { grid-template-columns: minmax(200px, 1fr) minmax(0, 2.2fr); gap: 72px; }
  .film-dl { position: sticky; top: 32px; }
}
.stills {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter) 0;
}
.stills ul { list-style: none; margin: 24px 0 0; padding: 0; columns: 2 280px; column-gap: 14px; }
.stills li { break-inside: avoid; margin-bottom: 14px; }
.stills img { width: 100%; height: auto; background: var(--deep-2); }
.next {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(96px, 12vw, 160px) var(--gutter) 0;
}
.next a { display: grid; gap: 6px; text-decoration: none; }
.next-k { font-family: var(--display); font-size: 0.95rem; color: var(--mist); }
.next-t {
  font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 112;
  font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.1; letter-spacing: -0.01em;
  transition: color 0.3s;
}
.next a:hover .next-t { color: var(--flare); }
.film ~ .foot { padding-top: clamp(80px, 10vw, 140px); }

/* YouTube films: still with a play button, swapped for the player on click */
.yt {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: #000; cursor: pointer; color: var(--fog);
}
.yt img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity 0.3s; }
.yt:hover img { opacity: 0.8; }
.yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 12px 26px 12px 22px; border-radius: 999px;
  background: var(--fog); color: var(--deep);
  font-family: var(--display); font-size: 1.05rem; font-weight: 600;
  transition: background-color 0.2s;
}
.yt-play::before {
  content: ""; width: 0; height: 0;
  border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.yt:hover .yt-play, .yt:focus-visible .yt-play { background: var(--flare); }
.screen iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.yt-out { margin-top: 1.6em !important; font-family: var(--display); font-size: 1rem; }
.yt-out a { color: var(--flare); text-underline-offset: 4px; }
.foot-meta a { color: var(--mist); text-underline-offset: 3px; }
.foot-meta a:hover { color: var(--flare); }

/* ---------- Behind the scenes ---------- */
.bts {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 11vw, 160px) var(--gutter) 0;
}
.bts-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.bts-head p { margin: 0; color: var(--mist); font-size: 1rem; max-width: 52ch; }
.bts-grid {
  list-style: none; margin: 24px 0 0; padding: 0;
  columns: 2; column-gap: 10px;
}
@media (min-width: 700px) { .bts-grid { columns: 3; column-gap: 12px; } }
@media (min-width: 1100px) { .bts-grid { columns: 4; column-gap: 14px; } }
.bts-grid li { break-inside: avoid; margin-bottom: 10px; }
@media (min-width: 700px) { .bts-grid li { margin-bottom: 12px; } }
@media (min-width: 1100px) { .bts-grid li { margin-bottom: 14px; } }
.bts-grid.is-collapsed li:nth-child(n+13) { display: none; }
.bts-item {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: var(--deep-2); cursor: zoom-in; overflow: hidden;
}
.bts-item img, .bts-item video {
  width: 100%; height: auto; display: block;
  transition: transform 0.6s ease, opacity 0.3s;
}
.bts-item:hover img, .bts-item:hover video { transform: scale(1.03); }
.bts-tag {
  position: absolute; left: 10px; bottom: 10px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--scrim); color: var(--fog);
  font-family: var(--display); font-size: 0.8rem;
}
.bts-more { margin-top: 24px; }
@media (prefers-reduced-motion: reduce) {
  .bts-item img, .bts-item video { transition: none; }
  .bts-item:hover img, .bts-item:hover video { transform: none; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 10, 11, 0.97);
  display: grid; grid-template-rows: 1fr auto;
  padding: calc(env(safe-area-inset-top, 0px) + 64px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 16px);
}
.lb-stage { display: grid; place-items: center; min-height: 0; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-bar { display: flex; align-items: center; justify-content: center; gap: 20px; padding-top: 14px; }
.lb-count { font-family: var(--display); font-size: 0.95rem; color: var(--mist); font-variant-numeric: tabular-nums; min-width: 5ch; text-align: center; }
.lb-btn, .lb-close {
  min-height: 44px; padding: 8px 18px; border-radius: 999px;
  background: transparent; color: var(--fog); border: 1px solid var(--rule);
  font-family: var(--display); font-size: 0.95rem; cursor: pointer;
}
.lb-btn:hover, .lb-close:hover { border-color: var(--flare); color: var(--flare); }
.lb-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 16px); right: var(--gutter); }

/* Justified rows (set up by main.js): every row spans the full width, so the
   gallery ends on a straight edge. Without script it falls back to columns. */
.bts-grid.is-justified { columns: auto; display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 700px) { .bts-grid.is-justified { gap: 12px; } }
@media (min-width: 1100px) { .bts-grid.is-justified { gap: 14px; } }
.bts-grid.is-justified li { margin: 0; flex: 0 0 auto; }
.bts-grid.is-justified .bts-item { height: 100%; }
.bts-grid.is-justified .bts-item img,
.bts-grid.is-justified .bts-item video { height: 100%; object-fit: cover; }


/* ---------- Screen credits (IMDb) ---------- */
.screen-credits {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 11vw, 160px) var(--gutter) 0;
}
.sc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.sc-head p { margin: 0; color: var(--mist); font-size: 1rem; }
.sc-groups { margin-top: 28px; display: grid; gap: 44px; }
.sc-group h3 {
  margin: 0 0 6px;
  font-family: var(--display); font-size: 0.9rem; font-weight: 600;
  color: var(--flare); letter-spacing: 0.02em;
}
.sc-list { list-style: none; margin: 0; padding: 0; }
.sc-item {
  display: grid; gap: 4px 32px; align-items: baseline;
  padding: 16px 0; border-top: 1px solid var(--rule);
}
.sc-title {
  min-width: 0;
  font-family: var(--display); font-weight: 700;
  font-variation-settings: "wdth" 112;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.1; letter-spacing: -0.01em;
  text-wrap: balance; overflow-wrap: anywhere;
}
.sc-role { font-family: var(--display); font-size: 0.95rem; color: var(--mist); }
.sc-year { font-variant-numeric: tabular-nums; }
.sc-note { color: var(--fog); opacity: 0.85; font-size: 1rem; }
.sc-more { margin-top: 36px; }
@media (min-width: 720px) {
  .sc-item { grid-template-columns: minmax(0, 1fr) auto; }
  .sc-role { text-align: right; white-space: nowrap; }
  .sc-note { grid-column: 1 / -1; }
}


/* ---------- Testimonials ---------- */
.words {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 11vw, 160px) var(--gutter) 0;
}
.words-grid { margin-top: 24px; display: grid; column-gap: 48px; }
.quote { margin: 0; padding: 24px 0 32px; border-top: 1px solid var(--rule); }
.quote blockquote { margin: 0; }
.quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.5vw, 1.3rem);
  line-height: 1.5; color: var(--fog);
  text-wrap: pretty;
}
.quote figcaption {
  margin-top: 18px; display: grid; gap: 2px;
  font-family: var(--display); font-size: 0.9rem;
}
.quote-name { color: var(--fog); font-weight: 600; }
.quote-role { color: var(--mist); }
@media (min-width: 900px) {
  .words-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.film-words {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) var(--gutter) 0;
  display: grid;
}
.film-words .sec-h { margin-bottom: 16px; }
.film-words .quote { max-width: 64ch; }
@media (min-width: 900px) {
  .film-words { grid-template-columns: minmax(200px, 1fr) minmax(0, 2.2fr); column-gap: 72px; }
  .film-words > * { grid-column: 2; }
}


/* ---------- Results on film rows ---------- */
.row-result { flex-basis: 100%; color: var(--flare); }


/* ---------- Work with me / enquiry ---------- */
.hire {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 11vw, 160px) var(--gutter) 0;
}
.hire-offers { margin-top: 24px; display: grid; column-gap: 48px; }
.offer { padding: 20px 0 28px; border-top: 1px solid var(--rule); }
.offer h3 {
  margin: 0 0 10px;
  font-family: var(--display); font-weight: 700;
  font-variation-settings: "wdth" 112;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.1; letter-spacing: -0.01em;
}
.offer p { margin: 0; max-width: 52ch; font-size: clamp(1.05rem, 1.3vw, 1.15rem); line-height: 1.55; }
.offer-time { display: block; margin-top: 12px; font-family: var(--display); font-size: 0.95rem; color: var(--flare); }
@media (min-width: 900px) {
  .hire-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.enq {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 24px; border-top: 1px solid var(--rule);
  max-width: 880px;
}
.enq h3 { margin: 0 0 6px; font-family: var(--display); font-size: 1rem; font-weight: 600; color: var(--mist); }
.enq-intro { margin: 0 0 24px; font-size: 1rem; color: var(--fog); opacity: 0.85; }
.enq-grid { display: grid; gap: 18px 24px; }
.enq-field { display: grid; gap: 6px; min-width: 0; }
.enq-field label { font-family: var(--display); font-size: 0.9rem; color: var(--mist); }
.enq-field .opt { opacity: 0.7; }
.enq input, .enq select, .enq textarea {
  width: 100%; min-height: 48px; margin: 0;
  padding: 12px 14px;
  background-color: var(--deep-2); color: var(--fog);
  border: 1px solid var(--rule); border-radius: 10px;
  font-family: var(--display); font-size: 1rem; line-height: 1.4;
}
.enq textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.enq select {
  appearance: none; -webkit-appearance: none;
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2398aaa6' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.enq input:focus, .enq select:focus, .enq textarea:focus {
  outline: 2px solid var(--flare); outline-offset: 0; border-color: transparent;
}
.enq-full { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .enq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.enq-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.enq-status { margin: 0; font-family: var(--display); font-size: 0.95rem; color: var(--mist); }
.enq-status a { color: var(--flare); }
.enq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: 0.6; cursor: wait; }


/* ---------- Kit and capabilities ---------- */
.kit { margin: 20px 0 0; display: grid; gap: 12px; }
.kit div { display: grid; gap: 2px; }
.kit dt { font-family: var(--display); font-size: 0.9rem; color: var(--mist); }
.kit dd { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--fog); }
.kit-note { display: block; margin-top: 16px; font-family: var(--display); font-size: 0.9rem; color: var(--flare); }
@media (min-width: 560px) {
  .kit div { grid-template-columns: 140px minmax(0, 1fr); column-gap: 16px; align-items: baseline; }
}


/* ---------- Kit dropdown ---------- */
.kit-wrap { margin-top: 20px; border-top: 1px solid var(--rule); }
.kit-wrap summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 12px 0;
  font-family: var(--display); font-size: 0.95rem; font-weight: 600; color: var(--fog);
}
.kit-wrap summary::-webkit-details-marker { display: none; }
.kit-wrap summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 1.6px solid var(--flare); border-bottom: 1.6px solid var(--flare);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.kit-wrap[open] summary::after { transform: rotate(225deg); }
.kit-wrap summary:hover { color: var(--flare); }
.kit-wrap .kit { margin-top: 4px; }
.kit-wrap .kit-note { margin-bottom: 8px; }


/* ---------- Hero without the big name ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero-line { margin-top: 0; }
.hero-line strong { font-family: var(--display); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .hero-line { animation: lineIn 1.3s 0.2s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
  .hero-actions { animation: fadeIn 1s 0.7s ease-out both; }
}
@keyframes lineIn {
  from { opacity: 0; filter: blur(6px); transform: translateY(8px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}


/* ---------- Hero: one bold line, typed-in reveal ---------- */
.hero-line strong { display: block; width: fit-content; margin-bottom: 6px; white-space: nowrap; }
@media (max-width: 360px) {
  .hero-line strong { white-space: normal; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-line { animation: none; }
  .hero-line strong {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 50%, transparent 55%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 50%, transparent 55%, transparent 100%);
    -webkit-mask-size: 250% 100%; mask-size: 250% 100%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    animation: typeIn 1.7s 0.3s cubic-bezier(0.45, 0.05, 0.35, 1) both;
  }
  .hero-rest { animation: fadeIn 1s 1.6s ease-out both; }
  .hero-actions { animation: fadeIn 1s 1.9s ease-out both; }
}
@keyframes typeIn {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
}


/* ---------- Hero: title-card resolve (replaces typed-in reveal) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-line strong {
    -webkit-mask-image: none; mask-image: none;
    animation: titleResolve 1.8s 0.3s cubic-bezier(0.2, 0.7, 0.1, 1) both;
  }
  .hero-rest { animation: fadeIn 1.1s 1.2s ease-out both; }
  .hero-actions { animation: fadeIn 1s 1.6s ease-out both; }
}
@keyframes titleResolve {
  from { opacity: 0; letter-spacing: 0.08em; filter: blur(6px); }
  to { opacity: 1; letter-spacing: 0; filter: blur(0); }
}


/* ---------- About facts: top-align columns ---------- */
.facts { align-items: start; }
.facts div { align-content: start; }
