/* ═══════════════════════════════════════════════════════════
   CAFFEINE MEDIA
   Apple-style product page · Caffeine brown & crema palette
   ═══════════════════════════════════════════════════════════ */

/* ── Tokens ────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --paper:        #FBF9F7;
  --paper-2:      #F3EDE6;
  --paper-3:      #EAE0D5;
  --night:        #161010;
  --night-2:      #221715;

  /* Ink */
  --ink:          #1D1512;
  --ink-2:        #6B5B51;
  --ink-3:        #9A897D;
  --cream:        #F6EFE8;
  --cream-2:      #BFAEA1;

  /* Brand */
  --roast:        #7A3F22;
  --roast-deep:   #4A2413;
  --crema:        #C87F42;
  --crema-lt:     #E3AC75;
  --link:         #B0632C;

  /* Geometry */
  --grid:         980px;
  --wide:         1180px;
  --r-btn:        10px;
  --r-lg:         28px;
  --r-md:         18px;
  --r-sm:         12px;

  /* Motion */
  --ease:         cubic-bezier(.28,.11,.32,1);
  --ease-out:     cubic-bezier(.16,1,.3,1);
  --t:            .5s var(--ease);

  --nav-h:        52px;

  --shadow-sm:    0 1px 2px rgba(35,20,12,.06), 0 4px 14px rgba(35,20,12,.05);
  --shadow-md:    0 2px 6px rgba(35,20,12,.07), 0 18px 44px rgba(35,20,12,.09);
  --shadow-lg:    0 4px 12px rgba(35,20,12,.09), 0 32px 70px rgba(35,20,12,.14);

  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
          "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.012em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: normal; color: var(--link); font-weight: 600; }
strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: fixed; top: 8px; left: 50%; translate: -50% -200%;
  z-index: 999; padding: 12px 22px; border-radius: var(--r-btn);
  background: var(--ink); color: var(--paper); font-weight: 600;
  transition: translate .25s var(--ease-out);
}
.skip:focus { translate: -50% 0; }

/* ── Scroll rail ───────────────────────────────────────── */
.scroll-rail {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120;
  background: transparent; pointer-events: none;
}
.scroll-rail__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--roast), var(--crema), var(--crema-lt));
  transition: width .1s linear;
}

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(251,249,247,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(29,21,18,.09);
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .45s var(--ease);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-top { background: rgba(251,249,247,.28); border-bottom-color: transparent; }

.nav__inner {
  max-width: var(--wide); height: 100%; margin: 0 auto;
  padding: 0 22px; display: flex; align-items: center; gap: 20px;
}
.nav__brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.nav__mark { width: 28px; height: 28px; transition: transform .5s var(--ease-out); }
.nav__brand:hover .nav__mark { transform: rotate(-8deg) scale(1.08); }
.nav__name { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }

.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 7px 13px; border-radius: var(--r-btn);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); background: rgba(29,21,18,.05); }
.nav__links a.is-active { color: var(--roast); font-weight: 600; }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; translate: -50% 0;
  width: 14px; height: 2px; border-radius: 2px; background: var(--crema);
  animation: dash .4s var(--ease-out);
}
@keyframes dash { from { width: 0; opacity: 0 } to { width: 14px; opacity: 1 } }

/* ── Nav: Apps & Games dropdown ── */
.nav__dropdown { position: relative; display: flex; align-items: center; }
.nav__dropdown-trigger {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: var(--r-btn);
  font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav__dropdown-trigger:hover,
.nav__dropdown.is-open .nav__dropdown-trigger { color: var(--ink); background: rgba(29,21,18,.05); }
.nav__dropdown-chev {
  width: 7px; height: 7px; margin-top: -2px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); transition: transform .3s var(--ease-out);
}
.nav__dropdown.is-open .nav__dropdown-chev { transform: rotate(225deg); margin-top: 2px; }

