/* SOV17 — modern ledger aesthetic.
   Fonts loaded via Google Fonts: Besley (display), Instrument Sans (body),
   Spline Sans Mono (meta/labels). */

:root {
  color-scheme: light;
  --paper: #f6f3ec;
  --paper-raised: #fdfcf8;
  --paper-deep: #eee9dd;
  --ink: #191b18;
  --ink-soft: #565b51;
  --ink-faint: #8b9082;
  --line: #ddd7c8;
  --line-strong: #c6bfaa;
  --green-900: #112a1f;
  --green-850: #173527;
  --green-700: #1e4d38;
  --green-600: #2a6b4d;
  --clay: #a8501f;
  --sea: #2e5e8a;
  --radius: 8px;
  --shadow-soft: 0 1px 2px rgba(25, 27, 24, 0.05), 0 12px 32px rgba(25, 27, 24, 0.07);
  --shadow-lift: 0 2px 4px rgba(25, 27, 24, 0.06), 0 22px 48px rgba(25, 27, 24, 0.12);
  --font-display: "Besley", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paper grain over everything; uniform, non-interactive. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: multiply;
}

::selection {
  background: var(--green-700);
  color: var(--paper);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 3px;
  border-radius: 2px;
}

.dark :focus-visible {
  outline-color: var(--paper);
}

h1,
h2,
h3,
h4,
p,
dl {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(46px, 6.4vw, 86px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(29px, 3.6vw, 42px);
  line-height: 1.1;
}

h3 {
  margin-bottom: 10px;
  font-size: 21.5px;
  line-height: 1.25;
}

.lead {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: clamp(17.5px, 1.9vw, 20px);
  line-height: 1.6;
}

.muted {
  color: var(--ink-soft);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shell {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 56px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 90;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 236, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--green-700);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.site-nav > a:not(.button) {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 6px;
}

.site-nav > a:not(.button):hover,
.site-nav > a:not(.button):focus-visible {
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: var(--radius);
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  background: var(--green-700);
  color: var(--paper-raised);
  transition: background-color 160ms ease, border-color 160ms ease,
    transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--green-600);
}

.button:active {
  transform: translateY(1px);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(25, 27, 24, 0.045);
  border-color: var(--ink-soft);
}

.button.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.dark .button {
  background: var(--paper-raised);
  color: var(--ink);
}

.dark .button:hover,
.dark .button:focus-visible {
  background: #ffffff;
}

.dark .button.secondary {
  background: transparent;
  color: var(--paper);
  border-color: rgba(246, 243, 236, 0.32);
}

.dark .button.secondary:hover,
.dark .button.secondary:focus-visible {
  background: rgba(246, 243, 236, 0.08);
  border-color: rgba(246, 243, 236, 0.6);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--green-700);
}

.arrow-link svg {
  transition: transform 180ms ease;
}

.arrow-link:hover svg,
.arrow-link:focus-visible svg {
  transform: translateX(4px);
}

/* ---------- Eyebrows & section heads ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--green-700);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--green-700);
  flex: none;
}

.dark .eyebrow {
  color: rgba(246, 243, 236, 0.66);
}

.dark .eyebrow::before {
  background: rgba(246, 243, 236, 0.4);
}

.section {
  border-top: 1px solid var(--line);
  padding-block: clamp(64px, 9vw, 104px);
}

.section.flush {
  border-top: 0;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(20px, 4vw, 56px);
  align-items: start;
  max-width: 980px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-index {
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.section-head h2 {
  margin-bottom: 12px;
}

.section-head p {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  padding-block: clamp(72px, 10vw, 132px) clamp(64px, 8vw, 104px);
  background:
    linear-gradient(to bottom, rgba(246, 243, 236, 0) 0%, var(--paper) 88%),
    repeating-linear-gradient(
      to bottom,
      transparent 0 35px,
      rgba(25, 27, 24, 0.055) 35px 36px
    );
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: end;
}

.hero h1 {
  max-width: 13ch;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Index card — table of contents for the studio. */

.hero-index {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper-raised);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-index-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.index-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "num name arrow"
    "num desc arrow";
  column-gap: 18px;
  align-items: center;
  padding: 18px 20px;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.index-row + .index-row {
  border-top: 1px solid var(--line);
}

.index-row:hover,
.index-row:focus-visible {
  background: var(--paper);
}

.index-num {
  grid-area: num;
  align-self: start;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent, var(--green-700));
}

.index-name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 580;
  line-height: 1.2;
}

.index-desc {
  grid-area: desc;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.index-arrow {
  grid-area: arrow;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: transform 180ms ease, color 160ms ease, border-color 160ms ease;
}

.index-row:hover .index-arrow,
.index-row:focus-visible .index-arrow {
  transform: translateX(3px);
  color: var(--accent, var(--green-700));
  border-color: var(--accent, var(--green-700));
}

.index-foot {
  margin: 0;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Product cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-raised);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow 220ms ease, transform 220ms ease,
    border-color 220ms ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--accent, var(--green-700));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.card-visual {
  display: block;
  padding: clamp(20px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.card-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.card-body {
  padding: clamp(22px, 3vw, 30px);
}

.card-body h3 a {
  text-decoration: none;
}

.card-body h3 a:hover {
  color: var(--accent, var(--green-700));
}

.card-body p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  color: var(--ink-soft);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px clamp(22px, 3vw, 30px) 22px;
  border-top: 1px solid var(--line);
}

.card-foot .arrow-link {
  color: var(--accent, var(--green-700));
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, var(--green-600));
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ---------- Trust / editorial columns ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 44px);
}

