/* ==========================================================================
   S2 Digital Media — stylesheet
   Converted from the design canvas into a real, maintainable system.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ink */
  --ink:          #171614;
  --ink-soft:     #3B3831;
  --body:         #55524B;
  --muted:        #6E6A63;

  /* Surfaces */
  --canvas:       #FAF8F4;
  --surface:      #FFFFFF;
  --line:         #E6E1D8;
  --line-strong:  #D9D3C8;

  /* Brand */
  --green:        #0B6B53;
  --green-dark:   #08543F;
  --mint:         #8FC7B4;
  --dark:         #14201C;
  --red:          #C8452F;

  /* On-dark ink */
  --on-dark:        rgba(250, 248, 244, 1);
  --on-dark-70:     rgba(250, 248, 244, 0.68);
  --on-dark-60:     rgba(250, 248, 244, 0.60);
  --on-dark-45:     rgba(250, 248, 244, 0.45);
  --on-dark-80:     rgba(250, 248, 244, 0.80);
  --on-dark-line:   rgba(250, 248, 244, 0.14);
  --on-dark-line-2: rgba(250, 248, 244, 0.18);
  --on-dark-fill:   rgba(250, 248, 244, 0.06);

  /* Geometry */
  --radius-xs:  8px;
  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  18px;
  --radius-xl:  20px;
  --pill:       999px;

  /* Rhythm */
  --pad-x:      clamp(20px, 4.5vw, 56px);
  --section-y:  clamp(52px, 7vw, 84px);
  --maxw:       1440px;
  --maxw-prose: 860px;

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

a { color: var(--green); text-decoration: none; transition: color .16s ease; }
a:hover { color: var(--green-dark); }

button, input, select, textarea { font: inherit; color: inherit; }

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

.page { display: flex; flex-direction: column; min-height: 100vh; }
.page__main { flex: 1; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 0 0 var(--radius-xs) 0;
  font-size: 14px; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; }
.prose-wrap { max-width: var(--maxw-prose); margin-inline: auto; }

.section { padding: var(--section-y) var(--pad-x); }
.section--flush-top    { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

/* Full-bleed bands */
.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band--top-only    { border-bottom: none; }
.band--bottom-only { border-top: none; }
.band--dark        { background: var(--dark); border: none; }

.stack    { display: flex; flex-direction: column; }
.stack-4  { gap: 4px; }
.stack-8  { gap: 8px; }
.stack-10 { gap: 10px; }
.stack-12 { gap: 12px; }
.stack-14 { gap: 14px; }
.stack-16 { gap: 16px; }
.stack-18 { gap: 18px; }
.stack-20 { gap: 20px; }
.stack-22 { gap: 22px; }
.stack-26 { gap: 26px; }
.stack-34 { gap: 34px; }
.stack-40 { gap: 40px; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); gap: 28px; }
.grid--chips { grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* Asymmetric splits */
.split-hero    { display: grid; grid-template-columns: 1fr 400px; gap: clamp(36px, 5vw, 64px); align-items: center; }
.split-start   { display: grid; grid-template-columns: 1fr 400px; gap: clamp(36px, 5vw, 64px); align-items: start; }
.split-form    { display: grid; grid-template-columns: 1fr 520px; gap: clamp(36px, 5vw, 72px); align-items: start; }
.split-even    { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 4.5vw, 56px); }
.split-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 4.5vw, 56px); align-items: center; }
.split-row     { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 3vw, 40px); }

