/* Metti in Busta — v2, futuristic */
:root {
  --bg: #070708;
  --panel: #111114;
  --panel-2: #1a1a1f;
  --ink: #f4f3ee;
  --muted: #a9a8a3;
  --hot: #ff2d95;
  --hot-fill: #e00a78; /* magenta for surfaces that carry white text (4.68:1) */
  --cyan: #18d4ff;
  --kraft: #c69c6d;

  --m: clamp(16px, 2.6vw, 40px);
  --display: "Unbounded", system-ui, sans-serif;
  --text: "Manrope", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--hot); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2.25rem, 1rem + 4.4vw, 5.25rem); line-height: 0.95; letter-spacing: -0.04em; }
.mega { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 0.6rem + 7.6vw, 9.5rem); line-height: 0.9; letter-spacing: -0.05em; }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.pill:active { transform: scale(0.96); }
.pill-hot { background: var(--hot-fill); color: #fff; }
.pill-hot:hover { background: #c4006a; }
.pill-ghost { background: rgba(255,255,255,0.12); color: var(--ink); }
.pill-ghost:hover { background: rgba(255,255,255,0.22); }
.pill-dark { background: var(--bg); color: var(--ink); }
.pill-dark:hover { background: #222; }

/* ---------- bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--m);
  transition: background-color 300ms ease, transform 400ms var(--ease-out);
}
.bar.solid { background: rgba(7,7,8,0.92); }
.bar.hide { transform: translateY(-100%); }
.bar-logo img { width: 104px; height: auto; }
.bar-nav { display: flex; gap: 28px; margin-left: auto; font-weight: 500; font-size: 0.9375rem; }
.bar-nav a { text-decoration: none; opacity: 0.85; transition: opacity 200ms; }
.bar-nav a:hover { opacity: 1; color: var(--hot); }
.bar-cta { min-height: 44px; padding: 0 20px; font-size: 0.875rem; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; transform-origin: 50% 40%; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,7,8,0.55) 0%, rgba(7,7,8,0) 22%, rgba(7,7,8,0) 50%, rgba(7,7,8,0.85) 100%); }
.hero-copy { position: absolute; left: var(--m); right: var(--m); bottom: clamp(28px, 6vh, 64px); z-index: 2; }
.hero h1 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.5rem, 0.4rem + 8.2vw, 10rem); line-height: 0.88; letter-spacing: -0.05em;
}
.split .ln { display: block; overflow: hidden; padding-bottom: 0.04em; }
.split .ln > span { display: block; }
.js .split .ln > span { transform: translateY(105%); }
.js .split.in .ln > span { transform: none; transition: transform 1200ms var(--ease-expo); }
.js .split.in .ln:nth-child(2) > span { transition-delay: 110ms; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 28px; }
.hero-sub { max-width: 40ch; color: var(--ink); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.js .hero-foot { opacity: 0; transform: translateY(20px); }
.js .hero-foot.in { opacity: 1; transform: none; transition: opacity 900ms var(--ease-expo) 450ms, transform 900ms var(--ease-expo) 450ms; }
.scroll-cue { position: absolute; left: 50%; top: 88px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 999px; background: rgba(255,255,255,0.14); z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--ink); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- 3D builder ---------- */
.build { position: relative; height: 420vh; }
.build-stage { position: sticky; top: 0; height: 100svh; overflow: clip; background: var(--bg); }
#bagCanvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; outline: none; }
#bagCanvas:active { cursor: grabbing; }
.build-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 0.9375rem; pointer-events: none; transition: opacity 400ms; }
.build-loading.done { opacity: 0; }
.build-head { position: absolute; left: var(--m); top: clamp(88px, 13vh, 130px); max-width: 30rem; z-index: 2; pointer-events: none; }
.phases { position: relative; margin-top: 24px; min-height: 3.2em; }
.phase { position: absolute; inset: 0 auto auto 0; max-width: 28ch; color: var(--muted); opacity: 0; transform: translateY(10px); transition: opacity 500ms ease, transform 500ms var(--ease-out); }
.phase.on { opacity: 1; transform: none; color: var(--ink); }
.part-label {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none;
  padding: 7px 14px; border-radius: 999px; background: rgba(17,17,20,0.85); color: var(--ink);
  font-size: 0.8125rem; font-weight: 700; white-space: nowrap;
  opacity: 0; transition: opacity 300ms ease;
}
.part-label::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--hot); margin-right: 8px; vertical-align: 1px; }
.build-meter { position: absolute; right: var(--m); top: 50%; width: 3px; height: 30vh; transform: translateY(-50%); background: rgba(255,255,255,0.12); border-radius: 3px; overflow: hidden; z-index: 2; }
.build-meter i { position: absolute; inset: 0; background: var(--hot); transform-origin: top; transform: scaleY(0); }
.build-panel {
  position: absolute; left: var(--m); bottom: clamp(16px, 4vh, 40px); z-index: 3;
  width: min(560px, calc(100% - 2 * var(--m)));
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; border-radius: 28px; background: rgba(17,17,20,0.9);
}
.bp-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bp-row input[type="text"] {
  flex: 1; min-width: 0; height: 52px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--panel-2); color: var(--ink); font-weight: 500;
}
.bp-row input::placeholder { color: var(--muted); }
.upload { position: relative; display: inline-flex; align-items: center; height: 52px; padding: 0 22px; border-radius: 999px; background: var(--panel-2); font-weight: 700; font-size: 0.9375rem; cursor: pointer; }
.upload:hover { background: #26262d; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; }
.mats, .inks { border: 0; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.mats button { height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--panel-2); color: var(--ink); font-weight: 500; font-size: 0.9375rem; cursor: pointer; transition: background-color 200ms, color 200ms; }
.mats button:hover { background: #26262d; }
.mats button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.inks { flex: 1; }
.inks button { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--panel-2); background: var(--c); cursor: pointer; transition: transform 160ms var(--ease-out), border-color 200ms; }
.inks button:hover { transform: scale(1.08); }
.inks button[aria-pressed="true"] { border-color: var(--ink); }

/* ---------- ticker ---------- */
.ticker { padding: clamp(80px, 10vw, 160px) 0; overflow: hidden; }
.ticker-row { display: flex; width: max-content; font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 9vw, 9rem); line-height: 1; letter-spacing: -0.05em; white-space: nowrap; }
.ticker-row span { padding-right: 0.3em; }
.ticker-out { color: transparent; -webkit-text-stroke: 1.5px var(--hot); margin-top: 0.1em; }

