:root {
  --paper: #ffffff;
  --paper-2: #f4f6f8;
  --ink: #002145;
  --black: #000000;
  --ink-soft: #33485a;
  --mute: #707070;
  --rule: #d7dbe0;
  --navy: #002145;
  --gold: #cea94b;
  --signal: #c8102e;
  --card: #f7f8f9;
  --panel: #002145;
  --panel-mute: #b7c2ce;
  --shadow: 0 24px 60px rgba(0, 33, 69, 0.12);
  --serif: "Montserrat", "Helvetica Neue", sans-serif;
  --sans: "Montserrat", "Helvetica Neue", sans-serif;
  --space: clamp(1.25rem, 2.4vw, 2.5rem);
  --wide: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { top: 1rem; }

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 50;
  background: transparent;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), padding 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--rule); padding-top: 0.7rem; padding-bottom: 0.7rem; }

.nav-mark {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.nav nav {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.6rem);
  align-items: center;
}
.nav nav a {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav nav a:hover { color: var(--ink); }
.nav-cta {
  border: 1px solid var(--ink);
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  color: var(--ink) !important;
}
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; }

.hero,
.work,
.clients,
.aid,
.system,
.path,
.about,
.contact,
.stats,
.foot {
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

.hero {
  padding-top: clamp(2.5rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6.5rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
}
.saltire {
  width: 11px;
  height: 11px;
  max-width: 11px;
  max-height: 11px;
  display: inline-block;
  vertical-align: -1px;
  margin: 0 0.18em 0 0.28em;
  border-radius: 1px;
  opacity: 0.7;
}
.foot-place {
  color: var(--mute);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  max-width: var(--wide);
}

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(4.2rem, 13vw, 8.4rem);
}
h1 em { font-style: italic; font-weight: 600; color: var(--gold); }

.lede {
  margin: 0 0 1.1rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.3;
}

.standfirst {
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0.8rem 1.15rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.92rem;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--gold); color: var(--navy); }
.btn-ghost { border: 1px solid var(--rule); }
.btn-ghost:hover { border-color: var(--ink); }

.hero-portrait {
  margin: 0;
  position: relative;
}
.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 8%;
  border-radius: 2px;
  box-shadow: var(--shadow);
  filter: contrast(1.03) saturate(0.96);
}
.hero-portrait figcaption {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--mute);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
  max-width: var(--wide);
  margin: 0 auto 2rem;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 800px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat-num {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 0.45rem;
  color: var(--mute);
  font-size: 0.86rem;
  max-width: 14rem;
}

.section-head { max-width: 42rem; margin-bottom: 2.4rem; }
.section-head h2 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}
.section-lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.work,
.clients,
.aid,
.system,
.path,
.about,
.contact {
  max-width: calc(var(--wide) + 6rem);
  margin: 0 auto;
  padding-top: clamp(4rem, 10vw, 7.5rem);
  padding-bottom: clamp(2rem, 6vw, 4rem);
}

.case { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.case-feature,
.case-split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 860px) {
  .case-feature { grid-template-columns: 0.9fr 1.1fr; }
  .case-split { grid-template-columns: 1.15fr 0.85fr; }
}

.case-media img,
.case-panel {
  border-radius: 2px;
}
.case-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.case-event { margin-bottom: 1rem; }
.case-event .case-media img {
  aspect-ratio: 3 / 4;
  object-position: center 82%;
}

.event-strip {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 800px) {
  .event-strip { grid-template-columns: 1fr 1fr; }
}
.event-strip figure { margin: 0; }
.event-strip img,
.event-strip video {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 72%;
  border-radius: 2px;
  background: var(--navy);
}
.event-strip video { object-fit: contain; background: #000; }
.event-strip figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--mute);
}

