/* self-hosted fonts */
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/QGYvz_MVcBeNP4NJuktqQ4E.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/QGYvz_MVcBeNP4NJtEtq.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/QGYvz_MVcBeNP4NJuktqQ4E.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/QGYvz_MVcBeNP4NJtEtq.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/QGYvz_MVcBeNP4NJuktqQ4E.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/QGYvz_MVcBeNP4NJtEtq.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* greek */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/8vIH7w4qzmVxm2NL9Hz_.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* latin-ext */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/8vIH7w4qzmVxm25L9Hz_.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/8vIH7w4qzmVxm2BL9A.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* greek */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/8vIH7w4qzmVxm2NL9Hz_.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* latin-ext */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/8vIH7w4qzmVxm25L9Hz_.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/8vIH7w4qzmVxm2BL9A.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000000;
  --bg-deep: #050608;
  --ink: #ffffff;
  --muted: #ffffff;
  --soft: #ffffff;
  --gold: #8eb4e3;
  --gold-2: #d7e6f7;
  --mint: #8ec9c2;
  --line: rgba(255, 255, 255, 0.06);
  --danger: #f0a8a8;
  --neo: 12px 12px 28px #000000, -8px -8px 20px #16181d;
  --neo-sm: 7px 7px 16px #000000, -5px -5px 14px #14161b;
  --inset: inset 7px 7px 14px #000000, inset -5px -5px 12px #1a1d24;
  --radius: 28px;
  --nav-h: 76px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(142, 180, 227, 0.12), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(142, 201, 194, 0.07), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: Outfit, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, .logo, .seal, .kicker { font-family: Syne, sans-serif; }
::selection { background: rgba(142, 180, 227, 0.35); }

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-180%);
  z-index: 80;
  background: var(--gold);
  color: #041018;
  padding: 8px 12px;
  border-radius: 999px;
}
.skip:focus { transform: none; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  background: linear-gradient(90deg, var(--mint), var(--gold));
  z-index: 70;
}
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}

.nav {
  position: fixed;
  z-index: 30;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1080px, calc(100% - 20px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  box-shadow: var(--neo-sm);
  backdrop-filter: blur(16px);
}
.logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: var(--inset);
  color: var(--gold-2);
  flex: 0 0 auto;
}
.nav-links {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-left: auto;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--ink); box-shadow: var(--inset); }
.nav-toggle, .nav-panel { display: none; }
.splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
  background: #000;
  animation: splash-fallback .01s linear 5.4s forwards;
}
.splash::before {
  content: "";
  position: absolute;
  width: min(78vw, 560px);
  height: min(42vw, 300px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 180, 227, 0.2), transparent 68%);
}
.splash .signature { position: relative; width: min(760px, 90vw); cursor: default; }
.js .splash { animation: none; }
.splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .5s ease, visibility .5s ease;
}
@keyframes splash-fallback {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
body.booting { overflow: hidden; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(var(--nav-h) + 36px) 22px 48px;
  overflow-x: clip;
}
.hero-stage {
  position: relative;
  z-index: 2;
  width: min(1080px, 100%);
  margin-inline: auto;
  display: grid;
  gap: 12px 36px;
  align-items: end;
}
.hero-copy { position: relative; z-index: 2; margin: 0; }
.hero-portrait {
  margin: 0;
  width: min(380px, 88%);
  justify-self: center;
  order: -1;
  position: relative;
  animation: floaty 7.5s ease-in-out infinite;
}
.hero-portrait::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 12%;
  right: 12%;
  top: 8%;
  bottom: 16%;
  border-radius: 46% 46% 42% 42%;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.16), transparent 58%),
    radial-gradient(circle at 50% 80%, rgba(142, 180, 227, 0.22), transparent 62%);
  filter: blur(2px);
}
.hero-portrait picture { display: block; width: 100%; }
.hero-portrait img {
  width: auto;
  max-width: 100%;
  max-height: min(72svh, 720px);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 34px 28px rgba(0, 0, 0, 0.55));
}
@keyframes floaty {
  50% { transform: translateY(-12px); }
}
.hero-stats, .scroll-cue { position: relative; z-index: 2; width: min(1080px, 100%); margin-inline: auto; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.7;
  animation: drift 18s ease-in-out infinite;
}
.orb-a {
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  right: -8vw;
  top: 8vh;
  background: radial-gradient(circle, rgba(142, 180, 227, 0.32), transparent 68%);
}
.orb-b {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  left: -10vw;
  bottom: 8vh;
  background: radial-gradient(circle, rgba(158, 220, 211, 0.2), transparent 68%);
  animation-delay: -6s;
}
@keyframes drift {
  50% { transform: translate3d(0, -24px, 0) scale(1.06); }
}
.eyebrow {
  margin: 0 0 10px;
  color: #ffffff;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 580;
}
.eyebrow.gold { color: var(--gold-2); }
.hero h1 {
  margin: 8px 0 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}
