:root {
  --white: #ffffff;
  --pink: #fbe0ea;
  --pink-about: #fbe3ed;
  --berry: #811f4b;
  --berry-dark: #6f183d;
  --hand-pink: #c55380;
  --line: #c994aa;
  --header-height: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; color: var(--berry); background: var(--white); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.4; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { color: var(--white); background: var(--berry); }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 1rem; padding: .8rem 1rem; color: var(--white); background: var(--berry); }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; z-index: 50; top: 0; width: 100%; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 64px; background: var(--white); border-bottom: 1px solid #ddb9c8; }
.brand { font-size: 18px; font-weight: 700; letter-spacing: -.03em; line-height: 24px; }
nav { display: flex; align-items: center; gap: 40px; }
.nav-link { position: relative; padding: 6px 0; font-size: 14px; line-height: 20px; text-transform: uppercase; letter-spacing: .08em; }
.nav-link::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--berry); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.menu-button { display: none; border: 0; background: transparent; padding: 8px; }

.page { display: none; min-height: calc(100svh - var(--header-height)); }
.page.active { display: block; }
.interaction-zone { outline: none; touch-action: pan-y; }
.interaction-zone:focus-visible { outline: 2px solid var(--berry); outline-offset: -4px; }

.home-hero { min-height: calc(100svh - var(--header-height)); background: var(--white); }
.home-stage { width: 100%; min-height: calc(100svh - var(--header-height)); display: grid; grid-template-columns: minmax(0, 410px) 420px minmax(0, 410px); justify-content: center; align-items: center; gap: 36px; padding: 24px 64px; }
.princess { object-fit: contain; }
.home-princess { width: 420px; height: 760px; }
.home-writing { align-self: stretch; display: flex; align-items: flex-start; padding-top: 154px; color: var(--hand-pink); font-family: "Cedarville Cursive", cursive; font-size: 64px; line-height: 72px; letter-spacing: -.02em; white-space: pre-line; }
.profile-scroll { height: 320svh; background: var(--pink); }
.profile-sheet { --profile-tall-height: 142px; position: sticky; top: var(--header-height); width: 100%; height: calc(100svh - var(--header-height)); min-height: 760px; padding: 24px 64px 42px; background: var(--pink); }
.profile-header { height: 56px; display: flex; align-items: center; justify-content: flex-start; border-bottom: 1px solid var(--line); color: #000; font-size: 13px; line-height: 18px; letter-spacing: .12em; text-transform: uppercase; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 616px) minmax(0, 616px); gap: 80px; padding-top: 10px; }
.profile-field { position: relative; height: 96px; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line); }
.field-label { color: var(--berry-dark); font-size: 13px; line-height: 18px; letter-spacing: .11em; text-transform: uppercase; }
.field-answer { min-height: 58px; display: flex; align-items: flex-end; color: var(--berry); font-family: "Cedarville Cursive", cursive; font-size: 36px; line-height: 44px; }
.field-answer-small { font-size: 28px; line-height: 30px; }
.profile-column:first-child .choice-field { height: var(--profile-tall-height); }
.profile-field-tall { height: var(--profile-tall-height); justify-content: flex-start; padding-top: 12px; overflow: hidden; }
.profile-field-tall .field-label { position: absolute; top: 12px; left: 0; }
.profile-field-tall .field-answer { position: absolute; top: 34px; right: 0; left: 0; display: block; height: 104px; min-height: 0; overflow: hidden; }
.choice-row { height: 64px; display: flex; align-items: center; gap: 20px; color: var(--berry-dark); font-size: 13px; line-height: 18px; letter-spacing: .11em; text-transform: uppercase; }
.choice-row i { width: 44px; height: 1px; background: var(--line); }
.choice { position: relative; padding: 6px 12px; }
.choice::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--berry); border-radius: 50%; opacity: 0; transform: rotate(-3deg) scale(.65); transition: opacity .35s ease, transform .4s ease; }
.choice.chosen::after { opacity: 1; transform: rotate(-3deg) scale(1); }
.fingerprint { position: absolute; z-index: 1; right: -10px; bottom: 8px; width: 150px; height: 180px; object-fit: contain; opacity: 0; mix-blend-mode: multiply; transition: opacity .6s ease; }
.fingerprint.visible { opacity: .36; }
.next-link { position: absolute; right: 64px; bottom: 22px; padding-bottom: 5px; border-bottom: 1px solid var(--berry); font-size: 13px; line-height: 18px; letter-spacing: .12em; text-transform: uppercase; }

