/* Sovamoon V3 shared styles: paper + ink, original moon mark. */
:root {
  color-scheme: light;
  /* paper + ink, brand navy kept as the ink colour */
  --paper:      #F6F3EC;
  --paper-2:    #EFEAE0;
  --card:       #FFFDF8;
  --ink:        #0A0F2C;
  --ink-soft:   #2B3150;
  --muted:      #5D6278;
  --line:       #D9D3C6;
  --line-soft:  #E6E1D6;
  /* moon colours, used flat */
  --sky:        #68B8FF;
  --violet:     #6A3BEF;
  --violet-ink: #4A22C4;
  --violet-on-dark: #8A6BFF; /* reads as the same purple as --violet does on paper */
  --lilac:      #E4DBFF;
  --ice:        #DCEEFF;
  --butter:     #FBE7A1;
  --mint:       #D6F1E1;
  --blush:      #FBDDD4;

  --font-head: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --r: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; margin: 0; font-optical-sizing: auto; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--violet); }

/* ---------- moon mark ---------- */
.moon { display: block; overflow: visible; }
.moon .orbit { stroke-dasharray: 5 5; animation: orbit 14s linear infinite; }
@keyframes orbit { to { stroke-dashoffset: -100; } }

/* ---------- buttons + stickers ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 600 16px/1 var(--font-body);
  padding: 15px 22px; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink);
  transition: transform .2s var(--spring), box-shadow .2s var(--ease), background .2s;
}
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 4px 0 var(--violet); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--violet); }
.btn-ink:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--violet); }
.btn-line { background: var(--card); color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn-line:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn-line:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--font-body); letter-spacing: .02em;
  padding: 9px 14px; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: #2BB673; box-shadow: 0 0 0 3px #2BB67333; }
.sticker { position: absolute; transform: rotate(var(--rot, -4deg)); transition: transform .35s var(--spring); z-index: 3; }
.sticker:hover { transform: rotate(0deg) scale(1.04); }
.mark { background: linear-gradient(transparent 62%, var(--lilac) 62% 92%, transparent 92%); padding: 0 .08em; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font: 700 19px/1 var(--font-head); letter-spacing: .14em; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-soft); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--violet); transition: right .3s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav .btn { padding: 11px 18px; font-size: 15px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); margin: 22px 0 24px; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-soft); max-width: 34em; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 44px 0 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.points li { padding: 16px 16px 0 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.points li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.points strong { display: block; font: 600 17px/1.2 var(--font-head); color: var(--ink); margin-bottom: 4px; }

.stage { position: relative; padding: 28px 0 56px; }
.browser {
  margin: 0; background: var(--card); border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden;
  box-shadow: 8px 10px 0 var(--ink); transform: rotate(1.2deg);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1.5px solid var(--ink); background: var(--paper-2); font-size: 12px; color: var(--muted); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--card); }
.browser-bar span { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top; }
.search-card {
  left: -28px; bottom: 0; --rot: -3deg; width: min(300px, 78%);
  background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 14px; box-shadow: 0 4px 0 var(--ink);
  font-size: 14px;
}
.search-q { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); margin-bottom: 12px; }
.search-q svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.search-res { display: flex; gap: 10px; align-items: center; }
.pin { width: 34px; height: 34px; border-radius: 50%; background: var(--ice); display: grid; place-items: center; flex: none; }
.pin svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 2; }
.search-res strong { display: block; font-size: 15px; }
.search-res em { font-style: normal; color: var(--muted); font-size: 13px; }
.search-res b { color: #1E8F57; font-weight: 600; }
.lead-card { right: -12px; top: -2px; --rot: 4deg; background: var(--butter); }
.live-card { right: 22px; bottom: 6px; --rot: -2deg; }

/* ---------- region strip ---------- */
.strip { border-block: 1.5px solid var(--ink); background: var(--card); overflow: hidden; }
.strip-track { display: flex; gap: 48px; padding: 16px 0; width: max-content; animation: drift 38s linear infinite; font: 500 italic 20px/1 var(--font-head); color: var(--ink-soft); }
.strip-track span { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.strip-track span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--violet); }
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); flex-wrap: wrap; }
.eyebrow { font: 600 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--violet-ink); margin-bottom: 16px; display: block; }
.sec h2 { font-size: clamp(38px, 5vw, 64px); }
.sec-sub { color: var(--ink-soft); max-width: 30em; margin: 0; }

