:root {
  color-scheme: light;
  --bg: #f2ecdd;
  --bg-2: #eae2ce;
  --ink: #1e1b16;
  --muted: #6b6455;
  --line: #d8d0bc;
  --green: #2a5b78;
  --green-soft: #dce6ed;
  --amber: #7a5314;
  --amber-soft: #f0e4c8;
  --serif: "Instrument Serif", serif;
  --sans: "Space Grotesk", sans-serif;
  --anton: "Anton", sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
[id] {
  scroll-margin-top: 84px;
}
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
::selection {
  background: var(--green);
  color: var(--bg);
}
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 2px;
}
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* custom cursor (fine pointers only) */
@media (pointer: fine) {
  .cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd8ca;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition:
      width 0.25s,
      height 0.25s,
      background 0.25s;
    mix-blend-mode: difference;
  }
  .cursor.big {
    width: 52px;
    height: 52px;
    background: var(--green);
    opacity: 0.25;
  }
}
@media (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* preloader */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transition:
    opacity 0.7s ease,
    visibility 0.7s;
}
#loader.done {
  opacity: 0;
  visibility: hidden;
}
#loader .type {
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 52px);
  font-style: italic;
  min-height: 1.4em;
  text-align: center;
  padding: 0 24px;
}
#loader .caret {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--ink);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
#loader .wpm {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
#loader .wpm b {
  color: var(--green);
  font-size: 20px;
  letter-spacing: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
#loader #restTxt {
  color: var(--muted);
  opacity: 0.45;
}
#loader .race-hint {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 0 24px;
  max-width: 100%;
}
#loader .race-hint.verdict {
  color: var(--green);
  letter-spacing: 0.14em;
  text-transform: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
}
#loader .type.err .caret {
  background: #c93b3b;
}
@media (pointer: coarse) {
  #loader .race-hint {
    display: none;
  }
}
@media (max-width: 760px) {
  #loader .type {
    font-size: clamp(21px, 6.2vw, 30px);
    min-height: 3em;
    max-width: 34ch;
  }
  #loader .skip {
    padding: 14px 20px;
    min-height: 44px;
  }
}
#loader .skip {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
#loader .skip:hover {
  color: var(--ink);
}

/* nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.nav .logo {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
}
.nav nav {
  display: flex;
  gap: 26px;
}
.nav nav a {
  text-decoration: none;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  position: relative;
}
.nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 1px;
  width: 0;
  background: var(--ink);
  transition: width 0.3s;
}
.nav nav a:hover {
  color: var(--ink);
}
.nav nav a:hover::after {
  width: 100%;
}
.nav .clock {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
@media (max-width: 760px) {
  .nav nav {
    display: none;
  }
}

/* reveal system */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.65, 0.25, 1),
    transform 0.8s cubic-bezier(0.2, 0.65, 0.25, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.d1 {
  transition-delay: 0.08s;
}
.reveal.d2 {
  transition-delay: 0.16s;
}
.reveal.d3 {
  transition-delay: 0.24s;
}

/* hero word stagger */
.stag .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.stag .w span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.stag.in .w span {
  transform: none;
}

/* hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  position: relative;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(44px, 8.6vw, 118px);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 12ch;
}
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--green);
}
.hero .sub {
  margin-top: 36px;
  max-width: 52ch;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
}
.hero .sub b {
  color: var(--ink);
  font-weight: 600;
}
.hero .scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

/* marquee */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
  white-space: nowrap;
  background: var(--bg-2);
}
.marquee .track {
  display: inline-block;
  animation: mq 30s linear infinite;
  animation-duration: 38s;
}
.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  margin: 0 30px;
  color: var(--ink);
}
.marquee i {
  font-style: normal;
  color: var(--green);
}
@keyframes mq {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* statement */
.statement {
  padding: clamp(90px, 14vw, 170px) 0;
}
.statement p {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(26px, 4.4vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.statement em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}
.statement .cap {
  margin-top: 30px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* journey */
.sec-label {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.sec-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.journey {
  padding: 20px 0 60px;
}
.j-row {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  gap: clamp(20px, 4vw, 60px);
  padding: clamp(30px, 4vw, 46px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.j-row:last-child {
  border-bottom: 0;
}
.j-age {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.9;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.j-age small {
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.j-body h3 {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.j-body p {
  color: var(--muted);
  max-width: 58ch;
}
.j-body p b {
  color: var(--ink);
  font-weight: 600;
}

/* work */
.work {
  padding: clamp(80px, 12vw, 150px) 0;
}
.w-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: clamp(14px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(24px, 3.4vw, 38px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  position: relative;
  transition: padding-left 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.w-row:hover {
  padding-left: 18px;
}
.w-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--green);
  transform: scaleY(0);
  transition: transform 0.35s;
  transform-origin: top;
}
.w-row:hover::before {
  transform: scaleY(1);
}
.w-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--muted);
}
.w-main h3 {
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline;
}
.w-main .role {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 14px;
  white-space: nowrap;
}
.w-main p {
  color: var(--muted);
  margin-top: 10px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.7;
}
.w-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  white-space: nowrap;
  justify-self: end;
}
.t-green {
  background: var(--green-soft);
  color: var(--green);
}
.t-amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.t-ink {
  background: var(--ink);
  color: var(--bg);
}
@media (max-width: 700px) {
  .w-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .w-num {
    display: none;
  }
  .w-tag {
    justify-self: start;
  }
}

/* belief */
.belief {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(100px, 15vw, 190px) 0;
  position: relative;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  margin-top: -28px;
  z-index: 2;
  box-shadow: 0 -34px 70px -44px rgba(30, 27, 22, 0.55);
}
.belief .ghost {
  position: absolute;
  top: -0.08em;
  left: -0.04em;
  font-family: var(--serif);
  font-size: clamp(300px, 46vw, 700px);
  line-height: 1;
  color: var(--bg);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.belief .wrap {
  position: relative;
  z-index: 1;
}
.belief .b-eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8b857a;
  margin-bottom: clamp(26px, 4vw, 44px);
  display: flex;
  align-items: center;
  gap: 14px;
}
.belief .b-eyebrow::after {
  content: "";
  width: 64px;
  height: 1px;
  background: #3a362e;
}
.belief .cap {
  margin-top: clamp(28px, 4vw, 44px);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8b857a;
}

/* off the clock */
.off {
  padding: clamp(90px, 13vw, 160px) 0;
}
.off-line {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  padding: clamp(16px, 2.4vw, 26px) 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.off-line:last-of-type {
  border-bottom: 0;
}
.off-line .note {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(15px, 1.8vw, 20px);
  color: var(--muted);
  letter-spacing: 0;
}
.off .quote {
  margin-top: clamp(50px, 7vw, 80px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(32px, 5vw, 56px);
  transform: rotate(-0.6deg);
}
.off .quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.35;
  max-width: 30ch;
}
.off .quote .sig {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* now */
.now {
  padding-bottom: clamp(80px, 10vw, 130px);
}
.now ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  list-style: none;
}
.now li {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 20px;
  font-size: 15px;
  background: #fffdf6;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.now li:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -18px rgba(30, 27, 22, 0.35);
}
.now li::before {
  content: "●";
  color: var(--green);
  font-size: 9px;
  margin-right: 10px;
  vertical-align: 2px;
}

/* contact */
.contact {
  padding: clamp(100px, 15vw, 180px) 0;
  text-align: center;
}
.contact h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(42px, 9vw, 110px);
  letter-spacing: -0.035em;
  line-height: 1;
}
.contact h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}
.contact .mail {
  display: inline-block;
  margin-top: 38px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.6vw, 26px);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition:
    color 0.3s,
    border-color 0.3s;
}
.contact .mail:hover {
  color: var(--green);
  border-color: var(--green);
}
.contact .socials {
  margin-top: 30px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.contact .socials a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 14px;
}
.contact .socials a:hover {
  color: var(--ink);
}
footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
footer .em {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 21px;
  color: var(--ink);
}

/* mood tints (sound themes recolor the accent) */
body[data-mood="monsoon"] {
  --green: #2a5b78;
  --green-soft: #dce6ed;
}
body[data-mood="latenight"] {
  --green: #5b4a82;
  --green-soft: #e4dfee;
}
body[data-mood="housetrack"] {
  --green: #2a5b78;
  --green-soft: #dce6ed;
}
body[data-mood="coffeeshop"] {
  --green: #7a4e2d;
  --green-soft: #efe3d3;
}
body[data-mood="breeze"] {
  --green: #1f5c45;
  --green-soft: #dce7df;
}

/* welcome / sound panel */
.panel {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 200;
  width: min(340px, calc(100vw - 40px));
  background: #fbf7eb;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 26px 22px;
  box-shadow: 0 30px 60px -30px rgba(30, 27, 22, 0.45);
  transition:
    opacity 0.5s,
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.panel.hide {
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
}
.panel h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.panel .p-sub {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--muted);
  margin: 10px 0 20px;
  line-height: 1.65;
}
.p-on {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--ink);
  border-radius: 100px;
  padding: 11px 20px;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s;
}
.p-on:hover {
  background: var(--ink);
  color: var(--bg);
}
.p-on .bars {
  display: inline-flex;
  gap: 3px;
  align-items: flex-end;
  height: 14px;
  width: 21px;
  flex-shrink: 0;
  margin-right: 12px;
}
.p-on .bars i {
  width: 3px;
  border-radius: 2px;
  background: currentColor;
  transition: height 0.3s;
  margin-right: 3px;
}
.p-on .bars i:last-child {
  margin-right: 0;
}
.p-on .bars i:nth-child(1) {
  height: 6px;
}
.p-on .bars i:nth-child(2) {
  height: 11px;
}
.p-on .bars i:nth-child(3) {
  height: 7px;
}
.p-on .bars i:nth-child(4) {
  height: 13px;
}
.p-on.playing .bars i {
  animation: eq2 1.1s ease-in-out infinite;
}
.p-on.playing .bars i[style] {
  animation: none;
}
.p-on.playing .bars i:nth-child(2) {
  animation-delay: 0.15s;
}
.p-on.playing .bars i:nth-child(3) {
  animation-delay: 0.3s;
}
.p-on.playing .bars i:nth-child(4) {
  animation-delay: 0.45s;
}
@keyframes eq {
  0%,
  100% {
    height: 4px;
  }
  50% {
    height: 12px;
  }
}
.moods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}
.mood {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: none;
  border-radius: 100px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.25s;
  color: var(--muted);
}
.mood:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.mood.on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.vol {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.vol input {
  flex: 1;
}
.vol b {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.p-dismiss {
  width: 100%;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 11px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.25s;
}
.p-dismiss:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.sound-mini {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 16px;
}
.sound-mini:hover {
  color: var(--ink);
}

/* hero portrait card */
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  will-change: transform, opacity;
  transform-origin: center 30%;
}
.portrait {
  justify-self: end;
  position: relative;
  transform: rotate(2.4deg);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  max-width: 340px;
  width: 100%;
}
.portrait:hover {
  transform: rotate(0);
}
.portrait .frame {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 14px 18px;
  border-radius: 4px;
  box-shadow: 0 26px 50px -26px rgba(30, 27, 22, 0.4);
}
.portrait .ph {
  aspect-ratio: 1/1;
  border-radius: 2px;
  overflow: hidden;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.portrait .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait .ph .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
}
.portrait .ph .placeholder svg {
  width: 58px;
  height: 58px;
  opacity: 0.7;
}
.portrait figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  text-align: center;
  margin-top: 12px;
  color: #1e1b16;
}
.portrait .tape2 {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 104px;
  height: 26px;
  background: rgba(214, 196, 150, 0.65);
  border-left: 1px dashed rgba(0, 0, 0, 0.06);
  border-right: 1px dashed rgba(0, 0, 0, 0.06);
}
.portrait .badge17 {
  position: absolute;
  right: -16px;
  bottom: 34px;
  background: var(--green);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 13px;
  border-radius: 100px;
  transform: rotate(6deg);
}
@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .portrait {
    justify-self: center;
    margin-top: 34px;
    max-width: 280px;
  }
}

/* attention-to-detail layer */

/* scroll progress in nav */
.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  background: var(--green);
  width: 0;
  transition: width 0.1s linear;
}
.nav .pct {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 12px;
  margin-right: 16px;
}