.about-page, .work-page, .contact-page { background: var(--pink-about); }
.about-stage { position: relative; min-height: calc(100svh - var(--header-height)); display: flex; align-items: center; gap: 80px; padding: 56px 64px 58px; }
.polaroid { position: relative; flex: 0 0 480px; width: 480px; height: 480px; }
.polaroid-frame { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.polaroid-photo { position: absolute; z-index: 2; top: 50px; left: 91px; width: 299px; height: 299px; object-fit: cover; object-position: 50% 36%; }
.about-copy { position: relative; width: min(752px, calc(100% - 560px)); height: 700px; overflow: hidden; }
.about-title-wrap { position: absolute; top: 292px; left: 0; width: 690px; padding-bottom: 24px; border-bottom: 1px solid transparent; transition: top .8s cubic-bezier(.22,.76,.25,1), border-color .5s ease; }
.about-copy.revealed .about-title-wrap { top: 112px; border-bottom-color: var(--line); }
.script-heading, .work-title, .contact-title, .cv-heading { margin: 0; color: var(--berry); font-family: "Cedarville Cursive", cursive; font-weight: 400; }
.script-heading { font-size: 58px; line-height: 70px; }
.about-text { position: absolute; top: 246px; left: 0; width: 690px; color: var(--berry-dark); opacity: 0; transform: translateY(24px); transition: opacity .65s ease .28s, transform .65s ease .28s; }
.about-copy.revealed .about-text { opacity: 1; transform: none; }
.about-text p { margin: 0 0 20px; font-size: 13px; line-height: 18px; letter-spacing: .11em; }
.simple-stage { position: relative; min-height: calc(100svh - var(--header-height)); display: flex; align-items: center; justify-content: center; padding: 48px 64px; }
.work-title { font-size: clamp(64px, 8vw, 110px); line-height: 1; }

.experience-page { background: var(--white); }
.cv-page { position: relative; width: 100%; min-height: 2512px; padding: 82px 64px 110px; color: var(--berry-dark); }
.cv-section + .cv-section { margin-top: 42px; }
.cv-heading { height: 76px; display: flex; align-items: center; font-size: 58px; line-height: 56px; }
.cv-table { width: 100%; border-top: 1px solid var(--line); }
.cv-row { display: grid; grid-template-columns: 170px 1fr 212px; min-height: 135px; border-bottom: 1px solid var(--line); }
.cv-date { padding: 18px 16px; font-size: 18px; line-height: 24px; font-weight: 700; }
.cv-detail { padding: 17px 22px 19px; border-left: 1px solid var(--line); }
.cv-place { padding: 18px 16px; border-left: 1px solid var(--line); font-size: 16px; line-height: 22px; }
.cv-detail h2, .skills-table h2, .honors-list h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 700; }
.cv-detail p { margin: 5px 0 0; font-size: 15px; line-height: 22px; }
.cv-detail p + p { margin-top: 14px; }
.cv-detail ul { margin: 8px 0 0; padding: 0; list-style: none; }
.cv-detail li { font-size: 15px; line-height: 22px; }
.cv-detail li::before { content: "— "; }
.skills-table { display: grid; grid-template-columns: 32% 42% 26%; min-height: 220px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skills-table > div { padding: 22px 22px 26px 16px; }
.skills-table > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.skills-table p { margin: 14px 0 0; font-size: 15px; line-height: 29px; }
.honors-section { padding-bottom: 80px; }
.honors-list { border-top: 1px solid var(--line); }
.honors-list > div { padding: 16px 0 8px; }
.honors-list p { margin: 3px 0 0; font-size: 15px; line-height: 21px; }

.contact-stage { min-height: calc(100svh - var(--header-height)); display: flex; align-items: center; justify-content: center; gap: 20px; padding: 24px 64px; background: var(--pink); }
.contact-princess { flex: 0 0 420px; width: 420px; height: 760px; }
.contact-copy { width: 410px; min-height: 600px; display: flex; flex-direction: column; justify-content: center; }
.contact-title-wrap { padding-bottom: 10px; border-bottom: 1px solid transparent; transition: border-color .55s ease; }
.contact-title { min-height: 64px; font-size: 52px; line-height: 64px; }
.contact-details { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.contact-copy.revealed .contact-title-wrap { border-bottom-color: var(--line); }
.contact-copy.revealed .contact-details { opacity: 1; transform: none; }
.contact-row { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.contact-row strong { font-size: 12px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; }
.contact-row a, .contact-row > span { font-size: 18px; line-height: 29px; letter-spacing: .11em; }
.contact-looking { padding-top: 20px; border-bottom: 0; }
.contact-looking > span { font-size: 14px; line-height: 18px; }

@media (max-width: 1100px) {
  .site-header { padding-inline: 32px; }
  nav { gap: 24px; }
  .home-stage { grid-template-columns: 1fr minmax(320px, 420px) 1fr; gap: 24px; padding-inline: 32px; }
  .home-writing { font-size: 48px; line-height: 56px; }
  .profile-sheet { --profile-tall-height: 160px; padding-inline: 32px; }
  .profile-grid { gap: 40px; }
  .field-answer { font-size: 30px; line-height: 38px; }
  .field-answer-small { font-size: 25px; line-height: 28px; }
  .profile-field-tall .field-answer { height: 122px; }
  .about-stage { gap: 36px; padding-inline: 32px; }
  .polaroid { flex-basis: 420px; width: 420px; height: 420px; }
  .polaroid-photo { top: 44px; left: 80px; width: 262px; height: 262px; }
  .about-copy { width: calc(100% - 456px); }
  .about-title-wrap, .about-text { width: 100%; }
  .cv-page { padding-inline: 32px; }
}

@media (min-width: 761px) and (max-width: 860px) {
  .profile-sheet { --profile-tall-height: 200px; }
  .profile-field-tall .field-answer { height: 162px; }
}

@media (max-width: 760px) {
  :root { --header-height: 72px; }
  .site-header { height: var(--header-height); padding-inline: 20px; }
  .brand { max-width: 220px; font-size: 14px; }
  nav { position: fixed; inset: var(--header-height) 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; background: var(--white); border-bottom: 1px solid #ddb9c8; opacity: 0; transform: translateY(-120%); pointer-events: none; transition: .25s ease; }
  .menu-open nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid #edd4de; font-size: 14px; }
  .menu-button { display: grid; gap: 7px; }
  .menu-button span { display: block; width: 28px; height: 1px; background: var(--berry); transition: transform .2s ease; }
  .menu-open .menu-button span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-button span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .home-stage { min-height: calc(100svh - var(--header-height)); display: flex; align-items: center; justify-content: center; padding: 24px 18px; }
  .home-spacer { display: none; }
  .home-princess { width: min(78vw, 380px); height: min(68svh, 620px); }
  .home-writing { position: absolute; top: 11svh; right: 20px; z-index: 2; width: 46vw; height: auto; padding: 0; font-size: clamp(34px, 10vw, 52px); line-height: 1.05; text-shadow: 0 0 14px rgba(255,255,255,.95); }
  .profile-scroll { height: auto; }
  .profile-sheet { position: relative; top: auto; height: auto; min-height: 0; padding: 18px 20px 100px; }
  .profile-header { height: 50px; font-size: 11px; }
  .profile-grid { grid-template-columns: 1fr; gap: 0; padding-top: 8px; }
  .profile-field { min-height: 104px; height: auto; padding-block: 12px; }
  .profile-column:first-child .choice-field { height: auto; min-height: 104px; }
  .field-answer { min-height: 52px; font-size: 31px; line-height: 38px; }
  .field-answer-small { font-size: 25px; line-height: 28px; }
  .profile-field-tall { min-height: 190px; padding-top: 12px; }
  .profile-field-tall .field-answer { top: 34px; height: 152px; }
  .fingerprint { right: 0; bottom: 0; width: 120px; height: 150px; }
  .next-link { right: 20px; bottom: 24px; }
  .about-stage { min-height: calc(100svh - var(--header-height)); display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 34px 20px 100px; }
  .polaroid { flex: 0 0 auto; width: min(88vw, 400px); height: min(88vw, 400px); }
  .polaroid-photo { top: 9.2%; left: 19%; width: 62.3%; height: 62.3%; }
  .about-copy { width: 100%; height: 580px; overflow: visible; }
  .about-title-wrap { top: 80px; width: 100%; }
  .about-copy.revealed .about-title-wrap { top: 0; }
  .script-heading { font-size: 48px; line-height: 58px; }
  .about-text { top: 132px; width: 100%; }
  .about-text p { font-size: 14px; line-height: 20px; letter-spacing: .05em; }
  .simple-stage { padding-inline: 20px; }
  .work-title { font-size: 64px; }
  .cv-page { min-height: 0; padding: 44px 20px 100px; }
  .cv-section + .cv-section { margin-top: 34px; }
  .cv-heading { height: 68px; font-size: 50px; line-height: 54px; }
  .cv-row { grid-template-columns: 1fr; }
  .cv-date, .cv-detail, .cv-place { padding: 14px 0; border-left: 0; }
  .cv-date { padding-bottom: 0; }
  .cv-detail { padding-top: 8px; }
  .cv-place { padding-top: 0; color: #9b5675; }
  .cv-detail h2, .skills-table h2, .honors-list h2 { font-size: 17px; }
  .skills-table { grid-template-columns: 1fr; }
  .skills-table > div, .skills-table > div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .skills-table > div:last-child { border-bottom: 0; }
  .contact-stage { min-height: calc(100svh - var(--header-height)); flex-direction: column; gap: 8px; padding: 26px 20px 50px; }
  .contact-princess { flex: 0 0 auto; width: min(78vw, 340px); height: min(51svh, 520px); }
  .contact-copy { width: 100%; min-height: 0; }
  .contact-title { font-size: 48px; line-height: 58px; }
  .contact-row a, .contact-row > span { font-size: 15px; letter-spacing: .06em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
