:root {
  --ink: #102233;
  --ink-2: #173348;
  --paper: #f4f2ed;
  --paper-2: #ebe7df;
  --white: #fffdf9;
  --accent: #d69a43;
  --accent-2: #f0c676;
  --muted: #66747f;
  --line: rgba(16, 34, 51, .15);
  --radius: 2px;
  --shadow: 0 24px 70px rgba(8, 25, 38, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.7 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: .7rem 1rem; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.progress { position: fixed; inset: 0 0 auto; z-index: 100; height: 3px; background: transparent; }
.progress span { display: block; width: 0; height: 100%; background: var(--accent); }

.site-header { position: sticky; top: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: .8rem clamp(1.1rem, 4vw, 4.5rem); background: rgba(244, 242, 237, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: .75rem; line-height: 1.1; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; color: var(--white); background: var(--ink); font-size: .82rem; font-weight: 800; letter-spacing: .08em; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: .25rem; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; }
.site-nav { display: flex; gap: clamp(1rem, 2.8vw, 2.5rem); align-items: center; }
.site-nav a { position: relative; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.45rem; height: 2px; background: var(--accent); transition: right .25s ease; }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.menu-button { display: none; color: var(--ink); background: transparent; border: 1px solid var(--line); padding: .55rem .8rem; }

.hero { min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); align-items: stretch; overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(4rem, 8vw, 8rem) clamp(1.3rem, 6vw, 7rem); }
.eyebrow { margin: 0 0 1rem; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
h1 { max-width: 840px; margin-bottom: 1.5rem; font-size: clamp(3.3rem, 7.6vw, 7.4rem); line-height: .93; font-weight: 500; }
h1 em { color: var(--accent); font-weight: 500; }
.hero-intro { max-width: 710px; margin-bottom: 2rem; color: #344b5b; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 3.5rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .7rem 1.2rem; border: 1px solid var(--ink); font-size: .84rem; font-weight: 750; letter-spacing: .05em; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--white); background: var(--ink); }
.button.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.button.secondary:hover { background: var(--paper-2); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-facts dt { color: var(--muted); font-size: .69rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-facts dd { margin: .45rem 0 0; font-size: .92rem; line-height: 1.45; }
.hero-visual { position: relative; min-height: 520px; background-color: var(--ink); background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 42px 42px; }
.hero-visual::before { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(255,255,255,.2); }
.visual-label { position: absolute; top: 8%; left: 8%; color: rgba(255,255,255,.72); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.visual-label span { color: var(--accent-2); margin-right: 1rem; }
.structure { position: absolute; inset: 20% 12% 13%; overflow: hidden; }
.beam, .column { position: absolute; display: block; background: var(--accent); box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.beam { height: 15px; transform-origin: left; }
.column { width: 15px; }
.b1 { left: 5%; top: 22%; width: 82%; transform: rotate(-8deg); }
.b2 { left: 8%; top: 53%; width: 78%; transform: rotate(4deg); background: var(--accent-2); }
.b3 { left: 17%; top: 77%; width: 68%; transform: rotate(-3deg); }
.c1 { left: 19%; top: 13%; height: 72%; }
.c2 { left: 49%; top: 5%; height: 81%; background: var(--accent-2); }
.c3 { left: 78%; top: 18%; height: 68%; }
.measure { position: absolute; padding: .15rem .45rem; color: rgba(255,255,255,.75); background: var(--ink); border: 1px solid rgba(255,255,255,.25); font: 600 .65rem/1.4 ui-monospace, monospace; }
.m1 { right: 2%; top: 12%; }.m2 { left: 3%; bottom: 2%; }

.section-shell { position: relative; padding: clamp(5rem, 9vw, 9rem) clamp(1.3rem, 7vw, 8rem); }
.section-index { position: absolute; top: 2.2rem; right: clamp(1.3rem, 7vw, 8rem); color: var(--muted); font: 700 .68rem/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.section-heading { max-width: 840px; margin-bottom: clamp(3rem, 6vw, 5.2rem); }
.section-heading h2, .contact-strip h2 { margin-bottom: 1rem; font-size: clamp(2.6rem, 5.5vw, 5.2rem); line-height: 1.02; font-weight: 500; }
.section-heading > p:last-child { max-width: 680px; color: var(--muted); font-size: 1.05rem; }
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(3rem, 8vw, 8rem); }
.lead-copy { font-family: Georgia, serif; font-size: clamp(1.2rem, 2.2vw, 1.65rem); line-height: 1.55; }
.profile-cards { border-top: 1px solid var(--line); }
.profile-cards article { display: grid; grid-template-columns: 45px minmax(150px, .65fr) 1fr; gap: 1.2rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.profile-cards h3 { margin: 0; font-size: 1rem; }
.profile-cards p { margin: 0; color: var(--muted); font-size: .94rem; }
.card-number { color: var(--accent); font: 800 .72rem/1 ui-monospace, monospace; }

.dark-section { color: var(--white); background: var(--ink); }
.dark-section .section-index, .dark-section .section-heading > p:last-child { color: rgba(255,255,255,.62); }
.cv-layout { display: grid; grid-template-columns: minmax(220px, .32fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem); }
.cv-sidebar { display: flex; flex-direction: column; gap: 2.5rem; }
.contact-block a { display: block; color: rgba(255,255,255,.78); }
.meta-label { margin-bottom: 1rem; color: var(--accent-2); font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tag-list, .plain-list { list-style: none; padding: 0; margin: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li { padding: .35rem .62rem; border: 1px solid rgba(255,255,255,.18); font-size: .78rem; }
.plain-list { color: rgba(255,255,255,.75); }
.cv-group + .cv-group { margin-top: 4rem; }
.timeline-item { display: grid; grid-template-columns: 150px 1fr; gap: 1.5rem; padding: 1.8rem 0; border-top: 1px solid rgba(255,255,255,.16); }
.timeline-item h3 { margin: 0; font-size: 1.35rem; }
.timeline-date { color: rgba(255,255,255,.55); font: 600 .72rem/1.5 ui-monospace, monospace; text-transform: uppercase; }
.organisation { color: var(--accent-2); }
.timeline-item ul { margin-bottom: 0; padding-left: 1.1rem; color: rgba(255,255,255,.72); }
.timeline-item li + li { margin-top: .45rem; }
.timeline-item.compact { padding: 1.25rem 0; }
.timeline-item.compact .organisation { margin-bottom: 0; color: rgba(255,255,255,.6); }
.referees { margin-top: 3rem; color: rgba(255,255,255,.54); font-size: .86rem; }

.journey { background: var(--paper-2); }
.journey-image { position: relative; margin: 0 0 clamp(2rem, 5vw, 4.5rem); overflow: hidden; background: var(--ink); }
.journey-image img { width: 100%; aspect-ratio: 2.33 / 1; object-fit: cover; filter: saturate(.72) contrast(1.06); }
.journey-image figcaption { display: flex; gap: 1rem; justify-content: space-between; padding: .8rem 1rem; color: rgba(255,255,255,.72); background: var(--ink); font-size: .78rem; }
.journey-image figcaption span { flex: 0 0 auto; color: var(--accent-2); font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.journey-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.reflection-card { position: relative; padding: clamp(2rem, 4vw, 3.8rem); background: var(--paper); }
.reflection-card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: .25fr .75fr 1fr; gap: 1.8rem; align-items: start; }
.reflection-card h3 { max-width: 420px; font-family: Georgia, serif; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.2; }
.reflection-card p { color: #4e5e69; }
.reflection-number { display: block; margin-bottom: 2rem; color: var(--accent); font: 800 .78rem/1 ui-monospace, monospace; }
.closing-reflection { max-width: 960px; margin: clamp(4rem, 8vw, 8rem) auto 0; padding-left: 2rem; border-left: 4px solid var(--accent); }
.closing-reflection p { margin-bottom: .8rem; font-family: Georgia, serif; font-size: clamp(1.45rem, 3vw, 2.6rem); line-height: 1.35; }
.closing-reflection cite { color: var(--muted); font-style: normal; font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; }

.cover { background: var(--white); }
.letter { max-width: 980px; margin: auto; padding: clamp(1.5rem, 5vw, 5.5rem); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.letter a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.letter-header { display: flex; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--ink); }
.criterion { display: grid; grid-template-columns: 45px 1fr; gap: 0 1.1rem; margin: 3rem 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.criterion > span { color: var(--accent); font: 800 .75rem/1.5 ui-monospace, monospace; }
.criterion h3 { grid-column: 2; font-family: Georgia, serif; font-size: clamp(1.25rem, 2.4vw, 1.85rem); line-height: 1.2; }
.criterion p { grid-column: 2; color: #455762; }

.contact-strip { padding: clamp(4rem, 8vw, 7rem) clamp(1.3rem, 7vw, 8rem); text-align: center; color: var(--white); background: var(--ink-2); }
.contact-strip h2 { max-width: 860px; margin-left: auto; margin-right: auto; }
.contact-strip div { display: flex; justify-content: center; flex-wrap: wrap; gap: .9rem; color: var(--accent-2); }
.contact-strip a { border-bottom: 1px solid rgba(240,198,118,.5); }
footer { display: flex; justify-content: space-between; gap: 2rem; padding: 1.4rem clamp(1.3rem, 7vw, 8rem); color: rgba(255,255,255,.58); background: #091925; font-size: .78rem; }
footer p { margin: 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 76px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 1.2rem 1.2rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 480px; }
  .about-grid, .cv-layout { grid-template-columns: 1fr; }
  .cv-sidebar { display: grid; grid-template-columns: repeat(3, 1fr); }
  .reflection-card.wide { display: block; }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(3rem, 17vw, 5rem); }
  .hero-facts, .cv-sidebar { grid-template-columns: 1fr; }
  .hero-visual { min-height: 390px; }
  .profile-cards article { grid-template-columns: 32px 1fr; }
  .profile-cards p { grid-column: 2; }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-image figcaption { display: block; }
  .journey-image figcaption span { display: block; margin-bottom: .35rem; }
  .reflection-card.wide { grid-column: auto; }
  .timeline-item { grid-template-columns: 1fr; gap: .6rem; }
  .letter-header { flex-direction: column; }
  .criterion { display: block; }
  .criterion > span { display: block; margin-bottom: .7rem; }
  footer { flex-direction: column; gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .progress, .hero-visual, .hero-actions, footer { display: none !important; }
  body { background: #fff; color: #111; font-size: 10.5pt; }
  .hero { display: block; min-height: 0; }
  .hero-copy, .section-shell, .contact-strip { padding: 2rem 0; }
  .dark-section, .contact-strip { color: #111; background: #fff; }
  .cv-layout, .about-grid { gap: 2rem; }
  .letter { box-shadow: none; padding: 0; border: 0; }
  .reveal { opacity: 1; transform: none; }
}
