/* Wisesa Studio — DESIGN.md
   Direction: monochrome editorial. Pure black on white, hairline rules,
   oversized grotesk display type, generous rhythm. One premium object on
   the page — the matte black card. Zero color. Motion is smooth, springy,
   and only where it clarifies. */

:root {
  --paper: #ffffff;
  --paper-soft: #fafafa;
  --ink: #0a0a0a;
  --ink-soft: #525252;
  --ink-faint: #a3a3a3;
  --line: #e5e5e5;
  --line-dark: rgba(255, 255, 255, 0.16);

  --wrap: 1180px;
  --pad: clamp(1.25rem, 5vw, 5rem);

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;

  --r: 18px;
  --ease: cubic-bezier(0.22, 0.61, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--paper); }

section[id] { scroll-margin-top: 92px; }

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

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .75rem 1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Motion helpers ---------- */
.js .rise { opacity: 0; transform: translateY(26px); }
.js .rise--fade { transform: none; }
.js body.loaded .rise {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease-spring);
  transition-delay: var(--d, 0s);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--f-display); font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: none; min-height: 48px;
  padding: .85rem 1.4rem; border-radius: 999px;
  transition: transform .25s var(--ease-spring), background .2s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: scale(.96); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -14px rgba(10, 10, 10, 0.55); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }
.btn--pill { background: var(--ink); color: var(--paper); padding: .6rem 1.15rem; font-size: .95rem; min-height: 42px; }
.btn--pill:hover { transform: translateY(-2px); }
.btn--big { padding: 1.1rem 2rem; font-size: 1.15rem; min-height: 56px; }
.arr { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arr, a:hover > .arr { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: transform .35s var(--ease);
}
.site-header.nav-hidden { transform: translateY(-100%); }
.nav { max-width: var(--wrap); margin: 0 auto; padding: .9rem var(--pad); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--f-display); font-weight: 700; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-size: 1.4rem; flex: none;
  transition: transform .3s var(--ease-spring);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-mark--sm { width: 34px; height: 34px; font-size: 1.2rem; }
.brand-name { font-size: 1.15rem; }
.brand-sub { color: var(--ink-soft); font-weight: 500; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--ink-soft); position: relative; transition: color .2s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--ink); transition: width .25s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { flex: none; }

.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; transition: transform .3s var(--ease); }
.site-header.open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-header.open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; gap: .25rem; padding: .5rem var(--pad) 1.25rem; border-bottom: 1px solid var(--line); }
.site-header.open .mobile-menu { display: flex; animation: menuIn .3s var(--ease); }
.mobile-menu a {
  text-decoration: none; font-family: var(--f-display); font-weight: 600; padding: .9rem 0;
  border-bottom: 1px solid var(--line); min-height: 48px;
  animation: linkIn .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms);
}
.mobile-menu a.btn { border: none; justify-content: center; margin-top: .75rem; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes linkIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

/* ---------- Hero (fullscreen black card) ---------- */
.eyebrow {
  font-family: var(--f-display); font-weight: 600; font-size: .8rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.25rem;
  display: inline-flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; animation: drawLine .8s var(--ease) .3s forwards; }
@keyframes drawLine { to { transform: scaleX(1); } }
.eyebrow--dark { color: var(--ink-soft); }
.hero {
  position: relative; min-height: 100svh;
  padding: clamp(4.5rem, 10vh, 6.5rem) var(--pad) clamp(2.5rem, 7vh, 4.5rem);
  display: grid; place-items: center;
}
.hero-inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow { color: rgba(255, 255, 255, 0.72); }
.hero .eyebrow::before { background: #fff; }
.hero-title { color: #fff; font-size: clamp(2.6rem, 8.5vw, 6rem); }
.hero-emph { color: transparent; -webkit-text-stroke: 2px #fff; }
@supports not (-webkit-text-stroke: 1px #000) { .hero-emph { color: #fff; } }
.hero-lede { font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: rgba(255, 255, 255, 0.75); max-width: 36ch; margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2.25rem; }
.hero .btn--solid { background: #fff; color: var(--ink); }
.hero .btn--solid:hover { box-shadow: 0 16px 30px -14px rgba(255, 255, 255, 0.5); }
.hero .btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); }

/* ---------- Premium black card (3D flip engine, fullscreen in hero) ---------- */
.hero-visual { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; }
.card-stack { position: relative; width: 100%; height: 100%; max-width: none; }
.card-stack::before { display: none; }
.card-float { width: 100%; height: 100%; animation: breathe 9s ease-in-out infinite; perspective: 1600px; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.012); } }
.card-tilt { width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .35s var(--ease); will-change: transform; }
.black-card {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .95s cubic-bezier(0.68, 0.04, 0.27, 1);
  will-change: transform;
  border-radius: 0;
  box-shadow: none;
}
.card-face {
  position: absolute; inset: 0; border-radius: 0; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background:
    radial-gradient(120% 90% at 85% 115%, rgba(255, 255, 255, 0.09) 0%, transparent 50%),
    linear-gradient(135deg, #161616 0%, #050505 55%, #111111 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  display: flex; flex-direction: column;
  padding: clamp(5.5rem, 11vh, 7.5rem) clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
}
.card-face--back { transform: rotateY(180deg); }
.card-face::before {
  content: ""; position: absolute; inset: -60%;
  background: repeating-radial-gradient(circle at 88% 118%, transparent 0 26px, rgba(255, 255, 255, 0.045) 26px 27px);
  pointer-events: none;
}
.card-face::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.09) 48%, transparent 62%);
  transform: translateX(-130%);
  transition: transform .9s var(--ease);
  pointer-events: none;
}
.black-card:hover .card-face::after { transform: translateX(130%); }

