/* Cee Curates. Inner pages: Case Studies, UI/UX, Graphics, AI Consulting.
   Loads after style.css and reuses its tokens, nav, footer and motion rules. */

.nav__links a[aria-current="page"] { color: var(--butter); }
.menu__links a[aria-current="page"] { color: var(--butter); }

/* Color blocks */
.on-cobalt { background: var(--cobalt); color: var(--bone); }
.on-ink { background: var(--ink); color: var(--bone); }
.on-bone { background: var(--bone); color: var(--ink); }
.on-butter { background: var(--butter); color: var(--ink); }
.on-vermilion { background: var(--vermilion); color: var(--ink); }

/* Shared display voice for inner pages */
.phero__title, .h2, .next__title, .stat b, .flip__q, .calc__num, .dcard h3, .svc h3, .step h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.88;
}
.serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; font-stretch: 100%;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  text-transform: none; letter-spacing: -0.03em;
}

/* Page hero */
.phero {
  position: relative;
  min-height: 92svh;
  padding: 120px var(--pad) clamp(36px, 5vw, 70px);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: clip;
}
.phero__title { font-size: clamp(3.1rem, 12.6vw, 15.5rem); margin-top: 18px; position: relative; z-index: 1; }
.phero__title--long { font-size: clamp(2.6rem, 8.6vw, 10.5rem); }
.phero--ai .phero__title { font-size: clamp(3rem, 10.6vw, 13rem); }
ol { padding: 0; margin: 0; list-style: none; }
.phero__title em { display: inline-block; padding-right: 0.08em; }
.phero__title .mask, .h2 .mask { padding-bottom: 0.26em; margin-bottom: -0.26em; }
.phero__row {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px 60px; margin-top: clamp(20px, 3vw, 44px);
}
.phero__lede { max-width: 40ch; font-size: clamp(1.1rem, 1.65vw, 1.5rem); line-height: 1.32; font-weight: 500; }
.phero__media {
  position: absolute; z-index: 0;
  right: var(--pad); top: 13%;
  width: min(52vw, 820px);
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 40px 50px rgba(14, 13, 19, 0.35));
}
.phero__media img { width: 100%; height: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li, .chip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 999px; border: 1.5px solid currentColor;
}