/* scrollspy active link */
.nav nav a.active {
  color: var(--ink);
}
.nav nav a.active::after {
  width: 100%;
}

/* condensed editorial voices (the Abdullah register) */
.statement p {
  font-family: var(--anton);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(34px, 6.4vw, 86px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  max-width: 16ch;
}
.belief .q {
  font-family: var(--anton);
  text-transform: uppercase;
  font-size: clamp(34px, 6vw, 78px);
  line-height: 1.04;
  max-width: 16ch;
  letter-spacing: 0.005em;
}
.belief .q-em {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 4.6vw, 60px);
  line-height: 1.1;
  color: #9dc3af;
  margin-top: 0.2em;
  max-width: 20ch;
}
.off-line {
  font-family: var(--anton);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

/* corner-bracket crop marks on the portrait */
.portrait .frame {
  position: relative;
}
.crop {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  opacity: 0.55;
}
.crop.tl {
  top: -10px;
  left: -10px;
  border-right: 0;
  border-bottom: 0;
}
.crop.tr {
  top: -10px;
  right: -10px;
  border-left: 0;
  border-bottom: 0;
}
.crop.bl {
  bottom: -10px;
  left: -10px;
  border-right: 0;
  border-top: 0;
}
.crop.br {
  bottom: -10px;
  right: -10px;
  border-left: 0;
  border-top: 0;
}

/* floating mood pill (appears when panel is dismissed) */
.pill {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 210;
  display: none;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  background: #fbf7eb;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 13px 22px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 18px 40px -20px rgba(30, 27, 22, 0.4);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -20px rgba(30, 27, 22, 0.5);
}
.pill.show {
  display: inline-flex;
}
.pill .bars {
  display: inline-flex;
  gap: 3px;
  align-items: flex-end;
  height: 14px;
  width: 21px;
  flex-shrink: 0;
  margin-right: 12px;
}
.pill .bars i {
  width: 3px;
  border-radius: 2px;
  background: var(--green);
  transition: height 0.3s;
  margin-right: 3px;
}
.pill .bars i:last-child {
  margin-right: 0;
}
.pill .bars i:nth-child(1) {
  height: 6px;
}
.pill .bars i:nth-child(2) {
  height: 11px;
}
.pill .bars i:nth-child(3) {
  height: 7px;
}
.pill .bars i:nth-child(4) {
  height: 13px;
}
@media (prefers-reduced-motion: no-preference) {
  .pill.playing .bars i {
    animation: eq2 1.1s ease-in-out infinite;
  }
}
.pill.playing .bars i[style] {
  animation: none;
}
.pill.playing .bars i:nth-child(2) {
  animation-delay: 0.18s;
}
.pill.playing .bars i:nth-child(3) {
  animation-delay: 0.36s;
}
.pill.playing .bars i:nth-child(4) {
  animation-delay: 0.54s;
}
@keyframes eq2 {
  0%,
  100% {
    height: 5px;
  }
  50% {
    height: 14px;
  }
}

/* dark contact with giant baseline name */
.contact-wrap {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  margin-top: -28px;
  position: relative;
  z-index: 3;
  box-shadow: 0 -34px 70px -44px rgba(30, 27, 22, 0.55);
}
.contact h2 {
  font-family: var(--anton);
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(60px, 13vw, 180px);
  line-height: 0.95;
}
.contact h2 em {
  font-family: var(--serif);
  text-transform: none;
  color: #9dc3af;
  font-size: 0.9em;
}
.contact .mail {
  border-color: var(--bg);
}
.contact .mail:hover {
  color: #9dc3af;
  border-color: #9dc3af;
}
.contact .socials a {
  color: #8b857a;
}
.contact .socials a:hover {
  color: var(--bg);
}
.giant {
  font-family: var(--anton);
  text-transform: uppercase;
  font-size: clamp(70px, 15.5vw, 230px);
  line-height: 0.78;
  text-align: center;
  color: var(--bg);
  opacity: 0.96;
  margin-top: clamp(50px, 8vw, 110px);
  margin-bottom: -0.12em;
  white-space: nowrap;
  user-select: none;
}
.contact-wrap footer {
  border-top: 1px solid #3a362e;
  color: #8b857a;
  padding-top: 34px;
  padding-bottom: 34px;
}
.contact-wrap footer .em {
  color: var(--bg);
  opacity: 0.95;
}

/* scrapbook collage around the hero portrait */
.portrait {
  max-width: 330px;
}
.portrait .frame {
  transform: rotate(0);
}
.pnote {
  position: absolute;
  font-family: "Caveat", cursive;
  font-weight: 700;
  color: #1e1b16;
  background: #fff9e3;
  border: 1px solid #ede4c4;
  padding: 12px 16px;
  line-height: 1.25;
  box-shadow: 0 10px 22px -12px rgba(30, 27, 22, 0.35);
  z-index: 3;
  will-change: transform;
}
.pnote-a {
  top: -34px;
  left: -70px;
  font-size: 19px;
  transform: translateY(var(--py, 0)) rotate(-6deg);
  max-width: 150px;
}
.pnote-b {
  bottom: 44px;
  right: -64px;
  font-size: 18px;
  transform: translateY(var(--py, 0)) rotate(4deg);
  max-width: 140px;
}
.pnote .tape3 {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 60px;
  height: 20px;
  background: rgba(214, 196, 150, 0.7);
}
.doodle {
  position: absolute;
  color: var(--ink);
  opacity: 0.55;
  pointer-events: none;
  z-index: 2;
}
.doodle.plane {
  top: -58px;
  right: -30px;
  width: 90px;
  transform: translateY(var(--py, 0)) rotate(8deg);
}
.doodle.star1 {
  bottom: -20px;
  left: -34px;
  width: 26px;
  animation: twinkle 3s ease-in-out infinite;
}
.doodle.star2 {
  top: 34%;
  right: -46px;
  width: 18px;
  animation: twinkle 3s ease-in-out 1s infinite;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.2;
    transform: scale(0.8);
  }
}
.stamp2 {
  position: absolute;
  left: -28px;
  bottom: 88px;
  transform: translateY(var(--py, 0)) rotate(-10deg);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stampc, #c93b3b);
  border: 2px solid currentColor;
  border-radius: 6px;
  padding: 6px 10px;
  opacity: 0.8;
  z-index: 3;
}
@media (max-width: 880px) {
  .pnote-a {
    left: -8px;
  }
  .pnote-b {
    right: -8px;
  }
  .stamp2 {
    left: -4px;
  }
  .doodle.plane {
    right: 0;
  }
}

