/* Shivam Shroff — portfolio
   Type scale steps by the golden ratio (16 → 26 → 42 → 68 → 110 → 178); body line-height 1.618.
   Orange and copper come from the logo and are reserved for highlights. */

:root {
  --bg: #F2EEE8;
  --ink: #1C1A18;
  --char: #323232;
  --orange: #FFA72F;
  --copper: #C66225;
  --muted: #6B655E;
  --muted-dark: #9A938A;
  --line: #D9D2C8;
  --line-dark: #4A4744;
  --body: #3A3632;
  --body-2: #4A4540;
  --card-hover: #EAE4DB;
  --stripe-a: #E4DDD3;
  --stripe-b: #ECE6DE;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: max(20px, 4vw);
  --gap: clamp(20px, 3vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-sweep: cubic-bezier(.76, 0, .24, 1);
  --header-h: 70px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { font-size: 16px; line-height: 1.5; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--copper); }
::selection { background: var(--orange); color: var(--ink); }
img { max-width: 100%; }
input, textarea, button { font: inherit; }
button { cursor: pointer; }
em { font-family: var(--serif); font-weight: 400; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
body.cc-on, body.cc-on * { cursor: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 120; padding: 10px 18px; border-radius: 999px; background: var(--orange); color: var(--ink); font-weight: 500; transition: top .3s; }
.skip-link:focus { top: 12px; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.mono-label { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.dot { color: var(--orange); }
.u-orange, .section-title u { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 8px; }

/* Striped photo placeholder */
.ph { background: repeating-linear-gradient(135deg, var(--stripe-a) 0 10px, var(--stripe-b) 10px 20px); display: flex; align-items: center; justify-content: center; }
.ph-label { font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--bg); padding: 6px 10px; }

/* Shared two-column (rule of thirds) section grid */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--gap); }
.span-all { grid-column: 1 / -1; }

.page-title { font-weight: 400; font-size: clamp(56px, 7vw, 110px); line-height: .98; letter-spacing: -.03em; text-wrap: pretty; }
.page-title > span { display: block; }
.section-title { font-weight: 400; font-size: clamp(32px, 4.2vw, 68px); line-height: 1.1; letter-spacing: -.02em; text-wrap: pretty; }
.dark-title { font-weight: 400; font-size: clamp(42px, 4.2vw, 68px); line-height: 1; letter-spacing: -.02em; }
.dark-title em { color: var(--orange); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--mono); font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid currentColor; opacity: .7; white-space: nowrap; }

