/* =====================================================================
   HAREN MANGUKIA — editorial architecture portfolio
   Edit colours and fonts here.
   ===================================================================== */
:root {
  --bg: #efede8;            /* off-white / concrete paper */
  --bg-2: #e6e3dc;          /* concrete */
  --ink: #1c1c1a;           /* charcoal */
  --ink-2: #44433f;
  --muted: #8b887f;
  --rule: rgba(28, 28, 26, .16);
  --rule-strong: rgba(28, 28, 26, .55);
  --grid: rgba(28, 28, 26, .045);
  --accent: #b4532f;        /* terracotta, from Club Aurum's façade fins */
  --img-bg: #dedad2;
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(18px, 3.4vw, 56px);
  --max: 1560px;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-2: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #141413;
  --bg-2: #1c1c1a;
  --ink: #ebe8e1;
  --ink-2: #c4c0b7;
  --muted: #8a867d;
  --rule: rgba(235, 232, 225, .13);
  --rule-strong: rgba(235, 232, 225, .5);
  --grid: rgba(235, 232, 225, .035);
  --accent: #d2724c;
  --img-bg: #23221f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 400;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; transition: background-color .5s, color .5s;
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
i, em { font-style: italic; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* 12-column guide lines across the page */
.gridlines { position: fixed; inset: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); display: grid; grid-template-columns: repeat(12, 1fr); pointer-events: none; z-index: 0; }
.gridlines i { border-left: 1px solid var(--grid); }
.gridlines i:last-child { border-right: 1px solid var(--grid); }
main, .foot, .nav { position: relative; z-index: 1; }

/* annotation captions: small caps like drawing notes */
.anno { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
.cap { display: flex; flex-wrap: wrap; gap: 6px 28px; padding-top: 12px; }
.cap span:first-child { color: var(--accent); }
.cap--stack { flex-direction: column; gap: 2px; }

/* hairline rules that draw themselves */
.rule { display: block; height: 1px; background: var(--rule-strong); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease); transition-delay: var(--d, 0s); }
.rule.is-in { transform: scaleX(1); }

.btn { display: inline-flex; align-items: center; height: 46px; padding: 0 26px; background: var(--ink); color: var(--bg); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; transition: background .3s, color .3s; }
.btn:hover { background: var(--accent); color: #fff; }
.link { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 3px; transition: background-size .5s var(--ease), color .3s; }
.link:hover { background-size: 100% 1px; color: var(--accent); }

/* ---------------- navigation ---------------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--gutter); transition: background .4s, padding .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--rule); padding-top: 12px; padding-bottom: 12px; }
.nav__id { display: flex; align-items: center; gap: 14px; }
.nav__mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--ink); font-family: var(--serif); font-size: 18px; letter-spacing: .02em; position: relative; }
.nav__mark::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; background: var(--accent); }
.nav__name { font-family: var(--serif); font-size: 21px; line-height: 1; }
.nav__name em { display: block; font-family: var(--sans); font-style: normal; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav__links { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.nav__links a { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--muted); position: relative; padding: 6px 0; transition: color .3s; }
.nav__links a b { font-weight: 500; color: var(--accent); margin-right: 6px; opacity: 0; transition: opacity .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.nav__links a:hover, .nav__links a.is-on { color: var(--ink); }
.nav__links a.is-on b, .nav__links a:hover b { opacity: 1; }
.nav__links a.is-on::after { transform: scaleX(1); }
.nav__tools { display: flex; align-items: center; gap: 18px; }
.nav__cv { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; border: 1px solid var(--rule-strong); padding: 8px 14px; transition: background .3s, color .3s; }
.nav__cv:hover { background: var(--ink); color: var(--bg); }
.theme { width: 34px; height: 34px; border: 1px solid var(--rule-strong); border-radius: 50%; display: grid; place-items: center; }
.theme span { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); border: 1px solid var(--ink); transition: transform .6s var(--ease); }
[data-theme="dark"] .theme span { transform: rotate(180deg); }
.nav__burger { display: none; width: 34px; height: 34px; position: relative; }
.nav__burger i { position: absolute; left: 6px; right: 6px; height: 1px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__burger i:first-child { top: 13px; } .nav__burger i:last-child { top: 20px; }
.nav.is-open .nav__burger i:first-child { top: 17px; transform: rotate(45deg); }
.nav.is-open .nav__burger i:last-child { top: 17px; transform: rotate(-45deg); }

/* ---------------- hero ---------------- */
.hero { padding-top: clamp(110px, 14vh, 160px); }
.hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 0; position: relative; min-height: min(78vh, 760px); align-content: start; }
.hero__sheet { grid-column: 1 / 7; }
.hero__name { grid-column: 1 / 13; font-family: var(--serif); font-weight: 400; font-size: clamp(76px, 15.5vw, 260px); line-height: .84; letter-spacing: -.035em; margin-top: clamp(18px, 3vw, 40px); position: relative; z-index: 2; }
.hero__name i { color: var(--accent); padding-left: .55em; }
.mask { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.1em; }
.mask > span { display: block; transform: translateY(105%); transition: transform 1.5s var(--ease); transition-delay: var(--d, 0s); }
.is-loaded .hero .mask > span, .mask.is-in > span { transform: none; }
.hero__meta { grid-column: 1 / 6; margin-top: clamp(28px, 4vw, 54px); position: relative; z-index: 2; }
.hero__rule { width: 100%; margin-bottom: 20px; }
.is-loaded .hero__rule { transform: scaleX(1); }
.hero__title { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; }
.hero__lede { color: var(--ink-2); max-width: 44ch; margin-top: 14px; }
.hero__cta { display: flex; align-items: center; gap: 28px; margin-top: 28px; }
.blueprint { grid-column: 6 / 13; grid-row: 3 / 5; align-self: end; width: 100%; max-width: 640px; justify-self: end; margin-top: 20px; overflow: visible; }
.bp-line path, .bp-dim path { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 3.2s var(--ease-2); }
.bp-dim path { stroke: var(--accent); stroke-width: .8; transition-delay: 1.4s; }
.bp-line path:nth-child(2n) { transition-delay: .25s; } .bp-line path:nth-child(3n) { transition-delay: .5s; } .bp-line path:nth-child(5n) { transition-delay: .75s; }
.bp-txt text { font-family: var(--sans); font-size: 10px; letter-spacing: .14em; fill: var(--muted); opacity: 0; transition: opacity 1s 2.4s; }
.is-loaded .bp-line path, .is-loaded .bp-dim path { stroke-dashoffset: 0; }
.is-loaded .bp-txt text { opacity: 1; }
.hero__coord { grid-column: 1 / 5; margin-top: 40px; align-self: end; }
.hero__scroll { grid-column: 11 / 13; justify-self: end; margin-top: 40px; display: flex; align-items: center; gap: 12px; }
.scroll-line { width: 1px; height: 46px; background: var(--rule-strong); position: relative; overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: scrolldrop 2.2s var(--ease-2) infinite; }
@keyframes scrolldrop { to { top: 100%; } }
.ld { opacity: 0; transform: translateY(14px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.is-loaded .ld { opacity: 1; transform: none; }

.hero__figure { margin-top: clamp(40px, 6vw, 80px); }
.hero__img { height: min(86vh, 900px); overflow: hidden; background: var(--img-bg); }
.hero__img img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 45%; will-change: transform; transform: translateY(-6%) scale(1.04); }

/* image unveil: clip-path wipe */
.wipe { clip-path: inset(0 0 100% 0); transition: clip-path 1.6s var(--ease); transition-delay: var(--d, 0s); }
.wipe.is-in { clip-path: inset(0 0 0 0); }
.wipe img { transform: scale(1.12); transition: transform 2.2s var(--ease); transition-delay: var(--d, 0s); }
.wipe.is-in img { transform: scale(1); }
.hero__figure.wipe .hero__img img { transform: translateY(-6%) scale(1.04); transition: none; }

/* fade and rise */
.rise { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.rise.is-in { opacity: 1; transform: none; }

/* ---------------- facts ---------------- */
.facts { margin-top: clamp(60px, 8vw, 110px); }
.facts__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__row > div { padding: 26px 0 30px; border-left: 1px solid var(--rule); padding-left: 22px; }
.facts__row > div:first-child { border-left: 0; padding-left: 0; }
.facts dd { font-family: var(--serif); font-size: clamp(54px, 6.5vw, 104px); line-height: 1; margin-top: 10px; font-variant-numeric: lining-nums; }
.facts dd small { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-left: 10px; }

/* ---------------- sections ---------------- */
.sec { padding-top: clamp(110px, 14vw, 200px); }
.sec__head { margin-bottom: clamp(40px, 6vw, 80px); }
.sec__no { color: var(--accent); margin-top: 14px; }
.sec__title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.4vw, 104px); line-height: .98; letter-spacing: -.02em; margin-top: 18px; max-width: 14ch; }
.sec__title i { color: var(--accent); }

/* about */
.about { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }
.about__portrait { grid-column: 1 / 5; align-self: start; position: sticky; top: 110px; }
.about__portrait .wipe { aspect-ratio: 4 / 5; overflow: hidden; background: var(--img-bg); }
.about__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: grayscale(1) contrast(1.05); }
.about__text { grid-column: 6 / 13; }
.about__name { font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 9.5vw, 168px); line-height: .86; letter-spacing: -.035em; }
.about__name span { display: block; }
.about__name i { display: block; color: var(--accent); padding-left: .5em; }
.about__lead { font-family: var(--serif); font-size: clamp(26px, 2.5vw, 38px); line-height: 1.2; margin-top: clamp(30px, 4vw, 50px); max-width: 26ch; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: 36px; color: var(--ink-2); }
.creds { display: grid; grid-template-columns: 1fr 1fr; margin-top: 48px; border-top: 1px solid var(--rule-strong); }
.creds > div { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.creds > div:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--rule); }
.creds > div:nth-child(even) { padding-left: 20px; }
.creds dd { font-family: var(--serif); font-size: 21px; line-height: 1.25; margin-top: 4px; }

