/* Archivo (SIL OFL) — self-hosted variable font, latin subset. See assets/fonts/OFL.txt. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-italic.woff2') format('woff2');
}
:root {
  --paper: #f4efe6;          /* logo cream */
  --paper-deep: #ece5d8;     /* hover ground on cream */
  --ink: #262422;            /* basalt — logo walls */
  --ink-rule: #3d3935;       /* hairlines on basalt */
  --ink-text: #bdb5a8;       /* secondary text on basalt */
  --muted: #6b665c;
  --line: #ddd6c9;
  --accent: #b5482a;         /* red rock — logo stone */
  --accent-dark: #803a26;
  --accent-on-dark: #c86a4a; /* stone colour on dark grounds */
  --shell: 72rem;
  --gutter: 1.25rem;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { background: var(--paper); scrollbar-color: #a59d90 var(--paper); }
body { min-width: 18rem; min-height: 100vh; margin: 0; display: flex; flex-direction: column; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 1.0625rem; font-stretch: 100%; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { color: var(--paper); background: var(--accent); }
.shell { width: min(calc(100% - 2 * var(--gutter)), var(--shell)); margin-inline: auto; }
.skip-link { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 10; padding: 0.55rem 0.8rem; color: var(--paper); background: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
h1, h2, h3, p, dl, dd, figure { margin-top: 0; }
dd { margin-left: 0; }
img { display: block; max-width: 100%; height: auto; }
.icon { width: 0.95em; height: 0.95em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square; }

/* Header + brand lockup. Wordmark spec — CHOCKSTONE 800, width 125, tracking +3%; LABS LLC 600, width 110, tracking +36%. */
.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 5.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand-wordmark { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; text-transform: uppercase; }
.brand-name { font-size: 1.1rem; font-weight: 800; font-stretch: 125%; letter-spacing: 0.03em; }
.brand-suffix { margin-top: 0.34rem; font-size: 0.62rem; font-weight: 600; font-stretch: 110%; letter-spacing: 0.62em; }
.site-nav { display: flex; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; font-stretch: 105%; letter-spacing: 0.01em; }
.site-nav a { padding: 0.45rem 0.7rem; color: var(--ink); text-decoration: none; transition: color 160ms ease, background-color 160ms ease; }
.site-nav a:hover { background: var(--paper-deep); }
.site-nav a[aria-current='page'] { color: var(--paper); background: var(--ink); }

/* Type */
.display { max-width: 12ch; margin-bottom: 1.75rem; font-size: clamp(2.9rem, 6.6vw, 6rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.03em; line-height: 0.94; text-wrap: balance; }
.section-title { max-width: 18ch; margin-bottom: 0; font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1; text-wrap: balance; }
.label { font-size: 0.7rem; font-weight: 700; font-stretch: 75%; letter-spacing: 0.13em; line-height: 1.3; text-transform: uppercase; }
.lede { max-width: 34rem; margin-bottom: 0; color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.5; }
.text-link { color: var(--accent-dark); text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.text-link:hover { color: var(--ink); }

/* Actions */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin: 0; }
.button { display: inline-flex; align-items: center; gap: 0.65rem; padding: 0.95rem 1.3rem 0.95rem 1.4rem; color: var(--paper); background: var(--ink); font-size: 0.95rem; font-weight: 700; font-stretch: 110%; letter-spacing: 0.01em; text-decoration: none; transition: background-color 200ms ease; }
.button:hover { background: var(--accent-dark); }
.go { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--ink); font-size: 0.95rem; font-weight: 700; font-stretch: 105%; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.go:hover { color: var(--accent-dark); }
.go .icon, .button .icon { transition: transform 200ms var(--ease-out); }
.go:hover .icon, .button:hover .icon { transform: translateX(0.2rem); }
.go:hover .icon-out, .row-go .icon-out { transform: none; }
.go:hover .icon-out { transform: translate(0.12rem, -0.12rem); }

/* Home: hero. The art column runs from the shell to the right edge of the viewport. */
.home-main { flex: 1; }
.hero { display: grid; grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, 39rem) minmax(0, 33rem) minmax(0, 1fr); min-height: min(50rem, calc(100svh - 5.75rem)); }
.hero-copy { grid-column: 2; align-self: center; padding: clamp(4rem, 9vh, 7rem) clamp(1.5rem, 4vw, 4rem) clamp(4rem, 9vh, 7rem) 0; }
.hero-copy .lede { margin-bottom: 2.4rem; }
.hero-art { grid-column: 3 / 5; position: relative; min-height: 26rem; margin: 0; background: var(--ink); }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-label { font-family: var(--sans); }
.scene-label .name { fill: var(--paper); font-size: 17px; font-weight: 700; font-stretch: 75%; letter-spacing: 0.16em; }
.scene-label .note { fill: var(--ink-text); font-size: 17px; font-weight: 400; }
.scene-drop { animation: wedge 1300ms var(--ease-out) 200ms both; }
@keyframes wedge { from { transform: translateY(-300px); } }

/* Home: apps */
.apps { padding-block: clamp(5rem, 11vw, 8.5rem) clamp(5rem, 10vw, 8rem); }
.apps-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.apps-head .lede { max-width: 25rem; }
.app-rows { margin: 0; padding: 0; border-top: 2px solid var(--ink); list-style: none; }
.app-row { position: relative; display: grid; grid-template-columns: 5.5rem minmax(0, 1.35fr) minmax(0, 1fr) auto; align-items: center; gap: 1.25rem 2.5rem; padding: 1.9rem 1.25rem 1.9rem 0; border-bottom: 1px solid var(--line); transition: background-color 200ms ease; }
.app-row:hover { background: var(--paper-deep); }
.app-row .app-icon { width: 5.5rem; height: 5.5rem; border-radius: 22.5%; box-shadow: 0 1px 2px rgb(38 36 34 / 0.18), 0 8px 18px -10px rgb(38 36 34 / 0.45); transition: transform 300ms var(--ease-out); }
.app-row:hover .app-icon { transform: translateY(-3px) rotate(-2deg); }
.app-row h3 { margin-bottom: 0.35rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; font-stretch: 118%; letter-spacing: -0.01em; line-height: 1; }
.app-row h3 a { color: inherit; text-decoration: none; }
.app-row h3 a::after { content: ''; position: absolute; inset: 0; }
.app-row h3 a:focus-visible { outline: none; }
.app-row h3 a:focus-visible::after { outline: 3px solid var(--accent-dark); outline-offset: -3px; }
.app-row p { max-width: 30rem; margin-bottom: 0; color: var(--muted); line-height: 1.5; }
.app-facts { display: grid; gap: 0.6rem; margin: 0; font-size: 0.92rem; line-height: 1.4; }
.app-facts div { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.75rem; }
.app-facts dt { padding-top: 0.15rem; color: var(--muted); }
.row-go { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; font-weight: 700; font-stretch: 105%; white-space: nowrap; transition: color 200ms ease; }
.app-row:hover .row-go { color: var(--accent-dark); }

/* Basalt band + footer: the page ends on rock. */
.band { color: var(--paper); background: var(--ink); }
.why { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2.5rem clamp(2.5rem, 7vw, 6.5rem); padding-block: clamp(5rem, 11vw, 8.5rem); }
.why h2 { margin-bottom: 0; font-size: clamp(2.3rem, 5.2vw, 4.4rem); font-weight: 800; font-stretch: 125%; letter-spacing: 0; line-height: 0.98; text-transform: uppercase; text-wrap: balance; }
.why h2 span { color: var(--accent-on-dark); }
.why-copy { align-self: end; }
.why-copy p { max-width: 31rem; margin-bottom: 1.4rem; color: var(--ink-text); font-size: 1.1rem; }
.why-copy p:first-child { color: var(--paper); }
.band .go { color: var(--paper); text-decoration-color: var(--accent-on-dark); }
.band .go:hover { color: var(--accent-on-dark); }
.site-footer { margin-top: auto; color: var(--ink-text); background: var(--ink); font-size: 0.86rem; }
.band + .site-footer .footer-inner { border-top: 1px solid var(--ink-rule); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.6fr)); gap: 2.5rem; padding-block: 3.5rem 2.25rem; }
.footer-brand { display: flex; gap: 0.9rem; align-items: flex-start; }
.footer-brand svg { width: 2rem; height: 2rem; flex: none; }
.footer-brand p { margin-bottom: 0.35rem; line-height: 1.55; }
.footer-brand strong { color: var(--paper); font-weight: 700; }
.site-footer h2 { margin-bottom: 0.9rem; color: var(--paper); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 0.4rem; }
.site-footer a { color: var(--ink-text); text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--accent-on-dark); text-underline-offset: 0.25em; }
.footer-base { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--ink-rule); font-size: 0.78rem; }
.footer-base p { margin: 0; }

