/* Sovellion: company site. Brand tokens match BRAND-LOGO.md. */
@font-face { font-family: "Red Hat Display"; src: url("/assets/fonts/red-hat-display-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Red Hat Display"; src: url("/assets/fonts/red-hat-display-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Red Hat Display"; src: url("/assets/fonts/red-hat-display-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #141824;
  --ink-2: #1D2233;
  --ink-3: #2A3044;
  --gold: #E3A33B;
  --gold-text: #9A6614;      /* gold for small text on paper: 4.8:1 */
  --paper: #FAF9F6;
  --white: #FFFFFF;
  --line: #E4E1DA;
  --muted: #5B6172;          /* on paper: 6.1:1 */
  --muted-dark: #A9AEBD;     /* on ink: 8.4:1 */
  --radius: 14px;
  --wrap: 1180px;
  --font: "Red Hat Display", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(20, 24, 36, .06); }
.header-row { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand img { width: 168px; height: auto; }
.nav { display: flex; gap: 36px; margin-left: auto; }
.nav a { font-weight: 500; font-size: .98rem; text-decoration: none; color: var(--ink); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; letter-spacing: .005em; transition: transform .2s ease, background-color .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .94rem; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-3); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #EDB453; }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); padding: 148px 0 156px; }
.hero-lion { position: absolute; right: -4%; top: 50%; width: min(56vw, 760px); transform: translateY(-46%); pointer-events: none; }
.hero-inner { position: relative; }
.eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); max-width: 13ch; letter-spacing: -0.03em; }
.lead { font-size: clamp(1.12rem, 1.6vw, 1.32rem); line-height: 1.55; color: var(--muted-dark); max-width: 40rem; margin-top: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

/* Sections */
.section { padding: 128px 0; }
.paper { background: var(--paper); }
.white { background: var(--white); border-top: 1px solid var(--line); }
.ink { background: var(--ink); color: var(--white); }
.index { display: flex; align-items: center; gap: 14px; font-size: .82rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.index span { color: var(--gold-text); }
.index::before { content: ""; width: 32px; height: 2px; background: var(--gold); order: -1; }
.ink .index { color: var(--muted-dark); }
.ink .index span { color: var(--gold); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); max-width: 18ch; }
.body-lg { font-size: 1.2rem; color: var(--muted); max-width: 32rem; margin-top: 24px; }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.cards.single { grid-template-columns: 1fr; }
.card.product { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 48px; }
.product-head { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.product-head .product-mark { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.product-head .tagline { margin: 2px 0 0; }
.product-head .status { margin-left: auto; align-self: flex-start; white-space: nowrap; }
.product-main > p { color: var(--muted); font-size: 1.12rem; max-width: 36rem; }
.product-side { padding: 8px 0 8px 48px; border-left: 1px solid var(--line); }
.side-label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; padding: 0; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 500; font-size: .98rem; background: var(--paper); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(20, 24, 36, .08); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.product-mark { width: 48px; height: 48px; border-radius: 11px; }
.status { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); background: #FBF1DF; border-radius: 999px; padding: 6px 12px; }
.card h3 { font-size: 2rem; }
.tagline { font-size: 1.18rem; font-weight: 500; margin: 8px 0 16px; }
.card > p:not(.tagline) { color: var(--muted); }
.meta { margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.meta div { display: grid; grid-template-columns: 116px 1fr; gap: 12px; }
.meta dt { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.meta dd { margin: 0; font-weight: 500; }

/* Principles */
.principles { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; counter-reset: p; }
.principles li { counter-increment: p; border-top: 1px solid var(--ink-3); padding-top: 28px; }
.principles li::before { content: counter(p, decimal-leading-zero); display: block; font-weight: 700; color: var(--gold); font-size: .9rem; letter-spacing: .1em; margin-bottom: 18px; }
.principles h3 { font-size: 1.5rem; margin-bottom: 14px; letter-spacing: -0.01em; }
.principles p { color: var(--muted-dark); }

/* Pillars (What we do) */
.pillars { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; counter-reset: q; }
.pillars li { counter-increment: q; border-top: 1px solid var(--line); padding-top: 28px; }
.pillars li::before { content: counter(q, decimal-leading-zero); display: block; font-weight: 700; color: var(--gold-text); font-size: .9rem; letter-spacing: .1em; margin-bottom: 18px; }
.pillars h3 { font-size: 1.5rem; margin-bottom: 14px; letter-spacing: -0.01em; }
.pillars p { color: var(--muted); }

/* Company */
.company { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.facts { margin: 0; border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 500; font-size: 1.08rem; }

/* Contact */
.contact { padding-bottom: 144px; }
.contact .lead { margin-top: 20px; }
.email { display: inline-block; margin-top: 40px; font-size: clamp(1.6rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; color: var(--white); background-image: linear-gradient(var(--gold), var(--gold)); background-size: 100% 3px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 6px; transition: color .2s; word-break: break-word; }
.email:hover { color: var(--gold); }

/* Footer */
.site-footer { background: #0E111A; color: var(--muted-dark); padding: 36px 0; font-size: .92rem; }
.footer-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-row img { width: 132px; }
.footer-row p { margin-left: auto; }
.footer-row a { color: var(--white); text-decoration: none; }
.footer-row a:hover { color: var(--gold); }

/* Reveal: only when JS runs and motion is allowed */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .nav a::after { transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .principles { grid-template-columns: 1fr; gap: 0; }
  .principles li { padding: 28px 0 36px; }
  .pillars { grid-template-columns: 1fr; gap: 0; }
  .pillars li { padding: 28px 0 36px; }
  .company { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .header-row { height: 64px; justify-content: space-between; }
  .brand img { width: 140px; }
  .hero { padding: 96px 0 104px; }
  .hero-lion { width: 120vw; right: -48%; top: auto; bottom: -18%; transform: none; }
  .section { padding: 88px 0; }
  .cards { grid-template-columns: 1fr; margin-top: 44px; }
  .card.product { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .product-head { display: grid; grid-template-columns: 52px 1fr; gap: 14px 16px; }
  .product-head .product-mark { width: 52px; height: 52px; border-radius: 12px; }
  .product-head .status { margin-left: 0; grid-column: 1 / -1; justify-self: start; }
  .product-side { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .card { padding: 28px; }
  .principles { margin-top: 40px; }
  .pillars { margin-top: 40px; }
  .facts div, .meta div { grid-template-columns: 1fr; gap: 2px; }
  .meta { gap: 14px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-row p { margin-left: 0; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 18px; }
  .btn-sm { padding: 0 16px; }
  .brand img { width: 124px; }
}