/* ---------- products (horizontal) ---------- */
.products { position: relative; }
.products-pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 40px; overflow: hidden; padding-top: 70px; }
.products-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 0 var(--m); }
.products-head p { max-width: 34ch; color: var(--muted); }
.track { display: flex; align-items: flex-start; gap: 16px; padding: 0 var(--m); width: max-content; will-change: transform; }
.slide { position: relative; width: clamp(220px, min(25vw, calc((100svh - 360px) * 0.8)), 380px); flex: none; border-radius: 24px; overflow: hidden; background: var(--panel); }
.slide img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 900ms var(--ease-out); }
.slide:hover img { transform: scale(1.05); }
.slide > div { padding: 18px 20px 22px; }
.slide h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; }
.slide p { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.slide-list { padding: 28px; display: flex; flex-direction: column; gap: 22px; background: var(--hot-fill); color: #fff; }
.slide-list h3 { font-size: 2rem; }
.slide-list li { padding: 10px 0; font-weight: 500; }
.slide-list li + li { border-top: 1px solid rgba(255,255,255,0.35); }
.slide-list .pill { background: var(--bg); margin-top: auto; }

/* ---------- press video ---------- */
.press { position: relative; height: 130svh; margin-top: clamp(80px, 10vw, 160px); }
.press-media { position: sticky; top: 0; height: 100svh; overflow: hidden; clip-path: inset(12% 10% 12% 10% round 999px); }
.press-media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.press-copy { position: absolute; left: var(--m); right: var(--m); bottom: 30svh; z-index: 2; pointer-events: none; }
.press-copy .mega { text-shadow: 0 2px 40px rgba(0,0,0,0.45); }
.press-copy p { margin-top: 20px; max-width: 36ch; font-weight: 500; text-shadow: 0 1px 12px rgba(0,0,0,0.6); }

/* ---------- real work ---------- */
.work { padding: clamp(120px, 14vw, 220px) var(--m) 0; }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; }
.work-head p { max-width: 36ch; color: var(--muted); }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.work-grid figure { position: relative; overflow: hidden; border-radius: 20px; background: var(--panel); }
.work-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out), filter 600ms ease; filter: grayscale(0.25); }
.work-grid figure:hover img { transform: scale(1.05); filter: none; }
.work-grid figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(7,7,8,0.82); font-size: 0.8125rem; font-weight: 700; }
.w-a { grid-column: 1 / 5; grid-row: span 2; aspect-ratio: 4 / 5; }
.w-a img { object-position: 50% 100%; }
.w-b { grid-column: 5 / 10; aspect-ratio: 16 / 10; }
.w-c { grid-column: 10 / 13; grid-row: span 2; }
.w-d { grid-column: 5 / 7; aspect-ratio: 1; }
.w-e { grid-column: 7 / 10; aspect-ratio: 3 / 2; }
.w-f { grid-column: 1 / 13; aspect-ratio: 21 / 6; }
.w-f img { object-position: 50% 40%; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(120px, 14vw, 220px) var(--m) 0; }
.process-pic { border-radius: 24px; overflow: hidden; }
.process-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.steps { margin-top: 48px; display: grid; gap: 8px; }
.steps li { padding: 26px 28px; border-radius: 22px; background: var(--panel); transition: background-color 300ms ease; }
.steps li:hover { background: var(--panel-2); }
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.03em; }
.steps p { margin-top: 6px; color: var(--muted); max-width: 46ch; }

