/* ==========================================================================
   Frank Olayinka — portfolio
   Clean, light, minimal. One accent, generous space, quiet motion.
   ========================================================================== */

:root {
  --bg: #FAFAF7;
  --bg-tint: #F3F2ED;
  --surface: #FFFFFF;
  --ink: #0F0F0D;
  --ink-2: #3B3B36;
  --muted: #6F6E67;
  --line: #E8E6E0;
  --line-2: #D8D5CC;
  --accent: #2B4CF0;
  --accent-soft: #EDF0FF;
  --green: #12994A;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 15, 13, .05);
  --shadow: 0 1px 0 rgba(15, 15, 13, .03), 0 24px 48px -24px rgba(15, 15, 13, .18);

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  color-scheme: light;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code {
  font-family: var(--font-mono);
  font-size: .86em;
  background: rgba(15, 15, 13, .055);
  padding: .12em .4em;
  border-radius: 6px;
}
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

svg[viewBox="0 0 24 24"] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg.fill { fill: currentColor; stroke: none; }

/* ---------- Eyebrow / dot ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--light { color: rgba(255, 255, 255, .6); }
.dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}
.dot::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: var(--green);
  opacity: .25;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(.6); opacity: .45; }
  80%, 100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 15.5px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s, color .25s;
}
.btn svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn[download]:hover svg { transform: translateY(2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2A2A25; transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(15, 15, 13, .45); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn--small { height: 38px; padding: 0 16px; font-size: 14px; gap: 7px; }
.btn--small svg { width: 15px; height: 15px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, .78);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(250, 250, 247, .9); }
.nav__inner { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font: italic 400 22px/1 var(--font-serif);
  padding-bottom: 2px;
  transition: transform .4s var(--ease), background-color .3s;
}
.brand:hover .brand__mark { transform: rotate(-8deg); background: var(--accent); }
.brand__name { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav__links a:hover { background: rgba(15, 15, 13, .05); color: var(--ink); }
.nav__links a.is-active { color: var(--ink); background: rgba(15, 15, 13, .06); }
.nav__toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  place-items: center;
}
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  display: block;
  width: 16px; height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -5px; }
.nav__toggle-bars::after { top: 5px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu nav { display: grid; padding-top: 8px; padding-bottom: 16px; }
.mobile-menu a {
  padding: 14px 0;
  font-size: 20px;
  letter-spacing: -.01em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr);
  gap: 64px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 72px;
}
.hero__title {
  margin-top: 22px;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 500;
  text-wrap: pretty;
}
.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.015em;
  color: var(--accent);
}
.hl { position: relative; display: inline-block; white-space: nowrap; }
.hl__line {
  position: absolute;
  left: -2%;
  bottom: -.1em;
  width: 104%;
  height: .26em;
  overflow: visible;
}
.hl__line path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.2;
  stroke-linecap: round;
  opacity: .55;
  stroke-dasharray: 320;
  stroke-dashoffset: 0;
}
.js .hl__line path { stroke-dashoffset: 320; animation: draw 1.1s .9s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__lede {
  margin-top: 26px;
  max-width: 58ch;
  font-size: 19px;
  line-height: 1.62;
  color: var(--ink-2);
}
.hero__lede strong { color: var(--ink); font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 14px 40px;
  margin: 44px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero__meta dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__meta dd { margin: 4px 0 0; font-size: 15px; color: var(--ink); }

.hero__portrait { position: relative; margin: 0; justify-self: end; width: min(100%, 360px); }
.portrait {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #E6E3DB;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
  transition: transform .6s var(--ease);
}
.hero__portrait:hover .portrait { transform: rotate(0deg) scale(1.01); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(15, 15, 13, .06);
  pointer-events: none;
}
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(15, 15, 13, .3);
  animation: float 6s ease-in-out infinite;
}
.float-card--bottom {
  left: -36px; bottom: 34px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 16px;
}
.float-card--top { right: -22px; top: 30px; padding: 10px 14px; animation-delay: -3s; }
.float-card__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--green);
}
.float-card__text { font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.float-card__num {
  font: italic 400 34px/1 var(--font-serif);
  color: var(--accent);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* hero entrance */
/* visible by default; the animation only plays the entrance */
.js .hero__in {
  animation: rise .9s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 30px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.stat__label { margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: var(--muted); max-width: 22ch; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 26px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex: none; }
.marquee__list li {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.marquee__list li::after { content: "✦"; font-size: 9px; color: var(--line-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 128px 0; }
.section--tint { background: var(--bg-tint); }
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: 60px;
}
.section__head h2 {
  margin-top: 16px;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 500;
}
.section__head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}
.section__head > p {
  justify-self: end;
  max-width: 46ch;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Projects ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.project {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.project:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 40px 70px -40px rgba(15, 15, 13, .28);
}
.project__media {
  position: relative;
  padding: 34px 34px 0;
  background: var(--tint, var(--bg-tint));
  overflow: hidden;
}
.project__media::before {
  /* soft light from above */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 50% 0%, var(--glow, rgba(255, 255, 255, .55)), transparent 60%);
  pointer-events: none;
}
.window {
  position: relative;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 15, 13, .07), 0 30px 50px -24px rgba(15, 15, 13, .35);
  transform: translateY(6px);
  transition: transform .7s var(--ease);
}
.project:hover .window { transform: translateY(-2px); }
.window__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  background: #F5F4F0;
  border-bottom: 1px solid #ECEAE4;
}
.window__bar i { width: 9px; height: 9px; border-radius: 50%; background: #DCD9D0; }
.window__bar span {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #9B988F;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window--dark { background: #12131A; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 50px -24px rgba(0, 0, 0, .6); }
.window--dark .window__bar { background: #1B1C26; border-bottom-color: #262836; }
.window--dark .window__bar i { background: #3A3C4C; }
.window--dark .window__bar span { color: #7D8096; }
.window img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.project__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  padding: 32px 34px 30px;
}
.project__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 8px;
  border-radius: 999px;
  background: rgba(18, 153, 74, .1);
  color: var(--green);
  font-weight: 500;
}
.live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .35; } }
.project h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 500;
  text-wrap: balance;
}
.project__lede { color: var(--ink-2); font-size: 16.5px; }
.project__points { display: grid; gap: 10px; font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.project__points li { position: relative; padding-left: 22px; }
.project__points li::before {
  content: "";
  position: absolute;
  left: 0; top: .78em;
  width: 11px; height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags li {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.3;
}
.project .tags { margin-top: auto; padding-top: 4px; }
.project__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: color .2s;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translate(2px, -2px); }

/* wide variant */
.project--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
}
.project--wide .project__body { padding: 44px 44px 40px; justify-content: center; }
/* the screenshot bleeds off the right edge so it fills the tall column */
.project--wide .project__media { display: flex; align-items: flex-end; padding: 56px 0 0 56px; }
.project--wide .window { flex: none; width: 128%; max-width: none; border-radius: 12px 0 0 0; }
.project--wide h3 { font-size: clamp(30px, 3vw, 42px); }

