/* ──────────────────────────────────────────────
   yrk · portfolio
   monochrome · geometric + glassy
   ────────────────────────────────────────────── */

:root {
  /* surfaces — pure → near-black → cool greys → bone */
  --bg: #050506;
  --bg-1: #0a0a0c;
  --bg-2: #101013;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --line-3: rgba(255, 255, 255, 0.28);
  --line-glow: 0 0 6px rgba(255, 255, 255, 0.22), 0 0 14px rgba(255, 255, 255, 0.08);

  --fg: #f4f4f1;
  --fg-1: #cfcfca;
  --fg-2: #8b8b86;
  --fg-3: #5b5b56;

  --glow: rgba(255, 255, 255, 0.55);

  --sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 40px);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden
}

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

body {
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(800px 500px at 90% 20%, rgba(255, 255, 255, 0.025), transparent 70%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* type */
h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance
}

p {
  margin: 0;
  color: var(--fg-1);
  text-wrap: pretty
}

a {
  color: inherit;
  text-decoration: none
}

::selection {
  background: rgba(255, 255, 255, 0.18);
  color: #fff
}

.mono {
  font-family: var(--mono);
  font-feature-settings: "ss01", "ss02"
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.dim {
  color: var(--fg-2)
}

.dimmer {
  color: var(--fg-3)
}

/* hairline — softly glowing */
.hr {
  height: 1px;
  width: 100%;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  box-shadow: var(--line-glow);
}

/* layout */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative
}

/* ── grain + scan overlay ─────────────────────── */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: .35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ── ambient glow blobs (hero) ────────────────── */
.glow-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.glow-stage::before,
.glow-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}

.glow-stage::before {
  width: 680px;
  height: 680px;
  left: 50%;
  top: -220px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 60%);
  animation: drift 18s ease-in-out infinite alternate;
}

.glow-stage::after {
  width: 420px;
  height: 420px;
  right: -80px;
  top: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 65%);
  animation: drift2 22s ease-in-out infinite alternate;
}

@keyframes drift {
  0% {
    transform: translate(-50%, 0) scale(1)
  }

  100% {
    transform: translate(-46%, 30px) scale(1.08)
  }
}

@keyframes drift2 {
  0% {
    transform: translate(0, 0) scale(1)
  }

  100% {
    transform: translate(-30px, 40px) scale(1.12)
  }
}

/* ── status bar ──────────────────────────────── */
.statusbar {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 18px -6px rgba(255, 255, 255, 0.05);
  background: rgba(8, 8, 10, 0.7);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.statusbar .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--fg-2);
}

.statusbar .row .left {
  display: flex;
  align-items: center;
  gap: 14px
}

.statusbar .row .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9cffb0;
  box-shadow: 0 0 10px rgba(156, 255, 176, .6);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1
  }

  50% {
    transform: scale(1.15);
    opacity: .6
  }
}

.statusbar .right {
  display: flex;
  gap: 18px
}

.statusbar .sep {
  color: var(--fg-3)
}

/* ── nav ─────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 24px -10px rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 6, 0.6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.nav .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.nav .brand .mark {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-3);
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.nav .links {
  display: flex;
  gap: 4px;
  font-family: var(--mono);
  font-size: 12px
}

.nav .links a {
  padding: 8px 14px;
  border-radius: 99px;
  color: var(--fg-2);
  transition: color .2s ease, background .2s ease;
}

.nav .links a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04)
}

.nav .cta {
  font-family: var(--mono);
  font-size: 12px;
  border: 1px solid var(--line-2);
  padding: 8px 14px;
  border-radius: 99px;
  color: var(--fg-1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s ease, border-color .2s ease;
}

.nav .cta:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-3)
}

.nav .cta .arr {
  transition: transform .2s ease
}

.nav .cta:hover .arr {
  transform: translate(2px, -2px)
}

/* ── hero ────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 12vw, 100px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}

.hero .meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  color: var(--fg-1);
}

.hero .badge .ring {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9cffb0;
}

.hero .badge .ring::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(156, 255, 176, .4);
  animation: ring 2.4s ease-out infinite;
}

@keyframes ring {
  0% {
    transform: scale(.6);
    opacity: 1
  }

  100% {
    transform: scale(1.6);
    opacity: 0
  }
}

.hero h1 {
  font-size: clamp(56px, 9vw, 128px);
  line-height: .94;
  letter-spacing: -0.045em;
  font-weight: 400;
  max-width: 14ch;
}

.hero h1 .it {
  font-style: italic;
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 0%, #b6b6b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .stk {
  position: relative;
  display: inline-block
}

.hero h1 .stk::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 55%;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  transform: scaleX(0);
  transform-origin: left;
  animation: strike 1.2s cubic-bezier(.7, .1, .2, 1) .8s forwards;
}

@keyframes strike {
  to {
    transform: scaleX(1)
  }
}

/* portrait — top of hero-meta aside, fills aside width */
.hero-portrait {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  margin-bottom: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    var(--bg-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 16px 40px -12px rgba(255, 255, 255, 0.14);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(20%) contrast(1.05);
}

.hero .lede {
  margin-top: 38px;
  max-width: 54ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-1);
}

