/* =========================================================
   Rivontrade — static B2B site
   Two divisions: Rivon Toys and Rivon Living (home textiles)

   Design language: warm editorial.
   Cream canvas, coral voltage, serif display, dark ink surfaces.
   Adapted from the "Claude" DESIGN.md reference with open,
   system-safe fonts and no external requests.

   No build step, no dependencies.
   ========================================================= */

:root {
  /* Surfaces */
  --canvas: #faf9f5;
  --surface-soft: #f5f0e8;
  --surface-card: #efe9de;
  --surface-strong: #e8e0d2;
  --white: #ffffff;

  /* Ink */
  --ink: #141413;
  --body: #3d3d3a;
  --muted: #6c6a64;
  --muted-soft: #8e8b82;

  /* Lines */
  --line: #e6dfd8;
  --line-soft: #ebe6df;

  /* Brand voltage */
  --coral: #cc785c;
  --coral-strong: #b45f45;
  --coral-active: #a9583e;
  --coral-text: #a9583e;
  --coral-soft: #f3ddd5;
  --teal: #5db8a6;
  --teal-text: #2f7568;
  --teal-soft: #e3f0ec;
  --amber: #e8a55a;

  /* Dark surfaces */
  --dark: #181715;
  --dark-elevated: #252320;
  --dark-soft: #1f1e1b;
  --on-dark: #faf9f5;
  --on-dark-soft: #a09d96;

  /* Semantic */
  --success-text: #2f6f45;
  --error: #c64545;

  /* Shape */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Depth */
  --shadow-soft: 0 1px 3px rgba(20, 20, 19, .08);

  /* Layout */
  --wrap: 1200px;

  /* Type */
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Noto Serif", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

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

img { max-width: 100%; display: block; }

::selection {
  background: var(--coral-soft);
  color: var(--ink);
}

a {
  color: var(--coral-text);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { text-decoration: underline; }

a:focus-visible,
.btn:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--coral-text);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.12;
}

h3, h4 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 { font-size: 1.18rem; line-height: 1.3; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 245, .92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--canvas);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.logo-sub {
  display: block;
  font-size: .54rem;
  letter-spacing: .3em;
  color: var(--coral-text);
  font-weight: 600;
  line-height: 1;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  color: var(--body);
  font-size: .875rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--ink);
  border-bottom-color: var(--coral);
  font-weight: 500;
}

.nav-cta { margin-left: 4px; }

.menu-btn {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--canvas);
  font-size: 1.15rem;
  color: var(--ink);
  cursor: pointer;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--coral-strong);
  color: #fff;
}
.btn-primary:hover {
  background: var(--coral-active);
  color: #fff;
}

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

.btn-light {
  background: var(--canvas);
  color: var(--ink);
  border-color: var(--canvas);
}
.btn-light:hover {
  background: var(--white);
  color: var(--ink);
}

.btn-outline-light {
  background: transparent;
  color: var(--ink);
  border-color: rgba(20, 20, 19, .5);
}
.btn-outline-light:hover {
  background: rgba(20, 20, 19, .08);
  color: var(--ink);
  border-color: var(--ink);
}

.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(56px, 8vw, 104px) 0 clamp(52px, 7vw, 88px);
  background:
    radial-gradient(820px 420px at 88% -12%, rgba(204, 120, 92, .14), transparent 62%),
    var(--canvas);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

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

.eyebrow {
  margin: 0 0 16px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral-text);
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  color: var(--body);
  max-width: 58ch;
}

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

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--body);
  font-size: .76rem;
  font-weight: 500;
  border: 1px solid var(--line);
}

.hero-card {
  background: var(--dark);
  color: var(--on-dark-soft);
  border-radius: var(--radius-xl);
  padding: 32px 30px;
}

.hero-card .card-title {
  font-family: var(--font);
  color: var(--coral);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-card-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(250, 249, 245, .14);
  font-size: .875rem;
  color: var(--on-dark-soft);
  line-height: 1.6;
}
.hero-card-note strong { color: var(--on-dark); }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: .94rem;
  color: var(--on-dark-soft);
  border-bottom: 1px solid rgba(250, 249, 245, .08);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral);
  transform: rotate(-45deg);
}

/* ---------- Sections ---------- */

section { padding: clamp(56px, 7vw, 96px) 0; }

/* Keep anchor targets clear of the sticky header */
section[id] { scroll-margin-top: 96px; }

