/* premsolanki.com — a page from a dot-grid sketchbook.
   White paper, slim geometric type (Jost, in the spirit of Century Gothic),
   pastel highlighter colours, and ONE vivid colour (--hot) kept to a few
   percent of the page: the print head, the road, live dots, one squiggle.
   Mixed type only for moments: Cormorant (classical), Kalam (handwriting),
   Anton (impact). */
:root {
  --paper: #FFFFFF;
  --dot: #CFCDC8;
  --ink: #161616;
  --mid: #6B6B6B;
  --rule: rgba(22, 22, 22, .12);

  --blush: #F8D9DA;
  --mint: #D2EEDF;
  --butter: #FBF0BC;
  --lilac: #E2DCF6;
  --peach: #FCDDC9;
  --hot: #FF4A12;

  --sans: "Jost", "Century Gothic", "Avenir Next", Arial, sans-serif;
  --serif: "Cormorant Garamond", Garamond, Georgia, serif;
  --hand: "Kalam", "Bradley Hand", "Segoe Print", cursive;
  --impact: "Anton", Impact, "Arial Narrow", sans-serif;

  --gutter: clamp(16px, 3.2vw, 48px);
  --grid: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  /* the dot-grid page */
  background-image: radial-gradient(circle at 1px 1px, var(--dot) 1.05px, transparent 1.4px);
  background-size: var(--grid) var(--grid);
  background-position: calc(var(--gutter) - 1px) -1px;
  font-family: var(--sans);
  font-weight: 350;
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.7;
  letter-spacing: .005em;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--butter); color: var(--ink); }
