:root {
  color-scheme: dark;
  --bg: #07090f;
  --panel: rgba(12, 16, 24, 0.78);
  --panel-strong: #101722;
  --line: rgba(239, 244, 255, 0.14);
  --line-strong: rgba(239, 244, 255, 0.28);
  --text: #f7f9fc;
  --muted: #aab4c2;
  --quiet: #758195;
  --cyan: #67e8f9;
  --gold: #ffd84d;
  --green: #91f27f;
  --coral: #ff7468;
  --violet: #a18cff;
  --paper: #f6f0df;
  --paper-ink: #18202c;
  --radius: 8px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(103, 232, 249, 0.14), transparent 34rem),
    radial-gradient(circle at 88% 16%, rgba(161, 140, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 72% 84%, rgba(255, 216, 77, 0.08), transparent 34rem),
    var(--bg);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
}

body.about-page {
  min-height: 100svh;
  overflow: hidden;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

#world-canvas,
.noise-layer,
.cursor-light {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#world-canvas {
  z-index: -3;
  width: 100%;
  height: 100%;
}

.noise-layer {
  z-index: -2;
  opacity: 0.1;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px),
    linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  mix-blend-mode: screen;
}

.cursor-light {
  z-index: -1;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(103, 232, 249, 0.16), transparent 22rem);
}

.site-header,
.book-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 15, 0.78);
  backdrop-filter: blur(20px);
  transition:
    transform 220ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
  will-change: transform;
}

.book-header {
  position: fixed;
  right: 0;
  left: 0;
}

.brand,
.nav-links,
.hero-actions,
.signal-strip,
.tag-row,
.phone-strip,
.book-footer,
.page-points {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(103, 232, 249, 0.5);
  border-radius: var(--radius);
  color: var(--cyan);
  background: linear-gradient(145deg, rgba(103, 232, 249, 0.18), rgba(161, 140, 255, 0.24));
  font-family: var(--mono);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.eyebrow,
.work-label {
  font-family: var(--mono);
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  font-size: 0.68rem;
}

.nav-links {
  justify-content: center;
  gap: 5px;
}

.nav-links a,
.header-cta,
.button,
.book-arrow {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 100ms ease;
}

.nav-links a {
  padding: 10px 13px;
  color: var(--muted);
  font-size: 0.92rem;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  gap: 3px;
  align-items: center;
  min-height: 40px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.language-switch button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  transition:
    color 140ms ease,
    background-color 140ms ease;
}

.language-switch button.active,
.language-switch button:hover,
.language-switch button:focus-visible {
  color: #061016;
  background: var(--cyan);
  outline: none;
}

body.header-hidden .site-header,
body.header-hidden .book-header {
  transform: translateY(-108%);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  font-weight: 850;
}

.header-cta,
.button.primary {
  color: #061016;
  border-color: rgba(103, 232, 249, 0.72);
  background: var(--cyan);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.button.secondary:hover,
.button.secondary:focus-visible,
.book-arrow:hover,
.book-arrow:focus-visible {
  color: var(--text);
  border-color: rgba(103, 232, 249, 0.58);
  background: rgba(103, 232, 249, 0.12);
}

.header-cta:hover,
.header-cta:focus-visible,
.button.primary:hover,
.button.primary:focus-visible {
  color: #061016;
  background: #b9f8ff;
}

.nav-links a:active,
.header-cta:active,
.button:active,
.book-arrow:active {
  transform: scale(0.98);
}

.hero,
.section,
.signal-strip,
.confidential-band {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  min-height: auto;
  padding: 54px 0 38px;
}

.hero-copy {
  position: relative;
  width: 100%;
  min-height: clamp(330px, 36vh, 430px);
  max-width: none;
  min-width: 0;
}

.mobile-hero-photo {
  position: absolute;
  top: clamp(48px, 6.5vh, 76px);
  right: clamp(8px, 2vw, 28px);
  z-index: 1;
  display: block;
  width: clamp(156px, 14vw, 194px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.34);
  border-radius: 8px;
  background: #121923;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 58px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(103, 232, 249, 0.16);
}

.mobile-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.03;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  font-size: 3rem;
  font-weight: 950;
}

h2 {
  font-size: 2.7rem;
  font-weight: 930;
}

h3 {
  font-size: 1.48rem;
  font-weight: 900;
}

h4 {
  font-size: 1rem;
  font-weight: 900;
}

p {
  color: var(--muted);
  text-wrap: pretty;
}

.hero-lede {
  max-width: 800px;
  margin: 18px 0 0;
  color: #dbe3ee;
  font-size: 1.12rem;
}

.quote-rotator {
  display: grid;
  gap: 18px;
  max-width: calc(100% - clamp(220px, 23vw, 340px));
}

.quote-stack {
  position: relative;
  min-height: 92px;
  max-width: 760px;
}

.quote-stack p {
  position: absolute;
  inset: 0 auto auto 0;
  width: min(100%, 720px);
  margin: 0;
  color: #dce8f4;
  font-size: 1.28rem;
  font-weight: 820;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(12px);
  animation: quote-cycle 12s infinite;
}

.quote-stack p::before {
  color: var(--cyan);
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 1.55em;
  line-height: 0;
  margin-right: 4px;
}

.quote-stack p::after {
  color: var(--cyan);
  content: "\201D";
  font-family: Georgia, serif;
  margin-left: 4px;
}

.quote-stack p:nth-child(2) {
  animation-delay: 4s;
}

.quote-stack p:nth-child(3) {
  animation-delay: 8s;
}

@keyframes quote-cycle {
  0%,
  100% {
    opacity: 0;
    transform: translateY(12px);
  }

  7%,
  28% {
    opacity: 1;
    transform: translateY(0);
  }

  36% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button.secondary {
  color: var(--text);
}

.hero-panel,
.work-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 23, 34, 0.82), rgba(9, 12, 18, 0.72));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.26);
}