.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;
}
.signature {
  display: block;
  width: min(860px, 100%);
  height: auto;
  overflow: visible;
  cursor: pointer;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}
.sig-letter, .sig-flourish {
  fill: #ffffff;
  stroke: none;
}
.sig-flourish { fill: none; stroke: #ffffff; stroke-width: 2.2; stroke-linecap: round; }
.sig-pen {
  fill: #f4f8ff;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(142, 180, 227, 0.95));
}
.js .sig-letter {
  fill: #ffffff;
  fill-opacity: 0;
  stroke: #ffffff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8000;
  stroke-dashoffset: 8000;
}
.js .sig-flourish {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}
.js .signature.is-drawn .sig-letter {
  fill-opacity: 1;
  stroke: none;
  stroke-dashoffset: 0;
}
.js .signature.is-drawn .sig-flourish { stroke-dashoffset: 0; }
.kicker {
  margin: 18px 0 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}
.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.12rem;
}
.hero-actions, .dialog-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #d5e4f6);
  color: #061018;
  font-weight: 700;
  box-shadow: 8px 8px 16px #000, -4px -4px 10px rgba(255, 255, 255, 0.16);
}
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.72) 50%, transparent 72%);
  transform: translateX(-130%);
  animation: sheen 4.2s ease-in-out infinite;
}
@keyframes sheen {
  55%, 100% { transform: translateX(130%); }
}
.btn-neo, .edit-launch, .editor button, .dialog-close {
  background: var(--bg);
  box-shadow: var(--neo-sm);
  color: var(--ink);
}
.btn-neo:active, .edit-launch:active { box-shadow: var(--inset); }
.hero-stats {
  list-style: none;
  padding: 0;
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hero-stats li {
  padding: 16px 18px;
  border-radius: 22px;
  box-shadow: var(--neo-sm);
}
.hero-stats strong, .hero-stats span { display: block; }
.hero-stats span { color: var(--soft); font-size: 0.92rem; }
.scroll-cue {
  display: inline-block;
  margin-top: 28px;
  color: var(--soft);
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: ticker 42s linear infinite;
  color: var(--soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.marquee-track span::before { content: "✦"; color: var(--gold); margin-right: 34px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section, .hero {
  scroll-margin-top: 96px;
}
.section {
  position: relative;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 20px;
}
.section-head { margin-bottom: 28px; max-width: 720px; }
.index {
  margin: 0;
  color: var(--gold);
  font-family: Syne, sans-serif;
  letter-spacing: 0.18em;
}
h2 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.section-lead { color: var(--muted); font-size: 1.05rem; }
.section-lead a { color: var(--gold-2); }

.about { display: grid; gap: 28px; }
.medallion, .skill, .cert, .work, .contact-grid a, .tools, .timeline li {
  background: var(--bg);
  box-shadow: var(--neo);
  border-radius: var(--radius);
}
.medallion { padding: 28px; text-align: center; }
.seal {
  width: min(230px, 100%);
  aspect-ratio: 4 / 5;
  margin: 0 auto 16px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--neo), 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.seal picture { display: block; width: 100%; height: 100%; }
.seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.seal-name { margin: 0; font-size: 1.4rem; }
.loc { color: var(--soft); }
.seal-links { display: flex; justify-content: center; gap: 10px; }
.seal-links a, .more {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--inset);
  color: var(--gold-2);
}
.about-copy p { color: var(--muted); font-size: 1.06rem; }
.timeline { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.timeline li { padding: 16px 18px; border-radius: 22px; }
.timeline strong, .timeline span { display: block; }
.timeline span { color: var(--gold-2); }
.timeline p, .skill p, .cert p { margin: 6px 0 0; color: var(--muted); }

.skill-grid, .cert-grid, .contact-grid {
  display: grid;
  gap: 16px;
}
.skill, .cert { padding: 20px; border-radius: 24px; }
.skill h3, .cert h3 { margin: 0; font-size: 1.25rem; letter-spacing: -0.03em; }
.issuer { margin: 0 0 6px; color: var(--mint); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }
.tools { margin-top: 18px; padding: 8px 22px 18px; }
.tools h3 { margin-bottom: 0; }
.tools ul { list-style: none; padding: 0; margin: 8px 0 0; }
.tools li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.tools a { color: var(--gold-2); font-weight: 700; }
.tools span { color: var(--soft); }

.section-head, .work-list, .about, .skill-grid, .cert-grid, .contact-grid { position: relative; z-index: 1; }
.watermark {
  z-index: 0;
  position: absolute;
  right: -4vw;
  top: 28px;
  margin: 0;
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 7.4vw, 6.2rem);
  letter-spacing: -0.045em;
  line-height: 0.85;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(215, 230, 247, 0.14);
  pointer-events: none;
  user-select: none;
}
.work-list { display: grid; gap: 22px; }
.work { padding: 14px; overflow: hidden; }
.work-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--inset);
}
.work-media picture,
.dialog-project picture {
  display: block;
  width: 100%;
  height: 100%;
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.04);
  transition: transform .8s ease;
}
.dialog-project picture img {
  width: 100%;
  max-height: 46vh;
  object-fit: cover;
  object-position: top center;
}
.work:hover .work-media img { transform: scale(1.1); }
.work-copy { padding: 16px 10px 8px; }
.work h3 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.04em; }
.work h3 a { text-decoration: none; }
.summary { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 14px; list-style: none; }
.tags li {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--gold-2);
  box-shadow: var(--inset);
  font-size: 0.82rem;
}
.more { display: inline-flex; }

