:root {
  --paper: #f4f1ea;
  --paper-2: #e9e4da;
  --white: #fffdf8;
  --ink: #172033;
  --muted: #5d6573;
  --line: #cfc9bd;
  --cobalt: #3157d5;
  --cobalt-dark: #2442a5;
  --burgundy: #7a3040;
  --green: #187653;
  --radius: 1.25rem;
  --shadow: 0 24px 70px rgba(23, 32, 51, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
::selection { background: var(--cobalt); color: white; }
.shell { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(4,8,13,.96); border-bottom: 1px solid rgba(230,168,69,.3); backdrop-filter: blur(16px); }
.header-inner { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand-logo { display: block; width: clamp(210px, 27vw, 310px); text-decoration: none; line-height: 0; }
.brand-logo img { display: block; width: 100%; height: auto; }
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a { color: #f7f2e8; text-decoration: none; font-size: .9rem; font-weight: 700; padding: .65rem .9rem; border-radius: 999px; }
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.12); }
.main-nav .nav-contact { margin-left: .5rem; background: #9d1f1f; color: white; border: 1px solid rgba(230,168,69,.65); }
.main-nav .nav-contact:hover { background: #c22d25; }
.menu-button { display: none; color: #f7f2e8; border: 1px solid rgba(230,168,69,.65); background: transparent; padding: .55rem .8rem; border-radius: 999px; font-weight: 700; }

.hero { min-height: 760px; padding-block: 5.5rem 4.5rem; display: grid; grid-template-columns: 1.16fr .84fr; align-items: center; gap: clamp(3rem, 7vw, 7rem); }
.kicker, .section-label { margin: 0 0 1.25rem; color: var(--cobalt); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1, .page-hero h1, .cv-hero h1 { margin: 0; max-width: 800px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(4rem, 8vw, 7.5rem); font-weight: 400; line-height: .91; letter-spacing: -.065em; }
h1 em, h2 em { color: var(--cobalt); font-weight: 400; }
.hero-lead { max-width: 710px; margin: 2rem 0 0; font-size: clamp(1.15rem, 2vw, 1.4rem); color: #343d50; }
.hero-actions { display: flex; align-items: center; gap: 1.25rem; margin-top: 2.2rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; padding: .9rem 1.15rem; border-radius: 999px; text-decoration: none; font-weight: 800; border: 0; cursor: pointer; }
.button.primary { background: var(--cobalt); color: white; }
.button.primary:hover { background: var(--cobalt-dark); transform: translateY(-2px); }
.button.text { padding-inline: .4rem; border-bottom: 1px solid var(--ink); border-radius: 0; }
.quick-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 560px; margin: 3.3rem 0 0; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.quick-facts div { display: grid; gap: .15rem; }
.quick-facts dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.quick-facts dd { margin: 0; font-weight: 800; }
.portrait-wrap { margin: 0; }
.portrait-frame { height: min(630px, 72vh); overflow: hidden; border-radius: 48% 48% var(--radius) var(--radius); background: #d7d0c3; box-shadow: var(--shadow); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 19%; transform: scale(1.01); }
.portrait-wrap figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem .25rem 0; font-size: .83rem; color: var(--muted); }
.portrait-wrap figcaption strong { color: var(--ink); }

.statement { background: var(--ink); color: white; padding-block: 5rem; }
.statement-grid { display: grid; grid-template-columns: .55fr 2fr 1fr; gap: 3rem; align-items: start; }
.section-label.light { color: #9fb1ff; }
.statement blockquote { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.15rem, 4vw, 4rem); line-height: 1.08; letter-spacing: -.04em; }
.statement-copy { margin: .4rem 0 0; color: #bbc1cd; }
.section { padding-block: 7rem; }
.section-heading { max-width: 760px; margin-bottom: 3.2rem; }
.section-heading.split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.section-heading h2, .contact-band h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 400; line-height: .98; letter-spacing: -.055em; }
.strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.strength-card { padding: 2rem 2.5rem 1rem 0; border-right: 1px solid var(--line); min-height: 290px; }
.strength-card + .strength-card { padding-left: 2.5rem; }
.strength-card:last-child { border-right: 0; }
.card-number { font-size: .78rem; color: var(--cobalt); font-weight: 800; }
.strength-card h3 { margin: 3.5rem 0 .8rem; font-size: 1.45rem; }
.strength-card p { margin: 0; color: var(--muted); }

.selected-work { background: var(--paper-2); }
.inline-link { font-weight: 800; text-decoration: none; border-bottom: 1px solid currentColor; }
.featured-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 1rem; }
.featured-card { min-height: 430px; padding: 2rem; border-radius: var(--radius); display: flex; flex-direction: column; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.featured-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.featured-card.cobalt { background: var(--cobalt); color: white; }
.featured-card.ink { background: var(--ink); color: white; }
.featured-card.paper { background: var(--white); }
.project-type { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; opacity: .7; font-weight: 800; }
.featured-card h3 { margin: auto 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; font-weight: 400; }
.featured-card p { margin: 0 0 2rem; max-width: 420px; opacity: .78; }
.login-warning { display: block; margin-bottom: .55rem; color: var(--burgundy); font-size: .86rem; line-height: 1.25; letter-spacing: .07em; font-weight: 900; }
.featured-card .login-warning { width: fit-content; padding: .5rem .65rem; border: 1px solid currentColor; border-radius: .55rem; opacity: 1; }
.featured-card.ink .login-warning { color: #ffc6b8; }
.project-link { font-weight: 800; }

.journey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7rem; }
.large-copy { margin-top: 0; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; line-height: 1.25; }
.journey-intro > p:last-child { color: var(--muted); }
.mini-timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mini-timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.mini-timeline time { color: var(--cobalt); font-weight: 800; font-size: .82rem; }
.mini-timeline div { display: grid; gap: .25rem; }
.mini-timeline span { color: var(--muted); }

.contact-band { padding-block: 6rem; background: var(--cobalt); color: white; }
.contact-inner { display: flex; justify-content: space-between; align-items: end; gap: 3rem; }
.light-button { background: white; color: var(--ink); white-space: nowrap; }
.site-footer { padding-block: 2rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; }

.page-hero { padding-block: 6rem 4rem; border-bottom: 1px solid var(--line); }
.page-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; margin-top: 3rem; }
.page-intro-grid p { margin: 0; color: var(--muted); }
.page-intro-grid .hero-lead { color: var(--ink); }
.project-list { padding-block: 2rem 7rem; }
.project-row { display: grid; grid-template-columns: 70px 1fr 180px; gap: 2rem; padding-block: 2.7rem; border-bottom: 1px solid var(--line); align-items: start; }
.project-index { color: var(--cobalt); font-size: .78rem; font-weight: 800; }
.project-main h2 { margin: 0 0 .45rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 400; line-height: 1; }
.project-main p { margin: 0; max-width: 720px; color: var(--muted); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.2rem 0 0; padding: 0; }
.tags li { padding: .28rem .6rem; border: 1px solid var(--line); border-radius: 999px; font-size: .72rem; font-weight: 700; }
.project-action { display: grid; justify-items: end; gap: 1.2rem; }
.project-action a { font-weight: 800; text-decoration: none; }
.live-state { font-size: .75rem; font-weight: 800; color: var(--muted); }
.live-state::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .45rem; border-radius: 50%; background: #9ca3af; }
.live-state.online { color: var(--green); }
.live-state.online::before { background: var(--green); box-shadow: 0 0 0 4px rgba(24,118,83,.12); }
.live-state.private { color: var(--cobalt); }
.live-state.private::before { background: var(--cobalt); box-shadow: 0 0 0 4px rgba(47,91,211,.12); }
.live-state.unknown { color: var(--burgundy); }
.live-state.unknown::before { background: var(--burgundy); }
.project-note { background: var(--ink); color: white; padding-block: 4rem; }
.project-note-inner { display: flex; justify-content: space-between; align-items: center; gap: 3rem; }
.project-note p { max-width: 740px; margin: 0; font-size: 1.25rem; color: #c6cbd5; }

.cv-page { padding-bottom: 7rem; }
.cv-hero { padding-block: 6rem 4rem; display: grid; grid-template-columns: 1.4fr .6fr; gap: 4rem; align-items: end; border-bottom: 1px solid var(--line); }
.cv-contact { display: grid; justify-items: start; gap: .4rem; }
.cv-contact p { margin: 0; color: var(--muted); }
.cv-contact a { text-decoration: none; font-weight: 800; }
.print-button { margin-top: 1.2rem; border: 1px solid var(--ink); background: transparent; padding: .65rem .9rem; border-radius: 999px; cursor: pointer; font-weight: 800; }
.cv-summary { padding-block: 3.5rem; display: grid; grid-template-columns: .4fr 1.6fr; gap: 3rem; border-bottom: 1px solid var(--line); }
.cv-profile { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1.25; }
.cv-layout { display: grid; grid-template-columns: .55fr 1.45fr; gap: 5rem; padding-top: 4rem; }
.cv-sidebar { display: grid; align-content: start; gap: 3rem; }
.cv-sidebar h2, .cv-section > h2 { margin: 0 0 1.3rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--cobalt); }
.cv-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.language-list { margin: 0; display: grid; gap: .75rem; }
.language-list div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .35rem; }
.language-list dd { margin: 0; color: var(--muted); }
.cv-main { display: grid; gap: 4rem; }
.cv-entry { display: grid; grid-template-columns: 145px 1fr; gap: 2rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.cv-entry time { color: var(--muted); font-size: .82rem; font-weight: 700; }
.cv-entry h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.cv-entry p { margin: 0; color: var(--muted); }
.earlier-work { margin-top: 1.2rem; border: 1px solid var(--line); border-radius: .8rem; padding: 1rem; }
.earlier-work summary { cursor: pointer; font-weight: 800; }
.earlier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 2rem; padding-top: 1rem; color: var(--muted); }
.earlier-grid p { margin: .35rem 0; }

.reveal { animation: rise .65s cubic-bezier(.2,.7,.2,1) both; }
.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .shell { width: min(100% - 2rem, 720px); }
  .menu-button { display: block; }
  .main-nav { position: absolute; display: none; top: calc(100% + 1px); left: 0; right: 0; padding: 1rem; background: #070b10; border-bottom: 1px solid rgba(230,168,69,.3); flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .main-nav a { text-align: center; }
  .main-nav .nav-contact { margin-left: 0; }
  .hero { min-height: 0; padding-block: 4rem; grid-template-columns: 1fr; }
  .hero h1, .page-hero h1, .cv-hero h1 { font-size: clamp(3.8rem, 16vw, 6rem); }
  .portrait-frame { height: 620px; }
  .statement-grid { grid-template-columns: 1fr; }
  .strength-grid, .featured-grid { grid-template-columns: 1fr; }
  .strength-card, .strength-card + .strength-card { padding: 1.5rem 0 2.5rem; border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .strength-card h3 { margin-top: 2rem; }
  .featured-card { min-height: 340px; }
  .journey-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-inner, .section-heading.split, .project-note-inner { align-items: flex-start; flex-direction: column; }
  .page-intro-grid { grid-template-columns: 1fr; gap: 1rem; }
  .project-row { grid-template-columns: 42px 1fr; }
  .project-action { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; }
  .cv-hero, .cv-summary, .cv-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .cv-sidebar { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); padding-bottom: 2rem; }
}

@media (max-width: 620px) {
  .header-inner { min-height: 82px; }
  .brand-logo { width: min(215px, 68vw); }
  .hero { padding-top: 3rem; }
  .hero h1, .page-hero h1, .cv-hero h1 { font-size: clamp(3.15rem, 17vw, 4.7rem); }
  .hero-lead { font-size: 1.08rem; }
  .quick-facts { grid-template-columns: 1fr 1fr; }
  .portrait-frame { height: 480px; }
  .portrait-wrap figcaption { flex-direction: column; gap: 0; }
  .section { padding-block: 5rem; }
  .mini-timeline li { grid-template-columns: 1fr; gap: .5rem; }
  .footer-inner { flex-direction: column; gap: .25rem; }
  .project-row { grid-template-columns: 1fr; gap: .75rem; }
  .project-action { grid-column: 1; }
  .cv-sidebar { grid-template-columns: 1fr; }
  .cv-entry { grid-template-columns: 1fr; gap: .4rem; }
  .earlier-grid { grid-template-columns: 1fr; }
}

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

@media print {
  @page { margin: 16mm; }
  body { background: white; color: black; font-size: 10.5pt; }
  .site-header, .site-footer, .print-button, .skip-link { display: none !important; }
  .cv-page { padding: 0; }
  .shell { width: 100%; }
  .cv-hero { padding: 0 0 12mm; }
  .cv-hero h1 { font-size: 38pt; }
  .cv-summary { padding-block: 10mm; }
  .cv-profile { font-size: 17pt; }
  .cv-layout { padding-top: 10mm; gap: 12mm; grid-template-columns: 52mm 1fr; }
  .cv-main { gap: 10mm; }
  .cv-entry { break-inside: avoid; }
  .earlier-work { break-inside: avoid; }
  .earlier-work[open] summary { display: none; }
  .earlier-work:not([open]) .earlier-grid { display: grid; }
  a { text-decoration: none; }
}
