:root {
  --black: #090909;
  --charcoal: #141414;
  --panel: #191819;
  --panel-2: #202020;
  --line: #303033;
  --white: #f2f0f0;
  --muted: #a5a1a4;
  --subtle: #737075;
  --burgundy: #a32d54;
  --burgundy-bright: #c3416d;
  --font: "Manrope", sans-serif;
  --mono: "DM Mono", monospace;
  --max: 1280px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 76% 14%, rgba(163, 45, 84, 0.12), transparent 34%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.012), transparent 40%);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
.scroll-progress {
  position: fixed;
  z-index: 300;
  left: 0;
  top: 0;
  width: 0;
  height: 2px;
  background: var(--burgundy-bright);
}
.section-shell {
  width: min(calc(100% - 96px), var(--max));
  margin-inline: auto;
}
.section-pad {
  padding-block: 118px;
}
.site-header {
  height: 88px;
  width: min(calc(100% - 96px), var(--max));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  transition:
    height 0.3s,
    background 0.3s,
    width 0.3s;
}
.site-header.scrolled {
  position: fixed;
  width: 100%;
  height: 72px;
  padding-inline: max(48px, calc((100vw - var(--max)) / 2));
  background: rgba(9, 9, 9, 0.88);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.wordmark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.wordmark span {
  font-weight: 500;
  color: #c8c4c7;
}
.wordmark i {
  font-style: normal;
  color: var(--burgundy-bright);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 12px;
  color: #aaa6aa;
  transition: color 0.2s;
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--white);
}
.nav-link.active::after {
  content: "";
  height: 2px;
  width: 16px;
  background: var(--burgundy-bright);
  position: absolute;
  bottom: -10px;
  left: 0;
}
.resume-link {
  border: 1px solid #8c2c4c;
  border-radius: 999px;
  padding: 10px 17px;
  font-size: 11px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition:
    background 0.25s,
    border 0.25s;
}
.resume-link:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
}
.menu-toggle {
  display: none;
}
.hero {
  min-height: 850px;
  min-height: min(920px, 100svh);
  padding-top: 140px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  position: relative;
  isolation: isolate;
}
.hero-copy {
  padding: 45px 0 95px;
  position: relative;
  z-index: 3;
}
.eyebrow {
  font: 10px var(--mono);
  letter-spacing: 0.14em;
  color: #c4bec2;
  margin: 0 0 26px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.status-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #c4456f;
  box-shadow: 0 0 12px rgba(195, 65, 109, 0.7);
}
.hero h1 {
  font-size: clamp(64px, 8.4vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.085em;
  font-weight: 700;
  margin: 0 0 32px;
}
.burgundy-text {
  color: #c74e77;
}
.hero-description {
  max-width: 465px;
  color: #b5b0b4;
  font-size: 14px;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 21px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  transition:
    transform 0.25s,
    background 0.25s,
    border-color 0.25s;
}
.button:hover {
  transform: translateY(-3px);
}
.button-primary {
  background: var(--burgundy);
  border: 1px solid var(--burgundy);
  color: #ffffff;
}
.button-primary:hover {
  background: #bc3b66;
  border-color: #bc3b66;
}
.button-ghost {
  border: 1px solid #454145;
  color: #e5e1e4;
}
.button-ghost:hover {
  border-color: #c3416c;
  background: rgba(163, 45, 84, 0.12);
}
.button span {
  font-size: 16px;
}
.social-row {
  display: flex;
  gap: 24px;
  margin-top: 43px;
}
.social-row a {
  font: 10px var(--mono);
  color: #8c878c;
  transition: color 0.2s;
}
.social-row a span {
  color: var(--burgundy-bright);
  margin-left: 4px;
}
.social-row a:hover {
  color: white;
}
.hero-visual {
  height: 670px;
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -28px;
}
.portrait-frame {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: min(77%, 500px);
  height: 91%;
  overflow: hidden;
  z-index: 1;
  mask-image: linear-gradient(to bottom, #000000 0%, #000000 74%, transparent 100%);
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.2), transparent 38%),
    linear-gradient(0deg, #090909 0%, transparent 28%),
    linear-gradient(180deg, rgba(9, 9, 9, 0.04), rgba(9, 9, 9, 0.08));
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.04) brightness(0.78);
  mix-blend-mode: screen;
}
.portrait-orbit {
  position: absolute;
  border: 1px solid rgba(195, 65, 109, 0.42);
  border-radius: 50%;
  transform: rotate(-24deg);
  pointer-events: none;
}
.orbit-one {
  width: 530px;
  height: 730px;
  right: 7%;
  top: -9%;
  border-left: 2px solid rgba(195, 65, 109, 0.8);
  box-shadow: 0 0 28px rgba(163, 45, 84, 0.08);
}
.orbit-two {
  width: 690px;
  height: 310px;
  right: -12%;
  top: 42%;
  transform: rotate(28deg);
  border-top: 2px solid rgba(195, 65, 109, 0.6);
}
.terminal-card {
  position: absolute;
  z-index: 4;
  top: 22%;
  right: -1%;
  width: 240px;
  border: 1px solid #333034;
  background: rgba(13, 13, 14, 0.86);
  box-shadow: 0 18px 70px #0007;
  backdrop-filter: blur(12px);
  font: 10px var(--mono);
  color: #c5c0c4;
}
.terminal-top {
  height: 32px;
  border-bottom: 1px solid #29272a;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
}
.terminal-top > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a43359;
}
.terminal-top > span:nth-child(2) {
  background: #565156;
}
.terminal-top > span:nth-child(3) {
  background: #343236;
}
.terminal-top small {
  margin-left: 9px;
  color: #7e787e;
  font-size: 9px;
}
.terminal-body {
  padding: 12px 14px 14px;
}
.terminal-body p {
  margin: 0 0 4px;
}
.terminal-body p b {
  color: #c23f6b;
  font-weight: 500;
}
.terminal-output {
  padding-left: 13px;
  color: #8e888e !important;
  margin-bottom: 13px !important;
}
.terminal-prompt {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 16px !important;
}
.terminal-prompt i {
  height: 12px;
  width: 6px;
  background: #cd6286;
  animation: blink 1s steps(2, start) infinite;
}
.visual-note {
  position: absolute;
  z-index: 4;
  bottom: 15%;
  left: 1%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 14, 15, 0.82);
  border: 1px solid #393438;
  padding: 14px 17px;
  font-size: 10px;
  color: #c4bec2;
  line-height: 1.5;
  backdrop-filter: blur(12px);
}
.note-mark {
  font-size: 20px;
  color: #ca587e;
}
.hero-index {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 20%;
  display: flex;
  align-items: center;
  gap: 9px;
  font: 10px var(--mono);
  color: #8b858b;
  writing-mode: vertical-rl;
}
.hero-index i {
  width: 1px;
  height: 45px;
  background: #ae375e;
}
.scroll-cue {
  position: absolute;
  bottom: 35px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #898489;
  font-size: 10px;
}
.scroll-cue-icon {
  height: 30px;
  width: 30px;
  border: 1px solid #3c383c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #d8d3d7;
  transition: background 0.2s;
}
.scroll-cue:hover .scroll-cue-icon {
  background: var(--burgundy);
}
.section-pad {
  position: relative;
}
.projects-section {
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.section-number {
  color: #ce6387;
  font-size: 10px;
}
.section-heading .eyebrow,
.case-topline .eyebrow,
.about-panel .eyebrow,
.skills-panel .eyebrow,
.education-strip .eyebrow,
.contact-section .eyebrow {
  margin-bottom: 18px;
}
.section-heading h2,
.about-panel h2,
.skills-panel h2 {
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.075em;
  margin: 0;
  font-weight: 600;
}
.muted-italic {
  color: #817b81;
  font-style: italic;
  font-weight: 400;
}
.section-lede {
  color: #999399;
  max-width: 480px;
  font-size: 13px;
  line-height: 1.9;
  margin: 18px 0 0;
}
.project-count {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 7px;
}
.project-count strong {
  font-size: 43px;
  letter-spacing: -0.08em;
  font-weight: 500;
}
.project-count span {
  font: 9px/1.6 var(--mono);
  color: #827c82;
  letter-spacing: 0.08em;
}
.project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 52px 0 24px;
  border-bottom: 1px solid #2a282b;
  padding-bottom: 14px;
}
.project-toolbar > p {
  font: 10px var(--mono);
  color: #777177;
  margin: 0;
}
.filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.filter-button {
  border: 1px solid transparent;
  background: transparent;
  color: #858086;
  padding: 8px 13px;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-button:hover {
  color: #ffffff;
}
.filter-button.is-active {
  border-color: #51303b;
  background: #211419;
  color: #f0e9ec;
}
.filter-button span {
  color: #ce6387;
  margin-left: 7px;
}
.project-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
  align-items: start;
}
.project-card {
  min-width: 0;
  background: #111112;
  border: 1px solid #2a282b;
  transition:
    border-color 0.3s,
    transform 0.3s,
    opacity 0.25s;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  outline: none;
}
.project-card:hover,
.project-card:focus-visible {
  border-color: #aa355c;
  transform: translateY(-4px);
}
.project-card.is-hidden {
  display: none;
}
.project-featured {
  grid-row: span 2;
}
.project-art {
  position: relative;
  overflow: hidden;
  background: #171618;
  border-bottom: 1px solid #2a282b;
}
.project-featured .project-art {
  height: 360px;
}
.syncora-art {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(163, 45, 84, 0.25), transparent 45%),
    linear-gradient(135deg, #151416, #0d0d0e);
}
.syncora-art::before {
  content: "";
  position: absolute;
  width: 75%;
  height: 90%;
  border: 1px solid rgba(195, 65, 109, 0.22);
  border-radius: 50%;
  transform: rotate(-25deg);
}
.mock-window {
  position: relative;
  z-index: 1;
  width: 84%;
  height: 78%;
  background: #101113;
  border: 1px solid #484046;
  border-radius: 7px;
  display: grid;
  grid-template-columns: 115px 1fr;
  box-shadow: 0 30px 70px #0009;
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
  overflow: hidden;
}
.mock-sidebar {
  background: #141416;
  border-right: 1px solid #29272b;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 16px 10px;
  color: #89838a;
  font: 8px var(--mono);
}
.mock-brand {
  color: #eeeeee;
  font-size: 10px;
  margin-bottom: 13px;
}
.mock-brand-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #c85178;
  margin-right: 5px;
}
.mock-side-active {
  background: #302026;
  color: #f1dce2;
  padding: 7px 5px;
}
.mock-main {
  padding: 15px 14px;
}
.mock-topline {
  display: flex;
  justify-content: space-between;
  color: #7d777d;
  font: 7px var(--mono);
}
.mock-avatar {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  background: #a43359;
  color: white;
  border-radius: 50%;
  font-size: 7px;
}
.mock-greeting {
  font-size: 13px;
  margin: 14px 0;
  color: #efebee;
}
.mock-greeting span {
  color: #cb5c81;
}
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.mock-stats div {
  background: #19191c;
  border: 1px solid #2a282c;
  padding: 9px 7px;
}
.mock-stats small {
  display: block;
  font-size: 6px;
  color: #89828a;
}
.mock-stats b {
  font-size: 17px;
  font-weight: 500;
}
.mock-chart {
  margin-top: 10px;
  background: #171719;
  border: 1px solid #2a282c;
  padding: 8px 8px 0;
}
.chart-label {
  font-size: 7px;
  color: #a6a0a5;
  display: flex;
  justify-content: space-between;
}
.chart-label span {
  color: #6d676d;
}
.mock-chart svg {
  width: 100%;
  height: 67px;
}
.mock-task-row {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #272529;
  font-size: 7px;
  color: #aaa4aa;
}
.mock-task-row i {
  font-style: normal;
  margin-left: auto;
  color: #ce6387;
  font-size: 6px;
}
.task-check {
  color: #ce6387;
}
.task-check.pending {
  color: #aaaaaa;
}
.art-index {
  position: absolute;
  z-index: 2;
  left: 20px;
  top: 18px;
  font: 8px var(--mono);
  letter-spacing: 0.12em;
  color: #d2cbd0;
  background: rgba(10, 10, 10, 0.58);
  padding: 7px 9px;
  border: 1px solid #373035;
}
.project-info {
  padding: 23px 24px 17px;
}
.project-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.project-type {
  font: 8px var(--mono);
  letter-spacing: 0.12em;
  color: #cd6185;
  margin: 0 0 7px;
  text-transform: uppercase;
}
.project-info h3 {
  font-size: 25px;
  letter-spacing: -0.055em;
  margin: 0;
  font-weight: 600;
}
.project-info > p {
  font-size: 11px;
  line-height: 1.8;
  color: #9b959b;
  max-width: 490px;
  margin: 12px 0 17px;
}
.project-arrow {
  display: grid;
  place-items: center;
  border: 1px solid #393339;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: #c13d69;
  flex-shrink: 0;
  transition:
    background 0.2s,
    color 0.2s;
}
.project-card:hover .project-arrow {
  background: var(--burgundy);
  color: #ffffff;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-row span {
  font: 8px var(--mono);
  padding: 6px 8px;
  color: #b1abb1;
  border: 1px solid #343135;
  background: #171618;
}
.project-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #29272a;
  margin-top: 20px;
  padding-top: 13px;
  color: #6f696f;
  font: 8px var(--mono);
}
.view-project {
  color: #c3bbc0;
  transition: color 0.2s;
}
.project-card:hover .view-project {
  color: #c9577d;
}
.project-tall .project-art {
  height: 265px;
  background: radial-gradient(ellipse at 55% 45%, #7d2744, #171416 65%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chefmate-art img {
  position: absolute;
  height: 92%;
  width: 55%;
  object-fit: contain;
  object-position: center;
  left: 9%;
  bottom: -13%;
  filter: drop-shadow(0 14px 16px #0009);
  transform: rotate(-8deg);
  transition: transform 0.5s;
}
.project-tall:hover .chefmate-art img {
  transform: rotate(-4deg) translateY(-7px);
}
.chefmate-label {
  position: absolute;
  right: 8%;
  top: 26%;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.06em;
  color: #eeeeee;
  text-align: right;
}
.chefmate-label b {
  color: #c85179;
  font-weight: 600;
}
.project-wide .project-art {
  height: 275px;
}
.image-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
  transition:
    transform 0.6s,
    opacity 0.4s;
}
.project-wide:hover .image-art img {
  transform: scale(1.04);
  opacity: 0.9;
}
.image-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.5), transparent 65%),
    linear-gradient(0deg, rgba(9, 9, 9, 0.35), transparent 45%);
}
.image-art-label {
  position: absolute;
  z-index: 2;
  left: 7%;
  bottom: 13%;
  font-size: 37px;
  line-height: 0.9;
  letter-spacing: -0.08em;
  font-weight: 800;
  text-shadow: 0 3px 20px #000000;
}
.image-art-label em {
  font-style: normal;
  color: #c13d69;
}
.project-medical .project-art {
  height: 220px;
}
.medical-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.5s;
}
.project-medical:hover .medical-art img {
  transform: scale(1.04);
}
.project-expense {
  grid-column: 2;
}
.expense-art {
  height: 240px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(163, 45, 84, 0.22), transparent 60%), #141314;
}
.expense-paper {
  width: 70%;
  height: 75%;
  background: #19181a;
  border: 1px solid #393238;
  padding: 17px 19px;
  transform: rotate(2deg);
  box-shadow: 0 22px 45px #0008;
}
.expense-kicker {
  font: 7px var(--mono);
  color: #928b91;
  letter-spacing: 0.12em;
}
.expense-total {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.06em;
  margin-top: 6px;
}
.expense-total span {
  font-size: 16px;
  color: #aaa3a9;
}
.expense-sub {
  font-size: 7px;
  color: #827b82;
}
.expense-sub b {
  color: #cd6386;
  margin-left: 7px;
}
.expense-bars {
  height: 65px;
  display: flex;
  align-items: end;
  gap: 8px;
  border-bottom: 1px solid #373238;
  margin-top: 8px;
}
.expense-bars i {
  flex: 1;
  background: linear-gradient(0deg, #842948, #c74f77);
  opacity: 0.85;
  border-radius: 2px 2px 0 0;
}
.expense-cats {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font: 6px var(--mono);
  color: #aaa2a9;
}
.expense-cats span:first-child {
  color: #cd6386;
}
.project-expense .project-art .art-index {
  top: 13px;
}
.project-footnote {
  margin: 28px 0 0;
  color: #7c767d;
  font-size: 10px;
}
.project-footnote span {
  color: #ce6387;
  margin-right: 8px;
}
.case-study {
  border-top: 1px solid var(--line);
  padding-block: 38px 120px;
}
.case-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mono-label {
  font: 8px var(--mono);
  letter-spacing: 0.1em;
  color: #6f696f;
}
.case-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 9%;
  align-items: center;
  padding-top: 28px;
}
.case-copy h2 {
  font-size: clamp(47px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.08em;
  margin: 0 0 22px;
}
.case-lede {
  font-size: 12px;
  line-height: 1.9;
  color: #a6a0a5;
  max-width: 390px;
}
.case-points {
  margin-top: 30px;
  border-top: 1px solid #2e2a2e;
}
.case-points > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid #2e2a2e;
}
.case-points > div > span {
  font: 10px var(--mono);
  color: #cd6185;
}
.case-points p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.case-points b {
  font-size: 11px;
  font-weight: 600;
}
.case-points small {
  font-size: 10px;
  color: #858087;
  line-height: 1.7;
}
.text-link {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  margin-top: 25px;
  color: #d7d1d6;
  font-size: 11px;
}
.text-link span {
  color: #c13d69;
  font-size: 17px;
}
.case-visual {
  border: 1px solid #3a343a;
  background: #111112;
  box-shadow: 0 35px 90px #0005;
  transform: perspective(1200px) rotateY(-4deg);
}
.case-visual-top,
.case-visual-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 17px;
  color: #8f8890;
  font: 8px var(--mono);
}
.case-visual-top {
  border-bottom: 1px solid #2b282c;
}
.case-visual-top i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c2406b;
  margin-right: 7px;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  padding: 20px 14px;
  min-height: 260px;
}
.kanban-column > p {
  font: 7px var(--mono);
  color: #9c959c;
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #302c31;
}
.kanban-column > p span {
  color: #cd6286;
}
.kanban-task {
  position: relative;
  padding: 12px 9px;
  background: #1a191c;
  border: 1px solid #302b31;
  margin-bottom: 9px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kanban-task small {
  font: 6px var(--mono);
  color: #c23f6b;
}
.kanban-task b {
  font-size: 8px;
  line-height: 1.5;
  font-weight: 500;
  color: #d4cfd4;
}
.task-avatar,
.task-done {
  margin-top: auto;
  align-self: flex-end;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #a5345a;
  font: 6px var(--mono);
  color: #f4e8ec;
}
.muted-avatar {
  background: #414047;
}
.task-done {
  background: #29282b;
  color: #b4adb4;
}
.task-highlight {
  border-color: #b03760;
  background: #21171c;
}
.case-visual-bottom {
  border-top: 1px solid #2b282c;
  color: #777078;
}
.about-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-panel > p:not(.eyebrow),
.skills-intro {
  max-width: 500px;
  color: #a09aa0;
  font-size: 12px;
  line-height: 1.95;
}
.about-panel h2,
.skills-panel h2 {
  font-size: clamp(39px, 4.2vw, 57px);
}
.about-panel > p:not(.eyebrow) {
  margin-top: 25px;
}
.about-facts {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid #302c30;
}
.about-facts > div {
  display: grid;
  grid-template-columns: 35px 1fr;
  column-gap: 8px;
  padding: 13px 0;
  border-bottom: 1px solid #302c30;
}
.about-facts span {
  grid-row: span 2;
  font: 9px var(--mono);
  color: #cd6386;
  padding-top: 3px;
}
.about-facts b {
  font-size: 11px;
}
.about-facts small {
  font-size: 10px;
  color: #817b82;
}
.skills-intro {
  margin-top: 15px;
}
.skill-groups {
  margin-top: 31px;
}
.skill-group {
  padding: 18px 0;
  border-top: 1px solid #302c30;
}
.skill-group h3 {
  font: 8px var(--mono);
  letter-spacing: 0.12em;
  color: #8a838a;
  margin: 0 0 12px;
}
.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.skill-chips span {
  padding: 8px 10px;
  border: 1px solid #363136;
  background: #171618;
  color: #d1cbd1;
  font-size: 9px;
  transition:
    border 0.2s,
    background 0.2s;
}
.skill-chips span:hover {
  border-color: #b03760;
  background: #21151a;
}
.education-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 36px;
  padding-block: 70px;
  border-bottom: 1px solid var(--line);
}
.education-strip h2 {
  font-size: clamp(32px, 3.4vw, 45px);
  line-height: 1.1;
  letter-spacing: -0.07em;
  margin: 0;
}
.education-detail {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding-top: 28px;
}
.education-icon {
  height: 37px;
  width: 37px;
  flex: 0 0 37px;
  display: grid;
  place-items: center;
  border: 1px solid #49303a;
  color: #ce6387;
}
.education-detail h3 {
  font-size: 13px;
  margin: 0 0 4px;
}
.education-detail p:not(.project-type) {
  font-size: 10px;
  color: #8f8890;
  line-height: 1.8;
  margin: 0 0 9px;
}
.education-detail .project-type {
  margin-bottom: 7px;
}
.contact-section {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 8%;
  align-items: center;
  padding-block: 115px;
}
.contact-orbit {
  position: absolute;
  right: -6%;
  top: 2%;
  width: 450px;
  height: 450px;
  border: 1px solid rgba(163, 45, 84, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(163, 45, 84, 0.06);
  pointer-events: none;
}
.contact-content,
.contact-details {
  position: relative;
  z-index: 1;
}
.contact-content h2 {
  font-size: clamp(51px, 6.4vw, 83px);
  line-height: 1.01;
  letter-spacing: -0.085em;
  margin: 0 0 22px;
}
.contact-content > p:not(.eyebrow) {
  max-width: 390px;
  color: #a09aa0;
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 28px;
}
.contact-details {
  border-top: 1px solid #302c30;
}
.contact-details > a {
  display: grid;
  grid-template-columns: 39px 1fr 15px;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid #302c30;
  transition: padding 0.2s;
}
.contact-details > a:hover {
  padding-left: 6px;
}
.contact-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #3b343a;
  color: #c2bbc2;
  font-size: 13px;
}
.contact-details > a > span:nth-child(2) {
  font-size: 10px;
  color: #d4cfd4;
}
.contact-details small {
  display: block;
  font: 8px var(--mono);
  color: #817a82;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.contact-details > a > b {
  color: #ce6387;
  font-weight: 400;
}
.site-footer {
  border-top: 1px solid var(--line);
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer .wordmark {
  font-size: 15px;
}
.site-footer > p {
  font-size: 9px;
  color: #777178;
}
.back-top,
.footer-year {
  font: 8px var(--mono);
  letter-spacing: 0.08em;
  color: #858087;
}
.back-top:hover {
  color: #c9567c;
}
.project-dialog {
  width: min(560px, calc(100% - 32px));
  padding: 36px;
  background: #151416;
  color: var(--white);
  border: 1px solid #51303b;
  box-shadow: 0 30px 100px #000b;
}
.project-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #cccccc;
  font-size: 28px;
  cursor: pointer;
}
.project-dialog h2 {
  font-size: 38px;
  letter-spacing: -0.06em;
  margin: 0 0 12px;
}
.project-dialog > p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.8;
  color: #aaa3aa;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.dialog-actions a {
  font-size: 10px;
  border: 1px solid #4b3a43;
  padding: 10px 13px;
}
.dialog-actions a:hover {
  background: var(--burgundy);
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes blink {
  to {
    visibility: hidden;
  }
}
@media (max-width: 1050px) {
  .section-shell,
  .site-header {
    width: calc(100% - 56px);
  }
  .site-header.scrolled {
    padding-inline: 28px;
  }
  .site-nav {
    gap: 20px;
  }
  .hero {
    grid-template-columns: 1fr 0.9fr;
    min-height: 780px;
  }
  .hero h1 {
    font-size: clamp(60px, 8vw, 90px);
  }
  .hero-visual {
    height: 590px;
    margin-right: 0;
  }
  .terminal-card {
    right: -2%;
    width: 205px;
  }
  .visual-note {
    left: -2%;
    bottom: 13%;
  }
  .project-featured .project-art {
    height: 315px;
  }
  .mock-window {
    width: 90%;
    grid-template-columns: 95px 1fr;
  }
  .case-layout {
    gap: 5%;
  }
  .education-strip {
    gap: 22px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 78px;
  }
  .section-shell,
  .site-header {
    width: calc(100% - 40px);
  }
  .section-pad {
    padding-block: 78px;
  }
  .site-header {
    height: 72px;
  }
  .site-header.scrolled {
    height: 66px;
    padding-inline: 20px;
  }
  .wordmark {
    font-size: 17px;
  }
  .menu-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 1px solid #393339;
    background: #111111;
    cursor: pointer;
  }
  .menu-toggle span {
    width: 16px;
    height: 1px;
    background: #eeeeee;
    transition: transform 0.2s;
  }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: -20px;
    right: -20px;
    background: rgba(12, 11, 12, 0.97);
    border-bottom: 1px solid #3a3036;
    display: none;
    padding: 20px;
    align-items: stretch;
    gap: 0;
    flex-direction: column;
    backdrop-filter: blur(18px);
  }
  .site-nav.is-open {
    display: flex;
  }
  .nav-link {
    padding: 13px 0;
    border-bottom: 1px solid #252225;
    font-size: 13px;
  }
  .nav-link.active::after {
    display: none;
  }
  .resume-link {
    margin-top: 15px;
    justify-content: space-between;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding-top: 126px;
    padding-bottom: 70px;
  }
  .hero-copy {
    padding: 15px 0 0;
  }
  .hero h1 {
    font-size: clamp(65px, 15vw, 100px);
    margin-bottom: 25px;
  }
  .hero-description {
    font-size: 13px;
    max-width: 520px;
  }
  .hero-visual {
    height: 450px;
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
  }
  .portrait-frame {
    width: 78%;
    height: 100%;
    right: 9%;
  }
  .portrait-frame img {
    object-position: center top;
  }
  .orbit-one {
    width: 340px;
    height: 490px;
    right: 8%;
    top: -6%;
  }
  .orbit-two {
    width: 480px;
    height: 230px;
    right: -20%;
    top: 37%;
  }
  .terminal-card {
    top: 14%;
    right: 0;
    width: 178px;
    font-size: 8px;
  }
  .terminal-top {
    height: 27px;
  }
  .terminal-body {
    padding: 10px;
  }
  .terminal-output {
    margin-bottom: 9px !important;
  }
  .visual-note {
    left: 0;
    bottom: 12%;
    padding: 10px;
    font-size: 8px;
  }
  .hero-index {
    right: 3px;
    bottom: 17%;
    font-size: 8px;
  }
  .scroll-cue {
    bottom: 20px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading h2 {
    font-size: clamp(42px, 10vw, 60px);
  }
  .section-lede {
    font-size: 12px;
  }
  .project-count {
    display: none;
  }
  .project-toolbar {
    margin-top: 35px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .filters {
    gap: 4px;
  }
  .filter-button {
    padding: 8px 10px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .project-featured {
    grid-row: auto;
  }
  .project-featured .project-art {
    height: 300px;
  }
  .project-tall .project-art {
    height: 260px;
  }
  .project-wide .project-art {
    height: 240px;
  }
  .project-medical .project-art {
    height: 215px;
  }
  .project-expense {
    grid-column: auto;
  }
  .expense-art {
    height: 230px;
  }
  .project-info {
    padding: 20px 18px 16px;
  }
  .project-info h3 {
    font-size: 23px;
  }
  .project-info > p {
    font-size: 11px;
  }
  .project-footer {
    font-size: 7px;
  }
  .case-study {
    padding-block: 30px 78px;
  }
  .case-topline {
    align-items: flex-start;
    gap: 10px;
  }
  .mono-label {
    font-size: 7px;
    text-align: right;
  }
  .case-layout {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 20px;
  }
  .case-copy h2 {
    font-size: 58px;
  }
  .case-lede {
    font-size: 12px;
  }
  .case-visual {
    transform: none;
  }
  .kanban {
    gap: 6px;
    padding: 14px 8px;
    min-height: 220px;
  }
  .kanban-column > p {
    font-size: 6px;
  }
  .kanban-task {
    padding: 8px 5px;
    min-height: 80px;
  }
  .kanban-task b {
    font-size: 7px;
  }
  .about-skills {
    grid-template-columns: 1fr;
    gap: 55px;
  }
  .about-panel h2,
  .skills-panel h2 {
    font-size: clamp(40px, 10vw, 55px);
  }
  .about-panel > p:not(.eyebrow),
  .skills-intro {
    font-size: 12px;
  }
  .education-strip {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-block: 60px;
  }
  .education-strip h2 {
    font-size: 43px;
  }
  .education-detail {
    padding-top: 5px;
  }
  .contact-section {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-block: 78px;
  }
  .contact-content h2 {
    font-size: clamp(53px, 12vw, 75px);
  }
  .contact-orbit {
    width: 310px;
    height: 310px;
    right: -25%;
    top: 4%;
  }
  .site-footer {
    padding-block: 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .site-footer > p {
    grid-row: 2;
    grid-column: 1;
    margin: 0;
  }
  .back-top {
    grid-column: 2;
    grid-row: 1;
  }
  .footer-year {
    grid-column: 2;
    grid-row: 2;
    font-size: 7px;
  }
  .project-dialog {
    padding: 30px 22px;
  }
  .project-dialog h2 {
    font-size: 32px;
  }
}
@media (max-width: 400px) {
  .section-shell,
  .site-header {
    width: calc(100% - 32px);
  }
  .site-header.scrolled {
    padding-inline: 16px;
  }
  .hero h1 {
    font-size: 62px;
  }
  .hero-visual {
    height: 400px;
  }
  .terminal-card {
    width: 155px;
    right: -2%;
  }
  .visual-note {
    bottom: 10%;
  }
  .project-featured .project-art {
    height: 260px;
  }
  .mock-window {
    width: 94%;
    height: 80%;
    grid-template-columns: 80px 1fr;
  }
  .mock-sidebar {
    padding: 12px 7px;
    font-size: 7px;
    gap: 12px;
  }
  .mock-main {
    padding: 10px 8px;
  }
  .mock-greeting {
    font-size: 10px;
  }
  .mock-stats small {
    font-size: 5px;
  }
  .mock-stats b {
    font-size: 14px;
  }
  .project-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .project-title-row {
    align-items: flex-start;
  }
  .project-info h3 {
    font-size: 21px;
  }
  .project-toolbar > p {
    font-size: 9px;
  }
  .filter-button {
    font-size: 9px;
    padding: 7px 8px;
  }
  .case-copy h2 {
    font-size: 53px;
  }
  .kanban {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kanban-task b {
    font-size: 6px;
  }
  .kanban-task small {
    font-size: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Editorial motion upgrade: kinetic hero, project reel, journey & credentials ── */
.hero-manifesto {
  position: relative;
  margin: 0 0 28px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.manifesto-kicker {
  font: 10px var(--mono);
  letter-spacing: 0.22em;
  color: #aaa1a6;
  margin: 0 0 18px;
}
.hero-manifesto h1 {
  font-size: clamp(70px, 8.2vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.09em;
  margin: 0;
  white-space: nowrap;
}
.hero-word-wrap {
  display: inline-block;
  position: relative;
  min-width: 4.25ch;
  vertical-align: baseline;
  perspective: 600px;
}
.hero-word {
  display: inline-block;
  animation: wordArrive 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: 50% 100%;
  text-shadow: 0 0 42px rgba(195, 65, 109, 0.15);
}
.hero-word-underline {
  position: absolute;
  left: 0;
  right: 10%;
  height: 5px;
  bottom: -10px;
  background: linear-gradient(90deg, var(--burgundy-bright), transparent);
  transform-origin: left;
  animation: underlineGrow 0.8s 0.15s both;
}
.manifesto-period {
  color: #ca597f;
}
.manifesto-trail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  color: #a39aa0;
  font: 10px var(--mono);
}
.manifesto-index {
  color: #c54a73;
}
.manifesto-line {
  width: 38px;
  height: 1px;
  background: #a23358;
}
.manifesto-trail #manifesto-caption {
  letter-spacing: 0.04em;
}
.hero-visual::before {
  content: "DESIGN / BUILD / LEAD";
  position: absolute;
  top: 12%;
  right: 0;
  writing-mode: vertical-rl;
  font: 9px var(--mono);
  letter-spacing: 0.23em;
  color: #6e6269;
  z-index: 5;
  animation: floatSoft 5s ease-in-out infinite;
}
.portrait-frame img {
  filter: contrast(1.06) brightness(0.94) saturate(1.06);
  mix-blend-mode: normal;
}
.portrait-frame::after {
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.05), transparent 38%),
    linear-gradient(0deg, #090909 0%, transparent 28%),
    linear-gradient(180deg, rgba(9, 9, 9, 0.01), rgba(9, 9, 9, 0.015));
}
.terminal-card {
  animation: terminalFloat 7s ease-in-out infinite;
}
.visual-note {
  animation: noteFloat 6s ease-in-out infinite;
}
@keyframes wordArrive {
  from {
    opacity: 0;
    transform: translateY(36px) rotateX(-35deg);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
  }
}
@keyframes underlineGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-9px);
    opacity: 1;
  }
}
@keyframes terminalFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}
@keyframes noteFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}
/* Projects become a horizontal, snap-driven editorial reel instead of a static card grid. */
.project-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 20px;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  align-items: stretch;
}
.project-grid::-webkit-scrollbar {
  display: none;
}
.project-card,
.project-featured,
.project-tall,
.project-wide,
.project-expense,
.project-medical {
  flex: 0 0 min(82%, 980px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-row: auto;
  grid-column: auto;
  min-height: 440px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  border-radius: 4px;
  transform: none !important;
  opacity: 1 !important;
}
.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-2px) !important;
}
.project-card .project-art,
.project-featured .project-art,
.project-tall .project-art,
.project-wide .project-art,
.project-medical .project-art,
.project-expense .project-art {
  height: auto;
  min-height: 100%;
  border-bottom: 0;
  border-right: 1px solid #2a282b;
}
.project-card .project-info {
  padding: clamp(24px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.project-info h3 {
  font-size: clamp(26px, 3vw, 40px);
}
.project-info > p {
  font-size: 12px;
  line-height: 1.9;
}
.project-info .tag-row {
  gap: 6px;
}
.project-info .tag-row span {
  font-size: 9px;
}
.project-footer {
  margin-top: auto;
  padding-top: 26px;
}
.project-toolbar {
  margin-bottom: 24px;
}
.reel-controls {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  padding: 10px 0 0;
}
.reel-progress {
  height: 2px;
  background: #302a2e;
  overflow: hidden;
}
.reel-progress span {
  height: 100%;
  display: block;
  width: 14.285%;
  background: var(--burgundy-bright);
  transition: width 0.25s;
}
.reel-status {
  display: flex;
  gap: 7px;
  align-items: center;
  font: 10px var(--mono);
  color: #a99fa5;
}
.reel-status #reel-current {
  color: #d45982;
}
.reel-status-divider {
  color: #655961;
}
.reel-hint {
  margin-left: 14px;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: #736a71;
}
.reel-arrows {
  display: flex;
  gap: 8px;
}
.reel-arrows button {
  width: 42px;
  height: 42px;
  border: 1px solid #43343b;
  background: #151114;
  color: #f3edf0;
  font-size: 20px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.reel-arrows button:hover {
  background: #a23258;
  border-color: #c74f77;
  transform: translateY(-2px);
}
.project-footnote {
  margin-top: 30px;
}
.project-extra .project-art {
  display: grid;
  place-items: center;
}
.extra-art {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(163, 45, 84, 0.18), transparent 70%), #121112;
}
.mobile-art {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(195, 65, 109, 0.2), transparent 60%),
    linear-gradient(140deg, #181316, #0c0b0c);
}
.phone-pair {
  display: flex;
  gap: 22px;
  align-items: center;
  transform: rotate(-5deg);
}
.mini-phone {
  width: 126px;
  height: 245px;
  border: 1px solid #63505a;
  border-radius: 20px;
  background: #171517;
  box-shadow: 0 20px 40px #0008;
  padding: 22px 12px 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.phone-offset {
  transform: translateY(24px) rotate(8deg);
  background: #21171b;
}
.mini-notch {
  position: absolute;
  top: 7px;
  left: calc(50% - 20px);
  width: 40px;
  height: 5px;
  border-radius: 9px;
  background: #5e4a52;
}
.mini-label {
  font: 6px var(--mono);
  letter-spacing: 0.1em;
  color: #d7829e;
}
.mini-phone b {
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: -0.05em;
}
.mini-food,
.mini-recipe {
  height: 85px;
  border-radius: 8px;
  background: radial-gradient(
    circle at 45% 45%,
    #d7a879 0 17%,
    #884e38 18% 30%,
    #d6a66e 31% 43%,
    #3c3028 44% 100%
  );
  box-shadow: inset 0 0 0 4px #30252a;
}
.mini-recipe {
  background: linear-gradient(135deg, #822946, #a55d64 50%, #e1b08a);
}
.mini-phone small {
  font-size: 7px;
  color: #b5a6ad;
}
.database-art {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(195, 65, 109, 0.16), transparent 60%), #111111;
}
.database-window {
  width: 80%;
  height: 72%;
  position: relative;
  border: 1px solid #49363f;
  background: #121113;
  box-shadow: 0 20px 55px #0008;
  padding: 12px;
  font: 7px var(--mono);
}
.database-top {
  display: flex;
  justify-content: space-between;
  color: #b7a7ae;
  padding-bottom: 10px;
  border-bottom: 1px solid #33262c;
}
.database-top span:last-child {
  color: #c9567c;
}
.db-table {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px;
  width: 38%;
  border: 1px solid #664051;
  background: #1d171a;
  color: #9f9399;
}
.db-table b {
  color: #edc6d3;
  font-size: 8px;
  margin-bottom: 3px;
}
.db-table i {
  font-style: normal;
  border-bottom: 1px solid #3b2b32;
  padding-bottom: 3px;
}
.db-table-one {
  top: 24%;
  left: 6%;
}
.db-table-two {
  top: 47%;
  right: 6%;
}
.db-table-three {
  bottom: 5%;
  left: 16%;
}
.db-link {
  position: absolute;
  height: 1px;
  background: #ce6387;
  transform-origin: left;
}
.link-one {
  width: 30%;
  top: 48%;
  left: 41%;
  transform: rotate(19deg);
}
.link-two {
  width: 32%;
  top: 65%;
  left: 30%;
  transform: rotate(45deg);
}
.tcp-art {
  background: radial-gradient(ellipse at center, rgba(163, 45, 84, 0.17), transparent 70%), #0f1011;
}
.tcp-scene {
  width: 84%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.tcp-node {
  width: 75%;
  padding: 14px 16px;
  border: 1px solid #624052;
  background: #1a1418;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.tcp-node span {
  font: 8px var(--mono);
  color: #cf6689;
}
.tcp-node b {
  font: 10px var(--mono);
  color: #d4cbd0;
  font-weight: 400;
}
.tcp-packets {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8f8389;
  font: 8px var(--mono);
}
.tcp-packets i {
  width: 7px;
  height: 7px;
  background: #cc5f83;
  border-radius: 50%;
  box-shadow: 0 0 14px #a7436077;
  animation: packet 1.5s ease-in-out infinite;
}
.tcp-packets i:nth-child(2) {
  animation-delay: 0.25s;
}
.tcp-packets i:nth-child(3) {
  animation-delay: 0.5s;
}
.tcp-packets span {
  margin-left: 8px;
}
.tcp-terminal {
  width: 100%;
  padding: 11px;
  border: 1px solid #292629;
  color: #928990;
  font: 8px/2 var(--mono);
  background: #0a0a0b;
}
.tcp-terminal span {
  color: #c8537a;
  margin-right: 6px;
}
@keyframes packet {
  0%,
  100% {
    opacity: 0.25;
    transform: translateX(-4px);
  }
  50% {
    opacity: 1;
    transform: translateX(4px);
  }
}
/* Restored portfolio sections, now with staggered reveal and animated timeline. */
.experience-section,
.journey-section,
.process-section,
.certificates-section {
  border-top: 1px solid var(--line);
}
.section-side-note {
  font: 8px var(--mono);
  letter-spacing: 0.12em;
  color: #71666d;
  white-space: nowrap;
  margin-bottom: 10px;
}
.experience-list {
  margin-top: 58px;
  border-top: 1px solid #302a2e;
}
.experience-item {
  display: grid;
  grid-template-columns: 42px 52px minmax(0, 1fr) 105px;
  gap: 20px;
  align-items: start;
  padding: 26px 12px;
  border-bottom: 1px solid #302a2e;
  position: relative;
  transition:
    background 0.35s,
    padding 0.35s;
  overflow: hidden;
}
.experience-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--burgundy-bright);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s;
}
.experience-item:hover {
  background: linear-gradient(90deg, rgba(163, 45, 84, 0.11), transparent 75%);
  padding-left: 20px;
}
.experience-item:hover::before {
  transform: scaleY(1);
}
.experience-number {
  font: 10px var(--mono);
  color: #7c6d75;
  padding-top: 5px;
}
.experience-mark {
  width: 46px;
  height: 46px;
  border: 1px solid #4b333d;
  color: #c8537a;
  display: grid;
  place-items: center;
  font: 16px var(--mono);
  background: #171114;
}
.experience-meta,
.journey-card > p,
.certificate-item > div > p {
  font: 8px var(--mono);
  letter-spacing: 0.12em;
  color: #ce6387;
  margin: 0 0 9px;
}
.experience-copy h3 {
  font-size: 22px;
  letter-spacing: -0.045em;
  margin: 0 0 4px;
}
.experience-org {
  color: #d1c7cc;
  font-size: 11px;
  margin: 0 0 10px;
}
.experience-org span {
  color: #827980;
}
.experience-copy > p:last-child {
  color: #938991;
  font-size: 11px;
  line-height: 1.8;
  max-width: 700px;
  margin: 0;
}
.experience-type {
  justify-self: end;
  border: 1px solid #382a30;
  padding: 6px 9px;
  color: #82747c;
  font: 7px var(--mono);
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.journey-section .section-heading {
  margin-bottom: 56px;
}
.journey-track {
  position: relative;
  padding-left: 90px;
}
.journey-line {
  position: absolute;
  top: 8px;
  bottom: 10px;
  left: 22px;
  width: 1px;
  background: #3b2d34;
}
.journey-line span {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(var(--burgundy-bright), #c9557c);
  box-shadow: 0 0 15px #9d3a5870;
  transition: height 0.15s linear;
}
.journey-item {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 20px;
  padding: 0 0 30px;
  opacity: 0.4;
  transform: translateX(12px);
  transition:
    opacity 0.6s,
    transform 0.6s;
}
.journey-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.journey-dot {
  position: absolute;
  left: -76px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #171114;
  border: 2px solid #c85179;
  box-shadow: 0 0 0 5px #090909;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.journey-item.is-visible .journey-dot {
  background: #c54972;
  box-shadow:
    0 0 0 5px #090909,
    0 0 20px #a83f5f88;
}
.journey-year {
  font: 12px var(--mono);
  color: #ca597f;
  padding-top: 4px;
}
.journey-card {
  border: 1px solid #2e282c;
  background: linear-gradient(120deg, #151214, #101011);
  padding: 22px 25px;
  transition:
    border-color 0.3s,
    transform 0.3s;
}
.journey-item:hover .journey-card {
  border-color: #67404d;
  transform: translateX(4px);
}
.journey-card h3 {
  font-size: clamp(18px, 2.2vw, 25px);
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}
.journey-card > span {
  font-size: 11px;
  line-height: 1.8;
  color: #9e939a;
  display: block;
  max-width: 760px;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 55px;
  border-top: 1px solid #382e33;
  border-bottom: 1px solid #382e33;
}
.process-step {
  padding: 24px 19px 27px;
  border-right: 1px solid #382e33;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.process-step:last-child {
  border-right: 0;
}
.process-step::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--burgundy-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.process-step:hover {
  background: linear-gradient(180deg, rgba(163, 45, 84, 0.12), transparent);
}
.process-step:hover::after {
  transform: scaleX(1);
}
.process-step > span {
  font: 8px var(--mono);
  color: #cd6286;
  letter-spacing: 0.09em;
}
.process-symbol {
  height: 90px;
  display: flex;
  align-items: center;
  font: 44px var(--mono);
  color: #dd93ac;
  transition:
    transform 0.4s,
    color 0.4s;
}
.process-step:hover .process-symbol {
  transform: translateY(-4px) rotate(-5deg);
  color: #efc4d2;
}
.process-step h3 {
  font-size: 16px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.process-step p {
  font-size: 10px;
  line-height: 1.8;
  color: #948991;
  margin: 0;
}
.certificate-seal {
  width: 94px;
  height: 94px;
  border: 1px solid #654050;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  color: #cb5c81;
  font: 9px/1.7 var(--mono);
  letter-spacing: 0.1em;
  transform: rotate(10deg);
  position: relative;
}
.certificate-seal::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed #4e3440;
  border-radius: 50%;
  animation: spinSlow 25s linear infinite;
}
@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}
.certificate-list {
  margin-top: 50px;
  border-top: 1px solid #342b30;
}
.certificate-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 35px;
  align-items: center;
  gap: 20px;
  padding: 21px 10px;
  border-bottom: 1px solid #342b30;
  transition:
    background 0.3s,
    padding 0.3s;
}
.certificate-item:hover {
  background: linear-gradient(90deg, rgba(163, 45, 84, 0.13), transparent);
  padding-left: 18px;
}
.certificate-icon {
  width: 43px;
  height: 43px;
  border: 1px solid #503541;
  display: grid;
  place-items: center;
  color: #d16b8c;
  font: 14px var(--mono);
  background: #1b1417;
}
.certificate-item h3 {
  font-size: 18px;
  letter-spacing: -0.03em;
  margin: 0 0 3px;
}
.certificate-item > div > span {
  font-size: 10px;
  color: #90848c;
}
.certificate-item > b {
  font: 10px var(--mono);
  color: #6d5d65;
  justify-self: end;
}
/* Contact form restores the original get-in-touch workflow with a cleaner split layout. */
.contact-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 8vw, 110px);
  position: relative;
  isolation: isolate;
}
.contact-intro h2 {
  font-size: clamp(48px, 6.3vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.08em;
  margin: 0 0 22px;
}
.contact-intro > p:not(.eyebrow) {
  max-width: 440px;
  font-size: 12px;
  line-height: 1.9;
  color: #a39aa0;
}
.contact-info-list {
  margin-top: 38px;
  border-top: 1px solid #352a30;
}
.contact-info-list > a,
.contact-info-list > div {
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #352a30;
}
.contact-info-list span {
  font: 8px var(--mono);
  letter-spacing: 0.1em;
  color: #cb5c81;
}
.contact-info-list b {
  font-size: 11px;
  font-weight: 500;
  color: #ded4d9;
  overflow-wrap: anywhere;
}
.contact-info-list i {
  font-style: normal;
  color: #c3416c;
}
.contact-info-list a:hover b {
  color: #ffffff;
}
.contact-form-panel {
  border: 1px solid #3b2c33;
  background: linear-gradient(145deg, rgba(28, 19, 23, 0.92), rgba(14, 13, 14, 0.97));
  padding: clamp(22px, 3vw, 38px);
  align-self: start;
  box-shadow: 0 30px 80px #0003;
}
.form-panel-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 22px;
  border-bottom: 1px solid #3a2a31;
  font: 8px var(--mono);
  letter-spacing: 0.12em;
  color: #c1b4bc;
}
.form-live-dot {
  width: 6px;
  height: 6px;
  background: #c85279;
  border-radius: 50%;
  box-shadow: 0 0 12px #c15a7777;
}
.form-index {
  margin-left: auto;
  color: #7f7079;
}
.contact-form {
  display: grid;
  gap: 17px;
  padding-top: 22px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #c6bbc2;
  font: 10px var(--mono);
  letter-spacing: 0.04em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #100e10;
  border: 1px solid #382e33;
  color: #f4eef1;
  padding: 13px 14px;
  font: 11px var(--font);
  outline: none;
  border-radius: 2px;
  transition:
    border-color 0.25s,
    background 0.25s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #cb5c81;
  background: #151014;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #6f646b;
}
.optional-label {
  font: 7px var(--mono);
  color: #796a73;
  margin-top: -22px;
  margin-left: auto;
}
.send-message {
  justify-self: start;
  cursor: pointer;
  margin-top: 2px;
}
.send-message:disabled {
  opacity: 0.6;
  cursor: wait;
}
.form-feedback {
  font: 10px var(--font);
  color: #cd6185;
  margin: 0;
  min-height: 0;
}
.form-feedback:empty {
  display: none;
}
.floating-back-top {
  position: fixed;
  z-index: 90;
  right: 26px;
  bottom: 26px;
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(21, 15, 18, 0.94);
  border: 1px solid #684050;
  color: #eadce2;
  box-shadow: 0 8px 30px #0006;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s,
    visibility 0.25s,
    transform 0.25s,
    background 0.25s;
}
.floating-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.floating-back-top:hover {
  background: #aa355c;
  transform: translateY(-3px);
}
.floating-back-top span {
  font-size: 19px;
  line-height: 1.05;
}
.floating-back-top small {
  font: 6px var(--mono);
  letter-spacing: 0.14em;
}
.back-top {
  transition: color 0.2s;
}
.back-top:hover {
  color: #d75e86;
}
/* Shared reveal staggering */
.experience-item,
.certificate-item,
.process-step {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.65s,
    transform 0.65s,
    background 0.3s,
    padding 0.3s,
    border-color 0.3s;
}
.experience-item.is-visible,
.certificate-item.is-visible,
.process-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 1000px) {
  .hero-manifesto h1 {
    font-size: clamp(64px, 8vw, 92px);
  }
  .project-card,
  .project-featured,
  .project-tall,
  .project-wide,
  .project-expense,
  .project-medical {
    flex-basis: 88%;
    min-height: 400px;
  }
  .experience-item {
    grid-template-columns: 30px 45px minmax(0, 1fr);
    gap: 14px;
  }
  .experience-type {
    grid-column: 3;
    justify-self: start;
    margin-top: -5px;
  }
  .process-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .process-step:nth-child(3) {
    border-right: 0;
  }
  .process-step:nth-child(n + 4) {
    border-top: 1px solid #382e33;
  }
  .contact-section {
    gap: 45px;
  }
}
@media (max-width: 760px) {
  .hero-manifesto {
    min-height: 190px;
    margin-bottom: 18px;
  }
  .hero-manifesto h1 {
    font-size: clamp(59px, 13.5vw, 90px);
  }
  .manifesto-kicker {
    font-size: 8px;
  }
  .manifesto-trail {
    margin-top: 27px;
  }
  .hero-visual::before {
    right: 2%;
    top: 7%;
    font-size: 7px;
  }
  .portrait-frame img {
    filter: contrast(1.04) brightness(0.98) saturate(1.04);
  }
  .project-grid {
    margin-right: -20px;
    padding-right: 20px;
    gap: 13px;
    scroll-padding-left: 0;
  }
  .project-card,
  .project-featured,
  .project-tall,
  .project-wide,
  .project-expense,
  .project-medical {
    flex: 0 0 88%;
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .project-card .project-art,
  .project-featured .project-art,
  .project-tall .project-art,
  .project-wide .project-art,
  .project-medical .project-art,
  .project-expense .project-art {
    height: 255px;
    min-height: 255px;
    border-right: 0;
    border-bottom: 1px solid #2a282b;
  }
  .project-card .project-info {
    padding: 20px 19px 18px;
    min-height: 275px;
  }
  .project-info h3 {
    font-size: 25px;
  }
  .project-info > p {
    font-size: 11px;
  }
  .project-footer {
    padding-top: 18px;
  }
  .reel-controls {
    grid-template-columns: 1fr auto;
    gap: 15px;
  }
  .reel-progress {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .reel-status {
    grid-column: 1;
    grid-row: 2;
    flex-wrap: wrap;
  }
  .reel-hint {
    display: none;
  }
  .reel-arrows {
    grid-column: 2;
    grid-row: 2;
  }
  .reel-arrows button {
    width: 38px;
    height: 38px;
  }
  .phone-pair {
    transform: scale(0.85) rotate(-5deg);
  }
  .database-window {
    width: 82%;
    height: 80%;
  }
  .tcp-scene {
    width: 90%;
  }
  .section-side-note {
    display: none;
  }
  .experience-list {
    margin-top: 38px;
  }
  .experience-item {
    grid-template-columns: 22px 38px minmax(0, 1fr);
    gap: 11px;
    padding: 21px 5px;
  }
  .experience-mark {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .experience-copy h3 {
    font-size: 18px;
  }
  .experience-org {
    font-size: 10px;
  }
  .experience-copy > p:last-child {
    font-size: 10px;
  }
  .experience-type {
    font-size: 6px;
  }
  .journey-section .section-heading {
    margin-bottom: 40px;
  }
  .journey-track {
    padding-left: 53px;
  }
  .journey-line {
    left: 10px;
  }
  .journey-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-bottom: 20px;
  }
  .journey-dot {
    left: -48px;
    width: 11px;
    height: 11px;
  }
  .journey-year {
    font-size: 11px;
  }
  .journey-card {
    padding: 18px;
  }
  .journey-card h3 {
    font-size: 19px;
  }
  .journey-card > span {
    font-size: 10px;
  }
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 35px;
  }
  .process-step {
    padding: 18px 14px 20px;
    border-top: 1px solid #382e33 !important;
  }
  .process-step:nth-child(odd) {
    border-right: 1px solid #382e33;
  }
  .process-step:nth-child(even) {
    border-right: 0;
  }
  .process-step:last-child {
    grid-column: 1/-1;
  }
  .process-symbol {
    height: 60px;
    font-size: 35px;
  }
  .process-step h3 {
    font-size: 15px;
  }
  .process-step p {
    font-size: 9px;
  }
  .certificate-seal {
    width: 70px;
    height: 70px;
    font-size: 7px;
  }
  .certificate-item {
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    gap: 12px;
    padding: 17px 3px;
  }
  .certificate-icon {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }
  .certificate-item h3 {
    font-size: 15px;
  }
  .certificate-item > div > p {
    font-size: 7px;
  }
  .certificate-item > div > span {
    font-size: 9px;
  }
  .contact-section {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .contact-intro h2 {
    font-size: clamp(48px, 12vw, 68px);
  }
  .contact-info-list {
    margin-top: 28px;
  }
  .contact-form-panel {
    padding: 22px 18px;
  }
  .floating-back-top {
    right: 15px;
    bottom: 15px;
    width: 43px;
    height: 43px;
  }
  .education-strip {
    margin-bottom: 0;
  }
}
@media (max-width: 400px) {
  .hero-manifesto h1 {
    font-size: 56px;
  }
  .hero-word-wrap {
    min-width: 4ch;
  }
  .project-card,
  .project-featured,
  .project-tall,
  .project-wide,
  .project-expense,
  .project-medical {
    flex-basis: 92%;
  }
  .project-card .project-art,
  .project-featured .project-art,
  .project-tall .project-art,
  .project-wide .project-art,
  .project-medical .project-art,
  .project-expense .project-art {
    height: 225px;
    min-height: 225px;
  }
  .experience-item {
    grid-template-columns: 18px 32px minmax(0, 1fr);
    gap: 8px;
  }
  .experience-mark {
    width: 31px;
    height: 31px;
  }
  .experience-copy h3 {
    font-size: 16px;
  }
  .certificate-item {
    gap: 9px;
  }
  .certificate-item h3 {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-word,
  .hero-word-underline,
  .hero-visual::before,
  .terminal-card,
  .visual-note,
  .tcp-packets i,
  .certificate-seal::before {
    animation: none !important;
  }
  .experience-item,
  .certificate-item,
  .process-step,
  .journey-item {
    opacity: 1;
    transform: none;
  }
}

/* ═════════ v3 ENHANCEMENTS (built on top of the original design) ═════════ */

/* — Hero: portrait shares the page's exact black and dissolves into it on every side — */
.portrait-frame {
  right: 0;
  bottom: 0;
  width: min(92%, 560px);
  height: 98%;
  overflow: visible;
  -webkit-mask-image: radial-gradient(
    ellipse closest-side at 50% 50%,
    #000 56%,
    rgba(0, 0, 0, 0.55) 78%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse closest-side at 50% 50%,
    #000 56%,
    rgba(0, 0, 0, 0.55) 78%,
    transparent 100%
  );
}
.portrait-frame::after {
  display: none;
}
.portrait-frame img {
  filter: none;
  mix-blend-mode: normal;
  object-position: center;
}
body::before {
  background: radial-gradient(ellipse at 76% 14%, rgba(195, 65, 109, 0.07), transparent 36%);
}
.portrait-orbit {
  opacity: 0.55;
}

/* — Hero: "I design / I build / I lead" as three lines; the active line wipes in — */
.hero-manifesto {
  min-height: 0;
  margin-bottom: 26px;
}
.hero-manifesto h1.statement {
  display: flex;
  flex-direction: column;
  font-size: clamp(56px, 6.6vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.075em;
  white-space: normal;
  margin: 0;
}
.stmt-line {
  position: relative;
  display: block;
  width: fit-content;
  cursor: pointer;
  padding-bottom: 6px;
}
.stmt-text {
  position: relative;
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  transition: -webkit-text-stroke-color 0.4s;
}
.stmt-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  color: var(--white);
  -webkit-text-stroke: 0;
  clip-path: inset(-10% 100% -10% 0);
  transition: clip-path 0.95s cubic-bezier(0.22, 0.8, 0.2, 1);
}
.stmt-line.is-active .stmt-text::after {
  clip-path: inset(-10% 0 -10% 0);
}
.stmt-line:not(.is-active):hover .stmt-text {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.55);
}
.stmt-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--burgundy-bright), transparent);
  transition: width 0.9s 0.1s cubic-bezier(0.22, 0.8, 0.2, 1);
}
.stmt-line.is-active::after {
  width: min(100%, 360px);
}
.manifesto-line {
  position: relative;
  overflow: hidden;
  width: 44px;
}
.manifesto-line i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--burgundy-bright);
}
#manifesto-caption {
  transition:
    opacity 0.3s,
    transform 0.3s;
}
#manifesto-caption.swap {
  opacity: 0;
  transform: translateY(5px);
}

