/* ------------------------------------------------------------------
   Storri Software — landing
   Limestone, clay, sage. One burnt umber. Stone, not screen.
   ------------------------------------------------------------------ */

:root {
  --bg: #14181f;
  --ink: #e9e3d8;
  --ink-2: #b9b2a6;
  --muted: #7f7a72;
  --line: rgba(233, 227, 216, 0.16);
  --line-soft: rgba(233, 227, 216, 0.08);
  --stone: #8b8175;
  --stone-side: #6b6257;
  --umber: #e8763a;
  --umber-deep: #b8531f;
  --umber-ink: #17110c;

  --font-display: "Unbounded", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(20px, 3.2vw, 44px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body { height: 100%; margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  min-height: 100dvh;
}

.top, .stage, .brand, .nav { min-width: 0; }

a { color: inherit; text-decoration: none; }
::selection { background: var(--umber); color: var(--umber-ink); }

.label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Loading screen ------------------------------------------------------ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: transparent;
  transition: opacity 0.7s var(--ease), visibility 0s linear 0.7s;
}

body.is-loading .top, body.is-loading .brand, body.is-loading .stage, body.is-loading .mission { opacity: 0; pointer-events: none; }
.top, .brand, .stage, .mission { transition: opacity 0.7s var(--ease); }

.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 0 var(--pad);
  text-align: center;
  animation: loader-in 0.9s var(--ease) both;
}

.loader-mark {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--umber);
  stroke-width: 5;
  transition: transform 0.28s cubic-bezier(0.34, 1.3, 0.4, 1);
}

