/* =====================================================================
   Ipsa Rath · portfolio · first draft
   Design language: warm paper, chunky uppercase display, one electric
   blue, sticker colours, mono markers, pill buttons, fanned cards.
   ===================================================================== */

:root {
  /* colour */
  --paper: #F7F6F2;
  --cream: #F4EEE1;
  --cream-deep: #EDE4D2;
  --white: #FFFFFF;
  --ink: #17150F;
  --ink-82: rgba(23, 21, 15, .82);
  --ink-66: rgba(23, 21, 15, .66);
  --ink-50: rgba(23, 21, 15, .5);
  --ink-12: rgba(23, 21, 15, .12);
  --hairline: rgba(23, 21, 15, .14);
  --blue: #1E50E5;
  --blue-deep: #123A9E;
  --blue-soft: #96AEF5;
  --yellow: #FFC200;
  --yellow-soft: #FAE782;
  --red: #E83A21;
  --orange: #FF6A3D;
  --pink: #F6C6D0;
  --lime: #C2E14B;

  /* type */
  --display: "Mudstone", "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --hand: "Caveat", "Segoe Script", cursive;

  --h1: clamp(58px, 9vw, 116px);
  --h2: clamp(36px, 4vw, 52px);   /* same size as the toolkit heading */
  --h2-xl: clamp(52px, 8vw, 112px);
  --h3d: clamp(36px, 4vw, 52px);
  --card-title: 30px;
  --lede: clamp(16px, 1.25vw, 18px);

  /* shape */
  --pill: 100px;
  --r-card: 22px;
  --r-img: 18px;
  --shadow-soft: 0 8px 22px rgba(23, 21, 15, .08);
  --shadow-card: 0 22px 48px -26px rgba(23, 21, 15, .55);
  --shadow-lift: 0 26px 60px rgba(23, 21, 15, .16);

  /* layout */
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 76px;
  --section: clamp(96px, 12vw, 160px);

  /* motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Mudstone is a licensed face. Drop the files into assets/fonts/ and the
   declaration below picks them up; until then headings fall back to Anton. */
@font-face {
  font-family: "Mudstone";
  src: url("../fonts/Mudstone-Black.woff2") format("woff2"), url("../fonts/Mudstone-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--yellow); color: var(--ink); }

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

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 900;
  font-synthesis: none;            /* no faux-bold on the Anton fallback */
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: .005em;
}
/* when the real Mudstone is present, use the reference tracking */
.has-mudstone .display { letter-spacing: -.02em; line-height: 1; }
.has-mudstone .h1, .has-mudstone .h2 { letter-spacing: -.025em; }
.h1 { font-size: var(--h1); letter-spacing: 0; }
.h2 { font-size: var(--h2); }
.h2--xl { font-size: var(--h2-xl); }
.h3 { font-size: clamp(20px, 1.6vw, 24px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.h3-display { font-size: var(--h3d); }
.hand { font-family: var(--hand); font-weight: 600; font-size: clamp(20px, 1.7vw, 26px); line-height: 1; }
.marker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-66);
}
.marker--left { text-align: left; margin-bottom: 18px; }
.lede { font-size: var(--lede); color: var(--ink-82); max-width: 44ch; }
.sub { font-size: var(--lede); color: var(--ink-66); max-width: 52ch; }
.para { color: var(--ink-82); max-width: 62ch; }
.para--muted { color: var(--ink-66); }
.para + .para { margin-top: 14px; }

/* the blue word with a yellow marker stroke under it */
.hl {
  font-style: normal;
  color: var(--blue);
  position: relative;
  display: inline-block;
  z-index: 0;
}
.hl::after {
  content: "";
  position: absolute;
  left: -.04em; right: -.04em; bottom: .02em;
  height: .16em;
  background: var(--yellow);
  border-radius: 4px;
  transform: rotate(-1.2deg) scaleX(0);
  transform-origin: left center;
  z-index: -1;
  transition: transform .7s var(--ease-out) .9s;
}
.loaded .hl::after { transform: rotate(-1.2deg) scaleX(1); }
.hl--in::after { transition-delay: .3s; }
.in .hl--in::after, .reveal.in .hl--in::after { transform: rotate(-1.2deg) scaleX(1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px;
  border-radius: var(--pill);
  font-weight: 600; font-size: 15px; line-height: 1;
  border: 1.5px solid var(--ink);
  transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn--sm { padding: 10px 18px; font-size: 13.5px; }
.btn--blue { background: var(--blue); border-color: var(--blue); color: var(--white); box-shadow: 0 10px 24px -12px rgba(30, 80, 229, .7); }
.btn--blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(30, 80, 229, .8); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink-12); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); background: var(--white); }
.btn--ghost.is-done { background: var(--lime); border-color: var(--lime); }
.btn__arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translate(3px, 3px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav--scrolled { background: rgba(247, 246, 242, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--hairline); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.brand__name { font-family: "Instrument Serif", Georgia, serif; font-size: 26px; font-weight: 400; letter-spacing: .02em; line-height: 1; color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links > a:not(.btn) {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links > a:not(.btn):hover::after { transform: scaleX(1); }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s; }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger.open span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger.open span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- layout ---------- */
main { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding: var(--section) 0 0; }
.section--center { text-align: center; }
.section--center .sub { margin-inline: auto; }
.section > .marker { display: block; margin-bottom: 18px; }
.section > .h2 { margin-bottom: 14px; }
.section > .sub { margin-bottom: clamp(40px, 5vw, 64px); }
.about__title { max-width: 26ch; margin: 14px 0 44px; }
.about__text > .marker { display: block; }

/* ---------- reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out) var(--d, 0s), transform .8s var(--ease-out) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

.rise { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out) var(--d, 0s), transform .7s var(--ease-out) var(--d, 0s); }
.loaded .rise { opacity: 1; transform: none; }
.pop { opacity: 0; transform: scale(.7) rotate(-6deg); transition: opacity .6s var(--ease-out) var(--d, 0s), transform .8s var(--ease-out) var(--d, 0s); }
.loaded .pop { opacity: 1; transform: none; }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line__in { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease-out) var(--d, 0s); }
.loaded .line__in { transform: none; }

/* ---------- hero (centred polaroid layout) ---------- */
.hero {
  position: relative;
  display: grid; justify-items: center; text-align: center;
  padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 7vw, 88px);
}
/* faint drafting grid that fades out at the edges */
.hero::before {
  content: ""; position: absolute; inset: -20px -8vw 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(23, 21, 15, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 21, 15, .055) 1px, transparent 1px);
  background-size: 140px 140px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, #000 30%, transparent 100%);
}
.hero > * { position: relative; z-index: 1; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px; padding: 10px 16px;
  border: 1px solid var(--hairline); border-radius: var(--pill);
  background: rgba(255, 255, 255, .85);
  font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: -.01em;
}
.hero-pill__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }

.hero-intro { font-size: clamp(20px, 2.3vw, 27px); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.hero-name {
  width: 100%; margin-top: .06em;
  color: var(--blue);
  font-family: "Bricolage Grotesque", "Anton", "Arial Narrow", sans-serif;
  font-weight: 800; font-synthesis: none;
  font-variation-settings: "opsz" 96, "wdth" 100;
  text-transform: none;                 /* mixed case, like the reference */
  letter-spacing: -.03em;
  font-size: clamp(36px, calc(10.5vw - 24px), 108px);   /* 24px below the original */
  line-height: 1; letter-spacing: -.03em;
  white-space: nowrap;
}
.hero-name__dot {
  display: inline-block; width: .17em; height: .17em; margin-left: .07em;
  border-radius: 50%; background: var(--ink); vertical-align: baseline;
}

.hero-card { position: relative; width: min(100%, 560px); margin-top: 13px; padding: 0 28px 12px; }
.hero-doodles { position: absolute; inset: 4px 8px 22px; z-index: 0; pointer-events: none; color: #B9B4AA; }
.hero-doodle {
  position: absolute; display: block; width: 40px; height: 40px; overflow: visible; opacity: .72;
  fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round;
}
.hero-doodle--coffee { top: 11%; left: 4%; width: 34px; height: 34px; opacity: .62; transform: rotate(-13deg); }
.hero-doodle--chai { top: 55%; left: -.5%; width: 39px; height: 39px; opacity: .76; transform: rotate(8deg); }
.hero-doodle--panda { top: 23%; right: 3.5%; width: 37px; height: 37px; opacity: .68; transform: rotate(11deg); }
.hero-doodle--car { top: 58%; right: -1.5%; width: 44px; height: 44px; opacity: .78; transform: rotate(-9deg); }
.hero-doodle--tv { right: 7%; bottom: 2%; width: 32px; height: 32px; opacity: .58; transform: rotate(9deg); }
.hero-doodle--brush { bottom: 13%; left: 5%; width: 30px; height: 30px; opacity: .66; transform: rotate(-11deg); }

.hero-polaroid {
  position: relative; z-index: 1;
  width: min(78%, 340px); margin: 0 auto; padding: 14px 14px 16px;
  background: var(--white);
  box-shadow: 0 24px 44px rgba(23, 21, 15, .14);
  transform: rotate(-1.8deg);
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.hero-polaroid:hover { transform: rotate(-1deg) translateY(-3px); box-shadow: 0 26px 48px rgba(23, 21, 15, .2); }
.hero-frame { aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream); }   /* square: the new photo is portrait */
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: saturate(1.02) contrast(1.02); }
.hero-polaroid figcaption { padding: 13px 2px 0; font-family: var(--hand); font-weight: 600; font-size: 21px; line-height: 1; color: var(--ink-82); }

.hero-copy { max-width: 62ch; margin-top: 34px; color: var(--ink-66); font-size: 17px; line-height: 1.58; letter-spacing: -.01em; text-wrap: pretty; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.email-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-radius: var(--pill);
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  background: var(--cream); color: var(--ink);
  transition: background .25s, transform .35s var(--ease);
}
.email-chip:hover { background: var(--yellow); transform: translateY(-2px); }

/* hero entrance (no library) */
.hero-name.rise { transform: translateY(30px) scale(.965); transform-origin: 50% 100%; }
.loaded .hero-name.rise { transform: none; }
.hero-name__dot.pop { transform: scale(.45); transform-origin: 50% 75%; }
.loaded .hero-name__dot.pop { transform: none; }
.hero-card.rise { transform: translateY(52px) scale(.96) rotate(1.25deg); }
.loaded .hero-card.rise { transform: none; }

/* ---------- marquee ---------- */
.marquee {
  width: 100vw; margin-left: calc(50% - 50vw);
  background: var(--yellow-soft);
  border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  overflow: hidden; padding: 14px 0;
  transform: rotate(-1deg) scale(1.02);
}
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--mono); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.marquee__dot { color: var(--blue); }
@keyframes marquee { to { transform: translateX(calc(-100% / 3)); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- 01 fan cards ---------- */
.fan {
  display: flex; justify-content: center; align-items: flex-end;
  padding: 24px 0 40px;
  perspective: 1200px;
}
.card {
  --tx: 0deg; --ty: 0deg;
  width: 272px; min-height: 356px; flex: 0 0 auto;
  margin: 0 -14px;
  padding: 24px 24px 26px;
  border-radius: var(--r-card);
  text-align: left;
  box-shadow: var(--shadow-card);
  transform: rotate(var(--r)) translateY(var(--y)) rotateX(var(--tx)) rotateY(var(--ty));
  transition: transform .9s var(--ease-out), box-shadow .5s var(--ease);
  position: relative;
  will-change: transform;
}
.fan:not(.in) .card { transform: translateX(calc((1.5 - var(--i)) * 244px)) translateY(60px) rotate(0deg); opacity: 0; }
.fan:not(.in) .card { transition: transform .9s var(--ease-out), opacity .5s; }
.card:hover { transform: rotate(0deg) translateY(-18px) rotateX(var(--tx)) rotateY(var(--ty)); z-index: 3; box-shadow: var(--shadow-lift); transition-duration: .5s; }
.card--blue { background: var(--blue); color: var(--white); }
.card--orange { background: var(--orange); color: var(--ink); }
.card--yellow { background: var(--yellow); color: var(--ink); }
.card--pink { background: var(--pink); color: var(--ink); }
.card__label { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .85; margin-bottom: 26px; }
.card__icon { width: 30px; height: 30px; margin-bottom: 14px; }
.card__title { font-size: var(--card-title); line-height: 1.04; margin-bottom: 20px; }
.card__list { border-top: 1px solid currentColor; padding-top: 10px; font-size: 14.5px; font-weight: 500; }
.card__list li { padding: 6px 0; display: flex; gap: 10px; align-items: baseline; }
.card__list li::before { content: "\203A"; font-family: var(--mono); opacity: .8; }

.offclock { display: flex; align-items: center; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.offclock__label { font-size: 30px; line-height: 1.04; color: var(--ink); text-align: left; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 720px; }
.chip {
  background: var(--cream); padding: 10px 16px; border-radius: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-82);
  transform: rotate(var(--r)); box-shadow: var(--shadow-soft);
  transition: transform .4s var(--ease);
}
.chip:hover { transform: rotate(0) translateY(-3px); background: var(--white); }

/* ---------- 02 about ---------- */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-bottom: 96px; }
.about__text .para { max-width: 56ch; font-size: 17px; }
.about__hand { color: var(--blue); margin-top: 22px; transform: rotate(-2deg); display: inline-block; }
.polaroid {
  background: var(--white); padding: 14px 14px 18px; border-radius: 6px;
  box-shadow: var(--shadow-lift);
  transform: rotate(var(--r, 3deg));
  transition: transform .6s var(--ease), box-shadow .5s;
  width: min(340px, 100%); justify-self: end;
}
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.polaroid .hand, .polaroid figcaption { display: block; text-align: center; margin-top: 14px; color: var(--ink-82); }
.polaroid:hover { transform: rotate(0) translateY(-6px); }
.reveal.polaroid { transform: translateY(28px) rotate(var(--r, 3deg)); }
.reveal.polaroid.in { transform: rotate(var(--r, 3deg)); }
.reveal.polaroid.in:hover { transform: rotate(0) translateY(-6px); }

.exp { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); margin-bottom: 96px; }
.timeline { border-top: 1px solid var(--hairline); }
.row { display: grid; grid-template-columns: 110px 130px 1fr; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--hairline); }
.row__year { font-size: 30px; line-height: 1; display: flex; align-items: baseline; gap: 6px; }
.row__year small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-66); }
.row__tag { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.row__body { display: flex; flex-direction: column; gap: 2px; }
.row__body strong { font-weight: 700; }
.row__body span { color: var(--ink-66); font-size: 15px; }
.row:hover .row__year { color: var(--blue); }

.kit { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.kit__hand { color: var(--red); transform: rotate(-3deg); display: inline-block; margin-bottom: 6px; }
.kit__head .h3-display { margin-bottom: 18px; }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tool {
  background: var(--cream); border-radius: var(--r-img); padding: 20px 18px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .4s var(--ease), background .3s;
}
.tool strong { font-size: 17px; font-weight: 700; }
.tool span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-66); }
.tool:hover { transform: translateY(-4px); background: var(--white); box-shadow: var(--shadow-soft); }

