/* Rockbuilt Web studio site. Slab look: dark-first, angled slab sections, proof in the hero, motion throughout. */

:root {
  --bone: #F4F1EA;
  --bone-2: #EAE5D9;
  --paper: #FAF8F3;
  --stone: #1C1C1A;
  --stone-2: #242422;
  --stone-3: #2E2E2B;
  --slate: #5B5B57;
  --amber: #E8A33D;
  --amber-hi: #F0B457;
  --rule: #D9D4C7;
  --rule-dark: #3A3A35;
  --on-dark: rgba(244, 241, 234, 0.74);
  --live: #6FBF7E;

  --head: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.5, .5, 1);

  --wrap: 1180px;
  --gut: 20px;
  --nav-h: 62px;
  --tilt: 4vw;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--bone);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 18px; } :root { --gut: 32px; } }
@media (max-width: 767px) { body { padding-bottom: 84px; } }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.05; margin: 0 0 0.5em; }
h2 { font-size: clamp(36px, 8vw, 60px); letter-spacing: -0.005em; }
h3 { font-size: 26px; font-weight: 500; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
section { scroll-margin-top: var(--nav-h); position: relative; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.slab-light :focus-visible, .form :focus-visible { outline-color: var(--stone); }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 8px; z-index: 100; background: var(--amber); color: var(--stone); padding: 10px 14px; }

.ph {
  background: rgba(232, 163, 61, 0.16);
  color: inherit;
  outline: 1.5px dashed var(--amber);
  outline-offset: 1px;
  padding: 0 4px;
  border-radius: 3px;
  font: 600 0.85em/inherit var(--body);
  letter-spacing: 0;
}

/* ---------- Buttons ---------- */
.btn {
  --tx: 0px; --ty: 0px; --lift: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  background: var(--amber);
  color: var(--stone);
  font: 600 17px/1 var(--body);
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 72%, calc(100% - 12px) 100%, 0 100%);
  transform: translate(var(--tx), calc(var(--ty) - var(--lift)));
  transition: transform 0.18s var(--ease), background 0.15s;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn:hover { --lift: 2px; background: var(--amber-hi); }
.btn:hover::after { animation: shine 0.7s ease; }
.btn:active { --lift: -1px; }
.btn:disabled { opacity: 0.7; cursor: wait; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--full { width: 100%; }
@media (min-width: 600px) { .btn--full { width: auto; } }
@keyframes shine { to { left: 130%; } }

.ghost {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 22px;
  background: transparent;
  border: 1.5px solid var(--rule-dark);
  border-radius: 2px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.ghost:hover { border-color: var(--bone); background: rgba(244, 241, 234, 0.05); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 28, 26, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.is-scrolled { border-color: var(--rule-dark); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.nav__bar { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--amber); transform: scaleX(var(--p, 0)); transform-origin: left; }
.mark { display: inline-flex; align-items: center; min-height: 44px; font: 700 24px/1 var(--head); letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; }
.mark span { font: 600 11px/1 var(--body); letter-spacing: 0.26em; margin-left: 7px; color: var(--amber); }
.nav__links { display: none; }
@media (min-width: 768px) {
  .nav__links { display: flex; gap: 30px; margin-left: auto; }
  .nav__links a { position: relative; font-size: 15px; font-weight: 600; text-decoration: none; padding: 12px 0; color: var(--on-dark); transition: color 0.15s; }
  .nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--bone); transform: scaleX(0); transform-origin: right; transition: transform 0.3s var(--ease); }
  .nav__links a:hover, .nav__links a.is-active { color: var(--bone); }
  .nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
}

/* ---------- Hero ---------- */
.hero {
  overflow: hidden;
  padding: 36px 0 calc(40px + var(--tilt));
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(232, 163, 61, 0.08), transparent 60%),
    repeating-linear-gradient(-12deg, transparent 0 46px, rgba(244, 241, 234, 0.025) 46px 47px),
    var(--stone);
}
.glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 30%), rgba(232, 163, 61, 0.11), transparent 62%); }
.hero.is-pointing .glow { opacity: 1; }
.hero__grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } .hero { padding: 96px 0 calc(64px + var(--tilt)); } }
.hero__title {
  font-size: clamp(60px, 16.5vw, 128px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.line { display: block; }
.hero__rock { color: transparent; -webkit-text-stroke: 2px var(--bone); }
@supports not (-webkit-text-stroke: 2px #000) { .hero__rock { color: var(--bone); } }
.hero__sub { font-size: 19px; color: var(--on-dark); max-width: 36ch; margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { display: flex; gap: 10px; align-items: baseline; margin: 22px 0 0; font-size: 15px; color: var(--on-dark); max-width: 44ch; }
.dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--live); transform: translateY(-1px); }
.dot::after, .live__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--live); animation: pulse 2s ease-out infinite; }
@keyframes pulse { to { transform: scale(3); opacity: 0; } }