.case-meta {
  margin: 0 0 0.4rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case h3 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
.case p { color: var(--ink-soft); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 1.1rem 0 1rem;
  list-style: none;
}
.tags li {
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.22rem 0.7rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.text-link {
  font-weight: 600;
  font-size: 0.92rem;
  text-underline-offset: 0.22em;
}
.text-link:hover { color: var(--gold); }

.case-panel {
  background: var(--panel);
  color: var(--paper);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.case-panel dl { margin: 0; }
.case-panel dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(238, 241, 244, 0.12);
}
.case-panel dt { color: var(--panel-mute); }
.case-panel dd { margin: 0; font-family: var(--sans); font-weight: 600; font-size: 1.15rem; }
.case-panel .fine { color: var(--panel-mute); margin: 1.1rem 0 0; font-size: 0.78rem; }

.case-row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .case-row { grid-template-columns: 1fr 1fr; }
}
.case-card {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: clamp(1.3rem, 3vw, 2rem);
  margin: 0;
  min-height: 100%;
}
.case-card h3 { font-size: 2.2rem; }

.client-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 640px) {
  .client-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .client-list { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.client-list a {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-decoration: none;
  border: 1px solid var(--rule);
  padding: 0.7rem 0.7rem 0.9rem;
  height: 100%;
}
.client-list img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: contain;
  background: var(--card);
}
.client-list span {
  font-weight: 600;
  font-size: 0.95rem;
}
.client-list em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--mute);
}
.client-list a:hover { border-color: var(--navy); }
.client-list a:hover span { color: var(--gold); }
.brand-lockup {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin: 0.15rem 0 0.35rem;
}

.aid-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}
@media (min-width: 860px) {
  .aid-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.aid-photo,
.aid-van { margin: 0; }
.aid-photo img,
.aid-van img {
  width: 100%;
  object-fit: cover;
  border-radius: 2px;
}
.aid-photo img { aspect-ratio: 16 / 9; object-position: 50% 40%; }
.aid-van {
  margin-bottom: 2rem;
}
.aid-van img { aspect-ratio: 16 / 9; object-position: 50% 55%; }
.aid-photo figcaption,
.aid-van figcaption {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--mute);
}
.aid .eyebrow { color: var(--signal); }
.aid-copy p { color: var(--ink-soft); }
.aid-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  max-width: var(--wide);
}
@media (min-width: 800px) {
  .aid-stats { grid-template-columns: repeat(4, 1fr); }
}

.practices {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .practices { grid-template-columns: repeat(4, 1fr); }
}
.practices li {
  border-top: 1px solid var(--ink);
  padding-top: 1rem;
}
.practices li::before {
  counter-increment: none;
  content: none;
}
.practices li {
  position: relative;
}
.practices li:nth-child(1)::after { content: "01"; }
.practices li:nth-child(2)::after { content: "02"; }
.practices li:nth-child(3)::after { content: "03"; }
.practices li:nth-child(4)::after { content: "04"; }
.practices li::after {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--mute);
  margin-bottom: 1.4rem;
}
.practice-name {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  margin-bottom: 0.6rem;
}
.practices p { margin: 0; color: var(--ink-soft); }

.path-media { margin: 0 0 2.4rem; }
.path-media img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 2px;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}
@media (min-width: 800px) {
  .timeline { grid-template-columns: 1fr 1fr; }
}
.timeline li {
  padding: 1.4rem 0 1.6rem;
  border-top: 1px solid var(--rule);
}
.timeline .when {
  display: block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.timeline h3 { margin: 0 0 0.5rem; font-size: 1.8rem; }
.timeline p { margin: 0; color: var(--ink-soft); }

.about-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
}
.about-copy h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.4rem, 6vw, 4rem);
}
.about-copy p { color: var(--ink-soft); }
blockquote {
  margin: 1.8rem 0 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--gold);
  font-family: var(--sans);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
blockquote cite {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.about-aside {
  display: grid;
  gap: 1rem;
}
.about-aside figure { margin: 0; }
.about-aside img {
  width: 100%;
  object-fit: cover;
  border-radius: 2px;
}
.about-aside figure:first-child img { aspect-ratio: 3 / 2; object-position: 55% 28%; }
.about-aside figure:last-child img { aspect-ratio: 3 / 4; object-position: 50% 18%; }
.about-aside figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--mute);
}

.contact h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
}
.contact-links {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}
@media (min-width: 700px) {
  .contact-links { grid-template-columns: repeat(3, 1fr); }
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  border-top: 1px solid var(--ink);
  padding: 1.1rem 0 0.4rem;
}
.contact-card span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.contact-card em {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 1.25rem;
}
.contact-card:hover em { color: var(--gold); }

.foot {
  max-width: calc(var(--wide) + 6rem);
  margin: 3rem auto 0;
  padding-top: 1.4rem;
  padding-bottom: 2.4rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.foot p { margin: 0; }
.fine { font-size: 0.78rem; color: var(--mute); max-width: 46rem; }

@media (max-width: 700px) {
  .nav { padding-left: 1rem; padding-right: 1rem; }
  .nav nav { gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
  .nav nav a { font-size: 0.74rem; }
  h1 { font-size: clamp(3.4rem, 18vw, 5rem); }
}

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