.btn--ink { background: var(--ink); color: var(--bone); }
.btn--butter { background: var(--butter); color: var(--ink); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
.section { position: relative; padding: clamp(70px, 10vw, 150px) var(--pad); overflow: clip; }
.h2 { font-size: clamp(2.5rem, 7.2vw, 7.4rem); }
.h2--sm { font-size: clamp(2.1rem, 5vw, 4.8rem); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.38; max-width: 44ch; margin-top: 1.1em; }
.prose p { font-size: clamp(1.05rem, 1.45vw, 1.32rem); line-height: 1.48; max-width: 40em; }
.prose p + p { margin-top: 1em; }
.split {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(26px, 6vw, 110px); align-items: start;
}
.split + .split { margin-top: clamp(60px, 9vw, 130px); }
.section__head { margin-bottom: clamp(34px, 5vw, 70px); }
.section__head .eyebrow { margin-bottom: 14px; }

/* Next page band */
.next {
  display: block; position: relative;
  padding: clamp(50px, 8vw, 110px) var(--pad);
  overflow: clip;
}
.next__title { font-size: clamp(3rem, 13vw, 15rem); display: flex; align-items: center; gap: 0.16em; margin-top: 10px; }
.next__title svg { width: 0.62em; height: 0.62em; flex: none; transition: rotate 500ms var(--ease-out), translate 500ms var(--ease-out); }

/* Call to action band */
.cta { text-align: left; }
.cta .h2 em { display: inline-block; }
.cta .lede { margin-bottom: 0; }

/* ---------- Case study ---------- */
.qlist { counter-reset: q; border-top: 2px solid currentColor; }
.qlist li {
  counter-increment: q;
  display: grid; grid-template-columns: 3.2em 1fr; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  font-size: clamp(1.1rem, 1.9vw, 1.7rem); line-height: 1.2; font-weight: 500;
}
.qlist li::before { content: counter(q, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; opacity: 0.6; }
.label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; margin-bottom: 16px; }

.persona { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.persona__card {
  position: relative;
  background: var(--cobalt); color: var(--bone);
  border-radius: 26px; padding: clamp(24px, 3.4vw, 44px);
  will-change: transform;
}
.persona__name { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(3rem, 7vw, 6rem); line-height: 0.9; }
.persona__quote { color: var(--butter); font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.12; margin: 14px 0 26px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; font-size: 1rem; }
.facts dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; padding-top: 3px; }
.facts dd { margin: 0; font-weight: 600; }
.ticks li, .crosses li { position: relative; padding: 9px 0 9px 34px; font-size: clamp(1.02rem, 1.4vw, 1.25rem); line-height: 1.3; }
.ticks li::before, .crosses li::before {
  position: absolute; left: 0; top: 9px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.ticks li::before { content: "✓"; background: var(--cobalt); color: var(--bone); }
.crosses li::before { content: "×"; background: var(--vermilion); color: var(--ink); }
.persona__story { font-size: clamp(1.2rem, 2vw, 1.75rem); line-height: 1.2; margin: 26px 0; }

.bigquote { font-size: clamp(1.5rem, 3.1vw, 3rem); line-height: 1.14; max-width: 26em; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 44px); margin-top: clamp(40px, 6vw, 80px); }
.stat { border-top: 2px solid currentColor; padding-top: 16px; }
.stat b { display: block; font-size: clamp(3rem, 8.4vw, 8rem); color: var(--vermilion); }
.stat span { display: block; margin-top: 10px; font-size: 1rem; line-height: 1.35; max-width: 26ch; }
.numbered { counter-reset: n; }
.numbered li { counter-increment: n; position: relative; padding: 14px 0 14px 3em; border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent); font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.32; }
.numbered li::before { content: counter(n) "."; position: absolute; left: 0; font-family: var(--font-mono); font-size: 13px; opacity: 0.6; top: 18px; }
.ia { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; counter-reset: s; }
.ia li {
  counter-increment: s;
  border-radius: 16px; padding: 18px 16px 16px;
  background: color-mix(in srgb, currentColor 9%, transparent);
  font-weight: 600; font-size: 1.02rem; line-height: 1.2;
  min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.ia li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; opacity: 0.55; font-weight: 400; }
.float-img { will-change: transform; filter: drop-shadow(0 34px 40px rgba(14, 13, 19, 0.3)); }
.float-img img { width: 100%; height: auto; }

/* ---------- UI/UX projects ---------- */
.proj { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(26px, 5vw, 90px); align-items: center; }
.proj + .proj { margin-top: clamp(80px, 12vw, 180px); }
.proj--flip .proj__media { order: 2; }
.proj__media {
  position: relative; border-radius: clamp(18px, 2.2vw, 32px); overflow: hidden;
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  box-shadow: 0 44px 70px -36px rgba(14, 13, 19, 0.6);
  will-change: transform;
}
.proj__media img, .proj__media video { width: 100%; height: 100%; object-fit: cover; }
.proj__media--pad img { object-fit: contain; padding: 6%; filter: drop-shadow(0 24px 30px rgba(14, 13, 19, 0.35)); }
.proj__media--video { aspect-ratio: 1280 / 670; background: var(--ink); }
.proj__copy .eyebrow { color: var(--vermilion); margin-bottom: 14px; }
.on-ink .proj__copy .eyebrow, .on-cobalt .proj__copy .eyebrow { color: var(--butter); }
.proj__copy .h2 { font-size: clamp(2.3rem, 5.4vw, 5.4rem); margin-bottom: 0.4em; }