/* ---------- Reveal on scroll (only once JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(44px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1.2s cubic-bezier(.16, .84, .24, 1) var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal-mask] { transform: translateY(105%); transition: transform 1.2s cubic-bezier(.16, .84, .24, 1) var(--d, 0ms); }
.js .in > [data-reveal-mask] { transform: none; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--char); color: var(--bg); display: none; align-items: center; justify-content: center; transition: transform 1s var(--ease-sweep); }
.show-loader .loader { display: flex; }
.loader-mark { position: relative; width: 120px; height: 133px; }
.loader-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.loader-mark .ghost { opacity: .12; }
.loader-mark .fill { clip-path: inset(100% 0 0 0); }
.loader-meta { position: absolute; left: 4vw; bottom: 40px; display: flex; flex-direction: column; gap: 6px; }
.loader-meta .mono-label { color: var(--muted-dark); }
.loader-meta .name { font-size: 16px; }
.loader-meta em { font-style: italic; font-size: 20px; }
.loader-count { position: absolute; right: 4vw; bottom: 24px; font-family: var(--serif); font-style: italic; font-size: clamp(68px, 11vw, 178px); line-height: 1; color: var(--orange); }

/* ---------- Page-transition curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 90; background: var(--char); display: flex; align-items: center; justify-content: center; gap: 20px; transform: translateY(100%); pointer-events: none; visibility: hidden; }
.curtain.is-active, .curtain-in .curtain { visibility: visible; }
.curtain-in .curtain { transform: none; }
.curtain img { height: 42px; }
.curtain-label { font-family: var(--serif); font-style: italic; font-size: clamp(42px, 6vw, 68px); color: var(--bg); }

/* ---------- Custom cursor ---------- */
.cursor-ring { position: fixed; left: 0; top: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid var(--copper); border-radius: 50%; z-index: 110; pointer-events: none; opacity: 0; transition: width .35s, height .35s, margin .35s, background-color .35s, border-color .35s, opacity .3s; }
.cursor-ring.is-hover { width: 72px; height: 72px; margin: -36px 0 0 -36px; background-color: rgba(255, 167, 47, .18); border-color: var(--orange); }
.cursor-dot { position: fixed; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--orange); border-radius: 50%; z-index: 111; pointer-events: none; opacity: 0; transition: opacity .3s; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 4vw; background: var(--char); color: var(--bg); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .mark { height: 38px; width: auto; display: block; }
.brand .name { height: 16px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); flex-wrap: wrap; }
.nav-link { display: flex; align-items: center; gap: 8px; font-size: 15px; padding: 4px 0; color: var(--bg); background-image: linear-gradient(var(--bg), var(--bg)); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .45s var(--ease), color .3s; }
.nav-link:hover { color: var(--bg); }
.nav-link[aria-current="page"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.nav-cta { font-size: 15px; font-weight: 500; padding: 10px 20px; border-radius: 999px; background: var(--bg); color: var(--ink); transition: background-color .35s, color .35s, transform .35s; }
.nav-cta em { font-style: italic; font-size: 18px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid #6A6560; border-radius: 50%; background: transparent; color: var(--bg); position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.nav-open .menu-btn span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .menu-btn span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Home: hero ---------- */
.hero { position: relative; min-height: 88vh; display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); align-items: center; column-gap: clamp(24px, 4vw, 64px); padding: 110px var(--gutter) 16px; }
.hero-text { display: flex; flex-direction: column; gap: 36px; }
.hero-name { font-weight: 400; font-size: clamp(68px, 10vw, 160px); line-height: .92; letter-spacing: -.02em; }
.hero-name > span { display: block; overflow: hidden; }
.hero-name > span:first-child { padding-bottom: .04em; }
.hero-name > span:last-child { padding-left: .62em; }
.hero-name .first { display: inline-block; font-family: var(--serif); font-style: italic; }
.hero-name .last { display: inline-block; font-weight: 800; letter-spacing: -.05em; }
.hero-intro { display: flex; flex-direction: column; gap: 32px; max-width: 620px; }
.hero-intro p { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.618; text-wrap: pretty; color: var(--body); }
.hero-intro p em { font-size: 1.2em; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.social-circle { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; transition: background-color .35s, color .35s, border-color .35s, transform .35s; }
.btn-dark { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 500; transition: background-color .35s, color .35s, transform .35s; }
.btn-dark em { font-size: 19px; }
.hero-actions .btn-dark { margin-left: 8px; }
.btn-dark .arrow { font-size: 18px; }

.hero-art { position: relative; width: 100%; aspect-ratio: 1 / 1.05; }
.hero-art [data-float] { position: absolute; will-change: transform; }
/* Props are sized in % of the art box so the whole scene scales together. */
.hero-art .person { left: 2%; right: 2%; bottom: 3%; z-index: 1; }
.hero-art .person img { display: block; width: 100%; height: auto; }
.hero-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.art-brush { left: 22%; top: 1%; width: 8.5%; }
.art-brush svg { transform: rotate(215deg); }
.art-stroke { left: 4%; top: 21%; width: 21%; }
.art-piano { right: 4%; top: 7%; width: 23%; }
.art-piano svg { transform: rotate(9deg); filter: drop-shadow(0 6px 10px rgba(28, 26, 24, .08)); }
.art-note { right: 29%; top: 3%; width: 6%; }
.art-phone { left: 7%; top: 35%; width: 11.5%; z-index: 2; }
.art-laptop { right: 0; top: 38%; width: 24%; z-index: 2; }
.art-phone img, .art-laptop img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 12px rgba(28, 26, 24, .12)); }
.art-dot { left: 32%; top: 16%; }
.art-dot > div { width: 15px; height: 15px; border-radius: 50%; background: var(--orange); }