/* Inner pages */
.page-main { flex: 1; padding-block: clamp(4rem, 9vw, 7rem) clamp(5rem, 11vw, 8.5rem); }
.page-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 1.25rem 3rem; padding-bottom: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: clamp(3rem, 6vw, 4.5rem); border-bottom: 2px solid var(--ink); }
.page-heading h1 { margin-bottom: 0; font-size: clamp(3.2rem, 9vw, 6rem); font-weight: 800; font-stretch: 122%; letter-spacing: -0.02em; line-height: 0.9; }
.page-heading .lede { justify-self: end; }
.effective-date { margin: 0; color: var(--muted); font-size: 0.85rem; justify-self: end; }

/* Apps page */
.app { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2rem clamp(2rem, 6vw, 5.5rem); padding-block: clamp(2.75rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.app:first-child { padding-top: 0; }
.app-id .app-icon { width: 7.5rem; height: 7.5rem; margin-bottom: 1.6rem; border-radius: 22.5%; box-shadow: 0 1px 2px rgb(38 36 34 / 0.18), 0 12px 26px -14px rgb(38 36 34 / 0.5); }
.app-id h2 { margin-bottom: 0.6rem; font-size: clamp(2.2rem, 4.4vw, 3.3rem); font-weight: 800; font-stretch: 118%; letter-spacing: -0.015em; line-height: 0.95; }
.app-id .label { margin: 0; color: var(--muted); }
.app-body { align-self: end; }
.app-body .app-lead { margin-bottom: 1rem; color: var(--ink); font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 650; font-stretch: 105%; letter-spacing: -0.005em; line-height: 1.35; }
.app-body p { max-width: 36rem; color: var(--muted); }
.app-note { margin-bottom: 1.6rem; font-size: 0.86rem; font-style: italic; }

/* About + contact + legal */
.narrow-main { max-width: calc(60rem + 2 * var(--gutter)); }
.legal-main { max-width: calc(52rem + 2 * var(--gutter)); }
.legal-main .page-heading h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem clamp(2.5rem, 6vw, 5rem); }
.prose { max-width: 40rem; }
.prose p { margin-bottom: 1.5rem; }
.prose > p:first-child { font-size: 1.25rem; line-height: 1.5; }
.legal-main .prose > p:first-child, .legal-main .prose h2 + p { font-size: inherit; line-height: inherit; }
.prose h2 { margin: 2.6rem 0 0.6rem; color: var(--ink); font-size: 0.78rem; font-weight: 700; font-stretch: 75%; letter-spacing: 0.13em; text-transform: uppercase; }
.prose h2:first-child { margin-top: 0; }
.prose address { color: var(--muted); font-style: normal; line-height: 1.8; }
.facts { align-self: start; margin: 0; border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding-block: 0.9rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; line-height: 1.45; }
.facts dt { padding-top: 0.15rem; color: var(--muted); }
.facts dd { margin: 0; }
.mail { display: inline-block; margin-bottom: clamp(3rem, 6vw, 4.5rem); color: var(--ink); font-size: clamp(1.7rem, 5.2vw, 3.6rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.05; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.16em; overflow-wrap: anywhere; transition: color 200ms ease; }
.mail:hover { color: var(--accent-dark); }

:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }
.band :focus-visible, .site-footer :focus-visible, .hero-art :focus-visible { outline-color: var(--accent-on-dark); }

@media (max-width: 60rem) {
  .hero { grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter); min-height: 0; }
  .hero-copy { grid-column: 2; padding: clamp(3.5rem, 10vw, 5rem) 0 3rem; }
  .hero-art { grid-column: 1 / -1; min-height: 0; height: clamp(20rem, 70vw, 30rem); }
  .app-row { grid-template-columns: 4.5rem minmax(0, 1fr); padding-right: 0; }
  .app-row .app-icon { width: 4.5rem; height: 4.5rem; }
  .app-facts, .row-go { grid-column: 2; }
  .why, .about-grid, .app { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 42rem) {
  :root { --gutter: 1rem; }
  .header-inner { min-height: 0; padding-block: 1rem; flex-wrap: wrap; gap: 0.85rem 1rem; }
  .site-nav { margin-left: -0.7rem; }
  .page-heading { grid-template-columns: minmax(0, 1fr); }
  .page-heading .lede, .effective-date { justify-self: start; }
  .app-row { grid-template-columns: 3.75rem minmax(0, 1fr); gap: 1rem 1.1rem; padding-block: 1.6rem; }
  .app-row .app-icon { width: 3.75rem; height: 3.75rem; }
  .scene-label { display: none; }
  .facts div { grid-template-columns: 5.5rem minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; }
}
