/* ==========================================================================
   WCN ADVISORY
   WCN_Web_Stylesheet_24Jul26_D1
   --------------------------------------------------------------------------
   Self-host all three faces before launch. No external requests anywhere in
   this build: Google Fonts and most public CDNs are unreliable or blocked in
   mainland China, which is half the audience.

   Inter      display   — open licence, self-host
   Calibri    body      — Microsoft licence. Carlito is metric-compatible and
                          open; serve Carlito and let Calibri win where present
   Cambria    wordmark  — Microsoft licence. Caladea is the metric-compatible
                          open equivalent
   ========================================================================== */

/* All three faces are served from this repository. Nothing loads from Google
   Fonts or any public CDN: those are unreliable or blocked in mainland China,
   which is half the audience. Keep it that way.

   Inter    display   — SIL Open Font Licence
   Carlito  body      — metric-compatible with Calibri, SIL OFL
   Caladea  wordmark  — metric-compatible with Cambria, SIL OFL

   Calibri and Cambria themselves are Microsoft-licensed and may not be served
   as webfonts. They are kept first in each stack so that any reader who has
   them installed sees the exact brand face; everyone else gets an identical
   metric substitute. */

@font-face { font-family:'Inter';   src:url('../fonts/Inter-Regular.woff2')  format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Inter';   src:url('../fonts/Inter-Medium.woff2')   format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Carlito'; src:url('../fonts/Carlito-Regular.woff2')format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Carlito'; src:url('../fonts/Carlito-Bold.woff2')   format('woff2'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Caladea'; src:url('../fonts/Caladea-Regular.woff2')format('woff2'); font-weight:400; font-style:normal; font-display:swap; }

:root {
  --ink: #0E0F12;
  --red: #AE3C2A;
  --ground: #FAF8F5;
  --muted: #5A5A5A;
  --rule: #DCD6CE;
  --rule-soft: #EAE5DE;

  --display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Calibri', 'Carlito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mark: 'Cambria', 'Caladea', Georgia, 'Times New Roman', serif;

  --measure: 62ch;
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --rhythm: clamp(3.5rem, 8vw, 7rem);
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

/* --- skip link ---------------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ground);
  padding: 0.75rem 1.25rem;
  z-index: 10;
}
.skip:focus { left: 0; }

/* --- shell -------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* --- masthead ----------------------------------------------------------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mark);
  font-size: 1.1875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark__emblem {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
  flex: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  font-family: var(--display);
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--red); }
.nav a[aria-current='page'] { color: var(--red); border-bottom-color: var(--red); }

/* --- type --------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.2rem + 3.3vw, 3.5rem);
  line-height: 1.12;
  max-width: 22ch;
}

h2 {
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem);
  line-height: 1.22;
  max-width: 26ch;
}

h3 {
  font-size: 1.125rem;
  letter-spacing: 0;
  line-height: 1.35;
}

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-family: var(--display);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
  max-width: 46ch;
}

.eyebrow {
  display: block;
  font-family: var(--display);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1rem;
}

.numeral {
  font-family: var(--display);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  color: var(--red);
}

.note {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 54ch;
}

/* --- sections ----------------------------------------------------------- */

main { padding-block: var(--rhythm) 0; }

.band { padding-block: 0 var(--rhythm); }

.band + .band { border-top: 1px solid var(--rule-soft); padding-top: var(--rhythm); }

.stack > * + * { margin-top: 1.5rem; }

/* --- hero --------------------------------------------------------------- */

.hero { padding-bottom: var(--rhythm); }

.hero h1 { max-width: 18ch; }

.hero__lede { margin-top: 2.25rem; }

/* --- corridor rule: the site's one repeated device ----------------------- */
/* A hairline that leaves the margin, turns, and returns. Same geometry as the
   programme-composition circuit in the How we work diagram.                 */

.corridor {
  display: block;
  width: 100%;
  height: 1.75rem;
  margin: 0 0 2.75rem;
  overflow: visible;
}
.corridor path { fill: none; stroke: var(--red); stroke-width: 1; }
.corridor circle { fill: var(--ground); stroke: var(--red); stroke-width: 1.5; }

/* --- columns ------------------------------------------------------------ */

.cols {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 2.75rem;
}

.cols p { max-width: none; }

.col__title {
  font-family: var(--display);
  font-size: 1.0625rem;
  margin: 0.7rem 0 0.85rem;
}

/* --- service pillars ---------------------------------------------------- */

.pillar { padding-block: var(--rhythm) 0; }
.pillar:first-of-type { padding-top: 0; }

.pillar__head { border-top: 1px solid var(--rule); padding-top: 1.75rem; }

.pillar__intro { margin-top: 1.25rem; max-width: 52ch; }

.services {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin-top: 2.5rem;
}

.service h3 { margin-bottom: 1rem; }

.service ul { margin: 0; padding: 0; list-style: none; }

.service li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.7rem;
  font-size: 0.9688rem;
  line-height: 1.55;
}
.service li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.7rem;
  height: 1px;
  background: var(--red);
}

.outcome {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--display);
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 48ch;
}

/* --- method ------------------------------------------------------------- */

.stage { max-width: var(--measure); margin-bottom: 2.25rem; }
.stage h3 { margin: 0.5rem 0 0.6rem; }
.stage p { margin: 0; }

.composition {
  max-width: var(--measure);
  margin: 2.75rem 0;
  padding: 1.75rem 0 1.75rem 1.75rem;
  border-left: 1px solid var(--red);
}

