:root {
  color-scheme: dark;
  --paper: #f1f0eb;
  --muted: #a6b0b9;
  --ease: cubic-bezier(.2,.7,.2,1);
  font-family: Manrope, sans-serif;
  background: #080d12;
  color: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }
.portal-page { min-height: 100svh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 56%, #18202955, transparent 56%); isolation: isolate; }
.entrance-galaxy { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; opacity: .72; transition: opacity 2.4s ease; }
.portal-page::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(#080d12bb, transparent 25%, transparent 75%, #080d12c9); }
.portal-header, .portal-footer { display: flex; align-items: center; justify-content: space-between; padding-inline: clamp(24px, 4vw, 64px); }
.portal-header { min-height: 80px; gap: 16px; }
.portal-identity { display: flex; gap: 18px; align-items: center; margin: 0; font-size: 14px; }
.portal-identity b { font-size: 25px; letter-spacing: -.08em; font-weight: 500; }
.portal-identity b span { color: #a7c4d7; }
.portal-nickname { color: var(--muted); }
.portal-address { color: var(--muted); font-size: 13px; }
.portal-entry-actions { display: flex; align-items: center; gap: 24px; }
.portal-entry-skip { min-height: 44px; border: 1px solid #b6c3ce38; border-radius: 30px; padding: 10px 16px; background: #0c151c9c; color: #d4e0e8; cursor: pointer; font-size: 12px; }
.portal-entry-skip span { margin-left: 10px; }
.portal-entry-skip[hidden] { display: none; }
.portal-entry-skip:hover { border-color: #b6c3ce99; color: #fff; }
.portal-entry-skip:focus-visible { outline: 2px solid #cfe9ff; outline-offset: 4px; }
.portal-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 24px 20px; gap: clamp(24px, 4svh, 40px); }
.portal-intro { text-align: center; transition: opacity 1.6s ease, translate 1.8s var(--ease); }
.portal-intro p { font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: #b1bbc4; margin: 0 0 12px; }
.portal-intro h1 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(36px, 4vw, 56px); letter-spacing: -.035em; line-height: 1.12; margin: 0; }
.portal-intro h1 em { color: #c7d0d7; font-weight: 400; }
.portal-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(64px, 11vw, 170px); width: max-content; max-width: 100%; }
.portal-door { --accent: #aacfe5; display: block; width: clamp(200px, 33svh, 290px); text-decoration: none; border-radius: 5px; transition: transform .8s var(--ease), opacity 2s ease, translate 2.2s var(--ease), scale 2.2s var(--ease); outline-offset: 12px; }
.portal-door--life { --accent: #e4bf98; }
.portal-door__portrait { display: block; position: relative; aspect-ratio: 3 / 4; border: 1px solid #d9e7f42e; border-radius: 4px; overflow: hidden; background: #121b24; box-shadow: 0 20px 65px #0007; transition: border-color .7s, box-shadow .7s; }
.portal-door__portrait::after { content: ""; position: absolute; inset: 0; background: #03080d; opacity: .06; transition: opacity .8s var(--ease); pointer-events: none; }
.portal-door__portrait picture { display: block; position: absolute; inset: 0; }
.portal-door img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 50% 22%; }
.portal-door--life img { object-position: 50% 31%; }
.portal-door__copy { display: block; padding: 18px 0 0; }
.portal-door__meta { display: block; font-size: 12px; color: var(--accent); letter-spacing: .04em; }
.portal-door__heading { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 3px; }
.portal-door__title { font: 400 clamp(36px, 4vw, 48px)/1.15 "DM Serif Display", Georgia, serif; letter-spacing: -.035em; }
.portal-door__arrow { border: 1px solid #b6c3ce55; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; font-size: 20px; transition: background .4s, color .4s, transform .6s var(--ease); }
.portal-door__summary { color: #b2bac2; font-size: 13px; line-height: 1.5; }
.portal-stage[data-active="work"] .portal-door--work,
.portal-stage[data-active="life"] .portal-door--life { transform: translateY(-5px) scale(1.028); }
.portal-stage[data-active="work"] .portal-door--life,
.portal-stage[data-active="life"] .portal-door--work { transform: translateY(4px) scale(.975); }
.portal-stage[data-active="work"] .portal-door--life .portal-door__portrait::after,
.portal-stage[data-active="life"] .portal-door--work .portal-door__portrait::after { opacity: .34; }
.portal-door:is(:hover, :focus-visible) .portal-door__portrait { border-color: var(--accent); box-shadow: 0 22px 70px #0008, 0 0 32px color-mix(in srgb, var(--accent) 12%, transparent); }
.portal-door:is(:hover, :focus-visible) .portal-door__portrait::after { opacity: 0; }
.portal-door:is(:hover, :focus-visible) .portal-door__arrow { background: var(--accent); color: #101820; transform: translate(2px,-2px); }
.portal-door:focus-visible, .portal-motion:focus-visible { outline: 2px solid var(--accent, #cfe9ff); }
.portal-footer { min-height: 56px; gap: 16px; color: var(--muted); font-size: 12px; }
.portal-motion { display: inline-flex; gap: 9px; align-items: center; color: #c4cbd0; padding: 12px 0 12px 12px; min-height: 44px; cursor: pointer; background: none; border: 0; font-size: 12px; }
.portal-motion[hidden] { display: none; }
.portal-motion__icon { font-size: 16px; width: 16px; }
.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; top: 12px; left: 20px; z-index: 10; background: var(--paper); color: #080d12; padding: 12px 18px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
/* The sky appears first. Photos emerge intact, never blurred or reshaped. */
html:is([data-portal-entry="pending"], [data-portal-entry="gathering"]) .entrance-galaxy { opacity: 1; }
html:is([data-portal-entry="pending"], [data-portal-entry="gathering"]) :is(.portal-intro, .portal-door) {
  opacity: 0; pointer-events: none; translate: 0 18px; scale: .97;
  animation: portal-entry-safety 0s 8s forwards;
}
html[data-portal-entry="revealing"] .portal-door--work { transition-delay: 0s, .15s, .15s, .15s; }
html[data-portal-entry="revealing"] .portal-door--life { transition-delay: 0s, .32s, .32s, .32s; }
html[data-portal-entry="complete"] :is(.portal-intro, .portal-door) { opacity: 1; translate: none; scale: none; }
html[data-portal-entry="complete"] .portal-intro { transition: none; }
html[data-portal-entry="complete"] .portal-door { transition: transform .8s var(--ease); }
@keyframes portal-entry-safety { to { opacity: 1; translate: none; scale: none; pointer-events: auto; } }
@media (max-width: 620px) {
  .portal-header { min-height: 76px; padding-inline: 20px; gap: 10px; }
  .portal-identity { font-size: 13px; gap: 12px; }
  .portal-address { display: none; }
  .portal-entry-actions { gap: 0; }
  .portal-entry-skip { padding-inline: 12px; font-size: 11px; }
  .portal-entry-skip span { margin-left: 5px; }
  .portal-stage { padding: 20px 20px 30px; gap: 36px; }
  .portal-doors { width: 100%; gap: 20px; max-width: 460px; }
  .portal-door { width: 100%; }
  .portal-door__copy { padding-top: 14px; }
  .portal-door__meta { font-size: 12px; letter-spacing: 0; max-width: 145px; line-height: 1.6; }
  .portal-door__title { font-size: 38px; }
  .portal-door__arrow { width: 28px; height: 28px; font-size: 18px; }
  .portal-door__summary { font-size: 13px; max-width: 170px; }
  .portal-intro h1 { font-size: clamp(32px, 7.6vw, 46px); }
  .portal-footer { padding-inline: 20px; gap: 12px; }
}
@media (max-width: 350px) {
  .portal-stage { padding-inline: 16px; }
  .portal-doors { gap: 16px; }
  .portal-door__title { font-size: 33px; }
  .portal-footer > span { max-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .portal-stage .portal-door { transform: none !important; }
}
html[data-portal-motion="paused"] .portal-door { transform: none !important; transition: none; }
