@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Aleo:wght@300;400;600&display=swap');

:root {
  --cream: #f7f0e4;
  --cream-2: #fbf7ef;
  --blush: #e7d7df;
  --rose: #d7b9c6;
  --mauve: #b48aa0;
  --plum: #4a2944;
  --ink: #2d1b2b;
  --accent: #c57bab;
  --line: rgba(74, 41, 68, 0.14);
  --line-strong: rgba(74, 41, 68, 0.22);
  --shadow-soft: 0 24px 80px rgba(74, 41, 68, 0.09);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

body {
  font-family: 'Aleo', serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1380px; margin: 0 auto; padding: 0 42px; }
.text-center { text-align: center; }

.label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}
.label.light { color: rgba(255,255,255,0.82); }

.divider {
  width: 86px;
  height: 1px;
  background: var(--accent);
  margin: 24px 0;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h2 {
  font-size: clamp(2.5rem, 4.4vw, 4.4rem);
  line-height: 0.98;
  margin-bottom: 18px;
}

h3 {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 1.04;
  margin-bottom: 14px;
}

p {
  font-size: 1.02rem;
  line-height: 1.95;
  color: rgba(45, 27, 43, 0.78);
  font-weight: 300;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 34px;
  font-size: 0.73rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-family: 'Aleo', serif;
  font-weight: 600;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: all .28s ease;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--cream-2); }
.btn-filled { background: var(--plum); border-color: var(--plum); color: var(--cream-2); }
.btn-filled:hover { background: #351f33; border-color: #351f33; }
.btn-outline-light { border-color: rgba(255,255,255,0.78); color: rgba(255,255,255,0.88); }
.btn-outline-light:hover { background: var(--cream-2); color: var(--ink); }

.img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(180deg, #d8b9c5 0%, #b891a2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  text-align: center;
  padding: 24px;
}
.img-placeholder.dark { background: linear-gradient(180deg, #5d3552 0%, #2f1b2d 100%); }

.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 400;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(247, 240, 228, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 8px 42px;
}

.logo-link,
.custom-logo-link {
  display: flex;
  align-items: center;
}

.logo-link img,
.logo-link .custom-logo,
.custom-logo-link img,
.site-logo {
  max-height: 58px !important;
  max-width: 190px !important;
  width: auto !important;
}

.nav-list {
  display: flex;
  gap: 26px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a {
  position: relative;
  font-size: 0.73rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  transition: color .22s ease;
}

.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
  color: var(--accent);
}

.nav-list a:hover::after,
.nav-list .current-menu-item > a::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink);
  transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(360px, 560px);
  justify-content: center;
  align-items: center;
  gap: clamp(34px, 6vw, 88px);
  padding: clamp(52px, 7vw, 96px) clamp(24px, 4vw, 52px) clamp(64px, 8vw, 112px);
  min-height: auto;
  background: #6a4a45;
  border-bottom: none;
}

.hero-img {
  width: min(100%, 400px);
  aspect-ratio: 4 / 5;
  min-height: auto;
  overflow: hidden;
  position: relative;
  justify-self: end;
  align-self: center;
  background: var(--blush);
  border-radius: 38px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 28px 72px rgba(32, 17, 28, 0.24);
}

.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(32,17,28,0.08) 100%);
  pointer-events: none;
}

.hero-img img {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  max-width: 100% !important;
  transform: none;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  padding: 0;
  background: transparent;
}

.hero-content::before {
  display: none;
}

.hero .label {
  color: rgba(255,255,255,0.72);
  margin-bottom: 14px;
}

.hero-hi {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 3.8vw, 4.2rem);
  font-weight: 400;
  color: var(--cream-2);
  margin-bottom: 10px;
  line-height: 0.95;
}

.hero-name {
  font-family: 'Amsterdam Four', cursive;
  font-size: clamp(2.45rem, 4.1vw, 3.95rem);
  font-weight: 400;
  color: var(--cream-2);
  line-height: 0.95;
  margin: 8px 0 18px;
  max-width: 100%;
  white-space: nowrap;
}

.hero-sub {
  max-width: 440px;
  font-size: 1.05rem;
  line-height: 1.72;
  color: rgba(255,255,255,0.82);
}

