/* Avernora v7 (2026-10-08) · scroll-craft-loop pass against Dayos (see scrollcraft/builds/avernora-v7/bar.md).
   Colour stage: deep violet-navy panels + the signal violet as the one loud accent (approved by Samu 2026-10-08).
   Every visual shows real pages at a readable size; no shrunken screenshots. */
:root {
  --night: #14103a;
  --night-2: #0d0a29;
  --night-line: rgba(139, 124, 255, .34);
  --on-night: #ecebff;
  --on-night-muted: #aaa5d8;
  --v7-ease: cubic-bezier(.16, .84, .2, 1);
  --v7-r: clamp(24px, 3vw, 40px);
}

/* ---------- Shared type ---------- */
.v7-h {
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
  font-size: clamp(38px, 4.6vw, 72px); line-height: .98; text-wrap: balance;
}
.bg-black .v7-h, .v7-dark .v7-h { color: var(--white); }
.v7-lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: var(--muted); max-width: 34em; }
.v7-row-head { display: flex; justify-content: space-between; align-items: end; gap: 20px 56px; flex-wrap: wrap; }
.v7-row-head .v7-h { flex: 1 1 560px; }
.v7-row-head .v7-lead { flex: 0 1 400px; }

/* ---------- Split headings: each line slides out of its own mask (js/v7.js drives --p per line) ---------- */
.v7s-l { display: block; overflow: hidden; padding-block: .08em .2em; margin-block: -.08em -.2em; }
.v7s-i { display: inline-block; transform-origin: 0 100%; will-change: transform; }
.v7s-l.is-pad-x { padding-inline: .06em; margin-inline: -.06em; }

/* =========================================================
   Home · What we build: pinned lateral rail
   ========================================================= */
.cx { position: relative; padding-bottom: var(--arc); }
.cx-pin { position: relative; }
.cx-track { display: flex; flex-direction: column; gap: 56px; padding: var(--sec-y) var(--gutter) var(--sec-y); max-width: var(--maxw); margin: 0 auto; }
.cx-intro .v7-lead { margin-top: 20px; }
.cx-slide { --st-ink: #fff; }
.cx-stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--v7-r); background: var(--st); overflow: hidden; isolation: isolate; }
.cx-stage .concept { top: 18px; left: 18px; }
.cx-desk {
  position: absolute; left: 6%; top: 10%; width: 78%; height: auto; max-width: none;
  border-radius: 12px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .08);
  will-change: transform;
}
.cx-phone {
  position: absolute; right: 5%; bottom: -16%; width: 22%; height: auto; max-width: none;
  border-radius: 9% / 4.2%; border: 5px solid #0b0b0b; background: #0b0b0b;
  box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .6);
  will-change: transform;
}
.cx-info { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px 32px; align-items: start; }
.cx-info .meta { grid-column: 1 / -1; }
.cx-info h3 { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.1; }
.cx-info p { color: var(--muted); font-size: 16px; max-width: 42ch; }
/* Before / after: the new site wipes across the old one as the slide crosses the screen */
.cx-ba .cx-before, .cx-ba .cx-after { position: absolute; left: 6%; top: 10%; width: 88%; margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.cx-ba img { width: 100%; height: auto; max-width: none; }
.cx-ba .cx-after { clip-path: inset(0 calc((1 - var(--ba, 1)) * 100%) 0 0); }
.cx-ba figcaption {
  position: absolute; top: 14px; padding: 7px 12px; border-radius: 999px;
  font: 600 13px/1 var(--font-body); background: #fff; color: var(--ink); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .4);
}
.cx-before figcaption { right: 14px; }
.cx-after figcaption { left: 14px; background: var(--signal); color: var(--ink); }
.cx-edge { position: absolute; top: 6%; bottom: 0; left: calc(6% + 88% * var(--ba, 1)); width: 2px; background: var(--signal); z-index: 3; box-shadow: 0 0 0 4px rgba(139, 124, 255, .25); opacity: calc((1 - var(--ba, 1)) * 40); }
.cx-end { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.cx-end-line { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.08; color: var(--ink); text-wrap: balance; }

@media (min-width: 901px) {
  .cx.is-pinned .cx-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
  .cx.is-pinned .cx-track {
    --slide-w: min(60vw, calc((100svh - 300px) * 1.6), 1080px);
    flex-direction: row; align-items: center; gap: clamp(32px, 4vw, 72px);
    max-width: none; margin: 0; padding: calc(var(--nav-top) + var(--nav-h)) max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))) 0;
    will-change: transform;
  }
  .cx.is-pinned .cx-intro { flex: 0 0 min(30vw, 440px); }
  .cx.is-pinned .cx-slide { flex: 0 0 var(--slide-w); width: var(--slide-w); }
  .cx.is-pinned .cx-end { flex: 0 0 min(32vw, 440px); }
  .cx.is-pinned { padding-bottom: var(--arc); }
}
@media (max-width: 900px) {
  .cx-track { gap: 48px; }
  .cx-stage { aspect-ratio: 4 / 3.4; }
  .cx-desk { width: 86%; left: 5%; top: 14%; }
  .cx-phone { width: 30%; right: 4%; bottom: -10%; }
  .cx-ba .cx-before, .cx-ba .cx-after { width: 90%; left: 5%; top: 14%; }
  .cx-edge { left: calc(5% + 90% * var(--ba, 1)); }
  .cx-info { grid-template-columns: 1fr; }
}

