/* =========================================================
   Cadabra.club  |  Noir Atelier
   Brand: Maven Pro / #FFFFFF / #2D2926 / #CEB314
   Playfair Display loads one glyph only: the logo "C".
   ========================================================= */

:root {
  --bg: #1A1716;          /* deepest, derived from brand charcoal */
  --bg-2: #211D1B;
  --ink: #2D2926;         /* brand charcoal */
  --white: #FFFFFF;
  --text: #F3EFE9;
  --muted: #A39B92;
  --dim: #6F6862;
  --line: rgba(255,255,255,.12);
  --gold: #CEB314;

  --font: "Maven Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Didot, "Bodoni MT", Georgia, serif;

  --wrap: 1360px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --section: clamp(72px, 8vw, 120px);
  --header-h: 84px;
  --ease: cubic-bezier(.16, .84, .24, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; color: var(--white); }
button { font: inherit; color: inherit; cursor: pointer; }
i, em { font-style: normal; }
::selection { background: var(--gold); color: var(--bg); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 400; background: var(--gold); color: var(--bg); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Film grain over everything */
.grain-fixed {
  position: fixed; inset: -50%; z-index: 250; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Type ---------- */
.kicker, .index { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.kicker .rule { width: 44px; height: 1px; background: var(--gold); }
.index { margin-bottom: 24px; color: var(--muted); }
.index span { color: var(--gold); padding-right: 14px; border-right: 1px solid var(--dim); line-height: 1; }
.index span::before { content: "("; } .index span::after { content: ")"; }

.display { font-size: clamp(36px, 4.6vw, 70px); line-height: .98; font-weight: 500; letter-spacing: -.035em; text-transform: uppercase; color: var(--white); }
.lead { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; color: var(--muted); max-width: 520px; }

.head-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 72px; align-items: end; margin-bottom: clamp(36px, 4.5vw, 64px); }
.head-row .lead { justify-self: end; }

/* Split-word reveal (JS wraps words) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 40ms); }
.split.in .w > span, .rm .split .w > span { transform: none; }

/* ---------- Buttons & links ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 36px;
  font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 0; transition: color .5s var(--ease), border-color .5s var(--ease), transform .4s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.btn:hover::before { transform: scaleY(1); }
.btn-light { background: var(--white); color: var(--bg); border-color: var(--white); }
.btn-light::before { background: var(--gold); }
.btn-light:hover { border-color: var(--gold); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost::before { background: var(--white); }
.btn-ghost:hover { color: var(--bg); border-color: var(--white); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 11px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }

.link-line { position: relative; display: inline-block; padding: 6px 0; font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; color: var(--white); }
.link-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.link-line:hover::after { transform: scaleX(0); }
.link-line::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease) .12s; }
.link-line:hover::before { transform: scaleX(1); }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; transition: transform .6s var(--ease), background .5s; }
.site-header.solid { background: rgba(26,23,22,.72); backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%); box-shadow: 0 1px 0 var(--line); }
.site-header.hide { transform: translateY(-100%); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; padding: 0 var(--gutter); max-width: 1640px; margin: 0 auto; }
.brand img { width: 148px; height: auto; }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav-link { position: relative; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,.62); padding: 8px 0; transition: color .3s; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav-link:hover, .nav-link.is-active { color: var(--white); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.header-cta { margin-left: 8px; }

.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; position: relative; margin-left: auto; z-index: 2; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--white); transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-toggle span:first-child { top: 17px; } .menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 190; background: var(--bg); padding: calc(var(--header-h) + 24px) var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 16px; font-size: clamp(24px, 7vw, 36px); font-weight: 500; text-transform: uppercase; letter-spacing: -.01em; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); animation: menuIn .7s var(--ease) both; }
.mobile-menu nav a:nth-child(2) { animation-delay: .04s; } .mobile-menu nav a:nth-child(3) { animation-delay: .08s; } .mobile-menu nav a:nth-child(4) { animation-delay: .12s; }
.mobile-menu nav a:nth-child(5) { animation-delay: .16s; } .mobile-menu nav a:nth-child(6) { animation-delay: .2s; } .mobile-menu nav a:nth-child(7) { animation-delay: .24s; }
.mobile-menu nav a i { font-size: 11px; letter-spacing: .2em; color: var(--gold); }
@keyframes menuIn { from { opacity: 0; transform: translateY(24px); } }
.mobile-mail { color: var(--gold); text-decoration: none; font-size: 15px; margin-top: 32px; }

/* ---------- Intro loader ---------- */
.loader { display: none; }
.js .loader { position: fixed; inset: 0; z-index: 500; background: var(--bg); display: grid; place-items: center; transition: clip-path 1s var(--ease-io); clip-path: inset(0 0 0 0); }
.seen .loader, .rm .loader { display: none; }
.loader.out { clip-path: inset(0 0 100% 0); }
.loader-mark { position: relative; width: 70px; height: 136px; }
.loader-box { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.4); }
.loader-fill { position: absolute; inset: 0; background: var(--white); transform: scaleY(0); transform-origin: bottom; animation: fillUp .9s var(--ease-io) .1s forwards; }
.loader-c { position: absolute; left: 50%; top: 56%; transform: translate(-46%, 30px); font-family: var(--serif); font-size: 72px; line-height: 1; color: var(--bg); opacity: 0; animation: cIn .7s var(--ease) .6s forwards; }
.loader-word { position: absolute; top: calc(100% + 24px); left: 50%; width: 170px; height: auto; max-width: none; transform: translateX(-50%); opacity: 0; animation: fadeIn .7s var(--ease) .8s forwards; }
@keyframes fillUp { to { transform: scaleY(1); } }
@keyframes cIn { to { opacity: 1; transform: translate(-46%, 0); } }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100svh; background: #000; }
.pin-hero .hero { height: 200svh; }
.hero-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
/* JS animates this box from full screen down to the logo rectangle, so the video re-centers inside it */
.hero-media { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; will-change: left, top, width, height; }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--vz, 1.06)); }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, rgba(10,9,8,0), rgba(10,9,8,.55)), linear-gradient(180deg, rgba(10,9,8,.45), rgba(10,9,8,.05) 40%, rgba(10,9,8,.8)); }

.hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) clamp(56px, 10vh, 110px); max-width: 1640px; margin: 0 auto; will-change: transform, opacity; }
.hero-copy .kicker { color: var(--white); margin-bottom: clamp(18px, 3vh, 32px); }
.hero-title { font-size: clamp(52px, 9vw, 164px); line-height: .86; font-weight: 500; letter-spacing: -.05em; text-transform: uppercase; color: var(--white); }
.hero-title .hl { display: block; overflow: hidden; padding-bottom: .05em; margin-bottom: -.05em; }
.hero-title .hl > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.hero-title .hl:nth-child(2) > span { transition-delay: .09s; } .hero-title .hl:nth-child(3) > span { transition-delay: .18s; }
.hero-title em { color: transparent; -webkit-text-stroke: 1.5px var(--white); }
.ready .hero-title .hl > span, .rm .hero-title .hl > span, html:not(.js) .hero-title .hl > span { transform: none; }
.hero-sub, .hero-cta { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease) .4s, transform 1s var(--ease) .4s; }
.ready .hero-sub, .ready .hero-cta, .rm .hero-sub, .rm .hero-cta, html:not(.js) .hero-sub, html:not(.js) .hero-cta { opacity: 1; transform: none; }
.hero-sub { margin-top: clamp(20px, 3vh, 36px); max-width: 460px; font-size: clamp(16px, 1.3vw, 19px); color: rgba(255,255,255,.8); line-height: 1.6; }
.hero-cta { margin-top: clamp(20px, 3vh, 32px); display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; }

.hero-logo { position: absolute; inset: 0; pointer-events: none; }
.hero-c { position: absolute; left: 0; top: 0; font-family: var(--serif); font-weight: 400; line-height: 1; color: var(--white); opacity: 0; will-change: transform, opacity; }
.c-base { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.hero-word { position: absolute; left: 0; top: 0; height: auto; max-width: none; opacity: 0; will-change: transform, opacity; }

.hero-end { position: absolute; left: 0; right: 0; bottom: clamp(24px, 4vh, 48px); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 var(--gutter); opacity: 0; pointer-events: none; }
.hero-end p { font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); line-height: 1.8; }
.hero-end.on { pointer-events: auto; }