.section-mission,
.section-story,
.section-what,
.section-fun,
.section-cta,
.page-hero,
.page-content {
  position: relative;
}

.section-mission {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.08)),
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.52) 0 18%, transparent 19%),
    radial-gradient(circle at 72% 74%, rgba(255,255,255,0.3) 0 16%, transparent 17%),
    linear-gradient(135deg, #dcd8cf 0%, #efebe4 38%, #ddd8cf 100%);
  padding: clamp(110px, 12vw, 190px) 0;
  overflow: hidden;
}
.section-mission::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(0,0,0,0.05) 12%, transparent 13% 58%, rgba(0,0,0,0.06) 59% 64%, transparent 65%);
  opacity: 0.22;
  pointer-events: none;
}
.section-mission .container-narrow { max-width: 980px; position: relative; z-index: 1; }
.mission-frame {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(38px, 4.6vw, 62px) clamp(28px, 4vw, 56px);
  background: rgba(255, 252, 248, 0.88);
  border: 1px solid rgba(74, 41, 68, 0.08);
  border-radius: 34px;
  box-shadow: 0 22px 70px rgba(58, 35, 47, 0.12);
}
.section-mission .divider { margin: 30px auto 26px; }
.section-mission p { max-width: 760px; margin: 0 auto; }

.section-alt {
  background: linear-gradient(180deg, #f2e5e9 0%, #ecdfe5 100%);
}

.section-story .container-wide,
.section-what .container-wide,
.section-fun .container-wide,
.section-cta .container-wide {
  position: relative;
}

.section-story .two-col,
.what-panel .two-col,
.section-fun .two-col,
.two-col-cta {
  align-items: center;
}

.section-story .story-text,
.what-text,
.section-fun > .container-wide > div:first-child,
.cta-text {
  padding: clamp(12px, 2vw, 24px) 0;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(34px, 5.5vw, 86px);
  align-items: center;
}

.section-story {
  padding: clamp(92px, 10vw, 150px) 0;
}

.story-text {
  max-width: 640px;
}

.story-text h2 {
  max-width: 11ch;
  margin-bottom: 28px;
}

.story-img,
.fun-img,
.what-img,
.cta-img {
  position: relative;
  width: min(100%, 430px);
  padding: 16px;
  background: rgba(255, 252, 248, 0.72);
  border: 1px solid rgba(74, 41, 68, 0.09);
  border-radius: 42px;
  box-shadow: 0 20px 58px rgba(74, 41, 68, 0.08);
}

.story-img::before,
.fun-img::before,
.what-img::before,
.cta-img::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(74, 41, 68, 0.10);
  border-radius: 32px;
  z-index: 0;
}

.story-img img,
.fun-img img,
.what-img img,
.cta-img img {
  position: relative;
  z-index: 1;
  width: 100%;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: none;
}

.story-img img { aspect-ratio: 4 / 5.1; }

.tabs { margin-top: 18px; }
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  border-bottom: 1px solid rgba(74, 41, 68, 0.18);
  margin-bottom: 22px;
  padding-bottom: 2px;
}
.tab-btn {
  font-family: 'Aleo', serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0 0 12px;
  color: rgba(74, 41, 68, 0.58);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: all .24s ease;
}
.tab-btn.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.section-what {
  background: #fbfaf8;
  padding: clamp(72px, 8vw, 120px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.what-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 760px;
  background: #fbfaf8;
}

.what-rails {
  display: flex;
  align-items: stretch;
  position: relative;
  z-index: 3;
}

.what-rails-left {
  border-right: 1px solid rgba(74, 41, 68, 0.12);
}

.what-rails-right {
  border-left: 1px solid rgba(74, 41, 68, 0.12);
}

.what-btn {
  width: 72px;
  min-width: 72px;
  padding: 28px 12px;
  background: #efe8dd;
  border: none;
  border-right: 1px solid rgba(74, 41, 68, 0.10);
  color: rgba(45, 27, 43, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .28s ease, color .28s ease, transform .28s ease;
}
.what-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity .28s ease;
}
.what-btn::after {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: rgba(45, 27, 43, 0.3);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity .28s ease, transform .28s ease;
}
.what-rails-left .what-btn::after { right: 10px; }
.what-rails-right .what-btn::after { left: 10px; }
.what-rails-right .what-btn {
  border-right: none;
  border-left: 1px solid rgba(74, 41, 68, 0.10);
}
.what-btn span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 1.45vw, 1.95rem);
  line-height: 1;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}
