/* ==========================================================================
   Codera — components: hero, proof, work cards, visuals, services, process
   ========================================================================== */

/* ---------- home hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: calc(var(--header-h) + 28px); padding-bottom: 64px; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.status { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(12px); font-family: var(--f-label); font-size: 13px; color: var(--muted); }
.status b { color: var(--text); font-weight: 600; }
/* Sized by width AND height so the whole hero (title, lead, buttons) fits the first screen. */
.hero h1 { margin-top: clamp(16px, 3svh, 30px); font-size: clamp(46px, min(7.2vw, 11.5svh), 132px); }
.hero .container > div:first-child { position: relative; z-index: 2; }
.hero .lead { margin-top: clamp(18px, 3svh, 30px); }
.hero .hero-cta { margin-top: clamp(22px, 3.6svh, 38px); }
.hero-mark { display: flex; justify-content: center; }
@media (max-width: 960px) and (max-height: 780px) { .hero-mark { display: none; } }
.scroll-cue { position: absolute; z-index: 2; left: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 12px; font-family: var(--f-label); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.scroll-cue i { position: relative; width: 1px; height: 42px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--sky); animation: cue 2.2s var(--in-out) infinite; }
@keyframes cue { to { top: 100%; } }
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-mark { order: -1; }
  .mark-stage { width: min(220px, 56vw, 26svh); }
  .hero .lead { font-size: 16.5px; }
  .scroll-cue { display: none; }
}

/* ---------- proof ---------- */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.proof-item { padding: 34px 24px 30px; border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: flex; align-items: flex-start; font-stretch: 125%; font-weight: 700; font-size: clamp(48px, 6.4vw, 96px); letter-spacing: -0.06em; line-height: 1; }
.proof-item strong sup { font-size: 0.38em; margin-left: 4px; color: var(--sky); line-height: 1.2; }
.proof-item > span { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; }
@media (max-width: 820px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

.ticker { padding-block: 22px; border-bottom: 1px solid var(--line); font-stretch: 115%; font-weight: 500; font-size: clamp(20px, 2.4vw, 32px); letter-spacing: -0.03em; color: var(--muted); }

/* ---------- cards ---------- */
.card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(214, 228, 255, 0.04), rgba(214, 228, 255, 0.015)); border: 1px solid var(--line);
  transition: border-color 400ms var(--out), transform 700ms var(--spring);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.13), transparent 60%);
  transition: opacity 400ms;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0; pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.85), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity 400ms;
}
.card:hover { border-color: var(--line-2); }
.card:hover::before, .card:hover::after { opacity: 1; }
a.card { cursor: pointer; }

.ico-tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; color: var(--accent); background: rgba(var(--accent-rgb), 0.09); border: 1px solid rgba(var(--accent-rgb), 0.22); transition: transform 600ms var(--spring); }
.ico-tile svg { width: 24px; height: 24px; }
.card:hover .ico-tile { transform: rotate(-8deg) scale(1.08); }

/* ---------- work stack (home) ---------- */
.stack { display: grid; gap: 28px; }
.stack-card { position: sticky; top: calc(var(--header-h) + 36px + var(--i, 0) * 18px); }
.stack-card > .work { transform-origin: 50% 0; will-change: transform; }
.work { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 48px); padding: clamp(22px, 3vw, 40px); min-height: min(620px, 78vh); background: var(--ink-2); }
.work-info { display: flex; flex-direction: column; }
.work-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work-idx { font-family: var(--f-label); font-size: 13px; color: var(--dim); letter-spacing: 0.1em; }
.work-logo { width: 60px; height: 60px; border-radius: 16px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--ink-3); border: 1px solid var(--line-2); color: var(--accent); }
.work-logo img { width: 100%; height: 100%; object-fit: cover; }
.work-logo svg { width: 28px; height: 28px; }
.work h3 { margin-top: 28px; font-stretch: 122%; font-weight: 700; font-size: clamp(36px, 4.6vw, 68px); letter-spacing: -0.05em; }
.work .kind { margin-top: 12px; font-family: var(--f-label); font-size: 14px; color: var(--accent); }
.work p { margin-top: 18px; color: var(--muted); max-width: 460px; }
.work .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.work .work-actions { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.work-stack-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; font-family: var(--f-label); font-size: 13px; color: var(--dim); }
@media (max-width: 900px) {
  .work { grid-template-columns: 1fr; min-height: 0; }
  .stack-card { position: relative; top: 0; }
}