.nav__dropdown-menu {
  position: absolute; top: 100%; right: 0; margin-top: 10px;
  min-width: 260px; padding: 8px;
  background: var(--paper); border: 1px solid rgba(29,21,18,.08);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease-out), visibility .25s;
}
.nav__dropdown.is-open .nav__dropdown-menu { opacity: 1; visibility: visible; transform: none; }

.nav__dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: var(--r-sm);
  transition: background .2s var(--ease);
}
.nav__dropdown-item:hover { background: rgba(29,21,18,.05); }
.nav__dropdown-item img { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.nav__dropdown-item strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.nav__dropdown-item small { display: block; margin-top: 1px; font-size: 12px; color: var(--ink-3); }

.nav__cta {
  flex-shrink: 0; padding: 8px 16px; border-radius: var(--r-btn);
  background: var(--roast); color: #fff; font-size: 13px; font-weight: 600;
  transition: transform .3s var(--ease-out), background .3s var(--ease);
}
.nav__cta:hover { background: var(--roast-deep); transform: scale(1.04); }
.nav__cta:active { transform: scale(.97); }

.nav__burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.nav__burger span {
  position: absolute; left: 13px; width: 18px; height: 1.6px; border-radius: 2px;
  background: var(--ink); transition: transform .4s var(--ease-out), opacity .3s;
}
.nav__burger span:nth-child(1) { top: 19px; }
.nav__burger span:nth-child(2) { top: 25px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ── Mobile sheet ── */
.sheet {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: rgba(251,249,247,.96);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  padding: 14px 22px 40px;
  display: none; flex-direction: column;
  overflow-y: auto;
  opacity: 0; transition: opacity .32s var(--ease);
}
.sheet:not([hidden]) { display: flex; }
.sheet.is-open { opacity: 1; }
.sheet__links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 4px; font-size: 22px; font-weight: 600; letter-spacing: -.02em;
  border-bottom: 1px solid rgba(29,21,18,.08);
  opacity: 0; transform: translateY(14px);
}
.sheet.is-open .sheet__links a { animation: sheetIn .5s var(--ease-out) forwards; }
.sheet.is-open .sheet__links a:nth-child(1) { animation-delay: .04s }
.sheet.is-open .sheet__links a:nth-child(2) { animation-delay: .08s }
.sheet.is-open .sheet__links a:nth-child(3) { animation-delay: .12s }
.sheet.is-open .sheet__links a:nth-child(4) { animation-delay: .16s }
.sheet.is-open .sheet__links a:nth-child(5) { animation-delay: .20s }
.sheet.is-open .sheet__links a:nth-child(6) { animation-delay: .24s }
@keyframes sheetIn { to { opacity: 1; transform: none } }

.chev {
  width: 8px; height: 8px; border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3); transform: rotate(-45deg);
  transition: transform .3s var(--ease-out);
}
.sheet__links a:hover .chev { transform: rotate(-45deg) translate(3px, 3px); }

.sheet__label {
  margin-top: 18px; padding: 0 4px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
}
.sheet__app { display: flex; align-items: center; gap: 12px; }
.sheet__app img { width: 28px; height: 28px; border-radius: 8px; }

.sheet__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 16px; justify-items: start; }
.sheet__mail { font-size: 14px; color: var(--ink-2); }