:focus-visible { outline: 1.5px solid var(--hot); outline-offset: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { left: 8px; }

/* type helpers */
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.hand { font-family: var(--hand); font-weight: 300; letter-spacing: 0; }
.small { font-size: 13px; color: var(--mid); }

/* pastel highlighter, drawn in on scroll (--hl goes 0% → 100%) */
.hl {
  background-image: linear-gradient(transparent 52%, var(--hl-c) 52%, var(--hl-c) 90%, transparent 90%);
  background-repeat: no-repeat; background-size: var(--hl, 100%) 100%;
  padding: 0 .12em; margin: 0 -.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hl--fat { background-image: linear-gradient(transparent 38%, var(--hl-c) 38%, var(--hl-c) 94%, transparent 94%); }
.hl--blush { --hl-c: var(--blush); } .hl--mint { --hl-c: var(--mint); } .hl--butter { --hl-c: var(--butter); }
.hl--lilac { --hl-c: var(--lilac); } .hl--peach { --hl-c: var(--peach); }

/* hand-drawn strokes (drawn in on scroll via stroke-dashoffset) */
.stroke { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.stroke--hot { stroke: var(--hot); stroke-width: 2; }

/* ---------- fixed layers ---------- */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }

.cursor { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; display: none; }
.cursor span { display: block; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ink); transition: transform .35s var(--ease), background-color .35s var(--ease); }
.cursor.is-link span { transform: scale(5); background: rgba(22, 22, 22, .08); outline: 1px solid var(--ink); outline-offset: -.5px; }
.cursor.is-view span { transform: scale(7); background: rgba(22, 22, 22, .06); }
@media (hover: hover) and (pointer: fine) { .js .cursor { display: block; } .js body, .js a { cursor: none; } }

.preview { position: fixed; left: 0; top: 0; z-index: 4; width: 260px; aspect-ratio: 4 / 5; pointer-events: none; overflow: hidden; clip-path: inset(50% 50% 50% 50%); transition: clip-path .5s var(--ease); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.preview.is-on { clip-path: inset(0 0 0 0); }
.preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  font-size: 13px; font-weight: 400; letter-spacing: .04em;
}
.nav-mark { display: block; width: 34px; height: 34px; }
.nav-mark svg { width: 100%; height: 100%; }
.nav nav { display: flex; gap: clamp(14px, 2.4vw, 34px); padding: 4px 12px; background: rgba(255,255,255,.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 999px; }
.nav nav a { text-decoration: none; position: relative; display: inline-block; padding: 6px 2px; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav nav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 720px) { .nav nav a:not(.nav-cta) { display: none; } }

/* ---------- shared headings ---------- */
.section-title {
  font-family: var(--sans); font-weight: 250;
  font-size: clamp(34px, 4.4vw, 74px); line-height: 1.04; letter-spacing: -.02em; margin: 0;
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: grid; grid-template-rows: 1fr auto auto;
  padding: 92px var(--gutter) 26px;
}
.hero-lede { align-self: start; margin-top: 4vh; }
.hero-lede p { margin: 0; }
.hero-lede .serif-i { font-size: clamp(20px, 1.8vw, 28px); line-height: 1.25; }
.hero-lede .small { margin-top: 6px; letter-spacing: .04em; }
.form-note {
  position: absolute; left: 41%; top: 19%; margin: 0; z-index: 2;
  display: flex; align-items: center; gap: 4px;
  font-size: clamp(17px, 1.35vw, 22px); color: var(--ink); white-space: nowrap;
}
.form-note .stroke { width: 64px; height: 20px; transform: translateY(2px); }
.hero-name {
  margin: 0; font-family: var(--sans); font-weight: 200;
  font-size: clamp(58px, 11.4vw, 220px); line-height: .92; letter-spacing: -.035em;
  display: flex; flex-direction: column;
}
.hero-row { display: block; white-space: nowrap; }
.hero-row--2 { padding-left: 16.66%; }
.ch { display: inline-block; will-change: transform; }
.hero-foot {
  display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 24px;
  margin-top: 4vh; padding-top: 14px; border-top: 1px solid var(--rule);
  font-size: 13px; letter-spacing: .03em;
}
.roles { margin: 0; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); max-width: 520px; }
.roles-track { display: inline-flex; animation: roll 24s linear infinite; }
.roles-track span { padding-right: 2.4em; }
.roles-track span::before { content: ""; display: inline-block; width: .4em; height: .4em; border: 1px solid currentColor; border-radius: 50%; margin-right: .8em; vertical-align: .1em; }
@keyframes roll { to { transform: translateX(-50%); } }
.readout { margin: 0; color: var(--mid); font-variant-numeric: tabular-nums; text-align: right; }
.readout b { color: var(--ink); font-weight: 450; }
.scroll-cue { display: block; width: 20px; height: 34px; border: 1px solid var(--ink); border-radius: 11px; position: relative; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 1.5px; height: 6px; margin-left: -.75px; background: var(--ink); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px) } 40% { opacity: 1 } 100% { opacity: 0; transform: translateY(11px) } }

/* ---------- intro ---------- */
.intro {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--gutter);
  padding: 22vh var(--gutter) 18vh; align-items: start;
}
.portrait { grid-column: 1 / span 4; margin: 0; position: sticky; top: 14vh; }
.portrait img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(1.04); }
.portrait-layers { position: absolute; inset: 0 0 auto 0; aspect-ratio: 2 / 3; display: flex; flex-direction: column; }
.portrait-layers i { flex: 1; background: var(--paper); transform-origin: right center; }
.portrait figcaption { margin-top: 10px; font-size: 17px; }
.intro-copy { grid-column: 6 / span 7; }
.statement {
  margin: 0; font-family: var(--serif); font-weight: 350;
  font-size: clamp(28px, 3.1vw, 54px); line-height: 1.16; letter-spacing: -.01em;
}
.statement .w { opacity: .16; }
.no-motion .statement .w { opacity: 1; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin: 12vh 0 0; padding-top: 16px; border-top: 1px solid var(--rule); }
.facts dt { font-size: 12px; letter-spacing: .05em; color: var(--mid); }
.facts dd { margin: 6px 0 0; font-weight: 300; font-size: clamp(19px, 1.6vw, 26px); line-height: 1.2; letter-spacing: -.01em; }