/* Headline words rise out of a mask */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.04em 0.06em; margin: 0 -0.04em -0.06em; }
.w__in { display: inline-block; }
.js .w__in { transform: translateY(108%); }
.js .hero.is-ready .w__in { transform: none; transition: transform 0.9s var(--ease) calc(var(--i) * 0.1s); }
.js .hero [data-in] { opacity: 0; transform: translateY(14px); }
.js .hero.is-ready [data-in] { opacity: 1; transform: none; transition: opacity 0.7s ease calc(0.45s + var(--d, 0s)), transform 0.7s var(--ease) calc(0.45s + var(--d, 0s)); }

/* Stacked browser windows: the proof, right in the hero */
.stack { --rx: 0deg; --ry: 0deg; position: relative; height: 300px; transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.5s var(--ease); }
@media (min-width: 600px) { .stack { height: 420px; } }
.stack__win {
  position: absolute;
  display: block;
  width: 84%;
  padding: 0;
  text-align: left;
  border-radius: 10px;
  overflow: hidden;
  background: var(--stone-2);
  border: 1px solid var(--rule-dark);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  cursor: zoom-in;
  transition: box-shadow 0.3s, border-color 0.3s, translate 0.4s var(--ease);
}
.stack__win:hover { border-color: #55554F; translate: 0 -6px; z-index: 2; }
.stack__win--back { right: 0; top: 0; transform: rotate(3deg); opacity: 0.75; }
.stack__win--back:hover { opacity: 1; }
.stack__win--front { left: 0; bottom: 0; transform: rotate(-2deg); }
@media (prefers-reduced-motion: no-preference) {
  .stack__win--front { animation: rise-front 0.9s 0.3s var(--ease) both; }
  .stack__win--back { animation: rise-back 0.9s 0.45s var(--ease) both; }
}
@keyframes rise-front { from { opacity: 0; transform: translateY(40px) rotate(-2deg); } }
@keyframes rise-back { from { opacity: 0; transform: translateY(40px) rotate(3deg); } }

.bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: var(--stone-3); }
.bar i { width: 9px; height: 9px; border-radius: 50%; background: #55554F; }
.bar__url { margin-left: 10px; font-size: 12px; color: var(--on-dark); background: var(--stone); padding: 3px 10px; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font: 600 11px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--live); }
.live__dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }

.win__body { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; font-size: 14px; color: var(--bone); background: var(--stone-2); }
.win__body > .ph { position: relative; z-index: 1; }
.win__body--sketch {
  background:
    linear-gradient(#383833, #383833) 8% 16% / 46% 10% no-repeat,
    linear-gradient(#30302C, #30302C) 8% 33% / 62% 4% no-repeat,
    linear-gradient(#30302C, #30302C) 8% 41% / 48% 4% no-repeat,
    linear-gradient(rgba(232, 163, 61, 0.5), rgba(232, 163, 61, 0.5)) 8% 56% / 18% 8% no-repeat,
    linear-gradient(#34342F, #34342F) 8% 90% / 26% 20% no-repeat,
    linear-gradient(#34342F, #34342F) 50% 90% / 26% 20% no-repeat,
    linear-gradient(#34342F, #34342F) 92% 90% / 26% 20% no-repeat,
    var(--stone-2);
}
/* Real screenshots are tall captures that scroll inside the frame. 1133/1100 tall in a 16:10 frame shows 61% of it. */
.shot__img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; transition: transform 2.6s cubic-bezier(.4, 0, .2, 1); }
.shot:hover .shot__img, .shot:focus-visible .shot__img { transform: translateY(-39.3%); }
.shot__img--auto { animation: page-scroll 10s cubic-bezier(.45, 0, .55, 1) 1.8s infinite alternate; }
@keyframes page-scroll { 0%, 12% { transform: none; } 88%, 100% { transform: translateY(-39.3%); } }

/* ---------- Ticker ---------- */
.ticker { position: relative; margin-top: 64px; overflow: hidden; padding: 16px 0; border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); }
@media (min-width: 960px) { .ticker { margin-top: 88px; } }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; font: 700 22px/1 var(--head); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(244, 241, 234, 0.55); padding-right: 30px; }
.ticker span::after { content: ""; width: 9px; height: 9px; margin-left: 30px; background: var(--amber); clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Slab sections: angled top edge ---------- */
.slab-light, .slab-dark {
  margin-top: calc(var(--tilt) * -1);
  padding: calc(72px + var(--tilt)) 0 calc(72px + var(--tilt));
  clip-path: polygon(0 var(--tilt), 100% 0, 100% 100%, 0 100%);
}
@media (min-width: 768px) {
  .slab-light, .slab-dark { padding: calc(104px + var(--tilt)) 0 calc(104px + var(--tilt)); }
}
.slab-light { background: var(--bone); color: var(--stone); }
.slab-light p { color: var(--slate); }
.slab-dark { background: var(--stone); }
.slab-dark p { color: var(--on-dark); }

/* ---------- Work ---------- */
.work { z-index: 2; }
.head-row { margin-bottom: 40px; }
.proj { display: grid; gap: 24px; align-items: center; margin-bottom: 56px; }
.proj:last-child { margin-bottom: 0; }
@media (min-width: 860px) {
  .proj { grid-template-columns: 1.4fr 1fr; gap: 56px; margin-bottom: 80px; }
  .proj--flip .shot { order: 2; }
}
.shot {
  --rx: 0deg; --ry: 0deg;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--stone-2);
  box-shadow: 0 24px 50px -24px rgba(28, 28, 26, 0.55);
  cursor: zoom-in;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.45s var(--ease), box-shadow 0.3s;
}
.shot:hover { box-shadow: 0 34px 60px -24px rgba(28, 28, 26, 0.7); }
.peek { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; background: var(--amber); color: var(--stone); font: 700 13px/1 var(--body); letter-spacing: 0.06em; clip-path: polygon(0 0, 100% 0, 100% 70%, calc(100% - 8px) 100%, 0 100%); opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.3s var(--ease); }
.peek b { font-size: 16px; }
.shot:hover .peek, .shot:focus-visible .peek { opacity: 1; transform: none; }
@media (hover: none) { .peek { opacity: 1; transform: none; } }
.proj__n { font: 700 15px/1 var(--head); letter-spacing: 0.14em; color: var(--slate); margin-bottom: 10px; }
.proj__copy h3 { font: 700 34px/1.05 var(--head); margin-bottom: 10px; }
.proj__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--stone); text-underline-offset: 5px; }
.proj__link span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--stone); color: var(--bone); font-size: 13px; text-decoration: none; transition: transform 0.25s var(--ease), background 0.2s; }
.proj__link:hover span { transform: translate(3px, -3px); background: var(--amber); color: var(--stone); }
.proj__link.is-pending { color: var(--slate); }

