/* Brand: The Modern Alchemist */
:root {
  --hemp: #f5f3ed;
  --hemp-2: #ece8de;
  --tincture: #0b202f;
  --tincture-2: #12304a;
  --slate: #3a6a87;
  --slate-soft: #6f95ad;
  --gold: #d1a751;
  --sage: #7a8b78;
  --text: #0b202f;
  --muted: #4f6070;
  --line: rgba(58, 106, 135, .28);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --radius: 5px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--hemp); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
/* fine grain overlay */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; margin: 0; line-height: 1.04; font-variation-settings: "SOFT" 50, "WONK" 0; }
.wrap { max-width: 1200px; margin: 0 auto; }
.micro { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 2px; }
.micro i { font-style: normal; color: var(--gold); padding: 0 4px; }

/* Top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px clamp(16px, 4vw, 48px); color: var(--hemp); transition: background .4s, padding .4s;
}
.topbar.scrolled { background: rgba(11, 32, 47, .92); backdrop-filter: blur(10px); padding-top: 12px; padding-bottom: 12px; }
.mark { font-family: var(--serif); font-weight: 600; font-size: 22px; text-decoration: none; letter-spacing: -.02em; }
.mark span { color: var(--gold); font-weight: 400; padding: 0 2px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 2px; }
.nav a { text-decoration: none; opacity: .8; transition: color .2s, opacity .2s; }
.nav a:hover, .nav a.active { color: var(--gold); opacity: 1; }
.nav-cta { opacity: 1 !important; border: 1px solid rgba(209, 167, 81, .6); padding: 8px 14px; border-radius: var(--radius); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--hemp);
  background:
    radial-gradient(ellipse 55% 60% at 80% 35%, rgba(58, 106, 135, .55), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(209, 167, 81, .12), transparent 70%),
    linear-gradient(165deg, var(--tincture-2), var(--tincture) 60%);
}
.loop { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 32, 47, .62) 0%, rgba(11, 32, 47, .35) 45%, transparent 70%); }
.hero-grid {
  position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(30px, 5vw, 80px);
  padding: 120px clamp(16px, 4vw, 48px) 80px;
}
.hero .micro { color: #b9cad6; margin: 0 0 26px; }
.hero h1 { font-size: clamp(60px, 9.5vw, 140px); line-height: .95; font-weight: 600; }
.hero h1 em { font-style: italic; font-weight: 400; color: #cfe0ea; }
.intro { max-width: 34ch; margin: 30px 0 38px; font-size: clamp(18px, 1.6vw, 21px); color: #d6e2ea; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { font: 500 15px/1 var(--sans); padding: 16px 26px; border-radius: var(--radius); text-decoration: none; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.btn-primary { background: var(--slate); color: var(--hemp); border: 1px solid var(--slate); }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--tincture); }
.btn-quiet { background: transparent; color: var(--hemp); border: 1px solid rgba(245, 243, 237, .35); }
.btn-quiet:hover { border-color: var(--gold); color: var(--gold); }

.hero-photo { margin: 0; position: relative; justify-self: end; width: 100%; max-width: 420px; }
.hero-photo .photo-loop { aspect-ratio: 4 / 5; border-radius: var(--radius); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.hero-photo::before { content: ""; position: absolute; inset: 16px -16px 46px 16px; border: 1px solid rgba(209, 167, 81, .55); border-radius: var(--radius); z-index: -1; }
.hero-photo figcaption { margin-top: 22px; color: #9fb4c3; font-size: 11px; }
.photo-ticks { position: absolute; left: -30px; top: 40%; transform: translateY(-50%); display: grid; gap: 8px; }
.photo-ticks i { display: block; width: 2px; height: 22px; background: rgba(245, 243, 237, .2); position: relative; overflow: hidden; }
.photo-ticks i.on::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: top; animation: tick var(--dur, 5s) linear forwards; }

/* Photo loop */
.photo-loop { position: relative; overflow: hidden; background: var(--tincture); }
.photo-loop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; opacity: 0; transition: opacity 1.6s ease; }
.photo-loop img[src*="will-c-"] { object-position: 50% 45%; }

.photo-loop img.on { opacity: 1; animation: drift 9s ease-out forwards; }

