/*
 * hartii.org clay home (owner 2026-10-27): soft 3D clay, sand and terracotta, the camel in Hartii red, cream light. No gold.
 * The art is clay/clay.mjs (WebGL); this sheet is the type, the bar, the steps over the stage and the sections below.
 * No inline style attributes anywhere (CSP style-src 'self'); script only sets CSS custom properties and classes.
 */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/painted/fonts/fraunces-roman-latin.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 700; font-display: swap; src: url('/painted/fonts/fraunces-italic-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 300 700; font-display: swap; src: url('/painted/fonts/inter-var-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400 700; font-display: swap; src: url('/painted/fonts/jetbrains-mono-latin.woff2') format('woff2'); }

:root {
  --sand: #f1e3cf;
  --sand-2: #e8d3b6;
  --cream: #fbf4ea;
  --clay: #e7cba3;
  --terra: #c96f4a;
  --red: #b8202e;
  --ink: #2c1d19;
  --ink-2: #5d463c;
  --night: #241618;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --pad: clamp(18px, 5vw, 56px);
  --soft: 0 28px 60px -32px rgba(120, 58, 28, .45), 0 10px 22px -16px rgba(120, 58, 28, .35), inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(160, 96, 60, .12);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.clay-home { margin: 0; background: var(--sand); color: var(--ink); font: 400 17px/1.55 var(--sans); }
.clay-home a { color: inherit; }
.clay-home :focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* ---------------------------------------------------------------- the bar */
.clay-bar {
  position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 18px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--pad) 14px;
  transition: background .35s, box-shadow .35s;
}
.clay-past .clay-bar { background: rgba(251, 244, 234, .96); box-shadow: 0 1px 0 rgba(93, 70, 60, .14); }
.clay-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 21px/1 var(--serif); letter-spacing: .01em; }
.org-menu { margin-left: auto; }
.org-menu summary { display: none; cursor: pointer; list-style: none; font: 500 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px; border-radius: 999px; background: rgba(251, 244, 234, .7); }
.org-menu summary::-webkit-details-marker { display: none; }
.org-links { display: flex; gap: 4px; }
.org-links a { font: 500 13.5px/1 var(--sans); text-decoration: none; padding: 10px 14px; border-radius: 999px; color: var(--ink-2); transition: background .2s, color .2s; }
.org-links a:hover { background: rgba(251, 244, 234, .8); color: var(--ink); }
.clay-enter {
  display: inline-flex; align-items: center; text-decoration: none; font: 600 14px/1 var(--sans); padding: 12px 18px; border-radius: 999px;
  background: var(--red); color: var(--cream); box-shadow: 0 10px 22px -12px rgba(184, 32, 46, .8), inset 0 2px 0 rgba(255, 255, 255, .25), inset 0 -3px 0 rgba(0, 0, 0, .15);
  transition: transform .2s, box-shadow .2s;
}
.clay-enter:hover { transform: translateY(-2px); }
.clay-bar .clay-enter { margin-left: auto; }
.clay-bar .org-menu + .clay-enter { margin-left: 0; }
.org-enter-short { display: none; }