/* ---------- What you get: the spec slab ---------- */
.get { z-index: 3; }
.spec {
  position: relative;
  background: var(--stone-2);
  border: 1px solid var(--rule-dark);
  border-radius: 4px;
  padding: 28px 22px;
  overflow: hidden;
}
.spec::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) 0.2s; }
.spec.is-in::before, .no-motion .spec::before { transform: none; }
@media (min-width: 768px) { .spec { padding: 52px 56px; } }
.spec__top { display: grid; gap: 8px; padding-bottom: 28px; border-bottom: 1px solid var(--rule-dark); }
@media (min-width: 860px) { .spec__top { grid-template-columns: 1fr auto; align-items: end; gap: 40px; } }
.spec__top h2 { margin: 0; }
.spec__price { margin: 0; font: 700 clamp(40px, 9vw, 64px)/1 var(--head); color: var(--bone); }
.spec__price span { display: block; font: 400 16px/1.4 var(--body); color: var(--on-dark); margin-top: 6px; }
.spec__list { display: grid; gap: 0; padding: 12px 0 8px; }
@media (min-width: 768px) { .spec__list { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.spec__list li { position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--rule-dark); color: var(--bone); transition: color 0.2s; }
.spec__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 16px;
  height: 10px;
  border-left: 2.5px solid var(--live);
  border-bottom: 2.5px solid var(--live);
  transform: rotate(-45deg);
}
.js .spec__list li.reveal::before { transform: rotate(-45deg) scale(0); transition: transform 0.4s var(--spring) calc(0.25s + var(--i, 0) * 0.08s); }
.js .spec__list li.reveal.is-in::before { transform: rotate(-45deg); }
.spec__care { margin-top: 24px; padding: 20px 22px; background: var(--stone); border-left: 3px solid var(--rule-dark); transition: border-color 0.3s; }
.spec__care:hover { border-left-color: var(--amber); }
.spec__care h3 { font-size: 20px; margin-bottom: 4px; }
.spec__care p { margin: 0; }

/* ---------- How it works: numbered line ---------- */
.how { z-index: 4; }
.how__grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .how__grid { grid-template-columns: 1fr 2fr; gap: 64px; } .how__grid h2 { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; } }
.line li { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 26px 0; }
.line li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--stone); transform-origin: left; }
.line li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) { .line li { grid-template-columns: 120px 1fr; padding: 34px 0; } }
.line__n {
  font: 700 54px/0.9 var(--head);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--stone);
  background: linear-gradient(var(--stone), var(--stone)) left / 0% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-size 0.9s var(--ease) calc(0.3s + var(--i, 0) * 0.15s);
}
.line li:first-child .line__n { background-image: linear-gradient(var(--amber), var(--amber)); }
.line li.is-in .line__n, .line li:hover .line__n { background-size: 100% 100%; }
@media (min-width: 768px) { .line__n { font-size: 80px; } }
.line h3 { font-weight: 700; font-size: 28px; margin-bottom: 6px; }
.line p { margin: 0; }
.js .line li::before { transform: scaleX(0); transition: transform 0.9s var(--ease) calc(var(--i, 0) * 0.15s); }
.js .line li.is-in::before { transform: none; }

/* ---------- Before / after mockup ---------- */
.mock { margin-top: 64px; }
@media (min-width: 768px) { .mock { margin-top: 96px; } }
.mock__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 16px; }
.mock__head h3 { font: 700 clamp(26px, 5vw, 38px)/1.05 var(--head); margin: 0; }
.mock__hint { margin: 0; font-size: 15px; }
.mock__cap { margin: 14px 0 0; font-size: 14px; }