.what-btn:hover {
  background: #dde3ef;
}
.what-btn:hover::before,
.what-btn.active::before {
  opacity: 1;
}
.what-btn:hover::after,
.what-btn.active::after {
  opacity: 1;
  transform: scaleY(1);
}
.what-btn.active {
  background: #c7cfdf;
  color: var(--ink);
}
.what-stage {
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  align-items: stretch;
  position: relative;
}
.what-panel { display: none; width: 100%; }
.what-panel.active {
  display: block;
  animation: revayaFadePanel .35s ease;
}
.what-layout {
  min-height: 680px;
  align-items: stretch;
  gap: clamp(38px, 5vw, 78px);
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(74, 41, 68, 0.12);
  border-radius: 38px;
  box-shadow: 0 24px 80px rgba(58, 35, 47, 0.08);
  padding: clamp(28px, 3.6vw, 42px);
}
.what-panel .two-col,
.section-fun .two-col,
.two-col-cta,
.section-story .two-col {
  justify-content: center;
}
.what-img {
  position: relative;
  width: min(100%, 540px);
  justify-self: center;
  align-self: center;
  padding: 14px;
  background: #f8f5f1;
  border: 1px solid rgba(74, 41, 68, 0.10);
  border-radius: 34px;
  box-shadow: 0 18px 56px rgba(74, 41, 68, 0.08);
}
.what-img::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(74, 41, 68, 0.10);
  border-radius: 26px;
  pointer-events: none;
}
.what-img img {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
}
.what-text {
  max-width: 620px;
  align-self: center;
  padding: clamp(8px, 1.2vw, 16px) 0;
}
.what-text h3 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 3vw, 3.25rem);
}
.what-text p {
  max-width: 640px;
}
.what-kicker {
  margin-bottom: 28px;
}

@keyframes revayaFadePanel {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-fun {
  padding: clamp(92px, 10vw, 150px) 0;
  background: #6a4a45;
}
.section-fun h2 {
  max-width: 12ch;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.92);
}
.section-fun .label,
.section-fun .fun-card h4,
.section-fun p { color: rgba(255,255,255,0.82); }
.section-fun .label { color: rgba(255,255,255,0.62); }

.fun-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.26);
}
.fun-card {
  padding: 22px 8px 22px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.24);
  border-radius: 0;
  min-height: auto;
  position: relative;
}
.fun-card::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 18px;
  font-size: 1.35rem;
  color: rgba(255,255,255,0.72);
}

.fun-card h4 {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}
.fun-img {
  position: relative;
}
.fun-img img { aspect-ratio: 4 / 5; }

.section-cta {
  background: linear-gradient(180deg, #40233c 0%, #291625 100%);
  padding: clamp(92px, 11vw, 170px) 0;
}

.two-col-cta {
  display: grid;
  grid-template-columns: minmax(320px, 38%) minmax(0, 62%);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}

.cta-img {
  position: relative;
}
.cta-img::before { border-color: rgba(255,255,255,0.12); }
.cta-img img { aspect-ratio: 4 / 5.1; }
.cta-img,
.story-img,
.fun-img,
.what-img {
  justify-self: center;
}

.cta-text {
  max-width: 760px;
}

.cta-text h2 {
  color: var(--cream-2);
  font-size: clamp(3.2rem, 6.8vw, 6rem);
  line-height: 0.92;
  margin-bottom: 8px;
}

.cta-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: rgba(255,255,255,0.82);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  margin-bottom: 22px;
}

.cta-text p:not(.cta-sub) {
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin-bottom: 34px;
}

.page-hero {
  background: var(--cream);
  padding: 110px 0 54px;
}

.page-hero h1 {
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 0.96;
}

.page-content {
  padding: 48px 0 120px;
}

