/* ============ Tokens ============ */
:root {
  --paper: #ffffff;
  --paper-2: #f4f2ef;
  --ink: #111111;
  --ink-2: #555555;
  --line: #d9d6d1;
  --wine: #931a32;
  --wine-deep: #6e1124;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--wine); }
::selection { background: var(--wine); color: #fff; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.01em;
  font-size: clamp(48px, 8vw, 128px);
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.eyebrow--light { color: rgba(255,255,255,.7); }
.muted { color: var(--ink-2); }
.section-head { padding: 0 var(--pad); margin-bottom: clamp(48px, 8vw, 110px); }
.section-head--center { text-align: center; }

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  display: grid; place-items: center;
}
.loader__logo { width: 120px; }
.loader__count {
  position: absolute; right: var(--pad); bottom: 32px;
  font-family: var(--serif); font-size: clamp(64px, 12vw, 160px); line-height: 1;
}
.no-js .loader { display: none; }

/* ============ Progress + cursor ============ */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.progress span { display: block; height: 100%; background: var(--wine); transform-origin: 0 50%; transform: scaleX(0); }
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--wine);
  pointer-events: none; mix-blend-mode: multiply;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s;
  opacity: 0;
}
.cursor.is-big { width: 64px; height: 64px; margin: -32px 0 0 -32px; opacity: .25 !important; }
@media (hover: none) { .cursor { display: none; } }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: transform .5s var(--ease), background .3s;
}
.nav.is-solid { background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__brand img { width: 46px; }
.nav__name { font-size: 12px; line-height: 1.35; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.nav__name b { font-weight: 600; }
@media (max-width: 520px) { .nav__cta { display: none; } }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.nav__links a { position: relative; }
.nav__drop { position: relative; }
.nav__drop > a { display: inline-flex; align-items: center; gap: 6px; }
.nav__caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.nav__drop:hover .nav__caret, .nav__drop:focus-within .nav__caret { transform: translateY(1px) rotate(225deg); }
/* padding-top bridges the gap so the menu stays open while the mouse moves down */
.nav__sub {
  position: absolute; top: 100%; left: -18px; padding-top: 14px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s, transform .35s var(--ease), visibility .25s;
}
.nav__sub::before {
  content: ""; position: absolute; inset: 14px 0 0; z-index: -1;
  background: #fff; border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.12);
}
.nav__drop:hover .nav__sub, .nav__drop:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 11px 18px; min-width: 150px; color: var(--ink); }
.nav__sub a:first-child { padding-top: 16px; }
.nav__sub a:last-child { padding-bottom: 16px; }
.nav__sub a::after { display: none; }
.nav__sub a:hover { color: #8A1527; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 12px 22px; border-radius: 99px; background: var(--ink); color: #fff;
  transition: background .3s;
}
.nav__cta:hover { background: var(--wine); }
/* the menu now has Contact, so the "Let's talk" button only shows when the links are hidden */
@media (min-width: 1081px) { .nav__cta { display: none; } }
@media (max-width: 1080px) { .nav__links { display: none; } }

/* ============ Burger + mobile menu ============ */
.nav__burger {
  display: none; position: relative; width: 46px; height: 46px; margin-left: 12px;
  border: 0; border-radius: 50%; background: var(--ink); cursor: pointer;
  transition: background .3s;
}
.nav__burger span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; background: #fff;
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.nav__burger span:first-child { top: 19px; }
.nav__burger span:last-child { top: 26px; }
.menu-open .nav__burger { background: #8A1527; }
.menu-open .nav__burger span:first-child { top: 22.5px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 22.5px; transform: rotate(-45deg); }
.nav__cta { margin-left: auto; }
@media (max-width: 1080px) { .nav__burger { display: block; } }

.menu {
  position: fixed; inset: 0; z-index: 49;
  display: flex; align-items: center; padding: 110px var(--pad) 40px;
  background: var(--paper); overflow-y: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
.menu-open .nav { background: var(--paper); }
.menu-open { overflow: hidden; }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links > a, .menu__group > a {
  font-family: var(--serif); font-size: clamp(38px, 7vw, 64px); line-height: 1.1; color: var(--ink);
  transition: color .3s;
}
.menu__links > a, .menu__group {
  opacity: 0; transform: translateY(24px);
  transition: opacity .4s, transform .6s var(--ease);
}
.menu-open .menu__links > a, .menu-open .menu__group {
  opacity: 1; transform: none;
  transition-delay: calc(.2s + var(--i) * .06s);
}
.menu__links a:hover { color: #8A1527; }
.menu__sub { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 4px 0 10px 4px; }
.menu__sub a { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 4px 0; }

/* ============ Hero ============ */
.hero {
  position: relative;
  height: 100vh; min-height: 560px;
  background: var(--paper);
  isolation: isolate;
  padding: 104px var(--pad) 0;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
}
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, min(12.5vw, 18vh), 220px);
  line-height: .9; letter-spacing: -.02em;
  margin-top: 1vh; white-space: nowrap;
  display: flex; gap: .22em;
  position: relative; z-index: 3;
  /* white + difference = black on the white page, light over hair/sweater, so every word stays readable */
  color: #fff; mix-blend-mode: difference;
}
.hero__word { display: inline-block; will-change: transform; }
.hero__photo {
  position: relative; z-index: 2;
  flex: 1; min-height: 0; width: 100%;
  display: flex; justify-content: center; align-items: flex-start;
  margin-top: -5vh;
  transform-origin: 50% 15%;
  will-change: transform;
}
/* image is taller than the space left, so the feet run off the bottom and the figure reads bigger */
.hero__photo img { height: calc(100% + 18vh); width: auto; max-width: none; flex-shrink: 0; }
/* Side services, hidden until the mouse moves toward that side */
/* blend sits on the wrapper so it mixes with the page + photo, not an empty layer */
.hero__sides { position: absolute; inset: 0; z-index: 4; pointer-events: none; color: #fff; mix-blend-mode: difference; }
/* each line is placed at a random spot by main.js (layoutSides) */
.hero__side {
  position: absolute; inset: 0; list-style: none;
  font-family: var(--sans); font-size: clamp(10px, .82vw, 13px); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1;
}
.hero__side li {
  position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap;
  display: flex; align-items: center; gap: .9em;
  will-change: transform, opacity, filter;
}
.hero__side li::before { content: ""; width: 5px; height: 5px; background: currentColor; flex-shrink: 0; }
@media (hover: none), (max-width: 760px) { .hero__sides { display: none; } }

.hero__scroll {
  position: absolute; right: var(--pad); bottom: 32px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
}
.hero__scroll i { width: 1px; height: 56px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--wine);
  animation: drip 1.8s var(--ease) infinite;
}
@keyframes drip { to { top: 100%; } }
@media (max-width: 760px) {
  .hero { padding-top: 92px; }
  .hero__photo { margin-top: 0; }
  .hero__scroll { display: none; }
}

/* ============ Intro ============ */
/* Full-bleed light grey band; text left, cut-out portrait right with the head above the band */
.intro { padding: clamp(160px, 16vw, 240px) 0 clamp(100px, 10vw, 160px); }
.intro__band {
  position: relative;
  background: #f2f2f2;
  min-height: clamp(340px, 34vw, 500px);
  display: flex; align-items: center;
  padding: clamp(48px, 6vw, 96px) var(--pad);
}
.intro__quote { width: min(56%, 760px); position: relative; z-index: 2; }
.intro__mark { width: clamp(34px, 3.4vw, 52px); fill: var(--wine); margin-bottom: clamp(18px, 2vw, 28px); display: block; }
.intro__text {
  font-family: var(--serif); font-style: italic; color: #000;
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: 1.35;
}
.intro__photo {
  position: absolute; right: var(--pad); bottom: 0;
  height: 132%;            /* taller than the band, so the head rises above it */
  display: flex; align-items: flex-end;
  pointer-events: none;
}
.intro__photo img { height: 100%; width: auto; }
@media (max-width: 860px) {
  .intro { padding-top: 200px; }
  .intro__band { display: flow-root; min-height: 0; padding-top: 0; } /* flow-root stops the photo's negative margin collapsing */
  /* photo first, its head sticking up out of the band; quote underneath */
  .intro__photo { position: relative; right: auto; bottom: auto; height: 320px; margin: -120px auto 28px; justify-content: center; }
  .intro__quote { width: 100%; }
}

/* ============ Stats ============ */
/* Burgundy cards, white text; headline bold, label in the same font at regular weight */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 0 var(--pad);
}
.stat {
  background: #8A1527; color: #fff;
  padding: clamp(28px, 3vw, 44px) clamp(20px, 2vw, 32px);
  border-radius: 6px;
  font-family: var(--sans);
  display: flex; flex-direction: column; justify-content: flex-start;
  min-height: clamp(180px, 16vw, 240px);
}
.stat__head {
  display: block; font-weight: 700; line-height: 1;
  font-size: clamp(44px, 4.6vw, 72px); letter-spacing: -.02em;
}
.stat__head--word { font-size: clamp(28px, 2.6vw, 42px); line-height: 1.1; padding-top: .3em; }
.stat p { margin-top: 14px; font-size: 15px; font-weight: 400; line-height: 1.45; color: #fff; }
.stat p.stat__sub { margin-top: auto; padding-top: 14px; font-size: 13px; opacity: .8; }
@media (max-width: 1000px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } .stat { min-height: 0; } }

/* ============ Born (Kerala roadmap) ============ */
.born { margin-top: clamp(100px, 10vw, 160px); }
.born__pin { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: var(--paper); }
.born__meta {
  position: absolute; top: 96px; left: var(--pad); z-index: 2;
  display: flex; gap: 10px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2);
}
.born__meta span + span::before { content: "·"; margin-right: 10px; }
/* the stage keeps the artwork's 750×1165 proportions; everything inside is placed in % / cqw */
.born__pin { --stage-h: calc((100vh - 70px) * 1.3); --stage-w: calc(var(--stage-h) * 750 / 1165); }
.born__stage {
  position: absolute; right: 0; top: 70px;
  height: var(--stage-h); width: var(--stage-w); /* taller than the screen: south Kerala runs off the bottom, as in the artwork */
  container-type: inline-size;
}
.born__map, .born__kannur, .born__arrow { position: absolute; inset: 0; width: 100%; height: 100%; }
.born__kannur { transform-origin: 60% 21%; }
.born__label { position: absolute; left: 1.5%; top: 15.6%; color: #111; }
.born__label p { margin: 0; line-height: 1.15; white-space: nowrap; }
.born__l1 { font-family: var(--serif); font-size: 4.1cqw; line-height: 1 !important; }
.born__l2 { font-style: italic; font-size: 2.6cqw; }
.born__l3 { font-style: italic; font-size: 2.6cqw; margin-top: 2.4cqw !important; }
.born__l4 { font-size: 2.6cqw; }
.born__copy {
  position: absolute; left: var(--pad); top: 50%; transform: translateY(-44%);
  width: min(620px, calc(100% - var(--pad) - var(--stage-w) - 32px));
}
.born__title { font-size: clamp(40px, 4.4vw, 72px); line-height: 1; }
.born__boat { width: min(380px, 80%); margin: clamp(20px, 4vh, 44px) 0 clamp(16px, 3vh, 32px); }
.born__text { font-size: clamp(16px, 1.3vw, 20px); line-height: 1.5; color: #444; max-width: 40ch; }
.born__text em { color: #111; font-weight: 600; }
@media (max-width: 860px) {
  .born__pin { height: auto; min-height: 0; padding-top: 40px; }
  .born__meta { position: static; padding: 0 var(--pad); margin-bottom: 16px; }
  .born__stage { position: relative; top: 0; height: auto; width: min(100%, 520px); aspect-ratio: 750 / 1165; margin-left: auto; }
  .born__copy { position: static; transform: none; width: auto; padding: 32px var(--pad) 0; }
  .born__label { left: var(--pad); }
}

/* ============ Education ============ */
.edu__pin {
  position: relative; height: 100vh; min-height: 600px; overflow: hidden; background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px var(--pad) 40px;
  max-width: 1200px; margin: 0 auto;
}
.edu .born__meta { left: var(--pad); }
.edu__title { text-align: center; font-size: clamp(40px, min(5.4vw, 9vh), 88px); margin-bottom: clamp(16px, 4vh, 48px); }
.edu__row { display: grid; align-items: center; gap: 0; }
.edu__row--school { grid-template-columns: minmax(0, 1fr) clamp(90px, 11vw, 170px) auto; }
.edu__row--diploma { grid-template-columns: auto clamp(90px, 11vw, 170px) minmax(0, 1fr); margin-top: clamp(12px, 3vh, 40px); }
.edu__sketch { height: clamp(150px, 26vh, 270px); width: auto; display: block; }
.edu__arrow { width: 100%; height: auto; overflow: visible; }
.edu__arrow--1 { align-self: end; margin-bottom: 6%; }
.edu__arrow--2 { align-self: center; }
.edu__label--school { justify-self: end; padding-right: 8px; }
.edu__label--diploma { padding-left: 8px; }
.edu__label p { margin: 0; color: #111; line-height: 1.15; }
.edu__h { font-family: var(--serif); font-size: clamp(22px, min(2.4vw, 4.4vh), 36px); line-height: 1 !important; }
.edu__date, .edu__inst { font-style: italic; font-size: clamp(13px, min(1.25vw, 2.3vh), 18px); color: #333 !important; }
.edu__place { font-size: clamp(13px, min(1.25vw, 2.3vh), 18px); color: #333 !important; }
.edu__gap { margin-top: clamp(8px, 1.8vh, 18px) !important; }
.edu__text {
  align-self: flex-end; max-width: 46ch; margin-top: clamp(16px, 4vh, 48px);
  font-size: clamp(15px, min(1.4vw, 2.6vh), 22px); line-height: 1.45; color: #444;
}
.edu__text b, .edu__text em { color: #111; }
@media (max-width: 860px) {
  .edu__pin { height: auto; min-height: 0; padding: 40px var(--pad) 60px; }
  .edu .born__meta { position: static; padding: 0; margin-bottom: 16px; }
  .edu__title { text-align: left; }
  .edu__row--school, .edu__row--diploma { grid-template-columns: 1fr; gap: 20px; }
  .edu__row--diploma .edu__label { order: -1; }
  .edu__label--school { justify-self: start; padding: 0; }
  .edu__label--diploma { padding: 0; margin-top: 24px; }
  .edu__arrow { display: none; }
  .edu__sketch { height: auto; width: 100%; max-width: 420px; }
  .edu__text { align-self: auto; }
}

/* ============ Grew (Farah Photo) ============ */
.grew__pin {
  position: relative; height: 100vh; min-height: 600px; overflow: hidden; background: var(--paper);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: 120px var(--pad) 40px; max-width: 1400px; margin: 0 auto;
}
.grew .born__meta { left: var(--pad); }
.grew__copy { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: 2vh 0 4vh; }
.grew__title { font-size: clamp(40px, min(5.2vw, 10vh), 92px); line-height: 1; }
.grew__text { font-size: clamp(15px, min(1.4vw, 2.6vh), 22px); line-height: 1.45; color: #444; max-width: 34ch; }
.grew__text b, .grew__text em { color: #111; }
.grew__art { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.grew__studio { width: 100%; max-height: 52vh; object-fit: contain; object-position: left top; }
.grew__tag { display: flex; align-items: flex-end; gap: 6px; margin: 1.5vh 0 0 auto; padding-right: 2%; }
.grew__arrow { width: clamp(90px, 10vw, 150px); height: auto; margin-bottom: .2em; }
.grew__label p { margin: 0; color: #111; line-height: 1.15; }
@media (max-width: 860px) {
  .grew__pin { display: flex; flex-direction: column; align-items: stretch; height: auto; min-height: 0; padding: 40px var(--pad) 60px; }
  .grew__text { order: 3; } /* paragraph after the sketch on phones */
  .grew .born__meta { position: static; padding: 0; margin-bottom: 16px; }
  .grew__copy { display: contents; }
  .grew__title { margin-bottom: 24px; }
  .grew__studio { max-height: none; }
  .grew__tag { margin: 12px 0 28px auto; }
  .grew__arrow { width: 90px; }
}

/* ============ Arrived (Qatar roadmap) ============ */
.arrived__pin {
  position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: var(--paper);
  --stage-h: calc(100vh - 100px); --stage-w: calc(var(--stage-h) * 610 / 720);
}
.arrived .born__meta { z-index: 3; }
.arrived__india {
  position: absolute; left: 0; bottom: 0; height: 62%; width: auto; z-index: 0;
  pointer-events: none;
}
.arrived__stage {
  position: absolute; right: 0; top: 84px;
  height: var(--stage-h); width: var(--stage-w);
  container-type: inline-size; z-index: 1;
}
.arrived__map, .arrived__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.arrived__ring { transform-box: fill-box; transform-origin: center; animation: dohaPulse 1.8s ease-out infinite; }
@keyframes dohaPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.arrived__label { position: absolute; left: 1.1%; top: 16.4%; color: #111; }
.arrived__label p { margin: 0; line-height: 1.15; white-space: nowrap; }
.arrived__l1 { font-family: var(--serif); font-size: 5.2cqw; line-height: 1 !important; }
.arrived__l2, .arrived__l3 { font-style: italic; font-size: 3.3cqw; }
.arrived__l3 { margin-top: 2.9cqw !important; }
.arrived__l4 { font-size: 3.3cqw; }
.arrived__copy {
  position: absolute; left: var(--pad); top: 50%; transform: translateY(-44%); z-index: 2;
  width: min(620px, calc(100% - var(--pad) - var(--stage-w) - 32px));
}
.arrived__title { font-size: clamp(40px, 4.4vw, 72px); line-height: 1; }
.arrived__camels { width: auto; max-width: min(420px, 85%); max-height: 30vh; margin: clamp(16px, 3.5vh, 40px) 0 clamp(12px, 2.5vh, 28px); }
.arrived__text { font-style: italic; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.5; color: #444; max-width: 44ch; }
.arrived__text b { color: #111; font-weight: 700; }
@media (max-width: 860px) {
  .arrived__pin { height: auto; min-height: 0; padding: 40px 0 0; }
  .arrived__india { height: 46%; opacity: .5; }
  .arrived__stage { position: relative; top: 0; height: auto; width: min(calc(100% - var(--pad)), 460px); aspect-ratio: 610 / 720; margin-left: auto; }
  /* slightly smaller label so it ends before the arrowhead on narrow screens */
  .arrived__l1 { font-size: 4.6cqw; }
  .arrived__l2, .arrived__l3, .arrived__l4 { font-size: 2.9cqw; }
  .arrived__copy { position: relative; transform: none; width: auto; padding: 32px var(--pad) 60px; }
}

/* ============ Skills ============ */
.skills { padding: clamp(100px, 11vw, 160px) 0 0; }
/* heading and skill names at 40% of their old size (old: clamp(48px, 8vw, 128px) / clamp(32px, 4.4vw, 68px)) */
.section-head--sm { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--sm .display { font-size: clamp(30px, 3.2vw, 52px); line-height: 1.02; }
.skill-list { list-style: none; border-top: 1px solid var(--line); margin: 0 var(--pad); }
.skill {
  position: relative;
  display: grid; grid-template-columns: 36px 44px minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  overflow: hidden; cursor: default;
}
.skill::before {
  content: ""; position: absolute; inset: 0; background: var(--wine);
  transform: translateY(101%); transition: transform .55s var(--ease); z-index: -1;
}
.skill:hover::before { transform: translateY(0); }
.skill:hover, .skill:hover .skill__n, .skill:hover p { color: #fff; }
.skill { z-index: 0; transition: color .4s, padding .4s var(--ease); }
.skill:hover { padding-left: 20px; }
.skill__n { font-size: 12px; letter-spacing: .06em; color: var(--ink-2); transition: color .4s; }
.skill__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper-2); color: #8A1527; transition: background .4s, color .4s;
}
.skill__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skill:hover .skill__icon { background: rgba(255,255,255,.14); color: #fff; }
.skill h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.1; }
.skill p { font-size: 14px; color: var(--ink-2); text-align: right; transition: color .4s; }
@media (max-width: 760px) {
  .skill { grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; }
  .skill__n { display: none; }
  .skill__icon { grid-row: span 2; }
  .skill p { grid-column: 2; text-align: left; font-size: 13px; }
}


/* ============ Tools ============ */
.tools { padding: clamp(100px, 11vw, 160px) 0; overflow: hidden; }
.marquee { white-space: nowrap; overflow: hidden; padding: 8px 0; }
.marquee + .marquee { margin-top: 12px; }
.marquee__inner { display: inline-flex; will-change: transform; }
/* names at 40% of their old size (old: clamp(44px, 7vw, 112px)) */
.marquee span {
  font-family: var(--serif); font-size: clamp(22px, 2.8vw, 44px); line-height: 1.2;
  padding: 0 .5em; display: inline-flex; align-items: center; gap: .4em;
}
.marquee span::after { content: "•"; color: var(--wine); font-size: .4em; margin-left: 1.1em; -webkit-text-stroke: 0; }
.marquee--alt span { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--ink); }
/* app-tile style badge in front of each software name */
.tl {
  display: inline-grid; place-items: center; flex: none;
  background: var(--bg); color: var(--fg); -webkit-text-stroke: 0;
  font: 700 .42em/1 var(--sans); font-style: normal; letter-spacing: -.01em;
  width: 2.75em; height: 2.75em; border-radius: .62em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 4px 12px rgba(0,0,0,.12);
}
.tools__note {
  max-width: 640px; margin: 72px auto 0; padding: 0 var(--pad);
  font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2); text-align: center;
}
.tools__note em { font-weight: 600; }

/* ============ Unfiltered ============ */
.unfiltered { padding: clamp(120px, 16vw, 220px) 0; background: var(--paper-2); overflow: hidden; }
.orbit { position: relative; height: min(110vh, 900px); max-width: 1200px; margin: 0 auto; }
.orbit__face {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%);
  width: clamp(160px, 22vw, 280px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 6px solid #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.25);
}
.orbit__face img { width: 100%; height: 100%; object-fit: cover; }
.chip {
  position: absolute; left: calc(50% + var(--x)); top: calc(45% + var(--y));
  translate: -50% -50%;
  white-space: nowrap; font-size: clamp(12px, 1.2vw, 15px);
  background: #fff; border: 1px solid var(--line); border-radius: 99px;
  padding: 12px 22px; box-shadow: 0 10px 30px -15px rgba(0,0,0,.2);
}
@media (max-width: 760px) {
  .orbit { height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0 var(--pad); }
  .orbit__face { position: relative; left: auto; top: auto; transform: none; margin: 0 auto 32px; flex-basis: 100%; max-width: 200px; }
  .chip { position: static; translate: none; }
}

/* ============ Work ============ */
.work { padding: clamp(120px, 16vw, 220px) 0; }
.work__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 340px; gap: 20px;
  margin: 0 var(--pad);
}
.tile { position: relative; overflow: hidden; border-radius: 6px; background: var(--ink); color: #fff; cursor: pointer; }
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile__art, .tile__img {
  position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.tile__art {
  background:
    radial-gradient(circle at 30% 30%, hsl(var(--h) 60% 45% / .9), transparent 60%),
    radial-gradient(circle at 80% 80%, hsl(calc(var(--h) + 40) 60% 30% / .9), transparent 55%),
    #1a1a1a;
}
.tile:hover .tile__art, .tile:hover .tile__img { transform: scale(1.06); }
.tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}
.tile__cap span { font-size: 12px; opacity: .7; }
.tile__cap h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; }
.tile__cap p { font-size: 13px; opacity: .75; }
@media (max-width: 860px) {
  .work__grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .tile--tall, .tile--wide { grid-row: auto; grid-column: auto; }
}

/* ============ Contact ============ */
.contact {
  background: var(--wine); color: #fff;
  padding: clamp(90px, 9vw, 140px) var(--pad) 90px;
}
/* title and email at 30% of their old size (old: clamp(48px, 8vw, 128px) and clamp(22px, 3.4vw, 48px)) */
.contact__title { font-size: clamp(30px, 2.6vw, 40px); }
.contact__title em { color: #fff; opacity: .7; }
.contact__mail {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28px; font-size: clamp(15px, 1.05vw, 16px); font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 4px;
  transition: border-color .3s;
}
.contact__mail:hover { border-color: #fff; }
.contact__mail i { font-style: normal; transition: transform .4s var(--ease); }
.contact__mail:hover i { transform: translate(4px, -4px); }
.contact__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-top: 72px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.25);
}
.contact__grid span { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .65; margin-bottom: 10px; }
.contact__line { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; white-space: nowrap; }
.contact__line svg { width: 17px; height: 17px; flex: none; fill: currentColor; opacity: .85; }
.contact__line svg[fill="none"] { fill: none; }
.contact__line small { font-size: 12px; opacity: .65; }
.contact__grid a:hover { text-decoration: underline; }
@media (max-width: 1100px) { .contact__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .contact__grid { grid-template-columns: 1fr; } }

/* ============ Footer ============ */
.footer {
  background: var(--ink); color: #fff; padding: 72px var(--pad) 32px;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px 32px;
}
.footer__brand { display: flex; align-items: center; gap: 22px; }
.footer__logo { width: 64px; flex: none; }
.footer__brand p { font-size: clamp(20px, 2vw, 28px); font-family: var(--serif); line-height: 1.15; }
.footer__ar { opacity: .5; margin-top: 2px; text-align: left; }
.footer__social { display: flex; align-items: center; gap: 12px; }
.footer__social span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .65; margin-right: 6px; }
.footer__social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); transition: background .3s, border-color .3s;
}
.footer__social a:hover { background: var(--wine); border-color: var(--wine); }
.footer__social svg { width: 19px; height: 19px; fill: currentColor; }
.footer__social svg[fill="none"] { fill: none; }
.footer__copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); opacity: .4; font-size: 12px; }
@media (max-width: 640px) {
  .footer { grid-template-columns: 1fr; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .hero__scroll i::after { animation: none; }
  .intro__text .w { opacity: 1 !important; }
}