/* off-the-clock photo strip (hides slots with no image) */

/* now rows: sequential entrance matching the site's reveal language */
.now .nrow {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.65, 0.25, 1),
    transform 0.7s cubic-bezier(0.2, 0.65, 0.25, 1),
    box-shadow 0.3s;
}
.now .nrow.in {
  opacity: 1;
  transform: none;
}
.now .nrow:hover {
  transform: translateY(-4px);
}

/* easter egg: the cricket ball */
.cricket-ball {
  position: fixed;
  bottom: 26px;
  left: -70px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  z-index: 400;
  pointer-events: none;
  background: radial-gradient(circle at 30% 30%, #e05545, #a82b20 70%);
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.45);
  animation: bowl 2.8s cubic-bezier(0.25, 0.6, 0.35, 1) forwards;
}
.cricket-ball::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(255, 246, 230, 0.85);
  border-top: none;
  border-bottom: none;
  transform: rotate(12deg);
}
@keyframes bowl {
  from {
    transform: translateX(0) rotate(0);
  }
  to {
    transform: translateX(calc(100vw + 140px)) rotate(1440deg);
  }
}
.howzat {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  z-index: 400;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 30px;
  color: var(--green);
  opacity: 0;
  animation: hz 2.6s ease forwards;
  pointer-events: none;
}
@keyframes hz {
  12% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* dark scenes rise over the page */
.scene {
  transform: translateY(70px);
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.scene.in {
  transform: none;
}

/* statement words fill with ink as you scroll */
.statement.fx p .sw {
  color: var(--line);
  transition: color 0.35s;
}
.statement p .sw.on {
  color: inherit;
}

/* copy email */
.copy-mail {
  margin-left: 14px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: none;
  border: 1px solid #3a362e;
  color: #8b857a;
  border-radius: 100px;
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.25s;
  vertical-align: middle;
}
.copy-mail:hover {
  color: var(--bg);
  border-color: var(--bg);
}
.copy-mail.ok {
  color: #9dc3af;
  border-color: #9dc3af;
}

/* pronunciation chip */
.pron {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 14px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  border: 1px solid var(--line);
  background: #fbf7eb;
  border-radius: 100px;
  padding: 6px 13px;
  cursor: pointer;
  color: var(--ink);
  transition:
    border-color 0.25s,
    transform 0.25s;
  vertical-align: middle;
}
.pron:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.pron.speaking {
  border-color: var(--green);
  color: var(--green);
}

/* hierarchy + interaction layer */
header {
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
header.hidden {
  transform: translateY(-100%);
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 999;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

/* stat counters */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-top: clamp(40px, 6vw, 70px);
}
.stat {
  background: var(--bg);
  padding: clamp(20px, 3vw, 32px);
}
.stat b {
  font-family: var(--anton);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 52px);
  display: block;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat b i {
  font-style: normal;
  color: var(--green);
}
.stat .label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 8px;
}
.stat b span {
  font: inherit;
  color: inherit;
  letter-spacing: 0;
}

/* the headline: featured full-time rows */
.headline-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.6vw, 28px);
  color: var(--ink);
  max-width: 34ch;
  margin-bottom: clamp(30px, 4vw, 50px);
}
.headline-note b {
  color: var(--green);
  font-style: normal;
  font-family: var(--anton);
  font-weight: 400;
  text-transform: uppercase;
}
.w-row.featured {
  background: #fbf7eb;
  border: 1px solid var(--line);
  border-radius: 12px;
  border-bottom: 1px solid var(--line);
  padding: clamp(26px, 4vw, 42px);
  margin-bottom: 16px;
  grid-template-columns: 90px 1fr auto;
}
.w-row.featured:hover {
  padding-left: clamp(26px, 4vw, 42px);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(30, 27, 22, 0.4);
}
.w-row.featured::before {
  display: none;
}
.w-row.featured .w-num {
  font-family: var(--anton);
  font-style: normal;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--green);
}
.w-row.featured h3 {
  font-family: var(--anton);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(28px, 4.6vw, 54px);
}
.w-row {
  transition:
    padding-left 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.35s,
    box-shadow 0.35s;
}
.group-label {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: clamp(50px, 7vw, 80px) 0 6px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.w-row.sm {
  padding: 18px 0;
}
.w-row.sm h3 {
  font-size: clamp(18px, 2.4vw, 24px);
}
.w-row.sm p {
  font-size: 14px;
  margin-top: 6px;
}

/* academics chips */
.acad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.acad div {
  border: 1px solid var(--line);
  background: #fffdf6;
  border-radius: 8px;
  padding: 16px 18px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.acad div:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -20px rgba(30, 27, 22, 0.35);
}
.acad b {
  font-weight: 600;
  font-size: 15px;
  display: block;
}
.acad span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

/* magnetic elements */
.magnet {
  display: inline-block;
  will-change: transform;
}

/* back to top */
.top-btn {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 210;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fbf7eb;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
  box-shadow: 0 14px 30px -18px rgba(30, 27, 22, 0.4);
}
.top-btn.show {
  opacity: 1;
  pointer-events: auto;
}
.top-btn:hover {
  transform: translateY(-3px);
}

.marquee:hover .track {
  animation-play-state: paused;
}
/* affiliations bar: wordmark register */
.marquee span {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 34px;
}
.mq-link {
  text-align: center;
  padding: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mq-link a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.mq-link a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* now board */
.now ul {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.now li {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.now li::before {
  display: none;
}
.now .n-title {
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.35;
}
.now .n-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.now .n-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.now li.target .n-status::before {
  background: var(--amber);
}
.now li.link-card {
  justify-content: center;
  background: var(--ink);
  border-color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.now li.link-card .n-title {
  color: var(--bg);
}
.now li.link-card .n-status {
  color: #8b857a;
}
.now li.link-card .n-status::before {
  background: #9dc3af;
  animation: none;
}

/* giant name: slow self-scrolling band, no footer collision */
.giant-band {
  overflow: hidden;
  transform-origin: bottom;
  will-change: transform;
  position: relative;
  white-space: nowrap;
  margin-top: clamp(50px, 8vw, 110px);
  padding-bottom: clamp(26px, 4vw, 46px);
}
.giant-track {
  display: inline-flex;
  align-items: baseline;
  width: max-content;
  will-change: transform;
}
.giant-track span {
  font-family: var(--anton);
  text-transform: uppercase;
  font-size: clamp(70px, 15vw, 220px);
  line-height: 0.9;
  color: var(--bg);
  margin-right: 0.35em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.6s ease;
}
.giant-track i {
  font-style: normal;
  color: #9dc3af;
  font-size: 0.5em;
  vertical-align: 0.35em;
  margin-right: 0.35em;
}

/* footer name hover: slow + a quiet color shift */
.giant-band:hover .giant-track span {
  color: #9dc3af;
}

/* image trail: snapshots pop along the cursor path through the name */
.trail-card {
  position: absolute;
  width: 118px;
  background: #fffdf6;
  border-radius: 3px;
  padding: 7px 7px 4px;
  margin: 0;
  box-shadow: 0 16px 32px -14px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 4;
  transform: translate(-50%, -55%) scale(0.4) rotate(var(--tr, 0deg));
  opacity: 0;
  animation: trailpop 1.15s cubic-bezier(0.5, 0.05, 0.85, 0.5) forwards;
}
.trail-card img {
  display: block;
  width: 104px;
  height: 118px;
  object-fit: cover;
  border-radius: 2px;
}
.trail-card figcaption {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 15px;
  color: #1e1b16;
  text-align: center;
  padding: 3px 0 2px;
  line-height: 1;
}
@keyframes trailpop {
  10% {
    opacity: 1;
    transform: translate(-50%, -55%) scale(1) rotate(var(--tr, 0deg));
  }
  55% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 120%) scale(0.96) rotate(calc(var(--tr, 0deg) * 2.4));
  }
}

@media (min-width: 761px) {
  .sec-now {
    display: none;
  }
}

/* cricket egg hint: same rule, invite then retire */
.egg-hint {
  color: var(--green);
  font-style: italic;
  white-space: nowrap;
  display: inline-block;
  max-width: 320px;
  overflow: hidden;
  vertical-align: bottom;
  transition:
    opacity 0.45s,
    max-width 0.6s 0.15s;
}
.egg-hint.done {
  opacity: 0;
  max-width: 0;
}

/* dormant 3D band */
.spline-band {
  height: 72vh;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.spline-band iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.spline-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 26px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.spline-cover span,
.spline-cover {
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 760px) {
  .spline-band {
    height: 48vh;
  }
}

/* trail hint: points people at the falling photos, then gets out of the way */
.trail-hint {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8b857a;
  margin-top: clamp(40px, 7vw, 90px);
  margin-bottom: -14px;
  transition: opacity 0.6s;
}
.trail-hint.done {
  opacity: 0;
}
.th-a {
  display: inline-block;
  animation: thsway 1.8s ease-in-out infinite;
}
@keyframes thsway {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-5px);
  }
}
.th-b {
  animation-delay: 0.9s;
  animation-name: thswayR;
}
@keyframes thswayR {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .th-a {
    animation: none;
  }
}

/* birthday note */
.bday-note {
  position: relative;
  display: inline-block;
  margin-top: 46px;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  color: #1e1b16;
  background: #fff9e3;
  border: 1px solid #ede4c4;
  padding: 16px 22px 14px;
  transform: rotate(-2deg);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5);
}
.bday-note .tape4 {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 64px;
  height: 22px;
  background: rgba(214, 196, 150, 0.75);
}

/* keyboard focus: always visible, in the accent */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* perf: below-fold sections render lazily */
.journey,
.work,
.off,
.now {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* the full-screen menu owns the screen: floating controls step aside */
body.menu-open .panel,
body.menu-open .pill,
body.menu-open .top-btn {
  visibility: hidden;
}

/* midnight panel: every control explicitly readable */
body[data-mood="latenight"] .panel,
body[data-mood="latenight"] .p-on {
  color: var(--ink);
}
body[data-mood="latenight"] .p-on {
  border-color: var(--ink);
}
body[data-mood="latenight"] .p-on:hover {
  background: var(--ink);
  color: #17151f;
}
body[data-mood="latenight"] .mood {
  color: #b9b3c6;
  border-color: #3e3952;
}
body[data-mood="latenight"] .mood.on {
  background: var(--ink);
  color: #17151f;
  border-color: var(--ink);
}
body[data-mood="latenight"] .p-sub,
body[data-mood="latenight"] .p-dismiss {
  color: var(--muted);
}
body[data-mood="latenight"] .vol input {
  background: linear-gradient(#3e3952, #3e3952) center/100% 3px no-repeat;
}
body[data-mood="latenight"] .vol input::-webkit-slider-thumb {
  background: var(--ink);
}
body[data-mood="latenight"] .vol input::-moz-range-thumb {
  background: var(--ink);
}

/* ── micro-details: the craft layer ── */

/* 1. selection colors, ours not the browser's */
::selection {
  background: var(--green);
  color: #f2ecdd;
}
.belief ::selection,
.contact-wrap ::selection {
  background: #9dc3af;
  color: #1e1b16;
}

/* 2. numbers tick like odometers, no jitter */
.wpm b,
.stat b,
.pct,
.clock,
#bdayStatus {
  font-variant-numeric: tabular-nums;
}

/* 3. letters lift under the cursor */
.lt {
  display: inline-block;
  transition: transform 0.28s cubic-bezier(0.3, 0.7, 0.3, 1);
  will-change: transform;
}

/* 5. underlines that travel out right, back in left */
.mail,
.socials a {
  border-bottom: none !important;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: left bottom;
  padding-bottom: 3px;
}
@media (hover: hover) {
  .mail:hover,
  .socials a:hover {
    animation: uline 0.55s ease;
  }
}
@keyframes uline {
  0% {
    background-size: 100% 1px;
    background-position: right bottom;
  }
  45% {
    background-size: 0 1px;
    background-position: right bottom;
  }
  55% {
    background-size: 0 1px;
    background-position: left bottom;
  }
  100% {
    background-size: 100% 1px;
    background-position: left bottom;
  }
}

/* 6. the scrollbar joins the design system */
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar {
    width: 11px;
  }
  ::-webkit-scrollbar-track {
    background: var(--bg);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--ink);
    border-radius: 6px;
    border: 3px solid var(--bg);
  }
  html {
    scrollbar-color: var(--ink) var(--bg);
  }
}