/* — Projects: scroll-driven 3D gallery — */
.projects-section {
  border-top: 1px solid var(--line);
}
.p3-head {
  padding-bottom: 30px;
}
.p3-scroll {
  position: relative;
}
.p3-sticky {
  --cw: 320px;
  --ch: 432px;
  --as: 0.5714;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 56% 52%, rgba(195, 65, 109, 0.13), transparent 52%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.012) 40%, transparent);
}
.p3-sticky::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(0deg, #090909 6%, transparent);
}
.p3-ghost {
  position: absolute;
  left: 54%;
  top: 44%;
  transform: translate(-50%, -50%);
  font-size: clamp(110px, 21vw, 330px);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.075);
  pointer-events: none;
  transition: opacity 0.5s;
}
.p3-ghost.swap {
  opacity: 0;
}
.p3-top {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-inline: max(48px, calc((100vw - var(--max)) / 2));
}
.p3-top .filters {
  flex-wrap: wrap;
}
.p3-hint {
  font: 9px var(--mono);
  letter-spacing: 0.14em;
  color: #7b7077;
  margin: 0;
  white-space: nowrap;
}
.p3-viewport {
  position: absolute;
  inset: 0;
  perspective: 1500px;
  perspective-origin: 50% 40%;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}
.p3-viewport.is-dragging {
  cursor: grabbing;
}
.p3-viewport:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(195, 65, 109, 0.45);
}
.p3-world {
  position: absolute;
  left: 64%;
  top: 45%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.p3-card {
  position: absolute;
  left: calc(var(--cw) / -2);
  top: calc(var(--ch) / -2);
  width: var(--cw);
  height: var(--ch);
  border: 1px solid #3b2d34;
  border-radius: 6px;
  overflow: hidden;
  background: #121112;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.85);
  transition:
    border-color 0.35s,
    box-shadow 0.35s;
  outline: none;
}
.p3-card.is-hidden {
  display: none;
}
.p3-card.is-active {
  border-color: #8a3552;
  box-shadow:
    0 50px 110px -20px rgba(0, 0, 0, 0.9),
    0 0 70px rgba(195, 65, 109, 0.22);
}
.p3-card .project-art {
  position: absolute;
  left: 0;
  top: 0;
  width: 560px;
  height: 756px;
  min-height: 0;
  border: 0;
  transform-origin: 0 0;
  transform: scale(var(--as));
  display: grid;
  place-items: center;
}
.p3-card .syncora-art .mock-window {
  transform: none;
}
.p3-card .image-art img {
  position: absolute;
  inset: 0;
}
.p3-card .expense-art {
  height: 756px;
}
.p3-shade {
  position: absolute;
  inset: 0;
  background: #090909;
  opacity: 0;
  pointer-events: none;
}
.p3-card::after {
  content: attr(data-label) "\\A" attr(data-description);
  white-space: pre-line;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 64px 16px 16px;
  font: 500 10px/1.55 var(--font);
  letter-spacing: 0;
  color: #d5cdd1;
  background: linear-gradient(
    0deg,
    rgba(9, 9, 9, 0.98) 0%,
    rgba(9, 9, 9, 0.88) 56%,
    transparent 100%
  );
  pointer-events: none;
  overflow-wrap: anywhere;
}
.p3-card::first-line {
  font-weight: 700;
}
.p3-progress {
  z-index: 9;
  bottom: 0;
  pointer-events: none;
}
.p3-info {
  position: absolute;
  z-index: 6;
  left: max(48px, calc((100vw - var(--max)) / 2));
  bottom: 118px;
  width: min(340px, 38vw);
}
.p3-info > * {
  animation: p3rise 0.6s cubic-bezier(0.22, 0.8, 0.2, 1) both;
}
.p3-info > *:nth-child(2) {
  animation-delay: 0.04s;
}
.p3-info > *:nth-child(3) {
  animation-delay: 0.08s;
}
.p3-info > *:nth-child(4) {
  animation-delay: 0.12s;
}
.p3-info > *:nth-child(5) {
  animation-delay: 0.16s;
}
.p3-info > *:nth-child(6) {
  animation-delay: 0.2s;
}
.p3-info.swap > * {
  animation: none;
  opacity: 0;
}
@keyframes p3rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.p3-info-index {
  display: block;
  font: 500 clamp(46px, 6vw, 78px)/1 var(--font);
  letter-spacing: -0.08em;
  color: var(--burgundy-bright);
  margin-bottom: 10px;
}
.p3-info h3 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.06em;
  margin: 0 0 10px;
  line-height: 1.05;
}
.p3-desc {
  font-size: 12px;
  line-height: 1.85;
  color: #a79ea4;
  margin: 0 0 16px;
  max-width: 320px;
}
.p3-info .tag-row {
  margin-bottom: 20px;
}
.p3-info .button {
  min-height: 44px;
}
.p3-bottom {
  position: absolute;
  z-index: 7;
  left: 0;
  right: 0;
  bottom: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-inline: max(48px, calc((100vw - var(--max)) / 2));
}
.p3-modes {
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(14, 12, 13, 0.88);
  border: 1px solid #3a2c33;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.p3-modes button {
  border: 0;
  background: transparent;
  color: #a99fa5;
  font-size: 11px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s;
}
.p3-modes button:hover {
  color: #fff;
}
.p3-modes button.is-active {
  background: #f2f0f0;
  color: #111;
}
.p3-nav {
  position: absolute;
  right: max(48px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  gap: 8px;
}
.p3-count {
  font: 10px var(--mono);
  color: #7f747b;
  margin-right: 12px;
  display: flex;
  gap: 6px;
}
.p3-count b {
  color: #e0607e;
  font-weight: 500;
}
.p3-count i {
  font-style: normal;
  color: #5a4f56;
}
.p3-nav button {
  width: 42px;
  height: 42px;
  border: 1px solid #4a3640;
  background: #151114;
  color: #f3edf0;
  font-size: 19px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.p3-nav button:hover {
  background: var(--burgundy);
  border-color: var(--burgundy-bright);
  transform: translateY(-2px);
}
.p3-progress {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
}
.p3-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--burgundy-bright);
}