/* ---------- 03 work ---------- */
.work-section { text-align: left; }
.work-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(56px, 9vw, 120px);
}
.marker--blue { color: var(--blue); display: block; margin-bottom: 14px; }
.h2--work { font-size: var(--h2); line-height: 1.04; }
.sub--work { max-width: 32ch; font-size: 15px; margin: 0 0 10px; }
.work-list { display: flex; flex-direction: column; gap: clamp(56px, 9vw, 116px); }

.work-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: clamp(15px, 1.5vw, 21px); letter-spacing: .14em; line-height: 1; text-transform: uppercase;
  color: var(--c, var(--blue));
  margin-bottom: calc(-1 * clamp(38px, 6.8vw, 90px));
}
.work-label__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--blue)); flex: 0 0 auto; }

.arrow { display: inline-block; transition: transform .4s var(--ease); font-size: .6em; vertical-align: .18em; }

/* full-width feature */
.wfeature { display: block; }
.wfeature__media { border-radius: 22px; overflow: hidden; box-shadow: 0 26px 60px rgba(0, 0, 0, .28); background: var(--cream); }
.wfeature__media img { width: 100%; height: clamp(320px, 42vw, 560px); object-fit: cover; transition: transform 1s var(--ease-out); }
.wfeature:hover img { transform: scale(1.03); }
.wfeature:hover .arrow, .wpanel-link:hover .arrow { transform: translate(4px, -4px); }