/* 7. the command chip presses like a keycap */
.kbd-hint {
  box-shadow: 0 2px 0 var(--line);
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.kbd-hint:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 var(--line);
}

/* 8. the volume thumb, ours */
.vol input {
  -webkit-appearance: none;
  appearance: none;
  height: 26px;
  background: linear-gradient(var(--line), var(--line)) center/100% 3px no-repeat;
  border-radius: 2px;
}
.vol input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  border: none;
}
.vol input::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  border: none;
}
@media (pointer: coarse) {
  .vol input {
    height: 32px;
  }
  .vol input::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
  }
  .vol input::-moz-range-thumb {
    width: 20px;
    height: 20px;
  }
}

/* footer lines */
.foot-r {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: right;
  line-height: 1.5;
}
.foot-r span:first-child {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--bg);
  opacity: 0.9;
}
.foot-r span:last-child {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 15px;
  color: #8b857a;
}

/* wrap side padding, restated in longhand so section shorthands can't zero it */
.wrap {
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

/* fluid system: from watch-adjacent to TV */

/* short-and-wide viewports (foldables open or closed, phones in landscape):
   height, not width, is the scarce resource, so vertical spending shrinks */
@media (max-height: 620px) and (min-width: 500px) {
  .hero {
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 56px;
  }
  #loader .type {
    font-size: clamp(20px, 3.4vh, 30px);
  }
  .portrait {
    max-width: min(330px, 38vw);
  }
  .statement p {
    font-size: clamp(30px, 7.5vh, 46px);
  }
  .panel {
    max-height: 82svh;
    overflow: auto;
  }
  .mnav a {
    font-size: clamp(26px, 7vh, 40px);
  }
  .spline-band {
    height: 82svh;
  }
}