.section-sand {
  background: var(--surface-soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}
.section-head p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 1.02rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.small-note {
  margin-top: 20px;
  font-size: .84rem;
  color: var(--muted);
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: clamp(52px, 7vw, 88px) 0 clamp(40px, 5vw, 60px);
  background:
    radial-gradient(720px 340px at 90% -20%, rgba(204, 120, 92, .1), transparent 66%),
    var(--canvas);
  border-bottom: 1px solid var(--line);
}
.page-hero .lead { margin-bottom: 0; max-width: 66ch; }
.page-hero h1 { max-width: 22ch; }

/* Anchor navigation inside a long page (e.g. quality.html) */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.subnav a {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--canvas);
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink);
}
.subnav a:hover {
  border-color: var(--coral);
  color: var(--coral-text);
  text-decoration: none;
}

/* ---------- Cards / grids ---------- */

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  border-color: #d8cfc1;
  box-shadow: var(--shadow-soft);
}

/* On a sand band, let cards read as lighter tiles */
.section-sand .card { background: var(--canvas); }

/* Equal-height cards with the action pinned to the bottom */
.grid-3 > .card,
.grid-2 > .card,
.product-grid > .card { height: 100%; }

.product-card {
  display: flex;
  flex-direction: column;
}
.product-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card .card-body > .btn,
.product-card .card-body > .text-link { margin-top: auto; }
.product-card .spec-list { margin-bottom: 18px; }

.card-body { padding: 24px 24px 26px; }
.card-body h2 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: .45em;
}
.card-body h3 { margin-bottom: .45em; }
.card-body p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
}

.card .meta {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral-text);
  font-weight: 600;
  margin: 0 0 12px;
}

.text-link {
  display: inline-block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--coral-text);
}

/* ---------- Division cards (homepage + about) ---------- */

.division-card {
  display: flex;
  flex-direction: column;
  border-top-width: 3px;
  border-top-style: solid;
}
.division-toys { border-top-color: var(--coral); }
.division-home { border-top-color: var(--teal); }

.division-card .product-media { height: 190px; }
.division-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 28px 30px;
}
.division-card .card-body > .btn { margin-top: auto; }
.division-card h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: .3em;
}

.division-tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral-text);
}
.division-home .division-tag { color: var(--teal-text); }

.division-list {
  list-style: none;
  margin: 4px 0 24px;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: .875rem;
  color: var(--muted);
}
.division-list li {
  position: relative;
  padding-left: 18px;
}
.division-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}
.division-home .division-list li::before { background: var(--teal); }

.division-note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--muted);
}
.division-note a { font-weight: 500; }

/* Product tiles — pure CSS, no image files needed */
.product-media {
  position: relative;
  height: 168px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface-soft);
}
.product-media span {
  position: relative;
  z-index: 1;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(250, 249, 245, .82);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(230, 223, 216, .8);
}