/* Filmstrip */
.filmstrip { background: var(--slate); color: var(--hemp); overflow: hidden; padding: 22px 0; }
.film-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: slide 70s linear infinite; }
.film-track img { height: 150px; width: 118px; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); }
.film-track span { font-family: var(--serif); font-style: italic; font-size: 40px; white-space: nowrap; }
.film-track span::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 28px; background: var(--gold); transform: rotate(45deg) translateY(-6px); }
.filmstrip:hover .film-track { animation-play-state: paused; }

/* Blocks */
.block { padding: clamp(80px, 11vw, 140px) clamp(16px, 4vw, 48px); position: relative; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--sage); padding-bottom: 20px; margin-bottom: 36px; }
.block-head h2 { font-size: clamp(44px, 6.5vw, 88px); }
.block-head .micro { margin: 0; color: var(--sage); }

/* About */
.about-grid { display: grid; grid-template-columns: 200px 1fr; gap: clamp(30px, 6vw, 90px); }
.side { color: var(--slate); margin: 12px 0 0; padding-top: 14px; border-top: 2px solid var(--gold); align-self: start; }
.big { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 40px); line-height: 1.28; letter-spacing: -.015em; margin: 0 0 26px; }
.about-body > p:not(.big) { max-width: 62ch; color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #4d5d4b; background: rgba(122, 139, 120, .12); border: 1px solid rgba(122, 139, 120, .45); padding: 8px 12px; border-radius: 4px; }

/* Numbers */
.numbers { background: var(--tincture); color: var(--hemp); padding: 0 clamp(16px, 4vw, 48px); }
.numbers-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.n { padding: 46px 24px; border-left: 1px solid rgba(122, 139, 120, .35); }
.n:first-child { border-left: 0; padding-left: 0; }
.n strong { display: block; font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; font-size: clamp(44px, 5vw, 70px); line-height: 1; }
.n strong:hover { color: var(--gold); }
.n span { display: block; margin-top: 12px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #a7bccb; }

/* Career: bordered hemp cards */
.career { background: var(--hemp-2); }
.roles { display: grid; gap: 18px; }
.role { display: grid; grid-template-columns: 170px 1fr; gap: 30px; background: var(--hemp); border: 1px solid var(--slate); border-radius: var(--radius); padding: 34px clamp(20px, 3vw, 40px); transition: border-color .3s, transform .3s; }
.role:hover { border-color: var(--gold); transform: translateY(-2px); }
.when { margin: 6px 0 0; color: var(--slate); }
.role h3 { font-size: clamp(26px, 2.6vw, 34px); }
.org { margin: 8px 0 14px; font-family: var(--serif); font-style: italic; color: var(--slate); font-size: 19px; }
.org span { display: block; font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--sage); margin-top: 4px; }
.role ul { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.role li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.role li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; background: var(--slate); transform: rotate(45deg); }

/* Interlude */
.interlude { position: relative; overflow: hidden; text-align: center; color: var(--hemp); padding: clamp(110px, 15vw, 180px) 16px; background: radial-gradient(ellipse at center, var(--slate), var(--tincture-2) 60%, var(--tincture)); }
.rosette { position: absolute; left: 50%; top: 50%; width: min(820px, 140vw); transform: translate(-50%, -50%); opacity: .6; }
.ro { fill: none; stroke-width: .45; transform-origin: 0 0; }
.ro-outer { stroke: rgba(245, 243, 237, .35); animation: turn 160s linear infinite; }
.ro-mid { stroke: rgba(209, 167, 81, .55); animation: turn 120s linear infinite reverse; }
.ro-inner { stroke: rgba(122, 139, 120, .8); animation: turn 90s linear infinite; }
.interlude blockquote { position: relative; margin: 0 auto; max-width: 820px; }
.interlude p { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.2; letter-spacing: -.015em; }
.interlude cite { display: inline-block; margin-top: 26px; font-style: normal; color: var(--gold); }

/* Capabilities: glass cards on dark */
.capabilities { background: var(--tincture); color: var(--hemp); overflow: hidden; }
.capabilities > .wrap { position: relative; z-index: 1; }
.capabilities .block-head { border-color: rgba(122, 139, 120, .5); }
.caps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cap { background: rgba(58, 106, 135, .14); border: 1px solid rgba(111, 149, 173, .35); border-radius: var(--radius); padding: 30px; backdrop-filter: blur(6px); transition: border-color .3s, background .3s; }
.cap:hover { border-color: var(--gold); background: rgba(58, 106, 135, .22); }
.cap .micro { margin: 0 0 18px; color: var(--gold); }
.cap h3 { font-size: 30px; margin-bottom: 10px; }
.cap p:last-child { margin: 0; color: #b9cad6; }
.capabilities .tags li { color: #c9d3c7; background: rgba(122, 139, 120, .15); border-color: rgba(122, 139, 120, .5); }

/* Credentials */
.credentials { background: var(--hemp); }
.cred-grid { display: grid; grid-template-columns: 360px 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.cred-photo { position: relative; z-index: 0; }
.cred-photo .photo-loop { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.cred-photo::after { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--sage); border-radius: var(--radius); z-index: -1; }
.edu { margin: 0; }
.edu > div { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.edu dt { color: var(--slate); padding-top: 8px; }
.edu dd { margin: 0; }
.edu h3 { font-size: 27px; }
.edu p { margin: 6px 0 0; color: var(--sage); font-family: var(--serif); font-style: italic; }

/* Contact */
.contact { background: var(--slate); color: var(--hemp); padding: clamp(100px, 13vw, 160px) clamp(16px, 4vw, 48px); }
.contact .micro { color: #d9e4eb; margin: 0 0 20px; }
.contact h2 { font-size: clamp(46px, 7.5vw, 110px); max-width: 14ch; }
.contact h2 em { font-weight: 400; color: var(--gold); }
.mail { display: inline-block; margin-top: 40px; font-family: var(--serif); font-size: clamp(22px, 3.2vw, 40px); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 6px; overflow-wrap: anywhere; transition: color .3s; }
.mail:hover { color: var(--gold); }
.links { margin: 24px 0 0; }
.links a:hover { color: var(--gold); }

.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px clamp(16px, 4vw, 48px); background: var(--tincture); color: #9fb4c3; font-size: 11px; }
.footer a { text-decoration: none; } .footer a:hover { color: var(--gold); }

/* Motion */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes drift { from { transform: scale(1.12) translateY(1.5%); } to { transform: scale(1.02); } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes tick { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .film-track, .ro, .photo-loop img.on { animation: none !important; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 110px; }
  .hero-photo { justify-self: center; max-width: 320px; }
  .photo-ticks { display: none; }
  .cred-grid { grid-template-columns: 1fr; }
  .cred-photo { max-width: 320px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .numbers-row { grid-template-columns: 1fr 1fr; }
  .n { padding: 30px 14px; }
  .n:nth-child(3) { border-left: 0; padding-left: 0; }
  .n:nth-child(n+3) { border-top: 1px solid rgba(122, 139, 120, .35); }
  .role { grid-template-columns: 1fr; gap: 10px; }
  .caps { grid-template-columns: 1fr; }
  .film-track img { height: 120px; width: 94px; }
  .film-track span { font-size: 30px; }
}

/* Print / PDF */
@media print {
  @page { margin: 15mm; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.45; }
  body::after, .topbar, .loop, .hero-photo, .hero-actions, .filmstrip, .interlude, .cred-photo, .footer { display: none !important; }
  .hero, .numbers, .career, .capabilities, .credentials, .contact { background: none !important; color: var(--text) !important; }
  .hero-grid { min-height: 0; display: block; padding: 0 0 10pt; border-bottom: 1pt solid var(--slate); }
  .hero .micro, .intro, .hero h1 em { color: var(--slate) !important; }
  .hero h1 { font-size: 34pt; } .hero h1 br { display: none; } .hero h1 em { padding-left: 8pt; }
  .intro { max-width: none; margin: 6pt 0 0; }
  .block, .contact { padding: 12pt 0; }
  .block-head { margin-bottom: 6pt; padding-bottom: 4pt; } .block-head h2, .contact h2 { font-size: 20pt; max-width: none; }
  .about-grid { display: block; } .side { display: none; } .big { font-size: 13pt; }
  .numbers { padding: 0; } .n { padding: 6pt 8pt; } .n strong { font-size: 20pt; color: var(--slate); } .n span { color: var(--muted); }
  .role { padding: 8pt 10pt; break-inside: avoid; }
  .cap { background: none; border-color: var(--line); padding: 8pt; break-inside: avoid; } .cap p:last-child { color: var(--muted); }
  .capabilities .tags li { color: #4d5d4b; }
  .reveal { opacity: 1; transform: none; }
  .mail { font-size: 13pt; color: var(--slate); margin-top: 6pt; }
}