.hero-panel {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
  padding: 20px;
}

.portrait-wrap {
  display: none;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #131a25;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-panel-copy h2 {
  max-width: none;
  font-size: clamp(1.08rem, 1.55vw, 1.45rem);
  line-height: 1.08;
  white-space: nowrap;
}

.hero-panel-copy {
  min-width: 0;
}

.skill-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.skill-summary-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: var(--radius);
  background: rgba(103, 232, 249, 0.045);
}

.skill-summary-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #edf8ff;
  font-size: 0.92rem;
  line-height: 1.25;
}

.skill-summary-grid p {
  margin: 0;
  color: #b9c8d8;
  font-size: 0.86rem;
  line-height: 1.5;
}

.hero-skill-cloud {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 6px;
  overflow: visible;
  margin-top: 18px;
  padding: 2px 0;
  -webkit-mask-image: none;
  mask-image: none;
}

.skill-cloud-track {
  display: contents;
  animation: none;
}

.skill-cloud-track.reverse {
  justify-self: auto;
  animation: none;
}

.skill-cloud-track span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 999px;
  color: #dce9f6;
  background: rgba(103, 232, 249, 0.065);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

@keyframes skill-drift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-22%);
  }
}

@keyframes skill-drift-reverse {
  from {
    transform: translateX(-18%);
  }

  to {
    transform: translateX(0);
  }
}

.signal-strip {
  justify-content: space-between;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.signal-strip div {
  flex: 1 1 0;
  min-width: 0;
  padding: 20px;
  background: rgba(12, 16, 24, 0.78);
}

.signal-strip strong,
.signal-strip span {
  display: block;
}

.signal-strip span {
  margin-top: 6px;
  color: var(--muted);
}

.section {
  padding: 78px 0 18px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading p {
  font-size: 1.05rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.work-category {
  display: grid;
  gap: 14px;
  margin-top: 38px;
}

.work-category:first-child {
  margin-top: 0;
}

.category-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-heading span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 32px;
  border: 1px solid rgba(103, 232, 249, 0.32);
  border-radius: var(--radius);
  color: var(--cyan);
  font-family: var(--mono);
  font-weight: 900;
}

.category-heading h3 {
  font-size: 1.78rem;
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-card-grid.single {
  grid-template-columns: minmax(0, 0.68fr);
}

.work-card {
  display: grid;
  gap: 18px;
  min-height: 360px;
  padding: 20px;
}

.project-card-button {
  width: 100%;
  color: inherit;
  text-align: left;
}

.project-card-button:hover,
.project-card-button:focus-visible {
  border-color: rgba(103, 232, 249, 0.54);
  background:
    linear-gradient(180deg, rgba(103, 232, 249, 0.1), rgba(9, 12, 18, 0.76)),
    rgba(12, 16, 24, 0.8);
  outline: none;
  transform: translateY(-2px);
}

.project-card-button h4 {
  color: var(--text);
  font-size: 1.35rem;
}

.mini-ui {
  overflow: hidden;
  min-height: 255px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(5, 8, 14, 0.64);
}

.guardian-mini {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 12px;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 216, 77, 0.14), transparent 42%),
    linear-gradient(160deg, #191103, #2a2114 52%, #0d0f16);
}

.mini-phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff7da;
}

.mini-phone-top i {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 22px rgba(255, 216, 77, 0.66);
}

.sos-orb {
  place-self: center;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  color: #1b1300;
  background: var(--gold);
  box-shadow: 0 0 44px rgba(255, 216, 77, 0.28);
  font-family: var(--mono);
  font-size: 1.48rem;
  font-weight: 950;
}

.mini-pill-row,
.mini-bottom-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.mini-pill-row span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff4c3;
  background: rgba(255, 216, 77, 0.14);
  font-size: 0.78rem;
  font-weight: 850;
}