/* work: swipeable deck */
#work { overflow-x: clip; }
.deck-area { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.deck { position: relative; aspect-ratio: 16 / 10; margin-bottom: 64px; touch-action: pan-y; outline: none; }
.deck:focus-visible { outline: 2px solid var(--violet); outline-offset: 10px; border-radius: 16px; }
.card {
  position: absolute; inset: 0; display: block; text-decoration: none; color: inherit;
  transform-origin: 50% 100%; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .55s var(--spring), opacity .4s var(--ease);
}
.card.dragging { transition: none; cursor: grabbing; }
.card.front { cursor: grab; }
.card-face {
  height: 100%; border: 1.5px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--card);
  box-shadow: 0 6px 0 var(--ink); display: flex; flex-direction: column;
}
.card-face .browser-bar { flex: none; }
.card-face img { flex: 1; min-height: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.card .stat-sticker { opacity: 0; transition: opacity .3s var(--ease), transform .35s var(--spring); }
.card.front .stat-sticker { opacity: 1; }
.stat-sticker { top: -18px; right: -14px; --rot: 5deg; background: var(--ink); color: var(--paper); border: 0; padding: 12px 16px; border-radius: 12px; box-shadow: 0 4px 0 var(--violet); font-size: 13px; line-height: 1.25; }
.stat-sticker strong { display: block; font: 600 22px/1.1 var(--font-head); color: #fff; }
.stat-sticker strong s { color: #9AA0BC; text-decoration-thickness: 2px; font-weight: 400; }
.next-face { align-items: flex-start; justify-content: center; gap: 20px; padding: clamp(28px, 5vw, 60px); background: var(--paper-2); }
.next-face h3 { font-size: clamp(34px, 4.4vw, 56px); }
.next-face h3 em { font-style: italic; font-weight: 500; color: var(--violet); }

.deck-info { min-height: 190px; }
.deck-count { font: 500 italic 20px/1 var(--font-head); color: var(--muted); }
.deck-count b { font-style: normal; font-weight: 600; color: var(--violet); }
.deck-info h3 { font-size: clamp(32px, 3.6vw, 46px); margin: 14px 0 8px; }
.deck-info p { margin: 0 0 18px; color: var(--ink-soft); font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); white-space: nowrap; }
.deck-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.arrow {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
  transition: transform .2s var(--spring), box-shadow .2s;
}
.arrow:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.arrow:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dots { display: flex; gap: 8px; margin-left: 6px; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; transition: width .35s var(--spring), background .2s; }
.dots button[aria-current="true"] { width: 26px; background: var(--ink); }
.deck-hint { margin-top: 18px; font-size: 14px; color: var(--muted); }
.deck-info.swap > * { animation: swap .4s var(--spring) both; }
.deck-info.swap > :nth-child(2) { animation-delay: .03s; } .deck-info.swap > :nth-child(3) { animation-delay: .06s; } .deck-info.swap > :nth-child(4) { animation-delay: .09s; }

/* pile: pills drop their card on top of a small stack (homepage fixer, services industries) */
[data-pile] { overflow-x: clip; }
.pile { display: grid; margin-bottom: 40px; }
.pile > .pcard {
  grid-area: 1 / 1; transform-origin: 50% 100%;
  transition: transform .5s var(--spring), opacity .35s var(--ease);
}
/* each card keeps its own color as it moves through the stack (set from its pill order) */
.pile > .pcard[data-tone="0"] { background-color: var(--lilac); }
.pile > .pcard[data-tone="1"] { background-color: var(--ice); }
.pile > .pcard[data-tone="2"] { background-color: var(--butter); }
.pile > .pcard[data-tone="3"] { background-color: var(--mint); }
.pile > .pcard[data-tone="4"] { background-color: var(--blush); }
.pile > .pcard[data-depth="0"] { cursor: pointer; }
.pile > .pcard:focus-visible { outline: 2px solid var(--violet); outline-offset: 6px; }
.pcard.land { animation: land .6s var(--spring) both; }
/* tossed card swings out to the right, drops behind the stack, settles into its new depth (inline transform) */
.pcard.toss { animation: toss .7s var(--ease); }
@keyframes toss {
  0%   { transform: none; z-index: 30; }
  42%  { transform: translate(58%, -18px) rotate(9deg); z-index: 30; }
  50%  { z-index: 1; }
}
@keyframes land {
  0%   { transform: translate(-14px, -64px) rotate(-5deg) scale(1.03); opacity: 0; }
  45%  { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
/* pile pills: a dot in their card's color; the selected pill fills with it */
.pick[data-tone] { display: inline-flex; align-items: center; gap: 9px; }
.pick[data-tone]::before { content: ""; flex: none; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--tone-dot); }
.pick[data-tone="0"] { --tone: var(--lilac); --tone-dot: #A68BFF; }
.pick[data-tone="1"] { --tone: var(--ice); --tone-dot: #7DBDFF; }
.pick[data-tone="2"] { --tone: var(--butter); --tone-dot: #F2C94C; }
.pick[data-tone="3"] { --tone: var(--mint); --tone-dot: #6FCF9A; }
.pick[data-tone="4"] { --tone: var(--blush); --tone-dot: #F29A82; }
.pick[data-tone][aria-pressed="true"] { background: var(--tone); color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.pick[data-tone][aria-pressed="true"]::before { background: var(--tone-dot); }
.pick.lift[aria-pressed="true"] { transform: translateY(-5px) rotate(-2deg); box-shadow: 0 8px 0 var(--violet); }
.pick[data-tone].lift[aria-pressed="true"] { box-shadow: 0 8px 0 var(--ink); }

/* what we do */
.do { background: var(--card); border-block: 1.5px solid var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--paper); }
.step { padding: clamp(26px, 3vw, 40px); position: relative; transition: background .3s; }
.step + .step { border-left: 1.5px solid var(--ink); }
.step:hover { background: var(--card); }
.step-num { font: 500 italic 64px/1 var(--font-head); color: var(--violet); display: block; margin-bottom: 28px; }
.step h3 { font-size: 30px; margin-bottom: 12px; }
.step p { margin: 0 0 20px; color: var(--ink-soft); }
.step ul { margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.step li { padding: 8px 0; border-top: 1px dashed var(--line); }
.step li::before { content: "→ "; color: var(--violet); }
.region { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; font-size: 16px; color: var(--ink-soft); }
.region strong { color: var(--ink); }

/* fixer */
.fixer { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.chips-pick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pick {
  font: 600 15px/1 var(--font-body); padding: 13px 18px; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
  transition: transform .2s var(--spring), box-shadow .2s, background .2s, color .2s;
}
.pick:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.pick[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: 0 3px 0 var(--violet); transform: translateY(1px); }
.answer {
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 18px; padding: clamp(26px, 3.4vw, 44px);
  box-shadow: 0 5px 0 var(--ink); min-height: 300px; position: relative;
}
.answer .label { font: 600 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.answer h3 { font-size: clamp(26px, 3vw, 36px); margin: 14px 0 16px; }
.answer p { color: var(--ink-soft); margin: 0 0 18px; }
.answer .fix { display: flex; flex-wrap: wrap; gap: 8px; }
.answer .fix span { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--ink); }
@keyframes swap { from { opacity: 0; transform: translateY(10px) rotate(-1deg); } }

/* cta */
.cta { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); border-radius: 28px; padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 80px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta h2 { font-size: clamp(40px, 5.6vw, 72px); color: #fff; }
.cta h2 em { color: var(--violet-on-dark); }
.cta p { color: #BFC4DA; font-size: 18px; max-width: 30em; margin: 22px 0 32px; }
.cta .btn-ink { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: 0 4px 0 var(--violet); }
.cta .btn-line { background: transparent; color: var(--paper); border-color: #8E94B3; box-shadow: none; }
.cta .btn-line:hover { border-color: var(--paper); box-shadow: none; }
.cta-moon { justify-self: center; width: min(340px, 80%); }
.cta-moon .moon { width: 100%; height: auto; }

/* footer */
footer { padding: 64px 0 40px; font-size: 15px; color: var(--muted); }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1.5px solid var(--ink); }
.foot h4 { font: 600 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 6px 0 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--violet-ink); }
.foot-note { max-width: 22em; margin: 16px 0 0; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .fixer, .cta { grid-template-columns: 1fr; }
  .stage { max-width: 620px; margin: 0 auto; width: 100%; }
  .deck-area { grid-template-columns: 1fr; }
  .deck-info { min-height: 0; }
  .deck-side { max-width: 560px; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1.5px solid var(--ink); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
  .cta-moon { width: 200px; order: -1; justify-self: start; }
}
@media (max-width: 760px) {
  .nav-links, .nav .btn { display: none; }
  .menu-btn { display: block; }
  .nav.open .nav-links { display: flex; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); border-bottom: 1.5px solid var(--ink); padding: 8px var(--gutter) 20px; }
  .nav.open .nav-links a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line-soft); }
  .points { grid-template-columns: 1fr; }
  .points li, .points li + li { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .search-card { left: -4px; }
  .lead-card { right: -4px; }
  .live-card { display: none; }
  .stat-sticker { right: -4px; top: -22px; }
  .deck { margin-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