.wmeta { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-top: 22px; }
.wmeta--sm { margin-top: 18px; }
.wmeta__title { font-size: clamp(26px, 3vw, 44px); line-height: 1.04; letter-spacing: -.02em; }
.wmeta__title--sm { font-size: clamp(22px, 2.2vw, 32px); }
.wmeta__desc { font-size: 14.5px; color: var(--ink-66); margin-top: 8px; max-width: 60ch; }
.wmeta__tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .55; white-space: nowrap; }

/* 2-up coloured panels */
.wgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 44px); align-items: stretch; }
.wgrid article { display: flex; flex-direction: column; }
.wpanel-link { display: flex; flex-direction: column; flex: 1; transition: transform .3s var(--ease); }
.wpanel-link:hover { transform: translateY(-4px); }
.wpanel {
  border-radius: 20px; background: var(--bg, var(--yellow));
  padding: clamp(22px, 3vw, 40px);
  display: flex; align-items: center; justify-content: center; flex: 1;
}
.wframe {
  width: min(100%, 420px);
  border: 9px solid var(--ink); border-radius: 28px; overflow: hidden;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .24); background: var(--ink);
  transition: transform .5s var(--ease);
}
.wframe img { width: 100%; height: auto; display: block; }
.wpanel-link:hover .wframe { transform: rotate(-1.5deg) scale(1.02); }

