:root {
  --ink: #142824;
  --soft: #3e564f;
  --water: #1a655c;
  --deep: #0d3330;
  --copper: #c56a32;
  --mist: #e5eeea;
  --sheet: #f3f7f5;
  --line: #c5d4ce;
  --slip: #fffdf8;
  --bad: #8e2e2e;
  --ok: #1a655c;
  --shadow: 0 18px 40px rgba(13, 51, 48, 0.08);
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body, #app { margin: 0; height: 100%; }
body {
  background: #08343a;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}
#app { position: relative; z-index: 1; }
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(165deg, #071f28 0%, #0c4a52 38%, #147a78 72%, #0b3a40 100%);
}
.sun {
  position: absolute;
  width: 52vw;
  height: 52vw;
  right: -6vw;
  top: -18vw;
  background: radial-gradient(circle, rgba(255, 244, 210, 0.98) 0%, rgba(255, 196, 90, 0.62) 28%, rgba(255, 196, 90, 0) 68%);
  animation: sun-drift 18s ease-in-out infinite;
}
.caustic {
  position: absolute;
  inset: -10% 0 auto;
  height: 70%;
  background:
    radial-gradient(circle at 18% 40%, rgba(190, 255, 240, 0.45), transparent 22%),
    radial-gradient(circle at 62% 28%, rgba(120, 230, 220, 0.35), transparent 20%),
    radial-gradient(circle at 78% 70%, rgba(255, 214, 130, 0.28), transparent 18%);
  animation: caustic 16s linear infinite;
}
.gust {
  position: absolute;
  height: 3px;
  width: 36vw;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
  animation: blow 11s linear infinite;
}
.g1 { top: 18%; }
.g2 { top: 38%; width: 24vw; animation-duration: 13s; animation-delay: -5s; }
.g3 { top: 58%; width: 30vw; animation-duration: 9s; animation-delay: -2s; }
.wave {
  position: absolute;
  left: -20%;
  width: 140%;
  border-radius: 46%;
}
.w1 {
  bottom: -6vh;
  height: 24vh;
  background: linear-gradient(180deg, rgba(190, 255, 236, 0.55), rgba(18, 120, 118, 0.15));
  animation: swell 7s ease-in-out infinite;
}
.w2 {
  bottom: -12vh;
  height: 30vh;
  background: linear-gradient(180deg, rgba(90, 190, 185, 0.55), rgba(8, 60, 68, 0.05));
  animation: swell 10s ease-in-out infinite reverse;
}
.w3 {
  bottom: -4vh;
  height: 16vh;
  background: linear-gradient(180deg, rgba(255, 220, 150, 0.35), transparent);
  animation: swell 12s ease-in-out infinite;
}
@keyframes sun-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-6vw, 4vh, 0) scale(1.08); }
}
@keyframes caustic {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-4%, 3%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes blow {
  0% { transform: translateX(-40vw); opacity: 0; }
  15% { opacity: 0.8; }
  100% { transform: translateX(110vw); opacity: 0; }
}
@keyframes swell {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(-4%) scaleY(1.08); }
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--water); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

