/* Panarc Projects, view "Sand". Written Fri 30 Oct 2026 by Claude. */
:root {
  --night: #100d14; --cream: #efe3cc; --cream-2: rgba(239, 227, 204, .72); --line: rgba(239, 227, 204, .16);
  --sans: system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --gutter: clamp(18px, 4.4vw, 64px);
  --top: 14px;
  color-scheme: dark;
}
@media (max-width: 700px) { :root { --top: calc(var(--pv-h, 60px) + 4px); } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--night); color: var(--cream); font: 400 16px/1.55 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: #111; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid #7fb4ff; outline-offset: 3px; }

/* the sand canvas: fixed, behind the page */
#sand { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; display: none; }
.engine-on #sand { display: block; }
.storm-on:not(.sand-on).storming #sand { z-index: 80; }

/* header */
.top { position: absolute; top: var(--top); left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); height: 52px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; gap: 4px; }
.brand b { font-weight: 800; letter-spacing: .2em; font-size: 15px; }
.brand span { font-size: 9px; letter-spacing: .5em; opacity: .7; }
.top nav { display: flex; gap: 4px; align-items: center; }
.top nav a { text-decoration: none; font-size: 14px; padding: 10px 12px; border-radius: 999px; opacity: .85; }
.top nav a:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.top nav .nav-contact { border: 1px solid var(--line); opacity: 1; }
@media (max-width: 900px) and (min-width: 701px) { .top nav a:not(.nav-contact) { display: none; } }
@media (max-width: 700px) { .top nav a:not(.nav-contact) { display: none; } }

