/* ===============================================================
   Tangible Visual — 2011–2025
   "Last Light". The page commits to a single dark world: the
   atmosphere of the studio's own blue-hour render. Deliberately
   single-theme, so every colour is painted explicitly and the page
   holds on any host background.

   Source Serif 4 (Frank Grießhammer), SIL Open Font License 1.1.
   Self-hosted, latin subset — the page contacts no third party.
   =============================================================== */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/source-serif-4-latin-400.woff2") format("woff2");
}

:root {
  --night:    #0c0e11;
  --panel:    #121212;   /* exactly invert(#ededed) so the client plate blends */
  --ink:      #f2f0ec;
  --muted:    #9aa1a9;
  --faint:    #6a727b;
  --rule:     #262b31;
  --sun:      #c9a227;

  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --px: clamp(1.25rem, 6vw, 6rem);
  --measure: 36rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.1875rem);
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

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

.label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0;
}

/* ---------------------------------------------------------------
   Hero. The one image on the page. Capped so it never becomes an
   absurd band on an ultrawide display.
   --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 880px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--px);
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Scrim: keeps the type legible over the render and lands the
   bottom edge exactly on the page background. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(12,14,17,.62) 0%,
    rgba(12,14,17,.18) 30%,
    rgba(12,14,17,.55) 62%,
    rgba(12,14,17,.94) 86%,
    var(--night) 100%);
}

.hero__top { position: absolute; top: var(--px); left: var(--px); right: var(--px); z-index: 2; }

/* The logo asset is already the light-on-dark artwork — white wordmark
   with the chrome mark intact. No invert filter: inverting it produced
   a negative of the chrome, which is what made it read as a smudge. */
.hero__logo { width: clamp(11rem, 20vw, 15rem); }

.hero__inner { position: relative; z-index: 2; max-width: 60rem; }

.hero__years { display: flex; align-items: baseline; gap: clamp(.9rem, 3vw, 1.5rem); margin: 0 0 1.4rem; }

.hero__years span {
  font-size: clamp(2.375rem, 1.4rem + 5vw, 5.25rem);
  line-height: 1;
  color: var(--sun);
  font-variant-numeric: lining-nums tabular-nums;
}

.hero__years i { flex: 1; height: 1px; background: var(--sun); opacity: .5; font-style: normal; }

.hero__line {
  font-size: clamp(1.4375rem, 1.05rem + 1.9vw, 2.625rem);
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
  max-width: 24ch;
}

/* --- layout ---
   Note: set the inline padding longhand only. The shorthand would
   reset padding-top and, being a class, would beat the `section`
   rule below — silently collapsing the space above every heading. */
.wrap { padding-left: var(--px); padding-right: var(--px); }
.col  { max-width: var(--measure); }

section { padding-top: clamp(4rem, 11vh, 8rem); }

.head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .9rem;
  margin-bottom: 2rem;
}
.head span { flex: 1; }

.prose { display: flex; flex-direction: column; gap: 1.3em; color: var(--muted); margin: 0; }
.prose p { margin: 0; }
.prose strong { color: var(--ink); font-weight: 400; }
.prose a { color: var(--ink); text-decoration-color: var(--sun); text-underline-offset: .2em; }

/* ---------------------------------------------------------------
   Testimonials — the centrepiece. Alternating alignment on wide
   screens; stacked flush left on narrow, where alternation only
   creates ragged edges.
   --------------------------------------------------------------- */
.quote { max-width: 44rem; margin: 0 0 clamp(3rem, 8vh, 5.5rem); }
.quote:last-child { margin-bottom: 0; }

.quote p {
  font-size: clamp(1.3125rem, 1.05rem + 1.4vw, 2rem);
  line-height: 1.3;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: pretty;
}

.quote p::first-letter { color: var(--sun); }

.quote figcaption {
  font-family: var(--sans);
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--faint);
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}

/* nth-of-type, not nth-child: the section's heading div would
   otherwise shift the count and offset the wrong quotes. */
