:root {
  --cream: #f4eedf;
  --paper: #fbf8ef;
  --green: #183729;
  --green-2: #28513c;
  --soil: #a85632;
  --ink: #1d251f;
  --muted: #6d746b;
  --line: rgba(29, 37, 31, .22);
  --serif: "Noto Serif JP", "Yu Mincho", serif;
  --sans: "IBM Plex Sans JP", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); line-height: 1.9; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 99; padding: .6rem 1rem; background: white; }
.skip-link:focus { top: 1rem; }

.site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 clamp(1.25rem, 5vw, 5rem); background: var(--paper); border-bottom: 1px solid var(--line); animation: quiet-appear .55s ease-out both; }
.brand { display: flex; align-items: center; gap: .8rem; flex: 0 0 auto; text-decoration: none; font-family: var(--serif); font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
.brand img { width: 52px; height: 34px; object-fit: contain; }
nav { display: flex; gap: .18rem; padding: .26rem; background: #eee7d7; border: 1px solid rgba(29,37,31,.12); border-radius: 5px; box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 5px 14px rgba(24,55,41,.06); font-size: .72rem; letter-spacing: .06em; }
nav a { position: relative; display: inline-flex; align-items: baseline; gap: .36rem; padding: .52rem clamp(.55rem, 1.2vw, 1rem); background: rgba(251,248,239,.64); border: 1px solid rgba(29,37,31,.08); border-radius: 3px; box-shadow: inset 0 1px 0 rgba(255,255,255,.6); text-decoration: none; font-weight: 600; white-space: nowrap; transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s cubic-bezier(.2,.75,.2,1); }
nav a::before { content: attr(data-index); color: var(--soil); font-family: var(--serif); font-size: .52rem; font-weight: 700; letter-spacing: .04em; }
nav a:hover, nav a:focus-visible { color: var(--paper); background: var(--green); border-color: var(--green); box-shadow: 0 3px 8px rgba(24,55,41,.16); outline: none; }
nav a:hover::before, nav a:focus-visible::before { color: #e9bd92; }

.hero { position: relative; min-height: calc(100svh - 92px); overflow: hidden; display: flex; align-items: flex-end; color: white; }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 50% 54%; animation: hero-settle 1.15s cubic-bezier(.2,.75,.2,1) both; }
.hero-shade { background: linear-gradient(90deg, rgba(7, 26, 18, .79) 0%, rgba(8, 29, 19, .34) 52%, rgba(8, 29, 19, .05) 82%), linear-gradient(0deg, rgba(7, 21, 15, .44), transparent 45%); }
.hero-content { position: relative; z-index: 1; width: min(1200px, 100%); padding: clamp(3rem, 7vw, 7rem) clamp(1.25rem, 7vw, 7rem); }
@keyframes quiet-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes soft-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-settle { from { opacity: .76; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }
.hero-content { animation: soft-arrive .85s cubic-bezier(.2,.75,.2,1) .08s both; }
.eyebrow { margin: 0 0 1.2rem; color: var(--soil); font-weight: 600; font-size: .72rem; line-height: 1; letter-spacing: .24em; }
.eyebrow.light { color: #e9bd92; }
h1, h2, h3 { font-family: var(--serif); }
h1 { max-width: 900px; margin: 0; font-size: clamp(3rem, 6.8vw, 7.2rem); line-height: 1.16; letter-spacing: -.055em; text-shadow: 0 2px 22px rgba(0,0,0,.15); }
h1 em, .future h2 em { color: #f0c292; font-style: normal; }
.hero-intro { max-width: 590px; margin: 2rem 0 0; font-size: clamp(.92rem, 1.3vw, 1.08rem); line-height: 2; }
.hero-actions { display: flex; align-items: center; gap: 2rem; margin-top: 2.2rem; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: .75rem 1.6rem; border: 1px solid currentColor; text-decoration: none; font-weight: 600; font-size: .82rem; letter-spacing: .08em; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.button-light { background: var(--paper); color: var(--green); border-color: var(--paper); }
.button:hover, .button:focus-visible { box-shadow: 0 7px 18px rgba(0,0,0,.15); }
.hero-primary { min-width: 230px; justify-content: space-between; gap: 1.5rem; padding: .78rem .82rem .78rem 1.4rem; border-color: rgba(251,248,239,.9); box-shadow: 7px 7px 0 rgba(168,86,50,.88); font-family: var(--serif); font-size: .9rem; letter-spacing: .1em; }
.button-arrow { display: inline-grid; width: 36px; height: 36px; place-items: center; background: var(--green); color: var(--paper); font-family: var(--sans); font-size: 1rem; line-height: 1; transition: transform .2s cubic-bezier(.2,.75,.2,1), background-color .2s ease; }
.hero-primary:hover, .hero-primary:focus-visible { box-shadow: 10px 10px 0 rgba(168,86,50,.95); }
.hero-primary:hover .button-arrow, .hero-primary:focus-visible .button-arrow { transform: translate(2px,2px); background: var(--soil); }
.text-link { display: inline-flex; align-items: center; gap: .65rem; margin-top: 1.5rem; padding-bottom: .2rem; border-bottom: 1px solid currentColor; color: var(--soil); text-decoration: none; font-weight: 600; font-size: .84rem; }
.light-link { margin-top: 0; color: white; }
.hero-caption { position: absolute; z-index: 1; right: 2rem; bottom: 1.5rem; margin: 0; font-size: .62rem; letter-spacing: .2em; writing-mode: vertical-rl; animation: quiet-appear .65s ease-out .4s both; }

.brand, .text-link {
  transition: transform .2s cubic-bezier(.2,.75,.2,1);
}

.brand, nav a, .button, .text-link { touch-action: manipulation; }

@media (hover: hover) {
  .brand:hover, nav a:hover, .text-link:hover { transform: translateY(-2px); }
  .button:hover { transform: translateY(-2px); }
}

.brand:active, nav a:active, .button:active, .text-link:active { transform: translateY(1px) scale(.99); }

.section { position: relative; display: grid; grid-template-columns: minmax(260px, .82fr) minmax(320px, 1.18fr); gap: clamp(3rem, 9vw, 10rem); padding: clamp(6rem, 11vw, 10rem) clamp(1.25rem, 9vw, 9rem); }
.section-index { position: absolute; right: 4vw; top: 2rem; color: rgba(24,55,41,.09); font-family: var(--serif); font-size: clamp(6rem, 16vw, 15rem); line-height: 1; }
.section-heading { position: relative; z-index: 1; }
.section-heading h2, .works-head h2, .future h2, .contact h2 { margin: 0; font-size: clamp(2.4rem, 4.5vw, 5rem); line-height: 1.35; letter-spacing: -.04em; }
.prose { position: relative; z-index: 1; max-width: 650px; }
.prose p { margin: 0 0 1.4rem; }
.lead-prose > p:first-child { font-size: 1.15rem; font-weight: 600; }
.pull-quote { margin-top: 3.8rem !important; padding: 2rem 0 0 2rem; border-top: 1px solid var(--soil); border-left: 5px solid var(--soil); color: var(--green); font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2.2rem); font-weight: 700; line-height: 1.65; }

.origin { display: grid; grid-template-columns: 1.05fr .95fr; background: var(--green); color: var(--cream); }
.origin-photo { min-height: 760px; position: relative; overflow: hidden; }
.origin-photo img { width: 100%; height: 100%; object-fit: cover; }
.origin-photo-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,26,18,.7) 0%, rgba(7,26,18,.12) 55%, rgba(7,26,18,0) 78%); }
.origin-photo-copy { position: absolute; left: clamp(1.5rem, 5vw, 4rem); right: 1.5rem; bottom: clamp(2rem, 6vw, 5rem); color: white; }
.origin-photo-copy .eyebrow { margin-bottom: 1rem; }
.origin-photo-title { max-width: 620px; margin: 0; font-family: var(--serif); font-size: clamp(2.7rem, 5vw, 5.8rem); font-weight: 700; line-height: 1.22; letter-spacing: -.055em; text-shadow: 0 2px 22px rgba(0,0,0,.18); }
.origin-photo-title em { color: #f0c292; font-style: normal; }
.origin-copy { align-self: center; padding: clamp(4rem, 8vw, 8rem); }
.origin-copy h2 { margin: 0 0 2.5rem; font-size: clamp(2.2rem, 4vw, 4.3rem); line-height: 1.4; letter-spacing: -.04em; }
.origin-copy p:not(.eyebrow) { color: rgba(244,238,223,.84); }

.changes { background: var(--paper); }
.change-list { position: relative; z-index: 1; }
.change-list article { display: grid; grid-template-columns: 3rem 1fr; gap: 1.2rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.change-list article:last-child { border-bottom: 1px solid var(--line); }
.change-list article > span { color: var(--soil); font-family: var(--serif); font-size: .8rem; }
.change-list h3 { margin: -.45rem 0 .5rem; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.change-list p { margin: 0; color: #4f5a51; }

.works { padding: clamp(6rem, 11vw, 10rem) clamp(1.25rem, 7vw, 7rem); background: var(--green); color: var(--cream); }
.works-head { margin-bottom: 4rem; }
.featured-work { display: grid; grid-template-columns: 1.15fr .85fr; border-top: 1px solid rgba(244,238,223,.3); border-bottom: 1px solid rgba(244,238,223,.3); }
.featured-visual { min-height: 0; aspect-ratio: .925; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #214832; border-right: 1px solid rgba(244,238,223,.3); }
.work-slide { position: absolute; inset: 0 0 3.7rem; z-index: 0; display: block; overflow: hidden; background: #fbf8ef; opacity: 0; visibility: hidden; transition: opacity 1.15s ease, visibility 1.15s; }
.work-slide.is-active { z-index: 1; opacity: 1; visibility: visible; }
.work-slide-backdrop { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(24px) saturate(.7) brightness(1.1); opacity: .08; transform: scale(1.04); transition: opacity 1.15s ease; }
.work-slide.is-active .work-slide-backdrop { opacity: 0; }
.work-slide-picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.work-slide-art { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; object-fit: contain; filter: blur(9px); opacity: .55; transform: scale(1.025); transition: filter 1.15s ease, opacity 1.15s ease, transform 1.15s ease; }
.work-slide.is-active .work-slide-art { filter: blur(0); opacity: 1; transform: scale(1); }
.work-carousel-controls { position: absolute; inset: auto 0 0; z-index: 3; display: flex; align-items: center; justify-content: flex-end; gap: .45rem; min-height: 3.7rem; padding: .5rem 1rem; border-top: 1px solid rgba(244,238,223,.25); background: #173629; }
.work-carousel-controls[hidden] { display: none; }
.work-carousel-count { margin-right: auto; color: rgba(244,238,223,.85); font: 600 .7rem var(--sans); letter-spacing: .15em; }
.work-carousel-controls button { min-width: 2rem; min-height: 2rem; padding: .3rem .5rem; border: 1px solid rgba(244,238,223,.4); background: transparent; color: var(--cream); font: 600 .7rem var(--sans); cursor: pointer; }
.work-carousel-controls button:hover, .work-carousel-controls button:focus-visible { background: var(--cream); color: var(--green); }
.work-copy { align-self: center; padding: clamp(2.5rem, 6vw, 6rem); }
.work-no { margin: 0 0 1rem; color: #d4a276; font-size: .67rem; letter-spacing: .18em; }
.work-copy h3, .work-list h3 { margin: 0 0 1.2rem; font-size: clamp(1.65rem, 2.5vw, 2.6rem); line-height: 1.5; }
.work-copy p:not(.work-no), .work-list p:not(.work-no) { color: rgba(244,238,223,.77); }
.work-copy .work-estimate-note { margin: 1rem 0 1.5rem; color: rgba(244,238,223,.66); font-size: .72rem; line-height: 1.65; }
.work-copy .text-link { color: #e9bd92; }
.plain-tags { display: flex; flex-wrap: wrap; gap: 0; padding: 0; margin: 2rem 0 0; list-style: none; border-top: 1px solid rgba(244,238,223,.25); }
.plain-tags li { padding: .65rem 1rem; border-right: 1px solid rgba(244,238,223,.25); font-size: .73rem; }
.work-list { display: grid; grid-template-columns: repeat(2, 1fr); }
.work-list article { min-height: 390px; padding: clamp(2rem, 4vw, 4rem); border-bottom: 1px solid rgba(244,238,223,.25); }
.work-list article:nth-child(odd) { border-right: 1px solid rgba(244,238,223,.25); }
.work-list .text-link { color: #e9bd92; }
.work-thumb { display:block; width:min(180px,100%); margin:1.25rem 0 0; color:#e9bd92; font-size:.66rem; font-weight:600; text-decoration:none; }.work-thumb img { width:100%; height:auto; border:1px solid rgba(244,238,223,.35); }.work-thumb span { display:block; margin-top:.4rem; }.image-note { margin:.6rem 0 0!important; color:rgba(244,238,223,.62)!important; font-size:.68rem; line-height:1.7; }
.kondate-thumb { padding:0; border:0; background:none; font:inherit; text-align:left; cursor:pointer; }
.kondate-thumb:hover span,.kondate-thumb:focus-visible span { text-decoration:underline; text-underline-offset:.25em; }
.image-dialog { position:fixed; max-width:min(1100px,calc(100vw - 2rem)); max-height:calc(100dvh - 2rem); margin:auto; padding:clamp(.5rem,2vw,1rem); overflow:visible; border:1px solid rgba(244,238,223,.3); background:#10251b; box-shadow:0 24px 80px rgba(0,0,0,.45); }
.image-dialog::backdrop { background:rgba(8,23,15,.82); backdrop-filter:blur(6px); }
.image-dialog img { display:block; width:auto; max-width:100%; max-height:calc(100dvh - 4rem); object-fit:contain; }
.image-dialog-close { position:absolute; top:-.75rem; right:-.75rem; display:grid; place-items:center; width:2.75rem; height:2.75rem; border:1px solid #d5ddd2; border-radius:50%; background:#fbf8ef; color:#183729; font-size:1.8rem; line-height:1; cursor:pointer; }

.future { display: grid; grid-template-columns: .55fr 1.45fr; gap: 3rem; padding: clamp(6rem, 12vw, 12rem) clamp(1.25rem, 9vw, 9rem); background: var(--paper); }
.future > .eyebrow { padding-top: 1.2rem; }
.future h2 { grid-column: 2; max-width: 1000px; }
.future h2 em { color: var(--soil); }
.future-copy { grid-column: 2; max-width: 680px; margin-left: auto; }
.notice { margin-top: 2.5rem; padding: 1.2rem 0 1.2rem 1.4rem; border-left: 4px solid var(--soil); font-size: .85rem; color: #5f665f; }

.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 8rem); padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 9vw, 9rem); background: #a45331; color: var(--paper); }
.contact-intro > p:not(.eyebrow,.mail-note) { max-width: 460px; }
.mail-note { max-width: 430px; margin-top: 3rem; font-size: .84rem; color: rgba(251,248,239,.8); }
.contact-form label { display: block; margin-bottom: 1.7rem; }
.contact-mail { grid-column: 2; margin-top: -3rem; }
.contact-mail .mail-note { margin-top: 0; }
.contact-form label span { display: block; margin-bottom: .45rem; font-size: .8rem; letter-spacing: .06em; }
.contact-form input, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(251,248,239,.65); border-radius: 0; padding: .8rem .2rem; background: transparent; color: white; font: inherit; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-bottom-width: 2px; border-color: white; }
.contact-form button { min-width: 150px; padding: .9rem 1.4rem; border: 1px solid var(--paper); background: var(--paper); color: var(--green); font: 600 .85rem var(--sans); cursor: pointer; }
.contact-form button:disabled { cursor: not-allowed; opacity: .52; }
.form-status { min-height: 1.6em; margin: 1rem 0 0; font-size: .82rem; }
.privacy-note { margin: 1.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(251,248,239,.3); font-size: .68rem; line-height: 1.8; color: rgba(251,248,239,.68); }

footer { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 2rem; padding: 3rem clamp(1.25rem, 5vw, 5rem); background: #10251b; color: var(--cream); }
footer div { display: flex; align-items: baseline; gap: .8rem; }
footer strong { font-family: var(--serif); font-size: 1.7rem; }
footer span, footer p, footer small { font-size: .7rem; letter-spacing: .06em; }
footer p { margin: 0; text-align: center; }

@media (max-width: 850px) {
  .site-header { height: auto; min-height: 112px; flex-wrap: wrap; gap: .55rem; padding-top: .65rem; padding-bottom: .72rem; }
  .brand span { display: inline; }
  nav { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: .1rem; padding: .2rem; font-size: .64rem; letter-spacing: 0; }
  nav a { justify-content: center; gap: 0; padding: .45rem .12rem; }
  nav a::before { display: none; }
  .hero { min-height: calc(100svh - var(--header-h, 112px)); align-items: flex-start; }
  .hero-image { object-position: 58% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(7,26,18,.77), rgba(7,26,18,.2)), linear-gradient(0deg, rgba(7,21,15,.55), transparent 50%); }
  .hero-content { padding-top: 4rem; padding-bottom: 4rem; }
  h1 { font-size: clamp(1.5rem, 8vw, 4rem); }
  .hero-intro { max-width: 92%; }
  .section, .origin, .featured-work, .future, .contact { grid-template-columns: 1fr; }
  .section { gap: 2.5rem; }
  .origin-photo { min-height: 58svh; }
  .origin-copy { padding: 4rem 1.25rem 5rem; }
  .featured-visual { border-right: 0; border-bottom: 1px solid rgba(244,238,223,.3); }
  .future h2, .future-copy { grid-column: 1; }
  .future { gap: 2rem; }
  .contact { gap: 4rem; }
  .contact-mail { grid-column: 1; margin-top: -1rem; }
  footer { grid-template-columns: 1fr; align-items: start; }
  footer p { text-align: left; }
}

@media (max-width: 580px) {
  nav { grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: .64rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .hero-caption { display: none; }
  .section-heading h2, .works-head h2, .future h2, .contact h2 { font-size: 2.25rem; }
  .pull-quote { padding-left: 1.2rem; }
  .work-list { grid-template-columns: 1fr; }
  .work-list article { min-height: auto; padding: 3rem 0; }
  .work-list article:nth-child(odd) { border-right: 0; }
  .works { padding-left: 1.25rem; padding-right: 1.25rem; }
  .featured-visual { aspect-ratio: .6; }
  .work-copy { padding: 2.5rem 0; }
  .plain-tags li { padding-left: .5rem; padding-right: .5rem; }
  .origin-photo-title { font-size: clamp(2.35rem, 12vw, 3.8rem); }
  .hero-primary { min-width: min(230px, calc(100vw - 3rem)); }
}

/* 冒頭の動き：0〜4秒 主見出し／4〜7.9秒 私について（昼の畑の絵）／7.9〜11.5秒 始まり（夜の事務所の絵）／11〜17.2秒 変わったこと／16.7〜17.8秒 今の静止画へ */
.hero-motion { --hm-out: cubic-bezier(.16,.84,.24,1); --hm-inout: cubic-bezier(.7,0,.25,1); display: none; position: absolute; inset: 0 0 auto; height: 100%; height: min(100%, calc(100svh - var(--header-h, 92px))); z-index: 1; overflow: hidden; pointer-events: none; color: white; }
.hero.is-playing .hero-motion { display: block; }
.hero.is-playing .hero-image { animation: hm-drift 17.8s cubic-bezier(.3,0,.3,1) both; }
.hero.is-playing .hero-content { pointer-events: none; animation: hm-content-in 1.1s var(--hm-out, ease-out) 16.7s both; }
.hero.is-playing .hero-caption { animation: quiet-appear .8s ease-out 17s both; }
.hero.is-motion-ended .hero-image, .hero.is-motion-ended .hero-content, .hero.is-motion-ended .hero-caption,
.hero.is-motion-cut .hero-image { animation: none; }
.hero.is-motion-cut .hero-content { animation: quiet-appear .45s ease-out both; }
.hero.is-paused, .hero.is-paused * { animation-play-state: paused !important; }
@keyframes hm-drift { from { transform: scale(1.1) translateX(-1.5%); } to { transform: scale(1) translateX(0); } }
@keyframes hm-content-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hm-rise { from { transform: translateY(108%); } to { transform: translateY(0); } }
@keyframes hm-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hm-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hm-gone { to { opacity: 0; } }
@keyframes hm-leave { to { opacity: 0; transform: translateY(-28px); } }

.hm-art { position: absolute; inset: 0; display: block; overflow: hidden; opacity: 0; }
.hm-art img, .hm-phone img { opacity: 0; transition: opacity .6s ease; }
.hm-art img.is-loaded, .hm-phone img.is-loaded { opacity: 1; }
.hm-art img { width: 100%; height: 100%; object-fit: cover; }
.hm-art-field { animation: hm-in .9s ease 3.85s both, hm-gone .2s linear 12.4s forwards; }
.hm-art-field img { object-position: 50% 45%; transform-origin: 78% 45%; animation: hm-field-zoom 4.6s cubic-bezier(.3,0,.3,1) 3.85s both; }
@keyframes hm-field-zoom { from { transform: scale(1.1) translateX(1.5%); } to { transform: scale(1.01) translateX(0); } }
.hm-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,26,18,.66) 0%, rgba(7,26,18,.3) 45%, rgba(7,26,18,0) 75%), linear-gradient(0deg, rgba(7,26,18,.45), transparent 50%); opacity: 0; animation: hm-in .9s ease 3.85s both, hm-gone .2s linear 12.4s forwards; }
.hm-art-office { animation: hm-in 1s ease 7.5s both, hm-gone .2s linear 12.4s forwards; }
.hm-art-office img { object-position: 60% 40%; transform-origin: 66% 30%; animation: hm-office-zoom 5.4s linear 7.5s both; }
.hm-art-office::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,22,15,.5) 0%, rgba(8,22,15,.15) 50%, transparent 75%); }
@keyframes hm-office-zoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }

.hm-sweep { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #e9bd92; clip-path: inset(0 100% 0 0); animation: hm-sweep 1.1s var(--hm-inout) 3.7s both; }
@keyframes hm-sweep { 0% { clip-path: inset(0 100% 0 0); } 50% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 100%); } }

.hm-scene { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(2.5rem, 5.5vw, 6rem) clamp(1.25rem, 7vw, 7rem); }
.hm-eyebrow { margin: 0 0 1.2rem; color: #e9bd92; font-weight: 600; font-size: .72rem; line-height: 1; letter-spacing: .24em; }
.hm-title { max-width: 1060px; margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(3rem, 6.8vw, 7.2rem); line-height: 1.16; letter-spacing: -.055em; text-shadow: 0 2px 22px rgba(0,0,0,.15); }
.hm-title em { color: #f0c292; font-style: normal; }
.hm-line { display: block; overflow: hidden; padding: .08em 0 .12em; margin: -.08em 0 -.12em; }
.hm-line > span { display: block; animation: hm-rise .95s var(--hm-out) both; }
.hm-s2 .hm-title, .hm-s3 .hm-title { font-size: clamp(2.6rem, 5.6vw, 6rem); line-height: 1.28; }

.hm-s1 { animation: hm-leave .55s var(--hm-inout) 3.7s forwards; }
.hm-s1 .hm-eyebrow { animation: hm-fade-up .7s var(--hm-out) .2s both; }
.hm-s1 .hm-line:nth-child(1) > span { animation-delay: .4s; }
.hm-s1 .hm-line:nth-child(2) > span { animation-delay: .62s; }
.hm-s1 .hm-line:nth-child(3) > span { animation-delay: .84s; }
.hm-s1 .hm-line:nth-child(4) > span { animation-delay: 1.06s; }

.hm-s2 { animation: hm-leave .55s var(--hm-inout) 7.35s forwards; }
.hm-s2 .hm-eyebrow { animation: hm-fade-up .7s var(--hm-out) 4.35s both; }
.hm-s2 .hm-line:nth-child(1) > span { animation-delay: 4.5s; }
.hm-s2 .hm-line:nth-child(2) > span { animation-delay: 4.75s; }

.hm-s3 { animation: hm-leave .55s var(--hm-inout) 10.95s forwards; }
.hm-s3 .hm-eyebrow { animation: hm-fade-up .7s var(--hm-out) 8.15s both; }
.hm-s3 .hm-line:nth-child(1) > span { animation-delay: 8.3s; }
.hm-s3 .hm-line:nth-child(2) > span { animation-delay: 8.55s; }

.hm-notes { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; container-type: size; }
.hm-notes li { position: absolute; padding: .38rem .8rem .38rem .7rem; border-left: 3px solid var(--soil); background: rgba(251,248,239,.94); color: var(--ink); font-size: .78rem; font-weight: 600; line-height: 1.5; letter-spacing: .06em; white-space: nowrap; box-shadow: 0 8px 20px rgba(0,0,0,.18); opacity: 0; animation: hm-note-in .6s var(--hm-out) both, hm-note-gather .75s var(--hm-inout) 10.85s forwards; }
.hm-notes li:nth-child(1) { left: 56%; top: 13%; rotate: -3deg; --gx: 18cqw; --gy: 36cqh; animation-delay: 9s, 10.85s; }
.hm-notes li:nth-child(2) { left: 74%; top: 23%; rotate: 2deg; --gx: 0cqw; --gy: 26cqh; animation-delay: 9.2s, 10.9s; }
.hm-notes li:nth-child(3) { left: 60%; top: 34%; rotate: -1deg; --gx: 14cqw; --gy: 15cqh; animation-delay: 9.4s, 10.95s; }
.hm-notes li:nth-child(4) { left: 79%; top: 44%; rotate: 3deg; --gx: -5cqw; --gy: 5cqh; animation-delay: 9.6s, 11s; }
.hm-notes li:nth-child(5) { left: 66%; top: 54%; rotate: -2deg; --gx: 8cqw; --gy: -5cqh; animation-delay: 9.8s, 11.05s; }
@media (min-width: 851px) { .hm-notes li { padding: .5rem 1rem .5rem .85rem; font-size: .95rem; } }
@keyframes hm-note-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hm-note-gather { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--gx, 0), var(--gy, 0)) scale(.35); } }

.hm-paper { position: absolute; inset: 0; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 4vw; padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 7vw, 7rem); background: var(--paper); color: var(--ink); container: hm-paper / size; overflow: hidden; transform: translateY(101%); animation: hm-panel-up 1s var(--hm-inout) 11s both, hm-panel-out .9s var(--hm-inout) 16.3s forwards; }
@keyframes hm-panel-up { from { transform: translateY(101%); } to { transform: translateY(0); } }
@keyframes hm-panel-out { from { transform: translateY(0); } to { transform: translateY(-101%); } }
.hm-paper::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--soil); }
.hm-s4 .hm-eyebrow { color: var(--soil); animation: hm-fade-up .7s var(--hm-out) 11.95s both; }
.hm-s4 .hm-title { color: var(--green); font-size: clamp(2.3rem, 4.4vw, 4.8rem); line-height: 1.3; letter-spacing: -.04em; text-shadow: none; }
.hm-s4 .hm-line { display: inline-block; }
.hm-s4 .hm-line:nth-child(1) > span { animation-delay: 12.05s; }
.hm-s4 .hm-line:nth-child(2) > span { animation-delay: 12.25s; }
.hm-changes { max-width: 560px; margin: clamp(1.2rem, 3cqh, 2.2rem) 0 0; padding: 0; list-style: none; }
.hm-changes li { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 1rem; padding: clamp(.55rem, 1.8cqh, 1rem) 0; border-top: 1px solid var(--line); animation: hm-fade-up .7s var(--hm-out) both; }
.hm-changes li:last-child { border-bottom: 1px solid var(--line); }
.hm-changes li:nth-child(1) { animation-delay: 12.5s; }
.hm-changes li:nth-child(2) { animation-delay: 12.7s; }
.hm-changes li:nth-child(3) { animation-delay: 12.9s; }
.hm-changes li:nth-child(4) { animation-delay: 13.1s; }
.hm-changes span { grid-row: span 2; color: var(--soil); font-family: var(--serif); font-size: .8rem; line-height: 2.1; }
.hm-changes b { font-family: var(--serif); font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.5; }
.hm-changes small { color: #4f5a51; font-size: .84rem; line-height: 1.7; }
.hm-phone { justify-self: center; width: auto; height: 62vh; height: 80cqh; aspect-ratio: 780 / 1688; border: 7px solid #10251b; border-radius: 30px; overflow: hidden; background: #f3f5f1; box-shadow: 16px 18px 0 rgba(168,86,50,.2); animation: hm-phone-in 1.1s var(--hm-out) 12.3s both, hm-phone-out .55s var(--hm-inout) 16s forwards; }
.hm-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@keyframes hm-phone-in { from { opacity: 0; transform: translateY(14%); } to { opacity: 1; transform: translateY(0); } }
@keyframes hm-phone-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(18%); } }

.hero-motion-toggle { position: absolute; z-index: 3; right: clamp(1rem, 2.5vw, 2rem); top: clamp(1rem, 2.5vw, 1.6rem); min-height: 2.25rem; padding: .35rem .85rem; border: 1px solid rgba(251,248,239,.55); background: rgba(16,37,27,.72); color: var(--paper); font: 600 .72rem var(--sans); letter-spacing: .1em; cursor: pointer; touch-action: manipulation; }
.hero-motion-toggle:hover, .hero-motion-toggle:focus-visible { background: var(--paper); color: var(--green); outline: none; }

@media (max-width: 850px) {
  .hm-scene { justify-content: flex-start; padding-top: 4rem; padding-bottom: 4rem; }
  .hm-s2, .hm-s3 { justify-content: flex-end; padding-bottom: 3.2rem; }
  .hm-veil { background: linear-gradient(0deg, rgba(7,26,18,.7) 0%, rgba(7,26,18,.3) 40%, rgba(7,26,18,0) 65%); }
  .hm-art-field img { object-position: 70% 50%; transform-origin: 72% 25%; }
  .hm-art-office img { object-position: 30% 50%; transform-origin: 40% 25%; }
  .hm-title { font-size: clamp(1.5rem, 8vw, 4rem); }
  .hm-s2 .hm-title { font-size: clamp(1.6rem, 8.2vw, 4rem); }
  .hm-s3 .hm-title { font-size: clamp(1.5rem, 7vw, 3.6rem); }
  .hm-art-office::after { background: linear-gradient(0deg, rgba(8,22,15,.55) 0%, transparent 50%); }
  .hm-notes li:nth-child(1) { left: 7%; top: 13%; --gx: 33cqw; --gy: 17cqh; }
  .hm-notes li:nth-child(2) { left: 47%; top: 20%; --gx: -7cqw; --gy: 10cqh; }
  .hm-notes li:nth-child(3) { left: 13%; top: 28%; --gx: 27cqw; --gy: 2cqh; }
  .hm-notes li:nth-child(4) { left: 53%; top: 36%; --gx: -13cqw; --gy: -6cqh; }
  .hm-notes li:nth-child(5) { left: 22%; top: 44%; --gx: 18cqw; --gy: -14cqh; }
  .hm-paper { grid-template-columns: 1fr; align-items: start; align-content: start; padding-top: 2.6rem; }
  .hm-s4 .hm-title { font-size: clamp(1.6rem, 8.2vw, 3.4rem); }
  .hm-s4 .hm-line { display: block; }
  .hm-changes { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; max-width: none; margin-top: 1.1rem; }
  .hm-changes li { grid-template-columns: 1fr; padding: .55rem 0; }
  .hm-changes li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .hm-changes span { grid-row: auto; line-height: 1.6; }
  .hm-changes b { font-size: clamp(.86rem, 4.1vw, 1.1rem); }
  .hm-changes small { display: none; }
  .hm-phone { justify-self: center; width: min(62vw, 300px); height: auto; margin-top: 1.6rem; }
  .hero-motion-toggle { min-height: 2.75rem; padding: .5rem 1rem; }
}
@container hm-paper (max-width: 850px) and (max-height: 300px) { .hm-phone { display: none; } }
@container hm-paper (min-width: 560px) and (max-width: 850px) and (max-height: 460px) { .hm-phone { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .brand:hover, .brand:active, nav a:hover, nav a:active,
  .button:hover, .button:active, .text-link:hover, .text-link:active { transform: none !important; }
}
