:root {
  --accent: #7f6aa8;
  --accent-strong: #6e5b98;
  --accent-soft: rgba(110, 91, 152, 0.12);
  --accent-border: rgba(110, 91, 152, 0.2);

  --container: 1100px;
  --pad-x: clamp(24px, 5vw, 72px);
  --brand-offset: 62px;

  --serif: 'Playfair Display', ui-serif, Georgia, serif;
  --hook: 'Cairo Play', 'Playfair Display', ui-serif, Georgia, serif;
  --sans:
    'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  --condensed:
    'Roboto Condensed', ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --bg: #f2f0f4;
  --surface: #fcfbfd;
  --ink: #191919;
  --muted: #66616d;
  --rule: rgba(25, 25, 25, 0.1);
  --rule-strong: rgba(255, 255, 255, 0.14);
  --glass-bg: rgba(64, 64, 66, 0.96);
  --glass-text: #f8f8f8;
  --glass-muted: rgba(255, 255, 255, 0.8);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.12);

  --hero-h: 34svh;
  --portrait-h: 56svh;
  --strip-h: clamp(260px, 30svh, 340px);
  --strip-track: clamp(520px, 72svh, 760px);
  --thesis-h: clamp(420px, 50svh, 560px);
  --thesis-track: clamp(620px, 84svh, 900px);
  --resolution-h: clamp(380px, 50svh, 520px);
  --resolution-track: clamp(680px, 92svh, 960px);
  --cta-h: 30svh;

  scroll-behavior: smooth;
}

@media (prefers-color-scheme: dark) {
  html[data-theme='auto'] {
    --bg: #0d0d0f;
    --surface: #17171a;
    --ink: #f2f2f3;
    --muted: rgba(242, 242, 243, 0.72);
    --rule: rgba(255, 255, 255, 0.12);
    --glass-bg: rgba(30, 30, 32, 0.96);
    --shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);
  }
}

html[data-theme='dark'],
body[data-theme='dark'] {
  --bg: #0d0d0f;
  --surface: #17171a;
  --ink: #f2f2f3;
  --muted: rgba(242, 242, 243, 0.72);
  --rule: rgba(255, 255, 255, 0.12);
  --glass-bg: rgba(30, 30, 32, 0.96);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 20000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition:
    transform 280ms ease,
    opacity 220ms ease;
}
html.header-hidden .site-header {
  transform: translateY(-105%);
  opacity: 0;
  pointer-events: none;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad-x);
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 48px;
  height: 48px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.brand-subtitle {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav {
  display: flex;
  gap: 20px;
}
.nav a {
  position: relative;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--muted);
  transition: color 220ms ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width 200ms ease;
}
.nav a:hover {
  color: var(--ink);
}
.nav a:hover::after {
  width: 100%;
}
.nav a.is-current,
.nav a[aria-current='page'] {
  color: var(--ink);
  cursor: default;
  pointer-events: none;
}
.nav a.is-current::after,
.nav a[aria-current='page']::after {
  width: 100%;
}
.theme-toggle {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 220ms ease;
}
.theme-toggle:hover {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
}
.theme-icon {
  font-size: 16px;
  line-height: 1;
}

.about-stack {
  position: relative;
}
.panel {
  position: relative;
}
.panel__inner {
  position: sticky;
  top: 0;
  overflow: hidden;
}

.panel--hero {
  z-index: 10;
  height: var(--hero-h);
}
.panel--strip-thesis {
  z-index: 20;
  height: var(--thesis-track);
}
.panel--photo-text {
  z-index: 30;
  margin-top: calc(-1 * (var(--thesis-track) - var(--thesis-h)));
  height: 100svh;
}
.panel--strip-resolution {
  z-index: 40;
  height: var(--resolution-track);
}
.panel--cta {
  z-index: 50;
  margin-top: calc(-1 * (var(--resolution-track) - var(--resolution-h)));
  height: var(--cta-h);
}

.panel__inner--hero,
.panel__inner--cta {
  min-height: 100%;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #6e5b98 0%, #9888ba 100%);
}
html[data-theme='dark'] .panel__inner--hero,
html[data-theme='dark'] .panel__inner--cta,
body[data-theme='dark'] .panel__inner--hero,
body[data-theme='dark'] .panel__inner--cta {
  background: linear-gradient(135deg, #5a4a7a 0%, #7a6a9d 100%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 84px 84px;
}
.grid-overlay::before,
.grid-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 210px 210px;
  opacity: 0.2;
}
.grid-overlay--soft {
  opacity: 0.3;
}

.hero-copy,
.grid-overlay {
  will-change: transform;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding-top: 0;
  padding-bottom: clamp(22px, 5vh, 42px);
}
.hero-kicker {
  margin: 0 0 8px;
  font-family: var(--hook);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(4rem, 10vw, 8.2rem);
  line-height: 0.96;
  color: rgba(255, 255, 255, 0.18);
}
.hero-quote {
  margin: 0;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
  color: rgba(255, 255, 255, 0.72);
}
.hero-author {
  margin: 10px 0 0;
  font-family: var(--hook);
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.64);
}

.panel--strip {
  color: var(--glass-text);
}
.panel__inner--strip {
  min-height: var(--strip-h);
  display: flex;
  align-items: flex-end;
  background: var(--glass-bg);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}
.panel--strip-thesis .panel__inner--strip {
  min-height: var(--thesis-h);
}