.hero-scroll { position: absolute; right: var(--gutter); bottom: clamp(24px, 4vh, 48px); display: flex; align-items: center; gap: 14px; font-size: 10px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.hero-scroll i { width: 1px; height: 54px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--white); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Shared: tabs ---------- */
.tab-panel[hidden] { display: none; }
.tab-panel.is-on { animation: panelIn .7s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.tab-row { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab-row button { position: relative; background: none; border: 0; padding: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); transition: color .3s; }
.tab-row button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.tab-row button:hover { color: var(--muted); }
.tab-row button.is-on { color: var(--white); }
.tab-row button.is-on::after { transform: scaleX(1); }
.tab-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; overflow: hidden; }
.tab-bar b { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.is-on > .tab-bar b { transform: scaleX(1); }
.auto-run .is-on > .tab-bar b { animation: bar var(--dur, 5s) linear forwards; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- 01 Atelier ---------- */
.atelier { padding: var(--section) 0; background: var(--bg); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.pillar { position: relative; overflow: hidden; background: #000; }
.pillar:nth-child(2) { transition-delay: .1s; } .pillar:nth-child(3) { transition-delay: .2s; }
.pillar-img { aspect-ratio: 4 / 5; overflow: hidden; }
.pillar-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.9); transform: scale(1.06); transition: transform 1.6s var(--ease), filter .8s var(--ease); }
.pillar:hover .pillar-img img { transform: scale(1.12); filter: brightness(1); }
.pillar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,8,.6), rgba(10,9,8,0) 22%, rgba(10,9,8,0) 50%, rgba(10,9,8,.85)); pointer-events: none; }
.pillar-n { position: absolute; z-index: 1; left: 24px; top: 22px; font-size: 12px; font-weight: 600; letter-spacing: .24em; color: var(--gold); }
.pillar h3 { position: absolute; z-index: 1; left: 24px; bottom: 20px; font-size: clamp(28px, 3vw, 46px); line-height: 1; font-weight: 500; letter-spacing: -.035em; text-transform: uppercase; color: var(--white); }
.atelier-foot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 72px; align-items: start; margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.atelier-quote { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.2; font-weight: 500; letter-spacing: -.02em; text-transform: uppercase; color: var(--white); max-width: 640px; }
.atelier-quote em { color: var(--gold); }
.atelier-note { color: var(--muted); max-width: 520px; justify-self: end; }

/* ---------- 02 What We Create (compact picker) ---------- */
.create { padding: clamp(64px, 7vw, 100px) 0; background: var(--bg-2); }
.create-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px clamp(40px, 6vw, 96px); align-items: center; }
.display-sm { font-size: clamp(30px, 3.4vw, 50px); }
.pick-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pick-row button {
  min-height: 44px; padding: 0 18px; background: none; border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--muted); transition: color .3s, border-color .3s, background .3s;
}
.pick-row button:hover { color: var(--white); border-color: rgba(255,255,255,.6); }
.pick-row button.is-on { background: var(--white); border-color: var(--white); color: var(--bg); }
.pick-desc { margin-top: 22px; padding-left: 18px; border-left: 2px solid var(--gold); min-height: 3.4em; }
.pick-desc p { color: var(--text); font-size: 17px; line-height: 1.6; max-width: 600px; }

