/* Global Fast Keys — giant poster type + dispatch timetable
   Distinct from Westmeadows hangar, Dunlop highway, Clayton graph,
   Presto ticket, Ringy ring, Mordi rail, Adel sliver, Panjeet orbit */

:root {
  --bone: #f4f0e8;
  --ink: #141414;
  --mute: #5c5a56;
  --cobalt: #1d4ed8;
  --cobalt-hot: #1e40af;
  --line: #d9d3c7;
  --display: "Bricolage Grotesque", sans-serif;
  --body: "Karla", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
  background: var(--bone);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 80;
  background: var(--cobalt);
  color: #fff;
  padding: 0.7rem 1rem;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero,
.about,
.services {
  scroll-margin-top: 4.2rem;
}

.kicker {
  margin: 0 0 0.45rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--cobalt);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Folio header — running line, not a badge bar */
.folio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bone);
  position: sticky;
  top: 0;
  z-index: 40;
}

.mark {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  background: var(--cobalt);
  color: var(--bone);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.folio__run {
  margin: 0;
  flex: 1 1 10rem;
  min-width: 0;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.folio__end {
  display: flex;
  align-items: center;
  gap: 1rem 1.2rem;
  margin-left: auto;
  flex-shrink: 0;
}

.folio__nav {
  display: flex;
  gap: 1rem;
}

.folio__nav a,
.folio__tel {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
}

.folio__nav a:hover,
.folio__tel:hover {
  color: var(--cobalt);
}

.folio__tel {
  color: var(--cobalt);
  border-bottom: 2px solid var(--cobalt);
}

/* Hero: 42% type poster | full-bleed vault */
.hero {
  display: grid;
  grid-template-columns: minmax(17rem, 0.42fr) 1fr;
  min-height: calc(100svh - 58px);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.6rem 1.3rem 1.8rem;
  min-height: 0;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
}

.hero__lede {
  margin: 1rem 0 1.2rem;
  max-width: 28ch;
  color: var(--mute);
}

.btn {
  display: inline-flex;
  align-self: flex-start;
  background: var(--cobalt);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.8rem 1.1rem;
}

.btn:hover {
  background: var(--cobalt-hot);
}

.hero__media {
  margin: 0;
  position: relative;
  min-height: calc(100svh - 58px);
  min-width: 12rem;
  overflow: hidden;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media figcaption {
  position: absolute;
  left: 0;
  bottom: 1.2rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: var(--cobalt);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.85rem 0.4rem;
}

/* About: film strip + letter + fact row */
.about {
  padding: clamp(2.4rem, 6vw, 4rem) 0 0;
}

.about__film {
  margin: 0;
}

.about__film img {
  width: 100%;
  height: min(32vh, 240px);
  object-fit: cover;
}

.letter {
  width: min(100% - 2.4rem, 720px);
  margin: 2rem auto 0;
  padding-left: 1.2rem;
  border-left: 4px solid var(--cobalt);
}

.letter h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.letter__body {
  margin: 0;
  max-width: 46ch;
  color: var(--mute);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.5rem;
  width: min(100% - 2.4rem, 1080px);
  margin: 2.2rem auto 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  margin: 0 0 0.25rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--cobalt);
}

.facts dd {
  margin: 0;
  font-weight: 700;
}

.facts a {
  text-decoration: none;
  border-bottom: 1px solid var(--cobalt);
}

.facts a:hover {
  color: var(--cobalt);
}

/* Services: dispatch timetable */
.services {
  padding: clamp(2.8rem, 7vw, 4.5rem) 0 clamp(3.2rem, 7vw, 5rem);
}

.services__head {
  width: min(100% - 2.4rem, 1080px);
  margin: 0 auto 1.4rem;
}

.services h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  letter-spacing: -0.03em;
}

.board-wrap {
  width: min(100% - 2.4rem, 1080px);
  margin: 0 auto;
  overflow-x: auto;
}

.board {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.board th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--cobalt);
  padding: 0.7rem 0.9rem;
}

.board td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.board tbody tr:hover {
  background: #ece7dc;
}

.board td:first-child {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--cobalt);
  width: 4.2rem;
}

.board .job {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.board .job span {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.board .job img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.75rem;
}

.board td img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
}

.board td:nth-child(3) {
  color: var(--mute);
  max-width: 38ch;
}

.board td a {
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--cobalt);
  white-space: nowrap;
}

.board td a:hover {
  color: var(--cobalt);
}

.foot {
  padding: 1.4rem 1.2rem 1.8rem;
  border-top: 4px solid var(--cobalt);
  display: grid;
  gap: 0.45rem;
}

.foot strong {
  font-family: var(--display);
  font-size: 1.25rem;
}

.foot div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.foot a {
  text-decoration: none;
  border-bottom: 1px solid var(--cobalt);
}

.foot a:hover {
  color: var(--cobalt);
}

.foot p {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  opacity: 0.5;
}

@media (max-width: 860px) {
  .folio__run,
  .folio__nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .hero__copy {
    padding: 1.6rem 1.1rem 1.4rem;
  }

  .hero__media {
    height: min(52vh, 420px);
    min-height: 0;
  }

  .hero__media figcaption {
    writing-mode: horizontal-tb;
    transform: none;
    bottom: 0;
    padding: 0.45rem 0.7rem;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .board thead {
    display: none;
  }

  .board,
  .board tbody,
  .board tr,
  .board td {
    display: block;
    width: 100%;
  }

  .board tr {
    padding: 1rem 0 1.15rem;
    border-bottom: 1px solid var(--line);
  }

  .board td {
    padding: 0.25rem 0;
    border: 0;
  }

  .board td:first-child {
    width: auto;
  }

  .board .job span {
    display: flex;
  }

  .board td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cobalt);
    font-weight: 800;
    font-family: var(--body);
  }

  .board td:nth-child(2)::before,
  .board td:first-child::before {
    display: none;
  }

  .board td img {
    width: 72px;
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