/* ---------- Graphics gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 40px); align-items: end; }
.piece { grid-column: span 4; }
.piece--wide { grid-column: span 8; }
.piece--small { grid-column: span 3; }
.piece__btn { display: block; width: 100%; border-radius: clamp(12px, 1.4vw, 20px); overflow: hidden; cursor: zoom-in; box-shadow: 0 36px 54px -30px rgba(14, 13, 19, 0.55); transition: scale 160ms var(--ease-out); }
.piece__btn:active { scale: 0.985; }
.piece__btn img { width: 100%; height: auto; transition: scale 700ms var(--ease-out); }
.piece figcaption { margin-top: 14px; display: grid; gap: 4px; }
.piece figcaption strong { font-weight: 700; font-size: 1.05rem; }
.piece figcaption span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.62; }
.js .piece[data-reveal] { rotate: var(--tilt, 3deg); translate: 0 46px; transition: opacity 800ms var(--ease-out), translate 900ms var(--ease-out), rotate 900ms var(--ease-out); }
.js .piece[data-reveal].in { rotate: 0deg; translate: 0 0; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94svh; overflow: visible; cursor: zoom-out; opacity: 0; scale: 0.96; transition: opacity 160ms ease, scale 160ms ease, overlay 160ms allow-discrete, display 160ms allow-discrete; }
.lightbox[open] { opacity: 1; scale: 1; transition: opacity 260ms var(--ease-out), scale 260ms var(--ease-out), overlay 260ms allow-discrete, display 260ms allow-discrete; }
@starting-style { .lightbox[open] { opacity: 0; scale: 0.96; } }
.lightbox::backdrop { background-color: rgba(14, 13, 19, 0.86); }
.lightbox img { max-width: 94vw; max-height: 92svh; width: auto; height: auto; border-radius: 14px; }

/* ---------- AI Consulting ---------- */
.orbit {
  position: absolute; z-index: 0;
  right: var(--pad); top: 46%;
  width: min(34vw, 560px); aspect-ratio: 1;
  translate: 0 -50%;
  pointer-events: none;
}
.orbit__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform; }
.orbit__ring text { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; fill: var(--bone); }
.orbit__ring--a text { font-size: 30px; letter-spacing: 0.02em; }
.orbit__ring--b text { font-size: 19px; letter-spacing: 0.08em; fill: var(--butter); font-family: var(--font-mono); font-weight: 400; font-stretch: 100%; }
.orbit__core {
  position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%;
  background: var(--butter); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 0 0 14px rgba(255, 213, 64, 0.16), 0 0 0 34px rgba(255, 213, 64, 0.07);
}
.bars { display: flex; align-items: center; gap: 6%; width: 52%; height: 44%; }
.bars i { flex: 1; height: 100%; border-radius: 99px; background: currentColor; transform-origin: 50% 50%; animation: bar 1.1s ease-in-out infinite alternate; }
.bars i:nth-child(1) { animation-delay: -0.9s; } .bars i:nth-child(2) { animation-delay: -0.3s; }
.bars i:nth-child(3) { animation-delay: -0.7s; } .bars i:nth-child(4) { animation-delay: -0.1s; }
.bars i:nth-child(5) { animation-delay: -0.5s; } .bars i:nth-child(6) { animation-delay: -0.8s; }
.bars i:nth-child(7) { animation-delay: -0.2s; }
@keyframes bar { from { transform: scaleY(0.18); } to { transform: scaleY(1); } }
.bars--sm { width: 34px; height: 18px; gap: 3px; }
.is-paused .bars i { animation-play-state: paused; }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 44px); margin-top: clamp(40px, 6vw, 80px); }
.point { border-top: 2px solid currentColor; padding-top: 18px; }
.point h3 { font-size: clamp(1.3rem, 2.1vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 10px; }
.point p { font-size: 1.05rem; line-height: 1.45; }
.point .eyebrow { opacity: 0.6; margin-bottom: 12px; }

/* Demo */
.demo__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(26px, 6vw, 100px); align-items: center; }
.seg { display: inline-flex; padding: 5px; border-radius: 999px; background: rgba(14, 13, 19, 0.3); gap: 4px; }
.seg button { padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1; transition: background-color 180ms ease, color 180ms ease, scale 160ms var(--ease-out); }
.seg button:active { scale: 0.97; }
.seg button[aria-selected="true"] { background: var(--bone); color: var(--ink); }
.scns { display: grid; gap: 10px; margin: 14px 0 22px; }
.scn {
  text-align: left; padding: 16px 20px; border-radius: 18px;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 600; line-height: 1.2;
  box-shadow: inset 0 0 0 1.5px rgba(243, 238, 227, 0.4);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  transition: background-color 180ms ease, color 180ms ease, scale 160ms var(--ease-out);
}
.scn:active { scale: 0.985; }
.scn svg { width: 20px; height: 20px; flex: none; }
.scn[aria-pressed="true"] { background: var(--butter); color: var(--ink); box-shadow: none; }
.demo__note { font-size: 0.92rem; line-height: 1.4; opacity: 0.75; max-width: 40ch; }

