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

/* ─── ROOT ─── */
:root {
  --bg:   #f5f3f0;
  --fg:   #ffffff;
  --mid:  rgba(255,255,255,0.5);
  --red:  #d63030;
  --f:    "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --margin: clamp(40px, 4cm, 140px);
}

html { background: #3a3448; }

body {
  font-family: var(--f);
  background: var(--bg);
  color: var(--fg);
  text-transform: uppercase;
  overflow-x: hidden;
  cursor: crosshair;
}

/* ══════════════════════════════════════
   SPLASH
══════════════════════════════════════ */
#splash {
  display: none;
}

#splash-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.splash-brand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  z-index: 1;
}

#enter-btn {
  position: absolute;
  top: 22%;
  left: 11%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 1px solid var(--fg);
  background: transparent;
  font-family: var(--f);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-align: center;
  color: var(--fg);
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s, color 0.3s;
}
#enter-btn:hover { background: var(--fg); color: var(--bg); }

/* ══════════════════════════════════════
   SITE
══════════════════════════════════════ */
#site {
  opacity: 1;
  visibility: visible;
}

/* ─── Flower scroll canvas ─── */
#flower-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}
#ascii-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 1;
}
#flower-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.30);
  z-index: 2;
  pointer-events: none;
}

/* ─── Fixed: 3D canvas ─── */
#model-wrap {
  display: none;
}

/* Sections above overlay, transparent so flower shows through */
section { background: transparent !important; z-index: 4 !important; }

/* ─── Fixed: Selected Works ─── */
.ui-works {
  position: absolute;
  bottom: 2cm;
  left: calc(var(--margin) - 2cm);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  border: none;
  border-radius: 99px;
  clip-path: inset(0 round 99px);
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: #0c0c0c;
  background: #0c0c0c;
  overflow: hidden;
  transition: opacity 0.15s;
  cursor: pointer;
}
.ui-works::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.6);
  pointer-events: none;
  z-index: 2;
}
#liquid-metal-works {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#liquid-metal-works canvas { display: block; width: 100% !important; height: 100% !important; }
.ui-works > span {
  position: relative;
  z-index: 1;
  mix-blend-mode: normal;
  color: #ffffff;
}
.ui-works:hover { opacity: 0.9; }

/* ─── Iridescent border spin ─── */
@property --iri-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes iriSpin {
  to { --iri-angle: 360deg; }
}



/* ─── Left vertical scrolling marquee ─── */
.left-marquee {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: calc(160px + 2cm);
  width: 18px;
  overflow: hidden;
  z-index: 49;
  pointer-events: none;
}
.left-marquee-track {
  position: absolute;
  top: 0;
  left: 3px;
  display: flex;
  flex-direction: column;
}
.left-marquee-track span {
  display: block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  word-spacing: -0.05em;
  color: #fff;
  white-space: nowrap;
  padding: 8px 0;
}

/* ══════════════════════════════════════
   SECTIONS — shared
══════════════════════════════════════ */
section {
  position: relative;
  z-index: 2;
  width: 100vw;
  min-height: 100vh;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
#s-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: calc(120px - 2cm) calc(var(--margin) - 2cm) 80px;
  text-align: left;
}

.hero-logo {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(200px, 28vw, 420px);
  height: auto;
  pointer-events: none;
  user-select: none;
}

.hero-brand {
  position: absolute;
  top: 1cm;
  right: 1cm;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  border-radius: 0;
  width: 374px;
  height: 202px;
  clip-path: path('M 108 4 Q 117 0 125 0 L 360 0 Q 374 0 374 20 L 374 101 Q 374 111 365 114 L 299 140 Q 292 143 292 153 L 292 183 Q 292 202 273 202 L 91 202 Q 81 202 81 193 L 81 130 Q 81 120 73 120 L 9 120 Q 0 120 0 111 L 0 57 Q 0 47 9 42 L 108 4 Z');
  background: #0c0c0c;
  color: #0c0c0c;
  overflow: hidden;
  white-space: nowrap;
}
.hero-brand::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: path('M 108 4 Q 117 0 125 0 L 360 0 Q 374 0 374 20 L 374 101 Q 374 111 365 114 L 299 140 Q 292 143 292 153 L 292 183 Q 292 202 273 202 L 91 202 Q 81 202 81 193 L 81 130 Q 81 120 73 120 L 9 120 Q 0 120 0 111 L 0 57 Q 0 47 9 42 L 108 4 Z');
  border: 1px solid rgba(255,255,255,0.6);
  pointer-events: none;
  z-index: 2;
}
#liquid-metal-brand {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#liquid-metal-brand canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-brand-logo {
  position: relative;
  z-index: 1;
  width: clamp(200px, 26vw, 340px);
  height: auto;
  display: block;
  mix-blend-mode: screen;
  transform: translateY(-0.5cm);
}
.hero-center { margin-top: -2cm; }