/* experience */
.xp__row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); padding-bottom: 34px; }
.xp__row > .rule { grid-column: 1 / -1; margin-bottom: 26px; background: var(--rule); }
.xp__row:first-child > .rule { background: var(--rule-strong); }
.xp__when { grid-column: 1 / 4; padding-top: 10px; color: var(--ink); }
.xp__what { grid-column: 4 / 11; }
.xp__where { grid-column: 11 / 13; text-align: right; padding-top: 10px; }
.xp__what h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.8vw, 42px); line-height: 1.08; letter-spacing: -.01em; }
.xp__org { color: var(--accent); font-size: 14px; letter-spacing: .06em; margin: 6px 0 14px; font-weight: 500; }
.xp__what li { position: relative; padding-left: 22px; color: var(--ink-2); max-width: 70ch; margin-bottom: 6px; }
.xp__what li::before { content: ""; position: absolute; left: 0; top: .82em; width: 11px; height: 1px; background: var(--muted); }

/* selected work: uniform cards in an editorial rhythm */
.sel { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: clamp(60px, 8vw, 120px); }
.card { display: block; text-align: left; cursor: pointer; }
.card:nth-child(4n+1) { grid-column: 1 / 8; }
.card:nth-child(4n+2) { grid-column: 9 / 13; align-self: end; }
.card:nth-child(4n+3) { grid-column: 1 / 6; }
.card:nth-child(4n+4) { grid-column: 7 / 13; margin-top: clamp(60px, 10vw, 160px); }
.card__img { position: relative; overflow: hidden; background: var(--img-bg); aspect-ratio: 4 / 3; }
.card:nth-child(4n+1) .card__img, .card:nth-child(4n+4) .card__img { aspect-ratio: 3 / 2; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .card__img img, .card:focus-visible .card__img img { transform: scale(1.06); }
.card__over { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; background: linear-gradient(0deg, rgba(20,20,19,.72), transparent); color: #fff; transform: translateY(100%); transition: transform .8s var(--ease); display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.card__over span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.card:hover .card__over, .card:focus-visible .card__over { transform: none; }
.card__cap { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 18px; padding-top: 16px; border-top: 1px solid var(--rule-strong); margin-top: 16px; align-items: baseline; }
.card__cap .no { color: var(--accent); }
.card__cap h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; }
.card__cap .sub { grid-column: 2 / 4; }

/* project index */
.index { margin-top: clamp(110px, 12vw, 180px); }
.index__title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 60px); margin-top: 18px; display: flex; align-items: baseline; gap: 18px; }
.filters { display: grid; gap: 14px; margin: 26px 0 34px; }
.filters__group { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.filters__group button { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--muted); padding: 4px 0; position: relative; transition: color .3s; }
.filters__group button sup { font-size: 9px; margin-left: 3px; letter-spacing: 0; }
.filters__group button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.filters__group button:hover, .filters__group button.is-on { color: var(--ink); }
.filters__group button.is-on::after { transform: scaleX(1); }
.filters__search { display: flex; align-items: center; gap: 14px; max-width: 420px; border-bottom: 1px solid var(--rule-strong); padding: 6px 0; }
.filters__search input { border: 0; background: transparent; outline: none; flex: 1; font-size: 15px; }
.index__cols, .irow { display: grid; grid-template-columns: 4.5rem 84px minmax(0, 3fr) minmax(0, 2fr) minmax(0, 1.4fr) 6rem; column-gap: 20px; align-items: center; }
.index__cols { padding: 0 0 10px; border-bottom: 1px solid var(--rule-strong); }
.index__cols span:nth-child(2) { grid-column: 3; }
.irow { width: 100%; text-align: left; padding: 10px 0; border-bottom: 1px solid var(--rule); position: relative; transition: padding .5s var(--ease); }
.irow::before { content: ""; position: absolute; inset: 0; background: var(--bg-2); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; }
.irow:hover::before, .irow:focus-visible::before { transform: scaleY(1); }
.irow:hover { padding-left: 10px; }
.irow .no { font-size: 12px; letter-spacing: .12em; color: var(--accent); font-weight: 500; }
.irow .th { width: 84px; height: 56px; overflow: hidden; background: var(--img-bg); }
.irow .th img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s, transform .8s var(--ease); }
.irow:hover .th img { filter: none; transform: scale(1.08); }
.irow .t { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.irow .m { color: var(--ink-2); font-size: 14px; }
.irow .y { font-size: 12px; letter-spacing: .12em; color: var(--muted); text-align: right; }
.irow.in { animation: rowin .8s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rowin { from { opacity: 0; transform: translateY(14px); } }
.index__more { margin-top: 30px; }
.index__more[hidden] { display: none; }
.empty { padding: 30px 0; color: var(--muted); font-family: var(--serif); font-size: 24px; }

/* expertise */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-strong); }
.skills li { font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.15; padding: 22px 24px 26px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.skills li:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--rule); }
.skills li .anno { color: var(--accent); }
.quals { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gutter); margin-top: clamp(50px, 7vw, 90px); }
.quals .anno { margin: 14px 0 10px; color: var(--accent); }
.quals p:not(.anno) { color: var(--ink-2); }