/* ---------- urgent ---------- */
.urgent { margin: clamp(120px, 14vw, 220px) var(--m) 0; padding: clamp(48px, 7vw, 110px) clamp(24px, 5vw, 80px); border-radius: 32px; background: var(--hot-fill); color: #fff; }
.urgent-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 40px; }
.urgent-row p { max-width: 46ch; font-weight: 500; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; padding: clamp(120px, 14vw, 220px) var(--m) 0; }
.faq-list { display: grid; gap: 8px; }
.faq details { border-radius: 22px; background: var(--panel); transition: background-color 300ms; }
.faq details[open] { background: var(--panel-2); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 28px; font-family: var(--display); font-weight: 500; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.375rem); letter-spacing: -0.02em; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--hot); font-weight: 700; transition: transform 300ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 28px 26px; color: var(--muted); max-width: 60ch; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); padding: clamp(120px, 14vw, 220px) var(--m); }
.contact-info p { margin-top: 24px; color: var(--muted); max-width: 32ch; }
.contact-info address { margin-top: 32px; font-style: normal; line-height: 1.6; }
.contact-info a { text-decoration: none; color: var(--ink); }
.contact-info a:hover { color: var(--hot); }
.contact-form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 36px); border-radius: 28px; background: var(--panel); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px 18px; border-radius: 16px; border: 2px solid transparent; background: var(--panel-2); color: var(--ink); font-weight: 500; transition: border-color 200ms; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--cyan); }
.contact-form .bad { border-color: var(--hot); }
.contact-form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-msg { font-weight: 500; }
.form-msg a { color: var(--hot); }
.privacy { font-size: 0.8125rem; color: var(--muted); }

/* ---------- footer ---------- */
.foot { padding: 0 var(--m) 28px; overflow: hidden; }
.foot-mark { font-family: var(--display); font-weight: 900; font-size: 10.6vw; line-height: 0.8; letter-spacing: -0.06em; color: var(--hot); white-space: nowrap; margin-left: -0.04em; }
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 32px; color: var(--muted); font-size: 0.875rem; }
.foot-row nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--ink); }

/* ---------- reveals ---------- */
.js [data-r] { opacity: 0; transform: translateY(28px); }
.js [data-r].in { opacity: 1; transform: none; transition: opacity 900ms var(--ease-expo) var(--d, 0ms), transform 900ms var(--ease-expo) var(--d, 0ms); }

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .bar-nav { display: none; }
  .bar-cta { margin-left: auto; }
  .process, .contact, .faq { grid-template-columns: 1fr; }
  .process-pic { max-width: 520px; }
  .work-grid { grid-template-columns: repeat(6, 1fr); }
  .w-a { grid-column: 1 / 4; } .w-b { grid-column: 4 / 7; } .w-c { grid-column: 4 / 7; grid-row: span 1; aspect-ratio: 1; }
  .w-d { grid-column: 1 / 4; } .w-e { grid-column: 4 / 7; } .w-f { grid-column: 1 / 7; aspect-ratio: 16 / 7; }
}

/* ---------- phone ---------- */
@media (max-width: 680px) {
  .bar-logo img { width: 84px; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .pill { width: 100%; }
  .scroll-cue { display: none; }
  .build { height: 380vh; }
  .build-head { top: 76px; }
  .build-head .h2 { font-size: 2rem; }
  .phases { margin-top: 12px; font-size: 0.9375rem; }
  .build-meter { display: none; }
  .build-panel { border-radius: 22px; padding: 10px; gap: 8px; bottom: 10px; left: 10px; width: calc(100% - 20px); }
  .inks { gap: 4px; }
  .bp-row input[type="text"], .upload { height: 46px; }
  .mats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .mats button { flex: none; height: 36px; padding: 0 12px; font-size: 0.875rem; }
  .inks button { width: 34px; height: 34px; }
  .bp-row .pill { min-height: 44px; padding: 0 16px; font-size: 0.875rem; }
  .part-label { font-size: 0.75rem; padding: 5px 10px; }
  .products-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .slide { width: min(74vw, calc((100svh - 330px) * 0.8)); }
  .press { height: 110svh; }
  .press-media { clip-path: inset(18% 4% 18% 4% round 40px); }
  .press-copy { bottom: 22svh; }
  .work-head, .urgent-row { flex-direction: column; align-items: flex-start; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .w-a, .w-b, .w-c, .w-d, .w-e, .w-f { grid-column: auto; grid-row: auto; aspect-ratio: 1; }
  .w-a { grid-column: 1 / 3; aspect-ratio: 4 / 5; }
  .w-f { grid-column: 1 / 3; aspect-ratio: 16 / 9; }
  .f2 { grid-template-columns: 1fr; }
  .urgent { border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .split .ln > span, .js .hero-foot, .js [data-r] { transform: none !important; opacity: 1 !important; transition: none !important; }
  .scroll-cue span { animation: none; }
  .press-media { clip-path: none; }
}
