/* City Llama · homepage. Loaded only by index.html, on top of styles.css
   (tokens: --red --ink --ink-soft --paper --paper-dim, fonts, .halftone,
   .misreg-*, .label). Contrast rules: small text on orange is ink, small
   text on paper is ink (never orange), orange on ink is fine, every tap
   target is at least 44px tall. */

.home {
  --pad-x: clamp(20px, 5vw, 64px);
  --pad-y: clamp(64px, 9vw, 120px);
  --max: 1312px;
  /* Side padding that also centres content past --max, so every section shares one edge */
  --gutter: max(var(--pad-x), calc((100% - var(--max)) / 2));
  --plat-bg: #0A0D18;
  background: var(--ink);
}

.home section,
.home .creds { scroll-margin-top: 12px; }

/* Visible keyboard focus everywhere: the text colour always contrasts its section */
.home a:focus-visible,
.home button:focus-visible,
.home video:focus-visible,
.home video:focus-within { /* focus inside the native player controls */
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 1200;
  padding: 12px 16px;
  font-family: var(--font-label); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink);
}
.skip-link:focus { top: 12px; }

.leader__skip { min-height: 44px; padding: 0 16px; }

/* Shared bits */
.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head .label { margin-bottom: clamp(12px, 1.6vw, 18px); }

.sec-title {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--ink);
  font-size: clamp(52px, 9vw, 132px);
  line-height: 0.88;
  letter-spacing: -0.01em;
}
.sec-title--light { color: var(--paper); }

.sec-head__count { margin-top: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn--ink, .btn--ink:hover { color: var(--paper); background: var(--ink); }
.btn--paper, .btn--paper:hover { color: var(--ink); background: var(--paper); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.text-link:hover { color: var(--ink); background: var(--red); }
.text-link--quiet { text-decoration-color: rgba(13, 13, 13, 0.35); }

.chip {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 6px 9px;
  line-height: 1.2;
}

/* "Urban" treatment for the client clip: grayscale, punched contrast, then
   an orange multiply and a dark halftone multiply on top. */
.urban { position: relative; overflow: hidden; background: #000; }
.urban video { filter: grayscale(1) contrast(1.35) brightness(0.95); }
.urban::before,
.urban::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.urban::before { z-index: 1; background: var(--red); }
.urban::after {
  z-index: 2;
  background-image: radial-gradient(rgba(13, 13, 13, 0.55) 0.9px, transparent 1.2px);
  background-size: 5px 5px;
}
.is-placeholder { background: var(--plat-bg); }
.is-placeholder::before,
.is-placeholder::after { display: none; }

/* 1. NAV ------------------------------------------------------------------ */
.site-nav {
  background: var(--ink);
  border-bottom: 2px solid var(--red);
  padding: 10px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
}

.site-nav__brand,
.site-nav__brand:hover {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--paper);
  background: none;
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 4px;
}

.site-nav__lead,
.site-nav__links a {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav__lead { color: var(--red); margin-right: 6px; }

.site-nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--paper);
}
.site-nav__links a:hover { color: var(--ink); background: var(--red); }

/* 2. HERO ----------------------------------------------------------------- */
.hero {
  background-color: var(--red);
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(56px, 8vw, 104px);
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); min-height: 78vh; }
}

.hero .label { margin-bottom: clamp(18px, 2.6vw, 28px); }

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--paper);
  font-size: clamp(64px, 10.5vw, 168px);
  line-height: 0.84;
  letter-spacing: -0.01em;
  text-shadow: var(--misreg-offset) var(--misreg-offset) 0 rgba(13, 13, 13, 0.30);
}

@media (min-width: 1000px) {
  .hero__title { font-size: clamp(88px, 8.4vw, 168px); }
}