/* contact */
.contact__title { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 10vw, 180px); line-height: .9; letter-spacing: -.03em; }
.contact__title .mask { display: inline-block; vertical-align: top; }
.contact__title i { color: var(--accent); }
.contact__mail { display: inline-flex; gap: 16px; align-items: baseline; font-family: var(--serif); font-size: clamp(28px, 3.6vw, 56px); margin-top: clamp(30px, 4vw, 54px); border-bottom: 1px solid var(--rule-strong); padding-bottom: 6px; transition: color .3s, border-color .3s; }
.contact__mail span { transition: transform .6s var(--ease); }
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }
.contact__mail:hover span { transform: translateX(8px); }
.contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(50px, 6vw, 80px); border-top: 1px solid var(--rule-strong); }
.contact__grid > div { padding: 18px 20px 0 0; }
.contact__grid > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.contact__grid dd { font-family: var(--serif); font-size: 22px; line-height: 1.3; margin-top: 6px; }
.contact__grid a { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.contact__grid a:hover { color: var(--accent); background-size: 100% 1px; }

/* footer */
.foot { margin-top: clamp(120px, 14vw, 200px); padding-bottom: 30px; }
.foot__quote { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3vw, 44px); line-height: 1.15; padding: 30px 0 60px; max-width: 24ch; }
.foot__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; }
.foot__row a:hover { color: var(--accent); }