/* logo tiles */
.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 20px); align-items: stretch; }
.ltile {
  margin: 0; border-radius: 20px; background: var(--white); color: var(--ink);
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  padding: clamp(18px, 2.4vw, 32px);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.ltile img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ltile--wide { grid-column: span 2; aspect-ratio: 1.85 / 1; padding: clamp(20px, 3vw, 48px); }
.ltile--numevita { background: #000; }
.ltile--dhruvyn { padding: 0; background: #0D233F; }
.ltile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.logo-grid__caption { margin-top: 18px; font-size: 14px; color: var(--ink-50); }

.polaroids { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 10px 0; }
.polaroids .polaroid { width: 100%; justify-self: stretch; padding-bottom: 14px; }
.polaroids .polaroid img { aspect-ratio: 3 / 4; }
.polaroids .hand { font-size: 20px; }

/* ---------- pop-in: cards fly in from a corner with a little overshoot ---------- */
.pop-in {
  opacity: 0;
  transform: translate(var(--px, -64px), var(--py, -52px)) scale(.78) rotate(var(--pr, -5deg));
  transition: opacity .45s var(--pd, 0s), transform .68s cubic-bezier(.34, 1.56, .64, 1) var(--pd, 0s);
}
.pop-in.in { opacity: 1; transform: none; }
.pop-in.in.lesson, .pop-in.in.tool { transition: opacity .45s var(--pd, 0s), transform .68s cubic-bezier(.34, 1.56, .64, 1) var(--pd, 0s), box-shadow .5s, background .3s; }

/* ---------- AI kept in the loop ---------- */
.ai {
  grid-column: 1 / -1;
  margin-top: 28px;
  background: var(--ink); color: var(--cream);
  border-radius: var(--r-card);
  padding: clamp(28px, 3.5vw, 48px) clamp(22px, 3.5vw, 48px);
}
.ai__label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--cream);
  margin-bottom: 18px;
}
.ai__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.ai__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 110px); }
.ai__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid rgba(244, 238, 225, .18);
}
.ai__row strong { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; }
.ai__row span { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 238, 225, .5); text-align: right; }
.ai__note { margin-top: 26px; font-size: 15px; color: rgba(244, 238, 225, .62); max-width: 52ch; }

