:root {
  --bg: #1d2b8a; /* Deep cobalt ground */
  --paper: #f5eee0; /* Cream stock: project frames and inset CV sheet */
  --ink: #f5eee0; /* Cream type on cobalt */
  --accent: #ff9478; /* Coral links and editorial emphasis, AA on cobalt */
  --muted: #c3c9f1; /* Secondary text, lavender, AA on cobalt */
  --line: #5866bd; /* Baseline rules, not text */
  --paper-ink: #1d2b8a; /* Cobalt type on cream stock: the ground colour, printed */
  --paper-accent: #b4321c; /* Vermilion on cream stock, AA */
  --paper-muted: #4b5390; /* Cobalt-grey secondary text on cream stock, AA */
  --paper-line: #b6b8d6; /* Rules on cream stock */
  --font-display: 'Newsreader', Georgia, serif; /* Variable editorial serif */
  --font-body: 'Overpass Mono', 'Courier New', monospace; /* Dates and working notes */
  --gutter: clamp(20px, 4.2vw, 80px); /* Outer page margin */
  --unit: 8px; /* Baseline spacing unit */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--bg); }
.cv-sheet ::selection, .mobile-nav nav ::selection { background: var(--paper-accent); color: var(--paper); }
/* Cream-stock surfaces swap to navy type and vermilion accents */
.cv-sheet, .mobile-nav nav, .enquiry-form input, .enquiry-form textarea { --ink: var(--paper-ink); --accent: var(--paper-accent); --muted: var(--paper-muted); --line: var(--paper-line); color: var(--ink); }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a, button, summary { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
/* Fields sit on cobalt: draw their focus ring inside the cream field so vermilion stays visible */
.enquiry-form input:focus-visible, .enquiry-form textarea:focus-visible { outline: 3px solid var(--paper-accent); outline-offset: -3px; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; }
h1 { font-size: clamp(52px, 8.1vw, 136px); line-height: .96; letter-spacing: -.045em; }
h2 { font-size: clamp(38px, 4.8vw, 80px); line-height: 1.04; letter-spacing: -.04em; }
h3 { font-size: clamp(28px, 2.7vw, 42px); line-height: 1.15; letter-spacing: -.025em; }
h4 { font-size: 24px; line-height: 1.25; }
em { font-weight: 400; }
p + p { margin-top: 24px; }
.label { font: 400 12px/1.5 var(--font-body); letter-spacing: .055em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.skip { position: fixed; z-index: 10; top: 16px; left: 16px; padding: 12px 20px; background: var(--paper); color: var(--paper-ink); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.site-header { position: relative; margin: 0 var(--gutter); min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--ink); }
.wordmark { display: inline-flex; align-items: baseline; min-height: 44px; padding: 8px 0; font: 400 27px/1 var(--font-display); letter-spacing: -.03em; text-decoration: none; }
.wordmark-note { margin-left: 10px; font: 400 12px/1.4 var(--font-body); letter-spacing: 0; }
.desktop-nav, .header-cta { display: none; }
.mobile-nav summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; list-style: none; min-height: 44px; font-size: 13px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { font-size: 24px; }
.mobile-nav[open] summary span { transform: rotate(45deg); }
.mobile-nav nav { position: absolute; z-index: 5; top: 79px; left: 0; right: 0; display: grid; padding: 16px 24px; background: var(--paper); border: 1px solid var(--ink); }
.mobile-nav nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); text-decoration: none; }
.mobile-nav nav a:last-child { border: 0; color: var(--accent); }
nav a[aria-current='page'] { color: var(--accent); text-decoration: underline; text-underline-offset: 7px; }
.cta, .text-link, .header-cta { min-height: 44px; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--accent); font-size: 14px; }
.cta { color: var(--accent); }
.cta:hover, .text-link:hover, .header-cta:hover { box-shadow: 0 1px 0 var(--accent); }
.cta span { font-size: 24px; }
.header-cta { display: none; }
.hero { padding: 24px var(--gutter) 0; }
.hero-register { display: flex; justify-content: space-between; gap: 16px; }
.hero-grid { display: grid; gap: 24px; padding-top: 24px; }
.monogram { display: flex; align-items: baseline; justify-content: center; font: 400 clamp(200px, 78vw, 390px)/.84 var(--font-display); letter-spacing: -.065em; user-select: none; padding-top: 16px; overflow: clip; }
.monogram span { display: block; transform-origin: bottom center; transition: transform 650ms cubic-bezier(.2,.7,.2,1), font-weight 650ms ease; }
.monogram span:last-child { margin-left: -.08em; color: var(--accent); }
.monogram:hover span:first-child, .monogram-shift span:first-child { transform: scaleX(.96) translateY(-.012em); font-weight: 450; }
.monogram:hover span:last-child, .monogram-shift span:last-child { transform: scaleX(1.035); font-weight: 350; }
.hero-copy .label { color: var(--accent); margin-bottom: 16px; }
.hero-copy h1 { font-size: 56px; }
.hero-copy h1 br { display: none; }
.hero-copy h1 em { margin-left: 8px; }
.hero-copy > p:not(.label) { margin-top: 16px; max-width: 440px; }
.hero-copy .cta { margin-top: 16px; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 20px; margin-top: 32px; border-top: 1px solid var(--ink); padding: 12px 0; }
.hero-foot > span:nth-child(2) { display: none; }
.hero-foot a { min-height: 44px; display: flex; align-items: center; text-decoration: none; }
.availability { margin: 0 var(--gutter); display: grid; gap: 8px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--ink); }
.availability h2 { color: var(--accent); }
.availability p { font-size: 16px; }
.availability p + p { margin: 0; }
.section { margin: 0 var(--gutter); padding: 64px 0; border-bottom: 1px solid var(--ink); }
.section-heading { display: grid; gap: 24px; align-items: end; }
.section-heading .text-link { justify-self: start; }
.selected-grid { display: grid; gap: 48px; margin-top: 40px; }
.photo-frame { background: var(--paper); aspect-ratio: 8 / 5; overflow: clip; }
.photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-figure figcaption { margin-top: 12px; color: var(--muted); }
.project-caption { position: relative; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.project-caption h3 a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.project-caption p { margin-top: 8px; max-width: 540px; }
.project-caption > .label { display: inline-block; margin-top: 16px; }
.approach { display: grid; gap: 40px; }
.approach .label, .background > .label { margin-bottom: 24px; }
.approach-list { list-style: none; margin: 0; padding: 0; }
.approach-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; border-top: 1px solid var(--line); padding: 24px 0; }
.approach-list li:last-child { padding-bottom: 0; }
.approach-list li .label { margin: 8px 0 0; color: var(--accent); }
.approach-list p { margin-top: 8px; }
.background { display: grid; gap: 24px; }
.background > .label { margin: 0; }
.background-detail { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.background-detail p { flex-basis: 100%; }
.next-role { display: grid; gap: 32px; }
.next-role .label { margin-bottom: 24px; }
.role-lead { font: italic 400 36px/1.2 var(--font-display); }
.role-brief dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin: 32px 0 16px; }
.role-brief dt:nth-of-type(1), .role-brief dd:nth-of-type(1) { grid-column: 1; }
.role-brief dt:nth-of-type(2), .role-brief dd:nth-of-type(2) { grid-column: 2; }
.role-brief dt { grid-row: 1; }
.role-brief dd { margin: 0; grid-row: 2; }
.site-footer { padding: 64px var(--gutter) 24px; }
.footer-heading { display: grid; gap: 24px; }
.footer-heading h2 { font-size: clamp(48px, 7vw, 112px); }
.footer-heading .cta { justify-self: start; }
.footer-meta { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px 24px; border-top: 1px solid var(--ink); margin-top: 56px; padding-top: 16px; font-size: 12px; }
.footer-meta a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-meta > span:last-child { grid-column: 2; text-align: right; }
.page-intro { padding: 32px 0 40px; margin: 0 var(--gutter); border-bottom: 1px solid var(--ink); }
.page-intro > .label { margin-bottom: 32px; }
.intro-bottom { display: grid; align-items: end; gap: 24px; margin-top: 32px; }
.intro-bottom p { max-width: 720px; }
.intro-bottom .text-link { justify-self: start; }
.project-index { display: grid; margin-top: 40px; border-top: 1px solid var(--line); }
.project-index a { display: block; padding: 14px 0; min-height: 48px; text-decoration: none; border-bottom: 1px solid var(--line); font-size: 13px; }
.project-index a:last-child { border-bottom: 0; }
.case-heading { display: grid; grid-template-columns: 48px 1fr; gap: 24px 16px; align-items: start; margin-bottom: 32px; }
.case-heading .case-number { font: 400 40px/1 var(--font-display); color: var(--accent); }
.case-heading .label { margin-bottom: 16px; }
.case-heading > .label { grid-column: 2; margin: 0; }
.case-body { display: grid; gap: 32px; margin-top: 32px; }
.project-facts { margin: 0; }
dt { font-size: 12px; line-height: 1.5; text-transform: uppercase; letter-spacing: .055em; color: var(--muted); }
dd { margin: 8px 0 24px; }
dd:last-child { margin-bottom: 0; }
.case h3 { font-size: 28px; margin: 32px 0 16px; }
.case h3:first-child { margin-top: 0; }
.case-caveat { font-size: 16px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.case-split { display: grid; gap: 32px; }
.case-split-copy > .label { margin: 24px 0; }
.case-split-copy > .label:first-child { margin-top: 0; }
.case-split-copy .project-facts { margin-top: 32px; }
.case-note { padding: 24px; border: 1px solid var(--line); margin-top: 24px; }
.case-note p + p { margin-top: 16px; font: 400 28px/1.3 var(--font-display); }
.case-reverse { display: grid; gap: 32px; }
.personal-letter { display: grid; grid-template-columns: 1fr; gap: 24px; }
.letter-initial { color: var(--accent); font: 400 132px/.85 var(--font-display); letter-spacing: -.1em; }
.personal-letter .label { margin-bottom: 24px; }
.personal-letter h2 + p { margin-top: 32px; }
.personal-letter p { max-width: 720px; }
.signature { font: italic 400 40px/1.2 var(--font-display); }
.about-columns { display: grid; gap: 32px; }
.about-columns .label { margin-bottom: 24px; }
.about-columns p { margin-top: 16px; }
.about-columns h3:not(:first-child) { margin-top: 32px; }
.about-columns .text-link { margin-top: 24px; }
.personal-notes { display: grid; gap: 24px; }
.personal-notes > div .label { margin-top: 32px; color: var(--accent); }
.cv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.print-button { border-top: 0; border-left: 0; border-right: 0; background: transparent; cursor: pointer; }
.cv-sheet { margin: 32px var(--gutter) 0; padding: 24px; background: var(--paper); }
.cv-sheet-header { display: grid; gap: 24px; border-bottom: 1px solid var(--ink); padding-bottom: 24px; }
.cv-sheet-header h2 { margin-bottom: 8px; }
.cv-contact { display: grid; font-size: 12px; overflow-wrap: anywhere; }
.cv-contact a { min-height: 44px; display: inline-flex; align-items: center; }
.cv-contact span { padding: 4px 0; }
.cv-row { display: grid; gap: 24px; border-bottom: 1px solid var(--line); padding: 32px 0; }
.cv-row:last-child { border-bottom: 0; padding-bottom: 8px; }
.cv-row > h3 { font: 400 12px/1.5 var(--font-body); text-transform: uppercase; color: var(--accent); }
.cv-entries { display: grid; gap: 32px; }
.cv-entry { display: grid; gap: 8px; }
.cv-entry p { margin-top: 8px; }
.cv-entry p + p { margin-top: 8px; }
.cv-entry .label { color: var(--muted); }
.cv-projects p + p { margin-top: 12px; }
.cv-projects strong { font-weight: 400; text-decoration: underline; }
.cv-projects .text-link { margin-top: 16px; }
.cv-skill-grid { display: grid; gap: 24px; }
.cv-skill-grid p { margin-top: 8px; }
.contact-grid { display: grid; gap: 48px; }
.contact-heading > .label { margin-bottom: 24px; }
.contact-heading > p:not(.label) { max-width: 600px; margin-top: 24px; }
.slot { margin-top: 40px; padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.email-link { display: block; min-height: 44px; font: 400 clamp(25px, 3.8vw, 58px)/1.2 var(--font-display); text-decoration: none; color: var(--accent); overflow-wrap: anywhere; }
.slot p { margin-top: 16px; font-size: 16px; }
.contact-note { border-left: 1px solid var(--line); padding-left: 24px; }
.contact-note h3 { font-size: 40px; margin-top: 24px; }
.contact-note dl { margin: 32px 0; }
.enquiry-form { display: grid; gap: 16px; margin-top: 40px; }
.enquiry-form label { font-size: 14px; }
.enquiry-form input, .enquiry-form textarea { width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--muted); padding: 12px; border-radius: 0; color: var(--ink); background: var(--paper); }
.enquiry-form textarea { resize: vertical; }
.enquiry-form .cta { background: transparent; border: 0; border-bottom: 1px solid var(--accent); margin-top: 16px; }
.form-note { font-size: 16px; }
.privacy-grid { display: grid; gap: 40px; }
.privacy-grid .label { margin-bottom: 24px; }
.privacy-copy h3 { margin: 32px 0 16px; }
.privacy-copy h3:first-child { margin-top: 0; }
.missing-grid { display: grid; gap: 24px; }
.missing-number { font: 400 clamp(110px, 32vw, 440px)/.9 var(--font-display); letter-spacing: -.08em; color: var(--accent); }
.missing h1 { font-size: clamp(48px, 5vw, 80px); }
.missing h1 + p { margin-top: 24px; max-width: 500px; }
.missing .cta { display: flex; margin-top: 24px; }
.missing .text-link { margin-top: 16px; }
@media (max-width: 767px) {
  .hero-grid, .selected-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > *, .selected-grid > * { min-width: 0; }
  .monogram { font-size: clamp(180px, 65vw, 250px); }
}
@media (min-width: 768px) {
  .site-header { min-height: 96px; }
  .mobile-nav { display: none; }
  .desktop-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); }
  .desktop-nav a { display: flex; align-items: center; min-height: 44px; font-size: 12px; text-decoration: none; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 40px; padding: 40px 0 32px; align-items: end; }
  .monogram { font-size: clamp(300px, 43vw, 820px); padding: 0; justify-content: start; }
  .hero-copy h1 { font-size: clamp(56px, 6.5vw, 104px); }
  .hero-copy h1 br { display: block; }
  .hero-copy h1 em { margin-left: 0; }
  .hero-copy > p:not(.label) { margin-top: 24px; }
  .hero-foot { margin-top: 0; }
  .hero-foot > span:nth-child(2) { display: block; }
  .availability { grid-template-columns: 1fr 1fr 1.3fr; align-items: center; padding: 24px 0; gap: 24px; }
  .availability p:last-child { text-align: right; }
  .section { padding: 80px 0; }
  .section-heading { grid-template-columns: 1fr 2fr; }
  .section-heading .label { align-self: start; }
  .section-heading .text-link { grid-column: 2; }
  .selected-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 64px; margin-top: 48px; }
  .selected-feature { grid-column: 1 / 9; }
  .selected-small { grid-column: 9 / 13; align-self: end; }
  .selected-third { grid-column: 5 / 13; }
  .selected-small .project-caption h3 { font-size: 32px; }
  .project-caption { padding-right: 64px; }
  .project-caption > .label { position: absolute; top: 8px; right: 0; }
  .approach { grid-template-columns: 1fr 1fr; gap: 64px; }
  .next-role { grid-template-columns: 1fr 1fr; gap: 64px; }
  .background { grid-template-columns: 1fr 2fr; gap: 32px; }
  .background .background-detail { grid-column: 2; max-width: 640px; }
  .footer-heading { grid-template-columns: 1fr 2fr; }
  .footer-heading .cta { grid-column: 2; }
  .footer-meta { grid-template-columns: 1fr 1fr auto auto auto; column-gap: 32px; }
  .footer-meta > span:last-child { grid-column: auto; }
  .page-intro { padding: 40px 0 48px; }
  .page-intro h1 { max-width: 1200px; }
  .intro-bottom { grid-template-columns: 1.6fr 1fr; gap: 64px; }
  .intro-bottom > .text-link, .intro-bottom > .cv-actions { justify-self: end; }
  .project-index { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .project-index a { border: 0; }
  .case-heading { grid-template-columns: 96px 1fr auto; gap: 32px; align-items: end; }
  .case-heading .case-number { font-size: 88px; align-self: start; }
  .case-heading > .label { grid-column: auto; }
  .case-body { grid-template-columns: 1fr 1.35fr 1.35fr; gap: 48px; margin-top: 48px; }
  .case-split { grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
  .case-split > div:last-child { padding-top: 96px; }
  .case-reverse { grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; }
  .personal-letter { grid-template-columns: 1fr 2fr; gap: 40px; }
  .letter-initial { font-size: clamp(200px, 24vw, 400px); }
  .about-columns { grid-template-columns: 1fr 1fr 1fr; gap: 48px; }
  .personal-notes { grid-template-columns: 1fr 2fr; gap: 32px; }
  .personal-notes > div { grid-column: 2; max-width: 720px; }
  .cv-sheet { margin: 48px auto 0; padding: 48px; max-width: 1120px; width: calc(100% - var(--gutter) * 2); }
  .cv-sheet-header { grid-template-columns: 1fr 1fr; gap: 48px; }
  .cv-contact { justify-self: end; }
  .cv-row { grid-template-columns: 160px 1fr; gap: 32px; }
  .cv-entry { grid-template-columns: 136px 1fr; gap: 24px; }
  .cv-skill-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1.6fr 1fr; gap: 80px; }
  .privacy-grid { grid-template-columns: 1fr 1.5fr; gap: 80px; }
  .missing-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
}
@media (min-width: 1100px) {
  .header-cta { display: inline-flex; }
  .section-heading { grid-template-columns: 1fr 2fr auto; }
  .section-heading .text-link { grid-column: auto; justify-self: end; }
  .hero-grid { grid-template-columns: 1.6fr 1fr; gap: 64px; }
  .hero-copy { padding-bottom: 16px; }
  .hero-copy .cta { margin-top: 24px; }
  .background { grid-template-columns: .7fr 1.8fr 1fr; }
  .background .background-detail { grid-column: auto; }
  .footer-heading { grid-template-columns: .7fr 1.8fr 1fr; align-items: end; }
  .footer-heading .label { align-self: start; }
  .footer-heading .cta { grid-column: auto; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .monogram span, .monogram:hover span, .monogram-shift span { transform: none !important; font-weight: 400 !important; }
}
@page { size: A4; margin: 15mm; }
@media print {
  :root, .cv-sheet { --bg: #fff; --paper: #fff; --ink: #000; --accent: #000; --muted: #000; --line: #888; }
  html { scroll-behavior: auto; }
  body { background: #fff; color: #000; font-size: 9pt; line-height: 1.4; }
  .site-header, .site-footer, .skip, .cv-intro { display: none; }
  .cv-sheet { width: 100%; max-width: none; margin: 0; padding: 0; }
  .cv-sheet-header { display: grid; grid-template-columns: 1fr 1fr; padding-bottom: 12pt; gap: 16pt; }
  .cv-sheet-header h2 { font-size: 32pt; }
  .cv-contact { font-size: 8pt; justify-self: end; }
  .cv-contact a { min-height: 0; padding: 2pt 0; }
  .cv-contact span { padding: 2pt 0; }
  .cv-row { display: grid; grid-template-columns: 72pt 1fr; padding: 14pt 0; gap: 16pt; break-inside: avoid; }
  .cv-row > h3, .label { font-size: 8pt; }
  .cv-entry { display: grid; grid-template-columns: 74pt 1fr; gap: 12pt; }
  .cv-entries { gap: 12pt; }
  .cv-entry p, .cv-skill-grid p { margin-top: 4pt; }
  .cv-skill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16pt; }
  h4 { font-size: 12pt; }
  .cv-projects p + p { margin-top: 6pt; }
  .cv-projects .text-link { display: none; }
  a { color: #000; text-decoration: none; }
}