.phone {
  background: var(--ink); color: var(--bone);
  border-radius: 34px; padding: 14px;
  box-shadow: 0 50px 80px -40px rgba(3, 6, 70, 0.9), inset 0 0 0 1.5px rgba(243, 238, 227, 0.14);
  max-width: 520px; width: 100%; justify-self: center;
  will-change: transform;
}
.phone__top { display: flex; align-items: center; gap: 12px; padding: 10px 12px 14px; border-bottom: 1px solid rgba(243, 238, 227, 0.14); }
.phone__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--butter); color: var(--ink); display: grid; place-items: center; flex: none; }
.phone__avatar svg { width: 18px; height: 18px; }
.phone__id { display: grid; line-height: 1.2; }
.phone__id strong { font-size: 15px; }
.phone__id span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.65; }
.phone__top .bars { margin-left: auto; color: var(--butter); }
.phone__log { height: clamp(330px, 46svh, 430px); overflow: hidden; padding: 16px 8px 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.msg { max-width: 84%; padding: 12px 15px; border-radius: 18px; font-size: 15.5px; line-height: 1.35; opacity: 1; translate: 0 0; transition: opacity 280ms var(--ease-out), translate 320ms var(--ease-out); }
@starting-style { .msg { opacity: 0; translate: 0 12px; } }
.msg small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; margin-bottom: 4px; }
.msg--them { align-self: flex-start; background: #24232d; border-bottom-left-radius: 6px; }
.msg--agent { align-self: flex-end; background: var(--butter); color: var(--ink); border-bottom-right-radius: 6px; }
.msg--human { align-self: flex-end; background: var(--vermilion); color: var(--ink); border-bottom-right-radius: 6px; }
.msg--sys { align-self: center; max-width: 94%; text-align: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(243, 238, 227, 0.3); color: var(--butter); }
.msg--typing { display: inline-flex; gap: 5px; padding: 15px 16px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dot 900ms ease-in-out infinite; }
.msg--typing i:nth-child(2) { animation-delay: 150ms; } .msg--typing i:nth-child(3) { animation-delay: 300ms; }
@keyframes dot { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.phone__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 10px 6px; border-top: 1px solid rgba(243, 238, 227, 0.14); min-height: 58px; }
.phone__outcome { font-size: 13.5px; line-height: 1.3; color: var(--butter); opacity: 0; transition: opacity 300ms ease; }
.phone__outcome.is-on { opacity: 1; }
.phone__replay { flex: none; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 9px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(243, 238, 227, 0.35); transition: scale 160ms var(--ease-out), background-color 180ms ease; }
.phone__replay:active { scale: 0.97; }

/* Services */
.svcs { display: grid; gap: clamp(16px, 2.4vw, 30px); }
.svc {
  display: grid; grid-template-columns: 4.5em minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(14px, 3vw, 50px); align-items: start;
  padding: clamp(24px, 3.6vw, 48px); border-radius: clamp(20px, 2.4vw, 34px);
  will-change: transform;
}
.svc__n { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; opacity: 0.7; padding-top: 0.6em; }
.svc h3 { font-size: clamp(2rem, 4.6vw, 4.4rem); margin: 0; }
.svc p { font-size: clamp(1.05rem, 1.45vw, 1.3rem); line-height: 1.42; }
.svc ul { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc ul li { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.2px currentColor; }

/* Stop rules */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 4vw, 60px) clamp(26px, 6vw, 100px); margin-top: clamp(40px, 6vw, 80px); counter-reset: r; }
.rule { counter-increment: r; border-top: 2px solid currentColor; padding-top: 18px; }
.rule::before { content: counter(r, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; opacity: 0.7; }
.rule h3 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 10px 0 10px; }
.rule p { font-size: 1.06rem; line-height: 1.45; max-width: 36ch; }
.aside { margin-top: clamp(40px, 6vw, 80px); font-size: clamp(1.4rem, 2.8vw, 2.6rem); line-height: 1.12; max-width: 24em; }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 6vw, 100px); align-items: center; margin-top: clamp(34px, 5vw, 64px); }
.field { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid rgba(243, 238, 227, 0.28); }
.field__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 1.05rem; font-weight: 600; }
.field__top output { font-family: var(--font-mono); font-size: 1rem; color: var(--butter); font-variant-numeric: tabular-nums; white-space: nowrap; }
.field small { font-size: 0.88rem; opacity: 0.72; line-height: 1.35; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: rgba(243, 238, 227, 0.3); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(243, 238, 227, 0.3); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--butter); border: 0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); transition: scale 160ms var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--butter); border: 0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
input[type="range"]:active::-webkit-slider-thumb { scale: 1.12; }
.calc__out { background: var(--ink); color: var(--bone); border-radius: clamp(22px, 2.6vw, 36px); padding: clamp(26px, 4vw, 54px); will-change: transform; }
.calc__num { display: block; font-size: clamp(4rem, 11vw, 10.5rem); color: var(--butter); font-variant-numeric: tabular-nums; }
.calc__cap { font-size: 1.1rem; font-weight: 600; margin-top: 6px; }
.calc__out hr { border: 0; border-top: 1px solid rgba(243, 238, 227, 0.18); margin: clamp(20px, 3vw, 34px) 0; }
.calc__num--b { font-size: clamp(2.8rem, 6.6vw, 6rem); color: var(--bone); }
.calc__fine { margin-top: 22px; font-size: 0.86rem; line-height: 1.4; opacity: 0.66; }