/* — Project detail dialog (original dark style, richer content) — */
.project-dialog {
  width: min(880px, calc(100% - 24px));
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: hidden;
  background: #151416;
  border: 1px solid #51303b;
}
.project-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: dialogIn 0.5s cubic-bezier(0.22, 0.8, 0.2, 1);
}
@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid #2f2429;
  flex: none;
}
.dialog-count {
  font: 9px var(--mono);
  letter-spacing: 0.14em;
  color: #8a7d85;
}
.project-dialog .dialog-close {
  position: static;
  border: 1px solid #4b3a43;
  background: transparent;
  color: #ddd;
  font: 9px var(--mono);
  letter-spacing: 0.12em;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.project-dialog .dialog-close:hover {
  background: var(--burgundy);
}
.dialog-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 44px);
}
.project-dialog .dialog-head h2 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.07em;
  line-height: 1.05;
  margin: 0 0 14px;
}
.dialog-lede {
  font-size: 15px;
  line-height: 1.8;
  color: #cbc2c8;
  max-width: 62ch;
  margin: 0 0 18px;
}
.dialog-body {
  margin-top: 30px;
  border-top: 1px solid #302a2e;
}
.d-section {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #302a2e;
}
.d-section h3 {
  font: 9px var(--mono);
  letter-spacing: 0.14em;
  color: #b04a66;
  margin: 0;
  padding-top: 4px;
  text-transform: uppercase;
}
.d-section p {
  font-size: 13px;
  line-height: 1.9;
  color: #c2b9bf;
  margin: 0;
}
.d-section p + p {
  margin-top: 12px;
}
.d-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.d-section p + ul {
  margin-top: 14px;
}
.d-section li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.8;
  color: #c2b9bf;
}
.d-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  background: #c3416d;
  -webkit-mask: var(--icon-star) center / contain no-repeat;
  mask: var(--icon-star) center / contain no-repeat;
}
.d-section li b {
  color: #fff;
  font-weight: 600;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.project-dialog .dialog-actions a {
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #4b3a43;
  padding: 13px 18px;
}
.project-dialog .dialog-actions a:first-child {
  background: var(--burgundy);
  border-color: var(--burgundy);
}
.project-dialog .dialog-actions a:hover {
  background: var(--burgundy-bright);
  border-color: var(--burgundy-bright);
}

/* — Certificates: NEW tag — */
.cert-new {
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--burgundy);
  padding: 3px 7px;
  margin-left: 10px;
  vertical-align: 1px;
}