.hero-center {
  width: 100%;
  text-align: center;
}

.hero-title {
  font-size: clamp(64px, 13vw, 170px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-align: left;
}

.hero-for {
  display: none;
}
.hero-for .x { font-size: 0.65em; margin: 0 10px; }

.hero-body {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  word-spacing: -0.05em;
  line-height: 1.7;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Right barcode */
.hero-barcode {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 180px;
  opacity: 0.7;
  overflow: hidden;
}
.hero-barcode img { width: 100%; height: 100%; object-fit: cover; }

.scroll-cta {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  animation: pulse-cta 2s ease-in-out infinite;
}

@keyframes pulse-cta {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ══════════════════════════════════════
   STUDIO
══════════════════════════════════════ */
#s-studio {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 48px max(var(--margin), calc((100% - 900px) / 2)) calc(80px + 2cm) max(var(--margin), calc((100% - 900px) / 2));
  gap: 40px;
  position: relative;
  min-height: auto;
}

.prod-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 900px;
}
.prod-nav a {
  text-decoration: none;
  color: var(--fg);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  word-spacing: -0.05em;
  white-space: nowrap;
}
.prod-nav a em {
  font-style: normal;
  font-weight: 300;
  margin-left: 3px;
  opacity: 0.6;
}

.studio-claim {
  font-size: clamp(16px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0em;
  word-spacing: -0.14em;
  width: 100%;
  max-width: 900px;
  text-align: justify;
}
.studio-claim .emoji { font-size: 0.85em; }

/* Inline mini badge inside claim text */
.inline-mini {
  display: inline-block;
  font-size: 0.38em;
  font-weight: 500;
  border: 1px solid var(--fg);
  padding: 2px 5px;
  letter-spacing: 0.08em;
  vertical-align: middle;
  line-height: 1.7;
  margin: 0 4px;
  white-space: nowrap;
}

.studio-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
  max-width: 900px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 16px;
  padding: 40px;
}
.studio-cols p {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  word-spacing: -0.05em;
  line-height: 1.7;
  text-align: justify;
}

/* Button is absolute bottom-right like the original */
.read-btn {
  position: absolute;
  bottom: 48px;
  right: var(--margin);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--fg);
  padding: 7px 16px;
  background: transparent;
  font-family: var(--f);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.read-btn:hover { background: var(--fg); color: var(--bg); }

/* ── Fixed persistent product badge ── */
.fixed-badge {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 200;
  border: 1px solid var(--fg);
  padding: 10px 14px;
  text-align: center;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  line-height: 1.3;
}
.fixed-badge b {
  display: block;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.fixed-badge small {
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

/* ── Large section background text (left edge, per section) ── */
.sec-txt {
  position: absolute;
  left: 0;
  bottom: 0;
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 200;
  letter-spacing: 0.03em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--fg);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
  white-space: nowrap;
}

/* ══════════════════════════════════════
   SCANNER / PRODUCT CARD
══════════════════════════════════════ */
#s-scan {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 30px var(--margin);
}

/* ─── Card ─── */
.pcard {
  width: 260px;
  min-height: 500px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #fff;
  position: relative;
}
.pcard-sm { min-height: auto; width: 280px; margin: 0 auto; }

.pc-top {
  padding: 14px 14px 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.pc-num {
  min-width: 80px;
}
.pc-num b {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
}
.num-track {
  position: relative;
  height: 32px;
}
.num-track b {
  position: absolute;
  top: 0;
  left: 0;
}
.num-track .num-next {
  opacity: 0;
}
.label-track {
  position: relative;
  height: 26px;
  overflow: hidden;
}
.label-track small {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.5;
}
.label-track .label-next {
  opacity: 0;
  transform: translateX(40px);
}
.pc-num small {
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.5;
}
.pc-tag {
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: rgba(255,255,255,0.9);
  max-height: 60px;
  overflow: hidden;
}

.pc-mid {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  min-height: 0;
  gap: 10px;
}
.pc-slogan {
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: rgba(255,255,255,0.9);
  flex-shrink: 0;
  margin: 0;
}

/* --- Card Visual Containers --- */
.pc-visual {
  flex: 1;
  height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
}

/* --- Visual 1: Scale --- */
.visual-scale {
  padding: 8px;
}
.svg-inventory {
  width: 100%;
  height: 110px;
}
.scale-readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -8px;
  font-family: monospace;
  text-align: center;
}
.scale-label {
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}
.scale-value {
  font-size: 13px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.05em;
  margin: 2px 0;
}
.scale-status {
  font-size: 6px;
  color: rgba(255,255,255,0.5);
  border: 0.5px solid rgba(255,255,255,0.3);
  padding: 1px 5px;
  border-radius: 9px;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

/* --- Visual 2: Archive Client Card --- */
.visual-archive {
  padding: 10px;
}
.client-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
}
.cc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cc-name {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.cc-id {
  font-size: 7px;
  color: rgba(255,255,255,0.3);
}
.cc-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 5px 0;
}
.cc-section {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}
.cc-sec-title {
  font-size: 6px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
}
.cc-swatches {
  display: flex;
  gap: 4px;
}
.cc-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0.5px solid rgba(255,255,255,0.2);
}
.cc-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
}
.cc-detail-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 6.5px;
  color: rgba(255,255,255,0.6);
}
.cc-detail-row span:last-child {
  color: #fff;
  font-weight: 500;
}
.cc-badge-ppd {
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 5.5px;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.cc-tagline {
  font-size: 5.5px;
  color: rgba(255,255,255,0.25);
  text-align: right;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* --- Visual 3: Admin Graph --- */
.visual-admin {
  padding: 8px 10px;
}
.admin-dashboard {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ad-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ad-title {
  font-size: 6px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
}
.ad-value {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.05em;
  font-family: monospace;
}
.ad-change {
  font-size: 6.5px;
  color: #a8dadc;
  letter-spacing: 0.05em;
  margin-top: -1px;
}
.ad-graph {
  flex: 1;
  display: flex;
  align-items: center;
  margin: 4px 0;
}
.svg-graph {
  width: 100%;
  height: 55px;
  overflow: visible;
}
.ad-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 5px;
}
.ad-submetric {
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: flex-start;
}
.ad-submetric span {
  font-size: 5.5px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}
.ad-submetric b {
  font-size: 8px;
  font-weight: 500;
}

/* --- Visual 4: Booking Schedule --- */
.visual-booking {
  padding: 10px;
}
.visual-loyalty {
  padding: 10px;
}
.loyalty-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
}
.lc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lc-name {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.lc-tier {
  font-size: 6.5px;
  letter-spacing: 0.08em;
  border: 0.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
  padding: 1px 5px;
  border-radius: 2px;
}
.lc-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.lc-pts-section {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.lc-pts-label {
  font-size: 6px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
}
.lc-pts-value {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.lc-progress-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lc-progress-track {
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  overflow: hidden;
}
.lc-progress-fill {
  height: 100%;
  width: 87%;
  background: rgba(255,255,255,0.5);
  border-radius: 1px;
}
.lc-tier-row {
  display: flex;
  justify-content: space-between;
  font-size: 5.5px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}
.lc-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lc-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 6.5px;
  color: rgba(255,255,255,0.5);
}
.lc-meta-row span:last-child {
  color: #fff;
  font-weight: 500;
}
.lc-reward {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(168,218,220,0.07);
  border: 0.5px solid rgba(168,218,220,0.3);
  border-radius: 3px;
  padding: 4px 6px;
}
.lc-reward-label {
  font-size: 6px;
  color: #a8dadc;
  letter-spacing: 0.08em;
}
.lc-reward-value {
  font-size: 9px;
  font-weight: 500;
  color: #a8dadc;
}
.booking-calendar {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}
.bc-time-marker {
  font-size: 6px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
  text-align: left;
}
.bc-slot {
  border-radius: 4px;
  padding: 5px 6px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}
.bc-slot.empty {
  border: 1px dashed rgba(255,255,255,0.1);
  background: transparent;
}
.bc-slot-time {
  font-size: 6px;
  color: rgba(255,255,255,0.4);
}
.bc-slot-action {
  font-size: 5.5px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
}
.bc-slot.booked {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.bc-booked-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}
.bc-client {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.bc-service {
  font-size: 6px;
  color: rgba(255,255,255,0.6);
}
.bc-stylist {
  font-size: 5px;
  color: rgba(255,255,255,0.4);
}
.bc-status-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a8dadc;
  box-shadow: 0 0 4px #a8dadc;
}

.pc-bot {
  border-top: 1px solid rgba(0,0,0,0.12);
  padding: 10px 12px;
}
.pc-bc-wrap { margin-bottom: 6px; }
.pc-barcode {
  width: 110px;
  height: 32px;
  object-fit: cover;
  object-position: left center;
}

.pc-purchased {
  display: inline-block;
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 99px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.15em;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.pc-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pc-metrics { font-size: 7.5px; color: #fff; }
.pm {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 2px 0;
  letter-spacing: 0.04em;
}
.pm.header { font-weight: 600; }
.pc-ing {
  font-size: 8.5px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.03em;
  text-transform: none;
  color: rgba(255,255,255,0.9);
}

/* ══════════════════════════════════════
   DETAIL SECTIONS (large type)
══════════════════════════════════════ */
.detail-sec {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 60px var(--margin) 80px var(--margin);
  min-height: 100vh;
  position: relative;
}

/* --- Description Side-by-Side Layout --- */
.desc-side-by-side {
  display: grid !important;
  grid-template-columns: 4fr 6fr !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 40px max(var(--margin), calc((100% - 1100px) / 2)) !important;
  gap: 60px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: auto !important;
  flex-direction: row !important;
}

.desc-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  box-sizing: border-box;
}

.desc-left .large-claim {
  font-size: clamp(24px, 2.8vw, 42px) !important;
  font-weight: 300 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
  word-spacing: normal !important;
  text-align: left !important;
  margin: 0 !important;
  text-transform: uppercase !important;
  width: 100% !important;
  max-width: 100% !important;
}

.desc-right {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  box-sizing: border-box;
}

/* ── Detail #01 specific ── */
.detail-01 { justify-content: center; }

.d-badge--center {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.d-title--01 {
  font-size: clamp(80px, 14vw, 210px);
  font-weight: 200;
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-align: center;
  width: 100%;
}

/* Inline image placeholder within title */
.d-inline-img {
  display: inline-block;
  width: clamp(60px, 7vw, 110px);
  height: clamp(60px, 7vw, 110px);
  background: #ccc;
  vertical-align: middle;
  margin: 0 8px;
  border-radius: 2px;
  overflow: hidden;
}

.d-icons-row {
  position: absolute;
  bottom: 32px;
  right: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  border: 1px solid var(--fg);
  padding: 6px 16px;
}

.d-badge {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 12px 14px;
  text-align: center;
  line-height: 1.3;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.d-badge b {
  display: block;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.d-badge small {
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.d-title {
  font-size: clamp(56px, 10.5vw, 150px);
  font-weight: 200;
  line-height: 0.93;
  letter-spacing: -0.03em;
}

.d-icons {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  border: 1px solid var(--fg);
  padding: 6px 18px;
}
.d-hot {
  position: absolute;
  bottom: 80px;
  right: var(--margin);
  font-size: clamp(16px, 3.4vw, 44px);
  font-weight: 400;
  letter-spacing: 0em;
  word-spacing: -0.14em;
  text-align: right;
  line-height: 1.1;
}

.circle-badge {
  position: absolute;
  bottom: 60px;
  left: 140px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid var(--fg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.06em;
  gap: 3px;
  line-height: 1.3;
}

.d-sub {
  position: absolute;
  bottom: calc(28px + 3cm);
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(16px, 3.4vw, 44px);
  font-weight: 400;
  letter-spacing: 0em;
  word-spacing: -0.14em;
  white-space: nowrap;
}

/* ══════════════════════════════════════
   DESCRIPTION SECTIONS (body text)
══════════════════════════════════════ */
.desc-sec {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2cm var(--margin) 0;
  gap: 8px;
  min-height: auto;
}
#s-desc-01   { margin-top: -7cm; }
#s-detail-02 { margin-top: -19cm; }
#s-desc-02   { margin-top: -2cm; }
#s-detail-03 { margin-top: -19cm; }
#s-desc-03   { margin-top: -2cm; }
#s-detail-04 { margin-top: -10cm; }
#s-desc-04   { margin-top: -12cm; }


.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  width: 100%;
  max-width: 900px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 16px;
  padding: 40px;
}
.three-col p,
.two-col p {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  word-spacing: -0.05em;
  line-height: 1.7;
  text-align: justify;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  width: 100%;
  max-width: 900px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 16px;
  padding: 40px;
}

.large-claim {
  font-size: clamp(16px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0em;
  word-spacing: -0.14em;
  text-align: center;
  width: 100%;
  max-width: 900px;
  margin-top: 1cm;
}

/* Inline tags within large text */
.itag {
  display: inline-block;
  font-size: 0.3em;
  font-weight: 500;
  border: 1px solid var(--fg);
  padding: 3px 7px;
  letter-spacing: 0.1em;
  vertical-align: middle;
  margin: 0 5px;
  line-height: 1.7;
}

/* ── Extra product card sections ── */
.s-scan-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 60px var(--margin);
}

/* ── Detail #04 — Silencio-style layout ── */
.detail-04 {
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 80px;
}
.d04-top {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
}
.d04-badge {
  border: 1px solid var(--fg);
  padding: 16px 20px;
  text-align: center;
  line-height: 1.3;
  flex-shrink: 0;
}
.d04-badge b {
  display: block;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
}
.d04-badge small {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
}
.d04-title {
  flex: 1;
  line-height: 0.95;
}
.desc-04 {
  align-items: flex-start;
}
.d04-split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  width: 100%;
  max-width: 900px;
}
.d04-sub {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 200;
  line-height: 1.0;
  letter-spacing: 0em;
  word-spacing: -0.14em;
}
.d04-body p + p { margin-top: 16px; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 90vh;
  z-index: 50;
  background: rgba(255,255,255,0.28);
  backdrop-filter: blur(60px);
  -webkit-backdrop-filter: blur(60px);
  border-top: 1px solid rgba(255,255,255,0.4);
  color: #0c0c0c;
  padding: 36px var(--margin) 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 48px 48px 0 0;
}
.footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-links {
  display: flex;
  gap: 32px;
}
.footer-links a {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--bg);
  transition: opacity 0.3s;
}
.footer-links a:hover { opacity: 0.5; }

.footer-back {
  position: absolute;
  top: 48px;
  right: var(--margin);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: none;
  clip-path: inset(0 round 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  color: #0c0c0c;
  background: #0c0c0c;
  overflow: hidden;
  transition: opacity 0.15s ease;
  cursor: pointer;
}
/* shader layer */
#liquid-metal-back {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 0;
}
#liquid-metal-back canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
/* text above shader */
.footer-back span {
  position: relative;
  z-index: 1;
  mix-blend-mode: multiply;
  color: #0c0c0c;
}
/* white border outside clip */
.footer-back::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  pointer-events: none;
  z-index: 2;
}
.footer-back:hover { opacity: 0.9; }

.footer-headline {
  font-size: clamp(60px, 11vw, 150px);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.02em;
  word-spacing: -0.14em;
  text-align: center;
  margin-bottom: 12px;
}
.footer-subhead {
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(0,0,0,0.55);
  text-align: center;
  margin-bottom: 20px;
}
.footer-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 160px));
  gap: 0 clamp(20px, 2.5vw, 36px);
  justify-content: center;
  width: fit-content;
  margin: 0 auto 20px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(0,0,0,0.12);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.plan-name {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 200;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 14px;
}
.plan-rule {
  height: 1px;
  background: rgba(0,0,0,0.15);
  margin-bottom: 14px;
}
.plan-desc {
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.07em;
  line-height: 1.75;
  color: rgba(0,0,0,0.65);
}
.footer-bridge {
  text-align: center;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.9;
  color: rgba(0,0,0,0.55);
  margin-bottom: 1cm;
}

.footer-talk {
  position: relative;
  display: block;
  width: fit-content;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  min-width: 260px;
  font-size: clamp(22px, 3.5vw, 48px);
  font-weight: 200;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #0c0c0c;
  background: #0c0c0c;
  border: none;
  border-radius: 999px;
  clip-path: inset(0 round 999px);
  text-align: center;
  padding: clamp(10px, 1.5vw, 20px) clamp(40px, 5vw, 80px);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.15);
  transition: opacity 0.15s ease;
  cursor: pointer;
}
#liquid-metal-btn {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#liquid-metal-btn canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.footer-talk span {
  position: relative;
  z-index: 1;
  mix-blend-mode: multiply;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #0c0c0c;
}
.footer-talk::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  pointer-events: none;
  z-index: 2;
}
.footer-talk:hover { opacity: 0.92; }
.footer-talk:active { opacity: 1; }