/* Fluency: sticky stack of the four habits */
.dstack { display: grid; gap: 18px; }
.dcard {
  position: sticky; top: calc(96px + var(--n) * 16px);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(16px, 4vw, 70px); align-items: end;
  min-height: clamp(240px, 34svh, 340px);
  padding: clamp(24px, 3.6vw, 50px); border-radius: clamp(20px, 2.4vw, 34px);
  box-shadow: 0 -18px 40px -26px rgba(14, 13, 19, 0.5);
  rotate: var(--r, 0deg);
}
.dcard h3 { font-size: clamp(2.4rem, 6.4vw, 6.4rem); margin: 10px 0 0; }
.dcard p { font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.4; max-width: 30em; }
.dcard p b { font-weight: 700; }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); margin-top: clamp(50px, 7vw, 100px); }
.credit { margin-top: 34px; font-size: 0.92rem; opacity: 0.75; max-width: 60ch; line-height: 1.45; }
.credit a { text-decoration: underline; text-underline-offset: 3px; }

/* Honest capabilities */
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); margin-top: clamp(34px, 5vw, 64px); }
.cap { border-radius: clamp(20px, 2.4vw, 34px); padding: clamp(24px, 3.4vw, 46px); will-change: transform; }
.cap h3 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 18px; }
.cap li { padding: 12px 0; border-top: 1px solid color-mix(in srgb, currentColor 26%, transparent); font-size: clamp(1.02rem, 1.4vw, 1.22rem); line-height: 1.3; font-weight: 500; }

