@font-face {
  font-family: "Tin Editorial";
  src: url("assets/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --stage: #111818;
  --raised: #192322;
  --ink: #dce5df;
  --dim: #afbeb5;
  --copper: #e9ad86;
  --sage: #b5cbbd;
  --line: #384641;
  --display: "Tin Editorial", Georgia, serif;
  --tin-wordmark-accent: var(--copper);
  color-scheme: dark;
  font: 16px/1.55 var(--tin-sans);
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--stage); color: var(--ink); }
[hidden] { display: none !important; }
::selection { background: var(--copper); color: var(--stage); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
p { margin: 0 0 18px; }
h1, h2, h3 { margin: 0; letter-spacing: 0; }
h2, .explorer-copy h3 { font-family: var(--display); font-weight: 400; line-height: .99; color: var(--copper); text-wrap: balance; }
h2 { font-size: 70px; }
.wrap { width: min(1360px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; inset: 12px auto auto 12px; z-index: 100; padding: 10px 14px; background: var(--copper); color: var(--stage); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { height: 80px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 10; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand img { width: 32px; height: 32px; }
.brand strong { font-size: 26px; }
.brand > span { font-size: 12px; color: var(--dim); }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 14px; color: var(--dim); }
.site-header nav > a:not(.nav-enter) { display: flex; align-items: center; min-height: 44px; }
.site-header nav > a:hover { color: var(--copper); }
.nav-enter, .button { display: inline-flex; align-items: center; gap: 18px; min-height: 46px; padding: 10px 15px; border-radius: var(--tin-edge); font-weight: 620; }
.nav-enter { color: var(--copper); border: 1px solid #976f56; }
.nav-enter:hover { background: #2b2821; }
.primary { background: var(--copper); color: var(--stage); }
.primary:hover { background: #f5c4a4; }
.menu-button { display: none; }
.icon { width: 17px; height: 17px; display: inline-block; vertical-align: middle; flex: none; }
.arrow-right { transform: rotate(90deg); }
.arrow-down { transform: rotate(180deg); }

.hero { position: relative; isolation: isolate; overflow: hidden; height: calc(100svh - 220px); min-height: 570px; max-height: 820px; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-art { height: 100%; object-fit: contain; }
#tin-scene { position: absolute; inset: 0; z-index: 0; }
#tin-scene canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; outline-offset: -6px; }
#tin-scene[data-dragging] canvas { cursor: grabbing; }
.hero-content { position: relative; z-index: 2; padding-top: 48px; pointer-events: none; }
.hero-content > * { width: fit-content; max-width: 100%; pointer-events: auto; }
.hero h1 { font: 400 166px/.82 var(--display); color: var(--copper); }
.hero h1 span { color: var(--sage); }
.hero-statement { font: 400 44px/1.04 var(--display); color: var(--sage); margin: 30px 0 18px; }
.hero-description { max-width: 39ch; color: var(--dim); font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 26px; }
.plain-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-size: 14px; }
.plain-link:hover, .story-link:hover, .footer-top a:hover { color: var(--copper); }
.plain-link small { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.hero-foot { position: absolute; inset: auto 0 20px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.assembly-caption { color: var(--dim); font-size: 12px; }
.hero-controls { display: flex; align-items: center; gap: 7px; pointer-events: auto; }
.motion-control, .scene-reset, .assembly-switch { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--tin-edge); background: var(--raised); }
.motion-control:hover, .scene-reset:hover, .assembly-switch:hover { border-color: var(--sage); }
.assembly-switch { padding: 0 12px; font-size: 13px; }
.scene-reset svg { width: 17px; height: 17px; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.section-heading p { margin: 0; max-width: 36ch; color: var(--dim); }
.memory-section, .connections { padding-block: 76px; }
.memory-layout, .explorer-panel, .faq { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 64px; align-items: start; }
.memory-layout, .connections > .wrap { border-top: 1px solid var(--line); padding-top: 44px; }
.memory-copy h2 { margin-bottom: 22px; }
.memory-copy > p { max-width: 40ch; color: var(--dim); }
.memory-copy .memory-caveat { color: var(--sage); font-size: 14px; }
.memory-demo { min-width: 0; }
.memory-records { position: relative; min-height: 230px; margin: 8px 22px 26px 4px; }
.memory-paper { position: absolute; inset: 0 0 20px; padding: 24px 28px; border-radius: 3px; }
.memory-paper-back { background: #526e60; color: #f1f6ed; transform: translate(15px,18px) rotate(2deg); }
.memory-paper-mid { background: #a6b7a7; color: #23312b; transform: translate(8px,10px) rotate(-2deg); }
.memory-paper-front { background: #dce5d7; color: #18271f; transform: rotate(-1deg); box-shadow: 0 12px 22px #0004; transition: opacity 180ms ease; }
.memory-paper .paper-label { display: block; margin-bottom: 14px; font-size: 13px; color: #3c5648; }
.memory-paper strong { display: block; font: 400 37px/.99 var(--display); margin-bottom: 14px; }
.memory-paper p { margin: 0; font-size: 14px; }
.memory-demo[data-mode=without] .memory-paper-front { opacity: .65; }
.memory-modes { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.memory-modes button { min-height: 46px; padding: 8px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--dim); text-align: left; font-size: 14px; }
.memory-modes button[aria-pressed=true] { color: var(--copper); border-color: var(--copper); }
.memory-question, .memory-example { color: var(--dim); font-size: 13px; }
.memory-question { margin-bottom: 6px; }
.memory-answer { min-height: 76px; max-width: 35ch; font: 400 29px/1.12 var(--display); color: var(--sage); margin-bottom: 10px; }
.story-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.workspace { border-top: 1px solid var(--line); padding-block: 54px 86px; }
.explorer-tabs { display: flex; flex-wrap: wrap; gap: 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.explorer-tabs button { min-height: 48px; padding: 10px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--dim); font-size: 14px; text-align: left; }
.explorer-tabs button[aria-selected=true] { color: var(--copper); border-color: var(--copper); }
.explorer-tabs button:hover { color: var(--ink); }
:is(.explorer-tabs, .memory-modes) { position: relative; isolation: isolate; }
:is(.explorer-tabs, .memory-modes) > button { position: relative; z-index: 1; padding-inline: 12px; }
:is(.explorer-tabs, .memory-modes)[data-indicator="ready"] > button { border-bottom-color: transparent; }
.landing-selection-marker {
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid color-mix(in srgb, var(--copper) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--copper) 11%, transparent);
  pointer-events: none;
  transform-origin: top left;
}
.explorer-copy h3 { font-size: 42px; margin-bottom: 16px; }
.explorer-copy > p, .explorer-copy dd { color: var(--dim); max-width: 44ch; }
.explorer-copy dl { margin: 20px 0; }
.explorer-copy dl > div { margin-bottom: 12px; }
.explorer-copy dt { font-weight: 650; }
.explorer-copy dd { margin: 3px 0 0; font-size: 14px; }
.explorer-copy .requirement { border-left: 1px solid var(--copper); padding-left: 12px; font-size: 13px; }
.product-image { min-width: 0; margin: 0; }
.product-image img { border: 1px solid var(--line); border-radius: var(--tin-edge); }
.product-image figcaption { margin-top: 12px; font-size: 13px; color: var(--dim); }
.inspect-capture { display: block; cursor: zoom-in; }
.workflow-illustration { background: var(--raised); min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--tin-edge); color: var(--ink); }
.illustration-caption, .illustration-end, .workflow-line, .studio-steps span, .connection-node span { color: var(--dim); font-size: 14px; }
.illustration-end { margin: 20px 0 0; }
.project-file { border-block: 1px solid var(--line); padding-block: 18px; }
.project-file strong, .connection-node strong { display: block; font: 400 36px/1.04 var(--display); color: var(--sage); margin: 6px 0 10px; }
.project-file p, .connection-node p { margin: 0; }
.workflow-line { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.studio-steps { padding-left: 20px; margin-bottom: 0; }
.studio-steps li { border-top: 1px solid var(--line); padding: 10px 0; }
.studio-steps li strong { display: block; color: var(--sage); }
.connection-path { height: 28px; width: 1px; margin: 10px 0 10px 12px; background: var(--copper); }
.connections { padding-top: 0; }
.connection-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 34px; }
.connection-columns article { border-top: 1px solid var(--line); padding-top: 18px; }
.connection-columns h3 { color: var(--sage); font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.connection-columns p { color: var(--dim); margin: 0; max-width: 39ch; }
.faq { border-block: 1px solid var(--line); padding-block: 44px 56px; }
.faq-list { min-width: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 13px 0; cursor: pointer; color: var(--ink); }
.faq summary::marker { color: var(--copper); }
.faq details p { color: var(--dim); font-size: 15px; }
.closing { padding-block: 64px; }
.closing h2 { margin-bottom: 24px; }
.access-note { margin: 14px 0 0; color: var(--dim); font-size: 13px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 24px 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; color: var(--dim); }
.footer-top p { margin: 0; font-size: 14px; }
.footer-top > div { display: flex; gap: 16px; font-size: 14px; }
.footer-top > div a { display: inline-flex; align-items: center; min-height: 44px; }
.capture-dialog { width: min(1220px,96vw); max-height: 94svh; padding: 0; border: 1px solid var(--line); border-radius: var(--tin-edge); background: var(--raised); color: var(--ink); }
.capture-dialog::backdrop { background: #080d0bd9; }
.capture-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; }
.capture-dialog button { min-height: 44px; padding: 0 14px; background: var(--stage); border: 1px solid var(--line); border-radius: var(--tin-edge); }
.capture-dialog > div { overflow: auto; max-height: calc(94svh - 62px); }
.capture-dialog img { min-width: 720px; }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 72px); }
  h2 { font-size: 58px; }
  .hero h1 { font-size: 140px; }
  .hero-statement { font-size: 37px; }
  .hero-description { max-width: 34ch; }
  .memory-layout, .explorer-panel, .faq { gap: 32px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { height: 68px; }
  .menu-button { display: grid; align-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: transparent; border: 0; }
  .menu-button span { width: 22px; height: 1px; background: var(--ink); }
  .site-header nav { display: none; position: absolute; inset: 60px 0 auto; padding: 10px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--tin-edge); }
  .site-header nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
  .site-header nav a { padding-inline: 10px; }
  .site-header nav .nav-enter { justify-content: space-between; }
  .hero { min-height: 620px; height: calc(100svh - 175px); }
  .hero-content { padding-top: 30px; }
  .hero h1 { font-size: 108px; }
  .hero-statement { font-size: 34px; margin: 17px 0 12px; }
  .hero-description { font-size: 14px; line-height: 1.55; max-width: 38ch; }
  .hero-actions { margin-top: 16px; gap: 10px 16px; }
  .hero-foot { bottom: 14px; }
  .plain-link, .nav-enter, .button { font-size: 13px; }
  h2 { font-size: 48px; }
  .memory-section, .connections { padding-block: 44px; }
  .connections { padding-top: 0; }
  .memory-layout, .connections > .wrap, .workspace, .faq { padding-top: 27px; }
  .memory-layout, .explorer-panel, .faq, .connection-columns { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .section-heading { display: block; margin-bottom: 20px; }
  .section-heading p { margin-top: 12px; }
  .workspace { padding-bottom: 50px; }
  .explorer-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px; margin-bottom: 24px; }
  .explorer-copy h3 { font-size: 36px; }
  .closing { padding-block: 45px; }
}
@media (max-height: 780px) and (max-width: 760px) {
  .hero { min-height: 510px; }
  .hero-content { padding-top: 21px; }
  .hero h1 { font-size: 88px; }
  .hero-statement { font-size: 29px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  h2 { font-size: 42px; }
  .hero-actions { gap: 8px 12px; }
  .plain-link { gap: 6px; }
  .button { gap: 9px; padding-inline: 11px; }
  .memory-paper { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
html[data-motion=off] { scroll-behavior: auto; }
html[data-motion=off] .memory-paper-front { transition: none; }