.ba { --pos: 50%; position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; box-shadow: 0 30px 60px -28px rgba(28, 28, 26, 0.6); container-type: inline-size; user-select: none; -webkit-user-select: none; background: #fff; }
@media (max-width: 599px) { .ba { aspect-ratio: 4 / 5; } }
@media (min-width: 960px) { .ba { aspect-ratio: 16 / 9; } }
.ba:focus-within { outline: 3px solid var(--stone); outline-offset: 4px; }
.ba__before, .ba__after { position: absolute; inset: 0; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; background: transparent; }
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 2000px; cursor: ew-resize; }
.ba__range::-moz-range-thumb { width: 48px; height: 2000px; border: 0; background: transparent; cursor: ew-resize; }
.ba__range::-moz-range-track { background: transparent; }
.ba__handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--stone); pointer-events: none; }
.ba__handle span { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; display: grid; place-items: center; background: var(--amber); clip-path: polygon(0 0, 100% 0, 100% 72%, calc(100% - 10px) 100%, 0 100%); transition: transform 0.2s var(--spring); }
.ba__handle span::before { content: "\2194"; font: 700 20px/1 var(--body); color: var(--stone); }
.ba.is-dragging .ba__handle span { transform: scale(1.1); }
.ba__tag { position: absolute; z-index: 3; top: 12px; padding: 6px 10px; background: var(--stone); color: var(--bone); font: 600 11px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; pointer-events: none; }
.ba__tag--l { left: 12px; }
.ba__tag--r { right: 12px; background: var(--amber); color: var(--stone); }