/* Skeptic flip cards */
.flips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); margin-top: clamp(34px, 5vw, 64px); }
.flip { perspective: 1400px; display: block; width: 100%; text-align: left; aspect-ratio: 1 / 1.02; min-height: 300px; border-radius: 26px; }
.flip__inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 620ms var(--ease-drawer); }
.flip[aria-pressed="true"] .flip__inner { transform: rotateY(180deg); }
.flip__face {
  position: absolute; inset: 0; border-radius: 26px; padding: clamp(20px, 2.4vw, 32px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flip__face--front { background: var(--ink); color: var(--bone); }
.flip__face--back { background: var(--cobalt); color: var(--bone); transform: rotateY(180deg); }
.flip__q { font-size: clamp(1.7rem, 3vw, 2.9rem); line-height: 0.95; }
.flip__a { font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.42; }
.flip__hint { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; display: flex; align-items: center; gap: 8px; }
.flip__hint svg { width: 15px; height: 15px; }
.flip__face--back .flip__hint { color: var(--butter); opacity: 1; }
.flip:active .flip__inner { scale: 0.985; }

/* Process steps */
.steps { counter-reset: st; border-top: 2px solid currentColor; }
.step { counter-increment: st; display: grid; grid-template-columns: 4.5em minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(12px, 3vw, 50px); align-items: baseline; padding: clamp(20px, 3vw, 38px) 0; border-bottom: 1px solid color-mix(in srgb, currentColor 28%, transparent); }
.step::before { content: "Step " counter(st, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.65; }
.step h3 { font-size: clamp(1.8rem, 3.6vw, 3.4rem); margin: 0; }
.step p { font-size: clamp(1.02rem, 1.4vw, 1.25rem); line-height: 1.42; }

/* Hover, only where hover is real */
@media (hover: hover) and (pointer: fine) {
  .next:hover .next__title svg { rotate: 45deg; translate: 0.08em 0; }
  .piece__btn:hover img { scale: 1.035; }
  .seg button:not([aria-selected="true"]):hover { background-color: rgba(243, 238, 227, 0.14); }
  .scn:not([aria-pressed="true"]):hover { background-color: rgba(243, 238, 227, 0.12); }
  .phone__replay:hover { background-color: rgba(243, 238, 227, 0.14); }
  .btn--ink:hover { background-color: var(--cobalt); color: var(--bone); }
  .btn--butter:hover { background-color: var(--bone); }
  .btn--ghost:hover { background-color: color-mix(in srgb, currentColor 14%, transparent); }
}

/* Small screens */
@media (max-width: 860px) {
  .phero { min-height: 0; padding-top: 118px; }
  .phero__media { position: relative; right: auto; top: auto; width: 100%; margin: 28px 0 8px; order: 3; }
  .phero--stack { justify-content: flex-start; }
  .split, .persona, .proj, .demo__grid, .calc, .caps { grid-template-columns: 1fr; }
  .proj--flip .proj__media { order: 0; }
  .stats, .points, .modes, .rules { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .piece, .piece--small { grid-column: span 1; }
  .piece--wide { grid-column: span 2; }
  .orbit { position: relative; right: auto; top: auto; translate: none; width: min(92vw, 440px); margin: 6px auto 30px; order: -1; }
  .phero--ai { justify-content: flex-start; }
  .svc { grid-template-columns: 1fr; gap: 12px; }
  .svc__n { padding-top: 0; }
  .dcard { grid-template-columns: 1fr; align-items: start; min-height: 0; top: calc(84px + var(--n) * 12px); }
  .flips { grid-template-columns: 1fr; }
  .flip { aspect-ratio: auto; min-height: 250px; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .phone { border-radius: 28px; }
}

/* Reduced motion: flips become a crossfade, stacks stop tilting, bars rest */
.reduce .flip__inner { transition: none; transform: none !important; }
.reduce .flip__face { backface-visibility: visible; transition: opacity 200ms ease; }
.reduce .flip__face--back { transform: none; opacity: 0; }
.reduce .flip[aria-pressed="true"] .flip__face--back { opacity: 1; }
.reduce .flip[aria-pressed="true"] .flip__face--front { opacity: 0; }
.reduce .dcard { rotate: 0deg; }
.reduce .bars i, .reduce .msg--typing i { animation: none; }
.reduce .piece[data-reveal] { rotate: 0deg; translate: none; }