/* ---------- practice ---------- */
.practice { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--gutter); padding: 0 var(--gutter); }
.practice-stage { grid-column: 1 / span 6; position: sticky; top: 0; height: 100vh; align-self: start; display: flex; align-items: flex-end; padding-bottom: 34px; }
.stage-card { display: flex; align-items: flex-end; gap: 14px; }
.stage-thumb { width: 84px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--rule); border: 4px solid var(--paper); box-shadow: 0 6px 18px rgba(0,0,0,.1); transform: rotate(-2deg); }
.stage-thumb img { width: 100%; height: 100%; object-fit: cover; }
.stage-thumb.is-empty { visibility: hidden; width: 0; border: 0; }
.stage-text { display: grid; gap: 0; margin: 0; }
.stage-text b { font-weight: 400; font-size: 22px; line-height: 1.15; }
.stage-text span { font-size: 12px; letter-spacing: .04em; color: var(--mid); }
.practice-list { grid-column: 7 / span 6; }
.discipline { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 12vh 0; max-width: 32em; }
.discipline h2 { margin: 0 0 .35em; font-family: var(--sans); font-weight: 250; font-size: clamp(36px, 4.4vw, 76px); line-height: 1.02; letter-spacing: -.025em; }
.d-lead { margin: 0 0 1.1em; font-size: clamp(21px, 1.8vw, 28px); line-height: 1.25; }
.discipline p { margin-top: 0; }
.d-meta { margin: 1.3em 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 12px; letter-spacing: .04em; color: var(--mid); }
.note { position: relative; margin: 2.2em 0 0; display: flex; align-items: center; gap: 6px; font-size: 19px; color: var(--ink); transform: rotate(-1.5deg); transform-origin: left center; }
.note .stroke { width: 56px; height: 18px; flex: none; }
.d-photo { margin: 1.8em 0 0; max-width: 340px; }
.d-photo img { width: 100%; filter: grayscale(1) contrast(1.05) brightness(1.05); transition: filter .8s var(--ease); border: 6px solid var(--paper); box-shadow: 0 10px 30px rgba(0,0,0,.1); transform: rotate(1deg); }
.d-photo:hover img { filter: grayscale(0); }
.d-photo figcaption { margin-top: 10px; font-size: 17px; }

/* ---------- ventures ---------- */
.ventures { padding: 26vh var(--gutter) 16vh; }
.mix-title { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .05em .35em; line-height: 1; font-weight: 400; }
.mt-sans { width: 100%; font-family: var(--sans); font-weight: 250; font-size: clamp(30px, 3.8vw, 64px); letter-spacing: -.02em; }
.mt-hand { font-size: clamp(54px, 7vw, 120px); line-height: .9; transform: rotate(-3deg) translateY(.08em); display: inline-block; }
.mt-impact { font-family: var(--impact); font-weight: 400; text-transform: uppercase; font-size: clamp(60px, 8.6vw, 150px); line-height: .9; letter-spacing: -.005em; }
.venture-list { margin-top: 10vh; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.venture {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 420px;
  padding: clamp(24px, 3vw, 44px); text-decoration: none; background: var(--c); border-radius: 4px;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.venture--mint { --c: var(--mint); } .venture--peach { --c: var(--peach); }
.venture:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 24px 50px rgba(0,0,0,.08); }
.v-year { font-family: var(--hand); font-size: 18px; }
.v-name { font-weight: 250; font-size: clamp(30px, 3.2vw, 54px); line-height: 1.04; letter-spacing: -.025em; margin-top: auto; }
.v-role { font-size: 21px; }
.v-desc { max-width: 32em; }
.v-link { align-self: flex-start; font-size: 13px; letter-spacing: .04em; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.v-link::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--hot); transform: scale(0); transition: transform .4s var(--ease); vertical-align: .1em; }
.venture:hover .v-link::after { transform: scale(1); }