/* project accents */
.p-ordero { --accent: #2dd4bf; --accent-rgb: 45, 212, 191; --accent-ink: #032420; --grad: linear-gradient(135deg, #5eead4, #14b8a6); }
.p-payoff { --accent: #ff7a45; --accent-rgb: 255, 122, 69; --accent-ink: #2a0d02; --grad: linear-gradient(135deg, #ffb27a, #f0532b); }
.p-komsy { --accent: #ffc53d; --accent-rgb: 255, 197, 61; --accent-ink: #1a1102; --grad: linear-gradient(135deg, #ffd76a, #f97316); }
.p-green { --accent: #4ade80; --accent-rgb: 74, 222, 128; }
.p-steel { --accent: #60a5fa; --accent-rgb: 96, 165, 250; }
.p-violet { --accent: #a78bfa; --accent-rgb: 167, 139, 250; }

/* ---------- visuals (pure CSS mockups) ---------- */
.viz {
  position: relative; overflow: hidden; border-radius: var(--r); min-height: 300px; height: 100%;
  background: radial-gradient(120% 90% at 70% 0%, rgba(var(--accent-rgb), 0.18), transparent 60%), var(--ink-3);
  border: 1px solid var(--line); display: grid; place-items: center; padding: clamp(18px, 3vw, 36px);
}
.viz-panel { width: 100%; max-width: 440px; border-radius: 16px; padding: 16px; background: rgba(12, 10, 9, 0.72); border: 1px solid var(--line-2); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9); backdrop-filter: blur(8px); }
.viz-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-family: var(--f-label); font-size: 12.5px; color: var(--muted); }
.viz-head b { color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.viz-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-top: 6px; border-radius: 10px; background: rgba(214, 228, 255, 0.035); font-size: 13px; }
.viz-row span { color: var(--muted); }
.viz-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.viz-row.hi { border: 1px solid rgba(var(--accent-rgb), 0.45); }
.viz-row.hi b { color: var(--accent); }
.pill-s { font-family: var(--f-label); font-size: 11px; padding: 3px 8px; border-radius: 6px; background: rgba(var(--accent-rgb), 0.12); color: var(--accent); }

/* ordero floor */
.floor { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tbl { aspect-ratio: 1; border-radius: 10px; display: grid; place-content: center; text-align: center; gap: 2px; font-family: var(--f-label); font-size: 10.5px; color: var(--dim); border: 1px solid var(--line); background: rgba(214, 228, 255, 0.02); transition: background-color 600ms, border-color 600ms, color 600ms; }
.tbl b { font-family: var(--f-sans); font-size: 14px; color: var(--text); font-weight: 600; }
.tbl[data-s="busy"] { background: rgba(var(--accent-rgb), 0.14); border-color: rgba(var(--accent-rgb), 0.5); color: var(--accent); }
.tbl[data-s="bill"] { background: rgba(255, 197, 61, 0.12); border-color: rgba(255, 197, 61, 0.45); color: #fbbf24; }
.tbl[data-s="kitchen"] { background: rgba(167, 139, 250, 0.12); border-color: rgba(167, 139, 250, 0.45); color: #c4b5fd; }

/* payoff ring */
.ring { position: relative; width: 132px; height: 132px; margin: 4px auto 12px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .bg { stroke: rgba(214, 228, 255, 0.07); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset 1800ms var(--out); filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.6)); }
.is-in .ring .fg, .ring.is-in .fg { stroke-dashoffset: 84; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label strong { font-stretch: 115%; font-size: 24px; font-weight: 700; letter-spacing: -0.04em; }
.ring-label span { font-family: var(--f-label); font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* komsy building */
.bldg { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; padding: 18px 16px 0; border-radius: 14px 14px 0 0; background: linear-gradient(180deg, #1b2230, #10141c); border: 1px solid var(--line-2); border-bottom: 0; width: min(300px, 100%); margin-inline: auto; }
.bldg i { aspect-ratio: 4 / 3; border-radius: 3px; background: rgba(214, 228, 255, 0.06); }
.bldg i.lit { background: var(--sky); box-shadow: 0 0 12px 2px rgba(var(--sky-rgb), 0.45); animation: lit var(--t, 7s) ease-in-out var(--dl, 0s) infinite; }
@keyframes lit { 0%, 100% { opacity: 0.25; } 40%, 60% { opacity: 1; } }
.bldg .door { grid-column: 3 / 5; aspect-ratio: auto; height: 34px; margin-top: 6px; border-radius: 6px 6px 0 0; background: rgba(var(--sky-rgb), 0.18); }
.ground { height: 2px; background: var(--line-2); width: min(340px, 100%); margin-inline: auto; }

/* browser (client site) */
.browser { width: 100%; max-width: 460px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #0f1410; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: rgba(255, 255, 255, 0.04); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.browser-bar span { margin-left: 10px; flex: 1; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); font-family: var(--f-label); font-size: 11px; color: var(--muted); display: flex; align-items: center; padding-left: 10px; }
.browser-hero { position: relative; height: 170px; padding: 22px; background: radial-gradient(120% 120% at 80% 20%, rgba(74, 222, 128, 0.35), transparent 60%), linear-gradient(160deg, #13301e, #0a1a10); overflow: hidden; }
.browser-hero .bh-title { margin: 0; font-stretch: 115%; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; max-width: 12ch; line-height: 1.05; }
.browser-hero .bh-btn { display: inline-block; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: #4ade80; color: #062b14; font-family: var(--f-label); font-size: 11px; font-weight: 600; }
.leaf { position: absolute; right: -10px; bottom: -20px; width: 150px; height: 150px; color: rgba(74, 222, 128, 0.5); animation: sway 7s ease-in-out infinite; transform-origin: 80% 100%; }
@keyframes sway { 50% { transform: rotate(-6deg); } }
.browser-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.browser-cards i { height: 46px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); }

/* diff (KineWarden) */
.diff { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; line-height: 1.7; }
.diff div { padding: 2px 10px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.diff .del { background: rgba(248, 113, 113, 0.1); color: #fca5a5; }
.diff .add { background: rgba(74, 222, 128, 0.1); color: #86efac; }
.diff .ai { margin-top: 10px; padding: 10px 12px; border-radius: 10px; white-space: normal; background: rgba(var(--accent-rgb), 0.08); border: 1px solid rgba(var(--accent-rgb), 0.3); color: var(--text); font-family: var(--f-sans); font-size: 12.5px; line-height: 1.5; }

/* sparkline rows (Corax) */
.spark { display: grid; gap: 8px; }
.spark-row { display: grid; grid-template-columns: 74px 1fr 52px; align-items: center; gap: 10px; font-family: var(--f-label); font-size: 12px; color: var(--muted); }
.spark-row svg { width: 100%; height: 28px; overflow: visible; }
.spark-row path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 2200ms var(--out); }
.is-in .spark-row path { stroke-dashoffset: 0; }
.spark-row b { color: var(--ok); font-weight: 500; text-align: right; }
.spark-row b.warn { color: var(--sky); }

/* gauge (Owen) */
.tanks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tank { text-align: center; font-family: var(--f-label); font-size: 11.5px; color: var(--muted); }
.tank-body { position: relative; height: 120px; border-radius: 12px; border: 1px solid var(--line-2); overflow: hidden; background: rgba(214, 228, 255, 0.03); margin-bottom: 8px; }
.tank-fill { position: absolute; left: 0; right: 0; bottom: 0; height: var(--lv, 60%); background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.55), rgba(var(--accent-rgb), 0.15)); transform-origin: bottom; transform: scaleY(0); transition: transform 1600ms var(--spring); }
.is-in .tank-fill { transform: none; }
.tank-fill::before { content: ""; position: absolute; left: -50%; top: -6px; width: 200%; height: 12px; border-radius: 40%; background: rgba(var(--accent-rgb), 0.5); animation: wave 4s linear infinite; }
@keyframes wave { to { transform: translateX(25%); } }
.tank b { display: block; color: var(--text); font-size: 14px; font-weight: 600; }

/* weld dots */
.welds { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.welds i { aspect-ratio: 1; border-radius: 50%; background: rgba(214, 228, 255, 0.07); }
.welds i.ok { background: rgba(var(--accent-rgb), 0.75); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5); }
.welds i.bad { background: #f87171; box-shadow: 0 0 10px rgba(248, 113, 113, 0.6); }
.is-in .welds i { animation: weld 600ms var(--spring) backwards; animation-delay: calc(var(--k) * 40ms); }
@keyframes weld { from { transform: scale(0); } }

/* transfer */
.xfer { display: grid; gap: 12px; }
.xfer-ends { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--f-label); font-size: 12px; color: var(--muted); }
.xfer-ends b { display: block; color: var(--text); font-size: 14px; font-weight: 600; }
.xfer-line { position: relative; flex: 1; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.xfer-line::after { content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: packet 1.8s var(--in-out) infinite; }
@keyframes packet { to { left: 100%; } }
.bar { height: 6px; border-radius: 6px; background: rgba(214, 228, 255, 0.07); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w, 70%); border-radius: inherit; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1800ms var(--out); }
.is-in .bar i { transform: none; }

/* laser path */
.laser svg { width: 100%; height: auto; max-height: 210px; }
.laser .cut { fill: none; stroke: rgba(214, 228, 255, 0.14); stroke-width: 1.5; }
.laser .beam { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; filter: drop-shadow(0 0 6px var(--accent)); animation: beam 6s var(--in-out) infinite; }
@keyframes beam { 0% { stroke-dashoffset: 900; } 70%, 100% { stroke-dashoffset: 0; } }

/* map pins */
.map { position: relative; width: 100%; max-width: 440px; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: radial-gradient(circle at 30% 40%, rgba(var(--accent-rgb), 0.12), transparent 50%), #121417; }
.map::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 28px 28px; }
.map svg.roads { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .roads path { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 3; }
.pin { position: absolute; width: 14px; height: 14px; margin: -14px 0 0 -7px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.7); }
.is-in .pin { animation: drop 700ms var(--spring) backwards; animation-delay: calc(var(--k) * 120ms); }
@keyframes drop { from { transform: rotate(-45deg) translate(-30px, -30px); opacity: 0; } }
.map-card { position: absolute; right: 10px; bottom: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(12, 10, 9, 0.85); border: 1px solid var(--line-2); font-family: var(--f-label); font-size: 11px; color: var(--muted); }
.map-card b { display: block; color: var(--text); font-size: 12.5px; }

/* ---------- works grid (portfolio page) ---------- */
.filters { position: relative; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); }
.filters button { position: relative; z-index: 1; min-height: 42px; padding: 0 18px; border-radius: 999px; font-family: var(--f-label); font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color var(--t-base) var(--out); }
.filters button[aria-pressed="true"] { color: var(--accent-ink); }
.filters button span { margin-left: 6px; font-size: 12px; opacity: 0.7; }
.filters .f-pill { position: absolute; z-index: 0; border-radius: 999px; background: var(--grad); transition: left 560ms var(--spring), top 560ms var(--spring), width 560ms var(--spring), height 560ms var(--spring); }
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.works .card.tile { display: flex; flex-direction: column; padding: 14px; }
.works .card.tile.is-hidden { display: none; }
.tile .viz { min-height: 320px; height: auto; }
.tile-body { padding: 22px 10px 10px; display: flex; flex-direction: column; flex: 1; }
.tile-top { display: flex; align-items: center; gap: 14px; }
.tile-top .work-logo { width: 48px; height: 48px; border-radius: 13px; }
.tile h3 { font-stretch: 118%; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.04em; }
.tile .kind { font-family: var(--f-label); font-size: 13px; color: var(--accent); margin-top: 4px; }
.tile p { margin-top: 14px; color: var(--muted); font-size: 15.5px; }
.tile .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tile .tile-foot { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
@media (max-width: 860px) { .works { grid-template-columns: 1fr; } }

/* ---------- services hover list ---------- */
.svc-list { border-top: 1px solid var(--line); position: relative; }
.svc {
  position: relative; display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1fr) 48px; align-items: center; gap: 24px;
  padding: 30px 8px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 40px); cursor: pointer;
}
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.08), transparent 70%); transform: scaleY(0); transform-origin: bottom; transition: transform 500ms var(--out); }
.svc:hover::before, .svc:target::before { transform: none; }
.svc-n { font-family: var(--f-label); font-size: 13px; color: var(--dim); }
.svc h3 { font-stretch: 118%; font-size: clamp(26px, 3.4vw, 50px); letter-spacing: -0.045em; transition: transform 600ms var(--spring), color var(--t-base); }
.svc:hover h3, .svc:target h3 { transform: translateX(12px); color: var(--accent); }
.svc p { color: var(--muted); font-size: 16px; }
.svc .arr { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; justify-self: end; transition: background-color var(--t-base), color var(--t-base), transform 600ms var(--spring); }
.svc .arr svg { width: 16px; height: 16px; }
.svc:hover .arr { background: var(--accent); color: var(--accent-ink); border-color: transparent; transform: rotate(45deg); }
.svc-preview {
  position: fixed; top: 0; left: 0; z-index: var(--z-sticky); width: 260px; height: 190px; margin: -95px 0 0 -130px; pointer-events: none;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: var(--ink-3);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); opacity: 0; transform: scale(0.6); transition: opacity 300ms var(--out), transform 500ms var(--spring);
}
.svc-preview.is-on { opacity: 1; transform: scale(1); }
.svc-preview .pv { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 300ms; background: radial-gradient(circle at 70% 20%, rgba(var(--sky-rgb), 0.28), transparent 60%); }
.svc-preview .pv.on { opacity: 1; }
.svc-preview .pv svg { width: 72px; height: 72px; color: var(--sky); filter: drop-shadow(0 0 20px rgba(var(--sky-rgb), 0.6)); }
.svc-preview .pv span { position: absolute; left: 16px; bottom: 14px; font-family: var(--f-label); font-size: 12px; color: var(--muted); }
@media (max-width: 860px) {
  .svc { grid-template-columns: 40px 1fr; gap: 8px 14px; padding: 24px 0; }
  .svc p { grid-column: 2; }
  .svc .arr { display: none; }
  .svc-preview { display: none; }
}

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 110px); }
.process-aside { position: sticky; top: calc(var(--header-h) + 50px); align-self: start; }
.process-aside h2 { font-size: clamp(40px, 6vw, 92px); }
.process-aside .lead { margin-top: 22px; }
.steps { position: relative; padding-left: 46px; }
.steps::before, .steps-fill { content: ""; position: absolute; left: 10px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--line); }
.steps-fill { background: var(--grad); transform-origin: top; transform: scaleY(var(--p, 0)); box-shadow: 0 0 16px rgba(var(--sky-rgb), 0.7); }
.step { position: relative; padding: 26px 0 40px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step::before { content: ""; position: absolute; left: -42px; top: 34px; width: 14px; height: 11px; border-radius: 3px; background: var(--ink-4); transition: background-color 500ms, box-shadow 500ms; }
.step.is-active::before { background: var(--sky); box-shadow: 0 0 16px 3px rgba(var(--sky-rgb), 0.55); }
.step-n { font-family: var(--f-label); font-size: 13px; color: var(--dim); }
.step h3 { margin-top: 10px; font-stretch: 118%; font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -0.045em; color: var(--dim); transition: color 500ms; }
.step.is-active h3 { color: var(--text); }
.step p { margin-top: 12px; color: var(--muted); max-width: 480px; }
.step .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr; } .process-aside { position: relative; top: 0; } }

/* ---------- tech ---------- */
.tech .mq-item { font-stretch: 125%; font-weight: 700; font-size: clamp(36px, 6vw, 92px); letter-spacing: -0.055em; color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: color 400ms, -webkit-text-stroke-color 400ms; }
.tech .mq-item:hover { color: var(--text); -webkit-text-stroke-color: transparent; }
.tech { display: grid; gap: 14px; }

/* ---------- pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1020px) { .prices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .prices { grid-template-columns: 1fr; } }
.price { display: flex; flex-direction: column; padding: 30px; }
.price.featured { border-color: rgba(var(--accent-rgb), 0.45); background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.09), rgba(214, 228, 255, 0.015) 55%); }
.price .badge { position: absolute; top: 22px; right: 22px; }
.price h3 { margin-top: 26px; font-stretch: 112%; font-size: 23px; letter-spacing: -0.03em; }
.price .amount { margin-top: 18px; font-stretch: 125%; font-weight: 700; font-size: clamp(40px, 4vw, 54px); letter-spacing: -0.06em; line-height: 1; }
.price .amount small { font-stretch: 100%; font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.price .note { margin-top: 8px; font-family: var(--f-label); font-size: 12.5px; color: var(--dim); }
.price ul { display: grid; gap: 11px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.price li { display: flex; gap: 12px; color: var(--muted); font-size: 15px; }
.price li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.price .btn { margin-top: auto; }
.price ul + .btn { margin-top: 30px; }
.fine { margin-top: 30px; max-width: 780px; font-size: 14px; color: var(--dim); }
.fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- big CTA ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding-block: clamp(120px, 16vw, 230px); }
.cta .container { position: relative; z-index: 2; }
.cta .label { justify-content: center; }
.cta h2 { margin-top: 28px; font-size: clamp(54px, 12vw, 210px); }
.cta .lead { margin: 30px auto 0; text-align: center; }
.cta .hero-cta { justify-content: center; margin-top: 42px; }

/* ---------- features / generic grids ---------- */
.g2, .g3, .g4 { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.feat { display: flex; flex-direction: column; gap: 12px; padding: 28px; min-height: 230px; }
.feat .ico-tile { margin-bottom: auto; }
.feat h3 { margin-top: 26px; font-stretch: 112%; font-size: 22px; letter-spacing: -0.03em; }
.feat p { color: var(--muted); font-size: 15.5px; }
.feat .mini { align-self: flex-start; font-family: var(--f-label); font-size: 12px; color: var(--accent); padding: 4px 10px; border-radius: 8px; background: rgba(var(--accent-rgb), 0.08); border: 1px solid rgba(var(--accent-rgb), 0.2); }

.two { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.two h2 { font-size: clamp(36px, 5vw, 76px); }
.two .body { display: grid; gap: 20px; font-size: clamp(19px, 1.9vw, 26px); line-height: 1.45; color: var(--muted); }
.two .body strong { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

.manifesto-text { font-stretch: 118%; font-weight: 600; font-size: clamp(30px, 4.8vw, 74px); line-height: 1.08; letter-spacing: -0.045em; max-width: 21ch; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--line); }
.principle { padding: 32px 28px 8px 0; border-right: 1px solid var(--line); }
.principle + .principle { padding-left: 28px; }
.principle:last-child { border-right: 0; }
.principle b { display: block; font-family: var(--f-label); font-size: 13px; color: var(--sky); font-weight: 500; }
.principle h3 { margin-top: 18px; font-stretch: 112%; font-size: 24px; letter-spacing: -0.03em; }
.principle p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; } .principle, .principle + .principle { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); } }

/* grid children may shrink below content width */
.hero .container > *, .work > *, .two > *, .process > *, .head.split > *, .g2 > *, .g3 > *, .g4 > * { min-width: 0; }