.mini-bottom-nav {
  padding: 8px;
  border: 1px solid rgba(255, 216, 77, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.mini-bottom-nav span {
  width: 28px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 216, 77, 0.36);
}

.verse-mini {
  display: grid;
  grid-template-columns: 76px 1fr;
  min-height: 255px;
  background:
    radial-gradient(circle at 20% 20%, rgba(103, 232, 249, 0.14), transparent 36%),
    #070d16;
}

.mini-rail {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 16px;
  border-right: 1px solid rgba(103, 232, 249, 0.16);
}

.mini-rail span {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: var(--radius);
  background: rgba(103, 232, 249, 0.08);
}

.mini-chat {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
}

.mini-chat strong {
  color: var(--cyan);
  font-family: var(--mono);
  text-transform: uppercase;
}

.mini-chat p {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: var(--radius);
  color: #dbe8f4;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.feature-work {
  grid-column: span 3;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  align-items: center;
  background:
    linear-gradient(145deg, rgba(103, 232, 249, 0.12), rgba(255, 216, 77, 0.07)),
    rgba(12, 16, 24, 0.78);
}

.work-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 6px 8px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: var(--radius);
  color: var(--cyan);
  background: rgba(103, 232, 249, 0.07);
  font-size: 0.68rem;
  font-weight: 900;
}

.tag-row {
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.tag-row span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #dce6f5;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.82rem;
}

.phone-strip {
  justify-content: center;
  gap: 12px;
}

.phone-strip img {
  width: min(31%, 210px);
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border: 7px solid #05070d;
  border-radius: 28px;
  background: #07090f;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
}

.screenshot-slot {
  overflow: hidden;
  min-height: 245px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.screenshot-slot > img {
  width: 100%;
  height: 100%;
  min-height: 245px;
  object-fit: cover;
}

.sampling-window {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 245px;
  color: #006064;
  background: #e0f7fa;
  font-family: Arial, sans-serif;
}

.sampling-window header,
.sampling-window footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.sampling-window section {
  margin: 0 14px;
  padding: 16px;
  border: 2px solid rgba(0, 96, 100, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
}

.sampling-window h4,
.sampling-window p {
  color: #006064;
}

.sampling-window span {
  display: block;
  height: 12px;
  margin-top: 16px;
  border-radius: var(--radius);
  background: rgba(0, 96, 100, 0.14);
}

.sampling-window i {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: #006064;
}

.ops-preview {
  display: grid;
  grid-template-columns: 110px 1fr;
  color: #0f172a;
  background: #f8fafc;
}

.ops-preview aside {
  padding: 16px;
  border-right: 1px solid #d7dde8;
  background: white;
  font-weight: 900;
}

.ops-preview main {
  padding: 16px;
}

.ops-preview main > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.ops-preview b {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 1px solid #d7dde8;
  border-radius: var(--radius);
  background: white;
  font-size: 1.5rem;
}

.ops-preview p {
  margin: 8px 0 0;
  color: #334155;
}

.ops-preview span {
  color: #0f766e;
  font-weight: 900;
}

.hmi-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 14px;
  background: #1b2836;
}

.hmi-preview h4 {
  grid-column: 1 / -1;
  color: white;
  font-size: 1.24rem;
}

.hmi-preview div {
  display: grid;
  min-height: 86px;
  padding: 12px;
  border: 1px solid #2e3f50;
  border-radius: 6px;
  background: #22313f;
}

.hmi-preview span {
  color: white;
  font-weight: 900;
}

.hmi-preview strong {
  justify-self: center;
  color: #ffc000;
  font-size: 2rem;
  line-height: 1;
}

.hmi-preview small {
  justify-self: center;
  color: #00c0ff;
  font-weight: 900;
}

.project-viewer[hidden] {
  display: none;
}

.project-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  overflow: auto;
  padding: 22px;
}