/* ---------- bench ---------- */
.bench { padding: 22vh var(--gutter) 18vh; }
.bench-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; }
.bench-head .section-title { grid-column: 1 / span 7; }
.bench-head p { grid-column: 9 / span 4; margin: 0; color: var(--mid); }
.bench-list { list-style: none; margin: 9vh 0 0; padding: 0; border-top: 1px solid var(--ink); }
.bench-row {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px var(--gutter); align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--rule); position: relative; background: rgba(255,255,255,.6);
}
.b-name { grid-column: 1 / span 4; font-weight: 300; font-size: clamp(20px, 1.7vw, 28px); line-height: 1.15; letter-spacing: -.015em; transition: transform .6s var(--ease); }
.bench-row:hover .b-name { transform: translateX(10px); }
.b-desc { grid-column: 5 / span 5; }
.b-status { grid-column: 10 / span 3; justify-self: end; font-size: 12px; letter-spacing: .04em; white-space: nowrap; padding: 4px 12px; border-radius: 999px; background: var(--c); }
.s-mint { --c: var(--mint); } .s-butter { --c: var(--butter); } .s-lilac { --c: var(--lilac); }
.b-status.is-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--hot); margin-right: 8px; vertical-align: .1em; animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }

/* ---------- contact ---------- */
.contact { min-height: 100vh; padding: 20vh var(--gutter) 10vh; display: flex; flex-direction: column; justify-content: center; }
.contact-kicker { margin: 0 0 2vh; font-size: clamp(22px, 2.1vw, 34px); transform: rotate(-1.5deg); transform-origin: left; }
.contact-title { margin: 0; font-family: var(--impact); font-weight: 400; text-transform: uppercase; font-size: clamp(76px, 15vw, 290px); line-height: .9; letter-spacing: -.005em; display: flex; flex-direction: column; }
.contact-row { display: block; white-space: nowrap; }
.contact-row--2 { padding-left: 8.33%; }
.contact-title .ch { transform-origin: 50% 100%; }
.contact-links { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); margin-top: 8vh; align-items: end; }
.big-link { position: relative; grid-column: 1 / span 7; justify-self: start; font-weight: 300; font-size: clamp(22px, 2.6vw, 42px); letter-spacing: -.02em; text-decoration: none; padding-bottom: 14px; display: inline-block; overflow-wrap: anywhere; }
.big-link .stroke { position: absolute; left: 0; bottom: 0; width: 100%; height: 14px; }
.contact-links ul { grid-column: 9 / span 4; list-style: none; margin: 0; padding: 0; font-size: 14px; letter-spacing: .02em; }
.contact-links li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: padding .4s var(--ease); }
.contact-links li a:hover { padding-left: 10px; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding: 20px var(--gutter) 26px; border-top: 1px solid var(--rule); font-size: 12px; letter-spacing: .04em; color: var(--mid); font-variant-numeric: tabular-nums; background: var(--paper); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .form-note { left: auto; right: var(--gutter); top: 30%; flex-direction: row-reverse; }
  .form-note .stroke { transform: translateY(2px) scaleX(-1); }
  .intro { grid-template-columns: 1fr; padding-top: 14vh; }
  .portrait { grid-column: 1; position: relative; top: 0; max-width: 280px; margin-bottom: 8vh; }
  .intro-copy { grid-column: 1; }
  .facts { grid-template-columns: 1fr 1fr; }
  .practice { grid-template-columns: 1fr; }
  .practice-stage { display: none; }
  .practice-list { grid-column: 1; }
  .discipline { min-height: 90vh; }
  .venture-list { grid-template-columns: 1fr; }
  .venture { min-height: 0; }
  .bench-head, .bench-row { grid-template-columns: 1fr; }
  .bench-head .section-title, .bench-head p, .b-name, .b-desc, .b-status { grid-column: 1; justify-self: start; }
  .contact-links { grid-template-columns: 1fr; }
  .big-link, .contact-links ul { grid-column: 1; }
  .preview { display: none; }
}
@media (max-width: 560px) {
  .hero-foot { grid-template-columns: 1fr auto; }
  .readout { display: none; }
  .hero-row--2 { padding-left: 0; }
  .facts { grid-template-columns: 1fr; gap: 14px; }
  .form-note { top: 26%; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .roles-track, .scroll-cue span, .b-status.is-live::before { animation: none; }
  .portrait-layers { display: none; }
  .statement .w { opacity: 1; }
}

/* =====================================================================
   Drawing-set details: used only where they mark structure.
   ===================================================================== */

/* print-head gantry across the top: the printed line is how far you've read */
.gantry { position: fixed; top: 0; left: 0; right: 0; height: 12px; z-index: 45; pointer-events: none; }
.gantry .rail { position: absolute; left: 0; right: 0; top: 3px; height: 1px; background: var(--rule); }
.gantry .printed { position: absolute; left: 0; top: 3px; height: 1.5px; width: calc(var(--p, 0) * 100%); background: var(--ink); }
.gantry .carriage { position: absolute; top: 0; left: calc(var(--p, 0) * (100% - 14px)); width: 14px; height: 7px; border: 1px solid var(--ink); background: var(--paper); }
.gantry .carriage b { position: absolute; left: 50%; top: 7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--hot); }
.gantry .carriage em { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; letter-spacing: .05em; color: var(--mid); white-space: nowrap; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .3s; }
.gantry.is-moving .carriage em { opacity: 1; }