.media-butter {
  background:
    radial-gradient(120px 70px at 50% 58%, #e8a55a 0%, var(--coral) 68%, transparent 70%),
    linear-gradient(135deg, #f7efe2, #efe0cf);
}
.media-dumpling {
  background:
    radial-gradient(110px 60px at 50% 60%, #efe9de 0%, #d9c3a5 70%, transparent 72%),
    linear-gradient(135deg, #f5f0e8, #e8dcc9);
}
.media-mochi {
  background:
    radial-gradient(46px 46px at 34% 55%, var(--coral) 0%, var(--coral) 70%, transparent 72%),
    radial-gradient(46px 46px at 50% 48%, var(--teal) 0%, var(--teal) 70%, transparent 72%),
    radial-gradient(46px 46px at 66% 58%, var(--amber) 0%, var(--amber) 70%, transparent 72%),
    linear-gradient(135deg, #faf9f5, #f0e9dd);
}
.media-crunchy {
  background:
    radial-gradient(120px 70px at 50% 58%, var(--amber) 0%, #d99a3f 66%, transparent 68%),
    radial-gradient(circle at 30% 30%, rgba(250, 249, 245, .5) 0 3px, transparent 4px),
    linear-gradient(135deg, #f7efe2, #efe0cf);
}
.media-cheese {
  background:
    radial-gradient(110px 70px at 50% 60%, #f0c27a 0%, var(--amber) 68%, transparent 70%),
    linear-gradient(135deg, #faf3e4, #f0e2c6);
}

/* Division and home-textile tiles */
.media-toys {
  background:
    radial-gradient(52px 52px at 30% 42%, var(--coral) 0%, var(--coral) 70%, transparent 72%),
    radial-gradient(64px 64px at 52% 62%, var(--amber) 0%, var(--amber) 70%, transparent 72%),
    radial-gradient(46px 46px at 72% 40%, var(--teal) 0%, var(--teal) 70%, transparent 72%),
    linear-gradient(135deg, #faf9f5, #f0e9dd);
}
.media-home {
  background:
    linear-gradient(115deg, rgba(250, 249, 245, .85) 0 30%, rgba(227, 240, 236, .7) 30% 52%, rgba(250, 249, 245, .85) 52% 100%),
    repeating-linear-gradient(90deg, #e8efec 0 6px, #f5f0e8 6px 12px);
}
.media-bedding {
  background:
    linear-gradient(160deg, rgba(250, 249, 245, .9) 0 45%, rgba(214, 226, 228, .7) 45% 58%, rgba(250, 249, 245, .9) 58% 100%),
    linear-gradient(135deg, #eef4f2, #dfe9e6);
}
.media-duvet {
  background:
    radial-gradient(160px 80px at 50% 62%, rgba(250, 249, 245, .9) 0%, rgba(250, 249, 245, 0) 70%),
    linear-gradient(135deg, #edf0e6, #d9e0cf);
}
.media-towel {
  background:
    repeating-linear-gradient(0deg, rgba(250, 249, 245, .5) 0 5px, transparent 5px 10px),
    linear-gradient(135deg, #dfe9e4, #c3d6cf);
}
.media-bathmat {
  background:
    repeating-linear-gradient(90deg, rgba(250, 249, 245, .35) 0 4px, transparent 4px 9px),
    repeating-linear-gradient(0deg, rgba(20, 20, 19, .05) 0 4px, transparent 4px 9px),
    linear-gradient(135deg, #e9e0d2, #d8c9b3);
}
.media-cushion {
  background:
    radial-gradient(120px 80px at 50% 60%, var(--coral) 0%, var(--coral-strong) 70%, transparent 72%),
    linear-gradient(135deg, #f6e8dc, #ecd3bf);
}
.media-table {
  background:
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(47, 117, 104, .18) 34px 37px, transparent 37px 71px),
    linear-gradient(135deg, #faf7ef, #eee5d4);
}

/* ---------- Features ---------- */

.feature {
  padding: 30px 28px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.section-sand .feature { background: var(--canvas); }

.feature-num {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral-text);
  margin-bottom: 14px;
}
.feature h3 { font-size: 1.02rem; margin-bottom: .4em; }
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 58px 22px 24px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}
.section-sand .steps li { background: var(--canvas); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 20px;
  left: 22px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--coral-text);
  line-height: 1;
}
.steps li strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: .96rem;
  font-weight: 600;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--coral);
  color: var(--ink);
  padding: clamp(52px, 6vw, 76px) 0;
}
.cta-band h2 { color: var(--ink); margin-bottom: .3em; }
.cta-band p {
  color: rgba(20, 20, 19, .75);
  margin: 0;
  max-width: 60ch;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Product page ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.product-card .product-media { height: 150px; }
.product-card h2 { font-size: 1.02rem; }

.spec-list {
  margin: 0 0 18px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  font-size: .82rem;
}
.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
}
.spec-list dt { color: var(--muted); }
.spec-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--canvas);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 520px;
}
th, td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--surface-soft);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fbfaf7; }

/* On small screens each table row becomes a labelled card, so no column
   is hidden behind a horizontal scroll. Labels come from data-label. */
@media (max-width: 700px) {
  .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
  }
  table { min-width: 0; font-size: .88rem; }
  thead { display: none; }
  tbody, tr, td { display: block; }
  tbody tr {
    margin-bottom: 12px;
    padding: 4px 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
  }
  tbody tr:nth-child(even) { background: var(--white); }
  tbody tr:last-child { margin-bottom: 0; }
  td {
    padding: 8px 18px 10px;
    border-bottom: 1px solid var(--line-soft);
  }
  td:last-child { border-bottom: 0; }
  td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
  }
  td:first-child {
    padding-top: 12px;
    font-family: var(--serif);
    font-size: 1.1rem;
    line-height: 1.3;
  }
  td:first-child::before { display: none; }
  td:first-child strong { font-weight: 500; }
}


/* ---------- Quality page ---------- */

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.doc {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section-sand .doc { background: var(--canvas); }

.doc-icon {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--coral-text);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .04em;
}
.doc h3 { font-size: .96rem; margin-bottom: .25em; }
.doc p {
  margin: 0;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.55;
}

.quote {
  margin: 0;
  padding: 28px 30px;
  background: var(--surface-card);
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--ink);
}
.section-sand .quote { background: var(--canvas); }
.quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font);
  font-size: .8rem;
  font-style: normal;
  color: var(--muted);
}

.qc-flow { display: grid; gap: 14px; }
.qc-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 24px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section-sand .qc-step { background: var(--canvas); }

.qc-step .num {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--canvas);
  font-size: .78rem;
  font-weight: 600;
}
.qc-step h3 { font-size: .96rem; margin-bottom: .3em; }
.qc-step p {
  margin: 0;
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- About page ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.stat {
  padding: 24px 22px;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.section-sand .stat { background: var(--canvas); }

.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.5;
}

.value-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.value-list li {
  padding-left: 20px;
  border-left: 2px solid var(--coral);
}
.value-list strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
  font-weight: 600;
}
.value-list span {
  font-size: .89rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
}

.form {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field .hint { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: .92rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #d8d1c6;
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(204, 120, 92, .16);
  background: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 14px 0 0;
  font-size: .78rem;
  color: var(--muted);
}

.form-status {
  margin-top: 14px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--success-text);
}
.form-status.error { color: var(--error); }

.contact-card {
  background: var(--dark);
  color: var(--on-dark-soft);
  border-radius: var(--radius-xl);
  padding: 30px 28px;
  margin-bottom: 22px;
}
.contact-card h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--on-dark);
}
.contact-card p {
  color: var(--on-dark-soft);
  font-size: .9rem;
  line-height: 1.6;
}