/* ---------- 04 life outside design: a wall of pegged polaroids ---------- */
.life { padding-bottom: 0; }
.wall {
  position: relative;
  width: 100vw; margin-left: calc(50% - 50vw);
  padding: clamp(48px, 6vw, 80px) 0 clamp(36px, 4vw, 56px);
  background-color: var(--cream-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .17 0 0 0 0 .12 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: inset 0 40px 60px -40px rgba(60, 45, 20, .18), inset 0 -40px 60px -40px rgba(60, 45, 20, .12);
  overflow: hidden;
}
.wall > .marker, .wall > .h2 { position: relative; z-index: 1; }
.wall > .marker { display: block; margin-bottom: 14px; }
.wall > .h2 { margin-bottom: clamp(28px, 4vw, 48px); }

/* the scrolling line */
.wall__line {
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.wall__line::-webkit-scrollbar { display: none; }
.wall__track { position: relative; display: flex; align-items: flex-start; gap: clamp(20px, 3vw, 44px); width: max-content; padding: 40px 0 clamp(56px, 7vw, 96px); }
.rope { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }

.pegs { display: contents; }
.pegs li {
  position: relative; flex: 0 0 auto;
  transform: translateY(var(--sag)) rotate(var(--r));
  transition: transform .45s var(--ease-out);
}
.pegs li:hover { transform: translateY(calc(var(--sag) - 8px)) rotate(0deg); z-index: 2; }
.peg {
  position: absolute; top: -17px; left: 50%; margin-left: -5px; z-index: 2;
  width: 10px; height: 30px; border-radius: 3px;
  background: linear-gradient(#CBAE85, #A5834F);
  box-shadow: 0 2px 4px rgba(23, 21, 15, .28);
}
.peg::after { content: ""; position: absolute; left: 1px; right: 1px; top: 12px; height: 2px; background: rgba(23, 21, 15, .22); }

.pegs .polaroid {
  width: clamp(160px, 19vw, 240px);
  background: var(--white); padding: 12px 12px 14px; border-radius: 3px;
  box-shadow: 0 16px 28px rgba(40, 30, 10, .22);
  transform: none;
}
.pegs .polaroid img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 2px; background: var(--cream); }
.pegs .polaroid figcaption { display: block; text-align: center; margin-top: 10px; font-size: 19px; color: var(--ink-82); }

.swipe {
  position: relative; z-index: 1;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-50);
  margin-top: 4px;
}
.under { position: relative; z-index: 1; margin-top: 14px; color: var(--ink-66); }

/* ---------- 04 lessons ---------- */
.lessons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; margin-top: 8px; }
.lesson {
  background: var(--cream); border-radius: var(--r-card); padding: 30px 30px 32px;
  display: grid; gap: 10px; position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.lesson::before { content: ""; position: absolute; inset: 0; background: var(--white); opacity: 0; transition: opacity .4s; }
.lesson > * { position: relative; }
.lesson:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.lesson:hover::before { opacity: 1; }
.lesson__num { font-size: 56px; color: var(--blue); line-height: 1; }
.lesson__label { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-66); margin-top: 6px; }
.lesson__title { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; max-width: 24ch; }