/* ---------- Home: skills marquee ---------- */
.skills { padding: 8px 0; overflow: hidden; }
.skills-inner { padding: 12px 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.logo-set { display: flex; margin: 0; padding: 0; list-style: none; }
.logo-item { height: 96px; flex: 0 0 auto; margin-right: clamp(48px, 5vw, 80px); display: flex; align-items: center; justify-content: center; transition: transform .5s var(--ease); }
.logo-item img { height: 64px; width: auto; max-width: 170px; object-fit: contain; display: block; }
.logo-item .logo-fallback { display: none; font-size: 22px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.logo-item.is-broken img { display: none; }
.logo-item.is-broken .logo-fallback { display: block; }
/* Optical sizing: each logo is sized by how big it looks, not its pixel box */
.logo-item .logo--excel { height: 46px; max-width: 60px; }
.logo-item .logo--tableau { height: 48px; max-width: 60px; }
.logo-item .logo--superset { height: 48px; max-width: 60px; }
.logo-item .logo--numpy { height: 92px; max-width: 200px; }
.logo-item .logo--gcp { height: 96px; max-width: 220px; }
.logo-ml { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.logo-ml em { font-size: 30px; }
.logo-ml strong { font-size: 22px; letter-spacing: -.03em; }

/* ---------- Home: areas of interest ---------- */
.interests { padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(80px, 12vw, 160px); row-gap: 56px; }
.interests > .mono-label { padding-top: 14px; }
.interest-list { border-bottom: 1px solid var(--line); }
.interest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr) minmax(0, 1fr) 40px; align-items: center; column-gap: var(--gap); padding: 30px 16px; border-top: 1px solid var(--line); transition: background-color .45s, color .45s, padding .45s var(--ease); }
.interest .n { font-family: var(--mono); font-size: 12px; opacity: .6; }
.interest .t { font-size: clamp(26px, 2.6vw, 42px); line-height: 1.1; letter-spacing: -.01em; }
.interest .d { font-size: 16px; line-height: 1.618; opacity: .75; }
.interest .a { font-size: 22px; color: var(--orange); justify-self: end; }

/* ---------- Home: know more + CTA ---------- */
.know { background: var(--char); color: var(--bg); padding: clamp(80px, 12vw, 160px) var(--gutter); row-gap: clamp(80px, 10vw, 140px); }
.know-head { display: flex; flex-direction: column; gap: 20px; }
.know-list { border-bottom: 1px solid var(--line-dark); }
.know-link { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line-dark); color: var(--bg); transition: padding .5s var(--ease), color .35s; }
.know-link > span:first-child { display: flex; align-items: baseline; gap: 24px; }
.know-link .n { font-family: var(--mono); font-size: 12px; opacity: .55; }
.know-link .l { font-family: var(--serif); font-size: clamp(42px, 5.5vw, 88px); line-height: 1; }
.know-link .a { font-size: 26px; }
.cta { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: var(--gap); align-items: center; }
.cta-main { display: flex; flex-direction: column; gap: 36px; }
.cta-title { font-weight: 400; font-size: clamp(48px, 7vw, 110px); line-height: .95; letter-spacing: -.03em; }
.cta-title strong { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 4px; text-underline-offset: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: flex; align-items: baseline; gap: 6px; flex-shrink: 0; white-space: nowrap; padding: 12px 22px; border-radius: 999px; border: 1px solid #6A6560; color: var(--bg); font-size: 16px; transition: background-color .35s, color .35s, border-color .35s, transform .35s; }
.pill em { font-size: 20px; }
.connect { justify-self: center; width: clamp(150px, 15vw, 220px); aspect-ratio: 1; border-radius: 50%; background: var(--orange); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 16px; font-weight: 500; transition: transform .6s var(--ease), background-color .4s; }
.connect em { font-style: italic; font-size: 30px; }

/* Tilted ribbon that separates the dark CTA from the dark footer */
.ribbon-wrap { position: relative; z-index: 3; height: 0; overflow-x: clip; }
.ribbon { position: absolute; left: -6vw; right: -6vw; top: -34px; transform: rotate(-2.2deg); background: var(--orange); padding: 18px 0; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); }
.ribbon-item { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-size: 26px; line-height: 1; color: var(--ink); white-space: nowrap; }
.ribbon-item em { font-size: 30px; }
.ribbon-item i { width: 9px; height: 9px; border-radius: 50%; background: var(--char); }

