:root {
  --paper: #f0ede5;
  --paper-deep: #e6e0d6;
  --ink: #1e1d1b;
  --ink-soft: #56524c;
  --line: rgba(30, 29, 27, 0.2);
  --clay: #9a3826;
  --clay-dark: #702619;
  --canvas: #171716;
  --canvas-soft: #282725;
  --canvas-text: #f4f0e8;
  --serif: "Iowan Old Style", "Songti SC", "STSong", serif;
  --sans: Aptos, "Microsoft YaHei UI", "Noto Sans CJK SC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 74% 18%, rgba(154, 56, 38, 0.08), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

body.intro-active {
  overflow: hidden;
}

body > main,
body > .site-footer {
  position: relative;
  z-index: 1;
}

.cosmic-field {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100vw;
  height: 100svh;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: normal;
  filter: saturate(1.16);
  transition: opacity 1500ms var(--ease) 180ms;
}

body.is-revealed .cosmic-field {
  opacity: 0.82;
}

body.is-revealing .cosmic-field {
  opacity: 0;
}

button,
textarea,
select,
input {
  font: inherit;
}

button,
a,
select,
textarea,
input {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.intro-curtain {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: block;
  overflow: hidden;
  background: #11110f;
  color: var(--canvas-text);
  clip-path: inset(0 0 0 0);
  transition:
    clip-path 1100ms var(--ease),
    opacity 900ms var(--ease),
    visibility 1100ms;
}

.intro-curtain::before,
.intro-curtain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-curtain::before {
  background:
    linear-gradient(90deg, transparent 0 7.8vw, rgba(244, 240, 232, 0.1) 7.8vw calc(7.8vw + 1px), transparent calc(7.8vw + 1px)),
    linear-gradient(rgba(244, 240, 232, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 9vh;
}

.intro-curtain::after {
  width: 32vw;
  background: linear-gradient(90deg, transparent, rgba(212, 154, 58, 0.13), transparent);
  filter: blur(30px);
  transform: skewX(-12deg) translateX(-150%);
  animation: intro-scan 1800ms var(--ease) 180ms both;
}

.intro-curtain.is-transitioning {
  clip-path: inset(0 0 0 100%);
}

.intro-curtain.is-complete {
  visibility: hidden;
  opacity: 0;
  clip-path: inset(0 0 0 100%);
}

.intro-copy {
  position: absolute;
  z-index: 2;
  display: grid;
  bottom: clamp(92px, 16vh, 180px);
  left: 8vw;
  gap: 8px;
  width: min(880px, 78vw);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.intro-copy span {
  color: #d49a3a;
  font-size: clamp(10px, 0.8vw, 13px);
  font-weight: 700;
  opacity: 0;
  animation: welcome-rise 520ms var(--ease) 120ms forwards;
}

.intro-copy strong {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(62px, 10vw, 172px);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.76;
  opacity: 0;
  animation: welcome-rise 760ms var(--ease) 280ms forwards;
}

.intro-copy p {
  margin: 18px 0 0;
  color: #b8b2a7;
  font-size: clamp(10px, 0.78vw, 13px);
  letter-spacing: 0.16em;
  opacity: 0;
  animation: welcome-rise 560ms var(--ease) 760ms forwards;
}

.intro-copy small {
  margin-top: 6px;
  color: #777269;
  font-size: 9px;
  letter-spacing: 0.2em;
}

.intro-rule {
  position: relative;
  width: min(620px, 66vw);
  height: 1px;
  margin-top: 30px;
  overflow: hidden;
  background: rgba(244, 240, 232, 0.14);
}

.intro-rule i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #b7442d, #d49a3a 48%, #2f8875);
  transform: translateX(-102%);
  animation: welcome-rule 950ms var(--ease) 580ms forwards;
}

.intro-coordinate {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  color: #77736c;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.intro-glow {
  position: absolute;
  z-index: 1;
  top: 8vh;
  right: 8vw;
  width: min(34vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(244, 240, 232, 0.12);
  transform: rotate(12deg);
}

.intro-glow::before,
.intro-glow::after,
.intro-glow i {
  position: absolute;
  content: "";
}

.intro-glow::before { inset: 12%; border: 1px solid rgba(244, 240, 232, 0.08); }
.intro-glow::after { inset: 0; background: radial-gradient(circle at 70% 28%, rgba(212, 154, 58, 0.26), transparent 42%); filter: blur(20px); }
.intro-glow i:first-child { top: 0; left: 18%; width: 1px; height: 100%; background: rgba(244, 240, 232, 0.1); }
.intro-glow i:last-child { top: 72%; left: -18%; width: 118%; height: 1px; background: rgba(244, 240, 232, 0.1); }

.intro-skip {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--canvas-text);
  cursor: pointer;
}

.intro-skip span {
  display: inline-block;
  margin-left: 5px;
  transition: transform 180ms var(--ease);
}

.intro-skip:hover span {
  transform: translate(3px, -3px);
}

@keyframes welcome-rise {
  from { opacity: 0; filter: blur(10px); transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes welcome-rule {
  to { transform: translateX(0); }
}

@keyframes intro-scan {
  to { transform: skewX(-12deg) translateX(430%); }
}

.site-header {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 3.2vw;
  border-bottom: 1px solid transparent;
  transition: background 200ms, border-color 200ms, color 200ms;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
}

.site-header.on-canvas {
  color: var(--canvas-text);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.wordmark span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 13px;
}

.wordmark strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.text-action {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
}

.text-action.light {
  color: var(--canvas-text);
}

.menu-toggle {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 180ms, transform 180ms;
}

.menu-toggle:hover {
  background: var(--clay);
  transform: rotate(5deg);
}

.menu-toggle i {
  position: absolute;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 220ms var(--ease);
}

.menu-toggle i:first-of-type { transform: translateY(-3px); }
.menu-toggle i:last-of-type { transform: translateY(3px); }
.menu-toggle[aria-expanded="true"] i:first-of-type { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:last-of-type { transform: rotate(-45deg); }

.site-menu {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  display: grid;
  width: min(560px, calc(100vw - 24px));
  height: 100dvh;
  grid-template-rows: auto 1fr auto;
  padding: 110px 56px 48px;
  background: var(--canvas);
  color: var(--canvas-text);
  transform: translateX(102%);
  transition: transform 420ms var(--ease), visibility 420ms;
  visibility: hidden;
}

.site-menu.is-open {
  visibility: visible;
  transform: translateX(0);
}

.menu-topline {
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(244, 240, 232, 0.2);
  color: #a5a096;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-menu nav {
  display: grid;
  align-content: center;
}

.site-menu nav a,
.site-menu nav button {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: baseline;
  padding: 13px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms, transform 160ms;
}

.site-menu nav a:hover,
.site-menu nav button:hover {
  color: #d76550;
  transform: translateX(8px);
}

.site-menu nav span {
  color: #8f8a80;
  font-family: var(--sans);
  font-size: 11px;
}

.site-menu > p {
  max-width: 380px;
  color: #aaa59b;
  font-size: 13px;
}

.hero {
  position: relative;
  display: grid;
  min-height: max(100svh, 820px);
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.78fr);
  grid-template-areas:
    "copy portrait"
    "assistant portrait";
  grid-template-rows: auto auto;
  column-gap: clamp(42px, 5vw, 104px);
  row-gap: clamp(22px, 3vh, 38px);
  align-content: center;
  padding: max(126px, 11vh) 4vw clamp(54px, 7vh, 92px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 16%;
  right: 1.5vw;
  width: min(42vw, 680px);
  aspect-ratio: 1;
  border: 1px solid rgba(30, 29, 27, 0.13);
  border-radius: 50%;
}

.hero-ruler {
  position: absolute;
  top: calc(var(--header-height) + 12px);
  left: 4vw;
  display: flex;
  width: 92vw;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-area: copy;
  width: auto;
  max-width: 920px;
  align-self: end;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(86px, 8.3vw, 154px);
  font-weight: 500;
  letter-spacing: -0.09em;
  line-height: 0.84;
}

.name-character {
  display: inline-block;
  transform-origin: 50% 80%;
}

.hero-roles {
  max-width: 800px;
  margin: 28px 0 8px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.15vw, 37px);
  line-height: 1.14;
}

.hero-roles span {
  display: block;
}

.education-line {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(12px, 0.86vw, 14px);
}

.hero-summary {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: clamp(12px, 0.9vw, 14px);
  line-height: 1.65;
}

.portrait-stage {
  --portrait-x: 64%;
  --portrait-y: 35%;
  --portrait-tilt-x: 0deg;
  --portrait-tilt-y: 0deg;
  --portrait-scroll: 0px;
  position: relative;
  z-index: 2;
  display: block;
  grid-area: portrait;
  width: min(100%, 520px);
  align-self: center;
  justify-self: end;
  color: inherit;
  text-decoration: none;
  perspective: 1100px;
  transform: translateY(var(--portrait-scroll));
  transition: transform 120ms linear;
}

.portrait-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 0.79;
  background: #b9b3a8;
  box-shadow:
    -26px 30px 0 rgba(30, 29, 27, 0.075),
    0 36px 78px rgba(30, 29, 27, 0.16);
  transform: rotateX(var(--portrait-tilt-x)) rotateY(var(--portrait-tilt-y));
  transform-style: preserve-3d;
  transition: transform 420ms var(--ease), box-shadow 420ms var(--ease);
}

.portrait-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
  transition: filter 300ms, transform 700ms var(--ease), clip-path 550ms var(--ease);
}

.portrait-base {
  filter: saturate(0.8) contrast(1.025) brightness(0.94);
  transform: scale(1.018);
}

.portrait-reveal {
  z-index: 1;
  clip-path: circle(12% at var(--portrait-x) var(--portrait-y));
  filter: saturate(1.12) contrast(1.02) brightness(1.02);
  transform: scale(1.035);
}

.portrait-placeholder {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: 0.06em;
  text-align: center;
}

.portrait-stage:hover .portrait-frame,
.portrait-stage:focus-visible .portrait-frame {
  box-shadow:
    -18px 22px 0 rgba(30, 29, 27, 0.06),
    0 48px 92px rgba(30, 29, 27, 0.22);
}

.portrait-stage:hover .portrait-base,
.portrait-stage:focus-visible .portrait-base {
  filter: saturate(0.72) contrast(1.04) brightness(0.9);
  transform: scale(1.055);
}

.portrait-stage:hover .portrait-reveal,
.portrait-stage:focus-visible .portrait-reveal {
  clip-path: circle(29% at var(--portrait-x) var(--portrait-y));
  transform: scale(1.018);
}

.portrait-focus {
  position: absolute;
  z-index: 2;
  top: var(--portrait-y);
  left: var(--portrait-x);
  width: 25%;
  aspect-ratio: 1;
  border: 1px solid rgba(240, 237, 229, 0.78);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(30, 29, 27, 0.06),
    0 0 34px rgba(244, 240, 232, 0.22);
  transform: translate(-50%, -50%);
  transition: width 420ms var(--ease), opacity 300ms;
}

.portrait-stage:hover .portrait-focus,
.portrait-stage:focus-visible .portrait-focus {
  width: 58%;
}

.portrait-scanline {
  position: absolute;
  z-index: 3;
  top: -20%;
  left: -35%;
  width: 28%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: rotate(17deg) translateX(-220%);
  pointer-events: none;
}

.portrait-stage:hover .portrait-scanline,
.portrait-stage:focus-visible .portrait-scanline {
  animation: portrait-scan 1000ms var(--ease);
}

.portrait-year {
  position: absolute;
  z-index: -1;
  top: -14%;
  right: -20%;
  color: rgba(30, 29, 27, 0.07);
  font-family: var(--serif);
  font-size: clamp(180px, 26vw, 420px);
  letter-spacing: -0.12em;
  line-height: 1;
}

.portrait-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes portrait-scan {
  from { transform: rotate(17deg) translateX(-220%); }
  to { transform: rotate(17deg) translateX(620%); }
}

.home-assistant {
  position: relative;
  z-index: 5;
  grid-area: assistant;
  width: min(100%, 790px);
  align-self: start;
  padding: 22px 24px 20px;
  border: 1px solid rgba(244, 240, 232, 0.15);
  background: var(--canvas);
  color: var(--canvas-text);
  box-shadow: 0 24px 70px rgba(30, 29, 27, 0.26);
}

.motion-ready body.intro-active .hero-copy > *,
.motion-ready body.intro-active .home-assistant,
.motion-ready body.intro-active .portrait-stage {
  opacity: 0;
}

.motion-ready body.is-revealing .hero-copy > .eyebrow {
  animation: hero-rise 650ms var(--ease) 80ms both;
}

.motion-ready body.is-revealing .hero-copy > h1 {
  opacity: 1;
}

.motion-ready body.is-revealing .name-character {
  animation: name-arrival 920ms var(--ease) var(--character-delay) both;
}

.motion-ready body.is-revealing .hero-roles {
  animation: hero-rise 760ms var(--ease) 2800ms both;
}

.motion-ready body.is-revealing .education-line,
.motion-ready body.is-revealing .hero-summary {
  animation: hero-rise 760ms var(--ease) 2900ms both;
}

.motion-ready body.is-revealing .portrait-stage {
  animation: portrait-arrival 1150ms var(--ease) 1600ms both;
}

.motion-ready body.is-revealing .home-assistant {
  animation: assistant-arrival 900ms var(--ease) 3020ms both;
}

@keyframes name-arrival {
  0% { opacity: 0; filter: blur(14px); transform: translateY(0.55em) rotate(7deg) scale(0.88); }
  58% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; }
}

@keyframes portrait-arrival {
  0% { opacity: 0; clip-path: inset(100% 0 0 0); transform: translate3d(12%, 7%, 0) scale(0.94); }
  65% { opacity: 1; clip-path: inset(0 0 0 0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes assistant-arrival {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.assistant-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.assistant-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.88;
}

.home-assistant .eyebrow,
.conversation-canvas .eyebrow {
  color: #d76550;
}

.assistant-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #bcb7ad;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.assistant-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d76550;
}

.identity-disclosure {
  margin: 8px 0 15px;
  color: #bbb6ac;
  font-size: 12px;
}

.ask-form {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 9px 14px;
  align-items: center;
}

.ask-form > label:not(.processor-consent) {
  color: #aaa59b;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.select-shell,
.question-shell {
  position: relative;
}

.select-shell select {
  width: 100%;
  padding: 9px 34px 9px 12px;
  border: 0;
  border-bottom: 1px solid rgba(244, 240, 232, 0.3);
  border-radius: 0;
  appearance: none;
  background: transparent;
  color: var(--canvas-text);
}

.select-shell select option {
  color: var(--ink);
}

.select-shell > span {
  position: absolute;
  top: 9px;
  right: 10px;
  pointer-events: none;
}

.question-shell textarea {
  display: block;
  width: 100%;
  min-height: 62px;
  resize: none;
  padding: 13px 96px 13px 14px;
  border: 1px solid rgba(244, 240, 232, 0.24);
  background: #201f1e;
  color: var(--canvas-text);
}

.question-shell textarea::placeholder,
.conversation-form textarea::placeholder {
  color: #88847b;
}

.send-button {
  position: absolute;
  top: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  background: var(--clay);
  color: #fff;
  cursor: pointer;
}

.send-button:hover {
  background: #b14834;
}

.starter-questions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.starter-questions button,
.conversation-starters button {
  padding: 7px 10px;
  border: 1px solid rgba(244, 240, 232, 0.22);
  background: transparent;
  color: #ddd8ce;
  font-size: 11px;
  cursor: pointer;
  transition: background 150ms, color 150ms;
}

.starter-questions button:hover,
.conversation-starters button:hover {
  background: var(--canvas-text);
  color: var(--canvas);
}

.processor-consent {
  grid-column: 2;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: start;
  color: #aaa59b;
  font-size: 10px;
}

.processor-consent input {
  margin: 2px 0 0;
  accent-color: var(--clay);
}

.conversation-consent {
  grid-column: 1;
  margin: 0 0 6px;
}

.form-message {
  grid-column: 2;
  min-height: 18px;
  margin: 0;
  color: #f0a99b;
  font-size: 11px;
}

.bridge {
  display: flex;
  width: 100%;
  gap: 4vw;
  padding: 20px 0;
  overflow: hidden;
  background: var(--canvas);
  color: var(--canvas-text);
  font-family: var(--serif);
  font-size: clamp(24px, 3.8vw, 54px);
  white-space: nowrap;
  transform: translateX(-4%);
}

.bridge div {
  min-width: 100%;
  animation: bridge-drift 22s linear infinite;
}

@keyframes bridge-drift {
  to { transform: translateX(-100%); }
}

.experience-index {
  min-height: 100svh;
  padding: 11vw 3.2vw 12vw;
  background: var(--paper);
}

.section-intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  column-gap: 7vw;
  align-items: end;
  padding-bottom: 7vw;
}

.section-intro .eyebrow {
  grid-column: 1 / -1;
}

.section-intro h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(64px, 8.5vw, 132px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.86;
}

.section-intro > p:last-child {
  max-width: 430px;
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

.experience-group {
  border-top: 1px solid var(--ink);
}

.group-header {
  display: flex;
  justify-content: space-between;
  padding: 15px 0 12px;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.group-header h3 {
  margin: 0;
  font: inherit;
}

.experience-row {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  padding: 26px 0 30px;
  overflow: hidden;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}

.experience-row::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--canvas);
  transform: translateY(102%);
  transition: transform 280ms var(--ease);
}

.experience-row:hover,
.experience-row:focus-visible {
  color: var(--canvas-text);
}

.experience-row:hover::before,
.experience-row:focus-visible::before,
.experience-row.is-current::before {
  transform: translateY(0);
}

.experience-row.is-current {
  color: var(--canvas-text);
}

.experience-number {
  color: var(--clay);
  font-size: 11px;
}

.experience-title {
  min-width: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 64px);
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}

.experience-intent {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 4vw;
  color: #aaa59b;
  font-size: 11px;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 180ms, transform 180ms;
}

.experience-row:hover .experience-intent,
.experience-row:focus-visible .experience-intent {
  opacity: 1;
  transform: translateX(0);
}

.experience-intent span {
  color: #d76550;
  font-size: 20px;
}

.evidence-dot {
  position: absolute;
  left: 50px;
  bottom: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  opacity: 0;
  transform: scale(0);
  transition: opacity 180ms, transform 180ms;
}

.experience-row:hover .evidence-dot,
.experience-row:focus-visible .evidence-dot,
.experience-row.is-current .evidence-dot {
  opacity: 1;
  transform: scale(1);
}

.empty-index {
  padding: 48px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.static-fallback {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 5vw;
  align-items: end;
  padding: 9vw 3.2vw;
  background: var(--paper-deep);
}

.static-fallback h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 6.5vw, 96px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.static-fallback > p {
  max-width: 450px;
  margin: 0;
  color: var(--ink-soft);
}

.outline-button {
  padding: 14px 18px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}

.outline-button:hover {
  background: var(--ink);
  color: var(--paper);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 3.2vw;
  background: var(--canvas);
  color: #aaa59b;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer button {
  border: 0;
  background: transparent;
  color: var(--canvas-text);
  cursor: pointer;
}

.conversation-canvas {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: grid;
  grid-template-rows: 76px 1fr;
  background: var(--canvas);
  color: var(--canvas-text);
  visibility: hidden;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 520ms var(--ease), opacity 260ms, visibility 520ms;
}

.conversation-canvas.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.conversation-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 3.2vw;
  border-bottom: 1px solid rgba(244, 240, 232, 0.16);
}

.conversation-header p {
  color: #aaa59b;
  font-size: 11px;
  text-align: center;
}

.conversation-header > button:last-child {
  justify-self: end;
}

.back-button {
  justify-self: start;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--canvas-text);
  cursor: pointer;
}

.conversation-grid {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(300px, 34vw) 1fr;
}

.conversation-context {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(42px, 7vw, 100px) 3.2vw 42px;
  overflow: hidden;
  border-right: 1px solid rgba(244, 240, 232, 0.16);
  background: var(--canvas-soft);
}

.conversation-context::before {
  content: "";
  position: absolute;
  right: -18vw;
  bottom: -16vw;
  width: 38vw;
  aspect-ratio: 1;
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: 50%;
}

.context-number {
  position: absolute;
  right: -0.02em;
  bottom: -0.18em;
  margin: 0;
  color: rgba(244, 240, 232, 0.04);
  font-family: var(--serif);
  font-size: clamp(260px, 30vw, 560px);
  line-height: 1;
}

.conversation-context h2 {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 12vh 0 0;
  font-family: var(--serif);
  font-size: clamp(40px, 4.2vw, 62px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.context-lock {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 28px;
  color: #b7b2a8;
  font-size: 12px;
}

.context-lock i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d76550;
  box-shadow: 0 0 0 5px rgba(215, 101, 80, 0.13);
}

.switch-button {
  position: relative;
  z-index: 1;
  width: max-content;
  margin-top: auto;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--canvas-text);
  cursor: pointer;
}

.conversation-main {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: 1fr auto auto;
  padding: clamp(24px, 4vw, 58px) clamp(22px, 5vw, 76px) 28px;
}

.transcript {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-color: #6a665f transparent;
}

.assistant-message,
.visitor-message {
  max-width: min(720px, 88%);
}

.assistant-message {
  align-self: flex-start;
}

.visitor-message {
  align-self: flex-end;
  padding: 12px 16px;
  border: 1px solid rgba(244, 240, 232, 0.2);
  color: #ded9cf;
}

.assistant-message > span {
  color: #d76550;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.assistant-message p,
.visitor-message p {
  margin: 7px 0 0;
}

.assistant-message p {
  font-family: var(--serif);
  font-size: clamp(21px, 2.3vw, 34px);
  line-height: 1.3;
  white-space: pre-line;
}

.assistant-message[data-result-type="boundary"] p,
.assistant-message[data-result-type="unavailable"] p,
.assistant-message[data-result-type="input_guidance"] p,
.assistant-message[data-result-type="request_error"] p {
  color: #e2a496;
}

.pending-message p::after {
  content: "";
  display: inline-block;
  width: 1.7em;
  height: 0.8em;
  margin-left: 8px;
  background: linear-gradient(90deg, #d76550 33%, transparent 0 66%, #d76550 0);
  background-size: 9px 100%;
  animation: pending 700ms steps(2, end) infinite;
}

@keyframes pending {
  to { background-position: 18px 0; }
}

.conversation-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 12px;
}

.conversation-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 54px;
  border-top: 1px solid rgba(244, 240, 232, 0.26);
}

.conversation-form textarea {
  min-height: 58px;
  max-height: 130px;
  resize: vertical;
  padding: 16px 14px 4px 0;
  border: 0;
  background: transparent;
  color: var(--canvas-text);
}

.conversation-form > button {
  width: 46px;
  height: 46px;
  align-self: center;
  border: 0;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.conversation-form > button:disabled,
.send-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.conversation-form-status {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  color: #e2a496;
  font-size: 11px;
}

.contact-dialog {
  width: min(760px, calc(100vw - 32px));
  padding: clamp(28px, 6vw, 72px);
  border: 0;
  background: var(--paper);
  color: var(--ink);
}

.contact-dialog::backdrop {
  background: rgba(18, 18, 17, 0.7);
  backdrop-filter: blur(6px);
}

.contact-dialog h2 {
  margin: 0 0 45px;
  font-family: var(--serif);
  font-size: clamp(50px, 7vw, 94px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.88;
}

.dialog-close-row {
  display: flex;
  justify-content: flex-end;
}

.dialog-close-row button {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
}

.contact-options {
  border-top: 1px solid var(--ink);
}

.contact-link {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contact-link span {
  color: var(--ink-soft);
  font-size: 12px;
}

.contact-link strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.contact-note {
  max-width: 520px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.evidence-cursor {
  position: fixed;
  z-index: 130;
  left: 50%;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(244, 240, 232, 0.22);
  background: var(--canvas);
  color: var(--canvas-text);
  font-size: 9px;
  letter-spacing: 0.14em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 180ms, transform 260ms var(--ease);
}

.evidence-cursor.is-active {
  opacity: 1;
  transform: translate(-50%, 0);
}

.evidence-cursor i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d76550;
}

.body-locked {
  overflow: hidden;
}

.static-unavailable {
  max-width: 420px;
  padding: 18px;
  border: 1px solid var(--line);
}

@media (max-width: 1050px) {
  .hero {
    min-height: max(100svh, 900px);
    grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
    column-gap: 34px;
    padding-inline: 3vw;
  }

  .hero-copy {
    width: auto;
  }

  .portrait-stage {
    width: min(100%, 410px);
  }

  .home-assistant {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(76px, 9.6vw, 112px);
  }

  .hero-roles {
    font-size: clamp(21px, 2.6vw, 30px);
  }

  .ask-form {
    grid-template-columns: 98px 1fr;
  }

  .experience-title {
    font-size: 34px;
  }

  .experience-intent {
    display: none;
  }

  .static-fallback {
    grid-template-columns: 1.3fr 1fr;
  }

  .static-fallback .outline-button {
    grid-column: 2;
    width: max-content;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    padding: 0 16px;
  }

  .text-action:not(.light) {
    display: none;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .site-menu {
    padding: 92px 26px 28px;
  }

  .site-menu nav a,
  .site-menu nav button {
    grid-template-columns: 32px 1fr;
    font-size: clamp(40px, 15vw, 62px);
  }

  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "assistant"
      "portrait";
    grid-template-rows: auto;
    gap: 28px;
    padding: 96px 16px 42px;
  }

  .hero-ruler {
    left: 16px;
    width: calc(100vw - 32px);
  }

  .hero-copy {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(68px, 22vw, 94px);
    letter-spacing: -0.1em;
  }

  .hero-roles {
    max-width: 100%;
    margin-top: 18px;
    font-size: clamp(19px, 6vw, 25px);
    line-height: 1.18;
  }

  .education-line {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.5;
  }

  .hero-summary {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.62;
  }

  .portrait-stage {
    width: min(84vw, 430px);
    margin: 4px auto 14px;
    justify-self: center;
  }

  .portrait-frame {
    box-shadow: -12px 14px 0 rgba(30, 29, 27, 0.08);
  }

  .portrait-year {
    top: -10vw;
    right: -10vw;
    font-size: 52vw;
  }

  .portrait-caption {
    font-size: 8px;
  }

  .home-assistant {
    width: 100%;
    padding: 18px 16px 15px;
    box-shadow: 0 22px 50px rgba(30, 29, 27, 0.2);
  }

  .assistant-heading h2 {
    font-size: 45px;
  }

  .assistant-status {
    max-width: 106px;
    text-align: right;
  }

  .ask-form {
    display: block;
  }

  .ask-form > label:not(.processor-consent) {
    display: block;
    margin: 11px 0 4px;
  }

  .starter-questions {
    margin-top: 9px;
  }

  .starter-questions button {
    flex: 1 1 auto;
    padding: 7px 6px;
  }

  .processor-consent {
    margin-top: 10px;
  }

  .form-message {
    margin-top: 5px;
  }

  .intro-coordinate {
    top: 20px;
    left: 18px;
    right: 18px;
  }

  .intro-copy {
    bottom: 18vh;
    left: 18px;
    width: calc(100vw - 36px);
  }

  .intro-copy strong {
    font-size: clamp(62px, 21vw, 104px);
  }

  .intro-rule {
    width: 78vw;
    margin-top: 22px;
  }

  .intro-glow {
    top: 9vh;
    right: -18vw;
    width: 76vw;
    opacity: 0.62;
  }

  .intro-skip {
    right: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
  }

  .bridge {
    padding: 15px 0;
    font-size: 22px;
  }

  .experience-index {
    min-height: 75svh;
    padding: 86px 16px 90px;
  }

  .section-intro {
    display: block;
    padding-bottom: 52px;
  }

  .section-intro h2 {
    font-size: clamp(58px, 19vw, 78px);
  }

  .section-intro > p:last-child {
    margin-top: 24px;
    font-size: 12px;
  }

  .experience-row {
    grid-template-columns: minmax(0, 1fr) 20px;
    padding: 20px 0 22px;
  }

  .experience-number {
    display: none;
  }

  .experience-title {
    font-size: 19px;
    letter-spacing: -0.035em;
  }

  .evidence-dot {
    position: static;
    justify-self: end;
    opacity: 1;
    transform: scale(0.7);
  }

  .static-fallback {
    display: block;
    padding: 80px 16px;
  }

  .static-fallback h2 {
    font-size: 58px;
  }

  .static-fallback > p {
    margin: 28px 0;
    font-size: 13px;
  }

  .site-footer {
    gap: 12px;
    padding: 20px 16px;
    letter-spacing: 0;
    text-transform: none;
  }

  .conversation-canvas {
    grid-template-rows: 64px 1fr;
  }

  .conversation-header {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .conversation-header p {
    display: none;
  }

  .conversation-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .conversation-context {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    align-items: center;
    padding: 15px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(244, 240, 232, 0.16);
  }

  .conversation-context .eyebrow,
  .context-number {
    display: none;
  }

  .conversation-context h2 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .context-lock {
    margin-top: 0;
    font-size: 10px;
  }

  .switch-button {
    grid-row: 1 / span 2;
    grid-column: 2;
    margin: 0;
    font-size: 11px;
    white-space: nowrap;
  }

  .conversation-main {
    padding: 20px 16px 12px;
  }

  .assistant-message p {
    font-size: 20px;
  }

  .conversation-starters {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .conversation-starters button {
    flex: 0 0 auto;
  }

  .contact-dialog {
    padding: 24px 20px 34px;
  }

  .contact-dialog h2 {
    margin-bottom: 30px;
    font-size: 52px;
  }

  .contact-link {
    display: grid;
  }

  .contact-link strong {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .intro-curtain {
    visibility: hidden;
    opacity: 0;
    clip-path: inset(0 0 0 100%);
  }

  .portrait-frame,
  .portrait-stage:hover .portrait-frame,
  .portrait-stage:focus-visible .portrait-frame,
  .portrait-stage:hover .portrait-image,
  .portrait-stage:focus-visible .portrait-image,
  .portrait-stage:hover .portrait-focus,
  .portrait-stage:focus-visible .portrait-focus {
    transform: none;
  }

  .portrait-reveal,
  .portrait-stage:hover .portrait-reveal,
  .portrait-stage:focus-visible .portrait-reveal {
    clip-path: circle(29% at 64% 35%);
  }

  .motion-ready body.intro-active .hero-copy > *,
  .motion-ready body.intro-active .home-assistant,
  .motion-ready body.intro-active .portrait-stage {
    opacity: 1;
  }

  .bridge {
    transform: none;
  }
}

@media (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  .portrait-reveal {
    animation: portrait-touch-breathe 5.5s var(--ease) infinite alternate;
  }

  @keyframes portrait-touch-breathe {
    from { clip-path: circle(15% at 38% 32%); }
    to { clip-path: circle(34% at 66% 52%); }
  }
}