.contact-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  font-size: .9rem;
}
.contact-list li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(250, 249, 245, .1);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list a { color: var(--on-dark); }
.contact-list a:hover { color: var(--coral); }
.contact-list .label {
  display: block;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 3px;
  font-weight: 600;
}

.expect-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .89rem;
  color: var(--muted);
}
.expect-list li {
  padding: 7px 0 7px 24px;
  position: relative;
  line-height: 1.6;
}
.expect-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--coral-text);
  font-weight: 600;
}

/* ---------- 404 ---------- */

.notfound {
  padding: clamp(80px, 12vw, 150px) 0;
  text-align: center;
}
.notfound .code {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 13vw, 8rem);
  font-weight: 400;
  line-height: 1;
  color: var(--surface-strong);
  letter-spacing: -0.04em;
}
.notfound h1 { margin-top: 8px; }
.notfound p {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 26px;
}

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

.site-footer {
  background: var(--dark);
  color: var(--on-dark-soft);
  padding: clamp(52px, 6vw, 72px) 0 28px;
  font-size: .875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, 1fr);
  gap: 40px;
}

.footer-logo { color: var(--on-dark); margin-bottom: 14px; }
.footer-logo .logo-mark {
  background: var(--dark-elevated);
  color: var(--on-dark);
}
.footer-logo .logo-sub { color: var(--coral); }

.footer-legal {
  color: var(--on-dark-soft);
  max-width: 42ch;
  margin: 10px 0 0;
  font-size: .78rem;
  line-height: 1.6;
  opacity: .85;
}

.footer-note {
  color: var(--on-dark-soft);
  max-width: 42ch;
  margin: 0;
  line-height: 1.65;
}

.footer-title {
  color: rgba(250, 249, 245, .5);
  font-family: var(--font);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { padding: 5px 0; }
.footer-links a { color: var(--on-dark-soft); }
.footer-links a:hover { color: var(--on-dark); }

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(250, 249, 245, .12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: rgba(250, 249, 245, .42);
}

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

@media (max-width: 920px) {
  .nav-cta { display: none; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 580px; }
  .hero h1 { max-width: 16ch; }
  .grid-3, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .nav { gap: 12px; min-height: 62px; }
  .nav-cta { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
    box-shadow: 0 16px 30px rgba(20, 20, 19, .08);
    margin-left: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a.active {
    border-bottom-color: var(--line);
    color: var(--coral-text);
  }

  .grid-3, .grid-2, .product-grid, .doc-grid, .stat-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }

  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  section { padding: 56px 0; }
  .page-hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