@media (min-width: 60rem) {
  .quote:nth-of-type(even) { margin-left: auto; }
}

/* ---------------------------------------------------------------
   Client plate. The banner is black-on-light artwork, so it is
   inverted to sit in the dark page. The panel colour is exactly
   invert(#ededed) so the plate edge disappears.
   --------------------------------------------------------------- */
.plate {
  background: var(--panel);
  padding: clamp(1rem, 3vw, 2.25rem);
  border-radius: 2px;
  margin: 0;
}

.plate img { filter: invert(1); }

.roll {
  columns: 3 11rem;
  column-gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

/* Every client reads with equal weight. Whether we happen to have a
   URL for them must not make a name look less important — only the
   arrow marks the difference. */
.roll li {
  break-inside: avoid;
  padding: .5rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.0625rem;
  color: var(--ink);
}

.roll a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.roll a:hover, .roll a:focus-visible { color: var(--sun); border-bottom-color: var(--sun); }

.roll a::after {
  content: "↗";
  font-family: var(--sans);
  font-size: .625em;
  color: var(--faint);
  margin-left: .35em;
  vertical-align: .25em;
}

/* --- contact --- */
.mail {
  font-size: clamp(1.125rem, .95rem + .8vw, 1.5rem);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--sun);
  padding-bottom: .1em;
  transition: color 160ms ease;
}
.mail:hover, .mail:focus-visible { color: var(--sun); }

/* --- legal page --- */
.legal { color: var(--muted); max-width: 44rem; }
.legal h2 {
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 2.75rem 0 .9rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--rule);
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { margin: 0 0 1.1em; }
.legal ul { padding-left: 1.15rem; margin: 0 0 1.1em; }
.legal li { margin-bottom: .5em; }
.legal strong { color: var(--ink); font-weight: 400; }
.legal a { color: var(--ink); text-decoration-color: var(--sun); text-underline-offset: .2em; }

.pagetop { padding: clamp(2.5rem, 7vh, 4.5rem) var(--px) 0; }
.pagetop img { width: clamp(9rem, 16vw, 12rem); }

.backlink {
  display: inline-block;
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
  margin-bottom: .75rem;
}
.backlink:hover, .backlink:focus-visible { color: var(--sun); }

.lede-sm {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.022em;
  font-weight: 400;
  margin: clamp(2rem, 5vh, 3.5rem) 0 2.5rem;
  text-wrap: balance;
}

/* --- footer --- */
.foot {
  padding: clamp(3rem, 8vh, 5rem) var(--px) clamp(3rem, 8vh, 5rem);
  border-top: 1px solid var(--rule);
  margin-top: clamp(4rem, 11vh, 8rem);
}

.foot__nav { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; list-style: none; padding: 0; margin: 0 0 1.25rem; }

.foot__nav a {
  font-family: var(--sans);
  font-size: .8125rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: .15em;
  transition: color 160ms ease, border-color 160ms ease;
}
.foot__nav a:hover, .foot__nav a:focus-visible { color: var(--ink); border-bottom-color: var(--sun); }

.foot p { font-family: var(--sans); font-size: .8125rem; color: var(--faint); margin: .35rem 0; line-height: 1.7; }

.foot p a {
  color: var(--muted);
  text-decoration-color: var(--sun);
  text-underline-offset: .2em;
  transition: color 160ms ease;
}
.foot p a:hover, .foot p a:focus-visible { color: var(--ink); }

:where(a):focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; border-radius: 1px; }

/* --- load sequence: the last render resolving --- */
@media (prefers-reduced-motion: no-preference) {
  .hero__inner > *, .hero__top { animation: resolve 1.1s cubic-bezier(.22,.61,.36,1) backwards; }
  .hero__top    { animation-delay: .1s; }
  .hero__years  { animation-delay: .3s; }
  .hero__line   { animation-delay: .5s; }
  @keyframes resolve { from { opacity: 0; transform: translateY(1rem); } }
}