.hero .actions {
  display: flex;
  gap: 12px;
  margin-top: 42px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .02em;
  padding: 13px 20px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .2s ease, border-color .2s ease;
  cursor: pointer;
  background: transparent;
  color: var(--fg);
}

.btn .arr {
  transition: transform .25s cubic-bezier(.2, .8, .2, 1)
}

.btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-3)
}

.btn:hover .arr {
  transform: translateX(3px)
}

.btn.primary {
  background: linear-gradient(180deg, #fafafa 0%, #cfcfca 100%);
  color: #0a0a0c;
  border-color: transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 12px 40px -6px rgba(255, 255, 255, 0.18);
}

.btn.primary:hover {
  transform: translateY(-1px)
}

/* hero grid: text | meta+portrait */
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 6px;
}

.hero-meta .item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero-meta .item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.06) 60%, transparent);
  filter: blur(1px);
  opacity: .55;
}

.hero-meta .item:last-child {
  border-bottom: 0
}

.hero-meta .item:last-child::after {
  display: none
}

.hero-meta .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3)
}

.hero-meta .v {
  font-size: 14px;
  color: var(--fg-1)
}

.hero-meta .v b {
  color: var(--fg);
  font-weight: 500
}

/* ── marquee ─────────────────────────────────── */
.marquee {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  margin-top: 60px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0));
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 30px rgba(255, 255, 255, 0.04);
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent)
}

.marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent)
}

.marquee .track {
  display: flex;
  gap: 48px;
  padding: 18px 0;
  animation: slide 50s linear infinite;
  white-space: nowrap;
  width: max-content;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-2);
  letter-spacing: .04em;
}

.marquee .track span {
  display: inline-flex;
  align-items: center;
  gap: 48px
}

.marquee .track .dotmk {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fg-3)
}

@keyframes slide {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

/* ── section heading ─────────────────────────── */
section.block {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 10vw, 140px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  margin-bottom: 48px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  position: relative;
}

.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45) 30%, rgba(255, 255, 255, 0.45) 70%, transparent);
  filter: blur(1.5px);
  opacity: .7;
  pointer-events: none;
}

.section-head .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-3)
}

.section-head h2 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 18ch
}

.section-head h2 .it {
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  color: var(--fg-1)
}

/* ── work cards ──────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.008));
  overflow: hidden;
  transition: border-color .3s ease, transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 18px 40px -24px rgba(255, 255, 255, 0.10);
}

.card::before {
  /* cursor spotlight */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(360px 360px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.10), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 0;
}

.card::after {
  /* hairline highlight */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(800px 200px at var(--mx, 50%) 0%, rgba(255, 255, 255, 0.22), transparent 50%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 0;
}

.card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 24px 60px -20px rgba(255, 255, 255, 0.18),
    0 0 30px rgba(255, 255, 255, 0.06);
}

.card:hover::before {
  opacity: 1
}

.card:hover::after {
  opacity: 1
}

.card>* {
  position: relative;
  z-index: 1
}

.card .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.card .top .num {
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.card .top .num .sq {
  width: 6px;
  height: 6px;
  background: var(--fg-2);
  border-radius: 1px
}

.card .canvas {
  aspect-ratio: 16/10;
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    var(--bg-2);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 40px rgba(255, 255, 255, 0.03);
}

.card .canvas .vis {
  position: absolute;
  inset: 0
}

.card h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 6px
}

.card .desc {
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.55;
  max-width: 42ch
}

.card .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  position: relative;
}

.card .foot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  filter: blur(1px);
  opacity: .6;
}

.card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-1);
  border: 1px solid var(--line-2);
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.02);
  letter-spacing: .02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 8px rgba(255, 255, 255, 0.04);
}

