/* Local-only hero experiment. Original section styles remain in styles.css. */
.home-page {
  --space-bg: #050506;
  --space-text: #f8f8fa;
  --space-muted: #a3a3aa;
  --space-shell: 1040px;
}
.home-page .site-header {
  padding-inline: max(32px, calc((100vw - var(--space-shell)) / 2));
  height: 96px;
}
.home-page .brand { font-size: 24px; letter-spacing: -.7px; }
.home-page .nav-links { gap: 30px; font-size: 14px; font-weight: 500; }
.home-page.is-space-hero .site-header {
  color: var(--space-text);
  background: linear-gradient(#050506e6, #05050600);
  box-shadow: none;
}
.home-page.is-space-hero .nav-links { color: #c8c8ce; }
.home-page.is-space-hero .nav-links a:hover { color: #fff; }
.home-page.is-space-hero .menu-button { color: #fff; }
.home-page.is-space-hero .menu-button span { background: currentColor; }
.home-page.is-space-hero .page-dots { background: #ffffff06; border-color: #ffffff12; }
.home-page.is-space-hero .page-dots a { background: #ffffff30; }
.home-page.is-space-hero .page-dots a.active { background: #e0dfe8; }
.home-page .space-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 720px;
  height: 100svh;
  padding: 100px 32px 80px;
  overflow: hidden;
  color: var(--space-text);
  background: var(--space-bg);
}
.home-page .space-hero::before { content: none; }
.space-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.space-layout { width: 100%; max-width: var(--space-shell); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.space-copy { position: relative; z-index: 2; padding-bottom: 6px; }
.space-greeting { font-size: 23px; font-weight: 500; letter-spacing: -.6px; margin: 0 0 22px; }
.home-page .space-title { font-size: clamp(40px, 4.1vw, 56px); font-weight: 800; letter-spacing: -1.7px; line-height: 1.28; margin: 0; color: var(--space-text); }
.space-keywords { max-width: 408px; display: grid; grid-template-columns: repeat(3, max-content); column-gap: 34px; row-gap: 19px; border-top: 1px solid #ffffff36; padding-top: 26px; margin-top: 32px; color: var(--space-muted); font-size: 16px; line-height: 1.5; }
.space-keywords span { white-space: nowrap; }
.portrait-stage { --card-width: 350px; position: relative; width: 100%; height: 520px; perspective: 1200px; }
.portrait-rig { --tilt-x: 3deg; --tilt-y: -9deg; --tilt-z: 6deg; --glare-x: 72%; --glare-y: 20%; position: absolute; width: var(--card-width); aspect-ratio: 1086 / 1449; top: 50%; left: 50%; transform-style: preserve-3d; transform: translate(-50%, -50%) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotateZ(var(--tilt-z)); will-change: transform; }
.portrait-prism { position: absolute; inset: 0; border-radius: 26px; background: #9b989f; transform-style: preserve-3d; box-shadow: 8px 12px 0 -5px #17161f, 10px 14px 0 -5px #5a566b, 0 38px 65px #000b; }
.portrait-photo { position: absolute; inset: 2px; border-radius: 24px; overflow: hidden; transform: translateZ(4px); background: #222; }
.portrait-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portrait-glare { position: absolute; inset: 2px; border-radius: 24px; transform: translateZ(5px); pointer-events: none; background: radial-gradient(ellipse at var(--glare-x) var(--glare-y), #ffffff38, #fff0 52%), linear-gradient(125deg, #fff1, #fff0 38%, #fff0 65%, #fff1); mix-blend-mode: screen; opacity: .65; }
.portrait-edge { position: absolute; inset: 0; border: 2px solid transparent; border-radius: 26px; transform: translateZ(6px); background: conic-gradient(from 25deg, #a6d7ed, #cac4ef 15%, #fff0 27%, #c6d2ee 40%, #b4a0ff 53%, #b0e1fa 68%, #c9b9e8 80%, #9fa9df) border-box; mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0); mask-composite: exclude; pointer-events: none; }
.portrait-orbit { position: absolute; left: 50%; top: 50%; width: 560px; height: 224px; overflow: visible; fill: none; stroke-width: 2.1; stroke-linecap: round; pointer-events: none; }
.orbit-back { stroke: #c2c4d1; transform: translate(-50%, -50%) rotate(-24deg); opacity: .65; }
.orbit-front { stroke: #dedff1; transform: translate(-50%, -50%) translateZ(7px) rotate(-24deg); filter: drop-shadow(0 0 3px #cebdf24d); }
.orbit-star { position: absolute; fill: #f7f6ff; filter: drop-shadow(0 0 6px #a0b9ff80); pointer-events: none; }
.star-one { width: 25px; height: 25px; left: -27px; top: 8px; transform: translateZ(35px); }
.star-two { width: 27px; height: 27px; right: -71px; top: 32%; transform: translateZ(45px); }
.portrait-reflection { position: absolute; width: 360px; height: 60px; top: calc(50% + 227px); left: 50%; transform: translateX(-50%) rotate(6deg); filter: blur(24px); background: linear-gradient(90deg, #967bf84d, #718df524 48%, #ab8fda42 68%, #718dff4a); opacity: .6; }
.space-footer { position: absolute; bottom: 45px; left: 50%; width: calc(100% - 64px); max-width: var(--space-shell); transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; }
.space-scroll { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: #d4d3da; text-decoration: none; }
.space-scroll svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s; }
.space-scroll:hover { color: #fff; }
.space-scroll:hover svg { transform: translateY(4px); }
.motion-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 8px; border: 1px solid #ffffff24; border-radius: 50%; background: #05050688; color: #bdbcc6; cursor: pointer; }
.motion-toggle:hover { color: white; border-color: #ffffff60; }
.motion-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.motion-toggle .play-symbol { display: none; }
.motion-toggle[aria-pressed="true"] .pause-symbol { display: none; }
.motion-toggle[aria-pressed="true"] .play-symbol { display: block; }
.home-page a:focus-visible, .home-page button:focus-visible { outline: 2px solid #9f8cff; outline-offset: 6px; }
@media (min-width: 1600px) {
  .home-page { --space-shell: 1240px; }
  .home-page .brand { font-size: 28px; }
  .home-page .nav-links { font-size: 17px; gap: 36px; }
  .space-layout { transform: translateY(-25px); }
  .space-greeting { font-size: 28px; }
  .space-keywords { font-size: 20px; max-width: 500px; column-gap: 40px; row-gap: 22px; margin-top: 38px; padding-top: 32px; }
  .portrait-stage { --card-width: 440px; height: 650px; }
  .home-page .space-title { font-size: 72px; }
  .portrait-orbit { width: 620px; height: 248px; }
  .portrait-reflection { top: calc(50% + 290px); }
  .space-footer { bottom: 100px; }
  .space-scroll { font-size: 16px; }
}
@media (max-width: 1100px) and (min-width: 921px) {
  .portrait-stage { --card-width: 310px; }
  .portrait-orbit { width: 470px; height: 188px; }
  .home-page .space-title { font-size: 44px; }
  .space-keywords { max-width: 350px; gap: 16px 24px; font-size: 15px; }
}
@media (max-width: 920px) {
  .home-page .site-header { height: 80px; padding-inline: 28px; }
  .home-page.is-space-hero.is-mobile-menu-open .nav-links { background: #111115f5; border: 1px solid #ffffff22; color: #ededf0; }
  .home-page.is-space-hero.is-mobile-menu-open .nav-links a { background: #ffffff0a; font-weight: 500; }
  .home-page .space-hero { min-height: 1030px; height: auto; padding: 130px 28px 105px; }
  .space-layout { max-width: 600px; grid-template-columns: 1fr; gap: 34px; }
  .space-copy { width: 100%; max-width: 480px; margin-inline: auto; }
  .home-page .space-title { font-size: 52px; }
  .space-greeting { font-size: 21px; margin-bottom: 18px; }
  .space-keywords { margin-top: 27px; padding-top: 22px; }
  .portrait-stage { --card-width: 300px; height: 450px; }
  .portrait-orbit { width: 490px; height: 196px; }
  .portrait-reflection { width: 300px; top: calc(50% + 194px); }
  .space-footer { bottom: 35px; width: calc(100% - 56px); }
  .home-page .page-dots { display: none; }
  .home-page .snap-container { scroll-snap-type: none; }
  .home-page .screen-copy { opacity: 1; transform: none; }
}
@media (max-width: 540px) {
  .home-page .site-header { padding-inline: 24px; height: 76px; }
  .home-page .brand { font-size: 22px; }
  .home-page .space-hero { min-height: 100svh; padding: 110px 26px 100px; }
  .home-page .menu-button { width: 32px; }
  .home-page .menu-button span { height: 2px; margin: 6px 0; }
  .home-page.is-mobile-menu-open .menu-button span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .home-page.is-mobile-menu-open .menu-button span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .space-layout { gap: 28px; }
  .space-greeting { font-size: 19px; }
  .home-page .space-title { font-size: clamp(32px, 8.9vw, 46px); letter-spacing: -1px; line-height: 1.32; }
  .space-keywords { font-size: 13px; column-gap: 25px; row-gap: 13px; margin-top: 23px; padding-top: 21px; max-width: 340px; }
  .portrait-stage { --card-width: 255px; height: 385px; }
  .portrait-orbit { width: 365px; height: 146px; }
  .portrait-prism, .portrait-edge { border-radius: 21px; }
  .portrait-photo, .portrait-glare { border-radius: 19px; }
  .portrait-reflection { width: 240px; top: calc(50% + 166px); }
  .star-two { width: 22px; height: 22px; right: -41px; }
  .star-one { width: 20px; height: 20px; left: -20px; }
  .space-footer { width: calc(100% - 48px); bottom: 26px; }
  .space-scroll { font-size: 11px; gap: 8px; }
  .motion-toggle { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .home-page .snap-container { scroll-behavior: auto; scroll-snap-type: none; }
  .portrait-rig { will-change: auto; }
  .motion-toggle { display: none; }
}