@keyframes btnBounce {
  0%   { transform: translateY(0); }
  25%  { transform: translateY(-10px); }
  50%  { transform: translateY(0); }
  70%  { transform: translateY(-5px); }
  85%  { transform: translateY(0); }
  95%  { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}
.footer-talk.bouncing {
  animation: btnBounce 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

.footer-note {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(0,0,0,0.5);
  margin-top: 10px;
}
.footer-copy {
  position: absolute;
  left: 10px;
  bottom: 60px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: rgba(0,0,0,0.4);
  white-space: nowrap;
}

/* ══════════════════════════════════════
   LENIS
══════════════════════════════════════ */
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ══════════════════════════════════════
   REVEAL UTILITY
══════════════════════════════════════ */
.will-reveal {
  opacity: 0;
  transform: translateY(28px);
}

/* ══════════════════════════════════════
   MOBILE — max 768px
══════════════════════════════════════ */
@media (max-width: 768px) {

  html, body { overflow-x: hidden; max-width: 100vw; }
  #flower-canvas, #ascii-overlay, #flower-overlay { width: 100% !important; left: 0; right: 0; }
  #s-hero .hero-title { font-size: 50px !important; }

  /* ── ASCII overlay: lighter on mobile ── */
  #ascii-overlay { opacity: 0.4; }

  /* ── Fixed UI ── */
  .ui-works {
    position: fixed;
    top: 16px;
    left: 16px;
    bottom: auto;
    padding: 8px 18px;
    font-size: 10px;
  }

  /* ── Hero — stacked: shape → title → pill ── */
  #s-hero {
    padding: 175px 24px 48px;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
    min-height: 100vh;
  }
  .hero-brand {
    position: absolute !important;
    top: 3mm !important;
    left: auto !important;
    right: 3mm !important;
    transform: none !important;
    margin: 0 !important;
    width: 269px;
    height: 145px;
    clip-path: path('M 78 3 Q 84 0 90 0 L 258 0 Q 269 0 269 14 L 269 73 Q 269 80 263 81 L 215 101 Q 210 103 210 110 L 210 131 Q 210 145 196 145 L 66 145 Q 58 145 58 138 L 58 94 Q 58 86 53 86 L 6 86 Q 0 86 0 80 L 0 41 Q 0 34 6 30 L 78 3 Z') !important;
  }
  .hero-brand::after {
    clip-path: path('M 78 3 Q 84 0 90 0 L 258 0 Q 269 0 269 14 L 269 73 Q 269 80 263 81 L 215 101 Q 210 103 210 110 L 210 131 Q 210 145 196 145 L 66 145 Q 58 145 58 138 L 58 94 Q 58 86 53 86 L 6 86 Q 0 86 0 80 L 0 41 Q 0 34 6 30 L 78 3 Z') !important;
  }
  .hero-brand-logo { width: 220px; }
  .hero-center { margin-top: 1cm !important; margin-bottom: 0; }
  .hero-title {
    font-size: 50px !important;
    -webkit-text-size-adjust: none;
    text-align: left;
    line-height: 0.95;
    word-break: break-word;
  }
  .hero-for { display: none; }
  .ui-works {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 1cm auto 0;
    padding: 10px 24px;
    font-size: 11px;
  }

  /* ── Left marquee ── */
  .left-marquee { display: none; }

  /* ── Sections ── */
  section { min-height: auto !important; }
  #s-hero { min-height: auto !important; }

  /* ── Studio section ── */
  #s-studio { padding: 60px 24px; }
  .studio-claim { font-size: clamp(22px, 6vw, 36px); }
  .studio-cols { grid-template-columns: 1fr; gap: 16px; }
  .two-col, .three-col { grid-template-columns: 1fr; gap: 16px; }

  /* ── Detail sections ── */
  .detail-sec { padding: 60px 24px; min-height: auto; }
  .d-title { font-size: clamp(40px, 12vw, 72px); }
  .d-title--01 { font-size: clamp(48px, 14vw, 90px); }

  /* ── Desc sections ── */
  .desc-side-by-side {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 24px !important;
    padding: 32px 24px !important;
  }
  .desc-left {
    width: 100% !important;
  }
  .desc-left .large-claim {
    font-size: clamp(24px, 6vw, 32px) !important;
    text-align: left !important;
    padding: 0 !important;
  }
  .desc-right {
    width: 100% !important;
  }

  /* ── Desc sections ── */
  /* ── Reset ALL desktop negative margins ── */
  #s-desc-01, #s-desc-02, #s-desc-03, #s-desc-04 { margin-top: 0; }
  #s-detail-02, #s-detail-03, #s-detail-04 { margin-top: 0; }

  /* ── Consistent section spacing ── */
  .s-scan-card { padding: 32px 24px; }
  #s-studio   { padding: 40px 24px; }
  #s-scan     { padding: 0; }
  .pcard      { width: 240px; }

  /* ── Detail 04 ── */
  .d04-split { grid-template-columns: 1fr; gap: 24px; }

  /* ── Nav ── */
  nav.studio-nav { display: block; }
  .prod-nav {
    flex-wrap: wrap;
    gap: 12px 0;
    justify-content: flex-start;
  }
  .prod-nav a {
    width: 50%;
    font-size: 10px;
  }

  /* ── Footer ── */
  #footer {
    position: relative;
    padding: 32px 24px 120px;
    border-radius: 24px 24px 0 0;
    min-height: auto;
    height: auto;
  }
  .footer-back {
    width: 56px; height: 56px;
    top: 24px; right: 24px;
    font-size: 7px;
  }
  .footer-headline { font-size: clamp(36px, 12vw, 60px); }
  .footer-subhead { font-size: 12px; }
  .footer-plans {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 20px 24px;
    margin-bottom: 24px;
    padding: 20px 0 24px;
  }
  .footer-bridge { font-size: 10px; }
  .footer-talk {
    min-width: 200px;
    font-size: clamp(18px, 5vw, 28px);
    padding: 8px 32px;
  }

  /* ── Scroll CTA ── */
  .scroll-cta {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    font-size: 9px;
    text-align: center;
    width: 100%;
    margin-top: 1cm;
  }

  /* ── Navigation pills in nav ── */
  .d-badge { font-size: 9px; padding: 8px 10px; }
  .d-badge--center {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    align-self: center;
    margin-bottom: 20px;
  }
  .detail-01 { justify-content: flex-start !important; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(40px, 15vw, 60px); }
  .footer-plans { grid-template-columns: repeat(2, 1fr); }
  .footer-headline { font-size: clamp(30px, 12vw, 48px); }
  #footer { padding: 28px 20px 20px; }
}
