/* ============================================================
   Solar Base — one page
   Palette sampled from the jellyfish watercolour: abyss ink,
   ocean, current, shallow, medusa violet, bloom rose.
   ============================================================ */

/* ---- reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ---- tokens ----------------------------------------------- */
:root {
  --abyss:   #071a2b;
  --ocean:   #14507f;
  --current: #3e8fc4;
  --shallow: #9fd2ea;
  --medusa:  #6e5fa8;
  --bloom:   #d9a6b4;

  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --serif: ui-serif, "Iowan Old Style", "Hoefler Text", Palatino, "Palatino Linotype", Georgia, serif;

  color-scheme: light;

  --maxw: 1180px;
  --rail: 150px;
  --pad:  clamp(1.25rem, 4vw, 3rem);

  /* light theme */
  --bg:          #f3f7f9;
  --bg-sunk:     #ebf1f5;
  --ink:         #071a2b;
  --ink-soft:    #26445a;
  --muted:       #5c7488;
  --line:        rgba(7, 26, 43, 0.13);
  --line-strong: rgba(7, 26, 43, 0.26);
  --accent:      #14507f;
  --accent-lit:  #3e8fc4;
  --accent-wash: rgba(62, 143, 196, 0.09);
  --btn-ink:     #f3f7f9;
  --hero-veil:   radial-gradient(120% 90% at 82% 4%, rgba(62,143,196,0.16), transparent 60%),
                 radial-gradient(80% 70% at 96% 30%, rgba(110,95,168,0.10), transparent 65%);
}

/* ---- base ------------------------------------------------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { text-wrap: balance; font-weight: 560; letter-spacing: -0.025em; line-height: 1.06; }
em { font-style: italic; }
strong { font-weight: 600; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: var(--bg);
  padding: 0.7rem 1rem; font: 500 0.85rem/1 var(--mono);
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

:where(a, button):focus-visible {
  outline: 2px solid var(--accent-lit);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---- shared type ------------------------------------------ */