main { position: relative; z-index: 1; }
.panel-open main, .panel-open .top { visibility: hidden; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; opacity: .85; }
.grain-dot { width: 9px; height: 9px; border-radius: 50%; background: conic-gradient(#2a63b8, #d65f86, #ffd23f, #74efe9, #2a63b8); flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 650; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.btn.primary { background: var(--acc, var(--cream)); color: var(--acc-ink, #15110f); }
.btn.quiet { background: transparent; padding: 0 6px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.btn.primary:hover { transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; padding: calc(var(--top) + 110px) var(--gutter) 56px; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: clamp(28px, 5vw, 80px); align-items: center; position: relative; }
.hero-copy { max-width: 760px; }
#headline { margin: 0 0 26px; font-size: clamp(3.1rem, 7.6vw, 7.6rem); line-height: .94; letter-spacing: -.045em; font-weight: 820; }
#headline .h-a { font-family: var(--sans); }
#headline .h-b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.02em; margin-top: .06em; background: linear-gradient(90deg, #7fb0f0, #2a8f97, #d65f86, #e2683f, #ffd23f, #74efe9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sand-on #headline .h-a, .sand-on #headline .h-b { color: transparent; -webkit-text-fill-color: transparent; background: none; }
.lede { font-size: clamp(1.02rem, 1.25vw, 1.2rem); max-width: 34em; color: var(--cream-2); margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.hint { grid-column: 1 / -1; margin: 30px 0 0; font-size: 13px; opacity: .6; display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
.hint::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hint .h-wind { display: none; }
.wind-on .hint .h-wind { display: inline; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); align-self: center; }
.tile { appearance: none; background: transparent; border: 0; padding: 0; cursor: grab; display: flex; flex-direction: column; align-items: center; gap: 8px; border-radius: 18px; touch-action: none; -webkit-tap-highlight-color: transparent; }
.scooping .tile, .scooping .art { cursor: grabbing; }
.tile-art { width: 100%; aspect-ratio: 1; display: block; position: relative; border-radius: 16px; }
.tile-name { font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; opacity: .9; }
.tile-name i { font-style: normal; font-size: 11px; opacity: .55; letter-spacing: .08em; }
.tile:hover .tile-name, .tile:focus-visible .tile-name { opacity: 1; }
.tile:hover .tile-name::after { content: "double tap"; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .5; }
.still { width: 100%; height: 100%; display: block; object-fit: contain; }
.sand-on .still { visibility: hidden; }


/* ---------- the six stops ---------- */
.stop { position: relative; height: 210vh; color: var(--ink); background: var(--paper); }
.sand-on .stop { background: transparent; }
.stop-in { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding: 90px var(--gutter) 60px; }
.card { max-width: 560px; }
.tag { font-size: 12px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; color: var(--acc); margin: 0 0 18px; }
.stop:nth-child(3) .tag, .stop:nth-child(6) .tag { color: var(--acc); filter: brightness(.9); }
.stop h2, .panel h2 { font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: .98; letter-spacing: -.04em; margin: 0 0 22px; font-weight: 800; }
.story, .panel-story { font-size: clamp(1rem, 1.2vw, 1.15rem); margin: 0 0 22px; color: var(--ink); opacity: .82; max-width: 32em; }
.chips { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.card-actions, .panel-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.status { font-size: 13px; color: var(--soft); margin: 18px 0 0; }
.art { appearance: none; border: 0; background: transparent; padding: 0; width: 100%; height: 100%; max-height: calc(100svh - 150px); position: relative; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; border-radius: 24px; display: block; }
.art .still { position: absolute; inset: 0; margin: auto; width: min(100%, calc(100svh - 150px)); height: auto; aspect-ratio: 1; }

/* ---------- how and contact ---------- */
.how { padding: 18vh var(--gutter) 10vh; }
.how-in, .contact-in { max-width: 1180px; margin: 0 auto; }
.how h2, .contact h2 { font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.04em; margin: 0 0 40px; font-weight: 800; max-width: 15em; }
.how h2 em, .contact h2 em { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; color: #ffd27a; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.principles article { border-top: 1px solid var(--line); padding: 22px 0 0; }
.principles span { font-size: 12px; letter-spacing: .14em; opacity: .55; }
.principles h3 { font-size: 1.3rem; margin: 10px 0 8px; letter-spacing: -.01em; }
.principles p { margin: 0; color: var(--cream-2); }
.contact { padding: 12vh var(--gutter) 0; }
.contact-in { padding-bottom: 34vh; }
.contact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 60px; }
.contact-list div { border-top: 1px solid var(--line); padding-top: 16px; }
.contact-list dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .55; margin-bottom: 6px; }
.contact-list dd { margin: 0; font-size: 1.15rem; font-weight: 600; }
.contact-foot { display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: center; font-size: 14px; color: var(--cream-2); }
.contact-foot p { margin: 0; }
.contact-foot .fine { font-size: 12px; opacity: .7; flex-basis: 100%; }
.how, .contact { background: #15110f; }
.sand-on .how, .sand-on .contact { background: transparent; }
/* still dunes for the calm page */
.contact { background-image: linear-gradient(to top, #2a63b8 0 3vh, #d9520b 3vh 5vh, #dcc6a1 5vh 8vh, #1d6f77 8vh 10vh, #d65f86 10vh 12vh, #ffd23f 12vh 13.5vh, #15110f 13.5vh); background-repeat: no-repeat; }
.sand-on .contact { background-image: none; }

/* ---------- world panel ---------- */
.panel { position: fixed; inset: 0; z-index: 60; color: var(--ink); background: var(--paper); overflow-y: auto; }
.sand-on .panel { background: transparent; }
.panel.pre { opacity: 0; pointer-events: none; }
.panel.shown { opacity: 1; transition: opacity .45s ease; }
[data-motion="off"] .panel.shown { transition: none; }
.panel-inner { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: 96px var(--gutter) 48px; }
.panel-tag { font-size: 12px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; color: var(--acc); margin: 0 0 18px; }
.panel-close { position: fixed; top: calc(var(--top) + 4px); right: var(--gutter); z-index: 2; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); background: color-mix(in srgb, var(--paper) 80%, transparent); color: var(--ink); cursor: pointer; font-weight: 600; }
.panel-art { position: relative; width: 100%; aspect-ratio: 1; max-height: calc(100svh - 160px); justify-self: center; }
.panel-art .still { position: absolute; inset: 0; }
.panel-copy { max-width: 560px; }
.panel .shown .panel-copy { animation: none; }
.panel.shown .panel-copy > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.panel.shown .panel-copy > *:nth-child(2) { animation-delay: .05s; } .panel.shown .panel-copy > *:nth-child(3) { animation-delay: .1s; }
.panel.shown .panel-copy > *:nth-child(4) { animation-delay: .15s; } .panel.shown .panel-copy > *:nth-child(5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
[data-motion="off"] .panel.shown .panel-copy > * { animation: none; }

/* ---------- features ---------- */
.features { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.features-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(14, 12, 16, .86); color: #fff; border: 1px solid rgba(255, 255, 255, .16); cursor: pointer; font-size: 13px; font-weight: 600; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.dots { display: inline-flex; gap: 3px; } .dots i { width: 6px; height: 6px; border-radius: 50%; background: #d65f86; } .dots i:nth-child(2) { background: #ffd23f; } .dots i:nth-child(3) { background: #74efe9; }
.features-pop { order: -1; width: min(360px, calc(100vw - 28px)); background: rgba(16, 13, 20, .95); color: #fff; border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.features-title { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.feat { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.feat strong { display: block; font-size: 14px; margin-bottom: 3px; }
.feat span, .feat-note { display: block; font-size: 12.5px; line-height: 1.45; opacity: .72; }
.feat-note { font-style: normal; color: #ffd27a; opacity: 1; margin-top: 4px; }
.feat button { flex: none; width: 46px; height: 28px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .22); position: relative; cursor: pointer; margin-top: 2px; }
.feat button::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.feat button[aria-checked="true"] { background: linear-gradient(90deg, #d65f86, #ffd23f); }
.feat button[aria-checked="true"]::after { transform: translateX(18px); }
.features-motion { margin: 8px 0 0; font-size: 12px; opacity: .6; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 10px; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .hero { display: block; padding: calc(var(--top) + 72px) var(--gutter) 44px; min-height: 0; }
  #headline { font-size: clamp(2.9rem, 13.6vw, 4.2rem); margin-bottom: 18px; }
  .lede { font-size: 1rem; margin-bottom: 22px; }
  .eyebrow .long { display: none; }
  .tiles { margin-top: 30px; gap: 8px 10px; }
  .tile-name { font-size: 12px; text-align: center; flex-direction: column; gap: 0; align-items: center; }
  .tile:hover .tile-name::after { content: none; }
  .hint { margin-top: 20px; }
  .fcount { display: none; }
  .stop { height: 200vh; }
  .stop-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: 40svh auto; align-content: start; gap: 8px; padding: calc(var(--top) + 6px) var(--gutter) 24px; }
  .art { grid-row: 1; height: 40svh; max-height: none; touch-action: pan-y; }
  .art .still { width: auto; height: 100%; }
  .card { grid-row: 2; }
  .tag { margin-bottom: 10px; }
  .stop h2, .panel h2 { font-size: clamp(1.8rem, 8.4vw, 2.4rem); margin-bottom: 12px; }
  .story, .panel-story { font-size: .97rem; margin-bottom: 14px; line-height: 1.5; }
  .chips { margin-bottom: 16px; } .chips li { font-size: 13px; padding: 5px 12px; }
  .btn { min-height: 46px; font-size: 14px; padding: 0 18px; }
  .status { margin-top: 12px; font-size: 12px; }
  .principles, .contact-list { grid-template-columns: minmax(0, 1fr); }
  .how { padding-top: 12vh; }
  .panel-inner { grid-template-columns: minmax(0, 1fr); padding: calc(var(--top) + 56px) var(--gutter) 40px; align-content: start; gap: 8px; }
  .panel-art { grid-row: 1; width: min(100%, 36svh); }
  .panel-close { top: calc(var(--top) + 2px); }
}
@media (prefers-reduced-motion: reduce) { .btn, .feat button::after { transition: none; } }

/* the leaving card fades as the sand pours out from under it (where the browser supports scroll timelines) */
@supports (animation-timeline: view()) {
  .sand-on .card { animation: card-out linear both; animation-timeline: view(); animation-range: exit 0% exit 55%; }
  @keyframes card-out { to { opacity: 0; transform: translateY(-24px); } }
}
