/* Page layout for both sites (from the design handoff). Colours come
   from the theme tokens, so nothing here is site-specific. */

/* muted text = text colour at N% */
.muted { color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.small { font-size: 13px; }
.smaller { font-size: 12px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--color-bg); padding: 8px 12px; }

.wrap { max-width: 1320px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }

/* ── header ── */
.site-header {
  padding-block: 22px; display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; gap: 2px; margin-right: auto; text-decoration: none; color: var(--color-text); }
.brand:hover { color: var(--color-text); }
.brand-name {
  font-family: var(--font-heading); font-weight: 600; font-size: 22px; line-height: 1;
  letter-spacing: var(--brand-track); text-transform: var(--brand-case);
}
.brand-role, .kicker {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
}
.kicker { letter-spacing: .14em; }
.site-nav { display: flex; gap: 12px 28px; flex-wrap: wrap; font-family: var(--font-heading); font-size: 16px; letter-spacing: .04em; }
.site-nav a {
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
  text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--color-accent); }
.site-nav a[aria-current="page"] { color: var(--color-text); border-bottom-color: var(--color-accent); }

/* ── main column ── */
main { padding-bottom: 96px; }
.stack { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 104px); }
.stack-gallery { gap: clamp(48px, 7vw, 88px); }
.stack-project { gap: 40px; padding-top: 0; }
.stack > :first-child { margin-top: 12px; }

.headline {
  font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -.015em;
  margin: 0; text-wrap: balance;
}
.headline-narrow { max-width: 22ch; }
.lead {
  margin: 0; font-size: 17px; line-height: 1.6; max-width: 52ch;
  color: color-mix(in srgb, var(--color-text) 78%, transparent); text-wrap: pretty;
}
.label {
  margin: 0; font-family: var(--font-body); font-weight: 500;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.more { font-family: var(--font-heading); font-size: 16px; text-decoration: none; }

.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.intro { display: flex; flex-direction: column; gap: 28px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.block { display: flex; flex-direction: column; gap: 28px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.block-head.ruled { border-bottom: 1px solid var(--color-divider); padding-bottom: 12px; }

/* ── spec list ── */
.specs { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.specs > div {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px;
  padding: 18px 20px; border-bottom: 1px solid var(--color-divider);
}
.specs > div:last-child { border-bottom: 0; }
.specs dt {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding-top: 3px;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}
.specs dd { margin: 0; font-family: var(--font-heading); font-size: 20px; line-height: 1.25; }
.specs-tight > div { padding: 14px 20px; }
.specs-tight dd { font-size: 19px; line-height: 1.3; }
@media (max-width: 420px) {
  .specs > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ── photo frames ── */
.frame { aspect-ratio: 3 / 2; background: #000; }
.frame-wide { aspect-ratio: 16 / 9; }
.frame-inner { position: absolute; inset: 0; overflow: hidden; }
.frame-inner img { width: 100%; height: 100%; object-fit: cover; }

/* photo treatment: tint in the accent colour; "hover" reveals full colour */
.treat-duotone .tint::after,
.treat-hover .tint::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--color-accent); mix-blend-mode: color;
}
.treat-hover .tint::after { opacity: 1; transition: opacity .35s; }
.treat-hover a:hover .tint::after,
.treat-hover a:focus-visible .tint::after { opacity: 0; }
@media (hover: none) { .treat-hover .tint::after { display: none; } }

/* ── home ── */
.showreel { aspect-ratio: 16 / 9; background: #000; }
.showreel-poster, .showreel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.showreel-poster { overflow: hidden; }
.showreel-poster img { width: 100%; height: 100%; object-fit: cover; }
.showreel-shade { position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0)); }
.showreel-bar {
  position: absolute; left: clamp(16px, 3vw, 36px); right: clamp(16px, 3vw, 36px); bottom: clamp(16px, 3vw, 32px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #f2f2f3;
}
.showreel-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.showreel-title { font-family: var(--font-heading); font-weight: 600; font-size: clamp(22px, 3vw, 34px); line-height: 1.05; }
.btn-play { font-size: 16px; padding: 12px 22px; gap: 10px; letter-spacing: .04em; }
@media (max-width: 560px) {
  .showreel-title { display: none; }
  .btn-play { padding: 8px 14px; font-size: 14px; }
}

.grid { display: grid; }
.grid-stills { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 40px 28px; }
.grid-cards  { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 48px 28px; }
.grid-photos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 28px; }
.grid-quotes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 28px; }

.tile, .card-link { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--color-text); }
.card-link { gap: 14px; }
.tile:hover, .card-link:hover { color: var(--color-text); }
.tile-caption, .card-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tile-name { font-family: var(--font-heading); font-weight: 600; font-size: 18px; }
.tile-meta { font-size: 12px; letter-spacing: .04em; text-align: right; color: color-mix(in srgb, var(--color-text) 60%, transparent); }

/* ── footer ── */
.site-footer {
  border-top: 1px solid var(--color-divider); padding-top: 32px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}
.enquiries { display: flex; flex-direction: column; gap: 6px; }
.enquiries .kicker { letter-spacing: .12em; color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.enquiries a {
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(26px, 3.4vw, 40px);
  text-decoration: none; color: var(--color-text); overflow-wrap: anywhere;
}
.enquiries a:hover { color: var(--color-accent); }
.site-footer-slim { padding-top: 24px; align-items: baseline; font-size: 13px; color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.site-footer-slim a { color: inherit; text-decoration: none; }
.site-footer-slim a:hover { color: var(--color-accent); }

/* ── gallery ── */
.page-intro { display: flex; flex-direction: column; gap: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters[hidden] { display: none; }
.filters button {
  font: 500 15px var(--font-heading); letter-spacing: .04em; padding: 8px 14px; cursor: pointer;
  border: 1px solid var(--color-divider); background: transparent; color: var(--color-text);
  display: flex; gap: 6px; align-items: baseline;
}
.filters button span { opacity: .6; font-weight: 400; }
.filters button[aria-pressed="true"] { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-bg); }
.badges { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; pointer-events: none; z-index: 1; }
.badges span {
  background: rgba(29,31,32,.82); color: #f2f2f3; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px;
}
.card-text { display: flex; flex-direction: column; gap: 6px; }
.card-name { font-family: var(--font-heading); font-weight: 600; font-size: 22px; line-height: 1.1; }
.card-short { font-size: 15px; line-height: 1.5; color: color-mix(in srgb, var(--color-text) 75%, transparent); text-wrap: pretty; }
.credits-pointer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 15px; color: color-mix(in srgb, var(--color-text) 72%, transparent);
}

/* ── project page ── */
.project-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.back { font-size: 15px; padding: 8px 12px 8px 4px; color: var(--color-text); gap: 8px; }
.project-pos {
  margin-left: auto; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}
.split-project { gap: clamp(28px, 5vw, 64px); }
.project-text { display: flex; flex-direction: column; gap: 20px; }
.project-name { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.015em; }
.project-text .lead { line-height: 1.65; max-width: 56ch; color: color-mix(in srgb, var(--color-text) 80%, transparent); }
.award { display: flex; gap: 10px; align-items: center; font-family: var(--font-heading); font-size: 19px; color: var(--color-accent); }
.award svg { flex: none; }
.video { aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.photo { display: flex; flex-direction: column; gap: 10px; }
.photo figcaption { font-size: 13px; color: color-mix(in srgb, var(--color-text) 62%, transparent); }
.prevnext { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--color-divider); }
.prevnext a { color: var(--color-text); text-decoration: none; padding: 20px 20px 0 0; display: flex; flex-direction: column; gap: 4px; }
.prevnext a + a { border-left: 1px solid var(--color-divider); padding: 20px 0 0 20px; align-items: flex-end; text-align: right; }
.prevnext a:hover { color: var(--color-accent); }
.prevnext-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.prevnext-name { font-family: var(--font-heading); font-weight: 600; font-size: 22px; }

/* ── about ── */
.split-about { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.portrait {
  aspect-ratio: 4 / 5;
  background: repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb, var(--color-text) 7%, transparent) 9px 10px);
}
.portrait-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center;
  font-family: ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: .06em;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}
