/* ============================================================
   Utkarsh Yadav — portfolio
   Dark editorial layout, modelled on sawad.framer.website
   ============================================================ */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/poppins-800.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter-var.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('../fonts/jetbrains-mono-var.woff2') format('woff2'); }

:root {
  --bg: #151312;
  --bg-soft: #1b1918;
  --bg-card: #1e1b1a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: #b7aeab;
  --muted-2: #9a918e;
  --ghost: #6b6461;
  --accent: #f46c38;
  --accent-deep: #e36433;
  --lime: #c5ff41;
  --cream: #faf7f3;
  --ink: #151312;
  --ink-soft: #4c4642;
  --radius: 22px;
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; }
::selection { background: var(--accent); color: var(--ink); }

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

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 500;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  transform: translateZ(0);
  will-change: transform;
}

/* ---------- floating dock nav ------------------------------------------- */

.dock-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  translate: -50% 0;
  z-index: 200;
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(28, 26, 25, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transform: translateZ(0);
}

.dock-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.15s ease-out, color 0.15s ease-out, transform 0.15s ease-out;
}
.dock-btn svg { width: 20px; height: 20px; }
.dock-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.dock-btn:active { transform: scale(0.92); }
.dock-btn.is-active { background: var(--accent); color: var(--ink); }
.dock-btn.is-active:hover { background: var(--accent-deep); color: var(--ink); }

/* ---------- shell -------------------------------------------------------- */

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 120px 44px 0;
  display: grid;
  grid-template-columns: 346px minmax(0, 1fr);
  gap: 96px;
  align-items: start;
}

.content { min-width: 0; padding-bottom: 40px; }

/* ---------- profile card ------------------------------------------------ */

.profile-card {
  position: sticky;
  top: 104px;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 16px 16px 22px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.portrait {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #1b1918;
  isolation: isolate;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 66%, rgba(0, 0, 0, 0.32));
  pointer-events: none;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
}
.portrait-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(21, 19, 18, 0.72);
  color: #ffe9dd;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.profile-body { position: relative; padding: 18px 6px 0; }

.profile-name {
  font-size: 31px;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.profile-role {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  max-width: 66%;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6d5f58;
}

.led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1fa463;
  box-shadow: 0 0 0 3px rgba(31, 164, 99, 0.16);
  flex: 0 0 auto;
}

.squiggle {
  position: absolute;
  top: 48px;
  right: -20px;
  width: 42%;
  height: auto;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.profile-badge {
  position: absolute;
  top: 112px;
  right: 20px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(244, 108, 56, 0.4);
}
.profile-badge svg { width: 17px; height: 17px; }

.profile-bio {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.68;
  color: #413a37;
  max-width: 27ch;
}

.profile-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #5c524e;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 108, 56, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(244, 108, 56, 0); }
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid rgba(21, 19, 18, 0.12);
}
.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(21, 19, 18, 0.16);
  color: var(--ink);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.socials svg { width: 17px; height: 17px; }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }

/* ---------- typography --------------------------------------------------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  flex: 0 0 auto;
}

.hero-title {
  font-size: clamp(56px, 7.7vw, 116px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero-title .line { display: block; }
.hero-title .ghost { color: var(--ghost); }

.lede {
  margin-top: 28px;
  max-width: 54ch;
  font-size: 16.5px;
  line-height: 1.66;
  color: var(--muted);
}

.sec-head {
  margin-bottom: 34px;
}
.sec-no {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.sec-head h2 {
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.sec-head .line { display: block; }
.sec-head .ghost { color: var(--ghost); }

/* ---------- hero --------------------------------------------------------- */