/* ---------- Footer ---------- */
.site-footer { background: var(--char); color: var(--bg); padding: 104px var(--gutter) 36px; display: flex; flex-direction: column; gap: 64px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand .mark { height: 56px; width: auto; display: block; }
.footer-brand .name { height: 20px; width: auto; display: block; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--bg); font-size: 16px; width: fit-content; transition: color .3s, padding .4s; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line-dark); padding-top: 24px; font-size: 13px; color: #A9A29A; }
.footer-bottom a { color: #A9A29A; transition: color .3s; }
.footer-bottom em { font-size: 16px; }

/* ---------- About ---------- */
.about-hero { padding: 150px var(--gutter) clamp(60px, 8vw, 110px); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 64px); align-items: end; }
.about-hero-text { display: flex; flex-direction: column; gap: 36px; }
.about-copy { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.about-copy .lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.618; color: var(--body); text-wrap: pretty; }
.about-copy .small { font-size: 16px; line-height: 1.618; color: var(--body-2); text-wrap: pretty; }
.about-copy .small em { font-size: 19px; }
.about-copy u { text-decoration-color: var(--orange); text-underline-offset: 4px; }
.portrait { aspect-ratio: 4 / 5; border-radius: 4px; }

.hobbies { padding: clamp(60px, 8vw, 110px) var(--gutter); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 64px); align-items: center; }
.hobbies-left { display: flex; flex-direction: column; gap: 28px; }
.hobby-list { display: flex; flex-direction: column; }
.hobby { display: flex; align-items: baseline; gap: clamp(16px, 2vw, 32px); padding: 6px 0; border: 0; background: none; color: inherit; text-align: left; transition: padding .6s var(--ease); }
.hobby.on { padding-left: 24px; }
.hobby .n { font-family: var(--mono); font-size: 12px; color: var(--copper); opacity: 0; transition: opacity .4s; }
.hobby.on .n { opacity: 1; }
.hobby .w { font-size: clamp(64px, 9.5vw, 150px); line-height: 1; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.2px var(--ink); transition: color .5s; }
.hobby.on .w { color: var(--ink); }
.hobby .w .dot { -webkit-text-stroke: 0; }
.hobbies-right { display: flex; flex-direction: column; gap: 22px; }
.photo-stack { position: relative; aspect-ratio: 4 / 5; }
.hobby-photo { position: absolute; inset: 0; border-radius: 6px; opacity: 0; transform: rotate(3deg) translate(14px, 6px) scale(.96); transition: opacity .7s, transform .9s var(--ease); box-shadow: 0 30px 60px -30px rgba(50, 50, 50, .45); }
.hobby-photo.on { opacity: 1; transform: none; }
.hobby-photo.prev { transform: rotate(-4deg) translate(-14px, 10px) scale(.94); }
.hobby-captions { display: grid; min-height: 150px; }
.hobby-caption { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.hobby-caption.on { opacity: 1; visibility: visible; transition: opacity .5s; }
.hobby-caption h3 { font-weight: 400; font-size: clamp(26px, 2.6vw, 42px); line-height: 1.05; }
.hobby-caption p { font-size: 16px; line-height: 1.618; color: var(--body-2); }
.no-js .hobby-caption, html:not(.js) .hobby-caption { opacity: 1; visibility: visible; grid-area: auto; }

.moments { background: var(--char); color: var(--bg); padding: clamp(80px, 10vw, 140px) var(--gutter); row-gap: 48px; }
.moments-head { position: sticky; top: 130px; align-self: start; display: flex; flex-direction: column; gap: 20px; }
.moments-head .mono-label { color: var(--muted-dark); }
.moment-list { display: flex; flex-direction: column; gap: clamp(40px, 6vh, 72px); padding-bottom: 40px; }
.moment { position: sticky; top: 130px; display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); padding: clamp(24px, 3vw, 40px); border-radius: 10px; background: var(--bg); color: var(--ink); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .6); transform: rotate(-1.2deg); }
.moment:nth-child(2) { top: 158px; transform: rotate(.8deg); }
.moment:nth-child(3) { top: 186px; transform: rotate(-.6deg); }
.moment:nth-child(4) { top: 214px; transform: rotate(1deg); }
.moment-text { display: flex; flex-direction: column; gap: 16px; justify-content: space-between; }
.moment-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.moment-year { font-family: var(--serif); font-style: italic; font-size: clamp(42px, 4.2vw, 68px); line-height: 1; color: var(--copper); }
.moment-body { display: flex; flex-direction: column; gap: 10px; }
.moment-body h3 { font-size: clamp(22px, 2vw, 26px); font-weight: 700; line-height: 1.2; }
.moment-body p { font-size: 16px; line-height: 1.618; color: var(--body-2); }
.moment .ph { aspect-ratio: 1; border-radius: 6px; }
.moment .ph-label { font-size: 11px; }