/* — Back to top: ring shows scroll progress — */
.floating-back-top {
  border-radius: 50%;
  width: 54px;
  height: 54px;
  border: 0;
  background: rgba(21, 15, 18, 0.94);
}
.floating-back-top svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.btt-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.6;
}
.btt-ring {
  fill: none;
  stroke: var(--burgundy-bright);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100.53;
  stroke-dashoffset: 100.53;
}
.floating-back-top span,
.floating-back-top small {
  position: relative;
  z-index: 1;
}
.floating-back-top small {
  margin-top: -1px;
}
.form-feedback.ok {
  color: #7fd6a3;
}
.form-feedback.err {
  color: #f0889a;
}
.contact-form input.invalid,
.contact-form textarea.invalid {
  border-color: #e0687a;
}

/* — Responsive — */
@media (max-width: 1000px) {
  .p3-world {
    left: 64%;
  }
  .p3-info {
    bottom: 112px;
    width: min(300px, 50vw);
  }
  .p3-desc {
    display: none;
  }
}
@media (max-width: 760px) {
  .p3-sticky {
    --cw: 236px;
    --ch: 318px;
    --as: 0.4214;
  }
  .p3-top {
    top: 0px;
    padding-inline: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .p3-top .filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    scrollbar-width: none;
  }
  .p3-top .filters::-webkit-scrollbar {
    display: none;
  }
  .filter-button {
    white-space: nowrap;
  }
  .p3-hint {
    display: none;
  }
  .p3-world {
    top: 39%;
  }
  .p3-info {
    left: 20px;
    right: 20px;
    width: auto;
    bottom: 96px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    max-width: calc(100% - 40px);
  }
  .p3-info-index {
    font-size: 34px;
    margin: 0;
  }
  .p3-info .project-type {
    margin: 0;
  }
  .p3-info h3 {
    flex-basis: 100%;
    font-size: 24px;
    margin: 0;
  }
  .p3-info .tag-row {
    display: none;
  }
  .p3-info .button {
    min-height: 38px;
    padding: 0 16px;
    margin-top: 6px;
  }
  .p3-bottom {
    bottom: 22px;
    padding-inline: 16px;
    flex-direction: column;
    gap: 12px;
  }
  .p3-nav {
    position: static;
  }
  .p3-modes button {
    padding: 9px 14px;
  }
  .d-section {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stmt-text::after,
  .stmt-line::after {
    transition: none;
  }
  .p3-info > * {
    animation: none;
  }
}

/* ═════════ v4 ═════════ */

/* — Hero: richer atmosphere — */
.hero {
  min-height: min(980px, 100svh);
  padding-bottom: 84px;
}
.hero-bg {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 100vw;
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 62% 42%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 62% at 62% 42%, #000 10%, transparent 72%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.glow-a {
  width: 560px;
  height: 560px;
  right: 6%;
  top: 6%;
  background: radial-gradient(circle, rgba(214, 90, 132, 0.55), transparent 66%);
  animation: glowDrift 16s ease-in-out infinite alternate;
}
.glow-b {
  width: 420px;
  height: 420px;
  left: -4%;
  bottom: 6%;
  background: radial-gradient(circle, rgba(163, 45, 84, 0.42), transparent 68%);
  animation: glowDrift 20s ease-in-out -6s infinite alternate-reverse;
}
@keyframes glowDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-60px, 40px, 0) scale(1.12);
  }
}
.hero-spot {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    520px circle at var(--sx, 70%) var(--sy, 35%),
    rgba(214, 90, 132, 0.13),
    transparent 60%
  );
  transition: background 0.15s;
}
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  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='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-chip {
  display: inline-flex;
  padding: 8px 14px 8px 12px;
  border: 1px solid rgba(214, 90, 132, 0.32);
  border-radius: 999px;
  background: rgba(214, 90, 132, 0.07);
  backdrop-filter: blur(8px);
  margin-bottom: 30px;
}
.hero-manifesto h1.statement {
  font-size: clamp(60px, 7vw, 104px);
}
.stmt-text::after {
  background: linear-gradient(100deg, #fff 30%, #f8b8cd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-description {
  font-size: 14.5px;
  color: #c0bbbf;
}
.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 40px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 16, 17, 0.55);
  backdrop-filter: blur(10px);
}
.hero-stats > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-stats > div:last-child {
  border-right: 0;
}
.hero-stats b {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero-stats span {
  font: 8px/1.5 var(--mono);
  letter-spacing: 0.1em;
  color: #8f868c;
}
.social-row {
  margin-top: 30px;
}
.hero-visual {
  --px: 0;
  --py: 0;
}
.portrait-frame {
  animation: floaty 9s ease-in-out infinite;
  transform: translate3d(calc(var(--px) * -10px), calc(var(--py) * -8px), 0);
}
.portrait-frame img {
  filter: saturate(1.08) contrast(1.03);
}
@keyframes floaty {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}
.orbit-one {
  animation: orbitA 46s linear infinite;
}
.orbit-two {
  animation: orbitB 58s linear infinite;
}
@keyframes orbitA {
  from {
    transform: rotate(-24deg);
  }
  to {
    transform: rotate(336deg);
  }
}
@keyframes orbitB {
  from {
    transform: rotate(28deg);
  }
  to {
    transform: rotate(-332deg);
  }
}
.portrait-orbit {
  opacity: 0.7;
}
.terminal-card {
  transform: translate3d(calc(var(--px) * 18px), calc(var(--py) * 12px), 0);
  border-color: rgba(214, 90, 132, 0.28);
  box-shadow:
    0 24px 80px #000a,
    0 0 40px rgba(214, 90, 132, 0.08);
}
.visual-note {
  transform: translate3d(calc(var(--px) * 12px), calc(var(--py) * 16px), 0);
  border-color: rgba(214, 90, 132, 0.25);
}
.hero-marquee {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  transform: translateX(-50%);
  height: 54px;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    90deg,
    #090909,
    rgba(9, 9, 9, 0.55) 12%,
    rgba(9, 9, 9, 0.55) 88%,
    #090909
  );
  overflow: hidden;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-set {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
}
.marquee-set span {
  font: 11px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a89fa5;
  white-space: nowrap;
}
.marquee-set i {
  font-style: normal;
  color: #c3416d;
  font-size: 12px;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.hero-index {
  bottom: 24%;
}

/* — Projects: single helix layout (no layout toggle) — */
.p3-bottom {
  justify-content: center;
}
.p3-nav {
  position: static;
  gap: 10px;
}
.p3-count {
  margin-right: 6px;
  font-size: 11px;
}

/* — About + education — */
.about-side {
  padding-top: 6px;
}
.about-side .eyebrow {
  margin-bottom: 18px;
}
.about-side-title {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.07em;
  margin: 0 0 14px;
  font-weight: 600;
}
.about-side .education-detail {
  padding-top: 22px;
  border-top: 1px solid #302c30;
  margin-top: 22px;
}

/* — Skills — */
.skills-section {
  border-top: 1px solid var(--line);
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 52px;
  border-top: 1px solid #302c30;
  border-bottom: 1px solid #302c30;
}
.skill-grid .skill-group {
  padding: 26px 24px 30px;
  border-top: 0;
  border-right: 1px solid #302c30;
  transition: background 0.3s;
}
.skill-grid .skill-group:last-child {
  border-right: 0;
}
.skill-grid .skill-group:hover {
  background: linear-gradient(180deg, rgba(163, 45, 84, 0.1), transparent);
}
.skill-grid .skill-group h3 {
  margin-bottom: 18px;
  color: #d16b8c;
}
.skill-grid .skill-chips span {
  font-size: 11px;
  padding: 9px 12px;
}
.contact-section {
  border-top: 1px solid var(--line);
}

/* — Awards: certificate gallery — */
.cert-stats {
  display: flex;
  gap: 0;
  border: 1px solid #302a2e;
}
.cert-stats > div {
  padding: 14px 20px;
  border-right: 1px solid #302a2e;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cert-stats > div:last-child {
  border-right: 0;
}
.cert-stats b {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 1.1;
}
.cert-stats span {
  font: 8px var(--mono);
  letter-spacing: 0.12em;
  color: #8a7f86;
}
.cert-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 44px 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #2a282b;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cert-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #111112;
  border: 1px solid #2a282b;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition:
    border-color 0.3s,
    transform 0.35s cubic-bezier(0.22, 0.8, 0.2, 1);
  animation: certIn 0.6s cubic-bezier(0.22, 0.8, 0.2, 1) both;
}
@keyframes certIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.cert-card.is-hidden {
  display: none;
}
.cert-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(
    360px circle at var(--mx) var(--my),
    rgba(214, 90, 132, 0.16),
    transparent 60%
  );
}
.cert-card:hover,
.cert-card:focus-visible {
  border-color: #aa355c;
  transform: translateY(-5px);
}
.cert-card:hover::before {
  opacity: 1;
}
.cert-preview {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e9ecf2;
  border-bottom: 1px solid #2a282b;
}
.cert-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition:
    transform 0.7s cubic-bezier(0.22, 0.8, 0.2, 1),
    filter 0.4s;
  filter: saturate(0.95);
}
.cert-card:hover .cert-preview img {
  transform: scale(1.07);
}
.cert-view {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font: 9px var(--mono);
  letter-spacing: 0.12em;
  color: #fff;
  background: rgba(163, 45, 84, 0.94);
  padding: 8px 11px;
  transform: translateY(8px);
  opacity: 0;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.cert-view i {
  font-style: normal;
  margin-left: 6px;
}
.cert-card:hover .cert-view,
.cert-card:focus-visible .cert-view {
  transform: none;
  opacity: 1;
}
.cert-info {
  position: relative;
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cert-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 8px var(--mono);
  letter-spacing: 0.11em;
  color: #cd6185;
  margin: 0 0 10px;
}
.cert-meta time {
  color: #80767d;
  white-space: nowrap;
}
.cert-info h3 {
  font-size: 19px;
  letter-spacing: -0.045em;
  line-height: 1.2;
  margin: 0 0 10px;
  font-weight: 600;
}
.cert-desc {
  font-size: 11px;
  line-height: 1.8;
  color: #98909a;
  margin: 0;
  max-width: 34ch;
}
.cert-num {
  position: absolute;
  right: 20px;
  bottom: 16px;
  font: 10px var(--mono);
  color: #4f444b;
  font-weight: 400;
}
.cert-new {
  font-style: normal;
  font-size: 7.5px;
  vertical-align: 3px;
  margin-left: 6px;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--burgundy);
  padding: 3px 6px;
  font-family: var(--mono);
}
.cert-dialog {
  width: min(780px, calc(100% - 24px));
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: hidden;
  background: #151416;
  color: var(--white);
  border: 1px solid #51303b;
  box-shadow: 0 30px 100px #000b;
}
.cert-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: dialogIn 0.45s cubic-bezier(0.22, 0.8, 0.2, 1);
}
.cert-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}
.cert-dialog-body {
  padding: 22px;
  overflow: auto;
  text-align: center;
}
.cert-dialog-body img {
  display: block;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 18px;
  background: #e9ecf2;
}
.cert-dialog-body h3 {
  font-size: 20px;
  letter-spacing: -0.04em;
  margin: 0;
}