.marker, .slug, .fig, .svc-id, .chips li, .hero-facts dt, .foot-note {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.prose { color: var(--ink-soft); max-width: 62ch; }
.prose p + p { margin-top: 1rem; }
.prose em { color: var(--ink); font-style: italic; }
.lead-out { max-width: 58ch; }

/* ---- buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: var(--btn-ink);
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.85rem 1.35rem; border-radius: 3px;
  text-decoration: none; white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--accent-lit); transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover { background: var(--accent-wash); color: var(--accent); }

.btn-sm { padding: 0.6rem 0.95rem; font-size: 0.6875rem; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: none; }

/* ---- top bar ---------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0.7rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-name {
  font-family: var(--mono); font-size: 0.8125rem;
  letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
}
.topnav { display: flex; align-items: center; gap: 1.6rem; }
.topnav a {
  font-family: var(--mono); font-size: 0.6875rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color 0.18s ease;
}
.topnav a:hover { color: var(--ink); }
.topnav .btn { color: var(--btn-ink); }
.topnav .btn:hover { color: var(--btn-ink); }
.cta-short { display: none; }
@media (max-width: 880px) { .topnav a:not(.btn) { display: none; } }
@media (max-width: 560px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .brand-name { letter-spacing: 0.14em; }
}

/* ---- hero ------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6.5rem) var(--pad) clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--hero-veil);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }

.hero-copy h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.7rem);
  letter-spacing: -0.038em;
  line-height: 0.99;
  font-weight: 580;
}
.hero-copy h1 em {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.lede { color: var(--ink-soft); max-width: 46ch; font-size: 1.0625rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-facts {
  display: grid; gap: 0.9rem; width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem; margin-top: 0.4rem;
}
.hero-facts > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: baseline; }
.hero-facts dt { color: var(--muted); }
.hero-facts dd { color: var(--ink); font-size: 0.9375rem; }
.with-flag { display: inline-flex; align-items: center; gap: 0.55rem; }
.flag {
  width: 21px; height: auto;
  border: 1px solid var(--line); border-radius: 1px;
  flex: none;
}

/* ---- specimen plate ---------------------------------------
   No frame and no fill: `multiply` maps the drawing's white
   paper exactly onto the page ground, so the artwork floats
   with no rectangle around it. Corner ticks keep the plate
   idea without drawing a box.
   ----------------------------------------------------------- */
.plate { display: flex; flex-direction: column; gap: 1.1rem; justify-self: center; max-width: 280px; }
.plate-frame {
  position: relative;
  padding: clamp(0.75rem, 2vw, 1.25rem);
}
.plate-frame img {
  width: 100%; height: auto;
  mix-blend-mode: multiply;
  /* mats off a 2px scan line on the right edge of the original scan */
  clip-path: inset(0 0.6% 0 0);
  /* The scan's blank paper multiplies ~3% darker than the page, which would
     show as a faint rectangle. Feathering a band at each edge dissolves the
     boundary; the centre stays fully opaque so the drawing is untouched.
     Without mask-composite support this degrades to no feather, not a crop. */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image:
    linear-gradient(to right,  transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  animation: drift 19s ease-in-out infinite alternate;
}
.plate-corner {
  position: absolute; width: 12px; height: 12px;
  border: 1px solid var(--line-strong);
}
.plate-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.plate-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.plate-corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.plate-corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.plate figcaption {
  display: grid; grid-template-columns: auto 1fr; gap: 0.9rem;
  align-items: start;
  border-left: 1px solid var(--line-strong);
  padding-left: 0.9rem;
}
.fig { color: var(--accent); white-space: nowrap; padding-top: 0.15rem; }
.fig-text { color: var(--muted); font-size: 0.875rem; line-height: 1.5; max-width: 40ch; }

@keyframes drift {
  from { transform: translateY(-9px) rotate(-0.7deg); }
  to   { transform: translateY(9px)  rotate(0.7deg); }
}
/* ---- band scaffold ---------------------------------------- */
.band { padding: clamp(3.5rem, 7vw, 6rem) var(--pad); border-bottom: 1px solid var(--line); }
.band-premise, .band-market { background: var(--bg-sunk); }

.wrap {
  max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.rail { display: flex; flex-direction: column; gap: 0.4rem; }
.rail .marker { color: var(--accent); }
.rail .slug { color: var(--muted); }

.band .body { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
.band .body h2 { font-size: clamp(1.7rem, 3.1vw, 2.5rem); max-width: 20ch; }

.statement {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.32; letter-spacing: -0.015em;
  max-width: 30ch; color: var(--ink);
}

@media (max-width: 860px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .rail { flex-direction: row; align-items: baseline; gap: 0.9rem; }
}

/* ---- diff ------------------------------------------------- */
.diff-list { display: flex; flex-direction: column; gap: 1.6rem; width: 100%; }
.diff { display: flex; flex-direction: column; gap: 1px; max-width: 74ch; }
.diff-line {
  display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.5rem;
  padding: 0.95rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.875rem; line-height: 1.6;
  border-left: 2px solid;
}
.diff-line .sign { font-weight: 600; opacity: 0.8; }
.diff-line.before {
  border-left-color: var(--line-strong);
  background: color-mix(in srgb, var(--muted) 7%, transparent);
  color: var(--muted);
}
.diff-line.after {
  border-left-color: var(--accent-lit);
  background: var(--accent-wash);
  color: var(--ink);
}
.diff-line.after .sign { color: var(--accent); }

/* ---- testimonials ------------------------------------------
   A repeatable slot: each entry is one <figure class="voice">.
   ------------------------------------------------------------ */
.voices {
  width: 100%; max-width: 74ch;
  display: flex; flex-direction: column; gap: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem; margin-top: 1rem;
}
.voices-label {
  font-family: var(--mono); font-size: 0.6875rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
}
.voice { display: flex; flex-direction: column; gap: 1rem; }
.voice-punch {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  line-height: 1.25; letter-spacing: -0.015em;
  color: var(--ink); max-width: 40ch;
}
.voice-punch em { font-style: italic; color: var(--accent); }
.voice-context { color: var(--ink-soft); font-size: 0.9375rem; max-width: 58ch; }

/* the screenshot is a dark UI; the frame matches its own background
   so the panel reads as a screen rather than a pasted rectangle */
.voice-shot {
  background: #11150f;
  border: 1px solid rgba(7, 26, 43, 0.3);
  border-radius: 4px;
  padding: 0.5rem;
  box-shadow: 0 18px 40px -30px rgba(7, 26, 43, 0.7);
  /* below ~520px the chat would shrink past legibility, so it scrolls
     inside its own panel rather than shrinking or widening the page */
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.voice-shot img { width: 100%; height: auto; min-width: 480px; border-radius: 2px; }

/* ---- principles ------------------------------------------- */
.principles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; width: 100%;
  background: var(--line);
  border: 1px solid var(--line);
}
.principle {
  background: var(--bg);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  display: flex; flex-direction: column; gap: 0.85rem;
}
.principle h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
.epigraph {
  font-family: var(--serif); font-style: italic;
  font-size: 1.0625rem; line-height: 1.4;
  color: var(--accent);
  border-left: 1px solid var(--accent-lit);
  padding-left: 0.85rem;
}
.epigraph cite {
  display: block; margin-top: 0.5rem;
  font-family: var(--mono); font-style: normal;
  font-size: 0.625rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted);
}
.principle p { color: var(--ink-soft); font-size: 0.9375rem; }

/* ---- services --------------------------------------------- */
.services {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1px; width: 100%;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--bg);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: background 0.2s ease;
}
.service:hover { background: var(--accent-wash); }
.svc-id { color: var(--accent); letter-spacing: 0.2em; }
.service h3 { font-size: 1.0625rem; letter-spacing: -0.008em; }
@media (min-width: 620px) { .service h3 { min-height: 2.3em; } }
.service p { color: var(--ink-soft); font-size: 0.9375rem; }

/* ---- chips ------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 68ch; }
.chips li {
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.5rem 0.75rem;
  background: color-mix(in srgb, var(--accent-lit) 5%, transparent);
}

/* ---- contact / footer ------------------------------------- */
.band-contact .body h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.contact-actions { margin-top: 0.5rem; }

.foot { padding: 2rem var(--pad); }
.foot-inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.6rem;
}
.foot .brand-name { color: var(--ink); }
.foot-note { color: var(--muted); letter-spacing: 0.1em; }
.foot-note:last-child { margin-left: auto; }

/* ---- reveal ----------------------------------------------- */
.rise { opacity: 0; transform: translateY(10px); }
.rise.in {
  opacity: 1; transform: none;
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.3, 1),
              transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---- narrow ----------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .plate { max-width: 250px; }
  .foot-note:last-child { margin-left: 0; }
}

/* ---- motion preference ------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rise { opacity: 1; transform: none; }
}
