:root {
  --bg-white: #ffffff;
  --ink-black: #181818;
  --ink-charcoal: #2c2d30;
  --ink-slate: #4f5258;
  --brand-teal: #006a6a;
  --brand-teal-mid: #168585;
  --brand-purple: #8436b5;
  --brand-coral: #ff6e5e;
  --brand-gold: #f7b500;
  --font-mincho: "Shippori Mincho", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", sans-serif;
  --font-display: "Montserrat", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-white);
  color: var(--ink-black);
  font-family: var(--font-sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Full-screen Hero Viewport */
.hero-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: var(--bg-white);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 1920x1080 Art-Directed Stage scaled proportionally */
.hero-stage {
  position: relative;
  width: 1920px;
  height: 1080px;
  flex-shrink: 0;
  transform-origin: center center;
  background: var(--bg-white);
}

/* Fixed Left Rail (Hamburger & Vertical Philosophy) */
.left-rail {
  position: fixed;
  top: 0;
  left: 0;
  width: 112px;
  height: 100vh;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 66px;
  pointer-events: none;
}

.hamburger-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: none;
  background: var(--brand-teal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 10px 24px rgba(0, 106, 106, 0.16);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

.hamburger-btn:hover {
  transform: scale(1.06);
  background: #005858;
}

.hamburger-line {
  width: 30px;
  height: 2.2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.rail-divider {
  width: 1.5px;
  height: 72px;
  background: var(--ink-black);
  margin-top: 30px;
  margin-bottom: 24px;
  transform-origin: top center;
}

.vertical-philosophy {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-black);
  user-select: none;
}

/* Lightbulb Rig (Final resting position: upper right x:1695, y:125) */
.bulb-rig {
  position: absolute;
  left: 1695px;
  top: 122px;
  width: 176px;
  height: 176px;
  z-index: 25;
  pointer-events: none;
  will-change: transform;
}

.bulb-glow {
  position: absolute;
  inset: -26px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 212, 71, 0.62) 0%,
    rgba(247, 181, 0, 0.24) 44%,
    rgba(255, 255, 255, 0) 72%
  );
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

.bulb-svg {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Brand Lockup (Final resting position: upper left x:150, y:62) */
.brand-lockup {
  position: absolute;
  left: 150px;
  top: 62px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 30;
  will-change: transform, opacity;
}

.brand-mark {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.brand-wordmark {
  display: flex;
  align-items: baseline;
  gap: 22px;
  white-space: nowrap;
}

.brand-en {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-black);
}

.brand-ja {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-black);
}

/* Decorative Vector Layer */
.decor-layer {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  z-index: 5;
  pointer-events: none;
}

/* Upper-Right Yellow Striped Circle */
.striped-circle {
  position: absolute;
  left: 1584px;
  top: -8px;
  width: 156px;
  height: 156px;
  z-index: 6;
  pointer-events: none;
  will-change: transform, opacity;
}

.striped-circle svg {
  width: 100%;
  height: 100%;
}

/* Oversized CREATIVE DESIGN Display Typography */
.display-typo {
  position: absolute;
  left: 822px;
  top: 252px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  user-select: none;
  pointer-events: none;
}

.typo-row {
  display: flex;
  align-items: baseline;
}

.typo-row-top {
  gap: 4px;
  margin-bottom: -14px;
}

.typo-row-bottom {
  padding-left: 126px;
  gap: 8px;
}

.letter-mask {
  display: inline-block;
  overflow: hidden;
  padding: 6px 2px;
}

.display-letter {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.02em;
  will-change: transform, opacity;
}

.typo-row-top .display-letter {
  font-size: 212px;
}

.typo-row-top .display-letter[data-letter="C"] {
  font-size: 266px;
  margin-right: 4px;
}

.typo-row-bottom .display-letter {
  font-size: 208px;
}

/* Exact Approved Letter Colors & Gradients */
.c-teal {
  background: linear-gradient(155deg, #007b7b 0%, #005f5f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.c-charcoal {
  color: #242528;
}

.c-slate {
  color: #53565c;
}

.c-purple {
  background: linear-gradient(165deg, #8839ba 0%, #6f289e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.c-coral {
  color: #ff6e5e;
}

.c-black {
  color: #161719;
}

.c-gold {
  background: linear-gradient(160deg, #ffca28 0%, #f5a600 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.c-slate-grad {
  background: linear-gradient(135deg, #323438 0%, #64676e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.c-coral-grad {
  background: linear-gradient(155deg, #ff7e70 0%, #ff5e4d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Left Editorial Japanese Copy */
.editorial-copy {
  position: absolute;
  left: 152px;
  top: 256px;
  z-index: 20;
}

.jp-headline {
  font-family: var(--font-mincho);
  font-size: 112px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.02em;
  color: var(--ink-black);
  margin-bottom: 44px;
}

.jp-headline em {
  font-style: normal;
}

.jp-headline .accent-teal {
  color: var(--brand-teal-mid);
}

.line-clip {
  display: block;
  overflow: hidden;
  padding-bottom: 6px;
}

.line-inner {
  display: inline-block;
  will-change: transform, opacity;
}

.jp-subcopy {
  font-family: var(--font-sans);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.72;
  letter-spacing: 0.03em;
  color: var(--ink-black);
  margin-bottom: 58px;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  height: 78px;
  padding: 0 54px;
  border-radius: 999px;
  border: 2px solid var(--brand-teal);
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-teal);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.cta-pill:hover {
  background: var(--brand-teal);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 106, 106, 0.18);
}

.cta-arrow {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-pill:hover .cta-arrow {
  transform: translateX(6px);
}

/* Secondary Philosophy Callout */
.philosophy-callout {
  position: absolute;
  left: 1338px;
  top: 688px;
  display: flex;
  align-items: stretch;
  gap: 22px;
  z-index: 16;
}

.callout-bar {
  width: 4.5px;
  background: var(--brand-teal);
  border-radius: 2px;
  transform-origin: top center;
}

.callout-text {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.01em;
  color: var(--ink-black);
}

/* Creative Props */
.creative-props {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
}

.prop-clapper {
  position: absolute;
  left: 1002px;
  top: 656px;
  width: 154px;
  height: 158px;
}

.prop-photo {
  position: absolute;
  width: 124px;
  height: 102px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.06));
}

.photo-back {
  left: 1170px;
  top: 718px;
  transform: rotate(13deg);
}

.photo-front {
  left: 1102px;
  top: 764px;
  transform: rotate(3deg);
}

.prop-swatches {
  position: absolute;
  left: 1242px;
  top: 774px;
  width: 140px;
  height: 145px;
}

.swatch-blade {
  position: absolute;
  left: 14px;
  top: 0;
  width: 44px;
  height: 132px;
  transform-origin: 22px 118px;
}

/* Characters */
.character {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
}

.char-laptop-man {
  left: 1310px;
  top: 96px;
  width: 266px;
  height: 304px;
  z-index: 22;
}

.char-pen-woman {
  left: 736px;
  top: 484px;
  width: 304px;
  height: 398px;
  z-index: 21;
}

.char-photographer {
  left: 1656px;
  top: 562px;
  width: 248px;
  height: 342px;
  z-index: 18;
}

/* Botanical Leaves */
.botanical-leaves {
  position: absolute;
  left: 1712px;
  top: 736px;
  width: 216px;
  height: 198px;
  z-index: 19;
  pointer-events: none;
}

/* Bottom Four-Color Wave */
.bottom-wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1920px;
  height: 220px;
  z-index: 12;
  pointer-events: none;
  overflow: hidden;
}

.bottom-wave svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Prototype Controls */
.proto-controls {
  position: fixed;
  left: 24px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(24, 24, 24, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.proto-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--ink-black);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.proto-btn:hover {
  background: rgba(0, 106, 106, 0.1);
  color: var(--brand-teal);
}

.proto-btn-skip {
  background: var(--ink-black);
  color: #ffffff;
}

.proto-btn-skip:hover {
  background: var(--brand-teal);
  color: #ffffff;
}

/* Responsive Tablet & Mobile Adaptation */
@media (max-width: 1024px) {
  .left-rail {
    width: 76px;
    padding-top: 28px;
  }

  .hamburger-btn {
    width: 52px;
    height: 52px;
  }

  .hamburger-line {
    width: 22px;
  }

  .rail-divider {
    height: 44px;
    margin-top: 18px;
    margin-bottom: 14px;
  }

  .vertical-philosophy {
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .left-rail {
    width: 56px;
    padding-top: 16px;
  }

  .hamburger-btn {
    width: 42px;
    height: 42px;
    gap: 5px;
  }

  .hamburger-line {
    width: 18px;
  }

  .rail-divider,
  .vertical-philosophy {
    display: none;
  }

  .proto-controls {
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
  }
}

/* Original supplied artwork: preserve aspect ratios and existing entrance wrappers. */
.original-character,.original-logo{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;}
.original-logo{transform-origin:center!important;}
/* The original photographer PNG already contains the plant. Avoid a duplicate. */
.botanical-leaves{visibility:hidden;}

/* Hide decorative paths even before JS initializes. */
#dashedPathLeft, #dashedPathRight { opacity: 0; visibility: hidden; }

/* Final composition balance: preserve the original animation timeline. */
.display-typo { left: 770px; top: 252px; }
.typo-row-top .display-letter { font-size: 180px; }
.typo-row-top .display-letter[data-letter="C"] { font-size: 226px; }
.typo-row-bottom .display-letter { font-size: 180px; }
.typo-row-bottom { padding-left: 112px; }
.editorial-copy { left: 150px; top: 267px; }
.jp-headline { font-size: 88px; margin-bottom: 44px; }
.jp-subcopy { font-size: 23px; }
.char-laptop-man { left: 1190px; top: 78px; }
.char-pen-woman { left: 704px; top: 470px; }
.char-photographer { left: 1578px; top: 538px; }
.philosophy-callout { left: 1260px; top: 666px; }
.prop-clapper { left: 948px; }
.photo-back { left: 1116px; }
.photo-front { left: 1048px; }
.prop-swatches { left: 1188px; }
.striped-circle { left: 1516px; }
.bulb-rig { left: 1630px; }
.decor-layer { left: -54px; }