.loader-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.loader-line {
  margin: 0;
  min-height: 1.6em;
  white-space: nowrap;
  font-size: clamp(9.5px, 2.6vw, 15px);
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

@keyframes loader-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

body.is-loading { overflow: hidden; }

/* Backdrop: warm washes, paper grain, living dot field ---------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 78% 18%, rgba(48, 58, 74, 0.55), transparent 70%),
    radial-gradient(60% 55% at 18% 88%, rgba(56, 48, 44, 0.5), transparent 70%),
    radial-gradient(45% 45% at 50% 50%, rgba(40, 48, 60, 0.6), transparent 70%);
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.09;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

.field {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Top --------------------------------------------------------------- */
.top {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding: 26px var(--pad) 0;
}

.menu { display: inline-flex; flex-direction: column; align-items: stretch; }
.nav { display: flex; justify-content: space-between; gap: clamp(16px, 2vw, 26px); }

.nav a {
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.3s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 14px;
  height: 2px;
  background: var(--umber);
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s var(--ease);
}

.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a.nav-client, .nav a.nav-client:hover, .nav a.nav-client.is-active { color: #7c9be0; }
.nav a.nav-client::after { display: none; }
body:not(.is-home) .nav a:hover { color: var(--ink-2); }
body:not(.is-home) .nav a.is-hot, body:not(.is-home) .nav a.is-hot:hover { color: #e8763a; }

.nav a.is-hot {
  color: #e8763a;
  text-shadow: 0 0 10px rgba(239, 125, 63, 0.6), 0 0 22px rgba(239, 125, 63, 0.35);
}

.nav a.is-hot::after { transform: translateX(-50%) scale(1); background: #e8763a; box-shadow: 0 0 8px rgba(239, 125, 63, 0.9); }

.nav a.is-hot::after { box-shadow: 0 0 10px rgba(239, 125, 63, 0.9); }

/* Brand, left ------------------------------------------------------- */
.brand {
  position: fixed;
  left: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 36px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.mark {
  width: clamp(22px, 2.4vw, 36px);
  height: clamp(22px, 2.4vw, 36px);
  fill: none;
  stroke: var(--umber);
  stroke-width: 5;
  transition: transform 0.7s var(--ease);
}

.brand-line { color: var(--umber); font-size: 12px; }

/* Stage ------------------------------------------------------------- */
.stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  overflow: hidden;
  padding: 0 var(--pad) 28px;
}

.view {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0s linear 0.55s;
}

.view:not(.is-active) { pointer-events: none; }
.view:not(.is-active) .stone, .view:not(.is-active) .core, .view:not(.is-active) .hit { pointer-events: none !important; }
body:not(.is-home) #view-home { display: none; }

.view.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.7s var(--ease) 0.08s, transform 0.7s var(--ease) 0.08s, visibility 0s;
}

/* Home: three 3D buttons, disc, gem pointer ---------------------------- */
.ring-wrap {
  position: relative;
  width: min(calc(100dvh - 170px), 58vw, 760px);
  aspect-ratio: 1;
  margin: 0 auto;
}


.ring { width: 100%; height: 100%; overflow: visible; display: block; }

.ring .stone { cursor: pointer; outline: none; }
.ring .stone path { stroke-linejoin: miter; }

.ring .stone > .lift { transition: transform 0.45s var(--ease); transform-box: view-box; transform-origin: 200px 200px; }
.ring .stone.is-hot > .lift { transform: scale(1.035); }
.ring .stone.is-pressed > .lift { transform: translateY(4px); transition-duration: 0.12s; }

.ring .shadow {
  fill: rgba(0, 0, 0, 0.6);
  filter: url(#soft-shadow);
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.ring .shadow { transform-box: view-box; transform-origin: 200px 200px; }
.ring .stone.is-hot .shadow { transform: scale(1.035) translateY(3px); opacity: 0.95; }

.ring .halo {
  fill: #f08a4a;
  stroke: #f08a4a;
  filter: url(#glow);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.ring .stone.is-hot .halo { opacity: 0.7; animation: ember 1.6s ease-in-out infinite; }

@keyframes ember {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.85; }
}

.ring .side { fill: url(#btn-side); transition: fill 0.45s var(--ease); }
.ring .face { fill: url(#btn-face); transition: fill 0.45s var(--ease); }
.ring .brush { fill: #ffffff; filter: url(#brushed); opacity: 0.12; mix-blend-mode: overlay; }
.ring .grain { fill: #ffffff; filter: url(#grain); opacity: 0.07; mix-blend-mode: overlay; }
.ring .machined { fill: none; stroke: rgba(0, 0, 0, 0.35); stroke-linecap: butt; }
.ring .sheen { fill: url(#sheen); mix-blend-mode: screen; }
.ring .inner-edge { fill: none; stroke: rgba(0, 0, 0, 0.45); stroke-linecap: butt; }
.ring .gloss { fill: none; stroke: rgba(255, 255, 255, 0.34); stroke-linecap: butt; }
.ring .rim { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.ring .stone.is-hot .side { fill: #5a2109; }
.ring .stone.is-hot .face { fill: url(#btn-hot); }
.ring .stone.is-hot .gloss { stroke: rgba(255, 240, 225, 0.55); }
.ring .stone.is-hot .rim { stroke: rgba(255, 220, 190, 0.45); }
.ring .hit { fill: transparent; stroke: transparent; pointer-events: all; }

/* gleam */
.gleam { pointer-events: none; mix-blend-mode: screen; transform-box: view-box; transform-origin: 200px 200px; will-change: transform; }
.gleam-soft { fill: url(#gleam-grad); }

/* centre disc */
.core { cursor: pointer; outline: none; }
.core:hover .disc-face { filter: brightness(1.12); }
.core .bezel { pointer-events: none; }
.core .shadow { fill: rgba(0, 0, 0, 0.55); filter: url(#soft-shadow); }
.core .disc-side { fill: #090c11; }
.core .disc-face { fill: url(#disc-face-lin); }
.core .disc-brush { fill: #ffffff; filter: url(#brushed); opacity: 0.12; mix-blend-mode: overlay; }
.core .disc-grain { fill: #ffffff; filter: url(#grain); opacity: 0.07; mix-blend-mode: overlay; }
.core .disc-sheen { fill: url(#sheen); mix-blend-mode: screen; }
.core .disc-rim-hi { fill: none; stroke: url(#rim-grad); stroke-width: 2.2; }
.core .disc-machined { fill: none; stroke: rgba(0, 0, 0, 0.4); stroke-width: 1; }
.core .disc-inner-edge { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.core .disc-rim { fill: none; stroke: rgba(255, 255, 255, 0.09); stroke-width: 1.5; }
.core .bezel {
  transform-box: view-box;
  transform-origin: 200px 200px;
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.34, 1.25, 0.4, 1);
}
.core .bz-ring { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.2; }
.core .bz-ring-inner { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.core .bz-tick { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; stroke-linecap: round; }
.core .bz-tick.major { stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.4; }

/* centre visual (per section) */
.core-visual {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 31%;
  transform: translateX(-50%);
  pointer-events: none;
}

.cv { display: none; width: 100%; height: auto; overflow: visible; }
.cv.is-on { display: block; animation: cv-in 0.45s var(--ease); transform-origin: 50% 50%; }

@keyframes cv-in {
  0% { opacity: 0; transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}

.cv-trace { fill: none; stroke: rgba(232, 118, 58, 0.55); stroke-width: 1.2; stroke-linejoin: round; stroke-dasharray: 3 2; animation: trace-flow 1.4s linear infinite; }
.cv-chip rect { fill: #1a2029; stroke: #e8763a; stroke-width: 1.4; }
.cv-chip .cv-chip-inner { fill: #2a3441; stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; }
.cv-chip text { font-family: var(--font-display); font-weight: 800; font-size: 13px; fill: #ffb27a; letter-spacing: 0.04em; }
.cv-chip { filter: drop-shadow(0 0 8px rgba(239, 125, 63, 0.6)); animation: chip-pulse 2s ease-in-out infinite; }
.cv-pins { fill: none; stroke: #e8763a; stroke-width: 1.4; }
.cv-node circle { fill: #1a2029; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.2; }
.cv-node image { opacity: 0.9; }

.cv-node-text { font-family: var(--font-display); font-weight: 800; font-size: 11px; fill: #e9e3d8; }
.cv-box rect { fill: #1a2029; stroke: #e8763a; stroke-width: 1.4; }
.cv-box text { font-family: var(--font-display); font-weight: 800; font-size: 11px; fill: #f2ede4; letter-spacing: 0.08em; }
.cv-box-mark { fill: none; stroke: #e8763a; stroke-width: 5; }
.cv-box { filter: drop-shadow(0 0 8px rgba(239, 125, 63, 0.6)); animation: chip-pulse 2s ease-in-out infinite; }

@keyframes trace-flow { to { stroke-dashoffset: -10; } }
@keyframes chip-pulse { 0%, 100% { filter: drop-shadow(0 0 6px rgba(239, 125, 63, 0.45)); } 50% { filter: drop-shadow(0 0 12px rgba(239, 125, 63, 0.85)); } }

/* centre text */
.core-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46%;
  transition: top 0.5s var(--ease);
  display: grid;
  gap: 6px;
  text-align: center;
  pointer-events: none;
}

.core-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(12px, 1.35vw, 18px);
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2ede4;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.core-desc {
  font-size: clamp(11px, 0.95vw, 14px);
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #e8763a;
  text-shadow: 0 0 10px rgba(239, 125, 63, 0.5), 0 2px 6px rgba(0, 0, 0, 0.6);
}

.core-text.is-flash { animation: label-in 0.5s var(--ease); }
.ring-wrap.has-visual .core-text { top: 60%; width: 40%; }
.ring-wrap.has-visual .core-label { font-size: clamp(11px, 1.15vw, 15px); }
.ring-wrap.has-visual .core-desc { font-size: clamp(10px, 0.85vw, 12.5px); }

@keyframes label-in {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.94); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Mission line, home only ---------------------------------------------- */
.mission {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  width: max-content;
  max-width: calc(100vw - 2 * var(--pad));
  margin: 0;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(10px, 0.95vw, 14px);
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: #e8763a;
  text-shadow: 0 0 10px rgba(239, 125, 63, 0.45), 0 0 22px rgba(239, 125, 63, 0.25);
  pointer-events: none;
}

body:not(.is-home) .mission { display: none; }

/* Inner pages --------------------------------------------------------- */
.page {
  width: min(560px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: 8px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.num { margin: 0 0 18px; color: var(--umber); }

.h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 22px;
}

.h em { font-style: normal; color: var(--umber); }

.lead {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--ink-2);
  max-width: 500px;
  margin: 0 0 26px;
}

.lead em { font-style: normal; font-weight: 500; color: var(--ink); }
.body { font-size: 14px; color: var(--ink-2); max-width: 500px; margin: 0 0 22px; }
.body em { font-style: normal; color: var(--ink); }
.ethos { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--umber); font-size: 12px; }

.list {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 460px;
}

.list li { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.list li:last-child { border-bottom: 1px solid var(--line-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  background: var(--umber);
  color: var(--umber-ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--umber-deep), 0 12px 18px rgba(0, 0, 0, 0.35);
  transform: translateY(0);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.3s var(--ease);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--umber-deep), 0 16px 22px rgba(0, 0, 0, 0.4); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--umber-deep), 0 4px 8px rgba(0, 0, 0, 0.35); }

.sub { margin: 0 0 12px; }

.tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  max-width: 560px;
}

.tools li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.tools li { transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.35s var(--ease), background 0.3s var(--ease); cursor: default; }
.tools li:hover { border-color: var(--umber); color: var(--ink); transform: scale(1.08); background: rgba(255, 255, 255, 0.06); position: relative; z-index: 1; }
.tools-five { grid-template-columns: repeat(5, 1fr); }
.tools img { width: 18px; height: 18px; flex: none; opacity: 0.85; }

.toggle { margin-bottom: 4px; }
.toggle .chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s var(--ease);
}
.toggle.is-open .chev { transform: rotate(225deg) translate(-2px, -2px); }

.form-wrap {
  display: grid;
  gap: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.form-wrap.is-open { max-height: 640px; opacity: 1; transform: none; padding-top: 22px; }
.form-wrap[hidden] { display: none; }

/* Client login */
.login { display: grid; gap: 14px; max-width: 360px; padding-top: 6px; }
.login label { display: grid; gap: 6px; }
.login input {
  width: 100%;
  font: inherit;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #3a5288;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.login input:focus { border-color: #7c9be0; background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 3px rgba(124, 155, 224, 0.18); }
.login .btn { justify-self: start; background: #3a5288; box-shadow: 0 6px 0 #22335a, 0 12px 18px rgba(0, 0, 0, 0.35); color: #eef2fb; }
.login .btn:hover { background: #4664a4; box-shadow: 0 8px 0 #22335a, 0 16px 22px rgba(0, 0, 0, 0.4); }
.login .btn:active { box-shadow: 0 2px 0 #22335a, 0 4px 8px rgba(0, 0, 0, 0.35); }

/* Contact ----------------------------------------------------------------- */
.email {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 2px solid var(--umber);
  margin: 0 0 24px;
  word-break: break-all;
  transition: color 0.3s var(--ease);
}

.email:hover { color: var(--umber); }

.form { display: grid; gap: 14px; max-width: 460px; }
.form label { display: grid; gap: 6px; }

.form input, .form textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 11px 12px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.form input:focus, .form textarea:focus {
  border-color: var(--umber);
  background: rgba(255, 255, 255, 0.09);
}

.form textarea { resize: vertical; min-height: 80px; }
.form .btn { justify-self: start; margin-top: 6px; }
.note { margin: 0; min-height: 1em; text-transform: none; letter-spacing: 0.04em; }

:focus-visible { outline: 2px solid var(--umber); outline-offset: 3px; }

/* Responsive ------------------------------------------------------------- */
body:not(.is-home) .brand { top: 22px; left: 50%; transform: translateX(-50%); align-items: center; text-align: center; gap: 6px; }
body:not(.is-home) .top { padding-top: 92px; }
body:not(.is-home) .stage { padding-top: 36px; }
body:not(.is-home) .view { align-items: start; }
body:not(.is-home) .wordmark { font-size: 22px; }
body:not(.is-home) .mark { width: 22px; height: 22px; }

@media (max-width: 1100px) {
  body.is-home .brand { top: auto; bottom: 40px; transform: none; }
}

@media (max-width: 860px) {
  html, body { height: auto; }
  body { overflow-x: hidden; overflow-y: auto; min-height: 100dvh; grid-template-rows: auto auto 1fr auto; }

  .top { justify-content: flex-start; padding-top: 18px; }
  .menu { max-width: 100%; }
  .nav { overflow-x: auto; max-width: 100%; padding-bottom: 6px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }

  .brand, body:not(.is-home) .brand { position: static; left: auto; top: auto; transform: none; align-items: flex-start; text-align: left; padding: 20px var(--pad) 0; order: -1; gap: 8px; }
  body:not(.is-home) .top { padding-top: 14px; }
  body:not(.is-home) .stage { padding-top: 20px; }
  body:not(.is-home) .wordmark { font-size: 22px; }
  .nav { gap: clamp(8px, 2.6vw, 16px); width: 100%; }
  .nav a { font-size: clamp(9px, 2.7vw, 12px); letter-spacing: 0.08em; }

  .stage { padding: 24px var(--pad) 32px; align-items: start; overflow: visible; }
  body.is-home .brand { order: 1; }
  body.is-home .top { order: 2; justify-content: flex-start; padding: 14px var(--pad) 0; }
  body.is-home .stage { order: 3; padding: 12px var(--pad) 12px; align-items: center; }
  body.is-home .view { align-items: center; }
  .mission { position: static; transform: none; width: auto; max-width: none; order: 4; padding: 0 12px 36px; white-space: normal; text-wrap: balance; font-size: 10px; letter-spacing: 0; line-height: 1.5; }
  body.is-home .nav { justify-content: flex-start; }
  .view { position: relative; height: auto; }
  .view:not(.is-active) { display: none; }

  .ring-wrap { width: min(92vw, 520px); margin: 0 auto; }

  .page { max-height: none; overflow: visible; }
  .core-text { width: 50%; }
  .ring-wrap.has-visual .core-text { width: 44%; }
  .ring-wrap.has-visual .core-desc { font-size: 9.5px; line-height: 1.3; }
  .core-visual { width: 30%; top: 31%; }
  .tools, .tools-five { grid-template-columns: repeat(2, 1fr); }
}

/* Touch devices: drop the expensive filters and blend modes so animation stays smooth */
@media (pointer: coarse), (max-width: 860px) {
  .ring .brush, .ring .grain, .core .disc-brush, .core .disc-grain { display: none; }
  .ring .shadow, .core .shadow { filter: none; opacity: 0.45; }
  .ring .stone.is-hot .shadow { opacity: 0.55; }
  .ring .halo { filter: none; }
  .ring .stone.is-hot .halo { opacity: 0.22; animation: none; }
  .ring .sheen, .core .disc-sheen { mix-blend-mode: normal; opacity: 0.7; }
  .gleam { mix-blend-mode: normal; }
  .cv-chip, .cv-box { filter: none; animation: none; }
  .cv-trace { animation: none; }
  .grain::after { display: none; }
}

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