.site-footer {
  background: #1f1220;
  color: rgba(255,255,255,0.7);
  padding: 72px 42px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 54px;
}

.footer-logo {
  max-height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 16px;
}

.footer-brand p,
.site-footer ul a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.66);
}

.site-footer h3 {
  font-family: 'Aleo', serif;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { transition: color .22s ease; }
.site-footer ul a:hover { color: #ffffff; }

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}

.hero-img-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px;
  background: linear-gradient(180deg, #d8b9c5 0%, #b891a2 100%);
}
.hero-img-empty p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.88);
  text-align: center;
  line-height: 1.8;
}

@media (max-width: 1180px) {
  .container-wide { padding: 0 30px; }
  .header-inner { padding: 8px 30px; }
  .hero {
    grid-template-columns: minmax(300px, 380px) minmax(320px, 520px);
    gap: clamp(28px, 4vw, 56px);
  }
  .hero-name { font-size: clamp(2.35rem, 3.8vw, 3.55rem); }
  .what-layout { gap: 38px; }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-img,
  .hero-img img {
    min-height: 62vw;
  }
  .hero-content::before { display: none; }
  .two-col,
  .two-col-cta,
  .what-layout {
    grid-template-columns: 1fr;
  }
  .what-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .what-rails,
  .what-rails-left,
  .what-rails-right {
    border: none;
  }
  .what-rails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
  }
  .what-btn {
    width: auto;
    min-width: 0;
    padding: 14px 18px;
    border: 1px solid rgba(74,41,68,0.12);
    border-radius: 999px;
  }
  .what-btn span {
    writing-mode: horizontal-tb;
    font-size: 0.9rem;
  }
  .what-stage {
    padding: 0;
  }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar {
    font-size: 0.64rem;
    letter-spacing: 0.22em;
    padding: 9px 14px;
  }
  .header-inner { padding: 10px 18px; min-height: 72px; }
  .container-wide,
  .container-narrow { padding: 0 22px; }
  .hero-img,
  .hero-img img { min-height: 72vw; }
  .hero-content {
    padding: 42px 24px 50px;
  }
  .hero-name {
    font-size: clamp(2.45rem, 10vw, 3.5rem);
    line-height: 0.96;
    white-space: normal;
  }
  .hero-sub { font-size: 1rem; }
  .fun-grid { grid-template-columns: 1fr; }
  .section-mission,
  .section-story,
  .section-what,
  .section-fun,
  .section-cta { padding: 70px 0; }
  .mission-frame {
    padding: 30px 22px;
    border-radius: 24px;
  }
  .story-img,
  .fun-img,
  .what-img,
  .cta-img {
    padding: 12px;
    border-radius: 26px;
  }
  .story-img::before,
  .fun-img::before,
  .what-img::before,
  .cta-img::before { inset: 10px; border-radius: 18px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(247, 240, 228, 0.98);
    border-top: 1px solid var(--line);
    padding: 10px 22px 18px;
  }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(74, 41, 68, 0.08);
  }
  .nav-list a::after { display: none; }
  .nav-toggle { display: flex; }
  .site-footer { padding: 54px 24px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}


@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 18px 54px;
  }
  .hero-img {
    width: min(100%, 420px);
    justify-self: center;
  }
  .hero-content {
    max-width: 100%;
    text-align: left;
    padding: 0 6px;
  }
  .hero-name {
    max-width: 100%;
  }
}