/* ═══════════ BUTTONS & LINKS ═══════════ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--r-btn);
  font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  transition: transform .35s var(--ease-out), background .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: var(--roast); color: #fff; }
.btn--primary:hover { background: var(--roast-deep); }
.btn--ghost { background: rgba(29,21,18,.06); color: var(--ink); }
.btn--ghost:hover { background: rgba(29,21,18,.1); }
.ico { width: 19px; height: 19px; fill: currentColor; flex-shrink: 0; }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; padding: calc(var(--nav-h) + 74px) 22px 72px;
  text-align: center; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -12%, #FFFDFB 0%, var(--paper) 46%, var(--paper-2) 100%);
}
.hero__glow {
  position: absolute; top: -22%; left: 50%; translate: -50% 0;
  width: min(1100px, 130vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(200,127,66,.22) 0%, rgba(200,127,66,.08) 38%, transparent 68%);
  filter: blur(30px); pointer-events: none;
}
.hero__inner { position: relative; max-width: var(--grid); margin: 0 auto; }

.hero__logo {
  width: clamp(190px, 26vw, 280px); margin: 0 auto 6px;
  opacity: 0; transform: scale(.9) translateY(16px);
  animation: logoIn 1.1s var(--ease-out) .05s forwards;
}
@keyframes logoIn { to { opacity: 1; transform: none } }

.hero__title {
  font-size: clamp(44px, 8.4vw, 92px);
  line-height: 1.04; font-weight: 700; letter-spacing: -.035em;
  margin-bottom: 22px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span {
  display: block; transform: translateY(105%);
  animation: lineUp .95s var(--ease-out) forwards;
}
.hero__title .line:nth-child(1) > span { animation-delay: .28s }
.hero__title .line:nth-child(2) > span { animation-delay: .38s }
.hero__title .line:nth-child(3) > span { animation-delay: .48s }
@keyframes lineUp { to { transform: none } }

.grad {
  background: linear-gradient(100deg, var(--roast) 8%, var(--crema) 52%, var(--crema-lt) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: lineUp .95s var(--ease-out) .48s forwards;
}

.hero__sub {
  max-width: 660px; margin: 0 auto 30px;
  font-size: clamp(18px, 2.2vw, 22px); line-height: 1.45;
  color: var(--ink-2); letter-spacing: -.016em;
  opacity: 0; animation: fadeUp .9s var(--ease-out) .68s forwards;
}
.hero__sub strong { color: var(--ink); }

.hero__actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .9s var(--ease-out) .78s forwards;
}
.hero__note {
  margin-top: 16px; font-size: 13px; color: var(--ink-3);
  opacity: 0; animation: fadeUp .9s var(--ease-out) .88s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px) }
  to   { opacity: 1; transform: none }
}

/* ═══════════ SECTION FURNITURE ═══════════ */
.section { padding: clamp(80px, 11vw, 150px) 22px; }
.section--dark { background: var(--night); color: var(--cream); }
.section--tint { background: var(--paper-2); }

.head { max-width: var(--grid); margin: 0 auto clamp(44px, 6vw, 76px); text-align: center; }
.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  color: var(--link); margin-bottom: 12px;
}
.eyebrow--light { color: var(--crema-lt); }
.head__title {
  font-size: clamp(34px, 5.6vw, 62px); line-height: 1.06;
  font-weight: 700; letter-spacing: -.032em;
}
.head__title--light { color: var(--cream); }
.head__sub {
  max-width: 620px; margin: 20px auto 0;
  font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); letter-spacing: -.014em;
}

/* Scroll reveal */
[data-rise] {
  opacity: 0; transform: translateY(34px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-rise].is-in { opacity: 1; transform: none; }

/* ═══════════ CREDENTIALS ═══════════ */
.creds { max-width: var(--grid); margin: 0 auto; padding: 8px 22px clamp(60px, 8vw, 100px); text-align: center; }
.creds__label { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 20px; letter-spacing: .04em; text-transform: uppercase; }
.creds__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; }
.creds__list li {
  font-size: clamp(14px, 1.7vw, 17px); font-weight: 600; color: var(--ink-2);
  opacity: .72; transition: opacity .3s var(--ease), color .3s var(--ease);
  cursor: default;
}
.creds__list li:hover { opacity: 1; color: var(--roast); }

/* ═══════════ BENTO ═══════════ */
.bento {
  max-width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.tile {
  position: relative; overflow: hidden;
  padding: 30px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid rgba(29,21,18,.07);
  box-shadow: var(--shadow-sm);
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out),
              opacity .85s var(--ease-out), border-color .4s var(--ease);
  will-change: transform;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(200,127,66,.34); }
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }

.tile--dark {
  background: linear-gradient(150deg, var(--night-2) 0%, var(--night) 62%, #2C1A14 100%);
  color: var(--cream); border-color: rgba(255,255,255,.1);
}
.tile--dark .tile__body { color: var(--cream-2); }
.tile--dark .tile__kicker { color: var(--crema-lt); }

.tile--accent {
  background: linear-gradient(165deg, #FFF7EF 0%, #F6E4D0 58%, #EFD3B7 100%);
  border-color: rgba(200,127,66,.28);
}
.tile--soft { background: linear-gradient(150deg, #FFFDFB 0%, var(--paper-2) 100%); }

.tile__glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,127,66,.4), transparent 66%);
  filter: blur(46px); top: -140px; right: -110px; pointer-events: none;
  transition: opacity .6s var(--ease); opacity: .55;
}
.tile:hover .tile__glow { opacity: 1; }

.tile__kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--link); margin-bottom: 11px;
}
.tile__title {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 700;
  letter-spacing: -.028em; line-height: 1.14; margin-bottom: 12px;
}
.tile__body { font-size: 16px; line-height: 1.5; color: var(--ink-2); letter-spacing: -.01em; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.chips li {
  padding: 6px 13px; border-radius: var(--r-btn);
  font-size: 12.5px; font-weight: 600;
  background: rgba(255,255,255,.1); color: inherit;
  border: 1px solid rgba(255,255,255,.16);
  transition: transform .3s var(--ease-out), background .3s var(--ease);
}
.tile--soft .chips li,
.chips--light li { background: rgba(29,21,18,.05); border-color: rgba(29,21,18,.09); color: var(--ink-2); }
.section--dark .chips--light li { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: var(--cream-2); }
.chips li:hover { transform: translateY(-2px); }

/* Depth illustration */
.depth {
  position: relative; margin-top: 26px; height: 190px;
  border-radius: var(--r-md); overflow: hidden;
  background: linear-gradient(180deg, #FFF9F2, #F0DCC5);
  border: 1px solid rgba(122,63,34,.14);
}
.depth__layer {
  position: absolute; left: 50%; border-radius: 10px;
  border: 1.5px solid rgba(122,63,34,.42);
  background: rgba(255,255,255,.5);
  translate: -50% 0;
}
.depth__layer--1 { width: 46%; height: 44%; top: 30%; background: rgba(122,63,34,.14); }
.depth__layer--2 { width: 64%; height: 56%; top: 24%; opacity: .68; }
.depth__layer--3 { width: 82%; height: 68%; top: 18%; opacity: .4; }
.depth__tag {
  position: absolute; left: 12px; bottom: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--roast); opacity: .8;
}

.live-dot {
  position: absolute; top: 26px; right: 26px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: var(--r-btn);
  background: rgba(176,60,44,.1); color: #A33A2A;
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
}
.live-dot i {
  width: 7px; height: 7px; border-radius: 50%; background: #C0392B;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(192,57,43,.5) }
  50%      { opacity: .55; box-shadow: 0 0 0 7px rgba(192,57,43,0) }
}

/* ═══════════ RESTORATION STEPS ═══════════ */
.pin { background: var(--night); color: var(--cream); padding: clamp(80px, 11vw, 150px) 22px; }
.pin__grid {
  max-width: var(--wide); width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: start;
}
.pin__title {
  font-size: clamp(34px, 5vw, 58px); line-height: 1.06;
  font-weight: 700; letter-spacing: -.032em; margin-bottom: 34px;
}

.steps { display: grid; gap: 10px; }
.step {
  display: flex; gap: 18px; padding: 20px 22px; border-radius: var(--r-md);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09);
}
.step__no {
  font-size: 13px; font-weight: 800; color: var(--crema-lt);
  letter-spacing: .06em; padding-top: 3px;
}
.step h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.step p { font-size: 15.5px; line-height: 1.5; color: var(--cream-2); }

