/* Homepage uses the identity tokens and typography shared with the about page. */
.home-welcome { position: fixed; inset: 0; width: min(900px, 88vw, 88svh); max-width: none; max-height: 90svh; margin: auto; padding: 0; border: 0; overflow: auto; background: var(--green); color: #fff; box-shadow: 0 24px 80px #0003; }
.home-welcome:not([open]) { display: none; }
.home-welcome::backdrop { background: #08130f99; }
.home-welcome[open], .home-welcome[open]::backdrop { animation: welcome-in .7s ease both; }
.home-welcome.is-leaving, .home-welcome.is-leaving::backdrop { animation: welcome-out .4s ease both; }
@keyframes welcome-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes welcome-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .home-welcome[open], .home-welcome[open]::backdrop { animation: none; }
}
.home-welcome__card { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 1; }
.home-welcome__copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: clamp(20px, 3vw, 44px); padding: 12% 10%; }
.home-welcome__eyebrow { font-size: clamp(10px, 1vw, 14px); letter-spacing: .24em; opacity: .7; }
.home-page .home-welcome h2 { font-size: clamp(24px, 3.2vw, 44px); line-height: 1.7; font-weight: 400; letter-spacing: .12em; }
.home-welcome__message { font-size: clamp(11px, 1.1vw, 15px); line-height: 2.2; letter-spacing: .05em; }
.home-welcome__logo { width: 100%; max-width: 255px; height: auto; filter: brightness(0) invert(1); margin-top: 10%; }
.home-welcome__photo { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.home-welcome__close { position: absolute; top: 20px; right: 20px; width: 52px; height: 52px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #505651a6; color: #fff; cursor: pointer; transition: background .25s; }
.home-welcome__close:hover { background: var(--green); }
.home-welcome__close:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.home-welcome__close span::before, .home-welcome__close span::after { content: ''; position: absolute; width: 32px; height: 1px; left: 10px; top: 25px; background: currentColor; transform: rotate(45deg); }
.home-welcome__close span::after { transform: rotate(-45deg); }
@media (max-width: 760px) {
  .home-welcome { width: min(90vw, 520px); }
  .home-welcome__card { aspect-ratio: 4 / 5; }
  .home-welcome__copy { padding: 32px 16px; gap: 22px; }
  .home-page .home-welcome h2 { font-size: clamp(20px, 5.8vw, 32px); }
  .home-welcome__message { font-size: 11px; }
  .home-welcome__close { width: 44px; height: 44px; top: 12px; right: 12px; }
  .home-welcome__close span::before, .home-welcome__close span::after { width: 26px; left: 9px; top: 21px; }
}
.home-intro { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: #fff; color: var(--green); opacity: 1; transition: opacity .8s ease; }
.home-intro:not([open]) { display: none; }
.home-intro::backdrop { background: #fff; opacity: 1; transition: opacity .8s ease; }
.home-intro.is-leaving, .home-intro.is-leaving::backdrop { opacity: 0; }
.home-intro__skip { position: absolute; right: max(3%, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 2; min-height: 44px; padding: 10px 24px; border: 0; background: transparent; color: var(--green); font: inherit; font-size: 14px; letter-spacing: .12em; cursor: pointer; transition: opacity .2s; }
.home-intro__skip:hover { opacity: .7; }
.home-intro__skip:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
@media(max-width:760px) { .home-intro__skip { right: max(5%, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); } }
@media(prefers-reduced-motion:reduce) { .home-intro__skip { transition: none; } }
.home-intro__background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; z-index: 0; }
.home-intro__scene { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.home-intro__background, .home-intro__scene { transition: opacity .9s ease; }
.home-intro.is-whitening .home-intro__background, .home-intro.is-whitening .home-intro__scene { opacity: 0; }
.home-intro__phrases { position: absolute; top: 50%; left: 50%; display: grid; width: max-content; max-width: calc(100% - 40px); transform: translate(-50%, -50%); }
.home-intro__phrase { grid-area: 1 / 1; margin: 0 -.3em 0 0; font-family: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif; font-size: clamp(22px, 1.57vw, 30px); font-weight: 500; line-height: 1.8; letter-spacing: .3em; color: #47574d; white-space: nowrap; opacity: 0; }
.home-intro__line { grid-area: 2 / 1; height: 1px; width: 100%; margin-top: 26px; background: rgba(47,93,80,.22); opacity: 0; }
.home-intro__line span { display: block; width: 100%; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; }
.home-intro__logo { position: absolute; width: clamp(160px, 14vw, 235px); height: auto; color: var(--green); overflow: visible; }
.home-intro__symbol, .home-intro__wordmark { opacity: 0; }
.home-intro__symbol { transform-box: view-box; transform-origin: 50% 50%; }
.home-intro__diagonal { stroke-dasharray: 1; stroke-dashoffset: 1; }
.home-intro.is-running .home-intro__phrase--first { animation: intro-phrase 2.1s .25s both; }
.home-intro.is-running .home-intro__phrase--second { animation: intro-phrase 2.1s 2.4s both; }
.home-intro.is-running .home-intro__line { animation: intro-rule 4.3s .25s both; }
.home-intro.is-running .home-intro__line span { animation: intro-progress 4.1s .25s linear both; }
.home-intro.is-running .home-intro__symbol { animation: intro-symbol 1.85s 4.65s cubic-bezier(.25,.55,.3,1) both; }
.home-intro.is-running .home-intro__diagonal--upper { animation: intro-diagonal 1.1s 5.2s cubic-bezier(.3,.4,.3,1) both; }
.home-intro.is-running .home-intro__diagonal--lower { animation: intro-diagonal .85s 5.05s ease-out both; }
.home-intro.is-running .home-intro__wordmark { animation: intro-wordmark 1.35s 5.75s ease both; }
.home-intro.is-running.is-paused * { animation-play-state: paused !important; }
.home-intro.is-static .home-intro__phrase--first, .home-intro.is-static .home-intro__line { opacity: 1; }
.home-intro-pending .home-hero__line { animation-play-state: paused; }
.home-intro-pending .home-hero__content { visibility: hidden; }
@keyframes intro-phrase { 0% { opacity: 0; } 23%, 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes intro-rule { 0% { opacity: 0; } 12%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes intro-progress { to { transform: scaleX(1); } }
@keyframes intro-symbol {
  0% { opacity: 0; transform: translateY(125px); filter: blur(7px); }
  28% { opacity: .3; filter: blur(5px); }
  62% { opacity: .85; filter: blur(1.8px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes intro-diagonal { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes intro-wordmark { from { opacity: 0; transform: translateY(12px); filter: blur(2px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@media (max-width: 760px) {
  .home-intro__phrase { font-size: clamp(16px, 4.1vw, 22px); letter-spacing: .18em; margin-right: -.18em; }
  .home-intro__line { margin-top: 20px; }
}
.home-page { background: var(--ivory); color: var(--green); }
.home-page main { overflow: clip; }
.home-page h2 { margin: 0; font-size: clamp(28px, 3vw, 46px); font-weight: 300; line-height: 1.7; letter-spacing: .09em; }

.home-page .site-header { position: fixed; }
.home-page .site-header .brand { opacity: 1; visibility: visible; }
.home-page .brand img { transition: filter .35s; }
.home-page .site-header.on-light .brand img { filter: brightness(0); }
.home-page .site-header.on-light a:focus-visible { outline-color: var(--green); }
.home-page .site-header .menu-toggle { width: 44px; height: 44px; background: rgba(255,255,255,.04); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.home-page .site-header.on-light .menu-toggle { background: rgba(255,255,255,.18); }
.home-page .site-header .menu-toggle:hover { background: rgba(255,255,255,.26); }
.home-skip { position: fixed; top: 16px; left: 16px; padding: 14px 20px; color: var(--green); background: var(--ivory); z-index: 100; transform: translateY(-150%); }
.home-skip:focus { transform: none; }
.home-kicker { font-size: 10px; font-weight: 400; line-height: 1.8; letter-spacing: .17em; }
.home-section-label { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; font-size: 11px; font-weight: 400; line-height: 1.8; letter-spacing: .12em; }
.home-section-label > span:last-child { font-size: 10px; letter-spacing: .15em; }
.home-body { font-size: 14px; font-weight: 300; line-height: 2.2; letter-spacing: .055em; }
.home-body p + p { margin-top: 22px; }
.home-link { display: flex; align-items: center; justify-content: space-between; gap: 40px; width: min(100%, 280px); padding: 17px 0; border-bottom: 1px solid currentColor; font-size: 13px; letter-spacing: .12em; }
.home-link small { display: block; margin-top: 7px; font-size: 9px; letter-spacing: .13em; opacity: .75; }
.home-link__arrow { font-size: 24px; font-weight: 300; transition: transform .3s; }
.home-link:hover .home-link__arrow { transform: translate(4px, -4px); }

.home-hero { position: relative; min-height: 680px; height: 100svh; max-height: 1300px; color: var(--ivory); background: var(--hero-dark); isolation: isolate; }
.home-hero__image, .home-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -3; }
.home-hero__video { z-index: -2; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.home-hero.is-video-ready .home-hero__video { opacity: 1; }
.home-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,35,29,.38), rgba(20,35,29,.06) 72%), linear-gradient(0deg, rgba(20,35,29,.25), transparent 40%, rgba(20,35,29,.14)); }
.home-hero__content { position: absolute; left: var(--page-edge); right: var(--page-edge); top: 52%; transform: translateY(-50%); }
.home-page .home-hero h1 { padding: 0; font-size: clamp(27px, 1.8vw, 42px); font-weight: 400; line-height: 1.85; letter-spacing: .2em; color: #fff; text-shadow: 0 2px 18px rgba(20,35,29,.35); }
.home-hero__line { display: block; width: fit-content; }
.home-hero__line + .home-hero__line { margin-left: 0; }
.home-hero__bottom { position: absolute; left: var(--page-edge); right: var(--page-edge); bottom: 35px; display: flex; justify-content: space-between; align-items: center; font-size: 10px; letter-spacing: .12em; }
.home-hero__bottom a { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.home-hero__bottom a span[lang] { font-size: 9px; letter-spacing: .15em; }
.home-hero__bottom a span:last-child { margin-left: 20px; font-size: 20px; }
.home-hero a:focus-visible { outline-color: var(--ivory); }

/* Photographic chapters. Without motion enhancement they remain normal sections. */
.home-story { --story-frame-x: clamp(12px, 1.4vw, 36px); --story-frame-y: clamp(10px, .7vw, 18px); scroll-margin-top: 0; position: relative; padding: var(--story-frame-y) var(--story-frame-x); color: #fff; background: #f7f5f1; }
.home-story__stage { position: relative; overflow: hidden; background: var(--hero-dark); }
.home-story__scene { position: relative; min-height: 680px; height: 100svh; }
.home-story__backdrop { position: absolute; inset: 0; z-index: 0; }
.home-story__background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.home-story__backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,35,29,.39), rgba(20,35,29,.12) 49%, rgba(20,35,29,.43)), rgba(20,35,29,.12); z-index: 1; pointer-events: none; }
.home-story__composition { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr .85fr 1fr; align-items: center; gap: 7.3%; width: 72%; height: 100%; margin: auto; }
.home-page .home-story__title { margin: 0; font-size: clamp(19px, 1.65vw, 32px); font-weight: 300; line-height: 1.85; letter-spacing: .09em; white-space: nowrap; text-shadow: 0 2px 18px rgba(20,35,29,.3); }
.home-story__detail { width: 100%; aspect-ratio: 2 / 3; max-height: 58svh; overflow: hidden; margin: 0; }
.home-story__detail img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-story__copy { font-size: clamp(12px, .85vw, 16px); font-weight: 400; line-height: 2.1; letter-spacing: .07em; text-shadow: 0 2px 14px rgba(20,35,29,.4); }
.home-story__eyebrow { display: block; margin-bottom: 20px; font-size: 10px; letter-spacing: .18em; opacity: .85; }
.home-story__chapter { position: absolute; right: clamp(84px, 5vw, 120px); bottom: 18px; width: max-content; z-index: 3; display: flex; align-items: center; gap: clamp(10px, 1vw, 20px); color: #fff; font-family: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif; font-size: clamp(44px, 4vw, 84px); font-weight: 400; line-height: 1.15; white-space: nowrap; text-shadow: 0 2px 18px #0004; pointer-events: none; }
.home-story__chapter small { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(8px, .6vw, 11px); line-height: 1.4; letter-spacing: .08em; }
.home-story a:focus-visible, .home-story button:focus-visible { outline: 1px solid #fff; outline-offset: 5px; }
.home-story.is-enhanced { height: 360svh; }
.is-enhanced .home-story__stage { position: sticky; top: 0; height: 100svh; min-height: 0; overflow: hidden; }
.is-enhanced .home-story__scene { position: absolute; inset: 0; height: 100%; min-height: 0; }
.is-enhanced .home-story__backdrop,
.is-enhanced .home-story__detail { -webkit-mask-image: linear-gradient(to bottom, transparent var(--story-mask-start, 100%), #000 var(--story-mask-end, 122%)); mask-image: linear-gradient(to bottom, transparent var(--story-mask-start, 100%), #000 var(--story-mask-end, 122%)); }
.is-enhanced .home-story__scene:first-child .home-story__backdrop,
.is-enhanced .home-story__scene:first-child .home-story__detail { -webkit-mask-image: none; mask-image: none; }
.is-enhanced .home-story__background,
.is-enhanced .home-story__detail img { filter: blur(var(--story-swap-blur, 0px)); transform: scale(1.02); }
.is-enhanced .home-story__composition { visibility: visible; transition: none; pointer-events: none; }
.is-enhanced .home-story__title,
.is-enhanced .home-story__copy,
.is-enhanced .home-story__chapter { visibility: hidden; }
.is-enhanced .home-story__scene.is-active .home-story__title,
.is-enhanced .home-story__scene.is-active .home-story__copy,
.is-enhanced .home-story__scene.is-active .home-story__chapter { visibility: visible; }
@media (max-width: 1100px) and (min-width: 761px) {
  .home-story__composition { width: 84%; gap: 5%; }
  .home-page .home-story__title { font-size: 18px; letter-spacing: .04em; }
  .home-story__copy { font-size: 12px; letter-spacing: .02em; }
}
@media (max-width: 760px) {
  .home-story__scene { min-height: 620px; }
  .home-story__composition { width: 82%; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; gap: 22px; padding: 88px 0 115px; text-align: center; }
  .home-page .home-story__title { font-size: clamp(19px, 5vw, 25px); line-height: 1.7; letter-spacing: .06em; }
  .home-story__detail { width: auto; height: 100%; max-height: 32svh; aspect-ratio: 2 / 3; }
  .home-story__copy { font-size: 12px; line-height: 1.9; }
  /* Equal text rows keep the overlaid photo frames perfectly aligned. */
  .is-enhanced .home-story__copy { min-height: 150px; }
  .home-story__eyebrow { font-size: 9px; margin-bottom: 8px; }
  .home-story__chapter { right: 68px; bottom: 20px; gap: 8px; font-size: clamp(22px, 6vw, 36px); }
  .home-story__chapter small { font-size: 7px; letter-spacing: .04em; }
}
@media (max-height: 700px) and (max-width: 760px) {
  .home-story__composition { padding-top: 65px; padding-bottom: 105px; gap: 12px; }
  .home-story__eyebrow { display: none; }
}

.home-belief { position: relative; scroll-margin-top: 0; background: #f7f5f1; color: var(--green); }
.home-belief__stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }
.home-belief__landscape { position: absolute; inset: 36% 0 0; z-index: -1; opacity: .15; mask-image: linear-gradient(transparent, #000 70%); -webkit-mask-image: linear-gradient(transparent, #000 70%); }
.home-belief__landscape img { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; filter: grayscale(1); }
.home-belief__watermark { position: absolute; top: 31%; left: 50%; margin: 0; transform: translateX(-50%); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(110px, 15vw, 270px); line-height: 1; letter-spacing: -.04em; color: rgba(47,93,80,.045); pointer-events: none; }
.home-belief__message { position: absolute; inset: 0; display: flex; flex-direction: row-reverse; justify-content: center; align-items: flex-start; padding-top: 24svh; }
.home-page .home-belief h2 { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: clamp(22px, 2vw, 40px); font-family: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif; font-size: clamp(22px, 3.25svh, 32px); font-weight: 500; line-height: 1.65; letter-spacing: .22em; }
.home-belief__line { display: block; writing-mode: vertical-rl; white-space: nowrap; }
.home-belief__line + .home-belief__line { margin-top: 7svh; }
.home-belief__english { writing-mode: vertical-rl; margin: 0 0 0 8px; font-family: Georgia, 'Times New Roman', serif; font-size: 14px; line-height: 1.6; letter-spacing: .06em; opacity: .7; }
.home-belief.is-animated { height: 230svh; }
.home-belief.is-animated .home-belief__stage { position: sticky; top: 0; min-height: 0; }
.home-belief.is-animated .home-belief__line { opacity: var(--belief-opacity, 0); filter: blur(var(--belief-blur, 14px)); transform: translateY(var(--belief-offset, 12px)); }
/* Keep one pinned photograph beneath both chapters, so the image never moves at the handoff. */
.home-journey__veil { display: none; }
.home-journey.is-enhanced { position: relative; height: var(--journey-height, 754svh); }
.home-journey.is-enhanced > .home-journey__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; background: #f7f5f1; }
.home-journey.is-enhanced .home-story,
.home-journey.is-enhanced .home-belief { position: absolute; inset: 0; height: 100%; }
.home-journey.is-enhanced .home-story { inset: var(--story-frame-y) var(--story-frame-x); height: auto; padding: 0; z-index: 0; background: transparent; }
.home-journey.is-enhanced .home-story__stage { background: transparent; }
.home-journey.is-enhanced .home-story__backdrop { opacity: var(--story-background-opacity, 0); filter: blur(var(--story-background-blur, 40px)); transform: scale(var(--story-background-scale, 1.05)); }
.home-journey.is-enhanced .home-story__detail { opacity: var(--story-photo-opacity, 0); filter: blur(var(--story-photo-blur, 8px)); transform: scale(var(--story-photo-scale, 1.05)); }
.home-journey.is-enhanced .home-story__title,
.home-journey.is-enhanced .home-story__copy { filter: blur(var(--story-text-blur, 8px)); transform: scale(var(--story-text-scale, 1.05)); }
.home-journey.is-enhanced .home-story__title { opacity: var(--story-text-opacity, 0); }
.home-journey.is-enhanced .home-story__copy { opacity: calc(var(--story-text-opacity, 0) * var(--story-scene-opacity, 1)); }
.home-journey.is-enhanced .home-story__chapter { opacity: calc(var(--story-text-opacity, 0) * var(--story-scene-opacity, 1) * var(--story-content-opacity, 1)); filter: blur(var(--story-text-blur, 8px)); }
.home-journey.is-enhanced .home-story__stage,
.home-journey.is-enhanced .home-belief__stage { position: relative; top: auto; height: 100%; min-height: 0; }
.home-journey.is-enhanced .home-story__composition { opacity: var(--story-content-opacity, 1); }
.home-journey.is-enhanced .home-story__scene.is-active .home-story__composition { transition: none; }
.home-journey.is-enhanced .home-journey__veil { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(#f7f5f1 30%, rgba(247,245,241,.86) 100%); opacity: var(--journey-wash, 0); }
.home-journey.is-enhanced .home-belief { z-index: 2; background: transparent; opacity: var(--belief-layer, 0); pointer-events: none; }
.home-journey.is-enhanced .home-belief__landscape { display: none; }
@media (max-width: 760px) {
  .home-belief__message { padding-top: 23svh; }
  .home-page .home-belief h2 { font-size: clamp(20px, 2.9svh, 26px); gap: 24px; letter-spacing: .18em; }
  .home-belief__line + .home-belief__line { margin-top: 6svh; }
  .home-belief__english { font-size: 11px; margin-left: 5px; }
  .home-belief__landscape { inset: 42% 0 0; }
  .home-belief__watermark { top: 36%; font-size: 34vw; }
}
@media (max-height: 560px) {
  .home-belief__message { padding-top: 18svh; }
  .home-page .home-belief h2 { font-size: 3.5svh; }
}

.home-projects { --project-card-width: clamp(250px, 18.5vw, 640px); --project-gap: clamp(20px, 1.85vw, 60px); padding: 140px 0 160px; background: #f7f5f1; color: var(--green); scroll-margin-top: 0; border-top: 1px solid #2f5d5012; }
.home-projects__heading { margin: 0 0 42px; text-align: center; }
.home-projects__heading .home-kicker { margin-bottom: 12px; font-size: 9px; }
.home-page .home-projects h2 { font-size: 28px; font-weight: 300; letter-spacing: .2em; }
.home-projects__viewport { width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
.home-projects__viewport::-webkit-scrollbar { display: none; }
.home-projects__viewport:focus-visible { outline: 1px solid var(--green); outline-offset: -1px; }
.home-projects__track { display: flex; width: max-content; }
.home-projects__group { display: flex; gap: var(--project-gap); flex-shrink: 0; margin: 0; padding: 0 var(--project-gap) 0 0; list-style: none; }
.home-projects__group li { flex: 0 0 var(--project-card-width); width: var(--project-card-width); }
.home-projects__card { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: #d7d8cf; }
.home-projects__card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.home-projects__card > span { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; padding: 45px 22px 20px; background: linear-gradient(transparent, #14231dbb); color: #fff; font-size: 12px; letter-spacing: .12em; opacity: 0; transition: opacity .3s; }
.home-projects__card b { font-size: 24px; font-weight: 300; }
.home-projects__card:hover img, .home-projects__card:focus-visible img { transform: scale(1.035); }
.home-projects__card:hover > span, .home-projects__card:focus-visible > span { opacity: 1; }
.home-projects__card:focus-visible { outline: 2px solid var(--ivory); outline-offset: -6px; }
.home-projects__bottom { display: flex; justify-content: center; align-items: center; margin: 38px 8% 0; }
.home-projects__more { display: flex; align-items: center; justify-content: center; min-width: 150px; min-height: 48px; border-bottom: 1px solid #2f5d5055; font-size: 13px; letter-spacing: .15em; }
@media (max-width: 760px) {
  .home-projects { --project-card-width: 70vw; --project-gap: 20px; padding: 88px 0 100px; }
  .home-projects__heading { margin: 0 0 28px; }
  .home-projects__heading .home-kicker { font-size: 8px; }
  .home-page .home-projects h2 { font-size: 24px; }
  .home-projects__bottom { margin: 24px 6% 0; flex-wrap: wrap; gap: 18px; }
  .home-projects__more { gap: 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-projects__card img, .home-projects__card > span { transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero__line { animation: home-focus 2.2s .65s cubic-bezier(.22,.61,.36,1) both; }
  .home-hero__line + .home-hero__line { animation-delay: 1s; }
  [data-home-reveal].home-will-reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.65,.3,1); }
  [data-home-reveal].home-will-reveal.is-visible { opacity: 1; transform: none; }
  @keyframes home-focus {
    0% { opacity: 0; filter: blur(14px); transform: translateY(5px); }
    28% { opacity: .65; filter: blur(7px); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0); }
  }
}
@media (max-width: 1000px) {
  .home-body { font-size: 13px; }
}
@media (max-width: 760px) {
  .home-page .site-header { position: fixed; }
  .home-hero { min-height: 560px; height: 100svh; max-height: none; }
  .home-hero::after { background: linear-gradient(90deg, rgba(20,35,29,.42), rgba(20,35,29,.13)), linear-gradient(0deg, rgba(20,35,29,.3), transparent 60%); }
  .home-hero__content { left: var(--page-edge); right: var(--page-edge); top: 49%; }
  .home-page .home-hero h1 { font-size: clamp(20px, 5.1vw, 30px); letter-spacing: .12em; line-height: 1.95; }
  .home-hero__line + .home-hero__line { margin-left: 0; }
  .home-hero__bottom { left: var(--page-edge); right: var(--page-edge); bottom: 24px; }
  .home-hero__bottom a { gap: 14px; font-size: 10px; }
  .home-hero__bottom a span[lang] { display: none; }
  .home-section-label { font-size: 10px; }
  .home-section-label > span:last-child { font-size: 8px; }
}

/* Later chapters resolve softly with a brief, responsive entrance. */
@media (prefers-reduced-motion: no-preference) {
  .home-section-effects [data-home-section-reveal] > :not(.site-footer__meta),
  .home-section-effects [data-home-section-reveal] > .site-footer__meta > * {
    opacity: 0;
    visibility: hidden;
    filter: blur(10px);
    transform: translateY(12px);
    transition: opacity .7s cubic-bezier(.25,.1,.25,1), filter .9s cubic-bezier(.25,.1,.25,1), transform .9s cubic-bezier(.25,.1,.25,1);
  }
  .home-section-effects [data-home-section-reveal].is-section-visible > :not(.site-footer__meta),
  .home-section-effects [data-home-section-reveal].is-section-visible > .site-footer__meta > * {
    opacity: 1;
    visibility: visible;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* Align the menu strokes with the top edge of the header logo. */
.home-page .menu-toggle, .home-page .menu-close {
 top: calc((100px - min(285px, 55vw) * 39 / 403 - 44px + 9px) / 2);
}
@media (max-width: 760px) {
 .home-page .menu-toggle, .home-page .menu-close {
  top: calc((84px - min(222px, 68vw) * 39 / 403 - 44px + 9px) / 2);
 }
}