/* dark variant */
.project--dark { background: #0E0F16; border-color: #1E2030; color: #EDEDF2; }
.project--dark:hover { border-color: #2C2F45; box-shadow: 0 40px 80px -40px rgba(10, 10, 30, .7); }
.project--dark .project__lede,
.project--dark .project__points { color: #B5B7C6; }
.project--dark .project__kicker { color: #8A8DA3; }
.project--dark .project__points li::before { background: #C3F53C; }
.project--dark .tags li { background: #161824; border-color: #262838; color: #C9CBD8; }
.project--dark .project__links { border-top-color: #22243A; }
.project--dark .link-arrow:hover { color: #C3F53C; }
.project--dark .live { background: rgba(195, 245, 60, .12); color: #C3F53C; }
.project--dark .project__media::before { background: radial-gradient(90% 70% at 60% 10%, rgba(120, 130, 255, .18), transparent 70%); }

/* ---------- Index (more builds) ---------- */
.index { margin-top: 96px; }
.index__title {
  font-size: 22px;
  letter-spacing: -.02em;
  font-weight: 500;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}
.row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 140px;
  grid-template-areas:
    "name desc status"
    "name meta status";
  gap: 6px 40px;
  padding: 26px 12px;
  margin: 0 -12px;
  border-bottom: 1px solid var(--line);
  border-radius: 14px;
  transition: background-color .25s;
}
.row:hover { background: rgba(255, 255, 255, .8); }
.row__name {
  grid-area: name;
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.02em;
  text-decoration: none;
}
a.row__name:hover { color: var(--accent); }
.row__name svg { width: 15px; height: 15px; margin-top: 5px; flex: none; }
.row__desc { grid-area: desc; font-size: 15.5px; color: var(--ink-2); max-width: 74ch; }
.row__meta { grid-area: meta; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.row__status { grid-area: status; justify-self: end; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--ink-2);
  white-space: nowrap;
}
.status--live { border-color: rgba(18, 153, 74, .3); color: var(--green); background: rgba(18, 153, 74, .06); }

/* ---------- Approach (ink band) ---------- */
.section--ink {
  position: relative;
  background: var(--ink);
  color: #F3F2EC;
  overflow: hidden;
}
.section--ink::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent 75%);
  pointer-events: none;
}
.section--ink .wrap { position: relative; }
.section--ink .section__head > p { color: rgba(243, 242, 236, .62); }
.section--ink .section__head h2 em { color: #9DB0FF; }
.rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  overflow: hidden;
}
.rule {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px;
  background: var(--ink);
  transition: background-color .4s;
}
.rule:hover { background: #17171A; }
.rule__n { font-family: var(--font-mono); font-size: 12px; color: rgba(243, 242, 236, .45); }
.rule h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -.01em;
}
.rule p { font-size: 15px; color: rgba(243, 242, 236, .66); line-height: 1.6; }
.rule__code {
  margin-top: auto;
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #C9D3FF;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- Bento (earlier work) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.tile:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.tile--feature { grid-column: span 2; padding: 38px; background: linear-gradient(160deg, #FFFFFF 40%, #F1F3FF); }
.tile .tile__kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tile .tile__big { font: italic 400 54px/1 var(--font-serif); color: var(--accent); letter-spacing: -.01em; margin-bottom: 18px; }
.tile h3 { font-size: 22px; letter-spacing: -.02em; font-weight: 500; }
.tile--tall h3 { margin-top: auto; }
.tile--feature h3 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -.035em; }
.tile > p:not(.tile__big):not(.tile__kicker) { color: var(--ink-2); font-size: 15.5px; }
.tile__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-2);
}
.tile__list li { position: relative; padding-left: 22px; }
.tile__list li::before {
  content: "";
  position: absolute; left: 0; top: .72em;
  width: 11px; height: 1.5px;
  background: var(--accent);
}

/* ---------- Experience ---------- */
.xp { border-top: 1px solid var(--line-2); }
.xp__item {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line-2);
}
.xp__when { display: grid; gap: 4px; align-content: start; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.xp__when span:first-child { color: var(--ink); }
.xp__what h3 { font-size: 26px; letter-spacing: -.03em; font-weight: 500; line-height: 1.15; }
.xp__role { margin-top: 4px; color: var(--muted); }
.xp__what ul { display: grid; gap: 9px; margin-top: 18px; color: var(--ink-2); font-size: 16px; max-width: 72ch; }
.xp__what li { position: relative; padding-left: 22px; }
.xp__what li::before {
  content: "";
  position: absolute; left: 0; top: .78em;
  width: 11px; height: 1.5px;
  background: var(--ink-2);
}

/* ---------- Toolkit ---------- */
.skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.skill { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.skill:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.skill h3 { font-size: 17px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 16px; }
.skill .tags li { background: var(--surface); }

.edu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 48px;
}
.edu__item { padding: 24px 26px; border-radius: var(--radius-sm); background: var(--bg-tint); }
.edu__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.edu__title { margin-top: 8px; font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.edu__sub { margin-top: 2px; color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { padding-top: 40px; }
.contact__card {
  position: relative;
  padding: 72px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.contact__card::before {
  content: "";
  position: absolute;
  right: -160px; top: -200px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 76, 240, .13), transparent 65%);
  pointer-events: none;
}
.contact__card h2 {
  position: relative;
  margin-top: 18px;
  max-width: 16ch;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 500;
}
.contact__card h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -.01em; }
.contact__lede { position: relative; margin-top: 20px; max-width: 52ch; color: var(--ink-2); font-size: 18px; }
.contact__list { position: relative; margin-top: 40px; border-top: 1px solid var(--line); max-width: 760px; }
.contact__list li {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact__list a {
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: -.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s;
}
.contact__list a:hover { color: var(--accent); }
.copy {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.copy svg { width: 16px; height: 16px; }
.copy:hover { border-color: var(--ink); color: var(--ink); }
.copy.is-done { border-color: var(--green); color: var(--green); background: rgba(18, 153, 74, .06); }
.contact__actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 48px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 14px;
  color: var(--muted);
}
.footer__note { margin-right: auto; }
.footer__top { text-decoration: none; color: var(--ink); }
.footer__top:hover { color: var(--accent); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* keep hover lift working after reveal */
.js .project[data-reveal].is-in:hover { transform: translateY(-4px); }
.js .tile[data-reveal].is-in:hover { transform: translateY(-3px); }
.js .project[data-reveal].is-in,
.js .tile[data-reveal].is-in { transition: opacity .9s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 190px minmax(0, 1fr) 130px; gap: 6px 28px; }
}

@media (max-width: 900px) {
  :root { --gutter: 22px; }
  .nav__links, .nav__cv { display: none; }
  .nav__toggle { display: grid; }
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 48px; }
  .hero__portrait { justify-self: start; width: min(78%, 330px); margin-left: 28px; }
  .section { padding: 96px 0; }
  .section__head { grid-template-columns: 1fr; margin-bottom: 44px; }
  .section__head > p { justify-self: start; }
  .projects { grid-template-columns: 1fr; gap: 22px; }
  .project--wide { grid-template-columns: 1fr; }
  .project--wide .project__media { order: -1; padding: 30px 30px 0; }
  .project--wide .window { width: 100%; border-radius: 12px 12px 0 0; }
  .project--wide .project__body { padding: 30px 28px 28px; }
  .project__media { padding: 28px 28px 0; }
  .project__body { padding: 28px 28px 26px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 26px 22px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--feature { grid-column: 1 / -1; }
  .xp__item { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .xp__when { grid-auto-flow: column; justify-content: start; gap: 14px; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill, .skill:not(:nth-child(3n + 1)) { padding: 26px 22px 28px 0; border-left: 0; }
  .skill:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
  .edu { grid-template-columns: 1fr; gap: 14px; }
  .contact__card { padding: 48px 32px; }
  .row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name status"
      "desc desc"
      "meta meta";
    gap: 10px 16px;
  }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero { padding-top: 36px; padding-bottom: 56px; }
  .hero__lede { font-size: 17.5px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__meta { grid-template-columns: 1fr; gap: 14px; }
  .hero__portrait { width: min(82%, 300px); margin-left: 22px; }
  .float-card--bottom { left: -22px; bottom: 22px; }
  .float-card--top { right: -14px; top: 22px; }
  .section { padding: 80px 0; }
  .project__media { padding: 20px 20px 0; }
  .project--wide .project__media { padding: 20px 20px 0; }
  .project__body, .project--wide .project__body { padding: 24px 20px 22px; }
  .rules { grid-template-columns: 1fr; }
  .rule { padding: 28px 22px; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--feature { padding: 26px 22px; }
  .tile__list { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
  .skill, .skill:not(:nth-child(3n + 1)), .skill:nth-child(even) { padding: 24px 0; border-left: 0; }
  .contact__card { padding: 40px 20px; border-radius: 24px; }
  .contact__list li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .contact__label { grid-column: 1 / -1; }
  .contact__actions .btn { flex: 1 1 auto; }
  .btn--icon .btn__text { display: inline; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js .hero__in, .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

@media print {
  .nav, .marquee, .toast, .float-card, .contact__actions, .copy { display: none !important; }
  .js [data-reveal], .js .hero__in { opacity: 1 !important; transform: none !important; }
  .section { padding: 32px 0; }
  .section--ink { background: #fff; color: var(--ink); }
}