/* — Floating back-to-top: glass orb with progress ring — */
.floating-back-top {
  position: fixed;
  z-index: 120;
  right: 30px;
  bottom: 30px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: radial-gradient(
    circle at 30% 25%,
    rgba(214, 90, 132, 0.22),
    rgba(14, 11, 13, 0.92) 62%
  );
  backdrop-filter: blur(14px);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 28px rgba(214, 90, 132, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(22px) scale(0.8);
  transition:
    opacity 0.4s,
    visibility 0.4s,
    transform 0.5s cubic-bezier(0.22, 0.8, 0.2, 1),
    box-shadow 0.3s;
}
.floating-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.floating-back-top.is-visible::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(214, 90, 132, 0.35);
  animation: bttPulse 2.8s ease-out infinite;
  pointer-events: none;
}
@keyframes bttPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}
.floating-back-top:hover {
  transform: translateY(-5px) scale(1.06);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(214, 90, 132, 0.5),
    0 0 40px rgba(214, 90, 132, 0.35);
}
.floating-back-top:active {
  transform: scale(0.94);
}
.btt-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.btt-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2;
}
.btt-ring {
  fill: none;
  stroke: #e0607e;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 182.2;
  stroke-dashoffset: 182.2;
  filter: drop-shadow(0 0 4px rgba(224, 96, 126, 0.7));
}
.btt-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.btt-arrow {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    transform 0.35s cubic-bezier(0.22, 0.8, 0.2, 1),
    opacity 0.25s;
}
.btt-pct {
  position: absolute;
  font: 9px var(--mono);
  letter-spacing: 0.04em;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.25s,
    transform 0.3s;
}
.floating-back-top:hover .btt-arrow {
  transform: translateY(-14px);
  opacity: 0;
}
.floating-back-top:hover .btt-pct {
  opacity: 1;
  transform: none;
}
.floating-back-top span,
.floating-back-top small {
  margin: 0;
}