.hero { padding-top: 26px; scroll-margin-top: 100px; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 54px;
  margin-top: 46px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat-value sup { font-size: 0.5em; color: var(--accent); top: -0.5em; }
.stat-label {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
}

.cap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 208px;
  padding: 20px;
  border-radius: 20px;
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cap-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35); }
.cap-card.orange { background: radial-gradient(130% 120% at 10% 0%, #ff8b52 0%, var(--accent) 48%, #d9552a 100%); }
.cap-card.lime { background: radial-gradient(130% 120% at 10% 0%, #dcff85 0%, var(--lime) 50%, #a9e62c 100%); }

.cap-card .cap-icon { display: block; width: 30px; height: 30px; position: relative; z-index: 1; }
.cap-card .cap-icon svg { width: 100%; height: 100%; }

.cap-label {
  display: block;
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}
.cap-title {
  display: block;
  position: relative;
  z-index: 1;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: pre-line;
}

.cap-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.6px solid rgba(21, 19, 18, 0.78);
  color: var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.cap-arrow svg { width: 16px; height: 16px; }
.cap-card:hover .cap-arrow { background: var(--ink); color: var(--cream); transform: rotate(0deg) scale(1.05); }

.cap-art {
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 240px;
  height: 240px;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  transition: color 0.2s;
}
.scroll-cue:hover { color: var(--text); }
.scroll-cue svg { width: 15px; height: 15px; animation: nudge-down 1.8s ease-in-out infinite; }
@keyframes nudge-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- sections ----------------------------------------------------- */

.section { margin-top: clamp(88px, 11vw, 148px); scroll-margin-top: 96px; }

/* ---------- work --------------------------------------------------------- */

.project-list { border-top: 1px solid var(--line); }

.project-row {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 16px 6px 16px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s var(--ease), background 0.25s var(--ease);
}
.project-row:hover { padding-left: 10px; background: rgba(255, 255, 255, 0.025); }

.thumb {
  position: relative;
  width: 98px;
  aspect-ratio: 16 / 10;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s var(--ease), filter 0.3s;
  filter: saturate(0.9);
}
.project-row:hover .thumb img { transform: scale(1.06); filter: saturate(1.05); }

.thumb-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(244, 108, 56, 0.95), rgba(197, 255, 65, 0.9));
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.proj-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(197, 255, 65, 0.35);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  translate: 0 -1px;
}
.live-pill::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.proj-tagline {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted-2);
}
.row-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted-2);
  transition: color 0.2s, background 0.2s, transform 0.25s var(--ease);
}
.row-arrow svg { width: 18px; height: 18px; }
.project-row:hover .row-arrow { color: var(--ink); background: var(--accent); transform: rotate(45deg); }

.see-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.see-all svg { width: 15px; height: 15px; }
.see-all:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); }

/* ---------- experience --------------------------------------------------- */

.exp-list { border-top: 1px solid var(--line); }
.exp-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.exp-period {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 4px;
}
.exp-kind {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.exp-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}
a.exp-title:hover { color: var(--accent); }
.exp-text {
  margin-top: 7px;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted-2);
}

/* ---------- stack -------------------------------------------------------- */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 40px;
}
.tool {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 10px 12px 0;
  border-bottom: 1px solid var(--line);
}
.tool-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.tool-mark img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.tool:hover .tool-mark { transform: translateY(-2px) rotate(-3deg); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35); }
.tool-name { display: block; font-size: 15.5px; font-weight: 500; color: var(--text); }
.tool-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  margin-top: 2px;
}

.stack-note {
  margin-top: 26px;
  max-width: 66ch;
  font-size: 14px;
  color: var(--muted-2);
}
.stack-note a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.stack-note a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- notes -------------------------------------------------------- */

.notes-list { border-top: 1px solid var(--line); }
.note { border-bottom: 1px solid var(--line); }
.note summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 4px 22px 0;
  transition: color 0.2s, padding 0.2s var(--ease);
}
.note summary::-webkit-details-marker { display: none; }
.note summary:hover { color: var(--accent); padding-left: 6px; }
.note-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.note-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  white-space: nowrap;
}
.note-body {
  max-width: 68ch;
  padding: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--muted);
}
.note[open] summary { color: var(--text); }
.note[open] .note-meta { color: var(--accent); }

/* ---------- contact ------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.contact-copy p {
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15px, 1.45vw, 18px);
  letter-spacing: -0.01em;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
  transition: color 0.2s, border-color 0.2s;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }
.contact-meta {
  margin-top: 26px;
  display: grid;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}
.contact-meta b { color: var(--text); font-weight: 500; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 14.5px;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #7d7572; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #201d1c;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: #ff7f4c; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(244, 108, 56, 0.28); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.06); box-shadow: none; border-color: var(--muted-2); }
.form-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}
.form-note a { color: var(--text); border-bottom: 1px solid var(--line-strong); }

/* ---------- footer ------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
  padding: 30px 44px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.foot-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--muted-2);
}
.foot-top {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.foot-top:hover { color: var(--accent); }

/* ---------- project page ------------------------------------------------- */

.project-page { padding-top: 28px; }

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  transition: color 0.2s;
}
.backlink svg { width: 14px; height: 14px; transform: rotate(180deg); }
.backlink:hover { color: var(--accent); }

