/* Replica layer: matches the reference's measured type, spacing and components.
   Loaded after site.css (and case.css on case pages). */
@font-face{font-family:"DM Serif Display";src:url(../assets/fonts/dmserifdisplay-normal-400.woff2) format("woff2");font-style:normal;font-display:swap}
@font-face{font-family:"DM Serif Display";src:url(../assets/fonts/dmserifdisplay-italic-400.woff2) format("woff2");font-style:italic;font-display:swap}
@font-face{font-family:"Cormorant Garamond";src:url(../assets/fonts/cormorantgaramond-italic-600.woff2) format("woff2");font-style:italic;font-weight:600;font-display:swap}
@font-face{font-family:"Geist";src:url(../assets/fonts/geist-normal-400.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Geist Mono";src:url(../assets/fonts/geistmono-normal-400.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"VT323";src:url(../assets/fonts/vt323-normal-400.woff2) format("woff2");font-display:swap}

:root{
  --serif:"DM Serif Display",Georgia,serif; --ital:"Cormorant Garamond",Georgia,serif;
  --geist:"Geist","Inter",system-ui,sans-serif; --mono:"Geist Mono",ui-monospace,monospace;
  --lime:#baff2d; --navy:#091e34; --card:#f5f8fa;
}
body{font-family:var(--geist)}

/* nav pill: 775 x 54, radius 999 */
.nav{width:auto;top:0;height:auto;padding:20px clamp(18px,4vw,48px)}
.nav-name{font-family:"Inter",sans-serif;font-size:15px;line-height:15px;font-weight:600;letter-spacing:-.15px;color:#0a0a0c}
.nav-name small{font-size:12px;line-height:15.6px;color:rgba(10,10,12,.66);margin-top:2px}
.nav-links a{font-family:"Inter",sans-serif;font-size:14px;font-weight:500;letter-spacing:.14px}

/* hero */
.hero{background:#5e9bd3}
.hero.has-sky{background:#5e9bd3 url(../assets/hero/sky.jpg) center/cover no-repeat}
.hero.has-sky .cloud{display:none}
.corner{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:1.98px;color:rgba(255,255,255,.85);top:100px}
.cross{top:94px}
.status{font-family:var(--mono);font-size:13px;font-weight:400;letter-spacing:.39px;background:transparent}
.hero-inner{padding-top:182px;max-width:760px}
.hero h1{font-family:var(--serif);font-weight:400;font-size:88px;line-height:96.8px;letter-spacing:-2.64px;margin-top:22px;text-shadow:none}
.hero h1 em{font-family:var(--ital);font-style:italic;font-weight:600;font-size:100px;line-height:95px;letter-spacing:-2px;margin:0;display:block}
.hero-sub{font-family:"Inter",sans-serif;font-size:16px;line-height:20.8px;font-weight:500;color:var(--navy);max-width:560px;margin-top:18px}
.hl{font-family:var(--geist);font-weight:600;border-radius:4px;padding:0 6px}
@media(max-width:760px){.hero h1{font-size:54px;line-height:58px;letter-spacing:-1.6px}.hero h1 em{font-size:60px;line-height:58px}}

/* CRT image slot: photo + portrait inside its screen */
.crt-wrap.photo{width:min(420px,80vw);margin-top:6px}
.crt-wrap.photo img.crt-img{display:block;width:100%;height:auto;position:relative;z-index:2;pointer-events:none}
.crt-wrap.photo .scr{position:absolute;z-index:1;left:26%;top:16%;width:48%;height:38%;overflow:hidden;background:#101820}
.crt-wrap.photo .scr img{width:100%;height:100%;object-fit:cover;object-position:50% 25%;filter:grayscale(1) contrast(1.05)}
.crt-wrap.photo .scr .det{inset:14% 18% 18% 18%}
.crt-wrap.photo .crt-bar2{position:absolute;z-index:3;left:26%;bottom:44%;font-family:var(--mono);font-size:11px;font-weight:600;letter-spacing:.1em;color:var(--lime)}
.crt-wrap.photo .crt,.crt-wrap.photo .crt-stand{display:none}
.no-photo .crt-img{display:none}

/* work section: gradient + cards */
.work{background:linear-gradient(#6fa8d8,#c9dceb)}
.tab{font-family:var(--mono);font-size:12px;font-weight:600;letter-spacing:1.2px}
.tab em{font-weight:500}
.grid{padding:0;gap:30px}
.card{background:var(--card);border-radius:16px;padding:6px}
.card .shot{border-radius:12px;aspect-ratio:668/452}
.chip{font-family:var(--geist);font-size:12px}
.card .t span{font-family:var(--geist);font-size:18px;line-height:21.6px;font-weight:500;letter-spacing:-.2px}
.card .t{height:44px;margin:4px 12px 0;padding-top:10px}
.card .t span.go{padding-top:0;font-family:var(--geist);text-transform:none;letter-spacing:-.2px;font-size:18px}
.tags b{font-family:"Inter",sans-serif;font-size:12px;color:#555759}

/* making-of */
.mk-title,.letters button{font-family:var(--serif)}
.mk-chip,.mk-hint{font-family:var(--mono)}
.book h3{font-family:var(--serif)}
.book p,.spread .pg1 p{font-family:"Caveat",cursive}
.ov-top h2{font-family:var(--serif);font-size:26px}
.ov-close{font-family:var(--mono);background:#0f1a24}

/* ===== case template (reference layout) ===== */
body.case{background:#ece8e2;font-family:var(--geist);color:#2a1a22;--ink:#2a1a22}
body.case::before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.35;z-index:0;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 .2 0 0 0 0 .15 0 0 0 0 .15 0 0 0 .12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")}
.sheet{position:relative;z-index:1;max-width:1240px;padding:96px 20px 0}
.meta{display:grid;grid-template-columns:1.05fr 1fr 1fr auto;gap:20px;font-family:var(--geist);font-size:13px;font-weight:600;color:#2a1a22;padding:14px 4px 18px;align-items:start}
.meta b{font-weight:600;color:#2a1a22;font-size:13px;display:block}
.meta .mono,.meta span{font-family:var(--mono);font-weight:400;font-size:11px;color:#6d6068;letter-spacing:.02em;text-transform:none}
@media(max-width:760px){.meta{grid-template-columns:1fr 1fr}}
.paper{background:#f5f2ed;border-radius:16px 16px 0 0;padding:0;box-shadow:none;display:grid;grid-template-columns:1fr 1fr;grid-template-areas:"h toc" "s toc" "c toc" "p toc";align-items:start;overflow:hidden}
.paper>h1{grid-area:h;padding:34px 44px 0;font-family:var(--geist);font-weight:500;font-size:32px;line-height:36.8px;letter-spacing:-.8px;color:var(--a)}
.paper>.sub{grid-area:s;padding:10px 44px 0;margin:0;font-family:var(--geist);font-weight:500;font-size:32px;line-height:36.8px;letter-spacing:-.8px;color:#8a7a82}
.paper>.cover{grid-area:c;margin:26px auto 22px;width:178px;height:178px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,var(--a-soft) 55%,var(--a));box-shadow:0 18px 40px color-mix(in srgb,var(--a) 28%,transparent);overflow:hidden;align-items:center}
.paper>.cover img{width:100%;height:100%;max-height:none;object-fit:cover;border-radius:50%}
.paper>.spec{grid-area:p;padding:0 44px 40px;margin:0;border:0;font-family:var(--mono);font-size:11.5px;line-height:19.55px;font-weight:500;letter-spacing:0;color:#2a1a22;text-transform:uppercase}
.paper>.spec span{min-width:0;margin-right:4px;color:#2a1a22}
.paper>.spec span::after{content:":"}
.paper>.toc{grid-area:toc;margin:0;padding:36px 44px 40px;border-left:1px dotted #b9aeb3;align-self:stretch;font-family:var(--mono);font-size:12px}
.paper>.toc::before{content:"01 CONTEXT";display:block;color:var(--a);font-size:12px;letter-spacing:.48px;margin-bottom:8px}
.toc a{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #e3dcd9;color:var(--a);font-size:12px;letter-spacing:0}
.toc a span:first-child{color:var(--a);margin:0}
.toc a span:first-child span{margin-right:8px;opacity:.75}
.toc a>span:last-child{color:var(--a);opacity:.8}
.paper>.note{grid-column:1/-1;padding:0 44px}
.paper>.sec{grid-column:1/-1;padding:44px;margin:0;border-top:1px dotted #cfc5c9;display:grid;grid-template-columns:1fr 1fr;column-gap:88px;position:relative}
.paper>.sec::before{content:"";position:absolute;left:50%;top:44px;bottom:44px;border-left:1px dotted #cfc5c9}
.paper>.sec>*{grid-column:1}
.paper>.sec>.k{grid-column:1/-1;font-family:var(--mono);font-size:12px;letter-spacing:.48px;color:var(--a);margin-bottom:22px}
.paper>.sec>h2{font-family:var(--geist);font-weight:600;font-size:27px;line-height:32.4px;letter-spacing:-.54px;color:#2a1a22;margin-bottom:14px}
.paper>.sec p{font-family:var(--geist);font-size:15.5px;line-height:24.8px;color:#2a1a22;max-width:none}
.paper>.sec>:nth-child(n+4){grid-column:2}
.paper>.sec>.nums,.paper>.sec>.cards,.paper>.sec>.fig,.paper>.sec>.quote,.paper>.sec>.chips,.paper>.sec>.note{grid-column:1/-1}
.sec .hl{background:none;color:var(--a);padding:0;font-weight:500}
.nums>div,.cards>div{background:#eee9e2;border-radius:10px}
.nums strong{font-family:var(--geist);font-size:36px;line-height:36px;font-weight:600;letter-spacing:-1.08px;color:var(--a)}
.nums span{font-size:13.5px;line-height:19.6px}
.quote{font-family:var(--geist);font-weight:500;font-size:24px;line-height:1.3;letter-spacing:-.5px;color:var(--a);background:none;border-left:2px solid var(--a)}
.quote small{font-family:var(--mono);color:#6d6068}
.chips b{font-family:var(--mono)}
.note{font-family:var(--mono)}
/* dark story band + footer */
.story{background:#1a1016;color:#fff;padding:40px 44px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;max-width:1200px;margin:0 auto}
.story .mono{display:block;color:#a99ba3;font-size:11px;letter-spacing:.1em;margin-bottom:10px}
.story h2{font-family:var(--geist);font-weight:500;font-size:30px;letter-spacing:-.6px}
.story a{font-family:var(--mono);font-size:12px;letter-spacing:.1em;color:var(--lime);text-decoration:none;text-transform:uppercase}
.other{background:#f5f2ed;margin:0 auto;max-width:1240px;padding:44px;border-radius:0 0 16px 16px}
.other h2{font-family:var(--geist);font-weight:500;font-size:28px;color:#1b1411;letter-spacing:-.5px}
.other a b{font-family:var(--geist);font-size:16px;font-weight:600}
.cfoot{display:none}
.foot2{position:relative;z-index:1;background:linear-gradient(rgba(94,155,211,.87),rgba(94,155,211,.9)),#5e9bd3 url(../assets/hero/sky.jpg) center/cover no-repeat;color:#fff;padding:30px 20px;margin-top:0}
.foot2 .in{max-width:1200px;margin:0 auto}
.foot2 .big{font-family:var(--geist);font-weight:500;font-size:56px;letter-spacing:-1.5px;line-height:1.05;color:#f2c9dc}
.foot2 .cols{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-top:34px;padding-top:26px;border-top:1px solid #4a3640;font-family:var(--mono);font-size:10.5px;line-height:1.8;letter-spacing:.08em;text-transform:uppercase;color:#d9c7cf}
.foot2 .cols b{display:block;color:#8d7a84;font-weight:400;margin-bottom:6px}
.foot2 .cols a{color:#f6b5d3}
.foot2-simple{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:54px}.foot2-simple a{color:#fff;text-decoration:none}.foot2-name{font:500 22px/1 var(--geist);letter-spacing:-.04em}.foot2-simple>div{display:flex;gap:22px;font:400 11px/1 var(--mono);letter-spacing:.08em;text-transform:uppercase}.foot2-simple>div a{color:rgba(255,255,255,.86)}.foot2-simple>div a:hover{color:#fff}
@media(max-width:760px){.paper{grid-template-columns:1fr;grid-template-areas:"h" "s" "c" "p" "toc"}.paper>.toc{border-left:0;border-top:1px dotted #b9aeb3}.paper>.sec{grid-template-columns:1fr}.paper>.sec::before{display:none}.paper>.sec>:nth-child(n+4){grid-column:1}.foot2 .cols{grid-template-columns:1fr}.foot2 .big{font-size:38px}}

/* ===== photographic hero objects ===== */
.hero{min-height:max(860px,100svh)}
.hero.has-sky{background:#2f7fd0 url(../assets/hero/sky.jpg) center/cover no-repeat}
.hero.has-sky::after{content:"";position:absolute;left:0;right:0;bottom:0;height:90px;background:linear-gradient(transparent,#6fa8d8);z-index:1;pointer-events:none}
.hero-inner{padding-bottom:0}
.crt-wrap.photo{position:relative;z-index:3;width:min(430px,78vw);margin:10px auto 0}
.crt-wrap.photo .crt-img{position:relative;z-index:1;filter:drop-shadow(0 24px 30px rgba(8,30,60,.4))}
.crt-wrap.photo .scr{position:absolute;z-index:2;left:21.5%;top:10%;width:59.5%;height:42%;border-radius:7% / 8%;overflow:hidden;background:#0c1620;mix-blend-mode:screen}
.crt-wrap.photo .scr>img{width:100%;height:100%;object-fit:cover;object-position:50% 22%;filter:grayscale(1) contrast(1.08) brightness(.95);opacity:.95}
.crt-wrap.photo .scr .det{inset:16% 24% 22% 24%}
.crt-wrap.photo .scr .scan{animation:scan 3.2s ease-in-out infinite}
.crt-bar2{position:absolute;z-index:3;left:21.5%;bottom:47%;font-family:var(--mono);font-size:10.5px;font-weight:600;letter-spacing:.1em;color:var(--lime);text-shadow:0 0 6px #000}
.float.f-watch{left:max(3%,calc(50% - 640px));top:300px;width:clamp(110px,13vw,170px);--r:-14deg}
.float.f-cine{right:max(3%,calc(50% - 650px));top:300px;width:clamp(140px,17vw,230px);--r:6deg;animation-delay:-3s}
.float img{box-shadow:none;border-radius:0;filter:drop-shadow(0 16px 22px rgba(8,30,60,.35));width:100%;height:auto}
.float .det{inset:-12px -8px}
.cap.l{left:max(var(--pad),calc(50% - 600px));top:560px}
.cap.r{right:max(var(--pad),calc(50% - 600px));top:560px}
.cap .pct{float:right}
.drawers{left:max(var(--pad),calc(50% - 640px));bottom:30px;width:300px}
.dstack{position:relative}
.dstack img{width:100%;height:auto;filter:drop-shadow(0 14px 18px rgba(8,30,60,.35));pointer-events:none}
.dstack .drawer{position:absolute;left:44%;width:36%;height:19%;background:none;border:0;border-radius:3px;display:flex;align-items:center;justify-content:center;transition:transform .25s cubic-bezier(.3,1.4,.5,1),box-shadow .2s}
.dstack .d1{top:9%}.dstack .d2{top:29.5%}.dstack .d3{top:50%}.dstack .d4{top:70.5%}
.dstack .drawer span{background:#f4e7cc;color:#7a4a1e;font-family:var(--mono);font-size:9.5px;font-weight:600;letter-spacing:.1em;padding:2px 8px;border-radius:2px;opacity:.95}
.dstack .drawer:hover{transform:translateX(8px)}
.dstack .drawer[aria-pressed=true]{transform:translateX(20px);box-shadow:0 0 0 2px var(--lime)}
.tip{background:#f4e7cc;border-radius:6px}
.tip .mono{font-family:var(--mono);font-size:9.5px;font-weight:500;letter-spacing:.76px;color:#7a4a1e}
.tip p{font-family:"Inter",sans-serif;font-size:12.5px;font-weight:600;color:#2a1a0c}
@media(max-width:1100px){.float.f-watch{top:640px;left:3%}.float.f-cine{top:620px;right:3%}.drawers{position:relative;left:auto;bottom:auto;margin:30px auto 40px;width:min(300px,80vw)}.hero.has-sky::after{display:none}}
@media(max-width:760px){.float.f-watch,.float.f-cine{display:none}.hero-inner{padding-top:150px}}
.crt-wrap.photo .scr{z-index:4!important}
.crt-wrap.photo .crt-bar2{z-index:5}
.cap.r{top:660px;max-width:230px}
.cap.l{top:600px}

/* hero legibility on bright clouds */
.hero h1,.hero h1 em{text-shadow:0 2px 22px rgba(10,60,130,.55),0 0 2px rgba(10,60,130,.35)}
/* book covers: polaroid collage */
.book{overflow:hidden;background-image:radial-gradient(circle at 20% 15%,rgba(255,255,255,.14),transparent 55%),repeating-linear-gradient(0deg,rgba(255,255,255,.035) 0 1px,transparent 1px 3px)}
.book .pic{position:absolute;right:16px;bottom:44px;width:62%;background:#fff;padding:6px 6px 22px;box-shadow:0 10px 22px rgba(0,0,0,.35);transform:rotate(4deg);display:block}
.book .pic img{width:100%;aspect-ratio:1;object-fit:cover;display:block}
.book .pic.gray img{filter:grayscale(1) contrast(1.05);object-position:50% 25%}
.book .pic i{position:absolute;left:8px;right:8px;bottom:3px;font-family:"Caveat",cursive;font-style:normal;font-size:15px;color:#333;text-align:center;line-height:1}
.book:nth-child(even) .pic{transform:rotate(-4deg)}
.book .yr{position:relative;z-index:2}
.book{justify-content:flex-start;gap:14px}
.book h3{font-size:27px}
.book .pic{width:58%;bottom:46px;right:14px}
.book .yr{position:absolute;left:30px;bottom:18px}

/* gadget-letter "Build." */
.hero h1 .stamp.build{display:inline-flex;align-items:flex-end;gap:2px;vertical-align:-.08em;margin-left:.08em;position:relative}
.hero h1 .stamp.build::after{left:2%;right:6%;bottom:-.05em;height:.07em;transform:rotate(-1deg)}
.hero h1 .stamp.build img{height:.9em;width:auto;filter:drop-shadow(0 6px 8px rgba(8,30,60,.35))}
.hero h1 .stamp.build img:nth-child(1){transform:rotate(-3deg)}
.hero h1 .stamp.build img:nth-child(2){transform:rotate(2deg) translateY(.02em)}
.hero h1 .stamp.build img:nth-child(3){height:.86em;transform:rotate(-2deg)}
.hero h1 .stamp.build img:nth-child(4){height:.88em;transform:rotate(3deg)}
.hero h1 .stamp.build img:nth-child(5){transform:rotate(-2deg)}
.hero h1 .stamp.build b{font-weight:400;margin-left:.04em;align-self:flex-end;line-height:.8}
.book .pic.obj{background:#fbf8ef}
.book .pic.obj img{object-fit:contain;background:#fbf8ef;padding:4px}
.hero h1 .stamp.build img{height:1.02em}
.hero h1 .stamp.build img:nth-child(3){height:.98em}
.hero h1 .stamp.build img:nth-child(4){height:1em}
.book .pic:not(.obj) img[src*="kpsanghvi"]{object-position:50% 55%;aspect-ratio:1}

/* ===== match reference: hero is one screen, paler sky, CRT on the bottom edge ===== */
.hero{min-height:0;height:clamp(780px,56.8vw,900px)}
.hero.has-sky{background:linear-gradient(rgba(142,186,226,.50),rgba(142,186,226,.50)),#5e9bd3 url(../assets/hero/sky.jpg) center 35%/cover no-repeat}
.hero.has-sky::after{display:none}
.hero-inner{padding-top:140px}
.crt-wrap.photo{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:clamp(250px,22vw,320px);margin:0;z-index:3}
.hero h1,.hero h1 em{text-shadow:none}
.hero h1 em{margin-left:1.1em}
.hero-sub{margin-top:14px}
.hero-sub .hl{color:#091e34}
.float.f-watch{top:215px;left:max(3%,calc(50% - 650px))}
.float.f-cine{top:200px;right:max(3%,calc(50% - 650px))}
.cap.l{top:430px}
.cap.r{top:470px}
.drawers{bottom:14px}
@media(max-width:1100px){.hero{height:auto;min-height:0;padding-bottom:0}.crt-wrap.photo{position:relative;left:auto;transform:none;margin:24px auto 0}.hero-inner{padding-top:130px}}

/* work section: full-width cards, 20px margins, 30px gutters */
.work{background:linear-gradient(#6fa8d8,#c9dceb);padding:34px 20px 80px}
.work-head{max-width:none;margin:0 0 20px}
.grid{max-width:none;margin:0}
.card{background:#f5f8fa}
.card .shot{border-radius:12px}

/* making-of: bigger, flatter shelf, barcode label, fluffy clouds */
.making{background:linear-gradient(#6fa8d8,#5e9bd3 55%,#6fa8d8)}
.shelf{height:560px}
.book{width:310px;height:440px;margin-left:-155px;top:36px}
.book h3{font-size:32px}
.book .pic{width:60%;bottom:50px}
.shelf-ctrl{left:auto;right:28px;bottom:70px;justify-content:flex-end}
.shelf-ctrl span{display:none}
.shelf-ctrl button{width:38px;height:38px;font-size:15px;opacity:.9}
.barcode{position:absolute;left:44px;bottom:66px;z-index:6;text-align:left;font-family:var(--mono);font-size:9.5px;letter-spacing:.14em;color:#0b1a2b}
.barcode i{display:block;width:150px;height:38px;margin-bottom:10px;background:repeating-linear-gradient(90deg,#0b1a2b 0 2px,transparent 2px 4px,#0b1a2b 4px 5px,transparent 5px 8px,#0b1a2b 8px 11px,transparent 11px 12px)}
.barcode span{display:block;margin-top:6px;opacity:.75}
.cloud-strip{height:150px;margin-top:-110px;background:
 radial-gradient(70px 60px at 6% 100%,#fff 60%,transparent 62%),radial-gradient(110px 90px at 16% 100%,#fff 60%,transparent 62%),radial-gradient(90px 70px at 27% 100%,#fff 60%,transparent 62%),
 radial-gradient(130px 100px at 40% 100%,#fff 60%,transparent 62%),radial-gradient(100px 80px at 53% 100%,#fff 60%,transparent 62%),radial-gradient(120px 90px at 66% 100%,#fff 60%,transparent 62%),
 radial-gradient(90px 70px at 78% 100%,#fff 60%,transparent 62%),radial-gradient(140px 110px at 92% 100%,#fff 60%,transparent 62%),radial-gradient(80px 60px at 100% 100%,#fff 60%,transparent 62%);filter:blur(3px)}
@media(max-width:760px){.barcode{display:none}.book{width:260px;height:380px;margin-left:-130px}.shelf-ctrl{right:50%;transform:translateX(50%)}}
.drawers{width:250px}
.cap.l{top:462px}
.cap.r{top:500px;width:210px}
.cap.r .mono{display:block}
.cap.r .pct{float:none;margin-left:6px}
.work{background:linear-gradient(#6fa8d8,#9cc1e3)}
.making{background:linear-gradient(rgba(112,171,219,.78),rgba(94,155,211,.82)),#5e9bd3 url(../assets/hero/sky.jpg) center/cover no-repeat}

/* ===== v11: photo hero (laptop in the clouds) ===== */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hero.has-sky{height:auto;min-height:0;aspect-ratio:16/9;max-height:100svh;min-height:640px;background:#4098c2 url(../assets/hero-photo.jpg?v=2) center bottom/cover no-repeat}
.hero.has-sky::after{display:none}
.hero-inner{max-width:1180px;margin:0 auto;padding:clamp(96px,10vw,128px) 20px 0;text-align:center;position:relative;z-index:2}
.hero .status{display:inline-flex;margin:0 auto}
.hero h1{margin-top:12px;font-size:clamp(40px,5.4vw,76px);line-height:1.02;letter-spacing:-.03em;display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:0 .22em;color:#0b1830}
.hero h1 em{display:inline;font-size:1.12em;line-height:1;margin:0;letter-spacing:-.02em;color:#0b1830}
.hero h1 .l1{display:inline-flex;align-items:flex-end}
.hero-sub{margin:10px auto 0;max-width:520px;font-size:15px;line-height:1.4;color:#0b1830}
@media(max-width:900px){.hero.has-sky{aspect-ratio:auto;min-height:0;height:clamp(560px,150vw,760px);background-size:auto 62%;background-position:center bottom}.hero-inner{padding-top:104px}}
.hero-sub{text-align:center;text-wrap:balance}.hero-sub .hl{white-space:nowrap}
@media(max-width:900px){.hero.has-sky{height:clamp(600px,165vw,800px);background:linear-gradient(#4098c2 0,#4098c2 20%,rgba(64,152,194,0) 34%),#4098c2 url(../assets/hero-photo.jpg?v=2) center bottom/auto 76% no-repeat}}
/* ===== v13: project stickers around the laptop ===== */
.stickers{position:absolute;inset:0;z-index:3;pointer-events:none}
.stk{position:absolute;display:block;width:clamp(110px,10.5vw,160px);background:#fff;padding:7px 7px 7px;border-radius:6px;box-shadow:0 16px 32px rgba(10,50,100,.28);transform:rotate(var(--r));pointer-events:auto;text-decoration:none;transition:transform .25s ease,box-shadow .25s ease;animation:bob 6s ease-in-out infinite}
.stk img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:3px}
.stk .lab{position:absolute;left:-6px;bottom:18px;background:#baff2d;color:#091e34;font-family:var(--mono);font-size:10.5px;font-weight:600;letter-spacing:.04em;padding:3px 7px;border:1.5px solid #091e34;white-space:nowrap}
.stk .lab i{font-style:normal}
.stk:hover,.stk:focus-visible{transform:rotate(0) scale(1.06);box-shadow:0 22px 40px rgba(10,50,100,.38);z-index:5}
.s1{left:7%;top:40%}.s2{left:20%;top:64%;animation-delay:-2s}.s3{right:8%;top:42%;animation-delay:-4s}.s4{right:20%;top:66%;animation-delay:-1s}
@keyframes bob{0%,100%{translate:0 0}50%{translate:0 -8px}}
@media(prefers-reduced-motion:reduce){.stk{animation:none}}
@media(max-width:900px){.stickers{display:none}}

/* ===== v14: hero text never overlaps the portrait =====
   Root cause: the hero height followed the photo's 16:9 box, but the text block has a fixed
   pixel height, so below ~1500px wide the intro copy ran into the head (head top = 40% of the photo).
   Fix: hero height = photo height (56.25vw) trimmed to the head line + the text block, photo pinned to the bottom. */
@media(min-width:901px){
  .hero.has-sky{--seam:max(0px,calc(380px - 22.5vw));aspect-ratio:auto;max-height:none;min-height:0;height:calc(33.75vw + 380px);
    background:linear-gradient(#4098c2 0,#4098c2 var(--seam),rgba(64,152,194,0) calc(var(--seam) + 150px)),#4098c2 url(../assets/hero-photo.jpg?v=2) center bottom/100% auto no-repeat}
  .stickers{inset:auto 0 0 0;height:56.25vw}
}
/* v14: barcode label and arrows sit in the free band under the books, not on top of them */
.shelf{height:640px;cursor:grab;touch-action:pan-y}.books{transition:transform .24s ease}.shelf.is-dragging{cursor:grabbing;user-select:none}.shelf.is-dragging .book{transition:none}
.barcode{bottom:46px}
.shelf-ctrl{bottom:60px;right:44px}
@media(max-width:760px){.shelf{height:520px}.shelf-ctrl{bottom:14px}}
.hero h1{row-gap:.08em}
@media(max-width:900px){.hero.has-sky{background:linear-gradient(#4098c2 0,#4098c2 24%,rgba(64,152,194,0) 44%),#4098c2 url(../assets/hero-photo.jpg?v=2) center bottom/auto 76% no-repeat}}
/* v17: on small screens the card title wraps to 3 lines; don't clip it (no hover swap on touch) */
@media(max-width:900px){.card .t{height:auto;overflow:visible;padding-top:10px}.card .t span{height:auto}.card .t span.go{display:none}}

/* ===== v18: reference-style hero details (detection brackets + captions) ===== */
.stk::after{content:"";position:absolute;inset:-9px;pointer-events:none;
  background:
   linear-gradient(#baff2d,#baff2d) 0 0/16px 2px no-repeat,linear-gradient(#baff2d,#baff2d) 0 0/2px 16px no-repeat,
   linear-gradient(#baff2d,#baff2d) 100% 0/16px 2px no-repeat,linear-gradient(#baff2d,#baff2d) 100% 0/2px 16px no-repeat,
   linear-gradient(#baff2d,#baff2d) 0 100%/16px 2px no-repeat,linear-gradient(#baff2d,#baff2d) 0 100%/2px 16px no-repeat,
   linear-gradient(#baff2d,#baff2d) 100% 100%/16px 2px no-repeat,linear-gradient(#baff2d,#baff2d) 100% 100%/2px 16px no-repeat}
.hcap{position:absolute;z-index:3;font-family:var(--mono);font-size:11px;letter-spacing:.08em;line-height:1.5;color:#0b1830;font-weight:500;pointer-events:none}
.hcap.l{left:4%;top:84%;max-width:190px}
.hcap.r{right:4%;top:88%;max-width:230px;text-align:right}
.hcap .bar{display:inline-block;vertical-align:middle;width:70px;height:5px;background:rgba(255,255,255,.4);margin-left:8px;border-radius:3px;overflow:hidden}
.hcap .bar i{display:block;height:100%;width:85%;background:#baff2d}
@media(max-width:900px){.hcap{display:none}.hero h1{row-gap:.16em}}
.hero .hero-sub{margin-top:24px}
@media(max-width:600px){.hero .cross{display:none}}

/* v23 — card titles never clip: title and hover CTA share one grid cell, so the box grows to the taller of the two */
@media(min-width:901px){
  .card .t{display:grid;height:auto;min-height:58px;overflow:hidden;margin:4px 12px 0;padding:10px 0 4px;box-sizing:border-box}
  .card .t span{grid-area:1/1;height:auto;align-self:start;transition:transform .3s,opacity .3s}
  .card .t span.go{transform:translateY(110%);opacity:0;padding-top:0}
  .card:hover .t span{transform:translateY(-110%);opacity:0}
  .card:hover .t span.go{transform:none;opacity:1}
}

/* v27 — small screens: more room between the intro text and her head (same portrait size, taller hero) */
@media(max-width:900px){.hero.has-sky{--ph:min(114vw,610px);height:clamp(630px,168vw,840px);
  background:linear-gradient(#4098c2 0,#4098c2 calc(100% - var(--ph)),rgba(64,152,194,0) calc(100% - var(--ph) + 120px)) center bottom/100% 100% no-repeat,#4098c2 url(../assets/hero-photo.jpg?v=2) center bottom/auto var(--ph) no-repeat}}

/* v30 — tablet: corner labels sit at 100px, so start the intro below them */
@media(min-width:761px) and (max-width:900px){.hero-inner{padding-top:146px}}

/* v31 — below 1180px the corner labels would run into the "currently:" pill, so drop them */
@media(max-width:1180px){.corner{display:none}}

/* v33 — "I [Build] things people can try.": breathing room around the letter-stamp */
.hero h1 .stamp.build{margin:0 .2em 0 .16em}

/* v34 — first-screen copy and hierarchy refinement */
/* name: larger and bolder, same typeface, still top-left */
.nav-name{font-size:19px;line-height:1.1;font-weight:700;letter-spacing:-.2px}
@media(max-width:620px){.nav-name{font-size:18px}}
/* headline: scales with the screen so the longer line never overflows */
.hero h1{font-size:clamp(38px,6.6vw,84px);line-height:1.08}
.hero h1 em{font-size:clamp(42px,7.4vw,94px);line-height:.95}
/* subheading: smaller, readable, sits under the headline */
.hero .hero-sub{max-width:760px;font-size:17px;line-height:1.5;font-weight:500;margin-top:20px}
@media(max-width:760px){.hero .hero-sub{font-size:15px;max-width:340px}}
/* room for the two-line headline above her head (desktop and wide tablet) */
@media(min-width:901px){
  .hero.has-sky{--tz:446px;--seam:max(0px,calc(var(--tz) - 22.5vw));height:calc(33.75vw + var(--tz))}
  .hero-inner{padding-top:clamp(92px,7.5vw,104px)}
}
/* phones and small tablets: a little more height so the text clears her head */
@media(max-width:900px){.hero.has-sky{height:clamp(660px,176vw,820px);max-height:none}}

/* Portfolio update: legible hero copy, sky-backed experience shelf and short captions. */
.hero h1{font-size:clamp(48px,6vw,76px);line-height:1.02;letter-spacing:-.035em}
.hero h1 .l1{display:block}
.hero h1 em{font-size:clamp(46px,5.5vw,70px);line-height:1.02;letter-spacing:-.03em;margin-left:0}
.hero .hero-inner{max-width:850px}
.hero .hero-sub{max-width:500px;font-size:18px;line-height:1.45;font-weight:600;color:#123b5c;text-shadow:0 1px 10px rgba(255,255,255,.65)}
.making{background:linear-gradient(rgba(135,190,229,.22),rgba(135,190,229,.22)),#6fa8d8 url(../assets/hero/sky.jpg) center 44%/cover no-repeat}
.making .mk-heading,.making .mk-copy,.making .mk-kicker,.making .book-caption{color:#123b5c;text-shadow:0 1px 8px rgba(255,255,255,.55)}

/* Direct title hierarchy: make the role the first thing visitors read. */
.hero h1{display:block;margin-top:18px;font-family:var(--sans);font-size:clamp(42px,5vw,64px);font-weight:600;line-height:1.06;letter-spacing:-.045em;color:#0b2540;text-shadow:none}
.hero .hero-inner{max-width:1040px}
.hero .hero-sub{max-width:790px;font-size:16px;line-height:1.5;font-weight:500;color:#123b5c;text-shadow:0 1px 8px rgba(255,255,255,.6)}
.hero .hero-sub strong{font-weight:600}
@media(max-width:760px){.hero h1{font-size:clamp(38px,9vw,52px);line-height:1.08}.hero .hero-sub{max-width:360px;font-size:15px}}

/* Sky portfolio hierarchy: crisp white titles and a readable, complete proof line. */
.hero h1{font-family:var(--serif);font-weight:400;font-size:clamp(44px,7vw,78px);line-height:1.05;letter-spacing:-.035em;color:#fff;text-shadow:0 2px 18px rgba(9,30,52,.22)}
.hero .hero-sub{max-width:660px;font-size:17px;line-height:1.5;font-weight:500;color:#fff;text-shadow:0 1px 12px rgba(9,30,52,.3)}
.work{background:linear-gradient(rgba(87,157,215,.36),rgba(135,185,224,.48)),#6fa8d8 url(../assets/hero/sky.jpg) center 42%/cover no-repeat}
.making-intro .mk-heading{color:#fff;text-shadow:0 2px 16px rgba(9,30,52,.24)}
.making-intro .mk-copy{color:#fff;text-shadow:0 1px 12px rgba(9,30,52,.35)}
@media(max-width:760px){.hero h1{font-size:clamp(40px,7.2vw,58px);line-height:1.06}.hero .hero-sub{font-size:16px;max-width:390px}}
.hero h1 .l1{display:block}
.hero h1 em{display:block;margin:0;color:#fff;font-size:clamp(42px,6.3vw,70px);line-height:1.02;font-weight:400;font-style:italic;letter-spacing:-.03em}
/* Keep the sky sections on one shared image, crop, and color treatment. */
.work,.making,.foot{background:linear-gradient(rgba(78,155,218,.12),rgba(78,155,218,.12)),#5e9bd3 url(../assets/hero/sky.jpg) center center/cover fixed no-repeat}
