/* dheerajsai.com portfolio. Colours taken from img/stage.webp: stage black, soft white, blazer navy, stage blue. One typeface, two weights. */
:root { --cream:#eef0f4; --paper:#ffffff; --ink:#0a0d15; --wine:#243055; --fig:#8fb5ea; --skin:#0a0d15; --blush:#cfddf3; --muted:#545d73; --line:#d4d9e4; --ease:cubic-bezier(0.22,1,0.36,1); --display:"Bricolage Grotesque",system-ui,sans-serif; --g:20px; }
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; background:var(--cream); overflow-x:clip; }
body { font:400 1rem/1.6 var(--display); color:var(--ink); -webkit-font-smoothing:antialiased; overflow-x:clip; }
a { color:inherit; } ul,ol { list-style:none; } button { font:inherit; color:inherit; cursor:pointer; } img { max-width:100%; }
h1,h2,h3 { font-family:var(--display); font-weight:800; text-wrap:balance; letter-spacing:-0.035em; }
p { text-wrap:pretty; }
::selection { background:var(--fig); color:var(--ink); }
:focus-visible { outline:3px solid var(--wine); outline-offset:3px; } .work :focus-visible,.hi :focus-visible { outline-color:var(--fig); }
section[id],article[id] { scroll-margin-top:88px; }
.wrap { max-width:1120px; margin:0 auto; padding:0 var(--g); }
.skip { position:fixed; top:-80px; left:16px; z-index:90; background:var(--ink); color:var(--cream); padding:12px 16px; border-radius:8px; } .skip:focus { top:12px; }
.eyebrow { font-weight:800; font-size:0.875rem; text-transform:uppercase; letter-spacing:0.1em; margin-bottom:16px; }
h2 { font-size:clamp(2.75rem,8vw,6rem); line-height:0.95; max-width:12ch; }
h3 { font-size:1.75rem; line-height:1.1; }
.meta { font-size:0.875rem; font-weight:800; opacity:0.85; }
.row { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:8px 22px; border-radius:999px; border:2px solid currentColor; border-bottom-width:4px; background:transparent; font-weight:800; font-size:0.9375rem; text-decoration:none; transition:transform 180ms var(--ease); }
.btn:active { transform:translateY(2px) scale(0.98); }
.btn.wine { background:var(--wine); border-color:var(--ink); color:var(--cream); } .btn.fig { background:var(--fig); border-color:var(--ink); color:var(--ink); }