.black-card-head { display: flex; justify-content: space-between; align-items: baseline; }
.black-card-brand {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(.85rem, 1.4vw, 1.1rem);
  letter-spacing: .22em; text-transform: uppercase; color: #fff;
}
.black-card-tier {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(.62rem, 1vw, .78rem);
  letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55);
}
.black-card-mid { flex: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.chip {
  width: 46px; height: 34px; border-radius: 8px; flex: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, #f5f5f5 0%, #b8b8b8 100%);
  position: relative;
}
.chip::before { content: ""; position: absolute; inset: 7px; border-radius: 4px; border: 1px solid rgba(10, 10, 10, 0.4); }
.chip::after { content: ""; position: absolute; top: 7px; bottom: 7px; left: 50%; width: 1px; background: rgba(10, 10, 10, 0.4); }
.black-card-mono {
  align-self: center;
  font-family: var(--f-display); font-weight: 700; line-height: .75;
  font-size: clamp(5rem, 18vw, 18rem);
  background: linear-gradient(180deg, #ffffff 25%, #9a9a9a 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.black-card-foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(.68rem, 1vw, .82rem);
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6);
}
.face-brand { display: flex; flex-direction: column; height: 100%; }
.face-info { display: flex; flex-direction: column; height: 100%; gap: .5rem; }
.face-tag {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(.62rem, 1vw, .78rem);
  letter-spacing: .28em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5);
}
.face-title {
  font-family: var(--f-display); font-weight: 700; line-height: 1.04; letter-spacing: -.02em;
  font-size: clamp(1.6rem, 4.5vw, 4rem); color: #fff; margin-top: auto; max-width: 22ch;
}
.face-desc { color: rgba(255, 255, 255, 0.66); font-size: clamp(.9rem, 1.8vw, 1.15rem); line-height: 1.45; max-width: 46ch; }
.face-foot {
  margin-top: auto; display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(.62rem, 1vw, .78rem);
  letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55);
}