/* ---------------- project viewer ---------------- */
.pv { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--ease); }
.pv.is-open { clip-path: inset(0 0 0 0); }
.pv[hidden] { display: none; }
.pv__bar { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); max-width: none; }
.pv__bar .anno:first-child { color: var(--accent); }
.pv__ctrl { display: flex; gap: 28px; }
.pv__ctrl button { color: var(--muted); letter-spacing: inherit; text-transform: inherit; font-size: inherit; font-weight: inherit; transition: color .3s; }
.pv__ctrl button:hover { color: var(--ink); }
.pv__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 420px; }
.pv__media { min-height: 0; display: flex; flex-direction: column; gap: 14px; padding: 26px var(--gutter); }
.pv__frame { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.pv__frame img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .4s, transform .8s var(--ease); }
.pv__frame img.swap { opacity: 0; transform: scale(.985); }
.pv__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pv__thumbs button { flex: 0 0 72px; height: 50px; background: var(--img-bg); opacity: .4; transition: opacity .3s; }
.pv__thumbs button.is-on, .pv__thumbs button:hover { opacity: 1; }
.pv__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pv__info { border-left: 1px solid var(--rule); padding: 30px var(--gutter) 30px 34px; overflow-y: auto; }
.pv__info .anno { color: var(--accent); }
.pv__info h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 2.6vw, 44px); line-height: 1.04; margin: 10px 0 26px; }
.pv__info dl { display: grid; grid-template-columns: 6.6rem 1fr; border-top: 1px solid var(--rule-strong); }
.pv__info dt, .pv__info dd { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.pv__info dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding-top: 13px; }
.pv__info dd { font-size: 15px; }
.pv__note { margin-top: 22px; color: var(--ink-2); }