.faq { padding: clamp(80px, 10vw, 140px) var(--gutter); row-gap: 40px; }
.faq-head { display: flex; flex-direction: column; gap: 20px; }
.faq-head .section-title { line-height: 1.05; }
.faq-list { border-bottom: 1px solid var(--line); }
.faq-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); column-gap: var(--gap); row-gap: 8px; padding: 28px 0; border-top: 1px solid var(--line); }
.faq-item dt { font-family: var(--serif); font-size: clamp(22px, 2vw, 26px); line-height: 1.2; }
.faq-item dd { font-size: 16px; line-height: 1.618; color: var(--body-2); }

/* ---------- Inner pages (Education, Experience, Projects, Contact) ---------- */
.page { padding: 180px var(--gutter) clamp(80px, 12vw, 160px); row-gap: clamp(60px, 8vw, 110px); }
.page > .mono-label { padding-top: 20px; }

.edu-list { border-bottom: 1px solid var(--line); }
.edu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--gap); padding: 40px 0; border-top: 1px solid var(--line); transition: padding .5s var(--ease); }
.edu-when { display: flex; flex-direction: column; gap: 6px; }
.edu-when .years { font-family: var(--serif); font-style: italic; font-size: 42px; line-height: 1; color: var(--copper); }
.edu-what { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.edu-what h2 { font-weight: 400; font-size: clamp(26px, 2.6vw, 42px); line-height: 1.15; letter-spacing: -.01em; }
.edu-what .school { font-weight: 700; font-size: 16px; }
.edu-what p { font-size: 16px; line-height: 1.618; color: var(--body-2); }

.title-shipped, .page-title u { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 4px; text-underline-offset: 12px; font-weight: 700; }
.chapters { display: flex; flex-direction: column; }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--gap); padding: clamp(48px, 6vw, 88px) 0; border-top: 1px solid var(--line); }
.chapter-aside { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 22px; }
.chapter-years { font-family: var(--serif); font-style: italic; font-size: clamp(34px, 3vw, 42px); line-height: 1; color: var(--copper); }
.chapter-co { display: flex; flex-direction: column; gap: 4px; }
.chapter-co strong { font-size: 20px; }
.chapter-co span { font-size: 15px; color: var(--muted); }
.metric { margin-top: 8px; padding: 22px 24px; border-radius: 6px; background: var(--char); color: var(--bg); display: flex; flex-direction: column; gap: 6px; max-width: 280px; }
.metric .v { font-family: var(--serif); font-size: clamp(48px, 4.2vw, 68px); line-height: 1; color: var(--orange); }
.metric .l { font-size: 15px; line-height: 1.5; opacity: .85; }
.chapter-main { display: flex; flex-direction: column; gap: 36px; }
.chapter-head { display: flex; flex-direction: column; gap: 18px; }
.chapter-head h2 { font-weight: 400; font-size: clamp(36px, 4.2vw, 68px); line-height: 1.02; letter-spacing: -.02em; }
.chapter-head p { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--body); max-width: 720px; text-wrap: pretty; }
.wins { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-left: 1px solid var(--line); list-style: none; padding: 0; }
.win { display: flex; flex-direction: column; gap: 14px; padding: 24px 24px 28px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 -1px 0; transition: background-color .4s; }
.win .n { font-family: var(--mono); font-size: 12px; color: var(--copper); }
.win h3 { font-weight: 700; font-size: 18px; line-height: 1.3; }
.win p { font-size: 16px; line-height: 1.618; color: var(--body-2); }
.chapter .tags { color: var(--body); }