/* the spine: a centre line that ties every section back to Prem */
.spine { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: -1; }
.spine-line { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 18 5 2 5; opacity: .55; }
.spine-links path { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; opacity: 0; transition: opacity 1s var(--ease); }
.spine-links path.is-on { opacity: .5; }
.spine-nodes circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1; transition: fill .4s var(--ease); }
.spine-nodes circle.is-on { fill: var(--ink); }
.spine-nodes .datum path { fill: var(--ink); }
.spine-nodes .datum circle { fill: var(--paper); }
.spine-nodes text { font-family: var(--hand); font-size: 15px; fill: var(--mid); }

/* structural grid with bubbles, hero only */
.gridlines { position: absolute; inset: 92px var(--gutter) 0; display: grid; grid-template-columns: repeat(6, 1fr); pointer-events: none; z-index: -1; }
.gridlines i { position: relative; border-left: 1px dashed rgba(22,22,22,.14); transform-origin: top; }
.gridlines i:last-child { position: absolute; right: 0; top: 0; bottom: 0; }
.gridlines i::before { content: attr(data-b); position: absolute; top: -26px; left: -11px; width: 22px; height: 22px; border: 1px solid rgba(22,22,22,.45); border-radius: 50%; background: var(--paper); font-size: 10px; line-height: 21px; text-align: center; color: var(--mid); letter-spacing: 0; }

/* wall in section: two lines with 45° hatch, marks a real break in the page */
.wall { height: 12px; margin: 0 0 14vh; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: repeating-linear-gradient(45deg, rgba(22,22,22,.55) 0 1px, transparent 1px 7px); transform-origin: left; }
.contact .wall { margin-bottom: 12vh; }

/* facts as a dimension string: oblique architect's ticks at each break */
.facts { border-top: 0; padding-top: 18px; position: relative; }
.facts::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); }
.facts > div { position: relative; }
.facts > div::before, .facts > div:last-child::after { content: ""; position: absolute; top: -6px; left: 0; width: 1px; height: 13px; background: var(--ink); transform: rotate(45deg); }
.facts > div:last-child::after { left: auto; right: calc(var(--gutter) * -0); }

.cap-note { display: block; font-size: 14px; color: var(--mid); }

@media (max-width: 900px) {
  .gridlines i:nth-child(n+4) { display: none; }
  .gridlines { grid-template-columns: repeat(3, 1fr); }
}