body.viewer-open {
  overflow: hidden;
}

.viewer-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 26% 18%, rgba(103, 232, 249, 0.14), transparent 32rem),
    rgba(2, 5, 10, 0.82);
  backdrop-filter: blur(18px);
}

.viewer-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  width: min(1320px, 100%);
  height: min(880px, calc(100svh - 44px));
  min-height: 0;
  padding: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.viewer-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.viewer-header h2 {
  font-size: 3.35rem;
}

.viewer-close,
.gallery-toolbar button {
  min-height: 40px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 850;
}

.viewer-close:hover,
.viewer-close:focus-visible,
.gallery-toolbar button:hover,
.gallery-toolbar button:focus-visible {
  color: var(--text);
  border-color: rgba(103, 232, 249, 0.5);
  background: rgba(103, 232, 249, 0.1);
}

.viewer-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  height: 100%;
  min-height: 0;
}

.project-detail,
.project-gallery {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.032);
}

.project-detail {
  display: grid;
  align-content: start;
  gap: 14px;
  height: 100%;
  max-height: 100%;
  overflow: auto;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(103, 232, 249, 0.06), transparent 46%),
    rgba(255, 255, 255, 0.03);
  scrollbar-width: none;
}

.project-detail::-webkit-scrollbar {
  display: none;
}

.project-detail p {
  margin-top: 0;
}