.strip-layout {
  width: 100%;
  position: relative;
  z-index: 1;
}
.strip-copy {
  max-width: 900px;
  padding: clamp(20px, 4vh, 34px) 0;
  margin-left: var(--brand-offset);
}
.strip-copy h2,
.strip-copy p {
  margin: 0;
}
.strip-copy h2 {
  font-family: var(--hook);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--glass-text);
}
.strip-copy p {
  color: var(--glass-muted);
}
.strip-copy--thesis h2 {
  font-weight: 600;
  font-size: clamp(2.35rem, 4.1vw, 4rem);
  max-width: 18ch;
  margin-bottom: 18px;
}
.strip-line-emphasis {
  font-family: var(--hook);
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 1.35;
  margin-bottom: 14px;
}
.strip-support {
  font-family: var(--condensed);
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  line-height: 1.7;
  max-width: 62ch;
}
.strip-support--wide {
  max-width: 100%;
}
.strip-copy--resolution h2 {
  font-weight: 600;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  max-width: 24ch;
  margin-bottom: 18px;
}
.strip-copy--resolution p {
  font-family: var(--condensed);
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  line-height: 1.72;
  max-width: 100%;
}
.panel--strip-resolution .panel__inner--strip {
  min-height: var(--resolution-h);
  align-items: center;
}
.highlight-marker {
  display: inline-block;
  padding: 0.08em 0.36em;
  background: rgba(148, 128, 188, 0.6);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(110, 91, 152, 0.25);
  color: #ffffff;
}

/* ── Photo-text merged section (C+D+E replacement) ── */
.panel__inner--photo-text {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.photo-text-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.photo-text-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  will-change: transform;
}
.photo-text-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(13, 10, 20, 0.82) 0%,
    rgba(13, 10, 20, 0.52) 55%,
    rgba(13, 10, 20, 0.18) 100%
  );
  pointer-events: none;
}
.photo-text-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: clamp(48px, 8vh, 96px);
  padding-bottom: clamp(48px, 8vh, 96px);
}
.photo-text-card {
  max-width: 520px;
  margin-left: auto;
  margin-right: var(--brand-offset);
}
.photo-text-eyebrow {
  margin: 0 0 12px;
  font-family: var(--hook);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(200, 185, 230, 0.8);
}
.photo-text-heading {
  margin: 0 0 20px;
  font-family: var(--hook);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.photo-text-body {
  margin: 0 0 14px;
  font-family: var(--condensed);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.72;
  color: rgba(242, 242, 243, 0.82);
}
.photo-text-body:last-child {
  margin-bottom: 0;
}

.panel__inner--cta {
  min-height: var(--cta-h);
  position: relative;
}
.cta-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: var(--cta-h);
}
.cta-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-portrait {
  margin: 0 0 20px;
  width: clamp(72px, 10vw, 104px);
  height: clamp(72px, 10vw, 104px);
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
}
.cta-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.purple-eyebrow {
  margin: 0 0 16px;
  font-family: var(--hook);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.resume-button {
  min-width: 210px;
  padding: 15px 24px;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}
.resume-button:hover {
  transform: translateY(-2px);
}
.resume-button--solid {
  background: #ffffff;
  color: var(--accent-strong);
  border: 2px solid #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.resume-button--ghost {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.78);
}
.resume-button--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  padding: 32px 0 44px;
  border-top: 1px solid var(--rule);
  position: relative;
  z-index: 100;
  background: var(--bg);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}
.social-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  transition: all 220ms ease;
}
.social-icon:hover {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
}
.footer-copy {
  color: var(--muted);
}
.fab-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  z-index: 12000;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  color: var(--muted);
  transition: all 220ms ease;
}
.fab-top:hover {
  color: var(--ink);
  border-color: var(--accent-strong);
  background: var(--accent-soft);
  transform: translateY(-4px);
}
.fab-top span {
  font-size: 20px;
  line-height: 1;
}

@media (min-width: 1500px) {
  .panel--strip-resolution {
    height: calc(var(--strip-track) + 90px);
  }
}

@media (max-width: 960px) {
  :root {
    --brand-offset: 0px;
    --hero-h: auto;
    --strip-track: auto;
    --resolution-track: auto;
    --cta-h: auto;
  }

  html.header-hidden .site-header {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px var(--pad-x);
  }

  .panel,
  .panel--hero,
  .panel--strip,
  .panel--photo-text,
  .panel--cta {
    height: auto;
    margin-top: 0;
  }

  .panel__inner,
  .panel__inner--hero,
  .panel__inner--strip,
  .panel__inner--photo-text,
  .panel__inner--cta {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .panel__inner--hero,
  .panel__inner--strip,
  .panel__inner--cta {
    padding: 72px 0;
  }

  .panel__inner--photo-text {
    min-height: 80svh;
  }

  .photo-text-overlay {
    background: rgba(13, 10, 20, 0.62);
  }

  .photo-text-card {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .strip-copy {
    padding: 0;
    margin-left: 0;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .cta-shell {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 16px;
  }
  .hero-kicker {
    font-size: clamp(3rem, 16vw, 5rem);
  }
  .hero-quote {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }
  .strip-copy--thesis h2,
  .strip-copy--resolution h2 {
    max-width: none;
  }
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .resume-button {
    width: min(100%, 300px);
  }
  .footer-row,
  .footer-meta {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .resume-button:hover,
  .fab-top:hover {
    transform: none;
  }
}