/* ---------- 03 Lab (flip viewer) ---------- */
.lab { padding: var(--section) 0; background: var(--ink); overflow: hidden; }
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.viewer-stage { position: relative; perspective: 1400px; width: min(100%, 440px, calc((100svh - 220px) * 900 / 983)); justify-self: center; }
.viewer-card { position: relative; aspect-ratio: 900 / 983; background: #E8E8E8; overflow: hidden; transform-style: preserve-3d; box-shadow: 0 40px 80px rgba(0,0,0,.35); }
.viewer-card img { width: 100%; height: 100%; object-fit: cover; }
.viewer-tag { position: absolute; left: 16px; top: 16px; font-size: 10px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--bg); background: rgba(255,255,255,.85); padding: 7px 10px; pointer-events: none; }
.v-arrow { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(26,23,22,.55); backdrop-filter: blur(6px); color: var(--white); font-size: 18px; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.v-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.v-prev { left: -26px; } .v-next { right: -26px; }
.v-count { font-size: 12px; font-weight: 600; letter-spacing: .26em; color: var(--muted); }
.v-count b { color: var(--gold); }
.v-name { margin-top: 10px; font-size: clamp(52px, 6vw, 96px); line-height: .9; font-weight: 500; letter-spacing: -.05em; text-transform: uppercase; color: var(--white); }
.v-desc { margin-top: 16px; color: var(--muted); max-width: 420px; min-height: 3.3em; }
.swatches { display: flex; gap: 8px; margin-top: 16px; }
.swatches span { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); }
.v-thumbs { display: flex; gap: 10px; margin-top: 32px; }
.v-thumbs button { width: 64px; aspect-ratio: 900 / 983; padding: 0; border: 1px solid transparent; background: #E8E8E8; overflow: hidden; opacity: .4; transition: opacity .3s, border-color .3s, transform .4s var(--ease); }
.v-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.v-thumbs button:hover { opacity: .8; }
.v-thumbs button.is-on { opacity: 1; border-color: var(--gold); transform: translateY(-4px); }
.v-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }

/* ---------- 04 How It Works (expanding panels) ---------- */
.how { padding: var(--section) 0; background: var(--bg); }
.panels { display: flex; gap: 14px; height: clamp(420px, 58vh, 560px); }
.panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 18px; background: var(--ink); cursor: pointer; transition: flex-grow .8s var(--ease); }
.panel.is-on { flex-grow: 5.2; cursor: default; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.45); transform: scale(1.08); transition: filter .8s var(--ease), transform 1.4s var(--ease); }
.panel.is-on img { filter: none; transform: scale(1); }
.panel:not(.is-on):hover img { filter: grayscale(.4) brightness(.6); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,8,.55), rgba(10,9,8,0) 34%, rgba(10,9,8,0) 45%, rgba(10,9,8,.92)); pointer-events: none; }
.panel-hit { position: absolute; inset: 0; z-index: 3; width: 100%; background: none; border: 0; padding: 0; cursor: inherit; }
.panel.is-on .panel-hit { pointer-events: none; }
.panel-n { position: absolute; z-index: 2; left: 50%; top: 22px; transform: translateX(-50%); font-size: clamp(36px, 3.6vw, 56px); line-height: 1; font-weight: 500; letter-spacing: -.04em; color: var(--white); transition: left .8s var(--ease), transform .8s var(--ease), color .4s; pointer-events: none; }
.panel.is-on .panel-n { left: 28px; transform: none; color: var(--gold); }
.panel-body { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 30px; max-width: 520px; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .15s, transform .15s, visibility 0s .15s; pointer-events: none; }
.panel.is-on .panel-body { opacity: 1; visibility: visible; transform: none; transition: opacity .7s var(--ease) .35s, transform .7s var(--ease) .35s, visibility 0s; pointer-events: auto; }
.panel-body h3 { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.02; font-weight: 500; letter-spacing: -.03em; text-transform: uppercase; color: var(--white); margin-bottom: 12px; white-space: nowrap; }
.panel-body p { color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.6; }
.panel-bar { position: absolute; z-index: 2; left: 28px; right: 28px; top: 0; height: 2px; overflow: hidden; opacity: 0; }
.panel.is-on .panel-bar { opacity: 1; }
.panel-bar b { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.auto-run .panel.is-on .panel-bar b { animation: bar var(--dur, 6s) linear forwards; }

/* ---------- 05 Pricing + Why ---------- */
.pricing { padding: var(--section) 0; background: var(--bg-2); }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price { padding: clamp(32px, 4vw, 56px) clamp(0px, 4vw, 56px) clamp(32px, 4vw, 56px) 0; display: flex; flex-direction: column; }
.price + .price { padding-left: clamp(24px, 4vw, 56px); padding-right: 0; border-left: 1px solid var(--line); }
.price-label { font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.price-fig { margin-top: 20px; font-size: clamp(110px, 14vw, 220px); line-height: .76; font-weight: 500; letter-spacing: -.07em; font-variant-numeric: tabular-nums; color: var(--white); }
.price-unit { margin-top: 20px; font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--white); }
.price-words { margin-top: 20px; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.02; font-weight: 500; letter-spacing: -.035em; text-transform: uppercase; color: var(--white); }
.price-words em { color: var(--gold); }
.price-note { margin-top: auto; padding-top: 28px; color: var(--muted); max-width: 380px; }

.why { margin-top: clamp(56px, 7vw, 96px); }
.why-title { font-size: clamp(28px, 3vw, 44px); line-height: 1; font-weight: 500; letter-spacing: -.03em; text-transform: uppercase; color: var(--white); margin-bottom: 24px; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; border-top: 1px solid rgba(255,255,255,.4); }
.why-item { padding: 24px 22px 20px 0; }
.why-item + .why-item { padding-left: 22px; border-left: 1px solid var(--line); }
.why-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 22px; gap: 16px 12px; align-items: end; }
.why-item summary::-webkit-details-marker { display: none; }
.why-item summary img { grid-column: 1 / -1; width: 44px; height: 40px; object-fit: contain; object-position: left center; filter: invert(1); opacity: .9; }
.why-item summary span { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.05; font-weight: 500; letter-spacing: -.01em; text-transform: uppercase; color: var(--white); }
.why-item summary small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .22em; color: var(--muted); margin-bottom: 8px; }
.why-item summary i { position: relative; width: 22px; height: 22px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; transition: transform .5s var(--ease), border-color .3s, background .3s; }
.why-item summary i::before, .why-item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1px; background: var(--white); transform: translate(-50%, -50%); }
.why-item summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .3s; }
.why-item[open] summary i { transform: rotate(180deg); border-color: var(--gold); background: var(--gold); }
.why-item[open] summary i::before { background: var(--bg); }
.why-item[open] summary i::after { opacity: 0; }
.why-item summary:hover i { border-color: var(--white); }
.why-item p { margin-top: 16px; padding-top: 14px; border-top: 1px solid transparent; border-image: linear-gradient(90deg, var(--gold) 28px, transparent 28px) 1; color: var(--muted); font-size: 15px; }
.why-item[open] p { animation: panelIn .6s var(--ease) both; }

