@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&display=swap');

:root {
  --paper: #faf3e5;
  --ink: #382b24;
  --muted: #716052;
  --line: #d8cabb;
  --accent: #96442a;
  --panel: #ede1cd;
  --sun-core: #fff5b8;
  --sun-edge: #efba55;
  --sun-halo: #f1c77b;
  --day-progress: 0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 35px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; font-size: 16px; isolation: isolate; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; }
::selection { background: var(--accent); color: var(--paper); }
.header, main, footer { position: relative; z-index: 1; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 5; padding: 12px 18px; background: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

/* One continuous sky. Scroll progress controls its position and colours. */
.day-scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 78% 35%, color-mix(in srgb, var(--sun-halo) 25%, transparent), transparent 68%); }
.sun-window { position: absolute; inset: 0 0 12svh; overflow: hidden; opacity: var(--sun-opacity, 1); visibility: var(--sun-visibility, visible); }
.setting-sun {
  position: absolute; width: min(72vw, 70svh); aspect-ratio: 1;
  left: 72%; top: 10svh; border-radius: 50%;
  background: radial-gradient(circle at 40% 34%, var(--sun-core), var(--sun-edge) 80%);
  box-shadow: 0 0 75px 14px color-mix(in srgb, var(--sun-halo) 28%, transparent), inset 0 0 60px #fff5c22b;
  transform: translateX(-50%) translate(calc(var(--day-progress) * -10vw), calc(var(--day-progress) * 90svh));
  will-change: transform;
}
.sun-rays { position: absolute; inset: -6%; width: 112%; height: 112%; fill: none; stroke: var(--sun-edge); stroke-width: .65; stroke-linecap: round; opacity: .75; }
.world-horizon { position: absolute; top: 88svh; left: 0; right: 0; bottom: 0; border-top: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); background: var(--paper); }
.horizon-glow { position: absolute; top: 88svh; width: 65vw; height: 10svh; left: 35vw; opacity: .16; background: radial-gradient(ellipse at 50% 0, var(--sun-halo), transparent 70%); }
.day-marker { position: fixed; z-index: 2; bottom: 15px; right: 5.5%; display: flex; align-items: center; gap: 12px; font: 600 8px 'Manrope', sans-serif; letter-spacing: 1.3px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); color: var(--muted); pointer-events: none; }
.day-track { width: 65px; height: 1px; background: var(--line); position: relative; }
.day-track span { position: absolute; width: 7px; height: 7px; border-radius: 50%; left: calc(var(--day-progress) * 100%); top: -3px; background: var(--accent); transform: translateX(-50%); }