.projects-page { padding: 180px var(--gutter) clamp(80px, 12vw, 160px); display: flex; flex-direction: column; gap: clamp(60px, 8vw, 110px); }
.projects-intro { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }
.projects-intro .hint { font-size: 15px; color: var(--muted); }
.projects-intro .hint em { font-size: 18px; }
.project-list { border-bottom: 1px solid var(--line); }
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--gap); padding: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 32px); border-top: 1px solid var(--line); color: var(--ink); transition: background-color .5s, color .5s; }
.project.open { background: var(--char); color: var(--bg); }
.project-meta { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; }
.project-meta .n { font-family: var(--mono); font-size: 12px; opacity: .6; }
.project-meta .cat { font-size: 15px; opacity: .75; }
.project-body { display: flex; flex-direction: column; gap: 20px; }
.project-toggle { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; }
.project-toggle h2 { font-weight: 400; font-size: clamp(40px, 5.4vw, 88px); line-height: 1; letter-spacing: -.025em; }
.project-toggle .a { font-size: clamp(28px, 3vw, 42px); line-height: 1; color: var(--orange); transition: transform .5s var(--ease); }
.project.open .project-toggle .a { transform: rotate(45deg); }
.project-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.project.open .project-panel { grid-template-rows: 1fr; }
.project-panel > div { overflow: hidden; min-height: 0; }
.project-points { padding: 12px 0 8px; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px 40px; opacity: 0; transition: opacity .5s .1s; }
.project-points li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 16px; line-height: 1.618; }
.project-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-top: 10px; }
.project-links { display: flex; flex-wrap: wrap; gap: 24px; padding: 16px 0 4px; opacity: 0; transition: opacity .5s .15s; }
.project.open .project-points, .project.open .project-links { opacity: 1; }
.project-links a { color: inherit; font-size: 15px; background-image: linear-gradient(var(--orange), var(--orange)); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 2px; }
html:not(.js) .project-panel { grid-template-rows: 1fr; }
html:not(.js) .project-points, html:not(.js) .project-links { opacity: 1; }