/* very small phones: type steps down before anything can clip */
@media (max-width: 360px) {
  .hero h1 {
    font-size: clamp(38px, 13vw, 48px);
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 0.14em;
  }
  #loader .type {
    font-size: clamp(18px, 5.8vw, 24px);
  }
  .off-line > span:first-child {
    font-size: clamp(26px, 9vw, 34px);
  }
  .contact h2 {
    font-size: clamp(34px, 12vw, 44px);
  }
}

/* very large screens: the reading column grows a step, air grows with it */
@media (min-width: 1680px) {
  .wrap {
    max-width: 1300px;
  }
  body {
    font-size: 17px;
  }
  .hero h1 {
    font-size: clamp(64px, 6vw, 124px);
  }
}

/* tablet tier: iPad portrait & small landscape (761-1080px) */
@media (min-width: 761px) and (max-width: 1080px) {
  .wrap {
    padding-left: 40px;
    padding-right: 40px;
  }
  .nav .pct {
    display: none;
  } /* breathing room in the nav */
  .nav {
    gap: 18px;
  }
  #spy {
    gap: 18px;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 34px;
  }
  .hero h1 {
    font-size: clamp(50px, 7vw, 78px);
  }
  .portrait {
    max-width: 430px;
    margin-inline: auto;
  }
  .j-row {
    grid-template-columns: 120px 1fr;
    gap: 26px;
  }
  .statement p {
    font-size: clamp(34px, 5vw, 52px);
  }
  .giant-track span {
    font-size: clamp(88px, 12.5vw, 150px);
  }
  .off-line > span:first-child {
    font-size: clamp(34px, 4.6vw, 52px);
  }
}

/* thumb-first refinements for touch tablets specifically */
@media (pointer: coarse) and (min-width: 761px) {
  .kbd-hint {
    padding: 8px 14px;
    min-height: 40px;
  } /* tappable, since there is no Cmd key */
  .sound-mini {
    min-height: 40px;
    padding: 8px 14px;
  }
  .mood {
    min-height: 44px;
  }
}