.auth {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(460px, 1.25fr) minmax(400px, 0.75fr);
}
.auth-story {
  background: linear-gradient(180deg, rgba(6, 24, 28, 0.28), rgba(6, 28, 32, 0.08) 42%, rgba(6, 32, 34, 0.34));
  color: #f3f7f5;
  padding: 72px 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
}
.brand-mark { letter-spacing: 0.22em; font-size: 12px; color: #b7cfc8; }
.auth-story h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.2;
  margin: 28px 0 16px;
  max-width: 8em;
}
.auth-story p { margin: 0; max-width: 32em; color: #d5e4df; }
.scenes { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; max-width: 32em; }
.scenes li { display: grid; gap: 2px; }
.scenes strong { font-weight: 500; color: #f4f8f6; }
.scenes span { color: #b7cfc8; font-size: 14px; }
.slip {
  background: var(--slip);
  color: var(--ink);
  border-radius: 2px 14px 14px 2px;
  box-shadow: var(--shadow);
  padding: 18px 18px 16px 20px;
  border-left: 6px solid var(--copper);
  max-width: 460px;
}
.slip-top { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--soft); }
.stamp {
  border: 1.5px solid var(--copper);
  color: var(--copper);
  padding: 1px 6px;
  letter-spacing: 0.12em;
  font-size: 12px;
}
.slip h2 { font-family: var(--serif); font-size: 22px; margin: 10px 0 4px; }
.slip .eq { font-family: var(--mono); font-size: 14px; margin: 8px 0; }
.slip .value { font-family: var(--serif); font-size: 32px; margin: 0; color: var(--deep); }
.slip .unit { font-size: 14px; margin-left: 6px; color: var(--soft); font-family: var(--sans); }
.auth-panel {
  display: flex;
  align-items: center;
  padding: 72px 80px;
  background: rgba(244, 249, 247, 0.78);
  backdrop-filter: blur(16px);
}
.card { width: min(360px, 100%); }
.card h2 { font-family: var(--serif); font-size: 36px; font-weight: 600; margin: 0 0 8px; }
.auth .primary { width: 100%; min-height: 48px; margin-top: 8px; }
.auth .textlink {
  display: block;
  margin-top: 22px;
  color: var(--soft);
  letter-spacing: 0.04em;
}
.auth .textlink:hover { color: var(--deep); }
.auth input:not([type="checkbox"]) {
  border: 0;
  border-bottom: 1px solid #b7c9c2;
  border-radius: 0;
  background: transparent;
  padding: 12px 0 10px;
}
.auth input:not([type="checkbox"]):focus { outline: none; border-bottom-color: var(--copper); }
.auth .check a { color: var(--water); }
.muted { color: var(--soft); margin: 0 0 18px; }
label { display: block; margin: 12px 0 4px; font-size: 13px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 10px 12px;
}
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0; font-size: 13px; }
.check input { width: auto; margin-top: 3px; }
.primary, .ghost, .danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.primary {
  background: var(--deep);
  color: #f4f8f6;
}
.primary:hover { background: #14574f; }
.primary:active { transform: translateY(1px); }
.ghost {
  color: var(--deep);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.ghost:hover { color: var(--water); box-shadow: inset 0 0 0 1px var(--water); }
.danger {
  min-height: 32px;
  padding: 0 10px;
  color: var(--bad);
  background: transparent;
  box-shadow: inset 0 -1px 0 #e3c1c1;
}
.danger:hover { background: #f8eeee; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.error { color: var(--bad); min-height: 1.4em; font-size: 13px; }
.legal { max-width: 760px; margin: 0 auto; padding: 40px 20px 64px; }
.legal h1 { font-family: var(--serif); }
.legal pre {
  white-space: pre-wrap;
  font-family: var(--sans);
  background: white;
  border-left: 6px solid var(--water);
  padding: 20px;
}

.shell { height: 100%; min-height: 0; display: grid; grid-template-rows: auto 1fr; }
.top {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 56px;
  padding: 0 18px;
  background: linear-gradient(90deg, rgba(7, 28, 32, 0.92), rgba(14, 72, 74, 0.88));
  color: #e7f2ee;
  position: relative;
  box-shadow: inset 0 -2px 0 transparent;
}
.top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7ee0d2, #f0d48a, #7ee0d2, transparent);
  background-size: 200% 100%;
  animation: sheen 8s linear infinite;
}
@keyframes sheen {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
.brand {
  font-family: var(--serif);
  font-size: 17px;
  text-align: left;
  padding: 0;
  color: #f4f8f6;
  white-space: nowrap;
}
.nav { display: flex; gap: 2px; align-items: center; margin-left: 8px; min-width: 0; }
.nav button {
  padding: 6px 12px;
  border-radius: 8px;
  color: #c5d9d3;
  background: transparent;
  white-space: nowrap;
}
.nav button:hover { color: white; background: rgba(255, 255, 255, 0.06); }
.nav button[aria-current="page"] { color: white; background: rgba(255, 255, 255, 0.12); }
.account { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.account #logout { color: #d5e4df; padding: 6px 10px; border-radius: 8px; }
.account #logout:hover { color: white; background: rgba(255, 255, 255, 0.06); }
.frame { min-height: 0; display: grid; grid-template-columns: 1fr; }
.frame.with-history { grid-template-columns: 248px 1fr; }
.side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--line);
  padding: 12px;
}
.newchat {
  text-align: center;
  margin: 2px 2px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--deep);
  color: #f4f8f6;
  letter-spacing: 0.08em;
}
.newchat::before { content: "+ "; }
.newchat:hover { background: #155c5a; }
#conv { flex: 1; overflow: auto; min-height: 0; }
.side button.item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side button.item[aria-current="true"] { background: var(--mist); color: var(--ink); }
.lamp { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #b7cfc8; white-space: nowrap; }
.lamp::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8aa39c; }
.lamp.on { color: #d7efe4; }
.lamp.on::before { background: #7dcea0; }
.main { min-height: 0; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(236, 246, 243, 0.42), rgba(226, 240, 236, 0.62)); overflow: hidden; }
input:disabled { background: var(--mist); color: var(--soft); }
.thread { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.msgs {
  flex: 1;
  overflow: auto;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.welcome { margin: auto 0; padding: 8px 0 12px; }
.welcome-head {
  padding: 28px 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0d3a3c, #155c5a 60%, #2c7468);
  color: #f4f8f6;
  position: relative;
  overflow: hidden;
}
.welcome-head::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 212, 138, 0.45), transparent 70%);
}
.welcome-head h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.4; position: relative; }
.welcome-head p { margin: 0; max-width: 36em; color: #d5e8e2; font-size: 15px; line-height: 1.75; position: relative; }
.prompts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.prompt {
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.prompt:hover { border-color: #9cc9bd; box-shadow: 0 8px 24px rgba(13, 58, 60, 0.08); transform: translateY(-1px); }
.prompt span { display: block; margin-bottom: 4px; color: var(--copper); font-size: 12px; letter-spacing: 0.16em; }
.welcome-note { margin: 14px 2px 0; color: var(--soft); font-size: 13px; }
.bubble { max-width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; }
.bubble.user {
  align-self: flex-end;
  max-width: 34em;
  background: var(--mist);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 12px;
  white-space: pre-wrap;
}
.bubble.assistant { white-space: normal; }
.bubble.assistant > :first-child { margin-top: 0; }
.bubble.assistant p { margin: 0 0 0.65em; }
.bubble.assistant p:last-child { margin-bottom: 0; }
.bubble.assistant h1, .bubble.assistant h2, .bubble.assistant h3, .bubble.assistant h4 {
  font-family: var(--serif);
  font-size: 1.05em;
  line-height: 1.4;
  margin: 0.75em 0 0.3em;
}
.bubble.assistant ul, .bubble.assistant ol { margin: 0.2em 0 0.7em; padding-left: 1.25em; }
.bubble.assistant li { margin: 0.15em 0; }
.bubble.assistant code { font-family: var(--mono); font-size: 0.88em; background: white; padding: 0 0.25em; }
.bubble.assistant pre { background: var(--deep); color: #f3f7f5; padding: 10px 12px; overflow: auto; margin: 0.4em 0 0.7em; }
.bubble.assistant pre code { background: transparent; color: inherit; padding: 0; }
.bubble.assistant blockquote { margin: 0.4em 0 0.7em; padding-left: 10px; border-left: 2px solid var(--copper); color: var(--soft); }
.bubble.assistant hr { border: 0; border-top: 1px solid var(--line); margin: 0.8em 0; }
.bubble.assistant table { border-collapse: collapse; width: 100%; margin: 0.4em 0 0.8em; font-size: 0.95em; }
.bubble.assistant th, .bubble.assistant td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; vertical-align: top; background: white; }
.bubble.assistant th { background: var(--mist); }
.wait { color: var(--soft); }
.caret { display: inline-block; width: 0.45em; border-left: 2px solid var(--copper); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.composer {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto 6px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 8px 8px 16px;
  box-shadow: 0 10px 30px rgba(13, 58, 60, 0.08);
}
.composer:focus-within { border-color: #9cc9bd; }
.composer-hint { width: min(760px, calc(100% - 40px)); margin: 0 auto 14px; text-align: center; color: var(--soft); font-size: 12px; }
.composer textarea {
  border: 0;
  min-height: 44px;
  max-height: 160px;
  resize: none;
  padding: 8px 0;
  background: transparent;
  border-radius: 0;
}
.composer textarea:focus { outline: none; }
.composer .primary { min-width: 72px; min-height: 36px; flex: none; box-shadow: none; border-radius: 10px; }
.feed article, .calc-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 4px;
}
.main > .work, .main > .panel { flex: 1; min-height: 0; }
.work { min-height: 0; display: grid; grid-template-columns: 248px 1fr; }
.catalog {
  min-height: 0;
  overflow: auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--line);
  padding: 14px 10px 24px;
}
.workspace {
  min-height: 0;
  overflow: auto;
  padding: 28px 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.workspace > .block, .workspace > .banner { width: min(720px, 100%); }
.eyebrow { margin: 0 0 4px; color: var(--water); font-size: 12px; letter-spacing: 0.16em; }
.workspace h1 { margin: 0 0 6px; font-size: 28px; }
.tool-label { margin: 14px 10px 4px; color: var(--soft); font-size: 12px; }
.tool {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--soft);
}
.tool:hover { background: var(--mist); color: var(--ink); }
.tool[aria-current="true"] { background: var(--mist); color: var(--ink); box-shadow: inset 3px 0 0 var(--copper); }
.panel { padding: 32px 24px 56px; overflow: auto; }
.panel h1, .workspace h1 { font-family: var(--serif); font-weight: 600; }
.column { width: min(680px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.column.wide { width: min(920px, 100%); }
.column > h1 { margin: 4px 0 0; }
.block {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px 16px;
}
.block h2 { font-family: var(--serif); font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.block > p:last-child, .block > .muted:last-child { margin-bottom: 0; }
.fields { display: flex; flex-direction: column; }
.fields > label:first-child { margin-top: 0; }
.fields .row { margin-top: 12px; }
#list { display: flex; flex-direction: column; gap: 12px; }
#list .calc-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.reply { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.reply select, .reply input { width: auto; flex: 1; }
.calc-item.row { justify-content: space-between; border-bottom: 0; padding: 8px 0; }
.calc-item.row span { min-width: 0; }
.block .calc-item.row + .calc-item.row { border-top: 1px solid var(--line); }
.thread .banner { width: min(760px, calc(100% - 40px)); margin: 12px auto 0; }
.banner {
  background: #fff4ea;
  border: 1px solid #f0d2bc;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.status { font-size: 13px; color: var(--copper); }
.log {
  display: grid;
  grid-template-columns: 168px 128px 88px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.path { font-family: var(--mono); font-size: 12px; }
.tag-block { color: var(--bad); }
.tag-pass { color: var(--ok); }
#filters button[aria-current="page"] { box-shadow: inset 3px 0 0 var(--copper); }
@media (max-width: 980px) {
  .auth { height: auto; grid-template-columns: 1fr; }
  .auth-story { padding: 40px 24px 32px; }
  .auth-story h1 { font-size: 36px; }
  .auth-panel { padding: 40px 24px 64px; }
  .frame.with-history { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); max-height: 40vh; }
  .top { height: auto; min-height: 56px; flex-wrap: wrap; padding: 8px 14px; }
  .nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; }
  .work { grid-template-columns: 1fr; }
  .catalog { border-right: 0; border-bottom: 1px solid var(--line); max-height: 38vh; }
  .log { grid-template-columns: 1fr; }
}
body[data-page="home"] .g1 { top: 76%; }
body[data-page="home"] .g2 { top: 82%; }
body[data-page="home"] .g3 { top: 88%; }
.home { height: 100%; overflow: auto; color: #f4f8f6; }
.home-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 7vw 0;
}
.home-brand {
  color: #d5e4df;
  text-decoration: none;
  letter-spacing: 0.18em;
  font-size: 13px;
}
.home-nav { display: flex; align-items: center; gap: 18px; }
.home-nav > a:not(.home-go) { color: #d5e4df; text-decoration: none; }
.home-nav > a:not(.home-go):hover { color: white; }
a.home-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--copper);
  color: #fffaf4;
  text-decoration: none;
  letter-spacing: 0.22em;
}
a.home-go:hover { background: #a85624; }
.home-hero {
  min-height: calc(100% - 72px);
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 48px;
  padding: 28px 7vw 64px;
}
.home-copy h1 {
  margin: 14px 0 18px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(46px, 6vw, 84px);
  line-height: 1.08;
  letter-spacing: 0.04em;
}
.home-lead { margin: 0 0 28px; max-width: 28em; font-size: 18px; line-height: 1.75; color: #d7ebe4; }
.board {
  justify-self: end;
  width: min(420px, 100%);
  padding: 22px 22px 18px;
  border-radius: 28px;
  background: rgba(7, 24, 28, 0.46);
  border: 1px solid rgba(231, 246, 242, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}
.board-note {
  margin: 0;
  color: #d5e4df;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.gauges { display: flex; justify-content: space-between; gap: 12px; margin: 28px 0 22px; }
.gauge { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; flex: 1; }
.gauge figcaption { letter-spacing: 0.2em; color: #f4f8f6; }
.tube {
  width: 34px;
  height: 132px;
  border-radius: 17px;
  border: 1px solid rgba(126, 224, 210, 0.7);
  position: relative;
  overflow: hidden;
  background: rgba(8, 40, 44, 0.65);
}
.tube i {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 72%;
  border-radius: 14px;
  background: linear-gradient(#b7f6ea, #147a78);
  animation: tide 3.6s ease-in-out infinite;
}
.fan {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1px solid rgba(231, 246, 242, 0.45);
  position: relative;
  background: radial-gradient(circle, rgba(231, 246, 242, 0.16), transparent 62%);
}
.fan b, .fan i {
  position: absolute;
  left: 50%;
  top: 50%;
}
.fan b {
  width: 14px;
  height: 52px;
  margin: -52px 0 0 -7px;
  border-radius: 8px;
  background: linear-gradient(#f4f8f6, rgba(244, 248, 246, 0.05));
  transform-origin: 50% 100%;
  animation: spin 2.8s linear infinite;
}
.fan b:nth-child(2) { animation-delay: -0.93s; }
.fan b:nth-child(3) { animation-delay: -1.86s; }
.fan i {
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #f0d48a;
}
.dial {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 50% 58%, transparent 0 46px, rgba(240, 212, 138, 0.16) 47px 60px, transparent 61px),
    conic-gradient(from 210deg, rgba(240, 212, 138, 0.05), rgba(240, 212, 138, 0.85), rgba(240, 212, 138, 0.05));
  box-shadow: inset 0 0 0 1px rgba(240, 212, 138, 0.55);
}
.needle {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2px;
  height: 46px;
  margin-left: -1px;
  background: #f0d48a;
  transform-origin: 50% 100%;
  animation: sweep 4.8s ease-in-out infinite;
}
@keyframes tide {
  0%, 100% { height: 74%; }
  50% { height: 28%; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes sweep {
  0%, 100% { transform: rotate(-48deg); }
  50% { transform: rotate(52deg); }
}
.home-sheet {
  background: rgba(243, 247, 245, 0.96);
  color: var(--ink);
  border-radius: 32px 32px 0 0;
  padding: 56px 7vw 48px;
}
.home-block + .home-block { margin-top: 72px; }
.home-sheet h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}
.home-manifesto {
  margin: 0;
  max-width: 19em;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--deep);
}
.places { display: flex; flex-direction: column; }
.places article {
  display: grid;
  grid-template-columns: 12em 1fr;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.places h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}
.places p { margin: 0; color: var(--soft); font-size: 17px; line-height: 1.7; }
.home-eyebrow { margin: 0; color: #e9b98f; font-size: 14px; letter-spacing: 0.16em; }
.board-case { padding-top: 18px; border-top: 1px solid rgba(231, 246, 242, 0.18); }
.board-case span { color: #a9c7bf; font-size: 12px; letter-spacing: 0.2em; }
.board-case strong {
  display: block;
  margin: 6px 0 6px;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  color: #fff;
}
.board-case small { margin-left: 8px; font-size: 14px; font-weight: 400; color: #d5e4df; }
.board-case p { margin: 0; color: #d5e4df; font-size: 13px; line-height: 1.6; }
.home-sub { margin: 14px 0 0; max-width: 36em; color: var(--soft); font-size: 17px; line-height: 1.75; }
.pillars, .chain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillars article, .chain article {
  padding: 26px 24px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
}
.pillars h3, .chain h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--deep); }
.pillars p, .chain p { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.7; }
.chain { margin-top: 18px; }
.chain b { display: block; margin-bottom: 14px; color: var(--copper); font-size: 13px; letter-spacing: 0.2em; }
.home-sheet h2 + .places { margin-top: 18px; }
.home-sub + .places { margin-top: 22px; }
.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 40px;
  border-radius: 24px;
  background: var(--deep);
}
.home-cta p { margin: 0; font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); color: #f4f8f6; }
.home-stance p {
  margin: 12px 0 0;
  max-width: 40em;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.75;
}
.home-foot { display: flex; gap: 18px; margin-top: 48px; font-size: 13px; }
.home-foot a { color: var(--soft); }
@media (max-width: 860px) {
  .home-hero, .places article { grid-template-columns: 1fr; }
  .places article { gap: 8px; }
  .pillars, .chain, .prompts { grid-template-columns: 1fr; }
  .home-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .home-hero { min-height: 0; padding-top: 36px; }
  .board { justify-self: stretch; }
  .home-copy h1 { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .sun, .caustic, .gust, .wave, .top::after, .tube i, .fan b, .needle { animation: none; }
}
