:root {
  --bg: #000;
  --text: #f4efe8;
  --muted: rgba(244, 239, 232, 0.82);
  --accent: #d48631;
  --accent-blue: #61a9e4;
  --cream: #f2efea;
  --ink: #1a1714;
  --border: rgba(255, 255, 255, 0.18);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --sans: "Chivo", Arial, Helvetica, sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --mono: "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }

html, body {
  width: 100%; height: 100%; margin: 0;
  background: var(--bg); color: var(--text);
  font-family: var(--sans); overflow: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.viewport { width: 100vw; height: 100vh; overflow: hidden; background: #000; }

.world {
  position: fixed; inset: 0 auto auto 0;
  width: 300vw; height: 360vh;
  transform: translate(-100vw, 0);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.panel {
  position: absolute; width: 100vw; height: 100vh;
  overflow: hidden; isolation: isolate;
}

.panel-left   { left: 0;     top: 0; }
.panel-center { left: 100vw; top: 0; }
.panel-right  { left: 200vw; top: 0; }
.panel-middle { left: 100vw; top: 100vh; }
.panel-bottom { left: 100vw; top: 200vh; height: 160vh; overflow-y: auto; overflow-x: hidden; }

.panel-bg {
  position: absolute; inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.center-bg { background-image: url("assets/1bg.png"); }

.left-bg {
  background-image:
    linear-gradient(90deg, rgba(242,239,234,0.98) 0 33%, rgba(242,239,234,0) 33%),
    url("assets/1lbg.png");
  background-position: left top, right top;
  background-size: auto, auto 100%;
}

.right-bg {
  background-image:
    linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.4)),
    url("assets/1rbg.png");
  background-position: center;
  background-size: 100% auto;
}

.middle-bg { background-image: url("assets/2bg.png"); }
.middle-bg { background-image: url("assets/2bg.png"); }
.bottom-bg {
  background-image: url("assets/3bg.png");
  background-position: center top;
  background-size: 100% auto;
}

.panel-center > *, .panel-left > *, .panel-right > *,
.panel-center > *, .panel-left > *, .panel-right > *,
.panel-middle > *, .panel-bottom > * {
  position: absolute; z-index: 3;
}

/* ── HERO BRAND ── */
.hero-brand { top: 5.5%; left: 3.1%; }

.hero-wordmark {
  width: clamp(430px, 58vw, 830px); height: auto;
  filter: drop-shadow(0 0 0px rgba(212,134,49,0));
  transition: filter 0.8s ease;
}
.hero-wordmark:hover {
  filter: drop-shadow(0 0 38px rgba(212,134,49,0.38));
}

/* ── HERO COPY ── */
.hero-copy {
  top: 55%; left: 6%; transform: translateY(-50%);
  width: min(38vw, 520px);
}
.hero-copy p {
  margin: 0; font-family: var(--sans);
  font-size: clamp(1.02rem, 1.65vw, 1.58rem);
  line-height: 1.42; letter-spacing: 0.06em; font-weight: 700;
  color: rgba(255,255,255,0.96); text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-copy span, .hero-bottom-line span,
.left-product-sub span, .right-title-block span { color: var(--accent); }

/* ── HERO TITLE BAND ── */
.hero-title-band { left: 0; right: 0; bottom: 19%; height: 28%; }

.hero-verbatim, .hero-atelier {
  position: absolute; text-shadow: 0 0px 0px rgba(0,0,0,0.5);
}
.hero-verbatim { left: 31%; top: 73%; transform: translateY(-50%); width: 31%; text-align: left; }
.hero-atelier  { left: 60%; top: 38%; transform: translateY(-50%); width: 31%; text-align: right; }

.hero-verbatim p, .hero-atelier p,
.hero-bottom-line, .design-topline, .design-left-copy p, .design-right-copy p,
.left-info-card p, .left-info-card li, .right-info-card p, .right-info-card li,
.bottom-footer-nav a, .bottom-footer-nav h4 { margin: 0; }

.hero-verbatim p, .hero-atelier p {
  font-size: clamp(0.72rem,0.96vw,0.92rem); color: rgba(255,255,255,0.9);
}
.hero-verbatim p { text-align: left; padding-left: 0.1em; margin-bottom: 0.12rem; }
.hero-atelier  p { text-align: right; padding-right: 0.05em; margin-top: 0.12rem; }

.hero-verbatim h1 {
  margin: 0; font-family: var(--mono);
  font-size: clamp(2.5rem,4.7vw,4.8rem);
  line-height: 0.95; letter-spacing: 0.18em; font-weight: 400;
  transition: letter-spacing 0.5s ease, text-shadow 0.5s ease;
}
.hero-verbatim:hover h1 {
  letter-spacing: 0.26em;
  text-shadow: 0 0 28px rgba(212,134,49,0.5), 0 3px 16px rgba(0,0,0,0.5);
}

.hero-atelier h2 {
  margin: 0; font-family: var(--serif);
  font-size: clamp(2.8rem,5.2vw,5.4rem);
  line-height: 0.92; letter-spacing: 0.18em; font-weight: 500;
  transition: letter-spacing 0.5s ease, text-shadow 0.5s ease;
}
.hero-atelier:hover h2 {
  letter-spacing: 0.26em;
  text-shadow: 0 0 28px rgba(97,169,228,0.45), 0 3px 16px rgba(0,0,0,0.5);
}

/* ── HERO ARROWS ── */
.hero-arrow {
  position: absolute; z-index: 4;
  height: clamp(74px,10.8vh,115px); width: auto;
  cursor: pointer; opacity: 0.92;
  transition: transform 0.22s ease, opacity 0.22s ease, filter 0.22s ease;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.08));
}
.hero-arrow:hover { opacity: 1; filter: drop-shadow(0 0 18px rgba(255,255,255,0.28)); }
.hero-arrow-left  { left: 28.5%; top: 71.5%; transform: translateY(-50%); }
.hero-arrow-left:hover  { transform: translateY(-50%) scale(1.12) translateX(-4px); }
.hero-arrow-right { left: 91%; top: 38.5%; transform: translateY(-50%); }
.hero-arrow-right:hover { transform: translateY(-50%) scale(1.12) translateX(4px); }

.hero-bottom-line {
  left: 50%; bottom: 12.8%; transform: translateX(-50%);
  width: 60%; text-align: center;
  font-size: clamp(1.18rem,1.95vw,1.9rem);
  letter-spacing: 0.03em; text-shadow: 0 3px 12px rgba(0,0,0,0.55);
}

/* ── NAV CONTROLS ── */
.down-link, .up-link, .return-button, .outline-button, .footer-button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: rgba(0,0,0,0.3);
  color: var(--text); cursor: pointer;
}
.down-link, .up-link {
  left: 50%; transform: translateX(-50%);
  width: 48px; height: 48px; border-radius: 999px; font-size: 1.15rem;
  backdrop-filter: blur(4px);
  transition: background 0.22s, border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.down-link { bottom: 2%; }
.up-link   { top: 2%; }
.lower-down { bottom: 2%; top: auto; }
.bottom-up  { top: 2%; }
.down-link:hover, .up-link:hover {
  background: rgba(212,134,49,0.2);
  border-color: var(--accent);
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 0 16px rgba(212,134,49,0.28);
}

.return-button {
  min-height: 44px; padding: 0.7rem 1rem; border-radius: 0;
  font-size: 0.92rem; letter-spacing: 0.03em; text-transform: lowercase;
  backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.return-button:hover { transform: scale(1.05); }
.return-left {
  top: auto; left: auto; right: 2.8%; bottom: 22%;
  color: rgba(212,134,49,0.92); background: rgba(212,134,49,0.16);
  border-color: rgba(212,134,49,0.5);
}
.return-left:hover  { background: rgba(212,134,49,0.28); border-color: var(--accent); }
.return-right {
  top: auto; right: auto; left: 2.4%; bottom: 4.5%;
  color: #fff; background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.95);
}
.return-right:hover { background: rgba(255,255,255,0.1); }

.outline-button {
  min-height: 50px; padding: 0.8rem 1.2rem; border-radius: 0;
  background: transparent; font-size: 0.98rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.22s, color 0.22s, transform 0.15s, box-shadow 0.22s;
}
.outline-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.left-cta  { justify-self: start; border-color: var(--accent); color: var(--accent); }
.left-cta:hover  { background: var(--accent); color: var(--cream); }
.right-cta { justify-self: end; }
.right-cta:hover { background: rgba(255,255,255,0.08); }

/* ── LEFT PANEL ── */
.left-overlay-copy { top: 8%; right: 4%; text-align: right; color: rgba(255,255,255,0.96); }
.left-product-title { margin: 0; font-family: var(--mono); font-size: clamp(2.8rem,5.2vw,5rem); letter-spacing: 0.18em; font-weight: 400; }
.left-product-sub   { margin: 0; font-size: clamp(1.2rem,2vw,2rem); }

.left-info-card {
  top: 0; left: 0; width: min(34vw,470px); height: 100%;
  background: rgba(242,239,234,0.98); color: var(--ink);
  padding: 9vh 2.5rem 3rem; display: grid; align-content: center; gap: 1.6rem;
}
.left-info-card h2, .right-info-card h2 { margin: 0 0 0.45rem; font-size: clamp(1.1rem,1.6vw,1.45rem); }
.left-info-card h2 { color: var(--accent); }
.right-info-card h2 { color: #fff; }
.left-info-card p, .left-info-card li,
.right-info-card p, .right-info-card li { font-size: clamp(1rem,1.2vw,1.2rem); line-height: 1.35; }
.left-info-card ul, .right-info-card ul { list-style: none; padding: 0; margin: 0; }

/* ── RIGHT PANEL ── */
.right-title-block { left: 3.4%; top: 34%; transform: translateY(-50%); color: rgba(255,255,255,0.98); }
.right-title-block h1 { margin: 0; font-family: var(--serif); font-size: clamp(3rem,5.7vw,5.5rem); letter-spacing: 0.22em; font-weight: 500; }
.right-title-block p  { margin: 0; font-size: clamp(1.2rem,2vw,1.95rem); }
.right-info-card {
  top: 0; right: 0; width: min(37vw,520px); height: 100%;
  padding: 12vh 2.5rem 3rem; display: grid; align-content: center; gap: 1.7rem;
  text-align: right;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0, rgba(0,0,0,0.34) 30%, rgba(0,0,0,0.52) 100%);
}
.right-cta { justify-self: end; }

/* ── MIDDLE PANEL (DESIGN / KERNEL) — exact original 2-col layout ── */
.design-topline {
  top: 4.2%; left: 50%; transform: translateX(-50%);
  width: 86%; text-align: center;
  font-size: clamp(1.2rem,2.2vw,2.25rem); color: #111111; font-weight: 700;
}
.design-topline span { color: #c8a07f; }

.design-grid {
  top: 11%; left: 0; right: 0; height: 76%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2vw; padding: 0 2.5vw; align-items: stretch;
}

.design-left-copy h2, .kernel-title { margin: 0; font-family: var(--serif); font-weight: 500; }

.design-left-copy {
  color: #0c0c0c; align-self: start; max-width: 35vw; padding: 6vh 0 0 1vw;
}
.design-left-copy h2 {
  font-size: clamp(4rem,7vw,6.8rem); letter-spacing: 0.22em; margin-bottom: 1.4rem;
}
.design-left-copy p, .design-right-copy p, .design-right-copy li {
  font-size: clamp(1.35rem,2.35vw,2.55rem); line-height: 1.38;
}
.design-left-copy p + p { margin-top: 2rem; }

.design-right-copy {
  color: #ffffff; align-self: start; justify-self: end;
  text-align: right; max-width: 39vw; padding: 8vh 2vw 0 0;
}
.design-right-copy ul { list-style: none; padding: 0; margin: 2.2rem 0 0; }
.design-right-copy li + li { margin-top: 1.05rem; }

.kernel-title {
  right: 5.2%; left: auto; bottom: 4.5%; transform: none;
  font-family: var(--mono);
  font-size: clamp(2.6rem,4.8vw,5.2rem);
  letter-spacing: 0.22em; color: #ffffff;
  /* subtle glow animation */
  animation: kernelGlow 6s ease-in-out infinite alternate;
}
@keyframes kernelGlow {
  from { text-shadow: 0 0 8px rgba(97,169,228,0.08); opacity: 0.88; }
  to   { text-shadow: 0 0 36px rgba(97,169,228,0.38); opacity: 1; }
}



.just-button-verbatim,
.just-button-verbatim,
.just-button-atelier {
  display: block;
  width: 470px;
  max-width: 100%;
  height: auto;
}

.bottom-cta-stack {
  position: absolute;
  right: 5.4%;
  top: 18%;
  display: grid;
  gap: 1.2rem;
  justify-items: end;
}

.bottom-brand-mark {
.bottom-brand-mark {
  left: 50%; bottom: 19vh; transform: translateX(-50%);
  transition: transform 1.05s cubic-bezier(0.77,0,0.175,1), opacity 0.6s ease, filter 0.6s ease;
  z-index: 5;
}
.bottom-brand-mark img {
  width: min(35vw,520px); height: auto;
  filter: drop-shadow(0 0 12px rgba(212,134,49,0.12));
  transition: filter 0.6s ease;
}
.bottom-brand-mark img:hover {
  filter: drop-shadow(0 0 32px rgba(212,134,49,0.4));
}

.bottom-footer-nav {
  left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1.6rem; padding: 2rem 3.6vw 2.5rem;
  background: rgba(0,0,0,0.82); color: rgba(255,255,255,0.9);
  transition: opacity 0.55s ease, transform 0.75s ease;
  z-index: 5;
}
.bottom-footer-nav h4 { margin-bottom: 0.65rem; font-size: 1rem; color: #ffffff; }
.bottom-footer-nav a {
  display: block; font-size: 1rem; line-height: 1.7;
  color: rgba(255,255,255,0.88);
  transition: color 0.18s;
}
.bottom-footer-nav a:hover { color: var(--accent); }

.bottom-dark-fill {
  position: absolute; inset: auto 0 0 0; height: 34vh;
  background: rgba(0,0,0,0.92); z-index: 2; transition: opacity 0.7s ease;
}

.collapsed-site-header {
  position: fixed; top: 0; left: 0; width: 100vw; height: 118px;
  opacity: 0; pointer-events: none; z-index: 25; transition: opacity 0.65s ease;
}
.collapsed-site-header-bg {
  position: absolute; inset: 0;
  background: url("assets/5header.png") center top / cover no-repeat;
}
.collapsed-site-nav {
  position: relative; z-index: 3;
  width: min(92vw,1180px); margin: 68px auto 0;
  display: grid; grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 1rem; text-align: center;
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.55s ease 0.25s, transform 0.55s ease 0.25s;
}
.collapsed-site-nav a { color: rgba(255,255,255,0.96); font-size: clamp(0.9rem,1.05vw,1.02rem); font-weight: 700; }

.panel-bottom .panel-bg {
  transition: clip-path 1.05s cubic-bezier(0.77,0,0.175,1), opacity 0.7s ease;
  clip-path: inset(0 0 0 0);
}

body.footer-collapse-armed .panel-bottom::after {
  content: ""; position: absolute; inset: auto 0 0 0;
  height: 6px; background: rgba(212,134,49,0.38); z-index: 6;
}
body.collapse-to-header .panel-bottom .panel-bg { clip-path: inset(0 0 calc(100% - 118px) 0); }
body.collapse-to-header .bottom-cta-stack,
body.collapse-to-header .bottom-footer-nav,
body.collapse-to-header .bottom-up { opacity: 0; transform: translateY(24px); pointer-events: none; }
body.collapse-to-header .bottom-dark-fill { opacity: 1; }
body.collapse-to-header .bottom-brand-mark { transform: translate(-50%, -47vh) scale(0.72); }
body.collapse-to-header .collapsed-site-header { opacity: 1; pointer-events: auto; }
body.collapse-to-header .collapsed-site-nav { opacity: 1; transform: translateY(0); }

/* ── PANEL ENTER ANIMATIONS ── */
.panel-entering .hero-brand       { animation: fadeUp 0.55s 0.05s ease both; }
.panel-entering .hero-copy        { animation: fadeUp 0.55s 0.14s ease both; }
.panel-entering .hero-title-band  { animation: fadeUp 0.55s 0.24s ease both; }
.panel-entering .hero-bottom-line { animation: fadeUp 0.55s 0.32s ease both; }
.panel-entering .left-info-card   { animation: slideRight 0.6s 0.08s ease both; }
.panel-entering .left-overlay-copy { animation: fadeUp 0.55s 0.18s ease both; }
.panel-entering .right-title-block { animation: fadeUp 0.55s 0.08s ease both; }
.panel-entering .right-info-card   { animation: slideLeft 0.6s 0.16s ease both; }
.panel-entering .design-topline    { animation: fadeUp 0.5s 0.04s ease both; }
.panel-entering .design-grid       { animation: fadeUp 0.6s 0.16s ease both; }
.panel-entering .kernel-title      { animation: fadeUp 0.55s 0.28s ease both; }
.panel-entering .bottom-cta-stack  { animation: fadeUp 0.6s 0.1s ease both; }
.panel-entering .bottom-brand-mark { animation: fadeUp 0.55s 0.22s ease both; }
.panel-entering .bottom-footer-nav { animation: fadeUp 0.55s 0.32s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-26px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(26px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── RESPONSIVE (exact original) ── */
@media (max-width: 980px) {
  .left-info-card, .right-info-card { width: min(46vw,500px); }
  .hero-copy { width: min(47vw,520px); }
  .hero-verbatim { left: 29%; width: 31%; }
  .hero-atelier  { left: 60%; width: 33%; }
  .hero-arrow-left  { left: 26.5%; }
  .hero-arrow-right { left: 91%; }
  .design-right-copy { max-width: none; }
}
@media (max-width: 760px) {
  .left-info-card, .right-info-card, .design-grid, .bottom-footer-nav { grid-template-columns: 1fr; }
  .hero-copy { width: 62vw; }
  .hero-title-band { bottom: 22%; }
  .hero-verbatim, .hero-atelier { position: relative; left: auto; top: auto; transform: none; width: auto; margin-left: 4vw; text-align: left; }
  .hero-atelier { margin-top: 1rem; }
  .hero-atelier p { text-align: left; }
  .hero-arrow { display: none; }
  .left-info-card, .right-info-card { width: min(76vw,520px); padding-top: 11vh; }
  .design-grid { gap: 2rem; top: 18%; height: auto; }
  .design-right-copy { padding-bottom: 3vh; }
  .bottom-cta-stack { width: min(70vw,420px); right: 50%; transform: translateX(50%); }
  .bottom-brand-mark { bottom: 52vh; }
  .bottom-footer-nav { padding-bottom: 2rem; }
}