.bio { display: flex; flex-direction: column; gap: 16px; max-width: 58ch; }
.bio p { margin: 0; font-size: 17px; line-height: 1.65; color: color-mix(in srgb, var(--color-text) 80%, transparent); text-wrap: pretty; }
.split-about .specs { margin-top: 8px; }

.table-scroll { overflow-x: auto; overflow-y: hidden; }
.credits { min-width: 640px; font-size: 15px; }
.credits th:first-child { width: 34%; }
.credits th:nth-child(2) { width: 22%; }
.credits td { padding: 14px 8px; vertical-align: baseline; }
.credit-name { font-family: var(--font-heading); font-weight: 600; font-size: 19px; }
.credit-name a { color: inherit; text-decoration-color: var(--color-accent); }
.credit-name a:hover { color: var(--color-accent); }
.credit-year { font-family: var(--font-body); font-weight: 400; font-size: 13px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.credit-cat { color: color-mix(in srgb, var(--color-text) 70%, transparent); }

.quote { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.quote blockquote { margin: 0; font-family: var(--font-heading); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; }
.quote figcaption { font-size: 13px; letter-spacing: .04em; color: color-mix(in srgb, var(--color-text) 60%, transparent); }

.kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); overflow: visible; }
.kit-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.kit-cell {
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  border-right: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); margin: 0 -1px -1px 0;
}
.kit-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent); }
.kit-cell h3 { margin: 0; font-size: 25px; }
.kit-cell p { margin: 0; font-size: 15px; line-height: 1.55; color: color-mix(in srgb, var(--color-text) 78%, transparent); }

.contact {
  padding: clamp(28px, 5vw, 64px); display: grid; gap: 32px; align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.contact-main { display: flex; flex-direction: column; gap: 14px; }
.contact h2 { margin: 0; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; text-wrap: balance; }
.contact-email {
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(28px, 4vw, 52px); line-height: 1.1;
  text-decoration: none; overflow-wrap: anywhere;
}
.contact-side { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.contact-side p { margin: 0; font-size: 16px; line-height: 1.6; max-width: 44ch; color: color-mix(in srgb, var(--color-text) 78%, transparent); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