.pin__stage { display: grid; gap: 16px; }
.formats { display: grid; gap: 10px; }
.formats__row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-radius: var(--r-md);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.formats__row span:first-child { font-size: 15px; font-weight: 600; }
.formats__row span:last-child { font-size: 13px; color: var(--crema-lt); font-weight: 700; letter-spacing: .04em; }

/* ═══════════ GALLERY ═══════════ */
.gallery { max-width: var(--wide); margin: 0 auto; position: relative; }
.gallery__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 4px 24px; scrollbar-width: none;
  scroll-behavior: smooth;
}
.gallery__track::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 min(360px, 82vw); scroll-snap-align: start;
  padding: 28px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid rgba(29,21,18,.07);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card--feature {
  background: linear-gradient(158deg, var(--night-2), var(--night) 70%, #33201A);
  color: var(--cream); border-color: rgba(255,255,255,.1);
}
.card--feature .card__body { color: var(--cream-2); }
.card--feature .card__role { color: var(--crema-lt); }
.card--feature .card__top { color: var(--cream-2); border-bottom-color: rgba(255,255,255,.14); }

.card__top {
  display: flex; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid rgba(29,21,18,.09);
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
}
.card__title { font-size: 26px; font-weight: 700; letter-spacing: -.028em; margin-bottom: 7px; }
.card__role { font-size: 14px; font-weight: 600; color: var(--link); margin-bottom: 13px; }
.card__body { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }

.gallery__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.round {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(29,21,18,.06);
  display: grid; place-items: center;
  transition: background .3s var(--ease), transform .3s var(--ease-out), opacity .3s;
}
.round:hover { background: rgba(29,21,18,.12); transform: scale(1.08); }
.round:active { transform: scale(.94); }
.round[disabled] { opacity: .3; cursor: default; }
.round[disabled]:hover { transform: none; background: rgba(29,21,18,.06); }
.arr {
  width: 8px; height: 8px;
  border-top: 1.9px solid var(--ink); border-right: 1.9px solid var(--ink);
}
.arr--r { transform: rotate(45deg);  margin-left: -3px; }
.arr--l { transform: rotate(-135deg); margin-right: -3px; }
.arr--u { transform: rotate(-45deg); margin-top: 3px; }

/* ═══════════ STUDIO ═══════════ */
.studio { max-width: var(--grid); margin: 0 auto; }
.studio__intro { text-align: center; margin-bottom: clamp(48px, 7vw, 80px); }
.studio__lede {
  max-width: 700px; margin: 24px auto 0;
  font-size: clamp(16.5px, 1.9vw, 19px); line-height: 1.58; color: var(--cream-2);
}
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.stat {
  padding: 28px 18px; border-radius: var(--r-md); text-align: center;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09);
  transition: background .4s var(--ease), transform .4s var(--ease-out);
}
.stat:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.stat__n {
  display: block; font-size: clamp(38px, 5.5vw, 56px); font-weight: 700;
  letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(140deg, var(--crema-lt), var(--crema));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__l { display: block; margin-top: 10px; font-size: 13px; color: var(--cream-2); letter-spacing: -.005em; }

.studio__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.col__h {
  font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--crema-lt); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.list { display: grid; gap: 11px; }
.list li { font-size: 15.5px; line-height: 1.4; }
.list .muted { color: var(--cream-2); font-size: 14px; }

/* ═══════════ PROCESS ═══════════ */
.proc {
  max-width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.proc__item {
  position: relative; padding: 32px 26px 30px;
  border-radius: var(--r-lg); background: #fff;
  border: 1px solid rgba(29,21,18,.07); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out),
              opacity .85s var(--ease-out);
}
.proc__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.proc__no {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; margin-bottom: 18px;
  background: linear-gradient(140deg, var(--roast), var(--crema));
  color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(122,63,34,.26);
}
.proc__item h3 { font-size: 22px; font-weight: 700; letter-spacing: -.024em; margin-bottom: 9px; }
.proc__item p { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }

/* ═══════════ FAQ ═══════════ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.qa {
  border-radius: var(--r-md); background: #fff;
  border: 1px solid rgba(29,21,18,.08); overflow: hidden;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.qa[open] { box-shadow: var(--shadow-md); border-color: rgba(200,127,66,.3); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 24px; cursor: pointer; list-style: none;
  font-size: clamp(16.5px, 1.9vw, 19px); font-weight: 600; letter-spacing: -.018em;
  transition: color .3s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--roast); }
.plus {
  position: relative; width: 15px; height: 15px; flex-shrink: 0;
  transition: transform .42s var(--ease-out);
}
.plus::before, .plus::after {
  content: ""; position: absolute; inset: 50% 0 auto 0;
  height: 1.9px; border-radius: 2px; background: var(--link);
  transition: transform .42s var(--ease-out), opacity .3s var(--ease);
}
.plus::after { transform: rotate(90deg); }
.qa[open] .plus { transform: rotate(180deg); }
.qa[open] .plus::after { transform: rotate(90deg) scaleX(0); opacity: 0; }
.qa__body { padding: 0 24px 24px; }
.qa__body p { font-size: 16px; line-height: 1.58; color: var(--ink-2); }
.qa[open] .qa__body { animation: qaIn .45s var(--ease-out); }
@keyframes qaIn {
  from { opacity: 0; transform: translateY(-8px) }
  to   { opacity: 1; transform: none }
}

/* ═══════════ CONTACT ═══════════ */
.contact {
  background:
    radial-gradient(90% 60% at 50% 0%, #2C1A13 0%, var(--night) 58%),
    var(--night);
}
.contact__inner { max-width: var(--wide); margin: 0 auto; text-align: center; }
.contact__mark { width: 68px; margin: 0 auto 22px; }
.contact__title {
  font-size: clamp(34px, 5.6vw, 62px); font-weight: 700;
  letter-spacing: -.034em; line-height: 1.06; margin-bottom: 18px;
}
.contact__sub {
  max-width: 620px; margin: 0 auto clamp(40px, 5vw, 60px);
  font-size: clamp(16.5px, 2vw, 20px); line-height: 1.5; color: var(--cream-2);
}
.contact__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; text-align: left; max-width: 700px; margin: 0 auto; }
.ccard {
  padding: 30px 26px 26px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.11);
  transition: transform .5s var(--ease-out), background .4s var(--ease),
              border-color .4s var(--ease), box-shadow .5s var(--ease-out),
              opacity .85s var(--ease-out);
  display: block;
}
.ccard:hover {
  transform: translateY(-6px); background: rgba(255,255,255,.09);
  border-color: rgba(227,172,117,.42); box-shadow: 0 24px 54px rgba(0,0,0,.4);
}
.ccard--primary {
  background: var(--roast);
  border-color: transparent;
}
.ccard--primary:hover { background: var(--roast-deep); }
.ccard__ico { width: 26px; height: 26px; fill: var(--crema-lt); margin-bottom: 18px; }
.ccard--primary .ccard__ico { fill: #fff; }
.ccard__h { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.022em; margin-bottom: 6px; }
.ccard--primary .ccard__h { margin-bottom: 14px; }
.ccard__v { display: block; font-size: 14.5px; color: var(--cream-2); word-break: break-word; margin-bottom: 14px; }
.ccard--primary .ccard__v { color: rgba(255,255,255,.9); }
.ccard__n { display: block; font-size: 12.5px; color: var(--cream-2); opacity: .75; }
.ccard--primary .ccard__n { color: rgba(255,255,255,.82); opacity: 1; }
.copy {
  padding: 6px 13px; border-radius: var(--r-btn); font-size: 12.5px; font-weight: 600;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  color: var(--cream); transition: background .3s var(--ease), transform .3s var(--ease-out);
}
.copy:hover { background: rgba(255,255,255,.2); transform: scale(1.05); }

/* ═══════════ FOOTER ═══════════ */
.foot { background: var(--paper-2); padding: clamp(50px, 7vw, 80px) 22px 30px; }
.foot__inner {
  max-width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(29,21,18,.1);
}
.foot__brand { display: flex; align-items: center; gap: 14px; }
.foot__name { font-size: 18px; font-weight: 700; letter-spacing: -.024em; }
.foot__tag { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.foot__nav, .foot__contact { display: grid; gap: 10px; align-content: start; }
.foot__nav a, .foot__contact a {
  font-size: 14.5px; color: var(--ink-2); width: fit-content;
  transition: color .3s var(--ease), transform .3s var(--ease-out);
}
.foot__nav a:hover, .foot__contact a:hover { color: var(--roast); transform: translateX(3px); }
.foot__base {
  max-width: var(--wide); margin: 0 auto; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
}
.foot__base a { color: inherit; transition: color .3s var(--ease); }
.foot__base a:hover { color: var(--roast); }

/* ═══════════ FLOATING BITS ═══════════ */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(251,249,247,.8); border: 1px solid rgba(29,21,18,.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(18px) scale(.85); pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease-out), background .3s;
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: #fff; transform: translateY(-3px); }

.toast {
  position: fixed; left: 50%; bottom: 28px; translate: -50% 0; z-index: 130;
  padding: 12px 22px; border-radius: var(--r-btn);
  background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 600;
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .45s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: none; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1040px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--wide { grid-column: span 2; }
  .tile--tall { grid-row: span 1; }
  .proc { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .pin__grid { grid-template-columns: 1fr; }
  .pin__stage { order: -1; margin-bottom: 12px; }
  .studio__cols { grid-template-columns: 1fr; gap: 30px; }
  .contact__grid { grid-template-columns: 1fr; }
  .foot__inner { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 72px 18px; }
  .hero { padding-inline: 18px; }
  .bento, .proc, .stats { grid-template-columns: 1fr; }
  .tile--wide { grid-column: span 1; }
  .tile { padding: 26px 22px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .live-dot { top: 20px; right: 20px; }
  .foot__inner { grid-template-columns: 1fr; gap: 30px; }
  .gallery__nav { justify-content: center; }
  .totop { right: 14px; bottom: 14px; }
}

/* ═══════════ LEGAL PAGES ═══════════ */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(120px, 16vw, 160px) 22px 100px; }
.legal__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--roast);
  margin-bottom: 26px;
}
.legal__back:hover { text-decoration: underline; }
.legal h1 {
  font-size: clamp(30px, 5vw, 44px); font-weight: 700; letter-spacing: -.024em;
  color: var(--ink);
}
.legal__updated { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); margin-bottom: 40px; }
.legal-card {
  background: var(--paper); border: 1px solid rgba(29,21,18,.08);
  border-radius: var(--r-md); padding: 30px 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.legal-card h2 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 12px; letter-spacing: -.01em; }
.legal-card p, .legal-card li { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.legal-card p + p { margin-top: 12px; }
.legal-card ul { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.legal-card li { padding-left: 20px; position: relative; }
.legal-card li::before { content: "•"; position: absolute; left: 0; color: var(--roast); font-weight: 700; }
.legal-card a.inline { color: var(--roast); font-weight: 600; text-decoration: underline; }

/* ═══════════ MOTION PREFERENCES ═══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-rise] { opacity: 1 !important; transform: none !important; }
  .hero__logo, .hero__title .line > span, .hero__sub,
  .hero__actions, .hero__note { opacity: 1 !important; transform: none !important; }
  .step { opacity: 1; }
}
