@import url('design-tokens.css');
:root { color-scheme: light; font-family: var(--font-sans); color: var(--ink); background: var(--outer); font-synthesis: none; }
:root { --hero-height: clamp(590px,calc(100svh - 56px),1050px); --story-distance: min(65svh,480px); --ease-out: cubic-bezier(.22,1,.36,1); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; padding: 8px 0 32px; -webkit-font-smoothing: antialiased; font-weight: 400; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4, strong { font-weight: 500; }
[hidden] { display: none !important; }
::selection { background: var(--peach); color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.ui-icon { width: 19px; height: 19px; flex-shrink: 0; vertical-align: middle; }
.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: 100; top: 8px; left: 16px; background: var(--ink); color: var(--canvas); padding: 12px 20px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-shell { position: relative; margin: 0 var(--frame-gutter) 16px; }
.header-cue { position: absolute; top: 40px; left: 0; width: 1px; height: 1px; pointer-events: none; }
.site-header { position: fixed; top: 8px; left: calc(var(--frame-gutter) + 1px); width: calc(100% - var(--frame-gutter) * 2 - 2px); z-index: 20; color: var(--canvas); background: rgba(62,71,42,.28); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid transparent; border-bottom-color: rgba(243,240,228,.16); border-radius: var(--radius-frame) var(--radius-frame) 0 0; transition: background-color 300ms ease, border-color 300ms ease, border-radius 300ms ease; }
.site-header.scrolled { background: rgba(34,42,27,.88); border-color: rgba(243,240,228,.16); border-radius: 28px; }
.site-nav { min-height: 64px; padding: 0 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 36px; }
.logo { justify-self: start; font-size: 23px; font-weight: 500; letter-spacing: -.025em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 13px; line-height: 1.2; padding: 15px 0; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.btn { display: inline-flex; gap: 26px; align-items: center; justify-content: space-between; min-height: 44px; padding: 6px 6px 6px 20px; border: 1px solid var(--ink); border-radius: var(--radius-button); background: var(--ink); color: var(--canvas); font-size: 14px; line-height: 1; font-weight: 500; white-space: nowrap; }
.btn-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--canvas); color: var(--ink); transition: transform .2s ease; }
.btn { transition: background-color 180ms ease, border-color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .btn:hover .btn-icon { transform: translateX(4px); } }
.nav-contact { justify-self: end; margin-left: 2px; min-height: 36px; gap: 20px; padding: 4px 4px 4px 18px; font-size: 12px; }
.nav-contact .btn-icon { width: 28px; height: 28px; }
.menu-toggle { display: none; background: rgba(27,33,23,.4); border: 1px solid rgba(243,240,228,.35); width: 40px; height: 40px; border-radius: 50%; padding: 0; color: var(--canvas); align-items: center; justify-content: center; }
.hero-story { position: relative; }
.story-cue { position: absolute; top: calc(var(--hero-height) * .5 + var(--story-distance) * .5); width: 1px; height: 1px; pointer-events: none; }
.hero { position: relative; isolation: isolate; min-height: 590px; height: var(--hero-height); overflow: hidden; background: var(--forest); color: var(--canvas); border: 1px solid rgba(243,240,228,.16); border-radius: var(--radius-frame); }
.hero-art { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); object-fit: cover; object-position: center; z-index: -1; }
.hero-inner { display: flex; flex-direction: column; height: 100%; min-height: inherit; padding: 110px 18px 26px; }
.hero-meta { display: flex; justify-content: space-between; gap: 24px; margin-top: 0; padding: 20px 20px 0; font-size: 12px; line-height: 1.4; }
.hero-scroll { display: inline-flex; gap: 14px; align-items: center; }
.hero-scroll .ui-icon { transform: rotate(90deg); width: 16px; height: 16px; }
.hero-bottom { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,300px); gap: 7%; align-items: center; margin-block: auto; padding: 42px 0; }
.hero-statement { justify-self: center; width: min(100%,530px); padding: 28px; }
.hero-eyebrow { margin-bottom: 24px; font-size: 12px; letter-spacing: .025em; }
.hero-title-stack { display: grid; }
.hero-headline-stage, .hero-role-stage { grid-area: 1 / 1; align-self: center; }
.hero-statement h1 { font-size: clamp(44px,5vw,72px); font-weight: 400; letter-spacing: -.035em; line-height: 1.23; text-wrap: balance; overflow-wrap: anywhere; }
.hero-headline-line { display: block; overflow: hidden; }
.hero-headline-line > span { display: block; }
.hero-role-stage { display: none; font-size: clamp(40px,4.5vw,64px); font-weight: 400; line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
.actions { display: flex; align-items: center; gap: 26px; margin-top: 26px; }
.hero .primary { background: rgba(27,33,23,.86); border-color: rgba(243,240,228,.2); }
.hero-intro-card { width: 100%; padding: 30px 20px 20px; border-radius: 12px; background: rgba(58,67,34,.28); border: 1px solid rgba(243,240,228,.09); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.hero-card-stack { display: grid; }
.hero-card-stage-one, .hero-card-stage-two { grid-area: 1 / 1; align-self: center; }
.hero-card-stage-two { display: none; }
.hero-work-tags { margin-top: 16px; font-size: 12px; line-height: 1.8; }
.hero-secondary { display: flex; width: fit-content; align-items: center; gap: 14px; margin-top: 26px; font-size: 12px; }
.intro-link-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(243,240,228,.4); }
.hero-secondary:hover .intro-link-icon { background: rgba(243,240,228,.14); }
.hero-intro { font-size: 13px; line-height: 1.8; max-width: 100%; text-wrap: pretty; }
.section { scroll-margin-top: 0; margin: 0 var(--frame-gutter); overflow: hidden; }
.work-section { border-radius: 12px 12px 0 0; }
.contact-section { border-radius: 0 0 var(--radius-frame) var(--radius-frame); }
.section-inner { width: min(100% - var(--page-gutter) * 2, var(--content-width)); margin: 0 auto; padding: 80px 0; }
.section-heading { margin-bottom: 48px; }
.section-heading h2 { font-size: clamp(36px,4vw,60px); line-height: 1.05; letter-spacing: -.045em; }
.section-heading .sub { font-size: 15px; line-height: 1.7; margin-top: 18px; max-width: 650px; color: var(--muted); text-wrap: pretty; }
.work-section { background: var(--ink); color: var(--canvas); color-scheme: dark; }
.work-section > .section-inner > .section-heading .sub { color: rgba(243,240,228,.74); }
.featured-list { border-top: 1px solid rgba(243,240,228,.24); }
.featured-project { display: grid; grid-template-columns: 130px minmax(0,1.2fr) minmax(0,1fr); gap: 40px; padding: 48px 0; border-bottom: 1px solid rgba(243,240,228,.24); }
.project-number { font-family: var(--font-mono); font-size: 110px; font-weight: 500; letter-spacing: -.08em; line-height: 1; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 20px; font-size: 12px; line-height: 1.5; }
.project-status { opacity: .7; }
.project-identity h3 { font-size: clamp(34px,4vw,58px); letter-spacing: -.045em; line-height: 1.15; overflow-wrap: anywhere; }
.project-role { margin-top: 22px; font-size: 13px; line-height: 1.6; }
.project-stack { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; font-size: 12px; line-height: 1.6; color: rgba(243,240,228,.7); }
.project-stack span { border-bottom: 1px solid rgba(243,240,228,.22); padding-bottom: 3px; }
.project-description { display: flex; flex-direction: column; padding-top: 36px; }
.project-description > p { font-size: 17px; line-height: 1.75; text-wrap: pretty; }
.project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 32px; }
.project-open { background: var(--canvas); color: var(--ink); border-color: var(--canvas); }
.project-open .btn-icon { background: var(--ink); color: var(--canvas); }
.project-source { font-size: 13px; line-height: 1.7; text-decoration: underline; text-underline-offset: 5px; }
.project-media { grid-column: 2 / -1; background: var(--sand); border-radius: 10px; overflow: hidden; }
.project-cover { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.projects-footnote { margin-top: 28px; font-size: 13px; line-height: 1.8; color: rgba(243,240,228,.7); }
.projects-footnote a { text-decoration: underline; text-underline-offset: 4px; }
.more-projects { background: var(--daylight); color: var(--ink); color-scheme: light; }
.projects-group-title { font-size: 36px; letter-spacing: -.03em; margin-bottom: 32px; }
.practice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.practice-project { display: grid; grid-template-columns: 60px minmax(0,1fr); gap: 20px; padding: 30px; border-radius: 10px; background: var(--canvas); }
.practice-project .project-number { font-size: 44px; }
.practice-project .project-meta { margin-bottom: 12px; }
.practice-project h4 { font-size: 30px; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.practice-project .project-role { margin-top: 16px; }
.practice-project .project-stack { color: var(--muted); margin-top: 14px; }
.practice-project .project-stack span { border-color: var(--border); }
.practice-project .project-description { grid-column: 2; padding-top: 0; }
.practice-project .project-description > p { font-size: 15px; line-height: 1.8; }
.practice-project .project-actions { margin-top: 24px; }
.practice-project .project-open { color: var(--canvas); background: var(--ink); border-color: var(--ink); }
.practice-project .project-open .btn-icon { color: var(--ink); background: var(--canvas); }
.practice-project .project-media { grid-column: 1 / -1; }
.about-section { background: var(--peach); }
.about-grid { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: clamp(40px,7vw,110px); align-items: start; }
.avatar { width: 100%; max-width: 280px; aspect-ratio: 1; height: auto; object-fit: cover; display: block; border-radius: 10px; }
.avatar-card .name { font-size: 30px; letter-spacing: -.04em; margin-top: 20px; }
.avatar-card .role { margin-top: 6px; font-size: 14px; line-height: 1.6; }
.intro-card > p { font-size: 18px; line-height: 1.9; max-width: 760px; text-wrap: pretty; }
.intro-card > p + p { margin-top: 20px; }
.skill-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(27,33,23,.25); }
.skill-group h4 { font-size: 13px; margin-bottom: 12px; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.skill-pills span { font-size: 13px; line-height: 1.75; }
.journey-section { background: var(--sand); }
.t-item { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 40px; border-top: 1px solid var(--border); padding: 28px 0; }
.t-year { font-family: var(--font-mono); font-size: 14px; }
.t-item h3 { font-size: 28px; line-height: 1.3; margin-bottom: 12px; }
.t-item p { font-size: 16px; line-height: 1.8; }
.now-section { background: var(--daylight); }
.now-updated { display: inline-block; margin-left: 20px; font-size: 12px; }
.now-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 24px; }
.now-card { border-top: 1px solid var(--ink); padding-top: 24px; }
.now-status { font-size: 12px; margin-bottom: 12px; }
.now-card h3 { font-size: 28px; margin-bottom: 16px; }
.now-card p { font-size: 16px; line-height: 1.8; }
.now-card p + p { margin-top: 12px; }
.now-next { margin-top: 20px; }
.notes-section { background: var(--canvas); }
.notes-list { border-top: 1px solid var(--border); }
.note { display: grid; grid-template-columns: 50px minmax(0,1fr) 210px 26px; align-items: center; gap: 30px; padding: 32px 0; border-bottom: 1px solid var(--border); }
.note-heading, .note-arrow { transition: transform 180ms ease; }
@media (hover: hover) and (pointer: fine) { .note:hover .note-heading, .note:hover .note-arrow { transform: translateX(4px); } }
.note-number { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.note h3 { font-size: 26px; letter-spacing: -.025em; line-height: 1.45; }
.note-project { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; }
.note .meta { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.note-arrow .ui-icon { width: 26px; height: 26px; }
.contact-section { background: var(--ink); color: var(--canvas); color-scheme: dark; }
.contact-main { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 80px; }
.contact-main h2 { font-size: clamp(52px,7vw,100px); line-height: 1.1; letter-spacing: -.06em; }
.contact-intro { font-size: 17px; line-height: 1.8; max-width: 500px; }
.socials { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; align-items: center; }
.email-link { display: inline-flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(243,240,228,.6); padding-bottom: 8px; font-size: clamp(17px,2vw,24px); overflow-wrap: anywhere; max-width: 100%; }
.email-link .ui-icon { width: 22px; height: 22px; }
.social-link { font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.cooperation { margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(243,240,228,.25); }
.cooperation h3 { font-size: 28px; margin-bottom: 24px; }
.cooperation-items { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 40px; }
.cooperation h4 { font-size: 18px; margin-bottom: 10px; }
.cooperation p { font-size: 15px; line-height: 1.8; color: rgba(243,240,228,.78); }
.footer-bottom { border-top: 1px solid rgba(243,240,228,.25); margin-top: 80px; padding-top: 26px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; font-size: 12px; }
.copyright, .editor-entry { color: rgba(243,240,228,.7); }
.back-top { display: inline-flex; gap: 12px; align-items: center; font-size: 17px; }
.editor-entry { text-decoration: underline; text-underline-offset: 4px; }
body.project-dialog-open { overflow: hidden; }
.project-dialog { margin: auto; width: min(780px,calc(100vw - 32px)); max-height: 88vh; max-height: 88dvh; padding: 0; overflow-y: auto; overscroll-behavior: contain; color: var(--ink); background: var(--canvas); border: 1px solid var(--border); border-radius: 10px; color-scheme: light; }
.project-dialog::backdrop { background: rgba(27,33,23,.55); }
.case-content { padding: 32px; }
.case-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -32px -32px 0; padding: 20px 32px; background: var(--canvas); border-bottom: 1px solid var(--border); }
.case-title { font-size: 25px; line-height: 1.25; letter-spacing: -.03em; overflow-wrap: anywhere; }
.case-close { display: grid; place-items: center; color: var(--ink); background: var(--sand); border: 1px solid var(--border); border-radius: 50%; width: 40px; height: 40px; flex-shrink: 0; }
.case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.case-role { color: var(--ink); }
.case-section { margin-top: 30px; }
.case-section h3 { font-size: 20px; letter-spacing: -.025em; margin-bottom: 12px; }
.case-section p, .case-section li { font-size: 16px; line-height: 1.85; }
.case-section p { white-space: pre-line; }
.case-section ul { padding-left: 21px; margin: 0; }
.case-section li + li { margin-top: 8px; }
.case-stack { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.case-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.case-links a { background: var(--ink); color: var(--canvas); border-radius: 20px; font-size: 14px; padding: 12px 22px; }
.case-gallery { display: grid; gap: 24px; margin-top: 30px; }
.case-gallery img { display: block; max-width: 100%; height: auto; border-radius: 10px; }
.case-gallery figcaption { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--muted); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #647052; border: 2px solid var(--outer); border-radius: 8px; }
@media (max-width: 1050px) {
  .featured-project { grid-template-columns: 80px minmax(0,1fr) minmax(0,1fr); gap: 28px; }
  .project-number { font-size: 72px; }
  .about-grid { grid-template-columns: 240px minmax(0,1fr); gap: 40px; }
  .skill-groups { grid-template-columns: 1fr; gap: 22px; }
  .contact-main { gap: 40px; }
  .note { grid-template-columns: 35px minmax(0,1fr) 170px 22px; gap: 20px; }
}
@media (max-width: 700px) {
  :root { --frame-gutter: 12px; --radius-frame: 26px; --page-gutter: 24px; }
  html { scroll-padding-top: 88px; }
  body { padding-top: 12px; padding-bottom: 12px; }
  .site-shell { margin-bottom: 20px; }
  .site-header { top: 12px; }
  .site-header.scrolled { border-radius: 24px; }
  .site-nav { display: flex; min-height: 64px; gap: 12px; padding: 0 14px; flex-wrap: wrap; }
  .logo { font-size: 20px; }
  .nav-contact { margin-left: auto; gap: 12px; padding-left: 14px; font-size: 12px; }
  .nav-contact .btn-icon { width: 30px; height: 30px; }
  .js .menu-toggle { display: inline-flex; }
  .nav-links { width: 100%; order: 3; gap: 24px; margin: 0; }
  .js .nav-links { display: none; position: absolute; top: 72px; left: 12px; right: 12px; width: auto; padding: 12px 22px; color: var(--canvas); background: rgba(34,42,27,.98); border: 1px solid rgba(243,240,228,.3); border-radius: 16px; }
  .js .menu-open .nav-links, .js .menu-closing .nav-links { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .motion-enabled .menu-open .nav-links { animation: menu-enter 200ms var(--ease-out) both; }
  .motion-enabled .menu-closing .nav-links { animation: menu-leave 140ms ease-in both; pointer-events: none; }
  .nav-links a { padding: 14px 0; }
  .hero { height: auto; min-height: min(820px,calc(100svh - 40px)); max-height: none; }
  .hero-art { object-position: 54% center; }
  .hero-inner { min-height: inherit; padding: 116px 22px 26px; }
  .hero-meta { margin-top: 48px; padding: 0; font-size: 10px; gap: 12px; }
  .hero-meta > span { max-width: 60%; }
  .hero-bottom { grid-template-columns: minmax(0,1fr); gap: 56px; margin-block: auto; padding: 20px 0 0; }
  .hero-statement { justify-self: start; width: 100%; padding: 22px; margin: 0; }
  .hero-eyebrow { font-size: 11px; margin-bottom: 20px; }
  .hero-statement h1 { font-size: clamp(34px,10.5vw,52px); }
  .hero-intro-card { padding: 24px 20px 20px; }
  .hero-intro { font-size: 14px; line-height: 1.8; }
  .hero-secondary { margin-top: 20px; }
  .intro-link-icon { width: 40px; height: 40px; }
  .actions { margin-top: 20px; gap: 20px; }
  .section-inner { padding: 56px 0; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2 { font-size: 38px; }
  .section-heading .sub { font-size: 14px; margin-top: 14px; }
  .featured-project { grid-template-columns: 48px minmax(0,1fr); gap: 20px; padding: 30px 0; }
  .project-number { font-size: 44px; }
  .project-meta { margin-bottom: 12px; font-size: 12px; gap: 5px 12px; }
  .project-identity h3 { font-size: 33px; }
  .project-role { margin-top: 14px; }
  .project-stack { margin-top: 16px; gap: 8px 13px; }
  .project-description { grid-column: 2; padding-top: 0; }
  .project-description > p { font-size: 15px; }
  .project-actions { margin-top: 24px; gap: 14px 20px; }
  .project-media { grid-column: 1 / -1; }
  .projects-group-title { font-size: 30px; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-project { padding: 24px; grid-template-columns: 36px minmax(0,1fr); gap: 16px; }
  .practice-project .project-number { font-size: 30px; }
  .practice-project h4 { font-size: 27px; }
  .practice-project .project-actions { gap: 12px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .avatar-card { display: grid; grid-template-columns: 112px minmax(0,1fr); column-gap: 20px; align-items: center; }
  .avatar { width: 112px; grid-row: 1 / 3; }
  .avatar-card .name { margin-top: 0; align-self: end; font-size: 28px; }
  .avatar-card .role { align-self: start; font-size: 13px; }
  .intro-card > p { font-size: 16px; line-height: 1.9; }
  .skill-groups { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .skill-group h4 { margin-bottom: 8px; }
  .t-item { grid-template-columns: 1fr; gap: 12px; }
  .t-item h3 { font-size: 25px; }
  .note { grid-template-columns: 26px minmax(0,1fr) 20px; gap: 14px; padding: 25px 0; }
  .note h3 { font-size: 21px; }
  .note .meta { grid-column: 2; grid-row: 2; flex-direction: row; flex-wrap: wrap; gap: 6px 12px; }
  .note-arrow { grid-column: 3; grid-row: 1; }
  .note-arrow .ui-icon { width: 20px; height: 20px; }
  .contact-main { grid-template-columns: 1fr; gap: 28px; }
  .contact-main h2 { font-size: 58px; }
  .contact-intro { font-size: 15px; }
  .socials { margin-top: 22px; gap: 20px; }
  .email-link { font-size: 17px; gap: 8px; }
  .footer-bottom { margin-top: 50px; gap: 18px; padding-top: 24px; align-items: flex-start; }
  .copyright { width: 100%; }
  .case-content { padding: 24px; }
  .case-header { margin: -24px -24px 0; padding: 16px 24px; }
  .case-title { font-size: 22px; }
  .case-meta { margin-top: 20px; }
  .case-section h3 { font-size: 18px; }
  .case-section p, .case-section li { font-size: 15px; }
}
@media (max-height: 500px) and (min-width: 701px) {
  .hero { min-height: 720px; }
  .project-dialog { max-height: 92dvh; }
  .case-header { padding-top: 12px; padding-bottom: 12px; }
  .case-title { font-size: 20px; }
  .case-content { padding-top: 24px; }
  .case-meta { margin-top: 18px; }
}
@keyframes headline-enter { from { opacity: 0; transform: translateY(105%); } to { opacity: 1; transform: translateY(0); } }
@keyframes soft-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes menu-enter { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes menu-leave { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-4px); } }
.motion-enabled .hero-headline-line > span { animation: headline-enter 720ms var(--ease-out) both; animation-delay: calc(70ms + var(--line) * 90ms); }
.motion-enabled .hero-eyebrow { animation: soft-enter 600ms var(--ease-out) 30ms both; }
.motion-enabled .hero-intro-card { animation: soft-enter 700ms var(--ease-out) 220ms both; }
.motion-enabled .hero .actions { animation: soft-enter 640ms var(--ease-out) 180ms both; }

/* The image supplies the atmosphere; native view timelines only move existing content. */
@keyframes forest-scroll { from { transform: translateY(0) scale(1); } to { transform: translateY(-16px) scale(1.045); } }
@supports (animation-timeline: view()) and (animation-range: contain 0% contain 100%) {
  .story-motion .hero-story { height: calc(var(--hero-height) + var(--story-distance)); view-timeline-name: --forest-story; view-timeline-axis: block; view-timeline-inset: 8px calc(100svh - var(--hero-height) - 8px); }
  .story-motion .hero { position: sticky; top: 8px; }
  .story-motion .hero-role-stage, .story-motion .hero-card-stage-two { display: block; }
  .story-motion .hero-art { animation: forest-scroll 1s linear both; animation-timeline: --forest-story; animation-range: contain 0% contain 100%; }
  .story-motion .hero-headline-stage, .story-motion .hero-card-stage-one, .story-motion .hero-role-stage, .story-motion .hero-card-stage-two { transition: opacity 440ms var(--ease-out), transform 440ms var(--ease-out); }
  .story-motion .hero-role-stage, .story-motion .hero-card-stage-two { opacity: 0; transform: translateY(14px); }
  .story-motion .story-second .hero-role-stage, .story-motion .story-second .hero-card-stage-two { opacity: 1; transform: translateY(0); }
  .story-motion .story-second .hero-headline-stage, .story-motion .story-second .hero-card-stage-one { opacity: 0; transform: translateY(-12px); }
}
@media (prefers-reduced-transparency: reduce) { .site-header { background: #323a1d; backdrop-filter: none; -webkit-backdrop-filter: none; } .hero-intro-card { background: rgba(34,42,27,.92); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
.case-facts { display: grid; grid-template-columns: minmax(85px,130px) minmax(0,1fr); margin: 0; }
.case-facts dt, .case-facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.case-facts dt { padding-right: 16px; color: var(--muted); }