/* ---------- footer = contact, with draggable desk objects ---------- */
.footer {
  position: relative; overflow: hidden;
  margin-top: clamp(72px, 9vw, 130px);
  background: radial-gradient(120% 90% at 50% 0%, #1F2A22 0%, #17150F 55%, #0F0E0B 100%);
  color: var(--cream);
  border-top: 1.5px solid var(--ink);
}
.footer__inner {
  position: relative; z-index: 2; pointer-events: none;
  width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto;
  min-height: clamp(420px, 46vw, 580px);
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  text-align: center;
  padding: clamp(72px, 9vw, 130px) 0 30px;
}
.footer__inner a { pointer-events: auto; }
.footer__main { display: flex; flex-direction: column; align-items: center; }
.footer__marker { color: rgba(244, 238, 225, .55); margin-bottom: 18px; }
.footer__title { font-size: var(--h2); color: var(--cream); line-height: 1.04; max-width: 22ch; }
.footer__title .hl { color: var(--blue); }
.footer__title .hl::after { background: var(--yellow); }
.footer__role { margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(244, 238, 225, .55); }
.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px clamp(28px, 4vw, 56px); margin-top: 40px; }
.footer__links a {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; color: var(--cream);
  padding: 6px 2px; border-bottom: 1.5px solid transparent;
  transition: color .25s, border-color .25s, transform .35s var(--ease);
}
.footer__links svg { width: 26px; height: 26px; flex: 0 0 auto; }
.footer__links a:hover { color: var(--yellow); border-color: var(--yellow); transform: translateY(-2px); }
.footer__bottom {
  width: 100%; margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(244, 238, 225, .16);
  display: flex; justify-content: center; align-items: center;
  text-align: center;
}
.footer__copy { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(244, 238, 225, .55); }