.detail-section {
  padding: 16px;
  border: 1px solid rgba(239, 244, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.detail-section h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.detail-label {
  display: block;
  margin-bottom: 10px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.overview-section p {
  margin-bottom: 0;
  color: #d3dfeb;
}

.project-tags,
.project-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.project-tags span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #dce6f5;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.84rem;
}

.project-highlights {
  display: grid;
  gap: 9px;
}

.project-highlights article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px;
  border: 1px solid rgba(239, 244, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.project-highlights b {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.project-highlights p {
  margin: 0;
  color: #d4deea;
  font-size: 0.86rem;
}

.screen-note span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.screen-note h3 {
  margin-top: 6px;
  font-size: 1.25rem;
}

.phone-showcase .screen-note {
  width: min(680px, 100%);
  text-align: center;
}

.project-gallery {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.phone-showcase {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  align-content: start;
  gap: 13px;
  min-height: 0;
  width: 100%;
}

.gallery-toolbar {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.phone-device {
  position: relative;
  overflow: visible;
  width: min(330px, 48vw);
  aspect-ratio: 9 / 19.5;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.phone-device::before {
  display: none;
  content: none;
}

.phone-device::after {
  display: none;
  content: none;
}

.phone-screen {
  position: relative;
  overflow: visible;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.phone-screen .shot-stream {
  position: relative;
  display: block;
  height: 100%;
  padding: 0;
  transform: none !important;
  transition: none;
  will-change: auto;
}

.phone-screen .shot-card {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.phone-screen .shot-card.active {
  transform: none;
  opacity: 1;
  border-color: transparent;
  box-shadow: none;
  pointer-events: auto;
}

.phone-screen .shot-card img {
  width: 100%;
  height: 100%;
  padding: 0;
  min-height: 0;
  object-fit: contain;
  border-radius: 14px;
  background: transparent;
  filter:
    drop-shadow(0 0 18px rgba(103, 232, 249, 0.36))
    drop-shadow(0 22px 42px rgba(0, 0, 0, 0.48));
}

.shot-fallback {
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(103, 232, 249, 0.16), transparent 14rem),
    rgba(255, 255, 255, 0.04);
  font-weight: 850;
}

.screen-tabs {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.screen-tabs::-webkit-scrollbar {
  display: none;
}

.screen-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  font-weight: 850;
}

.screen-tabs button.active,
.screen-tabs button:hover,
.screen-tabs button:focus-visible {
  color: #061016;
  border-color: var(--cyan);
  background: var(--cyan);
}

.confidential-band {
  margin-top: 74px;
  padding: 44px;
  border: 1px solid rgba(255, 216, 77, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 216, 77, 0.12), rgba(103, 232, 249, 0.06)),
    rgba(12, 16, 24, 0.74);
}

.confidential-band div {
  max-width: 860px;
}

.contact-section {
  padding-bottom: 80px;
}

.contact-card {
  padding: 42px;
}

.contact-card p {
  max-width: 820px;
}

.book-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.33fr) minmax(320px, 1fr);
  grid-template-rows: 1fr auto;
  gap: 22px;
  width: min(1380px, calc(100% - 36px));
  height: 100svh;
  margin: 0 auto;
  padding: 100px 0 22px;
}

.book-intro {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  min-width: 0;
}

.book-intro h1 {
  max-width: 10ch;
  font-size: 2.55rem;
}

.flip-book {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  min-width: 0;
  width: 100%;
  perspective: 1800px;
}

.book-stage {
  position: relative;
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border-radius: 14px;
  transform-style: preserve-3d;
}

.book-stage::before {
  position: absolute;
  inset: 14px auto 14px 50%;
  z-index: 8;
  width: 18px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.34));
  transform: translateX(-50%);
  pointer-events: none;
  display: none;
}

.book-page {
  position: absolute;
  inset: 0;
  display: grid;
  height: 100%;
  min-width: 0;
  transform: rotateY(7deg) translateX(18px) scale(0.98);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 540ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 260ms ease;
}

.book-page.active {
  z-index: 5;
  transform: rotateY(0deg) translateX(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.book-page.past {
  transform: rotateY(-82deg) translateX(-18px) scale(0.98);
  opacity: 0;
}

.book-page.next-ready {
  transform: rotateY(14deg) translateX(24px) scale(0.96);
  opacity: 0;
}

.page-front {
  position: relative;
  display: grid;
  align-content: center;
  overflow: hidden;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: clamp(28px, 5vw, 68px);
  border: 1px solid rgba(42, 35, 24, 0.24);
  border-radius: 14px;
  color: var(--paper-ink);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent 10%, transparent 90%, rgba(0, 0, 0, 0.08)),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.75), transparent 18rem),
    var(--paper);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.page-front::before {
  position: absolute;
  inset: 20px auto 20px 50%;
  z-index: 0;
  width: 14px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.16), rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.18));
  transform: translateX(-50%);
}

.page-front > * {
  position: relative;
  z-index: 1;
}

.page-front p {
  color: #415065;
  font-size: 1rem;
  line-height: 1.58;
}

.page-front h2 {
  color: #111827;
  font-size: 2.2rem;
}

.page-front h3 {
  color: #111827;
}

.page-number {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 6px 10px;
  border: 1px solid rgba(24, 32, 44, 0.18);
  border-radius: var(--radius);
  color: #4a5a70;
  font-family: var(--mono);
  font-weight: 900;
}

.cover-page {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(72px, 8vw, 118px);
  align-items: center;
}

.cover-page > div {
  max-width: 430px;
  justify-self: end;
}

.cover-page h2 {
  max-width: 13ch;
  font-size: 2.25rem;
}