.card .read {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card .read .arr {
  transition: transform .2s ease
}

.card:hover .read .arr {
  transform: translate(2px, -2px)
}

/* card visuals — pure CSS, monochrome */
.vis-rings {
  background:
    radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.09), transparent 30%),
    radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.06), transparent 35%);
}

.vis-rings::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(circle at 30% 60%, transparent 0 18px, rgba(255, 255, 255, 0.06) 18px 19px),
    repeating-radial-gradient(circle at 78% 35%, transparent 0 14px, rgba(255, 255, 255, 0.04) 14px 15px);
  -webkit-mask: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%);
  mask: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%);
}

.vis-grid {
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0/40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0/40px 40px,
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.10), transparent 60%);
  -webkit-mask: radial-gradient(ellipse at 50% 60%, #000 25%, transparent 80%);
  mask: radial-gradient(ellipse at 50% 60%, #000 25%, transparent 80%);
}

.vis-bars {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 18% 12% 12%;
}

.vis-bars i {
  display: block;
  width: 8px;
  background: linear-gradient(180deg, #fff, #6a6a64);
  border-radius: 2px;
  opacity: .7;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.18);
}

.vis-flow {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07), transparent 60%);
}

.vis-flow svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%
}

.vis-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(15%) contrast(1.05);
}

/* ── stack section ───────────────────────────── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.skill {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, 0.012);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.015);
}

.skill:hover {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.025);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 0 24px rgba(255, 255, 255, 0.06);
}

.skill .h {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.skill .name {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg)
}

.skill .yrs {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3)
}

.skill .bar {
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-top: auto;
}

.skill .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #fff, #9a9a94);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.55), 0 0 16px rgba(255, 255, 255, 0.25);
}

.skill .cat {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: .14em;
  text-transform: uppercase
}

/* ── timeline ────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column
}

.tl {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  position: relative;
  transition: background .25s ease;
}

.tl::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  filter: blur(1.2px);
  opacity: .55;
}

.tl:last-child {
  border-bottom: 1px solid var(--line)
}

.tl:last-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  filter: blur(1.2px);
  opacity: .55;
}

.tl:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 60%)
}

.tl .yr {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-2);
  letter-spacing: .06em;
  padding-top: 4px
}

.tl .role {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.tl .role .r {
  font-size: 22px;
  letter-spacing: -0.01em
}

.tl .role .c {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-2)
}

.tl .what {
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.6;
  max-width: 50ch
}

.tl .badge {
  position: absolute;
  left: 104px;
  top: 32px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg-1);
  box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(255, 255, 255, 0.7), 0 0 24px rgba(255, 255, 255, 0.3);
}

/* ── about ──────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-grid .copy p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg-1)
}

.about-grid .copy p+p {
  margin-top: 18px
}

.about-grid .now {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 18px 40px -24px rgba(255, 255, 255, 0.10);
}

.about-grid .now h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-grid .now h4 .dotmk {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9cffb0;
  box-shadow: 0 0 8px rgba(156, 255, 176, .6)
}

.about-grid .now ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px
}

.about-grid .now li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 14px
}

.about-grid .now li .k {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: .1em;
  text-transform: uppercase
}

/* ── footer / contact ───────────────────────── */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: clamp(80px, 10vw, 120px) 0 40px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.08), 0 -10px 40px -10px rgba(255, 255, 255, 0.06);
}

.footer .cta {
  font-size: clamp(48px, 8vw, 112px);
  letter-spacing: -0.04em;
  line-height: .95;
  font-weight: 400;
  margin-bottom: 48px;
}

.footer .cta .it {
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  color: var(--fg-1)
}

.footer .cta a {
  background: linear-gradient(180deg, #fff, #b6b6b0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-bottom: 1px solid var(--line-3);
  transition: border-color .2s ease;
}

.footer .cta a:hover {
  border-color: var(--fg-1)
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  position: relative;
}

.footer-grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  filter: blur(1.2px);
  opacity: .6;
}

.footer-grid h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 14px
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.footer-grid a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-1)
}

.footer-grid a:hover {
  color: #fff
}

.footer-grid .sig {
  font-family: 'Instrument Serif', serif;
  font-size: 38px;
  line-height: 1;
  color: var(--fg-1);
  font-style: italic;
  letter-spacing: -0.01em;
}

.footer-grid .since {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: .1em;
  margin-top: 10px
}