.hero__word {
  display: inline-block;
  position: relative;
  transform-origin: left bottom;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero__word:hover { transform: scale(1.08) translateY(-0.05em); z-index: 2; }

.hero__sub {
  margin: clamp(22px, 3vw, 32px) 0 0;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(24px, 3vw, 34px);
}

/* Contact sheet: one 16:9 frame, three frames side by side, labels in the
   bottom margin like a printed sheet (never over the images). */
.sheet {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(13, 13, 13, 0.45);
  padding: clamp(8px, 1.2vw, 14px);
  transform: rotate(1.2deg);
}

.sheet__frames {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 12px);
}

.sheet__cell {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(5px, 0.7vw, 8px);
}

.sheet__media { position: relative; overflow: hidden; background: #111; }

.sheet__media video,
.sheet__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sheet__media--top video { object-position: top; }
.sheet__media--plat { background: var(--plat-bg); }

.sheet__label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: clamp(9px, 0.8vw, 11px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
}

/* 3. CREDENTIALS ---------------------------------------------------------- */
.creds {
  background: var(--ink);
  padding: 18px var(--gutter);
  text-align: center;
}

.creds__line {
  margin: 0;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.12em;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--paper);
}
.creds__dot { color: var(--red); }

/* 4. WORK ----------------------------------------------------------------- */
.work {
  background: var(--paper);
  padding: var(--pad-y) var(--gutter);
}

.work .sec-head,
.work__grid { max-width: var(--max); margin-inline: auto; }
.work .sec-head { margin-bottom: clamp(32px, 5vw, 56px); }

.work__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px);
}
@media (min-width: 601px) {
  .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .work__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* 4-up tiles are small: keep Branded's poster clear of its title */
  .tile--branded .street-poster { top: 15%; width: 64%; }
}

.work-card { display: flex; flex-direction: column; align-items: flex-start; }