.cover-page img {
  overflow: hidden;
  width: min(100%, 310px);
  max-height: min(56svh, 430px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(24, 32, 44, 0.22);
  border-radius: 12px;
  justify-self: center;
}

.page-points {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.page-points.stacked {
  align-items: stretch;
  flex-direction: column;
}

.page-points span {
  padding: 11px 12px;
  border: 1px solid rgba(24, 32, 44, 0.14);
  border-radius: var(--radius);
  color: #243045;
  background: rgba(255, 255, 255, 0.42);
  font-weight: 850;
}

.capability-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.capability-list.detailed {
  gap: 10px;
}

.capability-list p {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(24, 32, 44, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
}

.capability-list strong {
  color: #111827;
}

.profile-page {
  align-content: start;
  gap: 14px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(24, 32, 44, 0.24) transparent;
}

.profile-page::-webkit-scrollbar {
  width: 8px;
}

.profile-page::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(24, 32, 44, 0.22);
}

.experience-note {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(24, 32, 44, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

.experience-note strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
}

.experience-note p {
  margin: 0;
}

.page-front ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 22px;
  color: #35445a;
  font-size: 1.04rem;
}

.book-timeline {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.book-timeline div {
  padding: 16px;
  border: 1px solid rgba(24, 32, 44, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
}

.book-timeline span {
  display: block;
  margin-bottom: 8px;
  color: #7b5f00;
  font-family: var(--mono);
  font-weight: 900;
}

.final-page .button {
  width: fit-content;
  margin-top: 18px;
}

.book-arrow {
  position: absolute;
  top: 50%;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 48px;
  height: 64px;
  background: rgba(8, 11, 16, 0.58);
  transform: translateY(-50%);
}

.book-arrow::before {
  width: 14px;
  height: 14px;
  content: "";
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.book-arrow.prev {
  left: -16px;
}

.book-arrow.prev::before {
  transform: rotate(-135deg);
}

.book-arrow.next {
  right: -16px;
}

.book-arrow.next::before {
  transform: rotate(45deg);
}

.book-footer {
  grid-column: 2;
  grid-row: 2;
  justify-content: center;
  gap: 14px;
}

.book-progress {
  overflow: hidden;
  width: min(320px, 60vw);
  height: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.book-progress span {
  display: block;
  width: 11%;
  height: 100%;
  border-radius: inherit;
  background: var(--cyan);
  transition: width 240ms ease;
}

.book-footer p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .skill-cloud-track {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 1080px) {
  .site-header,
  .book-header {
    grid-template-columns: 1fr;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero,
  .feature-work {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card-grid,
  .project-card-grid.single {
    grid-template-columns: 1fr;
  }

  .feature-work {
    grid-column: span 2;
  }

  .viewer-layout {
    grid-template-columns: 1fr;
  }

  .project-detail {
    max-height: 270px;
  }

  h1 {
    font-size: 2.9rem;
  }

  .viewer-header h2 {
    font-size: 2.5rem;
  }

  .phone-device {
    width: min(320px, 44vw);
  }

  .book-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    padding-top: 128px;
  }

  .book-intro {
    display: none;
  }

  .flip-book {
    grid-column: 1;
    grid-row: 1;
  }

  .book-footer {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  body.about-page {
    overflow: hidden;
  }

  .site-header,
  .book-header {
    padding: 10px 16px;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    padding-inline: 10px;
  }

  .hero,
  .section,
  .signal-strip,
  .confidential-band {
    width: min(100% - 28px, 1240px);
  }

  h1 {
    font-size: 2.2rem;
  }

  .hero {
    align-items: start;
    gap: 22px;
    min-height: auto;
    padding: 44px 0 28px;
  }

  .hero-copy .eyebrow,
  .hero-copy .quote-rotator {
    position: relative;
    z-index: 2;
    max-width: calc(100% - 176px);
  }

  .mobile-hero-photo {
    position: absolute;
    top: 18px;
    right: 8px;
    z-index: 1;
    display: block;
    width: min(158px, 31vw);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, 0.34);
    border-radius: 8px;
    background: #121923;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.05),
      0 18px 52px rgba(0, 0, 0, 0.36),
      0 0 30px rgba(103, 232, 249, 0.16);
  }

  .mobile-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .hero-panel {
    padding: 16px;
  }

  .skill-summary-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel .portrait-wrap {
    display: none;
  }

  .hero-panel-copy h2 {
    font-size: 1.36rem;
    white-space: normal;
  }

  .hero-skill-cloud {
    margin-top: 16px;
  }

  .quote-stack {
    min-height: 112px;
  }

  .quote-stack p {
    font-size: 1.08rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero-lede {
    font-size: 1.04rem;
    max-width: 100%;
    word-break: break-word;
  }

  .signal-strip,
  .work-grid,
  .project-card-grid,
  .project-card-grid.single,
  .feature-work,
  .ops-preview,
  .cover-page {
    grid-template-columns: 1fr;
  }

  .signal-strip {
    display: grid;
  }

  .feature-work {
    grid-column: auto;
  }

  .work-card {
    min-height: auto;
  }

  .mini-ui {
    min-height: 220px;
  }
  .project-viewer {
    place-items: stretch;
    scroll-snap-type: y proximity;
    overscroll-behavior: contain;
    padding: 10px;
  }

  .viewer-panel {
    width: 100%;
    min-height: 172svh;
    height: auto;
    padding: 14px 14px 54px;
    grid-template-rows: auto auto;
  }

  .viewer-header {
    align-items: start;
    padding: 4px 88px 8px 0;
    scroll-snap-align: start;
  }

  .viewer-close {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 5;
    flex: 0 0 auto;
    min-width: 74px;
  }

  .viewer-header h2 {
    max-width: calc(100vw - 122px);
    font-size: clamp(1.55rem, 8vw, 1.9rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .viewer-layout {
    gap: 12px;
    height: auto;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .project-detail {
    height: min(390px, 42svh);
    max-height: none;
    overflow: auto;
    padding: 14px;
    scroll-snap-align: start;
  }

  .detail-section {
    padding: 13px;
  }

  .project-gallery {
    order: 1;
    gap: 10px;
    min-height: 112svh;
    padding: 0;
    scroll-snap-align: start;
  }

  .phone-showcase {
    position: sticky;
    top: 18px;
    min-height: calc(100svh - 36px);
    align-content: start;
    gap: 10px;
  }

  .phone-device {
    width: min(390px, 82vw);
    max-height: none;
    padding: 0;
    border-radius: 0;
  }

  .phone-screen {
    border-radius: 0;
  }

  .screen-note h3 {
    font-size: 1rem;
  }

  .shot-fallback {
    min-height: 260px;
  }

  .phone-strip {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .phone-strip img {
    flex: 0 0 185px;
    width: 185px;
  }

  .confidential-band,
  .contact-card {
    padding: 28px;
  }

  .book-shell {
    width: min(100% - 20px, 1380px);
    padding-top: 124px;
    padding-bottom: 16px;
  }

  .flip-book,
  .book-stage,
  .book-page,
  .page-front {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }

  .book-stage {
    min-height: 0;
    overflow: hidden;
  }

  .page-front {
    padding: 24px;
    align-content: start;
    overflow: auto;
  }

  .page-front::before {
    display: none;
  }

  .page-front h2 {
    font-size: 2.05rem;
    overflow-wrap: break-word;
  }

  .page-front p,
  .page-front ul {
    font-size: 0.96rem;
  }

  .book-arrow {
    top: auto;
    bottom: 10px;
    width: 44px;
    height: 52px;
    transform: none;
  }

  .book-arrow.prev {
    left: 12px;
  }

  .book-arrow.next {
    right: 12px;
  }

  .book-stage::before {
    display: none;
  }

  .cover-page {
    gap: 18px;
  }

  .cover-page > div {
    max-width: none;
    justify-self: stretch;
  }

  .cover-page h2 {
    max-width: none;
    font-size: 1.54rem;
  }

  .cover-page p {
    max-width: 285px;
  }

  .cover-page img {
    width: 118px;
    height: 118px;
    max-height: none;
    aspect-ratio: 1;
    border-radius: 999px;
    order: -1;
    object-fit: cover;
    object-position: top center;
  }

  .book-footer {
    justify-content: flex-start;
    gap: 10px;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    padding: 0 56px 0 38px;
  }

  .book-progress {
    width: min(230px, 54vw);
  }

  .book-footer p {
    font-size: 0.72rem;
    white-space: nowrap;
  }
}

@media (max-width: 460px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-cta {
    font-size: 0.82rem;
  }

  h1 {
    font-size: 1.98rem;
  }

  .hero-copy .eyebrow,
  .hero-copy .quote-rotator {
    max-width: calc(100% - 134px);
  }

  .mobile-hero-photo {
    top: 10px;
    right: 0;
    width: min(124px, 30vw);
  }

  .quote-stack {
    min-height: 128px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hmi-preview {
    grid-template-columns: 1fr;
  }

  .verse-mini {
    grid-template-columns: 58px 1fr;
  }

  .mini-rail {
    padding: 12px;
  }

  .mini-rail span {
    width: 32px;
    height: 32px;
  }

  .viewer-close {
    min-width: 74px;
  }
}