.trust-item {
  border-top: 1px solid var(--line-strong);
  padding-top: 22px;
}

.trust-item::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin-bottom: 18px;
  background: var(--green-700);
}

.trust-item h3 {
  font-size: 19.5px;
}

.trust-item p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ---------- Dark contact strip ---------- */

.dark {
  color: var(--paper);
}

.dark .muted {
  color: rgba(246, 243, 236, 0.68);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  border-radius: 14px;
  padding: clamp(30px, 4.5vw, 56px);
  background:
    radial-gradient(120% 160% at 85% -20%, rgba(42, 107, 77, 0.35), transparent 60%),
    var(--green-900);
}

.contact-panel h2 {
  color: var(--paper-raised);
}

.contact-panel .eyebrow {
  margin-bottom: 16px;
}

.contact-panel p:last-child {
  margin-bottom: 0;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.contact-actions .button {
  justify-content: space-between;
}

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  padding-block: clamp(56px, 8vw, 96px) clamp(44px, 6vw, 72px);
  background:
    linear-gradient(to bottom, rgba(246, 243, 236, 0) 0%, var(--paper) 88%),
    repeating-linear-gradient(
      to bottom,
      transparent 0 35px,
      rgba(25, 27, 24, 0.05) 35px 36px
    );
}

.page-hero h1 {
  max-width: 16ch;
  margin-bottom: 20px;
  font-size: clamp(40px, 5vw, 64px);
}

.page-hero .lead {
  max-width: 720px;
  margin-bottom: 0;
}

/* ---------- Facts ledger (product pages) ---------- */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.facts {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper-raised);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.facts-title {
  margin: 0;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.facts > div {
  padding: 15px 20px;
}

.facts > div + div {
  border-top: 1px solid var(--line);
}

.facts dt {
  margin-bottom: 3px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  font-weight: 550;
  font-size: 15.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* ---------- Pricing ---------- */

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.price-figure {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 52px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

.price-terms {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Legal pages ---------- */

.legal-content {
  max-width: 820px;
}

.legal-content h2 {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 25px;
}

.legal-content h2::before {
  content: "§";
  margin-right: 12px;
  color: var(--green-700);
  font-family: var(--font-mono);
  font-size: 0.72em;
  font-weight: 500;
  vertical-align: 2px;
}

.legal-content a {
  color: var(--green-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-content ul {
  padding-left: 4px;
  list-style: none;
}

.legal-content li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 24px;
}

.legal-content li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--green-700);
}

/* ---------- Footer ---------- */

.footer {
  margin-top: clamp(40px, 6vw, 72px);
  background: var(--green-900);
  color: rgba(246, 243, 236, 0.72);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(44px, 6vw, 64px) clamp(32px, 4vw, 44px);
}

.footer .brand-mark {
  background: var(--paper-raised);
  color: var(--green-900);
}

.footer .brand-name {
  color: var(--paper-raised);
}

.footer-tagline {
  max-width: 340px;
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
}

.footer h4 {
  margin: 6px 0 14px;
  color: rgba(246, 243, 236, 0.5);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-start;
}

.footer-col a {
  color: rgba(246, 243, 236, 0.82);
  text-decoration: none;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-block: 20px;
  border-top: 1px solid rgba(246, 243, 236, 0.14);
  font-size: 13.5px;
}

.footer-base .mono {
  color: rgba(246, 243, 236, 0.45);
  font-size: 11.5px;
}

/* ---------- Motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero .eyebrow,
.hero h1,
.hero .lead,
.hero .hero-actions,
.hero .hero-index,
.page-hero .eyebrow,
.page-hero h1,
.page-hero .lead {
  animation: rise 640ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1,
.page-hero h1 {
  animation-delay: 90ms;
}

.hero .lead,
.page-hero .lead {
  animation-delay: 180ms;
}

.hero .hero-actions {
  animation-delay: 260ms;
}

.hero .hero-index {
  animation-delay: 340ms;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .product-grid .reveal:nth-child(2),
.js .trust-grid .reveal:nth-child(2) {
  transition-delay: 90ms;
}

.js .trust-grid .reveal:nth-child(3) {
  transition-delay: 180ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-index {
    max-width: 560px;
  }

  .product-grid,
  .trust-grid,
  .two-column,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-block: 14px;
  }

  .site-nav {
    gap: 4px 18px;
  }

  .section-head {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .section-index {
    padding-top: 0;
  }

  .card-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-actions .button {
    justify-content: center;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media print {
  .site-header,
  .footer,
  .skip-link {
    display: none;
  }

  body {
    background: #ffffff;
  }

  body::after {
    display: none;
  }
}