@media (max-width: 980px) {
  .what-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .what-rails {
    order: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .what-rails-left,
  .what-rails-right {
    border: none;
  }
  .what-btn,
  .what-rails-right .what-btn {
    width: 100%;
    min-width: 0;
    min-height: 72px;
    border-left: none;
    border-right: 1px solid rgba(74, 41, 68, 0.08);
    border-top: 1px solid rgba(74, 41, 68, 0.08);
  }
  .what-btn:last-child { border-right: none; }
  .what-btn span {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    font-size: 1.25rem;
  }
  .what-btn::after {
    top: auto;
    bottom: 10px;
    left: 16px !important;
    right: 16px !important;
    width: auto;
    height: 2px;
    transform: scaleX(0.4);
  }
  .what-btn:hover::after,
  .what-btn.active::after {
    transform: scaleX(1);
  }
  .what-stage {
    order: 1;
    padding: 0 0 22px;
  }
  .what-layout {
    min-height: auto;
    border-radius: 28px;
    padding: 22px;
  }
}


/* ===== v9: book-style My Work slider ===== */
.what-shell {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 86px;
  align-items: stretch;
  min-height: 760px;
  background: #f7f5f2;
  border: 1px solid rgba(74, 41, 68, 0.12);
  border-radius: 42px;
  box-shadow: 0 26px 84px rgba(58, 35, 47, 0.08);
  overflow: hidden;
  position: relative;
}

.what-rails {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: #e9e1d4;
  position: relative;
  z-index: 2;
}

.what-rails-left {
  border-right: 1px solid rgba(74, 41, 68, 0.10);
}

.what-rails-right {
  border-left: 1px solid rgba(74, 41, 68, 0.10);
}

.what-shell.is-at-start .what-rails-left {
  background: #cfd4e4;
}

.what-shell.is-at-end .what-rails-right {
  background: #cfd4e4;
}

.what-btn {
  width: 86px;
  min-width: 86px;
  min-height: 220px;
  padding: 16px 10px;
  border: 0;
  background: transparent;
  color: rgba(31, 19, 29, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .26s ease, color .26s ease, opacity .26s ease;
  position: relative;
}

.what-btn + .what-btn {
  border-top: 1px solid rgba(74, 41, 68, 0.08);
}

.what-btn span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 1.25vw, 1.65rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.what-rails-left .what-btn {
  background: #d0d6e5;
}

.what-rails-right .what-btn {
  background: #ede6da;
}

.what-btn.active {
  color: var(--ink);
  font-weight: 600;
}

.what-btn:hover {
  filter: brightness(0.985);
}

.what-stage {
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  align-items: stretch;
  background: #f7f5f2;
  position: relative;
}

.what-panel {
  display: none;
  width: 100%;
}

.what-panel.active {
  display: block;
}

.what-panel.from-right {
  animation: whatPanelInRight .4s cubic-bezier(.22,.61,.36,1);
}

.what-panel.from-left {
  animation: whatPanelInLeft .4s cubic-bezier(.22,.61,.36,1);
}

.what-layout {
  min-height: 670px;
  align-items: stretch;
  gap: clamp(40px, 4.8vw, 74px);
  background: #fff;
  border: 1px solid rgba(74, 41, 68, 0.10);
  border-radius: 34px;
  box-shadow: 0 16px 48px rgba(74, 41, 68, 0.06);
  padding: clamp(30px, 3.2vw, 44px);
}

.what-img {
  border-radius: 34px;
  overflow: hidden;
  background: #f1ede7;
  border: 1px solid rgba(74, 41, 68, 0.10);
  box-shadow: inset 0 0 0 10px rgba(255,255,255,0.75);
}

.what-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.what-text {
  padding-top: clamp(8px, 1vw, 18px);
}

.what-text h3 {
  font-size: clamp(2.25rem, 3vw, 3.35rem);
  line-height: 0.95;
  margin-bottom: 22px;
}

.what-text p {
  max-width: 58ch;
}

@keyframes whatPanelInRight {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes whatPanelInLeft {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 980px) {
  .what-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 28px;
  }

  .what-rails {
    flex-direction: row;
    overflow-x: auto;
  }

  .what-rails-left {
    border-right: 0;
    border-bottom: 1px solid rgba(74, 41, 68, 0.10);
  }

  .what-rails-right {
    border-left: 0;
    border-top: 1px solid rgba(74, 41, 68, 0.10);
  }

  .what-btn {
    width: auto;
    min-width: 160px;
    min-height: 74px;
    flex: 0 0 auto;
    padding: 14px 18px;
  }

  .what-btn + .what-btn {
    border-top: 0;
    border-left: 1px solid rgba(74, 41, 68, 0.08);
  }

  .what-btn span {
    writing-mode: horizontal-tb;
    font-size: 1.05rem;
  }

  .what-stage {
    order: 2;
  }

  .what-layout {
    min-height: auto;
  }
}