/* — Footer without back-to-top — */
.site-footer {
  justify-content: space-between;
}

/* — Responsive — */
@media (max-width: 1050px) {
  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .skill-grid .skill-group:nth-child(2) {
    border-right: 0;
  }
  .skill-grid .skill-group:nth-child(-n + 2) {
    border-bottom: 1px solid #302c30;
  }
  .hero-stats > div {
    padding: 12px 16px;
  }
}
@media (max-width: 760px) {
  .hero {
    padding-bottom: 80px;
  }
  .hero-stats {
    width: 100%;
  }
  .hero-stats > div {
    flex: 1;
    padding: 12px 10px;
    gap: 8px;
  }
  .hero-stats b {
    font-size: 24px;
  }
  .hero-grid {
    background-size: 48px 48px;
  }
  .hero-marquee {
    height: 46px;
  }
  .cert-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cert-stats {
    width: 100%;
  }
  .cert-stats > div {
    flex: 1;
    padding: 12px;
  }
  .cert-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .skill-grid {
    grid-template-columns: 1fr;
  }
  .skill-grid .skill-group {
    border-right: 0 !important;
    border-bottom: 1px solid #302c30;
  }
  .skill-grid .skill-group:last-child {
    border-bottom: 0;
  }
  .floating-back-top {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .site-footer > p,
  .footer-year {
    grid-area: auto;
  }
  .p3-bottom {
    padding-inline: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow,
  .portrait-frame,
  .orbit-one,
  .orbit-two,
  .marquee-track,
  .floating-back-top::after {
    animation: none !important;
  }
  .cert-card {
    animation: none;
  }
}

/* — v4 fixes — */
.hero {
  padding-top: 118px;
}
.hero-manifesto h1.statement {
  font-size: clamp(54px, 5.9vw, 90px);
  line-height: 1.01;
}
.hero-chip {
  margin-bottom: 22px;
}
.hero-manifesto {
  margin-bottom: 18px;
}
.hero-stats {
  margin-top: 30px;
}
.social-row {
  margin-top: 22px;
}
.hero-copy {
  padding: 30px 0 88px;
}
.floating-back-top .btt-arrow {
  position: static;
  inset: auto;
  width: 22px;
  height: 22px;
  transform: none;
}
.floating-back-top:hover .btt-arrow {
  transform: translateY(-14px);
}
.floating-back-top .btt-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.cert-preview {
  aspect-ratio: 1.2;
}
.cert-preview img {
  object-position: center 42%;
}
.p3-world {
  top: 48%;
}
@media (max-width: 760px) {
  .certificates-section .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .cert-stats {
    width: 100%;
  }
  .cert-stats b {
    font-size: 22px;
  }
  .cert-stats > div {
    padding: 12px 10px;
  }
}

/* — v4 polish — */
.portrait-frame {
  mix-blend-mode: screen;
}
.portrait-frame img {
  mix-blend-mode: normal;
  filter: saturate(1.1) contrast(1.04) brightness(1.08);
}
.floating-back-top:hover {
  background: radial-gradient(
    circle at 30% 25%,
    rgba(214, 90, 132, 0.42),
    rgba(14, 11, 13, 0.94) 68%
  );
}
.cert-feature {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.cert-feature .cert-preview {
  aspect-ratio: auto;
  min-height: 100%;
  border-bottom: 0;
  border-right: 1px solid #2a282b;
}
.cert-feature .cert-info {
  justify-content: center;
  padding: 30px 32px;
}
.cert-feature .cert-info h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.06em;
}
.cert-feature .cert-desc {
  font-size: 12px;
  max-width: 40ch;
}
.cert-grid.is-filtered .cert-feature {
  grid-column: auto;
  display: flex;
}
.cert-grid.is-filtered .cert-feature .cert-preview {
  aspect-ratio: 1.2;
  min-height: 0;
  border-right: 0;
  border-bottom: 1px solid #2a282b;
}
.cert-grid.is-filtered .cert-feature .cert-info {
  padding: 20px 22px 22px;
  justify-content: flex-start;
}
.cert-grid.is-filtered .cert-feature .cert-info h3 {
  font-size: 19px;
  letter-spacing: -0.045em;
}
.cert-grid.is-filtered .cert-feature .cert-desc {
  font-size: 11px;
}
@media (max-width: 760px) {
  .cert-feature {
    grid-column: auto;
    display: flex;
  }
  .cert-feature .cert-preview {
    aspect-ratio: 1.2;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #2a282b;
  }
  .cert-feature .cert-info {
    padding: 20px 22px 22px;
    justify-content: flex-start;
  }
  .cert-feature .cert-info h3 {
    font-size: 19px;
  }
}
.glow-a {
  opacity: 0.26;
  right: -2%;
  top: -4%;
}
.portrait-frame img {
  filter: saturate(1.1) contrast(1.08) brightness(1.14);
}

/* ── Reference-matched hero: true black backdrop and original burgundy portrait ── */
:root {
  --black: #090909;
}
html,
body {
  background: #090909;
}
body::before {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.008), transparent 42%) !important;
}
.hero,
.hero-bg {
  background-color: #090909 !important;
}
.hero-bg {
  background-image: none !important;
}
.hero-glow,
.glow-a,
.glow-b {
  opacity: 0 !important;
}
.hero-visual {
  background: #090909;
  isolation: isolate;
}
.portrait-frame {
  background: #090909 !important;
  mix-blend-mode: normal !important;
  overflow: hidden;
}
.portrait-frame::after {
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.12), transparent 34%),
    linear-gradient(0deg, #090909 0%, rgba(9, 9, 9, 0.08) 24%, transparent 43%) !important;
}
.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: normal !important;
  filter: brightness(0.96) contrast(1.08) saturate(1.06) !important;
}
@media (min-width: 761px) {
  .portrait-frame {
    right: 3% !important;
    width: min(88%, 620px) !important;
    height: 91% !important;
  }
  .hero-visual {
    overflow: visible;
  }
}
@media (max-width: 760px) {
  .hero,
  .hero-visual,
  .portrait-frame {
    background-color: #090909 !important;
  }
  .hero-visual {
    overflow: hidden;
    isolation: isolate;
  }
  .portrait-frame {
    right: 2% !important;
    width: 96% !important;
    height: 100% !important;
    bottom: 0 !important;
    mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
  }
  .portrait-frame img {
    object-position: center top !important;
    filter: brightness(0.96) contrast(1.08) saturate(1.06) !important;
  }
  .portrait-frame::after {
    background: linear-gradient(0deg, #090909 0%, transparent 30%) !important;
  }
}

/* ── Refinement pass: centered progress orb, compact text-first credentials,
   elevated tech stack, and a clean black mobile portrait backdrop ── */
.btt-core {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1;
}
.btt-arrow {
  position: static !important;
  display: block;
  width: 19px;
  height: 19px;
  transform: none !important;
  opacity: 1 !important;
  flex: 0 0 auto;
}
.btt-pct {
  position: static !important;
  display: block;
  opacity: 0.8;
  transform: none !important;
  font-size: 8px;
  line-height: 1;
}
.floating-back-top:hover .btt-arrow {
  transform: translateY(-2px) !important;
  opacity: 1 !important;
}
.floating-back-top:hover .btt-pct {
  opacity: 1;
  transform: none !important;
}

/* Credentials are compact typographic rows; certificate images still open in the viewer. */
.cert-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cert-card {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: linear-gradient(135deg, #121012, #0c0c0d);
  border-color: #30242a;
}
.cert-preview {
  display: none !important;
}
.cert-info {
  position: relative;
  min-height: 0 !important;
  padding: 17px 42px 17px 18px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.cert-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font: 8px var(--mono);
  letter-spacing: 0.09em;
  color: #c66a88;
}
.cert-meta time {
  color: #777078;
}
.cert-info h3,
.cert-feature .cert-info h3 {
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 100%;
}
.cert-desc,
.cert-feature .cert-desc {
  font-size: 10px;
  line-height: 1.55;
  color: #91868e;
  margin: 0;
  max-width: 52ch;
}
.cert-num {
  right: 13px;
  bottom: 13px;
  font-size: 9px;
  color: #a34a69;
}
.cert-new {
  font-size: 7px;
}
.cert-card:hover,
.cert-card:focus-visible {
  transform: translateY(-2px);
  border-color: #a83d60;
}
.cert-toolbar {
  margin-bottom: 14px;
}
@media (max-width: 760px) {
  .cert-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cert-info {
    padding: 14px 38px 14px 14px !important;
    gap: 5px;
  }
  .cert-info h3,
  .cert-feature .cert-info h3 {
    font-size: 14px;
  }
  .cert-desc,
  .cert-feature .cert-desc {
    font-size: 9px;
    line-height: 1.5;
  }
  .cert-num {
    right: 12px;
    bottom: 11px;
  }
  .cert-stats {
    gap: 10px;
  }
  .certificates-section .section-heading {
    gap: 14px;
  }
}

/* More deliberate technical toolkit: framed groups, clear hierarchy, responsive chips. */
.skill-grid {
  gap: 12px;
  margin-top: 34px;
  border: 0;
}
.skill-grid .skill-group {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 23px;
  border: 1px solid #30262c !important;
  background: linear-gradient(145deg, rgba(26, 19, 23, 0.88), rgba(12, 12, 13, 0.96));
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}
.skill-grid .skill-group::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, #c0446d, transparent);
}
.skill-grid .skill-group::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -40px;
  width: 95px;
  height: 95px;
  border: 1px solid rgba(190, 66, 105, 0.14);
  border-radius: 50%;
  pointer-events: none;
}
.skill-grid .skill-group:hover {
  transform: translateY(-3px);
  border-color: #754052 !important;
  background: linear-gradient(145deg, rgba(42, 22, 31, 0.9), rgba(12, 12, 13, 0.98));
}
.skill-grid .skill-group h3 {
  position: relative;
  margin: 0 0 15px;
  color: #d87596;
  font: 9px var(--mono);
  letter-spacing: 0.15em;
}
.skill-grid .skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.skill-grid .skill-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid #30272c;
  background: #111012;
  color: #d0c8cd;
  font-size: 10px;
  line-height: 1.2;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.skill-grid .skill-chips span:hover {
  color: #fff;
  border-color: #a64465;
  background: rgba(157, 47, 81, 0.18);
}
@media (max-width: 760px) {
  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 24px;
  }
  .skill-grid .skill-group {
    padding: 16px 12px 17px;
  }
  .skill-grid .skill-group h3 {
    font-size: 8px;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
  }
  .skill-grid .skill-chips {
    gap: 6px;
  }
  .skill-grid .skill-chips span {
    font-size: 9px;
    min-height: 27px;
    padding: 6px 7px;
  }
}
@media (max-width: 400px) {
  .skill-grid .skill-group {
    padding: 14px 10px;
  }
  .skill-grid .skill-chips span {
    font-size: 8px;
    padding: 6px;
  }
}