.header { display: flex; align-items: center; justify-content: space-between; padding: 30px 5.5%; border-bottom: 1px solid var(--line); }
.wordmark { font-family: 'Playfair Display', Georgia, serif; font-size: 28px; letter-spacing: -1.3px; white-space: nowrap; }
.tiny-sun { font-size: 26px; color: var(--accent); display: inline-block; margin-left: 10px; vertical-align: middle; }
nav { display: flex; gap: 35px; font-size: 14px; }
nav a, footer > a:not(.wordmark) { border-bottom: 1px solid transparent; padding-bottom: 4px; }
nav a:hover, footer > a:hover { border-color: var(--accent); }
.hero { padding: 65px 5.5% 0; min-height: calc(100svh - 99px); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; position: relative; gap: 20px; }
.hero-copy { align-self: center; padding-bottom: 35px; }
.eyebrow, .section-label, .hero-bottom, .hero-note, .art-label, .art-foot, .date, .project-type, .art-note, footer > span { font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 1.65px; }
.eyebrow { display: flex; align-items: center; gap: 14px; }
.small-line { width: 27px; height: 1px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; letter-spacing: -3px; line-height: 1.06; }
h1 { font-size: clamp(72px, 8vw, 118px); margin: 25px 0; }
em { color: var(--accent); font-weight: 400; }
p { line-height: 1.8; color: var(--muted); }
.intro { max-width: 385px; font-size: 16px; margin-bottom: 24px; }
.text-link { font-size: 13px; display: inline-flex; align-items: center; gap: 30px; padding: 7px 0; border-bottom: 1px solid var(--accent); }
.text-link span { transition: transform .25s; }
.text-link:hover span { transform: translate(3px, -3px); }
.hero-note { align-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 8px; padding-bottom: 35px; }
.hero-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 20px 0 65px; font-size: 9px; color: var(--muted); }
.hero-bottom a span { margin-left: 15px; }
.section { margin: 0 5.5%; padding: 95px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 25% 75%; position: relative; }
/* The veil keeps reading contrast steady when the sun passes behind the content. */
.section::before { content: ''; position: absolute; inset: 12px -25px; z-index: -1; background: color-mix(in srgb, var(--paper) 96%, transparent); filter: blur(24px); }
.section-label { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; padding-top: 10px; font-size: 9px; }
.asterisk { font-size: 85px; font-weight: 400; color: var(--accent); line-height: 1; }
.section h2 { font-size: clamp(40px, 4.6vw, 66px); margin-bottom: 36px; letter-spacing: -1.9px; }
.about-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about-columns p { font-size: 15px; }
.fact-row { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 11px; color: var(--accent); margin-top: 15px; }
.fact-row span::before { content: '•'; margin-right: 8px; }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.project-art { height: 250px; background: var(--panel); position: relative; overflow: hidden; margin-bottom: 25px; padding: 22px; color: var(--muted); }
.art-label, .art-foot { position: absolute; font-size: 7px; letter-spacing: 1.4px; }
.art-foot { bottom: 18px; }