.figure { margin: 3rem 0 0; }
.figure img { display: block; width: 100%; height: auto; }
.figure__mobile { display: none; }

@media (max-width: 40rem) {
  .figure__desktop { display: none; }
  .figure__mobile { display: block; }
}

figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* --- people ------------------------------------------------------------- */

.person {
  padding-top: 2.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.person__intro {
  display: grid;
  grid-template-columns: minmax(0, 11.5rem) 1fr;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}

.person__portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(1);
}

@media (max-width: 40rem) {
  .person__intro { grid-template-columns: 1fr; }
  .person__portrait { max-width: 11rem; }
}

.person__name {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.3rem;
}

.person__role {
  font-family: var(--display);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.4rem;
}

.person__detail {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin-top: 1.75rem;
}

.person__detail h4 {
  font-family: var(--display);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 1rem;
}

.person__detail ul { margin: 0; padding: 0; list-style: none; }

.person__detail li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.7rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.person__detail li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.7rem;
  height: 1px;
  background: var(--red);
}

/* --- contact ------------------------------------------------------------ */

.contact__email {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.875rem);
  letter-spacing: -0.01em;
}
.contact__email a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 0.15rem;
}
.contact__email a:hover { color: var(--red); }

.offices {
  font-family: var(--display);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 2.5rem;
}

/* --- colophon ----------------------------------------------------------- */

.colophon {
  border-top: 1px solid var(--rule);
  margin-top: var(--rhythm);
  padding-block: 2.5rem 3.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.colophon__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: space-between;
  align-items: baseline;
}

.colophon a { color: var(--muted); }
.colophon a:hover { color: var(--red); }

.colophon__offices {
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.colophon__legal { margin-top: 1.75rem; max-width: 60ch; }

/* --- focus & motion ----------------------------------------------------- */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* --- RTL: hooks for the Arabic tree ------------------------------------- */

[dir='rtl'] .service li,
[dir='rtl'] .person__detail li { padding-left: 0; padding-right: 1.35rem; }
[dir='rtl'] .service li::before,
[dir='rtl'] .person__detail li::before { left: auto; right: 0; }
[dir='rtl'] .composition {
  border-left: 0;
  border-right: 1px solid var(--red);
  padding-left: 0;
  padding-right: 1.75rem;
}

/* --- inlined diagram ----------------------------------------------------- */
/* Inlined rather than linked: an SVG loaded through <img> cannot use the
   page's webfonts or CSS variables, so it would fall back to Arial.          */

.dgm { display: block; width: 100%; height: auto; }
.dgm .dg { font-family: var(--display); }
.dgm--mobile { display: none; }

@media (max-width: 40rem) {
  .dgm--desktop { display: none; }
  .dgm--mobile  { display: block; max-width: 26rem; }
}

/* --- imagery: ink bands & duotone tiles --------------------------------- */
/* Full-bleed ink bands break the pale ground and give the site the deck's
   dark/light rhythm. The image is already ink-veiled at export, so white text
   sits safely over it; the gradient is a small extra guarantee on the left.  */

.inkband {
  position: relative;
  background: var(--ink);
  margin-block: var(--rhythm);
  overflow: hidden;
}
.inkband picture,
.inkband img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inkband picture {
  position: absolute;
  inset: 0;
}
.inkband img { filter: grayscale(1); }

.inkband__text {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.inkband--tall { min-height: clamp(14rem, 26vw, 20rem); }
.inkband--tall picture { position: static; }
.inkband--tall img { height: clamp(14rem, 26vw, 20rem); }

.inkband__text h2 { color: var(--ground); max-width: 24ch; }
.inkband__text p {
  color: #D8D3CC;
  margin-top: 0.9rem;
  max-width: 46ch;
}
.inkband__rule {
  display: block;
  width: 3.25rem;
  height: 2px;
  background: var(--red);
  margin-bottom: 1.3rem;
}

/* left-side scrim so text stays legible whatever the image does underneath */
.inkband__text::before {
  content: '';
  position: absolute;
  inset: 0 30% 0 0;
  background: linear-gradient(90deg, rgba(14,15,18,0.75), rgba(14,15,18,0));
  pointer-events: none;
  z-index: -1;
}

/* duotone tiles that sit on the pale ground above a column or pillar */
.col__tile {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 11 / 7;
  object-fit: cover;
  filter: grayscale(1);
  margin-bottom: 1.4rem;
}

.cols--tiled { margin-top: 2.75rem; }

/* pillar header strip: wide and shallow, a band not a block */
.pillar__tile {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 32 / 7;
  object-fit: cover;
  filter: grayscale(1);
  margin-bottom: 1.75rem;
}

/* --- wider-team network device ------------------------------------------ */
.network {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
}
.network__col h4 {
  font-family: var(--display);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--red);
  margin: 0 0 1.1rem;
}
.network__col ul { margin: 0; padding: 0; list-style: none; }
.network__col li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.7rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.network__col li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.7em;
  width: 0.7rem; height: 1px;
  background: var(--red);
}

/* --- representative-work credentials ------------------------------------ */
.creds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: 2.75rem;
}
.cred {
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}
.cred__mark {
  display: block;
  width: 2.25rem; height: 2px;
  background: var(--red);
  margin-bottom: 1.25rem;
}
.cred p { font-size: 1.0625rem; line-height: 1.5; max-width: none; }
.cred__hold { color: var(--muted); font-style: italic; }

[dir='rtl'] .network__col li { padding-left: 0; padding-right: 1.35rem; }
[dir='rtl'] .network__col li::before { left: auto; right: 0; }
