.feature-gallery {
  --feature-ink: #fff7ea;
  --feature-gold: #ead2ac;
  --paper-black: #1b1216;
  position: relative;
  isolation: isolate;
  color: var(--feature-ink);
  background: var(--paper-black);
}
.feature-stage { display: grid; position: relative; overflow: hidden; isolation: isolate; }
.feature-panel {
  grid-area: 1/1; position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center;
  min-height: clamp(500px, 42vw, 730px);
}
.feature-panel.is-leaving { z-index: -1; pointer-events: none; }
.feature-image, .feature-depth, .feature-image::after { position: absolute; inset: 0; pointer-events: none; }
.feature-image { z-index: -1; overflow: hidden; }
.feature-depth {
  transform: translate3d(var(--shift-x,0px),var(--shift-y,0px),0) scale(1.035);
  transition: transform .8s cubic-bezier(.2,.7,.3,1);
}
.sculpture-frame, .sculpture { display: block; height: 100%; width: 100%; }
.paper-exhibit { position: relative; width: 100%; height: 100%; }
.sculpture { object-fit: cover; object-position: 55% 52%; }
.feature-paper { background: var(--paper-black); }
.feature-paper .feature-image::after {
  content: '';
  background: linear-gradient(90deg,#140e13b5 0%,#1d101886 23%,#2110182a 46%,transparent 61%),
    linear-gradient(0deg,#180f19b0 0%,transparent 16%);
}
.feature-paper .feature-depth::after {
  content: ''; position: absolute; inset: -25% -15%; pointer-events:none;
  background: linear-gradient(114deg,transparent 40%,#fff0cb14 48%,#fbeace44 52%,transparent 64%);
  transform: translateX(90%); mix-blend-mode: soft-light; opacity: 0;
}
.feature-copy { position: relative; padding-block: clamp(52px,6.3vw,108px) clamp(44px,5.8vw,102px); }
.feature-text { max-width: 54%; }
.feature-label {
  display: flex; align-items: center; gap: 14px;
  font-weight: 550; font-size: .86rem; line-height: 1.5; letter-spacing: .16em;
  color: var(--feature-gold); margin-bottom: clamp(17px,2.1vw,32px);
}
.feature-label::before { content: ''; width: 37px; height: 1px; background: currentColor; }
.feature-title {
  font: 500 clamp(3.8rem,6.7vw,6.15rem)/1.19 var(--serif);
  letter-spacing: -.045em; font-feature-settings: "palt";
}
.feature-title > span { display: block; overflow: hidden; padding-block: .035em .075em; margin-block: -.035em -.075em; }
.feature-title i { display: block; font-style: normal; white-space: nowrap; }
.feature-description {
  color: #f1e6dd; font-size: clamp(.94rem,1.07vw,1.12rem); line-height: 1.9;
  letter-spacing: .015em; margin-top: clamp(19px,2.15vw,32px); max-width: 30em;
}
.feature-links { display: flex; align-items: center; gap: 6px clamp(14px,1.6vw,26px); flex-wrap: wrap; margin-top: clamp(19px,2vw,33px); }
.feature-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  text-decoration-color: #d2b99d; text-underline-offset: 7px; text-decoration-thickness: 1px;
  font-size: .9rem; letter-spacing: .025em; font-weight: 600; color: #fff6e9;
}
.feature-link:hover { text-decoration-thickness: 2px; }
.feature-primary {
  border-radius: 999px; background: #f1e6d4; color: #2b1821;
  border: 1px solid #f1e6d4; padding: 9px 25px; text-decoration: none;
}
.feature-primary:hover { background: #fffaf0; }
.feature-gallery :focus-visible { outline: 2px solid #f4cea0; outline-offset: 4px; }
.feature-history { background: radial-gradient(ellipse at 76% 40%,#a27d67 0%,#715444 27%,#473632 52%,#211b1c 83%); }
.feature-kaitan { background: radial-gradient(ellipse at 75% 48%,#ac6b46 0%,#784433 28%,#482a2b 53%,#25171e 85%); }
.feature-history .feature-image::after, .feature-kaitan .feature-image::after {
  content:''; background: linear-gradient(90deg,#1b171b83,transparent 57%),linear-gradient(0deg,#1d121be0 0%,transparent 18%);
}
.proof-display, .companion-display {
  position: absolute; inset: 5% max(2%,calc((100% - 1450px)/2)) 4% auto;
  width: min(48%,740px); display: grid; align-items: center; justify-items: center;
}
.proof-display img { position: absolute; width: auto; height: 78%; max-width: 62%; object-fit: contain; filter: drop-shadow(11px 18px 13px #1b0e1459); }
.proof-cover { left: 10%; transform: perspective(1000px) rotateY(-9deg) rotate(-8deg); }
.proof-leaf { right: 8%; transform: perspective(1000px) rotateY(7deg) rotate(9deg); }
.companion-display img { width: auto; height: 85%; max-width: 80%; object-fit: contain; filter: drop-shadow(5px 16px 14px #2110198a); }
.companion-card {
  position: absolute; width: 46%; aspect-ratio: .71; left: 21%; top: 14%;
  border: 1px solid #efceb557; border-radius: 15px; transform: rotate(-18deg);
  background: linear-gradient(120deg,#fdd1a90d,#5c392825);
}
.companion-card:nth-child(2) { left: 39%; transform: rotate(16deg); }
.feature-rail { position: relative; background: #20171c; border-top: 1px solid #f0d9b631; }
.feature-rail-inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(12px,4vw,65px); }
.feature-tabs { display: flex; flex: 1; max-width: 800px; }
.feature-tab {
  position: relative; display: flex; align-items: baseline; gap: 12px;
  background: transparent; border: none; color: #e4d6d1; font-size: .9rem; font-weight: 550; letter-spacing: .055em;
  flex: 1; min-width: 0; padding: 20px 8px 20px 0; text-align: left; white-space: nowrap; cursor: pointer;
}
.feature-tab::before {
  content: ''; position: absolute; inset: -1px auto auto 0; width: calc(100% - 27px); height: 2px;
  background: transparent;
}
.feature-tab[aria-pressed=true] { color: #fff9ee; }
.feature-tab[aria-pressed=true]::before { background: #af887369; }
.feature-number { color: #bba58c; font: italic 1.02rem/1 Georgia,serif; font-variant-numeric: tabular-nums; }
.feature-tab[aria-pressed=true] .feature-number { color: #f6c993; }
.feature-progress {
  display: block; position: absolute; inset: -1px auto auto 0; width: calc(100% - 27px);
  height: 2px; background: #f2c78d; transform: scaleX(0); transform-origin: left;
}
.feature-tab[aria-pressed=true] .feature-progress { transform: scaleX(1); }
.feature-playback {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  cursor: pointer; color: #f4e0c5; background: transparent; border: 0; padding: 0;
}
.feature-playback::before, .feature-playback span { grid-area: 1/1; }
.feature-playback::before { content:''; width: 32px; height: 32px; border: 1px solid #d8c5b872; border-radius: 50%; }
.feature-playback:hover::before { border-color: #fff3d7; }
.feature-playback span { width: 8px; height: 10px; border-inline: 2px solid currentColor; }
.feature-playback[data-paused] span { width: 0; height: 0; border: 0; margin-left: 2px; border-left: 7px solid currentColor; border-block: 5px solid transparent; }

@media (min-width:921px) {
  .feature-kaitan .feature-title { font-size: clamp(3.25rem,5.8vw,5.35rem); }
}
@media (min-width:701px) and (max-width:920px) {
  .feature-title { font-size: clamp(2.9rem,6.6vw,4rem); }
  .feature-text { max-width: 55%; }
  .feature-kaitan .feature-title { font-size: clamp(2.65rem,6.15vw,3.7rem); }
}
@media (max-width:700px) {
  .feature-panel { min-height: 0; }
  .feature-copy { padding-top: clamp(210px,60vw,354px); padding-bottom: 24px; }
  .feature-text { max-width: 100%; }
  .feature-image { bottom: auto; width: 100%; height: clamp(290px,86vw,480px); }
  .feature-paper .feature-image::after {
    background: linear-gradient(0deg,#1b1216 0%,#1b1216ed 7%,#1b121680 30%,transparent 57%);
  }
  .sculpture { object-position: 52% 48%; }
  .feature-label { font-size: .78rem; margin-bottom: 10px; gap: 10px; }
  .feature-label::before { width: 24px; }
  .feature-title { font-size: clamp(2.65rem,10vw,4.1rem); line-height: 1.17; }
  .feature-description { font-size: .95rem; line-height: 1.74; margin-top: 12px; }
  .feature-description br { display: none; }
  .feature-links { gap: 2px 15px; margin-top: 13px; }
  .feature-link { font-size: .84rem; min-height: 44px; }
  .feature-primary { padding: 8px 18px; }
  .feature-history { background: #2d2326; }
  .feature-kaitan { background: #35212a; }
  .feature-history .feature-image { background: radial-gradient(ellipse at 57% 37%,#a5846d,#705545 59%,#2d2326 100%); }
  .feature-kaitan .feature-image { background: radial-gradient(ellipse at 55% 37%,#a66949,#794736 57%,#35212a 100%); }
  .feature-history .feature-image::after { background: linear-gradient(0deg,#2d2326 1%,#2d232696 24%,transparent 50%); }
  .feature-kaitan .feature-image::after { background: linear-gradient(0deg,#35212a 1%,#35212a96 24%,transparent 50%); }
  .proof-display,.companion-display { inset: 2% 6% 11% auto; width: 78%; }
  .proof-display img { height: 83%; }
  .companion-display img { height: 88%; }
  .feature-rail-inner { gap: 6px; }
  .feature-tab { gap: 6px; font-size: .8rem; padding-block: 15px; }
  .feature-number { font-size: .81rem; }
  .feature-tab::before,.feature-progress { width: calc(100% - 10px); }
}
@media (max-width:380px) {
  .feature-copy { padding-top: 160px; }
  .feature-links { gap: 0 10px; }
  .feature-link { font-size: .79rem; }
  .feature-primary { padding-inline: 13px; }
  .feature-rail-inner { gap: 0; }
  .feature-tab { font-size: .74rem; gap: 4px; letter-spacing: 0; }
  .feature-playback { width: 36px; }
}
@media (prefers-reduced-motion:no-preference) {
  .feature-panel:not([hidden]):not(.is-leaving) .feature-title i { animation: feature-type-in .85s cubic-bezier(.2,.85,.22,1) both; }
  .feature-panel:not([hidden]):not(.is-leaving) .feature-title span:nth-child(2) i { animation-delay: .075s; }
  .feature-panel:not([hidden]):not(.is-leaving) .feature-label::before { animation: feature-rule-in .85s both; }
  .feature-panel:not([hidden]):not(.is-leaving) .paper-exhibit { animation: feature-camera 6s cubic-bezier(.15,.7,.24,1) both; }
  .feature-panel:not([hidden]):not(.is-leaving) .feature-depth::after { animation: paper-light 4s ease-in-out .28s both; }
  .feature-panel:not([hidden]):not(.is-leaving) .proof-cover { animation: cover-arrive 1.25s cubic-bezier(.13,.75,.21,1) both; }
  .feature-panel:not([hidden]):not(.is-leaving) .proof-leaf { animation: leaf-arrive 1.35s cubic-bezier(.13,.75,.21,1) both; }
  .feature-panel:not([hidden]):not(.is-leaving) .companion-display img { animation: companion-arrive 1.2s cubic-bezier(.15,.85,.26,1) both; }
  .feature-panel.is-entering { animation: film-dissolve .66s cubic-bezier(.23,.7,.2,1) both; }
  .feature-link { transition: background .22s, color .22s, transform .22s; }
  .feature-primary:hover { transform: translateY(-2px); }
  @keyframes feature-type-in { from {transform:translateY(82%);opacity:.15} to {transform:translateY(0);opacity:1} }
  @keyframes feature-rule-in { from {transform:scaleX(.2);transform-origin:left} to {transform:scaleX(1);transform-origin:left} }
  @keyframes feature-camera { from { transform:scale(1.15) translateX(1.2%); } to { transform:scale(1); } }
  @keyframes paper-light { 0% { transform:translateX(-70%);opacity:0; } 28% {opacity:.78} 70% {opacity:.45} 100% {transform:translateX(80%);opacity:0;} }
  @keyframes cover-arrive { from {transform:perspective(1000px) translateX(9%) rotateY(-40deg) rotate(-1deg)} to {transform:perspective(1000px) rotateY(-9deg) rotate(-8deg)} }
  @keyframes leaf-arrive { from {transform:perspective(1000px) translateX(-21%) rotateY(-56deg) rotate(-1deg)} to {transform:perspective(1000px) rotateY(7deg) rotate(9deg)} }
  @keyframes companion-arrive { from {transform:translateY(12%) scale(.9) rotate(-4deg)} to {transform:none} }
  @keyframes film-dissolve { from {opacity:0; clip-path:inset(0 4% 0 0)} to {opacity:1;clip-path:inset(0)} }
}
@media (prefers-reduced-motion:reduce) {
  .feature-playback {display:none}
  .feature-depth { transform: none; transition:none; }
}
.feature-transport { display:flex; align-items:center; gap: 4px; }
.feature-step { display:grid; place-items:center; width:44px; height:44px; border:0; color:#ead3b5; background:transparent; cursor:pointer; }
.feature-step span { width:10px;height:10px; border:solid currentColor; border-width:1px 1px 0 0; transform:rotate(45deg); }
.feature-step[data-step="-1"] span { transform:rotate(-135deg); }
.feature-step:hover { color:#fff; }
.feature-gallery[data-motion-paused] .paper-exhibit, .feature-gallery[data-motion-paused] .feature-depth::after { animation-play-state:paused!important; }
@media (max-width:600px) {
  .feature-rail-inner { gap:8px; }
  .feature-tab { justify-content:center; padding:15px 3px; }
  .feature-tab[aria-pressed="true"] { flex:1.6; }
  .feature-tab[aria-pressed="false"] .feature-tab-name { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
  .feature-tabs { max-width:380px; }
  .feature-transport { gap:0; }
  .feature-step,.feature-playback { width:38px; min-height:44px; }
  .feature-step span { width:8px;height:8px; }
}