.work-card__label {
  margin: 0 0 12px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.work-card__caption {
  margin: 18px 0 2px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.tile {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(13, 13, 13, 0.28);
}

.chip--tl { position: absolute; top: 14px; left: 14px; z-index: 3; }
.chip--tr { position: absolute; top: 14px; right: 14px; z-index: 3; }

.tile__name {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--paper);
  font-size: clamp(40px, 4vw, 60px);
  line-height: 0.9;
}
.tile__name--ink { color: var(--ink); }

/* Plain-text status in place of a card link (no arrow, not interactive) */
.work-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* same row height as the other cards' links */
  margin: 0;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.chip--ink { color: var(--paper); background: var(--ink); }

/* Platinum: key art shifted down ~11% under a short top gradient so the
   star clears the title; live text on top, chip + credit at the bottom. */
/* Heading, loop and foot stack in a column so the loop takes only the
   space left between them and never overlaps at small (4-up) sizes. */
.tile--platinum { background: var(--plat-bg); display: flex; flex-direction: column; }
.tile__plat-img {
  position: absolute;
  left: 0;
  top: 11%;
  width: 100%;
  height: auto;
  display: block;
}
/* Pilot loop over the key art, shown whole (letterboxed) so the title card
   isn't cropped; the bars carry the tile's heading and foot. Fades in once playing. */
.tile__plat-video {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  margin: 10px 0;
  object-fit: contain;
  background: var(--plat-bg);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.tile__plat-video.is-playing { opacity: 1; }
/* Once the loop plays, the key art behind it steps back */
.tile--platinum picture { transition: opacity 0.5s ease; }
.tile--platinum:has(.tile__plat-video.is-playing) picture { opacity: 0; }
.tile--platinum::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 24%;
  z-index: 1;
  background: linear-gradient(var(--plat-bg) 46%, rgba(10, 13, 24, 0));
}
.tile__plat-head {
  position: relative;
  z-index: 2;
  padding: clamp(14px, 2vw, 22px) 12px 0;
  text-align: center;
}
.tile__plat-title {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--paper);
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-shadow: 3px 3px 0 var(--red);
}
.tile__plat-tag {
  margin: 8px 0 0;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.tile__foot {
  position: relative;
  margin: 0 14px 14px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tile__credit {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 6px rgba(10, 13, 24, 0.9);
}

/* Civics: orange halftone tile, tilted phone with the recording cropped
   above the Safari bar (frame shows the top 85% of the 1180x2556 video). */
.tile--civics { background-color: var(--red); }
.phone {
  position: absolute;
  top: 9%;
  right: 11%;
  width: 41%;
  box-sizing: content-box; /* ratio applies inside the border, so the crop is exact */
  aspect-ratio: 1180 / 2173;
  border: 6px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  background: #F2EDE1;
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(-4deg);
}
.phone video {
  /* Full recording at its natural height, hung from the top; the frame above
     is 15% shorter, so overflow hides Safari's bar in every browser. */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1180 / 2556;
  display: block;
}
.tile--civics .tile__name {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 2;
}

/* Lumen: paper-dim halftone tile, orange glow behind a tilted phone.
   The phone holds a placeholder until real screens are supplied. */
.tile--lumen {
  background-color: var(--paper-dim);
  background-image: radial-gradient(rgba(13, 13, 13, 0.18) 0.9px, transparent 1px);
  background-size: 5px 5px;
}
.lumen-glow {
  position: absolute;
  left: 68%;
  top: 50%;
  width: 110%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(222, 78, 31, 0.95), transparent 58%);
}
.lumen-phone {
  position: absolute;
  left: 68%;
  top: 50%;
  height: 80%;
  aspect-ratio: 1180 / 2350;
  transform: translate(-50%, -50%) rotate(-3deg);
  border: 5px solid var(--ink);
  border-radius: 26px;
  overflow: hidden;
  background: var(--ink-soft);
  box-shadow: 7px 7px 0 var(--red);
}
/* Whatever sits in the phone (placeholder, img or video) fills the screen */
.lumen-phone > * {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.lumen-phone__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
  background: var(--ink-soft);
}
.tile--lumen .tile__name {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 2;
}

/* Branded: dark tile, "street poster" taped up, urban treatment. */
.tile--branded { background: var(--ink-soft); }
.street-poster {
  position: absolute;
  top: 19%;
  left: 50%;
  width: 80%;
  transform: translateX(-50%) rotate(-2.5deg);
  border: 7px solid var(--paper);
  background: var(--paper);
  box-shadow: 9px 9px 0 var(--red);
}
.street-poster__media { aspect-ratio: 16 / 9; }
.street-poster__media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.tape {
  position: absolute;
  z-index: 4;
  top: -14px;
  width: 64px;
  height: 22px;
  background: rgba(245, 241, 232, 0.55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.tape--left { left: -18px; transform: rotate(-32deg); }
.tape--right { right: -18px; transform: rotate(28deg); }
.tile__foot-left {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
}
.tile__meta {
  margin: 6px 0 0;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

/* 5. EPISODE 01 ----------------------------------------------------------- */
.episode {
  background-color: var(--ink);
  background-image: radial-gradient(rgba(245, 241, 232, 0.06) 0.9px, transparent 1px);
  background-size: var(--halftone-size);
  padding: var(--pad-y) var(--gutter);
  color: var(--paper);
}
.episode .sec-head,
.episode__grid { max-width: var(--max); margin-inline: auto; }

.episode__grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) {
  .episode__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}

.player {
  aspect-ratio: 16 / 9;
  background: var(--plat-bg);
  border: 6px solid var(--paper);
  box-shadow: 10px 10px 0 var(--red);
}
.player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: 50% 60%; /* clears the tagline above, the chip row below */
  background: var(--plat-bg);
}

.episode__name {
  margin: clamp(24px, 3vw, 32px) 0 6px;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--red);
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 0.95;
}
.episode__logline {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--paper-dim);
}

.episode__info .label { margin-bottom: 10px; }
.episode__show {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--paper);
  font-size: clamp(52px, 6vw, 84px);
  line-height: 0.88;
  text-shadow: var(--misreg-offset) var(--misreg-offset) 0 rgba(222, 78, 31, 0.45);
}
.episode__kind {
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--paper-dim);
}