.proj-kicker {
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.proj-title {
  margin-top: 10px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.proj-tagline {
  margin-top: 16px;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.proj-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proj-meta dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.proj-meta dd { margin: 5px 0 0; font-size: 13.5px; color: var(--text); }

.proj-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.preview {
  margin-top: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  background: #0d0c0c;
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}
.preview-dots { display: flex; gap: 5px; }
.preview-dots i { width: 8px; height: 8px; border-radius: 50%; background: #3b3634; display: block; }
.preview-dots i:first-child { background: var(--accent); }
.preview-url {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}
.preview-open svg { width: 11px; height: 11px; }
.preview-open:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.preview iframe {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  background: #0d0c0c;
}
.preview-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.preview-private {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 300px;
  padding: 40px;
  text-align: center;
  background:
    radial-gradient(90% 120% at 20% 0%, rgba(244, 108, 56, 0.18), transparent 60%),
    linear-gradient(150deg, #1c1918, #121010);
}
.preview-private .pp-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.05em;
  color: var(--lime);
}
.preview-private p { max-width: 46ch; font-size: 13.5px; color: var(--muted); }
.preview-note {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted-2);
}

.p-section { margin-top: 58px; }
.p-section h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 24px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.p-section h2 .n {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.p-copy {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  max-width: 72ch;
}
.p-copy p { font-size: 15px; line-height: 1.75; color: var(--muted); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 32px;
  margin-top: 24px;
}
.feature {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.feature h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.feature p { margin-top: 6px; font-size: 13.5px; line-height: 1.65; color: var(--muted-2); }

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}
.metric b { display: block; font-family: var(--font-display); font-size: 28px; letter-spacing: -0.03em; }
.metric span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tags li {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.gallery { margin-top: 22px; display: grid; gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.gallery figcaption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.next-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 70px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s var(--ease), background 0.25s var(--ease);
}
.next-project:hover { padding-left: 10px; background: rgba(255, 255, 255, 0.025); }
.next-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.next-name {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}
.next-arrow { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); transition: background 0.2s, color 0.2s, transform 0.25s; }
.next-arrow svg { width: 18px; height: 18px; }
.next-project:hover .next-arrow { background: var(--accent); color: var(--ink); border-color: var(--accent); transform: translateX(4px); }

/* ---------- reveal ------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero-title .line[data-reveal] { transform: translateY(0.35em); }
.js .hero-title .line[data-reveal].is-in { transform: none; }

/* ---------- responsive --------------------------------------------------- */

@media (max-width: 1200px) {
  .shell { grid-template-columns: 306px minmax(0, 1fr); gap: 56px; padding: 112px 32px 0; }
  .profile-name { font-size: 27px; }
  .site-footer { padding-inline: 32px; }
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 54px;
    padding-top: 96px;
    max-width: 760px;
  }
  .profile-card {
    position: static;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
  }
  .portrait { aspect-ratio: 1; border-radius: 12px; }
  .profile-body { padding: 0 6px 4px 0; }
  .squiggle, .profile-badge { display: none; }
  .profile-name { font-size: 25px; }
  .profile-bio { margin-top: 10px; font-size: 12.5px; max-width: 46ch; }
  .profile-status { margin-top: 10px; }
  .socials { margin-top: 12px; padding-top: 12px; }
  .socials a { width: 34px; height: 34px; }
  .hero { padding-top: 0; }
  .hero-title { font-size: clamp(52px, 12vw, 96px); }
  .bento { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .shell { padding: 92px 20px 0; gap: 44px; }
  .dock-nav { top: 12px; padding: 5px; gap: 2px; }
  .dock-btn { width: 42px; height: 42px; }
  .dock-btn svg { width: 18px; height: 18px; }
  .profile-card { grid-template-columns: 104px minmax(0, 1fr); }
  .profile-name { font-size: 22px; }
  .profile-bio { font-size: 12.5px; }
  .profile-role { font-size: 9.5px; }
  .hero-title { font-size: clamp(44px, 14vw, 72px); }
  .hero-title .ghost { color: #7a716d; }
  .lede { font-size: 15px; }
  .stats { gap: 32px; margin-top: 34px; }
  .stat-value { font-size: 32px; }
  .bento { grid-template-columns: 1fr; margin-top: 36px; }
  .cap-card { min-height: 168px; }
  .project-row { grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; }
  .thumb { width: 74px; border-radius: 8px; }
  .proj-name { font-size: 19px; }
  .proj-tagline { font-size: 12.5px; }
  .row-arrow { width: 32px; height: 32px; }
  .exp-row { grid-template-columns: 1fr; gap: 6px; }
  .exp-period { padding: 0; }
  .tool-grid { grid-template-columns: 1fr; }
  .contact-grid { gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .metric { padding: 12px; }
  .metric b { font-size: 22px; }
  .proj-meta { grid-template-columns: 1fr 1fr; }
  .proj-meta > div:last-child { grid-column: 1 / -1; }
  .site-footer { flex-direction: column; align-items: flex-start; padding: 24px 20px 34px; gap: 8px; }
  .preview-note { font-size: 10px; }
}

@media (max-width: 430px) {
  .profile-card { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
  .profile-body { padding: 0 2px 2px 0; }
  .profile-name { font-size: 20px; }
  .profile-bio { font-size: 11.5px; margin-top: 8px; }
  .profile-status { font-size: 9.5px; }
  .socials { gap: 6px; }
  .socials a { width: 30px; height: 30px; }
  .socials svg { width: 14px; height: 14px; }
  .hero-title { font-size: 42px; }
  .sec-head h2 { font-size: 38px; }
  .stats { justify-content: space-between; }
  .stat-value { font-size: 28px; }
  .note summary { grid-template-columns: 1fr; gap: 6px; }
  .proj-meta { grid-template-columns: 1fr; }
}

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