/* ---------------- custom cursor (desktop only) ---------------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor span { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 1px solid var(--ink); transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, border-color .3s; display: grid; place-items: center; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.cursor.is-on { opacity: 1; }
.cursor.is-view span { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: var(--accent); border-color: var(--accent); }
.cursor.is-view span::after { content: "View"; }
.cursor.is-link span { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------------- responsive ---------------- */
@media (max-width: 1100px) {
  .nav__links { gap: 16px; }
  .nav__links a b { display: none; }
  .pv__body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .pv__info { border-left: 0; border-top: 1px solid var(--rule); max-height: 42vh; padding: 22px var(--gutter); }
  .index__cols, .irow { grid-template-columns: 3.6rem 72px minmax(0, 3fr) minmax(0, 2fr) 5.5rem; }
  .index__cols span:nth-child(4), .irow > :nth-child(5) { display: none; }
  .irow .th { width: 72px; height: 50px; }
}
@media (max-width: 900px) {
  .nav__links { position: fixed; inset: 0; z-index: -1; background: var(--bg); flex-direction: column; justify-content: center; padding: 0 var(--gutter); gap: 0; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); }
  .nav.is-open .nav__links { clip-path: inset(0 0 0 0); }
  .nav__links a { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 44px; color: var(--ink); padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .nav__links a b { display: inline; opacity: 1; font-family: var(--sans); font-size: 12px; vertical-align: middle; margin-right: 14px; }
  .nav__burger { display: block; }
  .nav__cv { display: none; }
  .nav__name em { display: none; }
  .hero__grid { min-height: 0; }
  .hero__sheet, .hero__meta, .hero__coord { grid-column: 1 / -1; }
  .blueprint { grid-column: 1 / -1; grid-row: auto; margin-top: 40px; }
  .hero__scroll { display: none; }
  .hero__img { height: 62vh; }
  .facts__row { grid-template-columns: 1fr 1fr; }
  .facts__row > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts__row > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .about__portrait { grid-column: 1 / -1; position: static; max-width: 420px; margin-bottom: 40px; }
  .about__text { grid-column: 1 / -1; }
  .about__cols, .creds { grid-template-columns: 1fr; }
  .creds > div:nth-child(odd) { border-right: 0; padding-right: 0; }
  .creds > div:nth-child(even) { padding-left: 0; }
  .xp__when { grid-column: 1 / 9; padding-top: 0; }
  .xp__where { grid-column: 9 / 13; padding-top: 0; }
  .xp__what { grid-column: 1 / -1; margin-top: 10px; }
  .card:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .skills { grid-template-columns: 1fr 1fr; }
  .skills li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .skills li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--rule); }
  .quals { grid-template-columns: 1fr; row-gap: 36px; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .contact__grid > div:nth-child(n+3) { margin-top: 20px; border-top: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .gridlines { grid-template-columns: repeat(4, 1fr); }
  .gridlines i:nth-child(n+5) { display: none; }
  .gridlines i:nth-child(4) { border-right: 1px solid var(--grid); }
  .hero__name i { padding-left: .3em; }
  .about__name i { padding-left: .3em; }
  .index__cols { display: none; }
  .irow { grid-template-columns: 2.8rem 64px minmax(0, 1fr); row-gap: 2px; }
  .irow .th { width: 64px; height: 46px; grid-row: span 2; }
  .irow .no { grid-row: span 2; align-self: start; padding-top: 4px; }
  .irow .t { font-size: 19px; }
  .irow > :nth-child(4) { grid-column: 3; font-size: 13px; color: var(--muted); }
  .irow > :nth-child(6) { display: none; }
  .skills { grid-template-columns: 1fr; }
  .skills li:nth-child(even) { padding-left: 0; border-left: 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__grid > div + div { padding-left: 0; border-left: 0; margin-top: 16px; border-top: 1px solid var(--rule); }
  .pv__ctrl { gap: 16px; }
  .card__cap { grid-template-columns: auto 1fr; }
  .card__cap .sub { grid-column: 1 / -1; }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .rise, .ld, .wipe, .mask > span, .rule { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .bp-line path, .bp-dim path { stroke-dashoffset: 0 !important; }
  .bp-txt text { opacity: 1 !important; }
  .wipe img, .hero__img img { transform: none !important; }
  .cursor { display: none; }
}