.row-between {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px;
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow--mint  { color: var(--mint); }
.eyebrow--muted { color: var(--muted); letter-spacing: 0.1em; }

.h-hero {
  font-size: clamp(2rem, 5.6vw, 4.25rem);
  line-height: 1.04; font-weight: 800;
  letter-spacing: -0.03em; color: var(--ink);
}
.h1 {
  font-size: clamp(1.85rem, 4.6vw, 3.5rem);
  line-height: 1.06; font-weight: 800;
  letter-spacing: -0.03em; color: var(--ink);
}
.h1--legal { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.08; }
.h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.5rem);
  line-height: 1.1; font-weight: 800;
  letter-spacing: -0.028em; color: var(--ink);
}
.h2--sm { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.12; }
.h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.875rem);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.2; color: var(--ink);
}
.h3--sm { font-size: clamp(1.35rem, 2.1vw, 1.625rem); }
.h3--xs { font-size: clamp(1.3rem, 1.9vw, 1.5rem); }
.h4 { font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.h4--sm { font-size: 18px; }

.lead {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.62; color: var(--body);
  text-wrap: pretty;
}
.lead--sm { font-size: clamp(1rem, 1.2vw, 1.0625rem); }
.body     { font-size: 15px; line-height: 1.65; color: var(--body); }
.body--md { font-size: 16px; line-height: 1.65; color: var(--body); }
.body--sm { font-size: 14px; line-height: 1.6; color: var(--body); }
.meta     { font-size: 13px; line-height: 1.55; color: var(--muted); }
.meta--md { font-size: 14px; color: var(--muted); line-height: 1.6; }

.measure-320 { max-width: 320px; }
.measure-460 { max-width: 460px; }
.measure-480 { max-width: 480px; }
.measure-520 { max-width: 520px; }
.measure-620 { max-width: 620px; }
.measure-640 { max-width: 640px; }
.measure-760 { max-width: 760px; }
.measure-800 { max-width: 800px; }

.center { text-align: center; }
.center-col { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* On-dark text */
.on-dark .h1,
.on-dark .h2,
.on-dark .h3,
.on-dark .h4    { color: var(--on-dark); }
.on-dark .lead  { color: var(--on-dark-70); }
.on-dark .body,
.on-dark .body--md { color: var(--on-dark-70); }
.on-dark .body--sm { color: var(--on-dark-60); }

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600;
  padding: 15px 26px; border-radius: var(--pill);
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn--mint { background: var(--mint); color: var(--dark); }
.btn--mint:hover { background: #A6D5C4; color: var(--dark); }

.btn--dark { background: var(--ink); color: #fff; font-size: 14px; padding: 11px 20px; }
.btn--dark:hover { background: var(--green); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.btn-row--center { justify-content: center; }

.link-arrow {
  font-size: 14px; font-weight: 700;
  color: var(--ink); margin-top: 6px;
  align-self: flex-start;
}
.link-arrow:hover { color: var(--green); }
.link-arrow--light { color: var(--on-dark); }
.link-arrow--light:hover { color: var(--mint); }
.link-arrow--mint { color: var(--mint); font-size: 15px; font-weight: 700; }
.link-arrow--mint:hover { color: #A6D5C4; }

/* --------------------------------------------------------------------------
   6. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px var(--pad-x);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand:hover { color: inherit; }
.brand__mark { width: 36px; height: 36px; border-radius: 9px; }
.brand__name {
  font-size: 15px; font-weight: 700; color: var(--ink);
  letter-spacing: 0.13em; text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav__link { font-size: 14px; font-weight: 500; color: var(--body); }
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 10px; cursor: pointer; line-height: 0;
}
.nav-toggle:hover { border-color: var(--ink); }
.nav-toggle__bar {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bar + .nav-toggle__bar { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-header { padding: 14px var(--pad-x); flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    order: 3; width: 100%;
    flex-direction: column; align-items: stretch;
    gap: 4px;
    padding-top: 12px; margin-top: 12px;
    border-top: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 11px 2px; font-size: 15px; }
  .nav .btn--dark { align-self: flex-start; margin-top: 8px; }
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 26px);
}
.card--lg     { border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); }
.card--form   { border-radius: var(--radius-xl); padding: clamp(24px, 3vw, 36px); }
.card--canvas { background: var(--canvas); }
.card--flex   { display: flex; flex-direction: column; }
.card--dark {
  background: var(--dark); border: none;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
}
.card--glass {
  background: var(--on-dark-fill);
  border: 1px solid var(--on-dark-line);
  border-radius: 14px; padding: 20px;
}

.stat__figure {
  font-size: clamp(1.85rem, 3.2vw, 2.375rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--green); line-height: 1;
}
.stat__label { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 8px; }
.stat__note  { font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: 4px; }

.fact__label {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.fact__value { font-size: 24px; font-weight: 800; color: var(--ink); margin-top: 6px; letter-spacing: -0.02em; }
.fact__text  { font-size: 15px; line-height: 1.6; color: var(--ink); margin-top: 6px; }

.result__text { font-size: 15px; line-height: 1.6; color: var(--ink); }
.result__tag  { font-size: 13px; color: var(--muted); margin-top: auto; }

.glass__title { font-size: 15px; font-weight: 700; color: var(--on-dark); display: block; }
.glass__note  { font-size: 14px; color: var(--on-dark-60); margin-top: 4px; }

.chip {
  font-size: 13px; color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 10px 12px;
}

/* --------------------------------------------------------------------------
   8. Lists
   -------------------------------------------------------------------------- */
.list-plain { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.list-plain li { font-size: 14px; color: var(--muted); }

.list-dash { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.list-dash li {
  display: flex; gap: 10px;
  font-size: 14px; line-height: 1.6; color: var(--body);
}
.list-dash li::before {
  content: "\2014"; flex: none;
  color: var(--green); font-weight: 700;
}
.list-dash--lg { gap: 12px; }
.list-dash--lg li { font-size: 16px; gap: 12px; }
.list-dash--light li { color: var(--on-dark-70); }
.list-dash--light li::before { color: var(--mint); }
.list-dash--no li::before { color: var(--red); }

.list-numbered { display: flex; flex-direction: column; gap: 8px; }
.list-numbered li { font-size: 14px; line-height: 1.6; color: var(--body); }

/* --------------------------------------------------------------------------
   9. Steps (rule-topped columns)
   -------------------------------------------------------------------------- */
.step {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 22px;
  border-top: 2px solid var(--line);
}
.step--active { border-top-color: var(--ink); }
.step--green  { border-top-color: var(--green); padding-top: 20px; }
.step--light  { border-top: 1px solid var(--on-dark-line-2); }
.step--light .h4 { color: var(--on-dark); }
.step--light .body--sm { color: var(--on-dark-60); }
.step__when { font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: 0.1em; }
.step__num  { font-size: 12px; font-weight: 700; color: var(--mint); letter-spacing: 0.1em; }
.step__index { font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: 0.1em; }

/* --------------------------------------------------------------------------
   10. Logo marquee
   -------------------------------------------------------------------------- */
.marquee-block { padding: 40px 0 44px; margin-bottom: clamp(48px, 6vw, 76px); }
.marquee-block__label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); text-align: center;
  margin-bottom: 30px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track {
  display: flex; width: max-content;
  align-items: center; gap: 64px; padding-right: 64px;
  animation: s2-marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-size: clamp(1.15rem, 2.2vw, 1.625rem);
  font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink-soft); white-space: nowrap;
}
@keyframes s2-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track {
    animation: none; width: auto;
    flex-wrap: wrap; justify-content: center;
    row-gap: 20px; padding-right: 0;
  }
}

/* --------------------------------------------------------------------------
   11. Form
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--body); }
.field__input,
.field__select,
.field__textarea {
  font-size: 15px; color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  outline: none; width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 107, 83, 0.12);
  outline: none;
}
.field__input::placeholder,
.field__textarea::placeholder { color: #A6A199; }
.field__textarea { resize: vertical; min-height: 108px; }
.field__select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236E6A63' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* Honeypot — hidden from humans, tempting to bots */
.form__trap {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

.form__status { font-size: 14px; font-weight: 600; line-height: 1.55; }
.form__status--ok    { color: var(--green); }
.form__status--error { color: var(--red); }

.btn[aria-busy="true"] { opacity: .65; cursor: progress; }

/* --------------------------------------------------------------------------
   12. Legal / prose page
   -------------------------------------------------------------------------- */
.legal__intro { font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.65; color: var(--body); text-wrap: pretty; }
.legal__updated { font-size: 15px; color: var(--muted); }
.legal__sections { display: flex; flex-direction: column; gap: 34px; margin-top: 48px; }
.legal__section {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.legal__section h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 800; letter-spacing: -0.02em; color: var(--ink);
}
.legal__section p { font-size: 16px; line-height: 1.7; color: var(--body); }
.legal__section .list-dash li { font-size: 16px; line-height: 1.7; }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--dark); padding: 56px var(--pad-x) 40px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__heading {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-dark-45);
}
.site-footer__link { font-size: 14px; color: var(--on-dark-80); }
.site-footer__link:hover { color: var(--on-dark); }
.site-footer__mail { font-size: 14px; color: var(--mint); }
.site-footer__mail:hover { color: #A6D5C4; }
.site-footer__blurb { font-size: 14px; line-height: 1.6; color: var(--on-dark-60); max-width: 280px; }
.site-footer__brand-name {
  font-size: 14px; font-weight: 700; color: var(--on-dark);
  letter-spacing: 0.13em; text-transform: uppercase;
}
.site-footer__base {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--on-dark-line);
}
.site-footer__fine { font-size: 13px; color: var(--on-dark-45); }

/* --------------------------------------------------------------------------
   14. Responsive collapse
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .split-hero, .split-start, .split-form, .split-row { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .grid--2, .grid--3, .split-even, .split-feature { grid-template-columns: 1fr; }
  .row-between { flex-direction: column; align-items: flex-start; }
  .marquee-block { padding: 32px 0 36px; }
}

@media (max-width: 620px) {
  .grid--4, .grid--chips, .form__row, .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__base { flex-direction: column; align-items: flex-start; gap: 10px; }
  .h-hero br, .h1 br, .h2 br { display: none; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .nav .btn--dark { width: auto; }
}

/* --------------------------------------------------------------------------
   15. Utilities
   -------------------------------------------------------------------------- */
.mt-4  { margin-top: 4px; }
.mt-6  { margin-top: 6px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mt-22 { margin-top: 22px; }
.mt-24 { margin-top: 24px; }
.mt-26 { margin-top: 26px; }
.mt-28 { margin-top: 28px; }
.mt-34 { margin-top: 34px; }
.mt-44 { margin-top: 44px; }
.mb-18 { margin-bottom: 18px; }
.pt-8  { padding-top: 8px; }
.gap-24 { gap: 24px; }

.brand__mark--sm { width: 34px; height: 34px; }

.contact-email { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.legal-email   { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.card__title   { font-size: 15px; font-weight: 700; color: var(--ink); }