/* mobile & responsive layer */
html {
  -webkit-tap-highlight-color: transparent;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin: -10px;
}
.burger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mnav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 28px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s,
    visibility 0.35s;
}
.mnav.open {
  opacity: 1;
  visibility: visible;
}
.mnav nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mnav a {
  font-family: var(--anton);
  text-transform: uppercase;
  font-size: clamp(38px, 11vw, 56px);
  text-decoration: none;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.4s,
    transform 0.4s;
}
.mnav.open a {
  opacity: 1;
  transform: none;
}
.mnav.open a:nth-child(1) {
  transition-delay: 0.05s;
}
.mnav.open a:nth-child(2) {
  transition-delay: 0.12s;
}
.mnav.open a:nth-child(3) {
  transition-delay: 0.19s;
}
.mnav.open a:nth-child(4) {
  transition-delay: 0.26s;
}
.mnav a:active {
  color: var(--green);
}
.mnav-cmd {
  margin-top: 34px;
  align-self: flex-start;
  background: none;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 13px 22px;
  cursor: pointer;
}
.mnav-cmd:active {
  background: var(--ink);
  color: var(--bg);
}
.mnav-foot {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 760px) {
  .burger {
    display: flex;
  }
  .nav {
    gap: 12px;
    flex-wrap: nowrap;
  }
  .sec-now {
    display: block;
    flex: 1;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.3s;
  }
  .sec-now.swap {
    opacity: 0;
  }
  .nav .logo {
    flex-shrink: 0;
    font-size: 13px;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }
  .nav .clock {
    display: none;
  } /* the clock lives in the menu overlay on mobile */
  .foot-r {
    text-align: left;
  }
  /* hero breathes instead of forcing full height */
  .hero {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 64px;
  }
  .hero .scroll {
    display: none;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.18em;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }
  .hero h1 {
    margin-top: 2px;
  }
  .hero .sub {
    margin-top: 24px;
    font-size: 16px;
  }
  .pron {
    margin-left: 0;
  }
  /* collage tucks its wings in */
  .portrait {
    max-width: 270px;
    margin-top: 44px;
  }
  .pnote-a {
    left: -4px;
    top: -40px;
    font-size: 16px;
    max-width: 120px;
  }
  .pnote-b {
    right: -4px;
    bottom: 34px;
    font-size: 15px;
    max-width: 120px;
  }
  .doodle.plane {
    width: 64px;
    top: -48px;
  }
  .stamp2 {
    left: 0;
    bottom: 74px;
    font-size: 9px;
  }
  /* featured job cards stack cleanly */
  .w-row.featured {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 20px;
  }
  .w-row.featured .w-num {
    display: none;
  }
  .w-main .role {
    display: block;
    margin-left: 0;
    margin-top: 6px;
    white-space: normal;
  }
  .w-tag {
    justify-self: start;
  }
  /* journey stacks: age becomes an inline heading */
  .j-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .j-age {
    font-size: 44px;
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  .j-age small {
    margin-bottom: 0;
  }
  /* belief ghost scales down */
  .belief .ghost {
    font-size: clamp(170px, 60vw, 320px);
    opacity: 0.06;
  }
  /* sound panel becomes a bottom sheet */
  .panel {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    border-radius: 14px;
  }
  .mood {
    padding: 11px 16px;
    font-size: 12px;
  }
  .p-on {
    padding: 13px 22px;
  }
  /* pill and top button clear each other */
  .pill {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 14px;
    border-radius: 50%;
  }
  .top-btn {
    left: max(12px, env(safe-area-inset-left));
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
  }
  .contact-wrap footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  /* pill goes icon-only so it stops covering text */
  .pill .bars {
    margin-right: 0;
  }
  .pill #pillLabel {
    display: none;
  }
  /* tap-stuck hover accents on touch */
  .w-row::before {
    display: block;
  }
  .w-row:hover::before {
    transform: scaleY(0);
  }
  .w-row.rowlive::before {
    transform: scaleY(1);
  }
  .w-row.rowlive .w-main .role {
    color: var(--green);
    transition: color 0.3s;
  }
  /* stats: two columns, tighter */
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  /* off-the-clock notes sit under their line, left-aligned */
  .off-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  /* contact + giant name scale */
  .contact h2 {
    font-size: clamp(52px, 16vw, 80px);
  }
  .giant-track span {
    font-size: clamp(52px, 19vw, 96px);
  }
}
@media (max-width: 760px) {
  .copy-mail {
    display: block;
    margin: 16px auto 0;
  }
  /* footer stacks cleanly: tagline above, credits below, all left-aligned */
  .contact-wrap footer .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  footer .em {
    font-size: 19px;
  }
  .foot-r {
    text-align: left;
  }
  .foot-r span:last-child {
    font-size: 14px;
  }
  /* birthday note: full presence without crowding the socials */
  .bday-note {
    margin-top: 38px;
    font-size: 19px;
    padding: 14px 18px 12px;
    max-width: 88%;
  }
  /* 1am quote card: comfortable on a narrow screen */
  .off .quote {
    padding: 24px 22px;
    transform: rotate(0);
  }
  .off .quote p {
    font-size: 19px;
  }
  .off .quote .sig {
    white-space: normal;
    line-height: 1.6;
  }
  .belief,
  .contact-wrap {
    border-radius: 18px 18px 0 0;
    margin-top: -18px;
  }
  .pnote-a,
  .pnote-b,
  .doodle,
  .stamp2 {
    will-change: auto;
  }
  /* work rows: restore the scannable skeleton */
  .w-row .w-num {
    display: block;
    font-size: 16px;
    opacity: 0.55;
    margin-bottom: 4px;
  }
  .w-main .role {
    font-size: 12px;
    letter-spacing: 0.08em;
    line-height: 1.5;
  }
  .w-row.sm {
    padding: 30px 0;
  }
  .w-main h3 {
    margin-bottom: 6px;
  }
}
@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(38px, 11.5vw, 48px);
  }
  .statement p {
    font-size: clamp(28px, 8.4vw, 40px);
  }
  .off-line {
    font-size: clamp(26px, 7.8vw, 34px);
  }
}
@media (pointer: coarse) {
  .mood,
  .p-dismiss,
  .sound-mini {
    min-height: 44px;
  }
  .cmdk {
    padding-top: 8vh;
  }
  .cmdk-box {
    width: 94vw;
  }
  .cmdk ul {
    max-height: 52vh;
  }
  .cmdk li {
    min-height: 48px;
    font-size: 15px;
  }
  .w-row:hover {
    padding-left: 0;
    transform: none;
  }
  .now .nrow:hover {
    transform: none;
  }
}