/* Both mock pages share one skeleton (bar, nav, centered hero, three boxes) so any slider position compares like with like. */
.old, .new { height: 100%; display: flex; flex-direction: column; text-align: center; }
.old { background: #FFFFF0; font-family: 'Times New Roman', Times, serif; color: #333; font-size: 1.5cqi; }
.old__top { padding: 2.2cqi; background: linear-gradient(#2A3F9E, #12205E); color: #FFFF66; font: 700 3.6cqi/1 'Times New Roman', serif; letter-spacing: 0.06em; text-shadow: 2px 2px 0 #000; }
.old__nav { padding: 0.9cqi; background: #C0C0C0; border-bottom: 2px outset #eee; color: #0000EE; font-size: 1.5cqi; }
.old__hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2cqi 6cqi; }
.old__h { margin: 0 0 1.4cqi; font: italic 700 3.4cqi/1.1 'Comic Sans MS', 'Times New Roman', serif; color: #8B0000 !important; }
.old__p { margin: 0 0 1.8cqi; color: #999 !important; font-size: 1.5cqi; line-height: 1.5; max-width: 60ch; }
.old__badge { display: inline-block; margin: 0; padding: 0.8cqi 1.8cqi; background: repeating-linear-gradient(45deg, #FFD800 0 1.2cqi, #111 1.2cqi 2.4cqi); color: #fff !important; font: 700 1.6cqi/1 Arial, sans-serif; text-shadow: 1px 1px 0 #000; }
.old__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqi; padding: 0 5cqi 2cqi; }
.old__cards u { padding: 2.4cqi 1cqi; background: #E8E8D0; border: 2px outset #fff; color: #551A8B; font-size: 1.5cqi; }
.old__ie { margin: 0; padding: 1cqi; background: #C0C0C0; font-size: 1.2cqi; color: #555 !important; }

.new { background: var(--bone); color: var(--stone); font-family: var(--body); }
.new__nav { display: flex; align-items: center; justify-content: space-between; gap: 2cqi; padding: 1.6cqi 3cqi; border-bottom: 1.5px solid var(--stone); font-size: 1.4cqi; }
.new__nav b { font: 700 2.2cqi/1 var(--head); letter-spacing: 0.04em; }
.new__links { color: var(--slate); font-weight: 600; }
.new__btn { display: inline-block; padding: 1cqi 1.8cqi; background: var(--amber); font-weight: 700; font-size: 1.4cqi; clip-path: polygon(0 0, 100% 0, 100% 70%, calc(100% - 0.8cqi) 100%, 0 100%); }
.new__hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2cqi 6cqi; }
.new__h { margin: 0 0 1.4cqi; font: 700 5.4cqi/0.95 var(--head); text-transform: uppercase; color: var(--stone) !important; }
.new__p { margin: 0 0 2cqi; font-size: 1.7cqi; color: var(--slate); max-width: 44ch; line-height: 1.45; }
.new__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqi; padding: 0 5cqi 3cqi; }
.new__cards span { padding: 2.4cqi 1cqi; background: var(--stone); color: var(--bone); font-weight: 700; font-size: 1.6cqi; border-radius: 0.6cqi; }

@media (max-width: 599px) {
  .old { font-size: 3cqi; }
  .old__top { font-size: 6.4cqi; padding: 4cqi; }
  .old__nav { font-size: 3cqi; padding: 1.6cqi; }
  .old__h { font-size: 6.6cqi; }
  .old__p { font-size: 3.2cqi; }
  .old__badge { font-size: 3cqi; padding: 1.6cqi 3cqi; }
  .old__cards { grid-template-columns: 1fr; gap: 2cqi; padding: 0 8cqi 4cqi; }
  .old__cards u { font-size: 3.2cqi; padding: 2.6cqi; }
  .old__ie { font-size: 2.6cqi; }
  .new__nav { font-size: 3cqi; padding: 3cqi 4cqi; }
  .new__nav b { font-size: 4.6cqi; }
  .new__links { display: none; }
  .new__btn { font-size: 3.2cqi; padding: 2cqi 3cqi; }
  .new__h { font-size: 11cqi; }
  .new__p { font-size: 3.6cqi; }
  .new__cards { grid-template-columns: 1fr; gap: 2cqi; padding: 0 8cqi 5cqi; }
  .new__cards span { font-size: 3.4cqi; padding: 2.6cqi; }
}

/* ---------- Why the name ---------- */
.why { z-index: 5; }
.why__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .why__grid { grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: end; } }
.why h2 { font: 500 15px/1 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); margin-bottom: 22px; }
.why__quote { margin: 0; }
.why__quote p { font: 500 clamp(32px, 7.5vw, 58px)/1.1 var(--head); color: var(--bone); margin-bottom: 14px; }
.why__quote cite { font-style: normal; font-size: 15px; color: var(--on-dark); }
.qw { display: inline-block; }
.js .why__quote .qw { opacity: 0.12; transform: translateY(6px); }
.js .why__quote.is-in .qw { opacity: 1; transform: none; transition: opacity 0.45s ease calc(var(--i) * 0.07s), transform 0.45s var(--ease) calc(var(--i) * 0.07s); }
.why__body { font-size: 19px; }
.me { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.me__photo { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--stone-2); border: 1px solid var(--rule-dark); display: grid; place-items: center; font-size: 12px; }
.me p { margin: 0; color: var(--bone); font-weight: 600; }

/* ---------- Contact: bone card on charcoal ---------- */
.contact { z-index: 6; padding: 72px 0 96px; }
@media (min-width: 768px) { .contact { padding: 104px 0 128px; } }
.contact__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; } }
.contact__head p { color: var(--on-dark); }
.contact__head a { color: var(--bone); font-weight: 600; text-underline-offset: 4px; }

.form { display: grid; gap: 18px; background: var(--bone); color: var(--stone); padding: 24px 20px; border-radius: 4px; }
.form.is-ping { animation: ping 1.3s ease; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(232, 163, 61, 0.75); } 100% { box-shadow: 0 0 0 24px rgba(232, 163, 61, 0); } }
@media (min-width: 600px) { .form { grid-template-columns: 1fr 1fr; gap: 18px 20px; padding: 36px; } .field--wide { grid-column: 1 / -1; } }
.field label { display: flex; align-items: baseline; gap: 6px; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.field.is-valid label::after { content: "\2713"; color: #2F6B3A; font-weight: 700; animation: tick-in 0.3s var(--spring); }
@keyframes tick-in { from { transform: scale(0.3); } }
.opt { font-weight: 400; color: var(--slate); }
.field input, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: 400 17px/1.4 var(--body);
  color: var(--stone);
  background: #FFFFFF;
  border: 1.5px solid var(--rule);
  border-radius: 2px;
  background-image: linear-gradient(var(--amber), var(--amber));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 3px;
  transition: border-color 0.15s, background-size 0.35s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--stone); background-size: 100% 3px; }
.field [aria-invalid="true"] { border-color: #A3361F; animation: shake 0.35s; }
@keyframes shake { 25% { translate: -5px 0; } 75% { translate: 5px 0; } }
.field__err { margin: 6px 0 0; font-size: 14px; color: #A3361F; }
.field__err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.form__status { margin: 0; font-weight: 600; }
.form__status[data-kind="ok"] { color: #2F6B3A; }
.form__status[data-kind="error"] { color: #A3361F; }

.sent { position: relative; padding: 44px 28px 32px; background: var(--bone); color: var(--stone); border-radius: 4px; animation: rise 0.6s var(--ease); }
.sent h3 { font: 700 48px/1 var(--head); margin-bottom: 10px; outline: none; }
.sent p { margin: 0; color: var(--slate); }
.sent__stamp { position: absolute; top: -16px; right: 20px; margin: 0; padding: 7px 14px; background: var(--amber); color: var(--stone) !important; font: 700 18px/1 var(--head); letter-spacing: 0.12em; text-transform: uppercase; transform: rotate(-5deg); clip-path: polygon(0 0, 100% 0, 100% 70%, calc(100% - 8px) 100%, 0 100%); animation: stamp 0.5s var(--spring) 0.2s both; }
@keyframes stamp { from { opacity: 0; transform: scale(2.4) rotate(-16deg); } 60% { opacity: 1; } to { transform: rotate(-5deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--rule-dark); color: var(--on-dark); padding: 26px 0; font-size: 14px; }
.foot p { margin: 0; }
.foot a { color: var(--bone); }

/* ---------- Mobile CTA dock ---------- */
.dock {
  position: fixed;
  z-index: 40;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  background: var(--stone-2);
  color: var(--bone);
  border: 1px solid var(--rule-dark);
  border-radius: 6px;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.7);
  transform: translateY(calc(100% + 30px));
  transition: transform 0.4s var(--ease);
}
.dock.is-on { transform: none; }
.dock .btn { flex: none; white-space: nowrap; }
.dock p { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
@media (min-width: 768px) { .dock { display: none; } }

/* ---------- Pop-ups ---------- */
.modal {
  width: min(940px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 0;
  background: var(--stone-2);
  color: var(--bone);
  border: 1px solid var(--rule-dark);
  border-radius: 8px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
  overflow: auto;
}
.modal[open] { animation: pop 0.4s var(--ease); }
.modal::backdrop { background: rgba(10, 10, 9, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade 0.3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.97); } }
@keyframes fade { from { opacity: 0; } }
.modal__x { position: absolute; z-index: 3; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: var(--stone); border: 1px solid var(--rule-dark); border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; transition: transform 0.25s var(--ease), background 0.15s, color 0.15s; }
.modal__x:hover { background: var(--amber); color: var(--stone); transform: rotate(90deg); }
.modal__grid { display: grid; }
@media (min-width: 760px) { .modal__grid { grid-template-columns: 1.35fr 1fr; } }
.modal__shot { border-bottom: 1px solid var(--rule-dark); }
@media (min-width: 760px) { .modal__shot { border-bottom: 0; border-right: 1px solid var(--rule-dark); } }
.modal__body { padding: 28px 24px 30px; }
.modal__n { margin: 0 0 10px; font: 700 13px/1 var(--head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.modal__body h3 { font: 700 40px/1 var(--head); margin-bottom: 10px; }
.modal__body > p { color: var(--on-dark); }
.modal__facts { margin: 0 0 24px; border-top: 1px solid var(--rule-dark); }
.modal__facts li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--rule-dark); font-weight: 600; }
.modal__facts li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 13px; height: 8px; border-left: 2.5px solid var(--live); border-bottom: 2.5px solid var(--live); transform: rotate(-45deg); }
.modal[open] .modal__facts li { animation: rise 0.45s var(--ease) both; }
.modal[open] .modal__facts li:nth-child(2) { animation-delay: 0.08s; }
.modal[open] .modal__facts li:nth-child(3) { animation-delay: 0.16s; }
.modal .proj__link.is-pending { color: var(--on-dark); }

.modal--exit { width: min(520px, calc(100% - 32px)); }
.modal--exit::before { content: ""; display: block; height: 4px; background: var(--amber); }
.exit__body { padding: 32px 26px 32px; }
.exit__body h3 { font: 700 40px/1.02 var(--head); margin-bottom: 12px; }
.exit__body p { color: var(--on-dark); margin-bottom: 26px; }
.exit__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- Full-screen slides ---------- */
/* A slab that follows one of the same color: no angled edge, just a fresh screen. */
.slab-flat { margin-top: 0; clip-path: none; padding-top: 56px; }
.how-2 .mock { margin-top: 0; }

/* Desktop slide mode (js adds .is-slides): every section fills the screen under the nav, content centered. */
html.is-slides { scroll-behavior: auto; }
.is-slides [data-slide] { min-height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; }
.is-slides [data-slide] > .wrap { width: 100%; }
.is-slides .slab-light, .is-slides .slab-dark { padding: calc(40px + var(--tilt)) 0 calc(40px + var(--tilt)); }
.is-slides .slab-flat { padding-top: 40px; }
.is-slides .contact { padding: 40px 0; }
.is-slides .hero { padding: 24px 0 calc(16px + var(--tilt)); }
.is-slides .hero__grid { flex: 1; align-content: center; }
.is-slides .ticker { margin-top: 24px; }
.is-slides .head-row { margin-bottom: 28px; }
.is-slides .how__grid h2 { position: static; }
.is-slides .mock { width: min(100%, calc((100vh - var(--nav-h) - 300px) * 16 / 9)); margin: 0 auto; }

/* Section dots on the right edge */
.slide-dots { position: fixed; z-index: 45; right: 18px; top: 50%; display: none; flex-direction: column; gap: 4px; padding: 8px 6px; background: rgba(28, 28, 26, 0.72); border: 1px solid var(--rule-dark); border-radius: 20px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transform: translateY(-50%); }
.is-slides .slide-dots { display: flex; }
.slide-dots button { position: relative; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; background: none; border: 0; cursor: pointer; }
.slide-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: rgba(244, 241, 234, 0.45); transition: height 0.3s var(--ease), background 0.2s; }
.slide-dots button:hover::before { background: var(--bone); }
.slide-dots button.is-active::before { height: 18px; background: var(--amber); }
.slide-dots button::after { content: attr(data-label); position: absolute; right: 32px; top: 50%; padding: 5px 9px; background: var(--stone); color: var(--bone); border: 1px solid var(--rule-dark); border-radius: 4px; font: 600 12px/1 var(--body); white-space: nowrap; opacity: 0; transform: translate(6px, -50%); pointer-events: none; transition: opacity 0.2s, transform 0.25s var(--ease); }
.slide-dots button:hover::after, .slide-dots button:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

/* Phones and tablets: native snap, one section per swipe. Tall sections can still be swiped through. */
@media (hover: none) and (pointer: coarse) {
  html { scroll-snap-type: y mandatory; scroll-padding-top: var(--nav-h); }
  [data-slide] { scroll-snap-align: start; min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; }
  [data-slide] > .wrap { width: 100%; }
  .foot { scroll-snap-align: end; }
}

/* ---------- Scroll reveals (translate keeps transform free for tilt) ---------- */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity 0.6s ease calc(var(--i, 0) * 0.08s), translate 0.6s var(--ease) calc(var(--i, 0) * 0.08s); }
.js .reveal.is-in { opacity: 1; translate: none; }

/* ---------- Reduced motion: everything visible, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal, .js .hero [data-in], .js .why__quote .qw { opacity: 1 !important; translate: none !important; transform: none !important; }
  .js .w__in, .js .line li::before { transform: none !important; }
  .spec::before { transform: none !important; }
  .js .spec__list li.reveal::before { transform: rotate(-45deg) !important; }
  .line__n { background-size: 100% 100% !important; }
  .ticker__track { animation: none; }
  .glow { display: none; }
}