.contact-grid a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  text-decoration: none;
  border-radius: 24px;
  font-size: 1.15rem;
}
.contact-grid span { color: var(--soft); font-size: 0.86rem; }
.footer {
  width: min(1080px, calc(100% - 32px));
  margin: 40px auto 28px;
  padding-bottom: 36px;
  color: var(--soft);
}
.footer p { margin: 0; }

dialog {
  width: min(960px, calc(100vw - 24px));
  max-height: min(92vh, 920px);
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--bg);
  border-radius: 30px;
  box-shadow: 20px 24px 50px #000, -8px -8px 24px #1a1e26;
}
dialog::backdrop {
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(10px);
}
.dialog-shell { position: relative; overflow: auto; max-height: min(92vh, 920px); }
.dialog-project img {
  width: 100%;
  max-height: 46vh;
  object-fit: cover;
  object-position: top center;
}
.dialog-copy { padding: 22px 22px 28px; }
.dialog-copy h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.dialog-body { color: var(--muted); font-size: 1.05rem; }
.dialog-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px 0 0;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 16px;
  cursor: pointer;
}
dialog[open] { animation: pop .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes pop {
  from { opacity: 0; transform: translateY(28px) scale(.96); }
  to { opacity: 1; transform: none; }
}

.edit-launch {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin-left: 8px;
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 14px;
  cursor: pointer;
}
.editor {
  position: fixed;
  z-index: 45;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(460px, calc(100% - 24px));
  overflow: auto;
  padding: 16px 16px 24px;
  border-radius: 28px;
  background: #0c0d10;
  box-shadow: 16px 16px 32px #000, -8px -8px 18px #1c2028;
}
.editor-bar, .editor-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.editor h3 { margin: 22px 0 8px; font-size: 1.05rem; }
.editor label { display: grid; gap: 6px; margin: 10px 0; color: var(--soft); font-size: 0.82rem; }
.editor input, .editor textarea, .editor select {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  background: #050608;
  box-shadow: var(--inset);
}
.editor textarea { min-height: 90px; resize: vertical; }
.project-edit, .cert-edit {
  margin-top: 12px;
  padding: 12px;
  border-radius: 20px;
  box-shadow: var(--inset);
}
.cover-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  border-radius: 16px;
  margin-top: 8px;
}
.editor button, .editor .btn {
  border: 0;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 12px;
  cursor: pointer;
}
.editor-actions, .tiny-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.form-error { color: var(--danger); min-height: 1.2em; }
.editor-status { color: var(--mint); }
body.locked { overflow: hidden; }
.gate {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.gate-card {
  width: min(440px, 100%);
  padding: 32px 28px;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--neo);
}
.gate-card h1 {
  margin: 0 0 8px;
  font-family: Syne, sans-serif;
  font-size: 2.4rem;
  letter-spacing: -0.04em;
}
.gate-card p { color: var(--muted); }
.gate-card label { display: grid; gap: 8px; margin: 18px 0; color: var(--soft); }
.gate-card input {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  background: #050608;
  box-shadow: var(--inset);
}
.gate-card .form-error { color: var(--danger); min-height: 1.2em; }
.gate-back { color: var(--gold-2); }
.missing {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: start;
  width: min(680px, calc(100% - 40px));
  margin: 0 auto;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (min-width: 900px) {
  .hero-stage { grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr); align-items: center; }
  .hero-portrait { order: 0; justify-self: end; width: min(420px, 100%); }
}
@media (min-width: 800px) {
  .about { grid-template-columns: 280px 1fr; align-items: start; }
  .medallion { position: sticky; top: 96px; }
  .skill-grid, .cert-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .work-list { grid-template-columns: 1fr 1fr; }
  .work-feature {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.4fr 0.85fr;
    gap: 8px 18px;
    align-items: center;
  }
}
@media (max-width: 860px) {
  .nav {
    top: max(10px, env(safe-area-inset-top));
    left: 10px;
    right: 10px;
    width: auto;
    transform: none;
    padding: 6px 6px 6px 10px;
  }
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    min-width: 76px;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #000;
    box-shadow: var(--inset);
    cursor: pointer;
  }
  .edit-launch { margin-left: auto; }
  .edit-launch + .nav-toggle { margin-left: 8px; }
  .nav-panel {
    position: fixed;
    z-index: 29;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: calc(var(--nav-h) + 18px) 16px calc(22px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(18px);
  }
  .nav-panel[hidden] { display: none !important; }
  .nav-panel a {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 18px;
    background: #000;
    box-shadow: var(--neo-sm);
    text-decoration: none;
    font-size: 1.2rem;
  }
  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 12px) 16px 32px;
  }
  .hero-portrait { width: min(260px, 68%); }
  .hero-portrait img { max-height: min(38svh, 320px); }
  .eyebrow { letter-spacing: 0.08em; font-size: 0.68rem; }
  .kicker { font-size: 1.35rem; }
  .lead { font-size: 1.02rem; }
  .hero-actions { display: grid; }
  .hero-stats { margin-top: 22px; }
  .section { width: min(1080px, calc(100% - 28px)); padding-top: 64px; }
  .watermark {
    right: 0;
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(1.5rem, 9vw, 2.4rem);
  }
  h2 { font-size: clamp(2rem, 11vw, 3.4rem); }
  .contact-grid a { font-size: 1rem; overflow-wrap: anywhere; }
  .work h3 { font-size: 1.65rem; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: 1fr; }
  dialog {
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }
  .dialog-shell { max-height: 100%; }
  .editor { inset: 0; width: auto; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .sig-letter {
    fill-opacity: 1;
    stroke: none;
    stroke-dashoffset: 0;
  }
  .js .sig-flourish { stroke-dashoffset: 0; }
  .sig-pen { display: none; }
}
.skill, .cert, .work, .timeline li, .contact-grid a, .hero-stats li, .medallion {
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s ease;
}
.skill:hover, .cert:hover, .work:hover, .timeline li:hover, .contact-grid a:hover, .hero-stats li:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.js .reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(42px);
  animation: none;
}
.js .reveal.is-in {
  opacity: 1;
  filter: none;
  transform: none;
  transition: opacity .8s ease, transform .8s cubic-bezier(.16, 1, .3, 1), filter .8s ease;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; filter: none; }
}