/* Late night = full dark theme */
body,
header,
.panel,
.pill,
.top-btn,
.now .nrow,
.acad div,
.w-row.featured,
.stat,
.cmdk-box {
  transition:
    background-color 0.6s ease,
    color 0.6s ease,
    border-color 0.6s ease;
}
body[data-mood="latenight"] {
  --bg: #17151f;
  --bg-2: #201d2b;
  --ink: #efeae0;
  --muted: #9a93a8;
  --line: #332f42;
  --green: #9dc3af;
  --green-soft: #2a3b34;
}
body[data-mood="latenight"] .panel,
body[data-mood="latenight"] .pill,
body[data-mood="latenight"] .top-btn,
body[data-mood="latenight"] .cmdk-box,
body[data-mood="latenight"] .pron,
body[data-mood="latenight"] .kbd-hint {
  background: #201d2b;
}
body[data-mood="latenight"] .now .nrow,
body[data-mood="latenight"] .acad div {
  background: #1c1927;
}
body[data-mood="latenight"] .w-row.featured {
  background: #1c1927;
}
body[data-mood="latenight"] .stat {
  background: var(--bg);
}
body[data-mood="latenight"] header {
  background: color-mix(in srgb, #17151f 96%, transparent);
}
body[data-mood="latenight"] .now li.link-card {
  background: #efeae0;
}
body[data-mood="latenight"] .now li.link-card .n-title {
  color: #17151f;
}

/* command palette */
.cmdk {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(23, 21, 31, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
}
.cmdk.open {
  display: flex;
}
.cmdk-box {
  width: min(560px, 92vw);
  background: #fbf7eb;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}
.cmdk input {
  width: 100%;
  border: 0;
  background: none;
  padding: 18px 20px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  border-bottom: 1px solid var(--line);
}
.cmdk ul {
  list-style: none;
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  margin: 0;
}
.cmdk li {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
}
.cmdk li.sel {
  background: var(--green-soft);
}
.cmdk li .k {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kbd-hint {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  padding: 4px 8px;
  margin-left: 12px;
  cursor: pointer;
}
.kbd-hint:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* spotlight on featured cards */
@media (hover: hover) and (pointer: fine) {
  .w-row.featured {
    overflow: hidden;
  }
  .w-row.featured::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s;
    background: radial-gradient(
      320px circle at var(--mx, 50%) var(--my, 50%),
      rgba(42, 91, 120, 0.13),
      transparent 65%
    );
  }
  .w-row.featured:hover::after {
    opacity: 1;
  }
}
.w-row.featured {
  position: relative;
}

/* race actions (post-finish buttons) */
.race-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.race-actions button {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 12px 22px;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: none;
  color: var(--ink);
  transition: transform 0.2s;
}
.race-actions button.primary {
  background: var(--ink);
  color: var(--bg);
}
.race-actions button:hover {
  transform: translateY(-2px);
}

/* print = resume view */
@media print {
  header,
  .panel,
  .pill,
  .top-btn,
  .burger,
  .mnav,
  .marquee,
  .mq-link,
  .trail-hint,
  .giant-band,
  .hero .scroll,
  .progress,
  .pron,
  .bday-note,
  .copy-mail,
  .cursor,
  #loader,
  .cmdk,
  .egg-hint,
  .sec-now {
    display: none !important;
  }
  * {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12px;
  }
  .reveal,
  .stag .w span,
  .scene,
  .now .nrow,
  .statement p .sw {
    opacity: 1 !important;
    transform: none !important;
    color: #000 !important;
  }
  .portrait {
    display: none;
  }
  .hero {
    min-height: auto;
    padding: 0 0 14px;
  }
  section,
  .work,
  .journey,
  .statement,
  .off,
  .now {
    padding: 10px 0 !important;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero h1 em,
  .contact h2 em,
  .belief .q-em {
    color: #000 !important;
  }
  .statement p {
    font-size: 20px;
    color: #000;
  }
  .stats {
    margin-top: 16px;
  }
  .stat b,
  .stat b i {
    color: #000;
  }
  .j-row,
  .w-row {
    padding: 10px 0;
    border-color: #ccc;
  }
  .j-age {
    font-size: 24px;
    color: #000;
  }
  .w-row.featured {
    border: 1px solid #000;
    background: #fff;
    padding: 12px;
    margin-bottom: 8px;
  }
  .w-main h3 {
    font-size: 18px;
  }
  .w-tag {
    border: 1px solid #000;
    background: #fff !important;
    color: #000 !important;
  }
  .belief,
  .contact-wrap {
    background: #fff !important;
    color: #000 !important;
    border-radius: 0;
    margin: 0;
  }
  .belief .ghost {
    display: none;
  }
  .belief .q,
  .contact h2 {
    font-size: 26px;
  }
  .off-line {
    font-size: 22px;
  }
  .contact {
    padding: 14px 0;
  }
  .contact .mail {
    color: #000;
    border-color: #000;
  }
  .contact-wrap footer {
    border-color: #ccc;
    color: #333;
  }
  footer .em,
  .foot-r span {
    color: #000 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal,
  .stag .w span {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* formerly inline styles */
.now-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-wrap footer .wrap.foot-bar,
footer .wrap.foot-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}