/* ---------------------------------------------------------------- the opening: flat camel on warm paper; scroll walks it off to the right */
.clay-hero { --dune: 22vh; position: relative; height: 100vh; height: 100svh; }
.clay-hero-on .clay-hero { height: 230vh; height: 230svh; }
.clay-hero-stick {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(90% 70% at 62% 40%, #fbefe0, var(--sand) 58%, var(--sand-2));
}
.clay-hero-on .clay-hero-stick { position: sticky; top: 0; }
.clay-hero-copy {
  position: absolute; z-index: 2; left: var(--pad); top: 50%; max-width: 52vw;
  display: grid; justify-items: start; gap: 20px;
  transform: translate3d(calc(var(--hu, 0) * -5vw), -50%, 0); opacity: max(0, calc(1 - var(--hu, 0) * 2.2));
}
h1.clay-hero-line { margin: 0; font-size: clamp(3.2rem, 8.4vw, 9.6rem); line-height: .94; max-width: 7.2em; text-shadow: none; }
.clay-hero-camel {
  position: absolute; z-index: 1; right: 2vw; bottom: calc(var(--dune) - 18px); width: min(42vw, 780px); height: auto;
  transform: translate3d(calc(var(--hu, 0) * 170vw), 0, 0); will-change: transform;
}
.clay-hero-camel.is-walking { animation: clay-sway .62s ease-in-out infinite alternate; }
@keyframes clay-sway { from { translate: 0 0; rotate: -.7deg; } to { translate: 0 -12px; rotate: .7deg; } }
/* the mark's feet are cut flat in the file: a soft dune stands in front of them */
.clay-hero-dune {
  position: absolute; z-index: 3; left: -10%; right: -10%; bottom: 0; height: var(--dune);
  background: radial-gradient(ellipse 82% 100% at 50% 100%, #d8b98e 0%, #e3c8a0 100%);
}

/* ---------------------------------------------------------------- the journey */
.clay-journey { position: relative; }
.clay-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; z-index: 0;
  background: radial-gradient(90% 70% at 60% 35%, #fbefe0, var(--sand) 55%, var(--sand-2));
}
.clay-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.clay-flat { position: absolute; right: 8%; bottom: 14%; width: min(46vw, 560px); height: auto; opacity: .92; }
.is-3d .clay-flat { display: none; }
.clay-steps { position: relative; z-index: 1; margin-top: -100vh; margin-top: -100svh; }
.clay-anchor { display: block; height: 0; }
.clay-step {
  min-height: 100vh; min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 18px;
  padding: 120px var(--pad) 60px; max-width: 760px;
}
.clay-step:first-child { align-content: start; padding-top: clamp(120px, 20vh, 220px); }
.clay-step-gate { color: var(--cream); }
.clay-eyebrow { margin: 0; display: flex; gap: 12px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.clay-eyebrow span + span::before { content: '·'; margin-right: 12px; color: var(--ink-2); }
.clay-n { margin: 0; font: 500 13px/1 var(--mono); letter-spacing: .14em; color: var(--terra); }
.clay-step-gate .clay-n { color: #ffb8a8; }
.clay-line {
  margin: 0; font: 380 clamp(2.6rem, 6.6vw, 6.2rem)/.96 var(--serif); letter-spacing: -.025em; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(251, 244, 234, .65);
}
h1.clay-line { font-size: clamp(3rem, 7.8vw, 7.4rem); }
.clay-line em { font-style: italic; font-weight: 340; color: var(--red); }
.clay-step-gate .clay-line { text-shadow: 0 2px 30px rgba(36, 22, 24, .6); }
.clay-step-gate .clay-line em { color: #ff8a80; }
.clay-small { margin: 0; font: 400 clamp(16px, 1.4vw, 19px)/1.5 var(--sans); color: var(--ink-2); max-width: 34ch; }
.clay-step-gate .clay-small { color: #f6d9cf; }
.network-line { margin: 6px 0 0; display: inline-flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 999px; background: rgba(251, 244, 234, .72); box-shadow: var(--soft); font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.network-line span { display: inline-flex; align-items: center; gap: 8px; }
.network-line i { width: 8px; height: 8px; border-radius: 50%; background: #3fae74; box-shadow: 0 0 0 4px rgba(63, 174, 116, .18); }
.network-line b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.clay-go {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; text-decoration: none; font: 600 17px/1 var(--sans); padding: 18px 26px; border-radius: 999px;
  background: var(--red); color: var(--cream); box-shadow: 0 18px 36px -16px rgba(232, 32, 47, .9), inset 0 2px 0 rgba(255, 255, 255, .28), inset 0 -4px 0 rgba(0, 0, 0, .18);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s;
}
.clay-go:hover { transform: translateY(-3px) scale(1.02); }
.clay-go:active { transform: translateY(1px) scale(.99); box-shadow: 0 8px 18px -10px rgba(232, 32, 47, .9), inset 0 3px 6px rgba(0, 0, 0, .25); }

/* ---------------------------------------------------------------- below the journey: principles and the count */
.clay-section { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--pad) 0; }
.clay-section-title { margin: 0 0 28px; font: 380 clamp(2rem, 4.4vw, 3.6rem)/1.02 var(--serif); letter-spacing: -.02em; max-width: 22ch; }
.clay-section-title em { font-style: italic; color: var(--red); }
.org-three { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.principle { padding: 26px; border-radius: 26px; background: var(--cream); box-shadow: var(--soft); color: var(--ink-2); }
.principle b { display: block; margin-bottom: 8px; font: 500 1.35rem/1.15 var(--serif); color: var(--ink); }
.clay-numbers .clay-small { margin-bottom: 22px; max-width: 60ch; }
.qaxe-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.qaxe-panel { padding: 28px; border-radius: 26px; background: var(--cream); box-shadow: var(--soft); }
.qaxe-panel h3 { margin: 0 0 8px; font: 500 1.4rem/1.15 var(--serif); }
.qaxe-panel p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.qaxe-stats { margin: 0 0 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qaxe-stats div { padding: 16px; border-radius: 18px; background: var(--sand); }
.qaxe-stats dt { font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.qaxe-stats dd { margin: 6px 0 2px; font: 600 clamp(1.4rem, 2.6vw, 2rem)/1.1 var(--serif); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.qaxe-stats small { font: 400 12px/1.3 var(--sans); color: var(--ink-2); }
.qaxe-separation, #qaxe-buyback-status, #company-status { font-size: 13.5px; }
.org-more { margin: 22px 0 0; }
.org-link { font: 600 15px/1.2 var(--sans); color: var(--red); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* ---------------------------------------------------------------- /paintings */
.clay-paintings .clay-section { padding-top: 130px; }
.clay-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 30px; }
.clay-painting { margin: 0; padding: 12px; border-radius: 24px; background: var(--cream); box-shadow: var(--soft); }
.clay-painting img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.clay-painting figcaption { padding: 12px 6px 4px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 760px) { .clay-gallery { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- footer */
.clay-foot { position: relative; z-index: 1; margin-top: clamp(80px, 10vw, 140px); background: var(--night); color: #efdccf; }
.clay-foot .foot { max-width: 1180px; margin: 0 auto; padding: 44px var(--pad) calc(36px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; }
.clay-foot p { margin: 0; }
.clay-foot .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 20px/1 var(--serif); }
.clay-foot .brand-frame img { border-radius: 50%; display: block; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot-links a { text-decoration: none; border-bottom: 1px solid rgba(239, 220, 207, .35); }
.share-drawer summary { cursor: pointer; }
.share-drawer ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.share-chip { display: inline-block; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); text-decoration: none; }
.powered-by { font-size: 13px; opacity: .8; }
.powered-by a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

/* ---------------------------------------------------------------- the gate: leaving for HartiiBiome */
.clay-steps { transition: opacity .5s ease; }
.clay-leaving .clay-steps { opacity: 0; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 980px) {
  .org-menu summary { display: inline-block; }
  .org-menu:not([open]) .org-links { display: none; }
  .org-menu[open] .org-links { position: absolute; right: var(--pad); top: calc(100% - 4px); flex-direction: column; padding: 8px; border-radius: 20px; background: var(--cream); box-shadow: var(--soft); }
  .org-three, .qaxe-panels { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .clay-hero-copy { top: calc(12svh + 40px); max-width: 88vw; transform: translate3d(calc(var(--hu, 0) * -6vw), 0, 0); }
  h1.clay-hero-line { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .clay-hero { --dune: 20vh; }
  .clay-hero-camel { right: 2vw; width: 94vw; }
  .org-enter-wide { display: none; }
  .org-enter-short { display: inline; }
  .clay-mark img { width: 32px; height: auto; }
  .clay-step { padding-top: 96px; align-content: start; }
  .clay-step:first-child { padding-top: 110px; }
  .clay-line { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  h1.clay-line { font-size: clamp(2.6rem, 12.5vw, 3.8rem); }
  .qaxe-stats { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .clay-bar, .clay-enter, .clay-go { transition: none; }
  .clay-hero-camel.is-walking { animation: none; }
}