/* =========================================================
   Home · Inquiry workflow motion graphic (the peak)
   ========================================================= */
.iq { position: relative; padding: var(--sec-y) 0 calc(var(--sec-y) + var(--arc)); }
.iq-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 56px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 36px); }
.iq-head .v7-h { flex: 1 1 520px; }
.iq-head .v7-lead { flex: 0 1 380px; }
.iq-panel {
  position: relative; background: var(--night); color: var(--on-night);
  border-radius: var(--v7-r); overflow: hidden; isolation: isolate;
  padding: 24px; display: grid; gap: 20px;
}
.iq-panel .concept { left: auto; right: 18px; top: 18px; }
@media (max-width: 999px) { .iq-panel { padding-top: 58px; } }
.iq-wire { display: none; }
.iq-node { display: none; }
.iq-input, .iq-flow, .iq-draft { position: relative; border-radius: 22px; }
.iq-input { background: rgba(255, 255, 255, .05); border: 1px solid var(--night-line); padding: 22px 24px 64px; }
.iq-src { font: 500 12.5px/1.3 var(--font-mono); color: var(--on-night-muted); display: flex; align-items: center; gap: 8px; }
.iq-dot { width: 7px; height: 7px; border-radius: 50%; background: #5fd38d; box-shadow: 0 0 0 4px rgba(95, 211, 141, .16); }
.iq-from { margin-top: 18px; font-size: 15px; color: var(--on-night-muted); }
.iq-from b { color: var(--white); font-weight: 600; }
.iq-typed { margin-top: 8px; font-size: clamp(18px, 1.55vw, 23px); line-height: 1.4; color: var(--white); min-height: 4.2em; }
.iq-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.18em; background: var(--signal); animation: iq-blink 1s steps(1) infinite; }
@keyframes iq-blink { 50% { opacity: 0; } }
.iq-send {
  position: absolute; right: 18px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--signal); color: var(--ink);
  transform: scale(var(--press, 1)); transition: transform .2s var(--v7-ease);
}
.iq-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.iq-flow { background: var(--night-2); border: 1px solid var(--night-line); padding: 14px; }
.iq-flow-top { display: flex; align-items: center; gap: 12px; padding: 6px 6px 14px; border-bottom: 1px solid var(--night-line); }
.iq-flow-top b { font: 600 clamp(18px, 1.5vw, 22px)/1.1 var(--font-body); color: var(--white); }
.iq-bot { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--signal); color: var(--ink); flex: none; }
.iq-bot svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iq-rows { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.iq-rows li {
  --on: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-radius: 14px; border: 1px solid rgba(139, 124, 255, calc(.2 + .45 * var(--on)));
  font-size: clamp(15px, 1.2vw, 17px); color: var(--white);
  opacity: calc(.32 + .68 * var(--on)); transform: translateX(calc((1 - var(--on)) * 14px));
}
.iq-rows li span { display: flex; align-items: center; gap: 10px; }
.iq-rows li span::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--on-night-muted);
  background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230a0a0a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  background-color: rgba(139, 124, 255, var(--on)); border-color: rgba(139, 124, 255, calc(.5 + .5 * var(--on)));
  background-size: calc(14px * var(--on));
}
.iq-rows em { font: 500 12.5px/1 var(--font-mono); font-style: normal; color: var(--on-night-muted); padding: 6px 9px; border-radius: 8px; border: 1px solid var(--night-line); white-space: nowrap; }
.iq-rows em.is-ai { color: var(--signal); }
.iq-rows li.is-you { background: rgba(139, 124, 255, calc(.16 * var(--on))); }
.iq-rows li.is-you em { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.iq-rows li.is-soft { --soft: 1; }
.iq-notif {
  position: relative; z-index: 1; border-radius: 20px; padding: 14px 16px;
  background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7);
  opacity: var(--nt, 1); transform: translateY(calc((1 - var(--nt, 1)) * 24px)) scale(calc(.96 + .04 * var(--nt, 1)));
}
.iq-notif-top { display: flex; align-items: center; gap: 8px; font: 600 11.5px/1 var(--font-body); color: #6b6b70; text-transform: uppercase; }
.iq-notif-top time { margin-left: auto; text-transform: none; font-weight: 500; }
.iq-notif-ic { width: 20px; height: 20px; border-radius: 6px; background: var(--signal); }
.iq-notif p:last-child { margin-top: 8px; font-size: 15px; line-height: 1.35; color: var(--text); }
.iq-notif b { display: block; color: var(--ink); font-weight: 600; }
.iq-draft { background: #fff; color: var(--text); padding: 22px 22px 20px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6); }
.iq-draft-tag { display: inline-block; font: 600 12.5px/1 var(--font-body); color: #2b2170; background: var(--signal-soft); padding: 7px 10px; border-radius: 999px; }
.iq-draft-sub { margin-top: 14px; font-weight: 600; color: var(--ink); font-size: 15px; }
.iq-draft p:not([class]) { margin-top: 8px; font-size: 15.5px; line-height: 1.5; }
.iq-sign { margin-top: 10px; font-size: 14px; color: var(--muted); }
.iq-btns { margin-top: 16px; display: flex; gap: 8px; }
.iq-btns span { font: 600 14px/1 var(--font-body); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); color: var(--ink); }
.iq-btns .iq-send-btn { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (min-width: 1000px) {
  .iq-panel { display: block; padding: 0; height: clamp(500px, 60svh, 600px); }
  .iq-input { position: absolute; left: 3.5%; top: 10%; width: 30%; }
  .iq-notif { position: absolute; left: 3.5%; bottom: 9%; width: 30%; }
  .iq-flow { position: absolute; left: 37%; top: 10%; width: 35%; }
  .iq-draft { position: absolute; left: 75%; top: 22%; width: 21.5%; }
  .iq-wire { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
  .iq-wire path { fill: none; stroke: var(--signal); stroke-width: 1.6; stroke-dasharray: 5 7; stroke-linecap: round; }
  .iq-node {
    display: block; position: absolute; z-index: 2; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
    background: var(--signal); box-shadow: 0 0 0 5px rgba(139, 124, 255, .25), 0 0 0 1px var(--night);
    transform: translate(var(--nx, -40px), var(--ny, -40px)); opacity: var(--no, 0);
  }
  .iq-input, .iq-flow, .iq-draft { z-index: 1; }
  .iq.is-pinned { padding: 0; }
  .iq.is-pinned .iq-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: calc(var(--nav-top) + var(--nav-h) - 8px); }
  .iq.is-pinned .iq-wrap { width: 100%; }
  .iq.is-pinned::after { content: ""; display: block; height: var(--arc); }
}
@media (min-width: 1000px) and (max-height: 820px) {
  .iq-head { margin-bottom: 18px; }
  .iq-head .v7-h { font-size: clamp(34px, 3.6vw, 54px); }
  .iq-panel { height: max(440px, calc(100svh - 270px)); }
  .iq-typed { min-height: 3em; }
}
.iq-draft { opacity: var(--do, 1); transform: translateX(calc((1 - var(--do, 1)) * 40px)) rotate(calc((1 - var(--do, 1)) * 3deg)); }

/* =========================================================
   Packages · card stack on a colour stage
   ========================================================= */
.pc { position: relative; padding: var(--sec-y) 0 calc(var(--arc) + clamp(32px, 4vw, 56px)); }
.pc-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 56px; flex-wrap: wrap; }
.pc-head .v7-h { flex: 1 1 520px; }
.pc-head .v7-lead { flex: 0 1 400px; }
.pc-stage {
  margin-top: clamp(28px, 3vw, 44px); position: relative; overflow: hidden;
  background: var(--night); border-radius: var(--v7-r);
  padding: clamp(20px, 3.4vw, 52px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px);
}
.pc-card {
  --bg: #0a0a0c; --fg: #ececf1; --mut: #a2a2ad; --rule: var(--signal);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: 540px; padding: clamp(22px, 2.2vw, 32px); border-radius: 26px;
  background: var(--bg); color: var(--fg);
  transform: translateY(calc(var(--rise, 0) * 1px));
}
.pc-card.is-lit { --bg: var(--signal); --fg: #0a0a0a; --mut: #2a2350; --rule: #0a0a0a; }
.pc-ribbon {
  position: absolute; top: 34px; right: -66px; width: 260px; padding: 7px 0; text-align: center; transform: rotate(35deg);
  background: #0a0a0a; color: #fff; font: 600 11.5px/1 var(--font-body);
}
.pc-kicker { font: 600 15px/1 var(--font-body); color: var(--fg); }
.pc-for { margin-top: 12px; font-size: 16px; line-height: 1.45; color: var(--mut); max-width: 30ch; }
.pc-big { margin-top: 30px; padding-bottom: 22px; border-bottom: 1.5px solid var(--rule); font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 3vw, 46px); line-height: 1; color: var(--fg); min-height: 2em; display: flex; align-items: flex-end; }
.pc-key { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; font-size: 16px; }
.pc-key li { display: flex; gap: 12px; align-items: baseline; }
.pc-key li::before { content: ""; width: 7px; height: 7px; flex: none; transform: translateY(-2px); background: var(--rule); border-radius: 2px; }
.pc-more {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 0 16px; background: none; border: 0; color: var(--fg); cursor: pointer;
  font: 600 15px/1 var(--font-body);
}
.pc-more i { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; }
.pc-more i::before, .pc-more i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px; margin: -.75px 0 0 -4.5px; background: currentColor; transition: transform .3s var(--v7-ease); }
.pc-more i::after { transform: rotate(90deg); }
.pc-card.is-open .pc-more i::after { transform: rotate(0); }
.pc-list {
  position: absolute; left: 0; right: 0; top: 0; bottom: 84px; z-index: 2;
  padding: clamp(22px, 2.2vw, 32px); background: var(--bg); color: var(--fg);
  transform: translateY(calc(100% + 84px)); transition: transform .55s var(--v7-ease);
  border-radius: 26px 26px 0 0; overflow: auto;
}
.pc-list::before { content: "What’s included"; display: block; font: 600 15px/1 var(--font-body); padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1.5px solid var(--rule); }
.pc-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; font-size: 16px; line-height: 1.4; }
.pc-list li { display: flex; gap: 12px; }
.pc-list li::before { content: ""; width: 14px; height: 14px; flex: none; margin-top: 3px; border-radius: 50%; background: var(--rule); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-8' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-8' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.pc-list li:first-child { font-weight: 600; }
.pc-card.is-open .pc-list { transform: none; }
.pc-btn {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: center;
  height: 56px; margin-top: 12px; border-radius: 999px; text-decoration: none;
  font: 600 15px/1 var(--font-body); background: var(--signal); color: var(--ink);
  transition: transform .25s var(--v7-ease), background-color .2s;
}
.pc-card.is-lit .pc-btn { background: var(--ink); color: #fff; }
.pc-btn:hover { transform: translateY(-2px); }
.pc-foot { margin-top: 28px; display: flex; justify-content: flex-end; }
@media (max-width: 900px) {
  .pc-stage { grid-template-columns: 1fr; }
  .pc-card { min-height: 0; transform: none; }
  .pc-ribbon { position: static; transform: none; width: auto; align-self: flex-start; padding: 7px 11px; border-radius: 999px; margin-bottom: 14px; }
  .pc-big { min-height: 0; }
  .pc-list { position: static; transform: none; padding: 0; background: none; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--v7-ease); overflow: hidden; border-radius: 0; }
  .pc-list::before { display: none; }
  .pc-list ul { min-height: 0; overflow: hidden; }
  .pc-card.is-open .pc-list { grid-template-rows: 1fr; }
  .pc-card.is-open .pc-list ul { padding-bottom: 8px; }
  .pc-more { margin-top: 20px; }
  .pc-foot { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .pc-card { transform: none; }
  .iq-caret { animation: none; }
}

/* =========================================================
   Services · What every site includes: cards turn over in turn (Dayos procurement grid)
   ========================================================= */
.fg { position: relative; padding: var(--sec-y) 0 calc(var(--sec-y) + var(--arc)); }
.fg-head { margin-bottom: clamp(24px, 3vw, 40px); }
.fg-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.3vw, 18px); perspective: 1600px; }
.fg-card { position: relative; height: clamp(210px, 25svh, 270px); border-radius: 24px; outline: none; }
.fg-card:focus-visible { box-shadow: 0 0 0 3px var(--signal); }
.fg-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--v7-ease); }
.fg-card.is-on .fg-in { transform: rotateY(180deg); }
.fg-front, .fg-back { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 24px; padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; }
.fg-front { background: #0a0a0c; color: #fff; justify-content: space-between; }
.fg-front h3 { color: #fff; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.1; max-width: 14ch; }
.fg-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(139, 124, 255, .16); color: var(--signal); }
.fg-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fg-back { background: var(--signal); color: var(--ink); transform: rotateY(180deg); gap: 10px; }
.fg-back h3 { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.15; color: var(--ink); }
.fg-back p { font-size: 15.5px; line-height: 1.45; color: #1c1838; }
.fg-yg { margin-top: auto; padding-top: 12px; border-top: 1.5px solid rgba(10, 10, 10, .85); }
.fg-yg b { display: block; font-weight: 600; color: var(--ink); }
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .fg-card:hover .fg-in, .fg-card:focus-visible .fg-in { transform: rotateY(180deg); }
  .fg-grid:hover .fg-card.is-on:not(:hover) .fg-in { transform: none; }
}
@media (min-width: 901px) {
  .fg.is-pinned { padding: 0; }
  .fg.is-pinned .fg-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: calc(var(--nav-top) + var(--nav-h) - 8px); }
  .fg.is-pinned .fg-pin > .container { width: 100%; }
  .fg.is-pinned::after { content: ""; display: block; height: var(--arc); }
}
@media (max-width: 900px) {
  .fg-grid { grid-template-columns: 1fr; perspective: none; }
  .fg-card { height: auto; }
  .fg-in, .fg-front, .fg-back { position: static; transform: none !important; }
  .fg-front { border-radius: 24px 24px 0 0; padding-bottom: 10px; flex-direction: row; align-items: center; gap: 16px; justify-content: flex-start; }
  .fg-front h3 { max-width: none; font-size: 22px; }
  .fg-ic { width: 44px; height: 44px; flex: none; }
  .fg-back { border-radius: 0 0 24px 24px; background: #0a0a0c; color: var(--on-dark); padding-top: 6px; }
  .fg-back h3 { display: none; }
  .fg-back p { color: #c9c9d2; }
  .fg-yg { border-top-color: rgba(139, 124, 255, .5); }
  .fg-yg b { color: var(--signal); }
}
@media (prefers-reduced-motion: reduce) { .fg-in { transition: none; } }

/* ---------- Services · packages in detail ---------- */
.pc-full .pc-card { min-height: 620px; }
.pc-fit { margin-top: 20px; font-size: 15px; line-height: 1.4; }
.pc-fit > p { font-weight: 600; font-size: 13.5px; color: var(--fg); margin-bottom: 8px; }
.pc-fit > p.is-no { margin-top: 16px; color: var(--mut); }
.pc-fit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pc-fit li { display: flex; gap: 10px; }
.pc-fit li::before { content: ""; width: 7px; height: 7px; flex: none; margin-top: 6px; border-radius: 2px; background: var(--rule); }
.pc-fit ul.is-no li { color: var(--mut); }
.pc-fit ul.is-no li::before { width: 8px; height: 1.5px; margin-top: 9px; border-radius: 0; background: var(--mut); }
.pc-tag { display: inline-block; margin-left: 6px; padding: 5px 8px; border-radius: 999px; font-size: 12px; background: rgba(139, 124, 255, .2); color: var(--signal); vertical-align: 1px; }
.pc-notes { margin-top: clamp(28px, 3vw, 40px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 40px; }
.pc-notes b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.pc-notes p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.pc-full { padding-bottom: calc(var(--sec-y) + var(--arc)); }
@media (max-width: 900px) { .pc-notes { grid-template-columns: 1fr; } .pc-full .pc-card { min-height: 0; } }
@media (min-width: 901px) { .pc-card.is-lit .pc-for, .pc-card.is-lit .pc-kicker { padding-right: 72px; } }

/* =========================================================
   How it works · hero on the colour stage
   ========================================================= */
.hh { position: relative; background: var(--night); color: var(--on-night); min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-top) + var(--nav-h) + clamp(40px, 6vh, 72px)) 0 calc(var(--arc) + clamp(40px, 6vh, 64px)); display: flex; align-items: center; }
.hh-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(36px, 5vh, 56px) clamp(40px, 6vw, 96px); align-items: center; }
.hh-title { color: #fff; font-size: clamp(48px, 6.6vw, 108px); line-height: .95; }
.hh-lead { margin-top: 26px; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--on-night-muted); max-width: 30em; }
.hh-btn { margin-top: 32px; background: var(--signal); color: var(--ink); }
.hh-btn:hover { background: #a194ff; }
.hh-ok { margin: 0; padding: clamp(22px, 2.4vw, 32px); border-radius: 28px; border: 1px solid var(--night-line); background: rgba(255, 255, 255, .03); }
.hh-ok-k { font: 600 14px/1 var(--font-body); color: var(--on-night-muted); }
.hh-rail { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.hh-rail::before { content: ""; position: absolute; left: 15px; top: 36px; bottom: 36px; width: 2px; background: var(--night-line); }
.hh-rail li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 18px; padding: 16px 0; }
.hh-rail li + li { border-top: 1px solid rgba(139, 124, 255, .16); }
.hh-rail i { grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--signal); background: var(--night); position: relative; z-index: 1; }
.hh-rail i::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230a0a0a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; transform: scale(0); animation: hh-lit .6s var(--v7-ease) forwards; animation-delay: calc(.9s + var(--i) * .55s); }
@keyframes hh-lit { to { transform: scale(1); } }
.hh-rail b { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.15; color: #fff; }
.hh-rail span { margin-top: 4px; font-size: 15.5px; color: var(--on-night-muted); }
.hh-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 48px; padding-top: 26px; border-top: 1px solid var(--night-line); }
.hh-facts b { display: block; color: #fff; font-size: 16px; font-weight: 600; }
.hh-facts span { display: block; margin-top: 6px; color: var(--on-night-muted); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 900px) {
  .hh { min-height: 0; }
  .hh-grid, .hh-facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .hh-rail i::after { animation: none; transform: none; } }

/* =========================================================
   How it works · pill timeline (Dayos Q1–Q4)
   ========================================================= */
.tl { position: relative; padding: var(--sec-y) 0 calc(var(--sec-y) + var(--arc)); }
.tl-head { margin-bottom: clamp(20px, 3vh, 36px); }
.tl-bar { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1vw, 16px); padding-top: 34px; }
.tl-line { position: absolute; top: 10px; left: 10%; right: 10%; height: 2px; background: #cfcfd6; }
.tl-line i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--tlp, 0%); background: var(--ink); transition: width .6s var(--v7-ease); }
.tl-pill {
  position: relative; display: grid; gap: 6px; justify-items: center; text-align: center;
  padding: clamp(14px, 2vh, 22px) 12px; border: 0; border-radius: 22px; background: #fff; color: var(--ink); cursor: pointer;
  font: inherit; transition: background-color .35s, transform .45s var(--v7-ease), box-shadow .35s;
}
.tl-pill::before {
  content: ""; position: absolute; top: -34px; left: 50%; width: 20px; height: 20px; margin-left: -10px;
  background: #c4c4cc; clip-path: polygon(50% 0, 100% 38%, 81% 100%, 19% 100%, 0 38%); transition: background-color .35s;
}
.tl-pill b { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 1.7vw, 26px); line-height: 1; }
.tl-pill span { font-size: 13.5px; color: var(--muted); }
.tl-pill:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .35); }
.tl-pill.is-done::before { background: var(--ink); }
.tl-pill.is-on { background: var(--ink); color: #fff; transform: translateY(-4px); }
.tl-pill.is-on::before { background: var(--signal); }
.tl-pill.is-on span { color: var(--on-dark-muted); }
.tl-stage { position: relative; margin-top: clamp(14px, 2vh, 22px); height: clamp(380px, calc(100svh - 370px), 560px); border-radius: var(--v7-r); background: var(--night); overflow: hidden; }
.tl-panel {
  position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(24px, 3.4vw, 56px); color: var(--on-night);
  opacity: 0; transform: translateX(70px); pointer-events: none; transition: opacity .45s ease, transform .75s var(--v7-ease);
}
.tl-panel.is-past { transform: translateX(-70px); }
.tl-panel.is-on { opacity: 1; transform: none; pointer-events: auto; }
.tl-text h3 { color: #fff; font-size: clamp(28px, 2.7vw, 42px); line-height: 1.04; }
.tl-text p { margin-top: 16px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.5; color: var(--on-night-muted); max-width: 32em; }
.tl-who { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tl-who li { padding: 9px 13px; border-radius: 999px; border: 1px solid var(--night-line); font-size: 14px; color: var(--on-night); }
.tl-who b { color: var(--signal); font-weight: 600; margin-right: 8px; }
.tl-art { justify-self: center; width: min(100%, 460px); }
.tl-art > div { background: #fff; color: var(--text); border-radius: 20px; padding: clamp(18px, 1.8vw, 26px); box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .8); font-size: 15.5px; line-height: 1.5; transform: translateY(26px) rotate(2.5deg); transition: transform .9s var(--v7-ease) .08s; }
.tl-panel.is-on .tl-art > div { transform: rotate(-1deg); }
.ta-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.ta-meta b { color: var(--ink); font-weight: 600; }
.ta-to { margin-top: 10px; font-size: 14px; color: var(--muted); }
.ta-subj { margin: 8px 0 8px; font-weight: 600; color: var(--ink); font-size: 18px; line-height: 1.3; }
.tl-art p + p:not([class]) { margin-top: 8px; }
.ta-file { margin-top: 14px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; border: 1px solid var(--border); font-size: 14px; font-weight: 500; color: var(--ink); }
.ta-file i { font: 700 10.5px/1 var(--font-body); font-style: normal; color: #fff; background: #d63c26; padding: 7px 6px; border-radius: 6px; }
.ta-file span { color: var(--muted); font-weight: 400; }
.ta-k { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tl-art ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.tl-art ul li { display: flex; gap: 10px; }
.tl-art ul li::before { content: ""; width: 6px; height: 6px; flex: none; margin-top: 9px; border-radius: 50%; background: var(--muted); }
.tl-art ul.is-check li::before { width: 18px; height: 18px; margin-top: 2px; background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230a0a0a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ta-check li { flex-wrap: wrap; }
.ta-check li b { font-weight: 600; color: var(--ink); }
.ta-check ul li { display: grid; grid-template-columns: 18px 1fr; column-gap: 10px; }
.ta-check ul li::before { grid-row: span 2; }
.ta-check ul li { font-size: 14.5px; color: var(--muted); line-height: 1.35; }
.ta-approve { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.ta-approve b { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.ta-chat { display: grid; gap: 10px; }
.ta-chat .ta-meta { margin-bottom: 4px; }
.ta-b { max-width: 86%; padding: 10px 14px; border-radius: 16px; background: var(--surface); font-size: 15px; }
.ta-b b { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.ta-b.is-us { justify-self: end; background: var(--signal-soft); }
@media (min-width: 901px) {
  .tl.is-pinned { padding: 0; }
  .tl.is-pinned .tl-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: calc(var(--nav-top) + var(--nav-h) - 8px); }
  .tl.is-pinned .tl-pin > .container { width: 100%; }
  .tl.is-pinned::after { content: ""; display: block; height: var(--arc); }
}
@media (min-width: 901px) and (max-height: 800px) {
  .tl-head .v7-h { font-size: clamp(32px, 3.4vw, 50px); }
  .tl-stage { height: max(340px, calc(100svh - 330px)); }
  .tl-pill { padding: 12px 10px; }
  .tl-art > div { font-size: 14.5px; }
}
@media (max-width: 900px) {
  .tl-bar { display: none; }
  .tl-stage { height: auto; background: none; overflow: visible; display: grid; gap: 14px; margin-top: 8px; }
  .tl-panel { position: relative; inset: auto; opacity: 1; transform: none; pointer-events: auto; grid-template-columns: 1fr; gap: 22px; border-radius: 26px; background: var(--night); padding: 24px 20px 28px; }
  .tl-panel::before { content: attr(data-name); font: 600 13px/1 var(--font-body); color: var(--signal); }
  .tl-art > div, .tl-panel.is-on .tl-art > div { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .tl-panel, .tl-art > div { transition: none; } }

/* =========================================================
   Teardown · What you get: a deck of findings
   ========================================================= */
.fd { position: relative; padding: var(--sec-y) 0 calc(var(--sec-y) + var(--arc)); }
.fd-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.fd-side .v7-h { font-size: clamp(36px, 3.9vw, 60px); }
.fd-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.fd-points li { padding: 16px 0; border-top: 1px solid #d9d9df; display: grid; gap: 4px; }
.fd-points b { color: var(--ink); font-size: 17px; font-weight: 600; }
.fd-points span { color: var(--muted); font-size: 15.5px; }
.fd-no { margin-top: 8px; padding: 16px 18px; border-radius: 16px; background: var(--signal-soft); color: #2b2170; font-size: 15px; line-height: 1.5; }
.fd-no b { color: #1b1450; }
.fd-prog { display: none; }
.fd-deck { position: relative; display: grid; gap: 20px; }
.fd-cap { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.fd-cap .concept { position: static; }
.fd-card { position: relative; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 30px 60px -40px rgba(0, 0, 0, .45); display: grid; }
.fd-shot { position: relative; background: var(--night); padding: clamp(18px, 2vw, 26px); display: grid; place-items: center; }
.fd-crop { position: relative; width: 100%; border-radius: 10px; overflow: visible; }
.fd-crop img, .fd-phone img { width: 100%; height: auto; border-radius: 10px; }
.fd-ring { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border: 3px solid var(--signal); border-radius: 12px; box-shadow: 0 0 0 6px rgba(139, 124, 255, .28); pointer-events: none; }
.fd-shot.is-phone { grid-template-columns: auto minmax(0, 1fr); gap: 24px; justify-items: start; }
.fd-phone { position: relative; width: clamp(120px, 11vw, 160px); aspect-ratio: 780 / 900; overflow: hidden; border-radius: 22px; border: 5px solid #0b0b0b; background: #fff; }
.fd-phone img { border-radius: 0; }
.fd-note { color: var(--on-night); font-size: 16px; line-height: 1.45; max-width: 22ch; }
.fd-body { padding: clamp(20px, 2.2vw, 30px); }
.fd-tag { display: inline-block; font: 600 12.5px/1 var(--font-body); color: #2b2170; background: var(--signal-soft); padding: 7px 10px; border-radius: 999px; }
.fd-body h3 { margin-top: 12px; font-size: clamp(22px, 2vw, 30px); line-height: 1.1; }
.fd-body dl { margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fd-body dt { font-size: 13px; font-weight: 600; color: var(--ink); padding-bottom: 6px; border-bottom: 1.5px solid var(--signal); margin-bottom: 8px; }
.fd-body dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text); }
@media (min-width: 1001px) {
  .fd.is-pinned { padding: 0; }
  .fd.is-pinned .fd-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: calc(var(--nav-top) + var(--nav-h)); }
  .fd.is-pinned .fd-pin > .container { width: 100%; }
  .fd.is-pinned .fd-side { position: relative; z-index: 30; }
  .fd.is-pinned::after { content: ""; display: block; height: var(--arc); }
  .fd.is-pinned .fd-deck { display: block; height: min(600px, calc(100svh - 170px)); }
  .fd.is-pinned .fd-cap { position: absolute; left: 0; top: 0; }
  .fd.is-pinned .fd-card { position: absolute; left: 0; right: 0; top: 40px; transform-origin: 50% 120%; will-change: transform; }
  .fd.is-pinned .fd-prog { display: flex; gap: 6px; margin-top: 22px; }
  .fd-prog i { flex: 1; height: 4px; border-radius: 2px; background: #d6d6dd; overflow: hidden; position: relative; }
  .fd-prog i::after { content: ""; position: absolute; inset: 0; background: var(--signal); transform: scaleX(var(--f, 0)); transform-origin: 0 50%; }
}
@media (min-width: 1001px) and (max-height: 820px) {
  .fd-shot { padding: 14px 18px; }
  .fd-body { padding: 18px 22px; }
  .fd-body dd { font-size: 14px; }
  .fd-points li { padding: 11px 0; }
  .fd-points span { font-size: 14.5px; }
  .fd-phone { width: 110px; }
}
@media (max-width: 1000px) {
  .fd-grid { grid-template-columns: 1fr; }
  .fd-body dl { grid-template-columns: 1fr; gap: 12px; }
  .fd-shot.is-phone { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
.fd.is-pinned .fd-card > * { opacity: var(--ci, 1); transition: opacity .3s ease; }
@media (max-width: 900px), (hover: none) { .fg-hint { display: none; } }

/* ---------- Round 1 corrections (Design Loop critics, 2026-10-08) ---------- */
/* Rail: pages shown at 1:1, cropped by the stage, never shrunk; bigger phone */
@media (min-width: 901px) {
  .cx.is-pinned .cx-desk { width: 1440px; left: 4%; top: 8%; border-radius: 12px 0 0 0; }
  .cx.is-pinned .cx-phone { width: 300px; right: 4%; top: 12%; bottom: auto; }
  .cx.is-pinned .cx-ba .cx-before, .cx.is-pinned .cx-ba .cx-after { width: 1440px; left: 4%; top: 8%; border-radius: 12px 0 0 0; }
  .cx.is-pinned .cx-edge { left: calc(4% + var(--ba, 1) * var(--sw, 96%)); }
}
.cx-ba .cx-after { clip-path: inset(0 calc(100% - var(--ba, 1) * var(--sw, 100%)) 0 0); }
.cx-ba .cx-before figcaption { right: auto; left: calc(var(--sw, 100%) - 96px); }
@media (max-width: 900px) {
  .cx-stage { aspect-ratio: 4 / 4.4; }
  .cx-desk { display: none; }
  .cx-phone { width: 74%; left: 13%; right: auto; top: 10%; bottom: auto; }
  .cx-ba .cx-before, .cx-ba .cx-after { width: 1440px; max-width: none; left: 5%; top: 10%; }
  .cx-edge { left: calc(5% + var(--ba, 1) * var(--sw, 90%)); }
}
.iq-dot { background: var(--signal); box-shadow: 0 0 0 4px rgba(139, 124, 255, .2); }
/* Packages: light stage, white buttons on dark cards; violet only on the lit card */
.pc-stage { background: var(--canvas); }
.pc-card { --rule: rgba(255, 255, 255, .55); }
.pc-card .pc-btn { background: #fff; color: var(--ink); }
.pc-card.is-lit .pc-btn { background: var(--ink); color: #fff; }
.pc-card.is-lit { --rule: #0a0a0a; }
.pc-list::before { content: attr(data-title); }
.pc-tag { background: rgba(255, 255, 255, .12); color: #fff; }
/* Pinned headings clear the floating nav */
@media (min-width: 901px) {
  .tl.is-pinned .tl-pin, .fg.is-pinned .fg-pin { padding-top: calc(var(--nav-top) + var(--nav-h) + 32px); }
  .tl-stage { height: clamp(360px, calc(100svh - 410px), 540px); }
}
@media (min-width: 1000px) { .iq.is-pinned .iq-pin { padding-top: calc(var(--nav-top) + var(--nav-h) + 24px); } }
/* How it works: concept chip on every artefact */
.tl-art { position: relative; }
.tl-concept { left: auto; right: -8px; top: -14px; z-index: 3; }
/* Inquiry rows wrap on narrow screens */
@media (max-width: 999px) { .iq-rows li { flex-wrap: wrap; } .iq-rows em { margin-left: 28px; } }
/* Teardown: caption sits below the stack; phone crop at actual size */
.fd.is-pinned .fd-cap { position: absolute; top: auto; bottom: 0; left: 0; }
.fd.is-pinned .fd-card { top: 0; }
.fd.is-pinned .fd-pin { overflow: hidden; }
.fd-phone { width: 390px; max-width: 100%; aspect-ratio: 780 / 560; border-width: 4px; border-radius: 18px 18px 0 0; border-bottom: 0; }
.fd-shot.is-phone { grid-template-columns: auto minmax(0, 1fr); }
@media (max-width: 1000px) { .fd-phone { width: 100%; } }
@media (max-width: 900px) {
  .cx-ba .cx-before, .cx-ba .cx-after { width: 74%; left: 13%; top: 10%; border-radius: 22px 22px 0 0; border: 5px solid #0b0b0b; border-bottom: 0; }
  .cx-ba .cx-before img { aspect-ratio: 1170 / 2532; object-fit: cover; object-position: top; }
  .cx-edge { left: calc(13% + var(--ba, 1) * var(--sw, 74%)); }
}