/* Decorative studies: simple shapes that respond directly to the pointer. */
.bars { position: absolute; left: 12%; right: 12%; top: 30%; bottom: 20%; display: flex; align-items: stretch; gap: 10px; border-bottom: 1px solid var(--accent); }
.chart-bar { position: relative; display: block; flex: 1; min-width: 0; }
.bar-fill { position: absolute; bottom: 0; left: 0; width: 100%; height: var(--height); background: var(--accent); opacity: .65; border-radius: 30px 30px 0 0; transform-origin: bottom; transition: transform .22s ease, opacity .22s ease; }
.runner-scene { position: absolute; height: 180px; width: 171px; left: 50%; top: 52%; transform: translate(-50%, -50%); overflow: visible; }
.runner-body { fill: var(--accent); }
.runner-head { fill: var(--accent); }
.runner-torso, .runner-neck, .runner-limb { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; }
.runner-torso { stroke-width: 25; }
.runner-neck { stroke-width: 11; }
.runner-limb { stroke-width: 14; }
@media (hover: hover) and (pointer: fine) {
  .bars:has(.chart-bar:hover) .bar-fill { opacity: .35; }
  .bars .chart-bar:hover .bar-fill { opacity: 1; transform: scale(1.08, 1.09); }
}
.project-type { font-size: 8px; letter-spacing: 1.2px; margin-bottom: 12px; }
.project h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 25px; line-height: 1.25; }
.project p { font-size: 13px; }
.project details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; }
.project summary { cursor: pointer; padding: 15px 0; display: flex; justify-content: space-between; list-style: none; }
.project summary::-webkit-details-marker { display: none; }
.project details[open] summary span { transform: rotate(45deg); }
.project details p { padding: 0 0 8px; }
.art-note { font-size: 8px; letter-spacing: .5px; margin: 20px 0 0; }
.resume-side { font-size: 11px; letter-spacing: 0; }
.timeline article { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 25px 0; border-top: 1px solid var(--line); }
.timeline h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 23px; font-weight: 400; margin-bottom: 6px; }
.timeline p { font-size: 12px; margin-bottom: 0; }
.date { font-size: 8px; letter-spacing: 1px; display: block; margin-bottom: 10px; }
.pill-button { display: inline-flex; border: 1px solid var(--ink); padding: 15px 24px; border-radius: 35px; font-size: 12px; gap: 35px; margin-top: 25px; transition: background .2s, color .2s; }
.pill-button:hover { background: var(--ink); color: var(--paper); }
.contact { text-align: center; padding: 115px 20px 140px; position: relative; overflow: hidden; }
.contact .eyebrow { justify-content: center; font-size: 9px; }
.contact h2 { font-size: clamp(55px, 6.7vw, 92px); margin: 30px 0 25px; letter-spacing: -2px; }
.contact p { font-size: 14px; }
.contact-email { display: inline-block; font-size: clamp(15px, 2vw, 23px); border-bottom: 1px solid var(--accent); padding: 10px 0; position: relative; z-index: 1; }
.contact-email span { margin-left: 24px; }
footer { margin: 0 5.5%; padding: 27px 0 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); font-size: 11px; }
footer .wordmark { font-size: 23px; }
footer > span { font-size: 7px; letter-spacing: 1px; }
@media (min-width: 1600px) { .header, main, footer { max-width: 1600px; margin-left: auto; margin-right: auto; } footer { padding-left: 5.5%; padding-right: 5.5%; } }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  h1 { font-size: 76px; }
  .section { grid-template-columns: 20% 80%; }
  .about-columns { gap: 22px; }
  .projects { gap: 20px; }
  .project-art { height: 220px; }
  .section-label { font-size: 8px; }
  .timeline article { gap: 20px; }
  footer > span { max-width: 165px; line-height: 1.8; }
}
@media (max-width: 650px) {
  .header { padding: 23px 6%; gap: 15px; }
  .wordmark { font-size: 23px; }
  .tiny-sun { font-size: 21px; margin-left: 6px; }
  nav { gap: 16px; font-size: 11px; }
  nav a { white-space: nowrap; }
  .hero { padding: 45px 6% 0; min-height: calc(100svh - 85px); grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; gap: 22px; }
  .hero-copy { padding-bottom: 0; }
  h1 { font-size: clamp(54px, 15.2vw, 86px); }
  .intro { max-width: 340px; font-size: 15px; }
  .setting-sun { left: 82%; top: 14svh; width: min(112vw, 65svh); }
  .hero-note { padding-bottom: 0; font-size: 7px; gap: 5px; }
  .hero-bottom { padding: 12px 0 65px; font-size: 7px; letter-spacing: .8px; gap: 12px; }
  .hero-bottom > span { max-width: 145px; }
  .hero-bottom a { align-self: center; white-space: nowrap; }
  .hero-bottom a span { margin-left: 5px; }
  .section { margin: 0 6%; padding: 58px 0; display: block; }
  .section::before { inset: 10px -12px; }
  .section-label { margin-bottom: 25px; padding: 0; gap: 15px; font-size: 9px; }
  .asterisk { display: none; }
  .section h2 { font-size: 40px; }
  .about-columns, .projects { grid-template-columns: 1fr; gap: 12px; }
  .about-columns p { font-size: 14px; }
  .projects { gap: 35px; }
  .project-art { height: 260px; }
  .project h3 { font-size: 27px; }
  .project p { font-size: 14px; }
  .timeline article { grid-template-columns: 1fr; gap: 12px; }
  .timeline p { font-size: 13px; }
  .contact { padding: 80px 6% 105px; }
  .contact h2 { font-size: 57px; }
  .contact .eyebrow { font-size: 7px; }
  .contact-email { font-size: 18px; }
  footer { flex-wrap: wrap; gap: 20px; font-size: 10px; }
  footer .wordmark { margin-right: auto; }
  footer > span { order: 4; flex-basis: 100%; max-width: none; }
  .fact-row { font-size: 10px; }
  .day-marker { right: 6%; bottom: 12px; font-size: 7px; }
}
@media (max-width: 360px) {
  .header { flex-wrap: wrap; gap: 15px; }
  nav { width: 100%; justify-content: space-between; }
  .hero { min-height: calc(100svh - 115px); }
  h1 { font-size: 51px; }
  .hero-bottom { font-size: 6px; }
  .contact h2 { font-size: 47px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .setting-sun { transform: translateX(-50%); opacity: .2; will-change: auto; }
  .day-track span { left: 50%; }
}