.footer .legal {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: .05em;
}

/* huge faint signature behind footer */
.bigsig {
  position: absolute;
  left: 50%;
  top: 14%;
  transform: translateX(-50%);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(180px, 28vw, 420px);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  text-stroke: 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

/* responsive */
@media (max-width:1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px
  }

  .work-grid {
    grid-template-columns: 1fr
  }

  .stack-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .section-head {
    grid-template-columns: 1fr
  }

  /* .tl {
    grid-template-columns: 90px 1fr;
    gap: 14px
  } */

  /* .tl .what {
    grid-column: 1/-1;
    padding-left: 90px
  } */

  .tl {
    display: flex;
    flex-direction: column;
    gap: 6px
  }

  .tl .what {
    max-width: none;
    padding-left: 0px;
  }

  /* .tl .badge {
    left: 78px
  } */

  .tl .badge {
    display: none
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px
  }

  .card .desc {
    max-width: none
  }
}

/* ── tablet / large phone ───────────────────── */
@media (max-width:640px) {

  /* restore horizontal padding — .nav .row / .statusbar .row padding shorthand
     overrides .shell's padding:0 var(--pad) due to higher specificity */
  .nav .row,
  .statusbar .row {
    padding-left: var(--pad);
    padding-right: var(--pad)
  }

  /* statusbar: stack to two rows so all info stays visible */
  .statusbar .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding-top: 7px;
    padding-bottom: 7px
  }

  .statusbar .right {
    gap: 8px;
    font-size: 10px
  }

  .nav .links {
    display: none
  }

  .stack-grid {
    grid-template-columns: 1fr 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  .tl {
    display: flex;
    flex-direction: column;
    gap: 6px
  }

  .tl .badge {
    display: none
  }

  .tl .what {
    max-width: none;
    padding-left: 0px;
  }

  /* hero */
  .hero h1 {
    font-size: clamp(36px, 10vw, 56px);
    max-width: 100%
  }

  .hero .lede {
    font-size: 16px;
    margin-top: 24px;
    max-width: none
  }

  .hero .meta-row {
    margin-bottom: 20px;
    overflow: hidden
  }

  .hero-meta .item {
    grid-template-columns: 64px 1fr;
    gap: 10px
  }

  /* truncate long badge text on narrow screens */
  .hero .badge {
    max-width: 100%
  }

  .hero .badge .mono {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0
  }

  /* portrait: cap height on mobile so it doesn't fill the screen */
  .hero-portrait {
    max-height: 320px;
    aspect-ratio: auto
  }

  /* section headings */
  .section-head h2 {
    font-size: clamp(28px, 7vw, 44px)
  }

  /* cards */
  .card {
    padding: 20px
  }

  .card h3 {
    font-size: 20px
  }

  .card .top {
    flex-wrap: wrap;
    gap: 4px 8px
  }

  .card .foot {
    flex-wrap: wrap;
    gap: 12px
  }

  /* timeline */
  .tl .yr {
    font-size: 11px;
    color: var(--fg-3)
  }

  .tl .role .r {
    font-size: 18px
  }

  /* footer */
  .bigsig {
    display: none
  }

  .footer .cta {
    font-size: clamp(28px, 8vw, 48px);
    margin-bottom: 32px
  }

  .footer .legal {
    flex-direction: column;
    gap: 6px
  }

  .card .desc {
    max-width: none
  }
}

/* ── small phones (≤420px) ───────────────────── */
@media (max-width:420px) {

  /* shrink brand + CTA slightly so both fit side-by-side */
  .nav .brand {
    font-size: 11px
  }

  .nav .cta {
    font-size: 11px;
    padding: 7px 10px
  }

  /* hero */
  .hero h1 {
    font-size: clamp(34px, 9.5vw, 44px)
  }

  .hero .badge {
    font-size: 10px;
    padding: 5px 10px 5px 7px
  }

  /* buttons */
  .btn {
    padding: 11px 16px;
    font-size: 12px
  }

  .hero .actions {
    gap: 8px
  }

  /* cards */
  .card {
    padding: 16px
  }

  .card .top {
    font-size: 10px
  }

  /* stack */
  .stack-grid {
    grid-template-columns: 1fr
  }

  /* footer */
  .footer .cta {
    font-size: clamp(26px, 8vw, 36px)
  }

  .footer-grid .sig {
    font-size: 30px
  }
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1)
}

.reveal.in {
  opacity: 1;
  transform: none
}