/* Mobile hero: no atmospheric page glow behind the portrait; image fades into true black. */
@media (max-width: 760px) {
  .hero,
  .hero-bg,
  .hero-visual,
  .portrait-frame {
    background: #090909 !important;
    background-image: none !important;
  }
  .hero-glow,
  .glow-a,
  .glow-b {
    display: none !important;
    opacity: 0 !important;
    filter: none !important;
  }
  .hero-visual::before {
    background: none !important;
    box-shadow: none !important;
  }
  .portrait-frame {
    box-shadow: none !important;
    filter: none !important;
  }
  .portrait-frame img {
    background: #090909 !important;
    filter: brightness(0.92) contrast(1.1) saturate(1.04) !important;
  }
  .portrait-frame::after {
    background: linear-gradient(
      0deg,
      #090909 0%,
      rgba(9, 9, 9, 0.28) 18%,
      transparent 42%
    ) !important;
  }
}

/* Final polish: keep issuer filters independent, align the mobile navigation, and keep the portrait backdrop true black. */
.cert-issuer-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.cert-issuer-filters .filter-button {
  scroll-margin-top: 90px;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .site-header {
    padding-inline: 0;
    gap: 12px;
  }
  .site-header.scrolled {
    padding-inline: 16px;
  }
  .menu-toggle {
    flex: 0 0 40px;
    margin: 0;
    padding: 0;
  }
  .site-nav {
    left: -20px;
    right: -20px;
    width: auto;
    padding: 12px 20px 18px;
    box-sizing: border-box;
  }
  .site-nav .nav-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 12px 4px;
    margin: 0;
    line-height: 1.35;
  }
  .site-nav .resume-link {
    min-height: 44px;
    margin: 12px 0 0;
    padding: 11px 14px;
  }
  .hero-visual {
    background: #090909 !important;
    box-shadow: none !important;
  }
  .hero-visual::after,
  .hero-visual::before {
    box-shadow: none !important;
  }
  .portrait-frame {
    background: #090909 !important;
    box-shadow: none !important;
    filter: none !important;
  }
  .portrait-frame::before,
  .portrait-frame::after {
    box-shadow: none !important;
  }
  .portrait-frame img {
    background: #090909 !important;
    box-shadow: none !important;
    filter: brightness(0.96) contrast(1.08) saturate(1.06) !important;
  }
  .portrait-orbit {
    box-shadow: none !important;
  }
  .orbit-one,
  .orbit-two {
    filter: none !important;
    box-shadow: none !important;
  }
  .hero-glow,
  .glow-a,
  .glow-b,
  .hero-spot {
    display: none !important;
    opacity: 0 !important;
    filter: none !important;
  }
}