.top { position:fixed; inset:0 0 auto; z-index:50; background:#0a0d15; color:#eef0f4; transition:transform 500ms var(--ease); } .top.away:not(:focus-within) { transform:translateY(-100%); }
.top nav { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:60px; padding:0 var(--g); } .top :focus-visible,.hero :focus-visible { outline-color:var(--fig); }
.name { display:inline-flex; align-items:center; min-height:44px; min-width:44px; font-weight:800; text-decoration:none; white-space:nowrap; } .name .full { display:none; }
.links { display:flex; } .links a { display:inline-flex; align-items:center; min-height:44px; padding:0 10px; font-size:0.875rem; text-decoration:none; white-space:nowrap; }
.mail { display:none; min-height:44px; padding:0 18px; border:2px solid #eef0f4; border-radius:999px; background:transparent; color:#eef0f4; font-weight:800; font-size:0.875rem; }

.hero { position:relative; z-index:2; color:#eef0f4; }
.stage { position:relative; display:flex; flex-direction:column; justify-content:flex-end; height:100vh; height:100svh; min-height:720px; overflow:hidden; background:#0a0d15; }
.shot { position:absolute; top:56px; left:50%; width:100%; max-width:520px; aspect-ratio:2/3; translate:-50% 0; }
.shot img { display:block; width:100%; height:100%; object-fit:cover; -webkit-mask-image:linear-gradient(90deg,transparent,#000 18%,#000 88%,transparent),linear-gradient(transparent,#000 9%); mask-image:linear-gradient(90deg,transparent,#000 18%,#000 88%,transparent),linear-gradient(transparent,#000 9%); -webkit-mask-composite:source-in; mask-composite:intersect; }
.shade { position:absolute; inset:0; pointer-events:none; background:linear-gradient(rgba(10,13,21,0) 38%,rgba(10,13,21,0.72) 62%,#0a0d15 90%); }
.shot.over { z-index:2; pointer-events:none; } .over .tag { pointer-events:auto; }
.tag { position:absolute; z-index:2; right:5%; top:50%; display:flex; flex-direction:column; padding:10px 14px; border-radius:14px; background:#fff; color:#0a0d15; text-decoration:none; line-height:1.35; box-shadow:0 12px 32px rgba(0,0,0,0.45); }
.tag::before { content:""; position:absolute; right:100%; top:50%; width:28px; height:2px; background:#fff; }
.tag b { font-weight:800; font-size:1rem; } .tag span,.tag i { font-style:normal; font-size:0.75rem; } .tag i { color:#243055; font-weight:800; }
@media (max-width:767px) { .tag { right:8px; top:39%; min-height:44px; justify-content:center; padding:7px 14px; border-radius:999px; } .tag span,.tag i { display:none; } .tag b { font-size:0.875rem; } .tag::before { width:14px; } }
.copy { position:relative; z-index:3; padding:0 var(--g) 20px; }
.hero h1 { font-size:min(11.4vw,3.5rem); line-height:0.95; letter-spacing:-0.04em; } .hero h1 span { display:block; white-space:nowrap; }
.foot p { max-width:48ch; margin:12px 0 16px; font-size:1rem; }
.foot .row { gap:4px 20px; } .btn.go { background:var(--fig); border-color:var(--fig); color:#0a0d15; } .txt { display:inline-flex; align-items:center; min-height:44px; font-weight:800; font-size:0.9375rem; text-underline-offset:5px; }
.specs { position:relative; z-index:3; display:grid; grid-template-columns:1fr 1fr; gap:14px 16px; margin:0 var(--g); padding:16px 0 24px; border-top:1px solid #2a3145; }
.specs div { display:flex; flex-direction:column-reverse; justify-content:flex-end; } .specs dd { font-weight:800; font-size:1.75rem; line-height:1.1; letter-spacing:-0.03em; } .specs dt { font-size:0.8125rem; color:#a6aec0; line-height:1.35; }

/* One pinned screen: scroll drives the zoom, the tag grows into the project card, and the card opens into the work section */
.hero.pinned { height:360vh; } .hero.pinned .stage { position:sticky; top:0; min-height:0; }
.hero.pinned .shot,.hero.pinned .copy,.hero.pinned .specs { will-change:transform; }
.hero.pinned+.work { position:relative; z-index:1; } .hero.pinned+.work,.hero.pinned+.work .case { scroll-margin-top:0; }
.hero.pinned+.work#work { scroll-margin-top:0; }
.hero.done { pointer-events:none; } .hero.done .stage { visibility:hidden; }
.cut { position:absolute; inset:0; z-index:6; overflow:hidden; visibility:hidden; pointer-events:none; text-align:left; }
.cut>.work { position:absolute; left:0; top:0; width:100%; color:var(--cream); }
.cut .verdicts li { transition:opacity 250ms var(--ease),transform 350ms var(--ease); } .cut .verdicts li:not(.on) { opacity:0.18; transform:scale(0.9); }

.story .pin { max-width:1040px; margin:0 auto; padding:72px var(--g) 112px; text-align:center; }
.lines p { font:800 clamp(1.75rem,min(5vw,6.4vh),4rem)/1.24 var(--display); letter-spacing:-0.03em; text-wrap:balance; margin-top:0.5em; }
.lines em { font-style:normal; display:inline-block; padding:0 0.28em; border-radius:999px; --hl:var(--fig); background:linear-gradient(var(--hl),var(--hl)) left center/100% 100% no-repeat; }
.lines .k2 { --hl:var(--blush); } .lines .k3 { --hl:var(--wine); color:var(--cream); }
.story.live { height:250vh; } .story.live .pin { position:sticky; top:0; min-height:100vh; min-height:100svh; display:flex; flex-direction:column; justify-content:center; padding-top:48px; padding-bottom:48px; }
.story.live .w { display:inline-block; opacity:0.14; transform:translateY(0.2em); transition:opacity 350ms ease,transform 500ms var(--ease); } .story.live .w.on { opacity:1; transform:none; }
.story.live em { background-size:0% 100%; color:var(--ink); transition:background-size 550ms var(--ease),color 300ms ease 100ms; } .story.live em.on { background-size:100% 100%; } .story.live .k3.on { color:var(--cream); }

.progress { position:fixed; left:0; top:0; right:0; height:4px; z-index:60; background:var(--wine); transform-origin:left; transform:scaleX(0); pointer-events:none; box-shadow:0 1px 0 var(--fig); }
.hw { display:inline-block; overflow:hidden; vertical-align:top; padding:0 0.06em 0.12em; margin:0 -0.06em -0.12em; } .hw>span { display:inline-block; transition:transform 700ms var(--ease) var(--d,0ms); } .wait .hw>span { transform:translateY(115%); }
.seq>*,.seq.flow li { transition:opacity 500ms var(--ease) var(--d,0ms),transform 600ms var(--ease) var(--d,0ms); }
.nums.seq.wait>div { opacity:0; transform:translateY(28px) scale(0.92); }
.chat.seq.wait>p { opacity:0; transform:translateY(18px) scale(0.94); } .chat .q { transform-origin:bottom right; } .chat .a { transform-origin:bottom left; }
.flow.wait li { opacity:0; transform:translateX(-28px); } .flow.wait>p { opacity:0; transform:scale(0.85); } .flow>p { transition:opacity 400ms var(--ease) var(--d,0ms),transform 500ms var(--ease) var(--d,0ms); }
.list.seq.wait>li { opacity:0; transform:translateX(-32px); }
.certs.seq.wait>li { opacity:0; transform:translateY(14px); }

.work { background:var(--skin); color:var(--cream); padding:96px 0; } .work h2 { color:var(--fig); }
.case { margin-top:24px; border-radius:24px; padding:32px 24px; display:flex; flex-direction:column; align-items:flex-start; gap:20px; transition:transform 600ms var(--ease),opacity 600ms var(--ease); }
.case>p,.case div>p { max-width:58ch; }
.case h3 { font-size:clamp(2rem,4.6vw,3.5rem); line-height:1; }
.big { margin-top:48px; background:var(--wine); } .big div>h3 { margin:10px 0 14px; }
.nums { display:flex; flex-wrap:wrap; gap:24px 40px; align-self:stretch; padding-top:24px; border-top:2px solid rgba(238,240,244,0.3); } .nums div { display:flex; flex-direction:column-reverse; } .nums dd { font:800 clamp(4rem,11vw,8rem)/0.95 var(--display); color:var(--fig); letter-spacing:-0.04em; } .nums dt { font-weight:800; font-size:0.875rem; }
.qs { background:var(--cream); color:var(--ink); }
.flow { align-self:stretch; background:var(--paper); border:2px solid var(--ink); border-radius:16px; padding:16px; display:grid; gap:12px; justify-items:center; text-align:center; } .flow ol { display:grid; gap:8px; width:100%; } .flow li { border:2px solid var(--ink); border-radius:999px; padding:8px 12px; font-weight:800; font-size:0.875rem; } .flow>p { background:var(--wine); color:var(--cream); border-radius:12px; padding:12px 24px; font:800 1.25rem var(--display); } .flow>p::before { content:"↓ "; color:var(--fig); } .flow figcaption { font-size:0.8125rem; color:var(--muted); }
.oc { background:var(--fig); color:var(--ink); }
.sk { background:var(--paper); color:var(--ink); } .rc { background:var(--blush); color:var(--ink); } .pj .row { margin-top:auto; }
.verdicts { display:flex; flex-wrap:wrap; gap:8px; } .verdicts li { border:2px solid var(--ink); border-bottom-width:4px; border-radius:999px; padding:6px 16px; font:800 1rem var(--display); text-transform:uppercase; } .verdicts li:first-child { background:var(--fig); } .verdicts li:last-child { background:var(--wine); color:var(--cream); }
.rules { display:grid; gap:8px; align-self:stretch; } .rules li { background:var(--paper); border-radius:14px; padding:12px 16px; font-weight:800; font-size:0.9375rem; }
.verdicts.seq.wait>li { opacity:0; transform:translateY(14px) scale(0.9); } .rules.seq.wait>li { opacity:0; transform:translateX(-24px); }
.chat { display:grid; gap:10px; align-self:stretch; } .chat p { padding:14px 18px; border-radius:20px; max-width:88%; font-weight:400; } .chat .q { justify-self:end; background:var(--ink); color:var(--cream); border-bottom-right-radius:4px; } .chat .a { justify-self:start; background:var(--paper); border-bottom-left-radius:4px; }

.all { padding:96px 0; background:var(--cream); }
.filters { display:flex; flex-wrap:wrap; gap:8px; margin:32px 0 24px; } .filters button { min-height:44px; padding:0 18px; border-radius:999px; border:2px solid var(--ink); background:transparent; font-weight:800; font-size:0.875rem; } .filters button[aria-pressed="true"] { background:var(--ink); color:var(--cream); }
.list { border-top:2px solid var(--ink); } .list li[hidden] { display:none; }
.list details { border-bottom:2px solid var(--ink); }
.list summary { list-style:none; cursor:pointer; display:grid; grid-template-columns:1fr auto; gap:4px 16px; align-items:center; padding:20px 0; } .list summary::-webkit-details-marker { display:none; }
.when { grid-column:1; font-size:0.8125rem; font-weight:800; color:var(--muted); } .what { grid-column:1; display:flex; flex-direction:column; } .what b { font:800 1.5rem/1.15 var(--display); letter-spacing:-0.02em; } .what span { font-size:0.9375rem; color:var(--muted); }
.plus { grid-column:2; grid-row:1 / span 2; width:44px; height:44px; border-radius:50%; border:2px solid var(--ink); display:grid; place-items:center; transition:transform 400ms var(--ease),background-color 200ms ease; } .plus::before { content:"+"; font:800 1.5rem/1 var(--display); } details[open] .plus { transform:rotate(45deg); background:var(--fig); }
.more { padding:0 0 24px; max-width:60ch; display:grid; gap:8px; } .more a { font-weight:800; color:var(--wine); display:inline-block; padding:10px 0; }

.school { padding:48px 0 96px; }
.grid { display:grid; gap:16px; margin-top:40px; }
.tile { background:var(--paper); border:2px solid var(--ink); border-bottom-width:5px; border-radius:24px; padding:28px 24px; display:flex; flex-direction:column; gap:14px; transition:transform 600ms var(--ease),opacity 600ms var(--ease); }
.deg { background:var(--wine); color:var(--cream); } .deg h3 { font-size:2.25rem; }
.now { background:var(--fig); }
.certs li { padding:11px 0; border-top:1px solid var(--line); display:flex; flex-direction:column; } .certs b { font-weight:800; font-size:0.9375rem; line-height:1.4; } .certs span { font-size:0.8125rem; color:var(--muted); }
.top6 { display:grid; column-gap:24px; } .allcerts summary { list-style:none; cursor:pointer; margin-top:8px; } .allcerts summary::-webkit-details-marker { display:none; } .allcerts[open] summary { margin-bottom:24px; background:var(--fig); }
.cgrid { display:grid; gap:28px 24px; } .cgrid h4 { font:800 1.125rem var(--display); color:var(--wine); margin-bottom:8px; } .wide { grid-column:1 / -1; }
.chips { display:flex; flex-wrap:wrap; gap:8px; } .chips li { border:2px solid var(--ink); border-radius:999px; padding:6px 14px; font-weight:800; font-size:0.875rem; background:var(--paper); } .chips li:nth-child(3n) { rotate:-2deg; } .chips li:nth-child(4n) { rotate:2deg; }

.hi { background:var(--wine); color:var(--cream); padding:96px 0 112px; border-radius:32px 32px 0 0; text-align:center; }
.hi h2,.hi h1 { max-width:none; font-size:clamp(4.5rem,19vw,15rem); line-height:0.85; text-transform:uppercase; color:var(--fig); }
.lead { max-width:46ch; margin:24px auto; font-size:1.125rem; } .hi .row { justify-content:center; }
.polaroid { display:inline-flex; flex-direction:column; gap:4px; margin-top:64px; width:min(300px,80vw); background:var(--paper); color:var(--ink); padding:12px 12px 16px; border-radius:6px; rotate:-4deg; text-decoration:none; box-shadow:0 24px 48px rgba(10,13,21,0.45); transition:transform 600ms var(--ease),opacity 600ms var(--ease),rotate 500ms var(--ease); }
.polaroid img { display:block; width:100%; height:auto; aspect-ratio:4/5; object-fit:cover; object-position:50% 22%; } .polaroid b { font:800 1.375rem var(--display); }
.end { background:var(--wine); color:var(--cream); text-align:center; font-size:0.8125rem; padding:0 var(--g) 96px; }
.hand { font-size:0.875rem; color:var(--muted); }
.lost { min-height:100vh; display:flex; align-items:center; border-radius:0; } .lost .wrap { width:100%; } .lost h1 { font-size:clamp(3.5rem,13vw,10rem); }
.dock { position:fixed; left:12px; right:12px; bottom:calc(10px + env(safe-area-inset-bottom)); z-index:45; display:flex; gap:8px; justify-content:center; pointer-events:none; } .dock .btn { pointer-events:auto; flex:1; max-width:200px; background:var(--paper); color:var(--ink); border-color:var(--ink); box-shadow:0 8px 24px rgba(10,13,21,0.3); } .dock .btn.wine { background:var(--fig); }
.dock { transition:transform 400ms var(--ease),visibility 400ms; } .dock.off,.dock.hold { transform:translateY(140%); visibility:hidden; }
.toast { position:fixed; left:50%; bottom:80px; z-index:85; max-width:calc(100% - 32px); width:max-content; background:var(--ink); color:var(--cream); padding:12px 18px; border-radius:999px; font-size:0.875rem; opacity:0; transform:translate(-50%,16px); pointer-events:none; transition:opacity 400ms var(--ease),transform 400ms var(--ease); } .toast.show { opacity:1; transform:translate(-50%,0); }
.rv.wait { opacity:0; transform:translateY(40px); }

@media (hover:hover) and (pointer:fine) { .btn:hover { transform:translateY(-3px); } .links a:hover,.txt:hover { color:var(--fig); } .mail:hover { background:#eef0f4; color:#0a0d15; } .polaroid:hover { rotate:1deg; transform:scale(1.03); } .list summary:hover .plus { background:var(--blush); } .filters button:hover { background:var(--fig); color:var(--ink); } }
@media (max-width:420px) { .links a { padding:0 7px; font-size:0.8125rem; } .links a[href="#school"] { display:none; } }
@media (min-width:768px) {
  :root { --g:48px; } .dock { display:none; } .end { padding-bottom:40px; }
  .work,.all { padding:128px 0; } .case { padding:48px; margin-top:24px; }
  .work .wrap { display:grid; grid-template-columns:1fr 1fr; column-gap:24px; } .work .eyebrow,.work h2,.big { grid-column:1 / -1; } .pj { margin-top:48px; }
  .list summary { grid-template-columns:200px 1fr auto; } .when { grid-column:1; grid-row:1; } .what { grid-column:2; grid-row:1; } .plus { grid-column:3; grid-row:1; } .more { padding-left:216px; max-width:calc(216px + 60ch); }
  .grid { grid-template-columns:1fr 1fr; }
  .cgrid { grid-template-columns:repeat(3,1fr); } .top6 { grid-template-columns:repeat(3,1fr); } .grid .now { grid-column:1 / -1; }
  .oc { align-self:start; position:sticky; top:96px; }
  .name .full { display:inline; } .name .short { display:none; }
  .stage { min-height:680px; }
  .shot { top:0; left:auto; right:0; width:auto; max-width:none; height:104%; translate:none; }
  .shade { background:linear-gradient(90deg,#0a0d15 8%,rgba(10,13,21,0.55) 45%,rgba(10,13,21,0) 70%),linear-gradient(rgba(10,13,21,0) 50%,rgba(10,13,21,0.72) 80%,#0a0d15 100%); }
  .tag { right:auto; left:59%; top:48%; white-space:nowrap; }
  .copy { padding-bottom:32px; } .hero h1 { font-size:min(7.7vw,13vh,6.9rem); line-height:0.92; } .foot p { font-size:1.125rem; margin:20px 0 24px; max-width:44ch; }
  .specs { grid-template-columns:repeat(4,1fr); padding:20px 0 28px; gap:24px; } .specs dd { font-size:2.25rem; }
}
@media (min-width:1000px) { .grid { grid-template-columns:repeat(3,1fr); } .grid .now { grid-column:auto; } .mail { display:inline-flex; align-items:center; } .big { flex-direction:row; justify-content:space-between; align-items:flex-end; gap:48px; } .big>div { flex:1; } .nums { align-self:flex-end; border:0; padding:0; flex-wrap:nowrap; gap:32px; } .nums dd { font-size:6rem; } }
@media (prefers-reduced-motion:reduce) { .progress { display:none; } html { scroll-behavior:auto; } .btn,.top,.case,.tile,.polaroid,.toast,.plus,.dock { transition:none; } }
.allcerts .c-few, .allcerts[open] .c-all { display:none; } .allcerts[open] .c-few { display:inline; }

/* Short screens: no pinning, the photo is cropped so the headline and button stay on the first screen */
@media (max-width:767px) and (max-height:719px) { .stage { display:block; height:auto; min-height:0; } .shot { position:relative; min-height:0; overflow:hidden; top:0; left:0; translate:none; margin:56px auto 0; aspect-ratio:4/5; } .shot img { object-position:50% 0; } .shade { background:linear-gradient(rgba(10,13,21,0) 30%,rgba(10,13,21,0.75) 48%,#0a0d15 62%); } .copy { margin-top:-140px; } .hero h1 { font-size:min(11.4vw,2.75rem); } .foot p { margin:8px 0 12px; font-size:0.9375rem; } }
@media (max-width:767px) and (max-height:600px) { .shot { aspect-ratio:1; } .copy { margin-top:-96px; } }
@media (min-width:768px) and (max-height:599px) { .stage { height:auto; min-height:0; padding-top:64px; } .hero h1 { font-size:3rem; } .foot p { font-size:1rem; margin:10px 0 12px; } .specs { padding:14px 0 18px; } .tag { left:auto; right:0; min-height:44px; justify-content:center; } .tag span,.tag i { display:none; } }
@media (max-width:767px) and (max-height:719px) { .shot.over { position:absolute; top:56px; left:0; right:0; margin:0 auto; } }
@media (max-width:767px) and (max-height:600px) { .shot.over { aspect-ratio:1; } }
