:root {
  --steel: #d7dce2;
  --steel-deep: #b8c0c8;
  --paper: #eef1f4;
  --ink: #22282d;
  --mute: #5a6168;
  --line: #7c858e;
  --brass: #c3922e;
  --brass-deep: #8a6420;
  --nav: #1e2a30;
  --plate: #c5cbd2;
  --warm: #efe8d8;
  --shadow: 0 18px 40px rgba(30, 42, 48, 0.12);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(195, 146, 46, 0.12), transparent 55%),
    linear-gradient(180deg, #e4e8ec 0%, var(--steel) 36%, #dce0d6 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
img, svg { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
}
.skip-link:focus {
  left: 12px;
  z-index: 40;
  background: #fff;
  padding: 8px 12px;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: #1e2a30;
  color: #efe8d8;
}
.intro.is-out {
  animation: introOut 0.7s ease forwards;
  pointer-events: none;
}
.intro.is-gone { display: none; }
.intro-stage { width: min(880px, 92vw); text-align: center; }
.intro-wash {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.intro-plate {
  background: #2a3338;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.intro-svg { width: 100%; height: auto; }
.intro-auk { transform-origin: 130px 138px; animation: punch 1.4s ease both; }
.intro-slide { animation: jaw 2.4s 0.8s ease both; }
.intro-word { opacity: 0; animation: engrave 1.2s 2.6s ease forwards; }
.intro-caption {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  opacity: 0;
  animation: engrave 1s 3.4s ease forwards;
}
.skip {
  position: absolute;
  right: 20px;
  top: 20px;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #efe8d8;
  color: var(--nav);
  cursor: pointer;
}

@keyframes punch { from { transform: scale(0.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes jaw { from { x: 430px; } to { x: 310px; } }
@keyframes engrave { from { opacity: 0; letter-spacing: 0.18em; } to { opacity: 1; letter-spacing: 0; } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

.nav {
  position: sticky;
  top: 14px;
  z-index: 10;
  margin: 14px auto 0;
  width: min(1120px, calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  background: var(--nav);
  color: #f4f6f7;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; }
.brand img { width: 28px; height: 28px; filter: invert(1) sepia(1) saturate(4) hue-rotate(6deg); }
.nav nav { display: flex; gap: 18px; font-size: 14px; }
.nav nav a { text-decoration: none; opacity: 0.85; }
.nav nav a:hover { opacity: 1; }
.nav-cta, .btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-cta { background: var(--brass); color: #1e2a30; font-weight: 600; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.brass { background: var(--brass); color: #1e2a30; font-weight: 600; }

.bench { padding: 36px 20px 64px; }
.bench-frame {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  background: var(--paper);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.bench-title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  font-weight: 560;
}
.search-label, .note-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
#search, #note {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}
.hint { color: var(--mute); font-size: 13px; }
.symbol-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: 6px;
}
.symbol-list button {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}
.symbol-list button:hover,
.symbol-list button.is-on {
  border-color: var(--brass);
  background: var(--warm);
}
.symbol-list strong { display: block; }
.symbol-list span { color: var(--mute); font-size: 12px; }

.plate-wrap { min-width: 0; }
.object-still {
  margin: 0 0 14px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(30, 42, 48, 0.08);
}
.object-still img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: 50% 55%;
}
.object-still figcaption,
.field-art figcaption {
  color: var(--mute);
  font-size: 13px;
  padding: 8px 12px 10px;
}
.field-art img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.plate-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pill {
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--nav);
  color: #f4f6f7;
  font-size: 12px;
  font-family: var(--mono);
}
.pill.muted { background: #e4e8ec; color: var(--ink); }
.plate {
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #cfd5db;
  box-shadow: inset 0 0 0 1px rgba(90, 100, 108, 0.25);
}
.scale-tick { cursor: pointer; }
.scale-tick:hover rect { fill: #c3922e; }
.plate-controls {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}
.pin-card, .note-card {
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(30, 42, 48, 0.06);
}
.pin-big { margin: 0; font-family: var(--serif); font-size: 2rem; }
.pin-sub, .count { color: var(--mute); font-size: 13px; }
.actions { display: grid; gap: 8px; }

.field {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.field h2, .method h2, .kit h2 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 16px;
}
.field-art {
  margin: 0;
  background: #fff;
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.field-art figcaption { color: var(--mute); font-size: 13px; padding: 8px 4px 0; }
.text-link {
  color: var(--brass-deep);
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.method { width: min(1100px, calc(100% - 32px)); margin: 0 auto 72px; }
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.steps li {
  background: var(--paper);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.steps .n { font-family: var(--mono); color: var(--brass-deep); }
.steps h3 { font-family: var(--serif); margin: 8px 0; }

.kit {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto 80px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background: var(--nav);
  color: #f4f6f7;
  border-radius: 28px;
  padding: 28px;
}
.foot {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto 40px;
  color: var(--mute);
  font-size: 14px;
}

.soon {
  position: fixed;
  inset: 0;
  background: rgba(30, 42, 48, 0.46);
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 20px;
}
.soon[hidden] { display: none; }
.soon-card {
  width: min(460px, 100%);
  background: var(--warm);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .nav { border-radius: 20px; flex-wrap: wrap; }
  .nav nav { width: 100%; justify-content: space-between; }
  .bench-frame, .field, .steps, .plate-controls, .kit { grid-template-columns: 1fr; display: grid; }
  .plate-controls { grid-template-columns: 1fr; }
  .kit { display: grid; }
  .object-still img { height: 160px; }
}

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