.episode__list {
  list-style: none;
  margin: clamp(24px, 3vw, 32px) 0 0;
  padding: 0;
  border-top: 1px solid rgba(245, 241, 232, 0.2);
}
.episode__list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(245, 241, 232, 0.2);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
}
.episode__num { color: var(--red); }

.credit { margin-top: clamp(22px, 3vw, 30px); }
.credit p { margin: 0; }
.credit__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 26px;
  line-height: 1;
  color: var(--paper);
  margin-bottom: 8px !important;
}
.credit__roles {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.follow { margin-top: clamp(22px, 3vw, 30px); }
.follow__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.follow__chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--paper);
}
a.follow__chip:hover { color: var(--ink); background: var(--red); border-color: var(--red); }
.follow__chip--soon {
  color: var(--paper-dim);
  background: transparent;
  border: 2px dashed rgba(232, 227, 216, 0.5);
}

/* 6. STORY SYSTEMS -------------------------------------------------------- */
.systems {
  background-color: var(--red);
  padding: var(--pad-y) var(--gutter);
}
.systems > .label,
.systems__list { max-width: var(--max); margin-inline: auto; }
.systems > .label { margin-bottom: clamp(32px, 5vw, 56px); }

.systems__list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(32px, 4vw, 56px);
}
.system__num {
  display: block;
  font-family: var(--font-display);
  color: var(--paper);
  font-size: clamp(64px, 7vw, 104px);
  line-height: 0.9;
}
.system__title {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--paper);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1;
}
.system__line {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}

/* 7. CONTACT -------------------------------------------------------------- */
.contact-sec {
  background: var(--paper);
  padding: var(--pad-y) var(--gutter);
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
@media (min-width: 900px) {
  .contact-sec { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
.contact-sec > * { max-width: 100%; }

.contact-sec .label { margin-bottom: clamp(12px, 1.6vw, 18px); }
.contact-sec .sec-title { margin-bottom: clamp(22px, 3vw, 34px); }

.contact-sec__email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: clamp(17px, 2.4vw, 32px);
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}
.contact-sec__email:hover { color: var(--ink); background: var(--red); }

.contact-sec__note {
  margin: 18px 0 4px;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
}

.founders { display: flex; flex-direction: column; gap: 28px; }
.founder {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(22px, 2.6vw, 30px);
  box-shadow: 8px 8px 0 var(--red);
}
.founder__role {
  margin: 0 0 10px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--red);
}
.founder__name {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 0.95;
  color: var(--paper);
}
.founder__line {
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--paper-dim);
}
.founder__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* 8. FOOTER --------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  border-top: 2px solid var(--red);
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}
.site-footer__wrap {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--red);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.9;
}
.site-footer__copy {
  margin: 0;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

/* Reduced motion: no transforms on hover, no tilt animation */
@media (prefers-reduced-motion: reduce) {
  .hero__word, .btn { transition: none; }
  .hero__word:hover, .btn:hover { transform: none; }
}

/* FLIP CARDS --------------------------------------------------------------- */
/* Tilt, sheen and flip for the four Work tiles (flip.js builds each back face
   and toggle). Without JS none of this has a visible effect: the wrapper just
   holds the tile and its shadow. Drag-to-flip is intentionally not offered; it
   conflicts with page scroll and link taps. */
.flip {
  position: relative;
  width: 100%;
  perspective: 1100px;
  container-type: inline-size; /* the back face compacts by its own width */
  /* The hard shadow is static on the wrapper: it never rotates or blurs. */
  box-shadow: 8px 8px 0 rgba(13, 13, 13, 0.28);
}
.home .flip .tile { box-shadow: none; }
.flip.is-hover,
.flip.is-flipped { z-index: 2; }

.flip__tilt {
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--lift, 1));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.flip.is-hover .flip__tilt { transition: transform 0.12s linear; will-change: transform; }

.flip__inner {
  position: relative;
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.25);
}
.flip.is-turning .flip__inner { will-change: transform; }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }

.flip__face {
  grid-area: 1 / 1;
  min-width: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.flip__face[inert] { pointer-events: none; }

/* Safari draws <video> through backface-visibility, so the turned-away face
   is also hidden once the card passes edge-on (~0.1s into the spring). */
.flip.is-flipped .flip__face--front,
.flip:not(.is-flipped) .flip__face--back {
  visibility: hidden;
  transition: visibility 0s linear 0.1s;
}

/* Sheen: one soft cream light per face, moved with transform only */
.flip__sheen {
  position: absolute;
  inset: -45%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(245, 241, 232, 0.18), transparent 34%);
  transform: translate(var(--gx, 0px), var(--gy, 0px));
  transition: opacity 0.25s ease;
}
.flip.is-hover .flip__sheen { opacity: 1; }

/* The invisible button over the front face */
.flip-toggle {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* The ring goes on the wrapper (the face clips outlines, and an orange ring
   would vanish on the orange Civics tile). */
.home .flip-toggle:focus-visible { outline: none; }
.flip:has(.flip-toggle:focus-visible) { outline: 3px solid var(--red); outline-offset: 3px; }

/* Back face: ink, light halftone, paper text */
.flip__face--back {
  /* Pinned to the front's square so a long back can never stretch the tile */
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(12px, 1.5vw, 20px);
  border: 2px solid var(--ink);
  background-color: var(--ink);
  background-image: radial-gradient(rgba(245, 241, 232, 0.06) 0.9px, transparent 1px);
  background-size: var(--halftone-size);
  color: var(--paper);
  transform: rotateY(180deg);
}
.flip__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.flip__label {
  margin: 0;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
}
.flip-back {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: transparent;
  border: 2px solid var(--paper);
  cursor: pointer;
}
.flip-back:hover { color: var(--ink); background: var(--paper); }

.flip__body { margin-top: auto; }
.flip__title {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--paper);
  font-size: clamp(36px, 3.6vw, 56px);
  line-height: 0.9;
  text-shadow: 3px 3px 0 var(--red);
}
.flip__line {
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--paper);
}
.flip__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 14px;
  margin-top: 10px;
}
.flip__status {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

/* Small tiles (4-up laptops, 2-up just over 600px): the same content, tighter */
@container (max-width: 320px) {
  .flip__face--back { padding: 10px; }
  .flip__label { font-size: 10px; letter-spacing: 0.12em; }
  .flip__title { font-size: 30px; }
  .flip__line { margin-top: 6px; font-size: 13px; line-height: 1.3; }
  .flip__actions { margin-top: 6px; gap: 0 12px; }
}

/* CTAs on the back: orange button with ink text; the quiet link stays text */
.home .flip__face--back .text-link {
  color: var(--paper);
  text-decoration-color: rgba(245, 241, 232, 0.5);
}
.home .flip__face--back .text-link:not(.text-link--quiet) {
  padding: 0 14px;
  color: var(--ink);
  background: var(--red);
  text-decoration: none;
}
.home .flip__face--back .text-link:not(.text-link--quiet):hover { background: var(--paper); }
.home .flip__face--back .text-link--quiet:hover { color: var(--ink); background: var(--red); }
.home .flip__face--back a:focus-visible,
.home .flip__face--back button:focus-visible { outline-color: var(--paper); }

/* Reduced motion: no tilt, no sheen, no rotation. The faces stack and the
   swap is a 200ms crossfade. */
@media (prefers-reduced-motion: reduce) {
  .flip__tilt,
  .flip.is-hover .flip__tilt { transform: none; transition: none; will-change: auto; }
  .flip__inner,
  .flip.is-flipped .flip__inner { transform: none; transition: none; will-change: auto; }
  .flip__sheen { display: none; }
  .flip__face {
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
    transition: opacity 0.2s linear;
  }
  .flip__face--back,
  .flip:not(.is-flipped) .flip__face--back {
    transform: none; opacity: 0; visibility: visible; transition: opacity 0.2s linear;
  }
  .flip.is-flipped .flip__face--back { opacity: 1; }
  .flip.is-flipped .flip__face--front {
    opacity: 0; visibility: visible; transition: opacity 0.2s linear;
  }
}