/* Project reel fixes: keep controls above the 3D cards and separate the website/mobile artwork. */
.chefmate-web-art {
  background:
    radial-gradient(ellipse at 70% 28%, rgba(195, 65, 109, 0.15), transparent 42%),
    linear-gradient(145deg, #171416, #090909);
}
.chefmate-web-mark {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  font: 700 clamp(28px, 4vw, 48px)/1 var(--font);
  letter-spacing: -0.08em;
  color: #f4eef0;
  white-space: nowrap;
}
.chefmate-web-mark span {
  color: #c3416d;
}
.chefmate-web-mark i {
  font-style: normal;
  color: #c3416d;
  font-size: 0.7em;
  margin-left: 8px;
}
.p3-top {
  z-index: 20;
  background: linear-gradient(180deg, #090909 0%, rgba(9, 9, 9, 0.97) 76%, rgba(9, 9, 9, 0) 100%);
  padding-bottom: 14px;
}
.p3-info {
  z-index: 12;
  max-width: calc(100% - 40px);
}
.p3-info h3,
.p3-info .project-type,
.p3-desc {
  overflow-wrap: anywhere;
}
.p3-card .art-index {
  z-index: 2;
  max-width: calc(100% - 28px);
  line-height: 1.4;
}
@media (max-width: 760px) {
  .site-nav {
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    padding: 12px 22px 18px !important;
    border-left: 1px solid #292329;
    border-right: 1px solid #292329;
  }
  .site-nav .nav-link {
    padding: 12px 8px !important;
    margin: 0 !important;
    min-width: 0;
  }
  .site-nav .resume-link {
    margin: 12px 0 0 !important;
    padding: 11px 14px !important;
  }
  .p3-top {
    top: 0px;
    padding: 0 14px 18px !important;
    gap: 8px;
  }
  .p3-top .filters {
    position: relative;
    z-index: 22;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    padding: 4px 2px 8px;
    background: #090909;
    scrollbar-width: none;
  }
  .p3-top .filters::-webkit-scrollbar {
    display: none;
  }
  .p3-top .filter-button {
    flex: 0 0 auto;
    padding: 8px 10px;
    font-size: 10px;
  }
  .p3-info {
    left: 18px;
    right: 18px;
    bottom: 122px;
    width: auto;
    max-width: none;
    gap: 5px 10px;
    padding: 10px 12px;
    background: linear-gradient(90deg, rgba(9, 9, 9, 0.96), rgba(9, 9, 9, 0.82));
    border-left: 2px solid #a32d54;
  }
  .p3-info h3 {
    flex-basis: 100%;
    max-width: 100%;
    font-size: clamp(20px, 5.5vw, 24px);
    line-height: 1.15;
  }
  .p3-info .project-type {
    font-size: 8px;
    letter-spacing: 0.08em;
  }
  .p3-info .button {
    margin-top: 5px;
  }
  .p3-bottom {
    z-index: 15;
    bottom: 18px;
  }
  .p3-card .art-index {
    display: none;
  }
}

/* Final project-gallery and certificate-filter safeguards */
.cert-card.is-hidden,
.cert-card[hidden],
.p3-card.is-hidden,
.p3-card[hidden] {
  display: none !important;
}

@media (min-width: 761px) {
  .p3-info {
    max-width: 34vw;
  }
  .p3-world {
    left: 66%;
  }
}
@media (max-width: 760px) {
  .p3-world {
    left: 67%;
    top: 37%;
  }
  .p3-card::after {
    padding: 48px 10px 10px;
    font-size: 9px;
    line-height: 1.45;
  }
  .p3-info {
    bottom: 104px;
  }
  .p3-progress {
    height: 2px;
  }
}

/* ==========================================================
   PROJECT HELIX — layout and visibility fixes
   Keeps the scroll/drag helix animation fully enabled.
   ========================================================== */

/* Keep the gallery centered in the available viewport. */
.p3-world {
  left: 50%;
  top: 45%;
}

/* The shade was turning the artwork into a dark overlay.
   Keep its animated opacity harmless so every card stays clear. */
.p3-shade {
  background: transparent !important;
  opacity: 0 !important;
}

/* The progress strip sat across the bottom of the gallery.
   Remove the strip entirely so it cannot cover the cards. */
.p3-progress {
  display: none !important;
}

/* Move the changing project details to the left edge, clear of
   the centered helix. The card captions remain visible on-card. */
.p3-info {
  left: max(28px, calc((100vw - var(--max)) / 2));
  bottom: 118px;
  width: min(260px, 24vw);
  z-index: 6;
  pointer-events: auto;
}

.p3-desc {
  max-width: 260px;
}

/* A subtle, readable caption at the bottom of each card without
   placing an opaque black panel over the artwork. */
.p3-card::after {
  padding: 54px 16px 16px;
  background: linear-gradient(
    to top,
    rgba(9, 9, 9, 0.88) 0%,
    rgba(9, 9, 9, 0.48) 58%,
    transparent 100%
  );
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

@media (max-width: 760px) {
  .p3-world {
    left: 50%;
    top: 39%;
  }

  .p3-info {
    left: 20px;
    right: 20px;
    bottom: 74px;
    width: auto;
    max-width: none;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 9, 9, 0.42);
    backdrop-filter: blur(8px);
  }

  .p3-info-index {
    font-size: 38px;
    margin-bottom: 4px;
  }

  .p3-info h3 {
    font-size: 23px;
    margin-bottom: 5px;
  }

  .p3-desc {
    max-width: 100%;
    font-size: 10px;
    line-height: 1.55;
    margin-bottom: 8px;
  }

  .p3-info .tag-row {
    margin-bottom: 8px;
  }

  .p3-info .button {
    min-height: 36px;
  }

  .p3-card::after {
    padding: 40px 10px 10px;
    font-size: 9px;
    line-height: 1.45;
  }
}

@media (max-width: 400px) {
  .p3-info {
    bottom: 66px;
    padding: 9px 11px;
  }

  .p3-info-index {
    font-size: 32px;
  }

  .p3-info h3 {
    font-size: 20px;
  }

  .p3-desc {
    font-size: 9px;
  }
}

/* =========================================
   PROJECT CARD — REMOVE BROKEN LABEL TEXT
   ========================================= */
.p3-card::before,
.p3-card::after {
  content: none;
}

/* ==========================================================
   ICONS
   Arrow, star and gear are drawn with SVG masks instead of
   text characters, so iOS can never swap them for colored
   emoji. They inherit the text color of whatever they sit in.
   ========================================================== */
:root {
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E");
  --icon-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 3v18M3 12h18M5.6 5.6l12.8 12.8M18.4 5.6L5.6 18.4'/%3E%3C/svg%3E");
  --icon-gear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M19.1 4.9L17 7M7 17l-2.1 2.1'/%3E%3C/svg%3E");
}

.icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  vertical-align: -0.14em;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon-arrow {
  --icon: var(--icon-arrow);
}
.icon-star {
  --icon: var(--icon-star);
}
.icon-gear {
  --icon: var(--icon-gear);
}

/* Icons placed inside boxes (experience, process, education) */
.experience-mark .icon,
.education-icon .icon {
  font-size: 18px;
}
.process-symbol .icon {
  font-size: 40px;
}
.mock-sidebar .icon {
  font-size: 1.1em;
}

/* ==========================================================
   MOBILE HERO — portrait first, then the headline and details
   ========================================================== */
@media (max-width: 760px) {
  .hero-visual {
    order: -1;
    margin-top: 0;
    margin-bottom: 8px;
  }
}

/* ==========================================================
   MOBILE PROJECTS GALLERY
   The filter bar now sits in normal flow directly under the
   fixed header, and the cards live in the space below it, so
   nothing can overlap. Card size steps down on shorter phones.
   ========================================================== */
@media (max-width: 760px) {
  .p3-sticky {
    --header-h: 66px; /* height of the fixed header on mobile */
    --foot-h: 215px; /* room for project title, button and arrows */
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
    display: flex;
    flex-direction: column;
  }

  /* Filter bar: part of the layout, above the cards */
  .p3-top {
    position: relative;
    inset: auto;
    flex: none;
    z-index: 20;
    padding: 10px 14px 12px !important;
  }

  /* Card area: everything between the filter bar and the info panel */
  .p3-viewport {
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: var(--foot-h);
  }
  .p3-world {
    left: 50%;
    top: 50%;
  }

  .p3-ghost {
    top: 40%;
  }
  .p3-info {
    bottom: 74px;
  }
}

/* Shorter phones: smaller cards so they still fit between bar and info */
@media (max-width: 760px) and (max-height: 760px) {
  .p3-sticky {
    --cw: 200px;
    --ch: 270px;
    --as: 0.3571;
    --foot-h: 200px;
  }
}
@media (max-width: 760px) and (max-height: 640px) {
  .p3-sticky {
    --cw: 168px;
    --ch: 227px;
    --as: 0.3;
    --foot-h: 190px;
  }
}
/* ==========================================================
   PROJECT CARDS — real project photos + project name
   Each photo fills the card; the focus classes decide which
   part of a wide screenshot stays visible in the tall card.
   ========================================================== */
.shot-art img {
  opacity: 1;
  object-fit: cover;
}
.shot-left img {
  object-position: left center;
}
.shot-center img {
  object-position: center center;
}
.shot-top img {
  object-position: center top;
}

/* Soft dark fade at the bottom so the name is always readable */
.shot-art::after {
  background: linear-gradient(
    0deg,
    rgba(9, 9, 9, 0.94) 0%,
    rgba(9, 9, 9, 0.6) 16%,
    rgba(9, 9, 9, 0) 36%
  );
}

/* Project name on every card (sizes are in the 560px card canvas,
   which is scaled down automatically) */
.art-name {
  position: absolute;
  z-index: 3;
  left: 36px;
  right: 36px;
  bottom: 38px;
  font-size: 50px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: #fff;
  text-align: left;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

/* ==========================================================
   DIALOG CLOSE BUTTON (project details + certificate viewer)
   Small square icon button in the site's burgundy style.
   ========================================================== */
.icon-close {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.dialog-close,
.project-dialog .dialog-close,
.cert-dialog .dialog-close {
  position: static;
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #4b3a43;
  border-radius: 0;
  background: transparent;
  color: #e6dce1;
  font-size: 13px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.dialog-close:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: #fff;
}
.dialog-close:focus-visible {
  outline: 1px solid #c3416d;
  outline-offset: 2px;
}
.dialog-close .icon {
  font-size: 13px;
  vertical-align: 0;
}