.contact-page { row-gap: clamp(48px, 6vw, 80px); }
.intent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.intent-card { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 260px; padding: clamp(24px, 3vw, 40px); border-radius: 10px; border: 1px solid var(--line); color: var(--ink); transition: background-color .45s, color .45s, border-color .45s, transform .5s var(--ease); }
.intent-card .top { display: flex; justify-content: space-between; align-items: center; }
.intent-card .n { font-family: var(--mono); font-size: 12px; opacity: .6; }
.intent-card .a { font-size: 32px; color: var(--orange); }
.intent-card .bottom { display: flex; flex-direction: column; gap: 12px; }
.intent-card .t { font-size: clamp(36px, 4.2vw, 68px); line-height: 1; letter-spacing: -.02em; }
.intent-card .who { font-size: 16px; line-height: 1.5; opacity: .75; }

.form-page { padding-top: 160px; row-gap: clamp(48px, 6vw, 80px); }
.form-side-top { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; }
.back-link { font-family: var(--mono); font-size: 12px; color: var(--muted); width: fit-content; transition: color .3s, padding .4s; }
.form-head { display: flex; flex-direction: column; gap: 24px; }
.form-head .page-title em { color: var(--copper); }
.form-head .sub { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--body); max-width: 640px; }
.form-aside { display: flex; flex-direction: column; gap: 28px; }
.next-box { padding: 24px; border-radius: 8px; background: var(--char); color: var(--bg); display: flex; flex-direction: column; gap: 14px; }
.next-box .mono-label { color: var(--muted-dark); }
.next-box ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.next-box li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; font-size: 15px; line-height: 1.5; counter-increment: step; }
.next-box li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--orange); padding-top: 3px; }
.direct { display: flex; flex-direction: column; gap: 6px; }
.direct a { font-size: 18px; font-weight: 500; width: fit-content; }
.contact-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 36px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field.wide { grid-column: 1 / -1; }
.field-label { font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 0; }
.field input, .field textarea { border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; padding: 10px 0; font-size: 24px; outline: none; color: var(--ink); transition: border-color .3s; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--orange); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--orange); }
.field input::placeholder, .field textarea::placeholder { color: #A39C93; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: block; padding: 10px 18px; border-radius: 999px; border: 1px solid #BDB5AA; background: transparent; color: var(--ink); font-size: 15px; white-space: nowrap; transition: background-color .3s, border-color .3s; }
.chip input:checked + span { background: var(--orange); border-color: var(--orange); }
.chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.submit { display: inline-flex; align-items: center; gap: 12px; padding: 18px 32px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font-size: 16px; font-weight: 500; transition: background-color .35s, color .35s, transform .35s; }
.submit em { font-size: 20px; }
.submit[disabled] { opacity: .6; cursor: progress; }
.form-error { font-size: 15px; color: #A3361B; }
.form-error:empty { display: none; }
.thanks { display: flex; flex-direction: column; gap: 16px; align-self: center; outline: none; }
.thanks > span { font-size: clamp(32px, 4.2vw, 68px); line-height: 1.05; }

.notfound { min-height: 80vh; padding: 180px var(--gutter) 120px; display: flex; flex-direction: column; justify-content: center; gap: 36px; }

/* ---------- Hover (only on devices that really hover, so taps don't leave things stuck) ---------- */
@media (hover: hover) {
  .nav-link:hover { background-size: 100% 1px; }
  .nav-cta:hover { background-color: var(--orange); color: var(--ink); transform: translateY(-2px); }
  .social-circle:hover { background-color: var(--orange); border-color: var(--orange); color: var(--ink); transform: translateY(-3px); }
  .btn-dark:hover, .submit:hover:not([disabled]) { background-color: var(--orange); color: var(--ink); transform: translateY(-2px); }
  .logo-item:hover { transform: translateY(-6px) scale(1.06); }
  .interest:hover { background-color: var(--char); color: var(--bg); padding-left: 32px; }
  .know-link:hover { padding-left: 28px; color: var(--orange); }
  .pill:hover { background-color: var(--orange); border-color: var(--orange); color: var(--ink); transform: translateY(-3px); }
  .connect:hover { transform: scale(1.08) rotate(-6deg); background-color: var(--bg); color: var(--ink); }
  .footer-col a:hover { color: var(--orange); padding-left: 8px; }
  .footer-bottom a:hover { color: var(--orange); }
  .edu:hover { padding-left: 16px; }
  .win:hover { background-color: var(--card-hover); }
  .project-links a:hover { color: var(--orange); }
  .intent-card:hover { background-color: var(--char); color: var(--bg); border-color: var(--char); transform: translateY(-6px); }
  .back-link:hover { color: var(--copper); padding-left: 6px; }
  .chip span:hover { border-color: var(--orange); }
}

/* ---------- Tablet & phone ---------- */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .site-header { padding: 12px var(--gutter); }
  .menu-btn { display: block; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 8px; padding: 32px var(--gutter); background: var(--char); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .35s, transform .45s var(--ease), visibility 0s .45s; }
  .nav-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .45s var(--ease); }
  .nav-link { font-family: var(--serif); font-size: 44px; line-height: 1.2; padding: 4px 0; }
  .nav-link[aria-current="page"]::before { width: 10px; height: 10px; }
  .nav-cta { margin-top: 24px; font-size: 17px; padding: 14px 26px; }
  html.menu-open { overflow: hidden; }

  .split, .hero, .about-hero, .hobbies, .cta, .chapter, .project, .edu, .faq-item, .moment { grid-template-columns: minmax(0, 1fr); }
  .page, .projects-page { padding-top: 130px; }
  .form-page { padding-top: 120px; }
  .about-hero { padding-top: 120px; row-gap: 48px; }

  .hero { min-height: 0; padding-top: 120px; row-gap: 40px; }
  .hero-art { max-width: 440px; justify-self: center; }
  .interests { row-gap: 32px; }
  .interests > .mono-label { padding-top: 0; }
  .interest { grid-template-columns: 32px minmax(0, 1fr) 24px; row-gap: 10px; padding: 26px 8px; }
  .interest .n { grid-row: 1; }
  .interest .d { grid-column: 2; grid-row: 2; }
  .interest .a { grid-column: 3; grid-row: 1; }

  .know { row-gap: 64px; }
  .cta { row-gap: 48px; }
  .connect { justify-self: start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }

  .portrait { max-width: 420px; }
  .hobbies { row-gap: 40px; }
  .photo-stack { max-width: 420px; }
  .moments-head { position: static; }
  .moment { top: 90px; }
  .moment:nth-child(2) { top: 106px; }
  .moment:nth-child(3) { top: 122px; }
  .moment:nth-child(4) { top: 138px; }
  .moment .ph { aspect-ratio: 16 / 10; }
  .faq { row-gap: 24px; }

  .page { row-gap: 48px; }
  .page > .mono-label { padding-top: 0; }
  .edu { row-gap: 16px; }
  .chapter { row-gap: 36px; }
  .chapter-aside { position: static; }
  .project { row-gap: 16px; }
  .project-meta { flex-direction: row; justify-content: space-between; padding-top: 0; }
  .projects-intro { padding-top: 0; }
  .form-side-top { padding-top: 0; flex-direction: row; justify-content: space-between; }
}

@media (max-width: 560px) {
  .brand .name { height: 13px; }
  .brand .mark { height: 34px; }
  .hero-actions .btn-dark { margin-left: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .know-link > span:first-child { gap: 14px; }
  .ribbon-item { font-size: 20px; gap: 20px; padding-right: 20px; }
  .ribbon-item em { font-size: 24px; }
  .contact-form { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .field input, .field textarea { font-size: 20px; }
  .wins { grid-template-columns: minmax(0, 1fr); }
  .project-points { grid-template-columns: minmax(0, 1fr); }
  .loader-meta { bottom: 28px; left: var(--gutter); }
  .loader-count { right: var(--gutter); }
}

/* ---------- Reduced motion: keep the look, drop the movement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal-mask] { opacity: 1; transform: none; }
}
