/* Rocky Stone Labs — limestone paper, ink, one moss accent, one apricot glint (DESIGN.md). */
:root {
  --paper: #eeebe5; --paper-2: #e6e2da; --ink: #1a1c1b; --ink-2: #4a4d4a; --ink-3: #7b7d79;
  --moss: #5e7f6e; --apricot: #d9895f; --line: rgba(26, 28, 27, .12);
  --serif: "Instrument Serif", ui-serif, "New York", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(22px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; background: var(--paper);
       background-image: radial-gradient(1200px 800px at 75% 10%, #f6f3ee 0%, transparent 60%), radial-gradient(900px 600px at 10% 90%, #e9e5dd 0%, transparent 70%); }
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(94, 127, 110, .25); }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 10px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* Nav (home: nav.top; legal pages: nav > .wrap) */
nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
      padding: 18px var(--pad); mix-blend-mode: normal; }
nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
nav .brand, nav .mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .01em; color: var(--ink); }
.pebble { width: 18px; height: 12px; border-radius: 50% 50% 46% 54% / 60% 58% 42% 40%; background: radial-gradient(circle at 35% 30%, #b9b3aa, #6f6a64 70%); box-shadow: 0 2px 4px rgba(0,0,0,.18); }
nav .links { display: flex; gap: 26px; font-size: 14.5px; }
nav .links a { text-decoration: none; color: var(--ink-2); position: relative; }
nav .links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
nav .links a:hover { color: var(--ink); } nav .links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Stage */
#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; transition: opacity .2s linear; }
.no-webgl #stage { display: none; }
main, footer { position: relative; z-index: 1; }
.stone-labels { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.stone-label { position: absolute; left: 0; top: 0; width: 300px; padding-left: 18px; border-left: 1px solid var(--ink-3); opacity: 0;
               text-decoration: none; display: flex; flex-direction: column; gap: 2px; will-change: transform, opacity; }
.stone-label b { font: 400 34px/1 var(--serif); }
.stone-label span:last-child { color: var(--ink-2); font-size: 14.5px; }
.stone-label.ghost b { color: var(--moss); }
.lbl-k { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

/* Type */
.eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--moss); font-weight: 650; margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; margin: 0; }
h1 { font-size: clamp(54px, 9vw, 132px); line-height: .95; }
h1 em, h2 em { font-style: italic; color: var(--moss); }
h2 { font-size: clamp(40px, 5.4vw, 78px); line-height: 1.02; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.w > span { display: inline-block; }
.lede { max-width: 34ch; color: var(--ink-2); font-size: clamp(17px, 1.5vw, 20px); margin: 28px 0 36px; }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none;
        font-weight: 600; font-size: 15px; transition: transform .4s cubic-bezier(.2,.7,.2,1), background .3s, border-color .3s; background: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.pill:hover { transform: translateY(-2px); border-color: var(--ink-3); }
.pill.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill.solid:hover { background: #2a2d2b; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding: 0 var(--pad); }
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 80px; max-width: 1500px; }
.hero > * { max-width: 46vw; }
.scroll-cue { position: absolute; left: var(--pad); bottom: 34px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 12px; }
.scroll-cue span { width: 1px; height: 38px; background: linear-gradient(var(--ink-3), transparent); animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.manifesto { min-height: 140vh; padding-top: 18vh; }
.principles { list-style: none; padding: 0; margin: 0; max-width: 50vw; counter-reset: p; }
.principles li { padding: 6vh 0; border-top: 1px solid var(--line); counter-increment: p; position: relative; }
.principles li::before { content: "0" counter(p); position: absolute; right: 0; top: 6vh; font-size: 12px; letter-spacing: .16em; color: var(--ink-3); }
.principles p { color: var(--ink-2); max-width: 38ch; margin: 14px 0 0; }

.cairn-section { min-height: 100vh; display: flex; align-items: center; }
.cairn-copy { max-width: 30vw; }
.cairn-copy p:last-child { color: var(--ink-2); margin-top: 18px; }
.cairn-hold { height: 160vh; }

.tools { padding-top: 12vh; padding-bottom: 14vh; }
.tool-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; margin-top: 46px; }
.tool-card { display: flex; gap: 26px; align-items: flex-start; padding: 34px; border-radius: 28px; background: rgba(255,255,255,.5); border: 1px solid var(--line);
             text-decoration: none; transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s, background .4s; }
a.tool-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(26,28,27,.35); background: rgba(255,255,255,.75); }
.tool-card img { width: 88px; height: 88px; flex: none; border-radius: 20px; }
.tool-card h3 { font-size: 40px; line-height: 1; margin: 4px 0 10px; }
.tool-card p { color: var(--ink-2); margin: 0 0 14px; }
.tool-card .go { font-weight: 600; font-size: 15px; color: var(--moss); }
.tool-card.soon { background: transparent; border-style: dashed; }
.carving { width: 88px; height: 60px; flex: none; border-radius: 50% 50% 46% 54% / 60% 58% 42% 40%; border: 1px dashed var(--moss); opacity: .6; margin-top: 12px; }

.contact { padding-top: 8vh; padding-bottom: 16vh; }
.mail { display: inline-block; margin-top: 26px; font: 400 clamp(32px, 5vw, 72px)/1.05 var(--serif); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .8s cubic-bezier(.2,.7,.2,1); }
.mail:hover { background-size: 100% 1px; }
.small { color: var(--ink-3); font-size: 15px; margin-top: 22px; }
.small a { color: var(--ink-2); }

/* Footer (home: .foot; legal pages: footer > .wrap) */
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 28px var(--pad) 40px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; width: 100%; }
footer .right { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--ink-2); text-decoration: none; } footer a:hover { color: var(--ink); }

/* Legal and other text pages */
.doc { max-width: 760px; margin: 0 auto; padding: 140px var(--pad) 90px; }
.doc h1 { font-size: clamp(48px, 7vw, 84px); margin-bottom: 12px; }
.doc h2 { font-size: 30px; margin: 42px 0 10px; }
.doc p { color: var(--ink-2); }
.doc a { color: var(--moss); }
.doc code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(26,28,27,.06); padding: 1px 6px; border-radius: 6px; }

@media (max-width: 760px) {
  nav .links { gap: 16px; } nav .links a:nth-child(2) { display: none; }
  .hero { justify-content: flex-start; padding-top: 18vh; }
  .hero > * { max-width: 100%; }
  .manifesto { padding-top: 60vh; } .principles { max-width: 100%; }
  .cairn-section { align-items: flex-start; padding-top: 12vh; } .cairn-copy { max-width: 100%; }
  .stone-label { width: 300px; background: rgba(238,235,229,.85); padding: 10px 14px; border-radius: 12px; border-left: none; }
  .tool-grid { grid-template-columns: 1fr; } .tool-card { flex-direction: column; padding: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