/* ---------- 06 Contact ---------- */
.contact { padding: var(--section) 0; background: var(--ink); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact .lead { margin-top: 20px; }
.contact-direct { margin-top: 36px; border-top: 1px solid var(--line); }
.contact-direct li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-direct span { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.contact-direct a { text-decoration: none; overflow-wrap: anywhere; text-align: right; color: var(--white); transition: color .3s; }
.contact-direct a:hover { color: var(--gold); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field { position: relative; margin-bottom: 24px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; padding: 0; }
.field > label span, .field > legend span { color: var(--gold); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 17px; color: var(--white); background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.28); border-radius: 0; padding: 8px 0 10px; transition: border-color .3s; }
.field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.28); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field.invalid input { border-color: #E9907A; }
.err { display: none; font-size: 13px; color: #F2A897; margin-top: 6px; }
.field.invalid .err { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip b { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; font-weight: 500; font-size: 14px; letter-spacing: .03em; color: var(--white); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; transition: background .3s, color .3s, border-color .3s; }
.chip:hover b { border-color: var(--white); }
.chip input:checked + b { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.chip input:focus-visible + b { outline: 2px solid var(--gold); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; min-height: 1.5em; font-size: 15px; }
.form-status.ok { color: var(--gold); }
.form-status.bad { color: #F2A897; }
.form-status a { color: inherit; }

/* ---------- Footer ---------- */
.footer { background: #141211; color: var(--white); padding-top: 56px; }
.footer-top { display: grid; grid-template-columns: auto 1fr auto; gap: 32px 56px; align-items: center; padding-bottom: 40px; }
.footer-logo img { width: 84px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; }
.footer-nav a { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,.6); transition: color .3s; }
.footer-nav a:hover { color: var(--gold); }
.footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.footer-mail { font-size: 16px; text-decoration: none; }
.footer-mail:hover { color: var(--gold); }
.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; transition: border-color .3s, background .3s; }
.socials a:hover { border-color: var(--gold); background: rgba(206,179,20,.1); }
.socials svg { width: 17px; height: 17px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.socials svg .fill { fill: var(--white); stroke: none; }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--line); }
.footer-base p, .to-top { font-size: 12px; letter-spacing: .08em; color: rgba(255,255,255,.45); }
.to-top { text-decoration: none; text-transform: uppercase; letter-spacing: .2em; font-weight: 600; }
.to-top:hover { color: var(--gold); }

/* ---------- Generic reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1280px) { .nav { gap: 22px; } }
@media (max-width: 1100px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .why-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .head-row, .atelier-foot { grid-template-columns: 1fr; }
  .atelier-note { justify-self: start; }
  .head-row .lead { justify-self: start; }
  .create-grid { grid-template-columns: 1fr; }
  .viewer { grid-template-columns: 1fr; }
  .viewer-stage { width: min(100%, 400px); }
  .v-prev { left: 10px; } .v-next { right: 10px; }
  /* Process panels stack vertically */
  .panels { flex-direction: column; height: auto; gap: 10px; }
  .panel { flex: none; height: 76px; transition: height .8s var(--ease); }
  .panel.is-on { height: 460px; }
  .panel-n { left: 22px; top: 50%; transform: translateY(-50%); font-size: 34px; }
  .panel:not(.is-on) .panel-n::after { content: attr(data-title); margin-left: 16px; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75); vertical-align: middle; white-space: nowrap; }
  .panel.is-on .panel-n { left: 22px; top: 22px; transform: none; }
  .panel-body { left: 22px; right: 22px; bottom: 22px; }
  .panel-body h3 { white-space: normal; }
  .panel-bar { left: 22px; right: 22px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; justify-items: start; }
  .footer-nav { justify-content: flex-start; }
  .footer-contact { align-items: flex-start; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .brand img { width: 122px; }
  .hero-title { font-size: clamp(38px, 12.8vw, 76px); }
  .hero-title em { -webkit-text-stroke-width: 1.1px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .link-line { align-self: flex-start; }
  .hero-scroll, .hero-end p { display: none; }
  .hero-end { justify-content: center; }
  .pillars { grid-template-columns: 1fr; gap: 12px; }
  .pillar-img { aspect-ratio: 4 / 3; }
  .pillar-n { left: 18px; top: 16px; }
  .pillar h3 { left: 18px; bottom: 16px; font-size: 30px; }
  .atelier-quote { font-size: 20px; }
  .v-name { font-size: 56px; }
  .v-thumbs button { width: 52px; }
  .v-cta { flex-direction: column; align-items: stretch; }
  .v-cta .link-line { align-self: flex-start; }
  .panel.is-on { height: 500px; }
  .panel-body p { font-size: 15px; }
  .price-grid { grid-template-columns: 1fr; }
  .price, .price + .price { padding: 32px 0; border-left: 0; }
  .price + .price { border-top: 1px solid var(--line); }
  .why-grid { grid-template-columns: 1fr; }
  .why-item, .why-item + .why-item, .why-item:nth-child(3) { padding: 20px 0; border-left: 0; }
  .why-item + .why-item { border-top: 1px solid var(--line); }
  .why-item summary { grid-template-columns: 44px 1fr 22px; align-items: center; }
  .why-item summary img { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-direct li { flex-direction: column; gap: 2px; }
  .contact-direct a { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .grain-fixed { display: none; }
}

/* iOS Low Power Mode blocks autoplay and draws its own play button: hide it, the poster stands in until first touch */
.hero-media video { pointer-events: none; }
.hero-media video::-webkit-media-controls,
.hero-media video::-webkit-media-controls-panel,
.hero-media video::-webkit-media-controls-overlay-play-button,
.hero-media video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; opacity: 0 !important; }