.desk { position: absolute; inset: 0; z-index: 1; }
.desk__item {
  position: absolute; left: var(--x); top: var(--y); width: var(--w);
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r));
  cursor: grab; touch-action: none; user-select: none;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .45));
  transition: filter .3s;
  animation: desk-float 6s ease-in-out infinite;
}
.desk__item--plant { --r: -12deg; --x: 7%; --y: 11%; --w: clamp(140px, 14vw, 200px); }
.desk__item--pods { --r: 20deg; --x: 83%; --y: 58%; --w: clamp(90px, 9vw, 130px); animation-duration: 7.5s; animation-delay: -2s; }
.desk__item img { width: 100%; height: auto; display: block; pointer-events: none; }
.desk__item.is-dragging { animation: none; cursor: grabbing; filter: drop-shadow(0 34px 40px rgba(0, 0, 0, .55)); z-index: 5; }
.desk__item:hover { filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .5)); }
@keyframes desk-float {
  0%, 100% { transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r)); }
  50% { transform: translate(var(--dx, 0px), calc(var(--dy, 0px) - 10px)) rotate(calc(var(--r) + 2deg)); }
}

/* ---------- custom cursor ---------- */
.site-cursor {
  --cursor-color: var(--ink);
  --cursor-ink: var(--paper);
  position: fixed; top: 0; left: 0; z-index: 100;
  width: 104px; height: 78px;
  pointer-events: none;
  opacity: 0; visibility: hidden;
  transform: translate3d(-120px, -120px, 0);
  transition: opacity .18s, visibility .18s;
}
.site-cursor.is-visible { opacity: 1; visibility: visible; }
.site-cursor__arrow { position: absolute; top: 0; left: 0; width: 31px; height: 38px; color: var(--cursor-color); transition: color .16s cubic-bezier(.25, 1, .5, 1); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .18)); }
.site-cursor__label {
  position: absolute; top: 35px; left: 24px;
  display: grid; place-items: center; min-width: 72px; min-height: 38px; padding: 8px 18px;
  border-radius: 999px;
  background: var(--cursor-color); color: var(--cursor-ink);
  font-family: var(--body); font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(23, 21, 15, .14);
  transition: background-color .16s cubic-bezier(.25, 1, .5, 1), color .16s cubic-bezier(.25, 1, .5, 1), transform .16s cubic-bezier(.25, 1, .5, 1), opacity .12s;
  transform-origin: 20% 0;
}
.site-cursor.is-swapping .site-cursor__label { opacity: 0; transform: scale(.9); }
.site-cursor.is-down .site-cursor__label { transform: scale(.94); }
html.has-custom-cursor, html.has-custom-cursor * { cursor: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .card { width: 240px; min-height: 330px; }
  .fan:not(.in) .card { transform: translateX(calc((1.5 - var(--i)) * 212px)) translateY(60px); }
}
@media (max-width: 900px) {
  .hero-name { white-space: normal; text-wrap: balance; font-size: clamp(48px, 13.5vw, 72px); }
  .hero-card { margin-top: 12px; padding: 0 12px 12px; }
  .hero-doodle { width: 25px; height: 25px; stroke-width: 1.7; }
  .hero-doodle--coffee { width: 22px; height: 22px; top: 15%; left: 1%; }
  .hero-doodle--chai { width: 25px; height: 25px; left: -2%; }
  .hero-doodle--panda { width: 24px; height: 24px; right: 1%; }
  .hero-doodle--car { width: 28px; height: 28px; right: -2%; }
  .hero-doodle--tv { width: 21px; height: 21px; right: 3%; }
  .hero-doodle--brush { width: 20px; height: 20px; left: 2%; }
  .hero-polaroid { width: min(78%, 270px); }
  .about, .exp, .kit { grid-template-columns: 1fr; }
  .polaroid { justify-self: start; }
  .ai__list { grid-template-columns: 1fr; }
  .fan { flex-wrap: wrap; gap: 20px; padding-bottom: 24px; }
  .card { margin: 0; width: calc(50% - 10px); transform: rotate(calc(var(--r) * .3)) rotateX(var(--tx)) rotateY(var(--ty)); }
  .card:hover { transform: rotate(0deg) translateY(-10px); }
  .fan:not(.in) .card { transform: translateY(40px); }
  .polaroids { grid-template-columns: repeat(2, 1fr); }
  .lessons { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 0 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 32px var(--gutter); gap: 22px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease);
  }
  .nav__links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links > a:not(.btn) { font-size: 18px; letter-spacing: .12em; }
  .nav__burger { display: block; }
  body.menu-open { overflow: hidden; }
  .wgrid { grid-template-columns: 1fr; }
  .wall__about { grid-template-columns: 1fr; }
  .who, .roots, .emblem, .poll { grid-column: 1; grid-row: auto; }
  .emblem { justify-self: start; }
  .poll { justify-self: start; margin-top: 8px; }
  .desk__item--plant { --w: 76px; --x: 2%; --y: 1%; }
  .desk__item--pods { --w: 54px; --x: 84%; --y: 4%; }
  .logo-grid { grid-template-columns: 1fr 1fr; }
  .ltile--wide { grid-column: span 2; }
  .row { grid-template-columns: 80px 1fr; }
  .row__tag { grid-column: 2; }
  .row__body { grid-column: 2; }
  .row__year { grid-row: span 2; }
}
@media (max-width: 560px) {
  .card { width: 100%; min-height: 0; transform: rotate(calc(var(--r) * .15)); }
  .polaroids { grid-template-columns: 1fr 1fr; gap: 14px; }
  .polaroids .hand { font-size: 17px; }
  .wmeta__tag { white-space: normal; }
  .offclock__label { width: 100%; text-align: center; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .rise, .pop, .line__in, .pop-in { opacity: 1 !important; transform: none !important; }
  .hl::after { transform: rotate(-1.2deg) scaleX(1) !important; }
  .fan:not(.in) .card { opacity: 1; transform: rotate(var(--r)) translateY(var(--y)); }
  .hero__arrow .draw { stroke-dashoffset: 0; }
}
/* same as above, opt-in via ?motion=off (used for testing) */
.no-motion { scroll-behavior: auto; }
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; transition: none !important; }
.no-motion .reveal, .no-motion .rise, .no-motion .pop, .no-motion .line__in, .no-motion .pop-in { opacity: 1 !important; transform: none !important; }
.no-motion .hl::after { transform: rotate(-1.2deg) scaleX(1) !important; }
.no-motion .fan:not(.in) .card { opacity: 1; transform: rotate(var(--r)) translateY(var(--y)); }
.no-motion .hero__arrow .draw { stroke-dashoffset: 0; }
.no-motion .desk__item { animation: none; }