/* Full-viewport card background while scrolling through sections */
body.card-background-active { background: #050505; }
body.card-background-active .hero-visual {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.card-stack.docked {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transform: none;
  pointer-events: none;
}
.card-stack.docked::before { display: none; }
.card-stack.docked .card-float { animation: none; }
.card-stack.docked .black-card { height: 100%; border-radius: 0; box-shadow: none; }
.card-stack.docked .card-face { border-radius: 0; padding: clamp(5.5rem, 11vh, 7.5rem) var(--pad) clamp(2rem, 5vh, 4rem); }
.card-stack.docked .face-brand { opacity: .08; }
.card-stack.docked .face-info { opacity: .09; }
.card-stack.docked .face-title { font-size: clamp(3.25rem, 10vw, 8rem); max-width: 12ch; }
.card-stack.docked .face-desc { font-size: clamp(1rem, 2vw, 1.35rem); }

body.card-background-active .marquee,
body.card-background-active .pillars,
body.card-background-active .how,
body.card-background-active .calculator,
body.card-background-active .work,
body.card-background-active .why,
body.card-background-active .cta {
  position: relative;
  z-index: 1;
}
body.card-background-active .marquee {
  background: rgba(5, 5, 5, .78);
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}
body.card-background-active .marquee .m-a { color: #fff; }
body.card-background-active .marquee .m-b { -webkit-text-stroke-color: #fff; }
body.card-background-active .pillars,
body.card-background-active .how,
body.card-background-active .calculator,
body.card-background-active .work,
body.card-background-active .why {
  background: rgba(5, 5, 5, .36);
  color: #fff;
}
body.card-background-active .how,
body.card-background-active .calculator,
body.card-background-active .work,
body.card-background-active .why { min-height: 100svh; }
body.card-background-active .eyebrow--dark,
body.card-background-active .section-note,
body.card-background-active .step p { color: rgba(255, 255, 255, .72); }
body.card-background-active .eyebrow--dark::before { background: #fff; }
body.card-background-active .step { border-color: rgba(255, 255, 255, .45); }
body.card-background-active .cta { background: rgba(5, 5, 5, .3); }
body.card-background-active .cta-frame { background: rgba(255, 255, 255, .94); }

/* ---------- Price calculator ---------- */
.price-chat { max-width: 1020px; margin: 3rem auto 0; width: calc(100% - 2 * var(--pad)); background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.chat-header { padding: 1.5rem; display: flex; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid var(--line); }
.chat-header strong { font-family: var(--f-display); }
.chat-header p, .chat-header small { font-size: .875rem; color: var(--ink-soft); }
.chat-quota { display: grid; gap: .35rem; min-width: 180px; }
.chat-quota strong { font-size: .875rem; }
.chat-quota progress { width: 100%; height: 6px; accent-color: #111; }
.chat-messages { height: clamp(320px, 50vh, 560px); overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; overscroll-behavior: contain; }
.chat-message { padding: 1rem 1.25rem; border-radius: 18px; background: #f3f3f3; max-width: 88%; align-self: flex-start; flex-shrink: 0; overflow-wrap: anywhere; }
.chat-message strong { font-size: .875rem; display: block; margin-bottom: .4rem; }
.chat-message p { white-space: pre-wrap; font-size: 1rem; line-height: 1.65; }
.chat-message--user { align-self: flex-end; background: #111; color: #fff; }
.chat-suggestions { padding: 0 1.5rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chat-suggestions button { cursor: pointer; border: 1px solid #ccc; border-radius: 999px; background: #fff; padding: .6rem .85rem; color: #333; font: inherit; font-size: .875rem; text-align: left; }
.chat-suggestions button:hover { border-color: #111; background: #f5f5f5; }
.chat-composer { padding: 1rem 1.5rem; border-top: 1px solid var(--line); }
.chat-composer label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .5rem; }
.chat-composer textarea { width: 100%; resize: vertical; min-height: 90px; max-height: 240px; border: 1px solid #aaa; border-radius: 12px; padding: .9rem; font: inherit; color: #111; background: #fff; }
.chat-composer-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .6rem; }
.chat-composer-actions small { font-size: .875rem; color: #555; }
.chat-composer button:disabled { opacity: .5; cursor: not-allowed; }
.chat-status { padding: 0 1.5rem; font-size: .875rem; color: #555; }
.chat-footer { padding: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; background: #fafafa; margin-top: 1rem; }
.chat-footer p { flex: 1 1 300px; font-size: .875rem; color: #555; }
@media (max-width: 680px) {
  .chat-header { flex-direction: column; gap: 1rem; }
  .chat-quota { width: 100%; }
  .chat-message { max-width: 96%; }
  .chat-messages, .chat-header, .chat-footer { padding: 1rem; }
  .chat-suggestions, .chat-composer { padding-inline: 1rem; }
  .chat-composer-actions { align-items: stretch; flex-direction: column; }
}
.calculator { background: var(--paper); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.calculator-layout {
  max-width: var(--wrap); margin: clamp(2rem, 4vw, 3rem) auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
}
.calculator-form { display: grid; gap: 2rem; }
.calc-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.calc-group legend { font-family: var(--f-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.calc-options { display: grid; gap: .75rem; }
.calc-option { position: relative; display: block; cursor: pointer; }
.calc-option input { position: absolute; opacity: 0; pointer-events: none; }
.calc-option-copy {
  display: block; border: 1px solid var(--line); border-radius: 16px; background: var(--paper);
  color: var(--ink);
  padding: 1.15rem 1.25rem; transition: border-color .2s var(--ease), transform .25s var(--ease-spring), box-shadow .25s var(--ease);
}
.calc-option:hover .calc-option-copy { transform: translateY(-2px); border-color: var(--ink); }
.calc-option input:focus-visible + .calc-option-copy { outline: 3px solid currentColor; outline-offset: 3px; }
.calc-option input:checked + .calc-option-copy { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.calc-option-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-family: var(--f-display); }
.calc-option-top strong { font-size: 1.05rem; }
.calc-option-top b { white-space: nowrap; font-size: .95rem; }
.calc-option small { display: block; color: var(--ink-soft); font-size: .9rem; line-height: 1.5; margin-top: .35rem; }
.calc-options--addons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-addon {
  display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; padding: 1rem;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
}
.calc-addon:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.calc-addon input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--ink); flex: none; }
.calc-addon span { display: flex; flex-direction: column; line-height: 1.4; }
.calc-addon b { font-family: var(--f-display); font-size: .82rem; margin-top: .2rem; }
.calc-result {
  position: sticky; top: 92px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2rem); box-shadow: 0 28px 60px -35px rgba(0, 0, 0, .55);
}
.calc-result-label { font-family: var(--f-display); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.calc-result h3 { font-size: clamp(2rem, 4vw, 3rem); margin: .55rem 0 .35rem; }
.calc-result-type { color: var(--ink-soft); }
.calc-result-details { margin: 1.75rem 0; }
.calc-result-details div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.calc-result-details dt { color: var(--ink-soft); }
.calc-result-details dd { margin: 0; font-weight: 600; text-align: right; }
.calc-disclaimer { color: var(--ink-soft); font-size: .86rem; line-height: 1.55; }
.calc-cta { width: 100%; margin-top: 1.5rem; }
body.card-background-active .calculator .calc-group > legend { color: #fff; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--ink); overflow: hidden; padding: .85rem 0; background: var(--paper); }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: inline-flex; align-items: center; gap: 2rem; padding-right: 2rem;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
.marquee-group i { font-style: normal; color: var(--ink-faint); font-weight: 400; }
.m-a { color: var(--ink); }
.m-b { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
@supports not (-webkit-text-stroke: 1px #000) { .m-b { color: var(--ink); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Pillars ---------- */
.pillars { background: var(--ink); color: var(--paper); display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { padding: clamp(2rem, 4vw, 3.25rem) var(--pad); min-height: 240px; display: flex; flex-direction: column; }
.pillar + .pillar { border-left: 1px solid var(--line-dark); }
.pillar-no {
  font-family: var(--f-display); font-weight: 700; font-size: 2.2rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
}
@supports not (-webkit-text-stroke: 1px #fff) { .pillar-no { color: rgba(255, 255, 255, 0.55); } }
.pillar h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: .75rem 0 .75rem; }
.pillar p { max-width: 34ch; color: rgba(255, 255, 255, 0.72); }

/* ---------- Section head ---------- */
.section-head { max-width: var(--wrap); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) var(--pad) 0; }
.section-title { font-size: clamp(2rem, 5.5vw, 3.6rem); max-width: 18ch; }
.section-note { color: var(--ink-soft); margin-top: 1rem; }

/* ---------- How ---------- */
.how { padding-bottom: clamp(3rem, 6vw, 5rem); }
.steps { max-width: var(--wrap); margin: clamp(2rem, 4vw, 3rem) auto 0; padding: 0 var(--pad); list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { display: flex; gap: 1rem; padding-top: 1.5rem; border-top: 3px solid var(--ink); }
.step-no { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; line-height: 1; flex: none; }
.step h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.step p { color: var(--ink-soft); }

/* ---------- Work / Portfolio ---------- */
.work { background: var(--paper-soft); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.work-list { max-width: var(--wrap); margin: clamp(2rem, 4vw, 3rem) auto 0; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.work-subhead {
  grid-column: 1 / -1;
  padding-top: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid currentColor;
  margin-top: clamp(.75rem, 2vw, 1.5rem);
}
.work-subhead .eyebrow { margin-bottom: .75rem; }
.work-subhead h3 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.work-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem; text-decoration: none;
  color: var(--ink);
  display: flex; flex-direction: column; min-height: 230px;
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease), border-color .2s var(--ease);
}
.work-card:hover { transform: translateY(-6px); border-color: var(--ink); box-shadow: 0 22px 44px -24px rgba(10, 10, 10, 0.5); }
.work-card:active { transform: translateY(-2px) scale(.98); }
.work-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.work-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none; display: block;
  border: 1px solid var(--line); background: var(--paper);
  filter: grayscale(1);
  transition: filter .35s var(--ease), transform .35s var(--ease-spring);
}
.work-icon--letter {
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 1.2rem;
}
.work-icon--system {
  display: grid;
  place-items: center;
  color: var(--ink);
  padding: 9px;
}
.work-icon--system svg { width: 100%; height: 100%; display: block; }
.work-card--project { cursor: default; }
.work-card--project .work-name { font-size: 1.45rem; line-height: 1.12; }
.work-card--project:hover { transform: none; box-shadow: none; border-color: var(--ink); }
.work-card:hover .work-icon { filter: none; transform: scale(1.12) rotate(-4deg); }
.work-tag { font-family: var(--f-display); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.work-tag--invert { color: var(--paper); }
.work-name { font-size: 1.75rem; margin: .6rem 0 .6rem; }
.work-desc { color: var(--ink-soft); flex: 1; }
.work-url { font-family: var(--f-display); font-weight: 600; margin-top: 1.1rem; display: inline-flex; gap: .35rem; }
.work-url--invert { color: var(--paper); }
.work-card--cta { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.work-card--cta .work-desc { color: rgba(255, 255, 255, 0.7); }
.work-card--cta .work-icon { display: none; }

/* ---------- Why ---------- */
.why { background: var(--ink); color: var(--paper); }
.why-inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) var(--pad); }
.why-title { font-size: clamp(2rem, 5.5vw, 3.6rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; }
.why-item { border-top: 1px solid rgba(255, 255, 255, 0.3); padding-top: 1.25rem; }
.why-item h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.why-item p { color: rgba(255, 255, 255, 0.72); max-width: 40ch; }

/* ---------- Final CTA ---------- */
.cta { background: var(--paper); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.cta-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.cta-frame {
  border: 1px solid var(--ink); border-radius: 32px; background: var(--paper-soft);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center; position: relative; overflow: hidden;
}
.cta-frame::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 120%, rgba(10, 10, 10, 0.05), transparent 70%);
  pointer-events: none;
}
.cta-title { font-size: clamp(2.4rem, 7vw, 5rem); }
.cta-lede { font-size: clamp(1.1rem, 2.5vw, 1.35rem); margin: 1.25rem auto 2.25rem; max-width: 40ch; color: var(--ink-soft); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.cta-map {
  margin-top: 2rem; display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: .45rem; color: var(--ink-soft); font-size: .95rem;
}
.cta-map svg { flex: none; }
.cta-map a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.cta-fine { font-family: var(--f-display); font-weight: 500; margin-top: 1.25rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) var(--pad) 1.5rem; display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; gap: .8rem; align-items: flex-start; max-width: 42ch; }
.footer-name { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; }
.footer-tag { color: var(--ink-soft); margin-top: .25rem; }
.footer-loc { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; color: var(--ink-soft); margin-top: .75rem; font-size: .95rem; }
.footer-loc svg { flex: none; }
.footer-loc a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-family: var(--f-display); font-weight: 600; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { max-width: var(--wrap); margin: 0 auto; padding: 1.5rem var(--pad) calc(2.5rem + env(safe-area-inset-bottom, 0px)); color: var(--ink-soft); font-size: .9rem; border-top: 1px solid var(--line); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  box-shadow: 0 10px 28px -8px rgba(10, 10, 10, 0.55), 0 0 0 2px var(--paper);
  transition: transform .25s var(--ease-spring);
}
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--ink); animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 75%, 100% { transform: scale(1.55); opacity: 0; } }
.wa-float:hover { transform: scale(1.1); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: none; border-top: 1px solid var(--line-dark); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { border-top: none; border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
  .work-list { grid-template-columns: repeat(2, 1fr); }
  .calculator-layout { grid-template-columns: 1fr; }
  .calc-result { position: static; }
}

@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .work-list { grid-template-columns: 1fr; }
  .calc-options--addons { grid-template-columns: 1fr; }
  .calc-option-top { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .work-card { min-height: 0; }
  .why-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions .btn { flex: 1; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 1.25rem; }
  .wa-float { width: 52px; height: 52px; }
  .wa-float svg { width: 22px; height: 22px; }
  .card-stack.docked .face-title { font-size: clamp(3rem, 15vw, 5rem); }
}

@media (max-width: 480px) {
  .hero { padding-top: clamp(4rem, 12vh, 5.5rem); }
  .black-card-mono { font-size: 22vw; }
  .pillar { min-height: 0; padding: 1.75rem var(--pad); }
  .work-card { padding: 1.4rem; }
  .work-name { font-size: 1.5rem; }
  .cta-frame { border-radius: 24px; }
  .btn--big { padding: 1rem 1.5rem; font-size: 1.05rem; }
  .marquee { padding: .65rem 0; }
  .marquee-group { gap: 1.4rem; padding-right: 1.4rem; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
