/* Ashiba Research: open space, plain type, and a structure in progress. */
@font-face { font-family: "Archivo"; src: url("/fonts/Archivo.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ground-a: #6e1418; --ground-b: #9a1d22;
  --sheet: #f7f3ef; --panel: #ffffff; --ink: #1a1a1a; --ink-2: #3d3b39; --muted: #625e5a; --soft: #8a847e; --faint: #b3ada7;
  --rule: #e3ddd7; --red: #9e1b20; --seal: #b8242b;
  --sans: "Archivo", ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .61, .16, 1);
  --gutter-l: max(32px, env(safe-area-inset-left, 0px));
  --gutter-r: max(32px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ground-a: #1d0809; --ground-b: #3a0f12;
  --sheet: #18171a; --panel: #201f22; --ink: #ecebe7; --ink-2: #c9c6c0; --muted: #a29f99; --soft: #807d78; --faint: #57555a;
  --rule: #2f2d31; --red: #f08a85; --seal: #b8242b; color-scheme: dark; } }
:root[data-theme="dark"] {
  --ground-a: #1d0809; --ground-b: #3a0f12;
  --sheet: #18171a; --panel: #201f22; --ink: #ecebe7; --ink-2: #c9c6c0; --muted: #a29f99; --soft: #807d78; --faint: #57555a;
  --rule: #2f2d31; --red: #f08a85; --seal: #b8242b; color-scheme: dark; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 300ms; animation-timing-function: var(--ease); }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--sheet); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  background: var(--sheet); min-height: 100svh; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--seal); color: #fff; }

.skip { position: absolute; left: var(--gutter-l); top: -100px; z-index: 50; background: var(--ink); color: var(--sheet); padding: 10px 14px; font: 500 14px/1 var(--sans); border-radius: 3px; }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main:focus { outline: none; }
[id] { scroll-margin-top: 100px; }

/* Shared page width. */
.bar, .frame { max-width: 1320px; margin-left: auto; margin-right: auto; background: var(--sheet); }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid var(--rule); }
.bar-in { height: 88px; display: flex; align-items: center; gap: 36px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.brand { display: block; width: 104px; flex: none; }
.brand img { display: block; width: 100%; height: auto; }
.brand .dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .light { display: none; } :root:not([data-theme="light"]) .brand .dark { display: block; } }
:root[data-theme="dark"] .brand .light { display: none; } :root[data-theme="dark"] .brand .dark { display: block; }
.menu { display: flex; align-items: center; gap: 32px; flex: 1; justify-content: flex-end; }
.menu a, .menu .soon { position: relative; font: 400 15px/1 var(--sans); color: var(--ink-2); padding: 28px 0; transition: color 200ms var(--ease); }
.menu a:hover { color: var(--red); }
.menu a[aria-current="page"] { color: var(--red); }
.menu a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); }
.menu .soon { color: var(--soft); cursor: default; }
.menu .soon em { font: normal 400 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-left: 2px; vertical-align: 2px; }
.menu .sep { width: 1px; height: 16px; background: var(--rule); }
.menu .push { margin-left: auto; }
.menu .mobile-cta { display: none; }
.bar-cta { flex: none; font: 500 14px/1 var(--sans); color: #fff; background: var(--seal); padding: 10px 16px; border-radius: 3px; transition: filter 200ms var(--ease); }
.bar-cta:hover { filter: brightness(.92); }
.burger { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 12px 0 12px 12px; cursor: pointer; align-items: center; gap: 10px; }
.burger .lines { width: 18px; height: 7px; position: relative; display: inline-block; }
.burger .lines::before, .burger .lines::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 300ms var(--ease), top 300ms var(--ease); }
.burger .lines::before { top: 0; } .burger .lines::after { top: 6px; }
.bar[data-open="true"] .burger .lines::before { top: 3px; transform: rotate(45deg); }
.bar[data-open="true"] .burger .lines::after { top: 3px; transform: rotate(-45deg); }

/* page body */
.frame { min-height: calc(100svh - 89px); display: grid; grid-template-rows: 1fr auto; padding: 0 var(--gutter-r) 28px var(--gutter-l); }

/* home */
.stage { display: flex; flex-direction: column; justify-content: center; padding-block: clamp(64px, 12vh, 140px) clamp(48px, 8vh, 96px); }
.kicker { font: 400 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
h2.kicker { font-weight: 400; }
#note:empty { display: none; }
.statement { margin: 0; font: 300 clamp(32px, 4.6vw, 54px)/1.1 var(--sans); letter-spacing: -.025em; color: var(--ink); text-wrap: balance; max-width: 13ch; }
.statement .soft { color: var(--soft); }
@media (min-width: 721px) { .statement { max-width: none; } .statement .soft { display: block; } }
.line { margin: 22px 0 0; max-width: 54ch; font: 400 17px/1.55 var(--serif); color: var(--ink-2); text-wrap: pretty; }

/* lists sit in white panels, like the SEP's boxes */
.index { list-style: none; margin: clamp(40px, 7vh, 72px) 0 0; padding: 4px 24px; background: var(--panel); border: 1px solid var(--rule); max-width: 680px; }
.index li + li { border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 18px 0; }
.row .n { font: 400 12px/1 var(--mono); color: var(--muted); }
.row .t { font: 300 clamp(20px, 2.1vw, 24px)/1.2 var(--sans); letter-spacing: -.015em; color: var(--ink); transition: color 200ms var(--ease); }
.row .m { font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.row .arrow { display: inline-block; width: 16px; height: 1px; background: currentColor; position: relative; transition: width 400ms var(--ease); }
.row .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
a.row:hover .t, a.row:focus-visible .t { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a.row:hover .m, a.row:focus-visible .m { color: var(--red); }
a.row:hover .arrow, a.row:focus-visible .arrow { width: 28px; }
.row.off .t, .row.off .m, .row.off .n { color: var(--soft); }
.dot { width: 5px; height: 5px; border: 1px solid currentColor; display: inline-block; }

/* inner pages: a sidebar box on the left, the entry on the right */
.sheet { padding-block: clamp(48px, 9vh, 96px) 72px; display: block; width: 100%; max-width: 780px; margin-inline: auto; }
.side { grid-column: 1; position: sticky; top: 100px; background: var(--panel); border: 1px solid var(--rule); padding: 16px 18px 12px; }
.side .kicker { margin-bottom: 10px; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li a { display: block; padding: 6px 0; font: 400 14px/1.35 var(--sans); color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.side li a:hover { text-decoration-thickness: 2px; }
.sheet > .body { min-width: 0; max-width: none; }
.sheet h1 { margin: 0; font: 300 clamp(32px, 4vw, 46px)/1.08 var(--sans); letter-spacing: -.025em; text-wrap: balance; }
.pub { margin: 14px 0 0; font: italic 400 15px/1.5 var(--serif); color: var(--muted); }
.sheet .line { margin-top: 20px; }
.sheet .index { max-width: none; }
.block { margin-top: clamp(44px, 7vh, 72px); scroll-margin-top: 100px; }
.block > .kicker { margin-bottom: 14px; }
.spec { list-style: none; margin: 0; padding: 4px 22px; background: var(--panel); border: 1px solid var(--rule); }
.qualify { max-width: 420px; }
.spec li { padding: 14px 0; }
.spec li + li { border-top: 1px solid var(--rule); }
.spec .n { font: 400 12px/1.7 var(--mono); color: var(--muted); }
.spec b { display: block; font: 500 16px/1.35 var(--sans); letter-spacing: -.01em; }
.spec span { display: block; color: var(--ink-2); font: 400 15.5px/1.5 var(--serif); margin-top: 2px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--rule); }
.steps div { padding: 16px 20px 18px; }
.steps div + div { border-left: 1px solid var(--rule); }
.steps .n { font: 400 11px/1 var(--mono); color: var(--muted); letter-spacing: .06em; }
.steps b { display: block; font: 500 16px/1.3 var(--sans); }
.steps span { display: block; font: 400 15px/1.45 var(--serif); color: var(--ink-2); margin-top: 4px; }
.cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; font: 500 14.5px/1 var(--sans); color: #fff; background: var(--seal); padding: 13px 18px; border-radius: 3px; transition: filter 200ms var(--ease); }
.cta:hover { filter: brightness(.92); }
.cta .arrow { display: inline-block; width: 14px; height: 1px; background: currentColor; position: relative; transition: width 300ms var(--ease); }
.cta .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.cta:hover .arrow { width: 22px; }
.fine { margin-top: 12px; font: italic 400 14px/1.5 var(--serif); color: var(--muted); }
.fine a { display: inline-block; padding: 5px 0; color: var(--red); text-decoration: underline; text-underline-offset: 3px; font-style: normal; font-family: var(--sans); }

.prose { font: 400 17px/1.65 var(--serif); color: var(--ink); }
.prose p { margin: 0 0 1.1em; max-width: 66ch; text-wrap: pretty; }
.prose h2 { font: 300 24px/1.25 var(--sans); letter-spacing: -.015em; color: var(--ink); margin: 1.8em 0 .5em; scroll-margin-top: 100px; }
.prose a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose p > a:only-child { display: inline-block; padding: 3px 0; }

/* footer */
.foot { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; border-top: 1px solid var(--rule); padding-top: 18px; font: 400 13px/1.4 var(--sans); color: var(--muted); }
.foot a { display: inline-block; padding: 6px 0; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.foot .motto { display: inline-flex; align-items: center; gap: 10px; font: italic 400 15px/1 var(--serif); color: var(--ink-2); }
.seal { width: 11px; height: 11px; background: var(--seal); display: inline-block; flex: none; border-radius: 1.5px; }

/* entrance: readable at every frame */
.rise { animation: rise 700ms var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes rise { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .row .arrow, .cta .arrow { transition: none; }
  @view-transition { navigation: none; }
}

@media (max-width: 1100px) { .bar, .frame { max-width: none; } }
@media (max-width: 860px) {
  .bar-in { gap: 16px; height: 64px; }
  .burger { display: inline-flex; }
  .bar-cta { display: none; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; height: calc(100svh - 64px - env(safe-area-inset-top, 0px)); flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sheet); padding: 8px var(--gutter-r) 32px var(--gutter-l); visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity 250ms var(--ease), transform 250ms var(--ease), visibility 250ms; overflow-y: auto; }
  .bar[data-open="true"] .menu { visibility: visible; opacity: 1; transform: none; }
  .menu a, .menu .soon { font-size: 24px; font-weight: 300; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .menu a[aria-current="page"]::after, .menu .sep { display: none; }
  .menu .push { margin-left: 0; }
  .menu .mobile-cta { display: block; }
  .frame { min-height: calc(100svh - 65px); }
  .sheet { grid-template-columns: 1fr; }
  .side { position: static; grid-column: 1; margin-bottom: 32px; }
  .sheet > .body { grid-column: 1; }
}
@media (max-width: 720px) {
  :root { --gutter-l: max(20px, env(safe-area-inset-left, 0px)); --gutter-r: max(20px, env(safe-area-inset-right, 0px)); }
  .brand { width: 92px; }
  .index { padding: 2px 16px; }
  .row { padding: 17px 0; }
  .row .m .label { display: none; }
  .spec { padding: 2px 16px; }
  .steps { grid-template-columns: 1fr; }
  .steps div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .foot { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* The homepage keeps the moving structure clear of the text. */
.home .stage { position: relative; isolation: isolate; min-height: max(670px, calc(100svh - 184px)); padding: 70px 0 78px; justify-content: flex-start; }
.growth { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.intro { width: fit-content; max-width: 100%; }
.home .statement { font-size: clamp(52px, 5.9vw, 80px); line-height: 1.01; letter-spacing: -.055em; font-weight: 350; max-width: 12ch; }
.purpose { margin: 26px 0 0; font: 400 18px/1.55 var(--sans); color: var(--muted); }
.routes { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; width: 100%; margin-top: auto; padding-top: 24px; background: var(--sheet); }
.routes.rise { animation: none; }
.route { flex: 1; min-width: 0; display: block; border-top: 1px solid var(--ink-2); padding: 16px 0 12px; background: var(--sheet); }
.route-title { display: flex; justify-content: space-between; gap: 16px; font: 400 23px/1.2 var(--sans); letter-spacing: -.025em; }
.route-title > span { color: var(--red); transition: transform 200ms var(--ease); }
.route-detail { display: block; margin-top: 10px; font: 400 14px/1.45 var(--sans); color: var(--muted); }
.route:hover .route-title { color: var(--red); }
.route:hover .route-title > span { transform: translate(2px, -2px); }
.motion-control { position: absolute; bottom: 19px; right: 0; display: inline-flex; align-items: center; gap: 9px; padding: 10px 8px; color: var(--muted); background: var(--sheet); border: 0; border-radius: 3px; font: 400 11px/1.2 var(--mono); cursor: pointer; }
.motion-control[hidden] { display: none; }
.motion-control:hover { color: var(--ink); }
.motion-icon { width: 12px; text-align: center; }
.home .foot { font-size: 12px; }
@media (min-width: 1500px) { .home .stage { min-height: min(850px, calc(100svh - 184px)); } }
@media (max-width: 1000px) and (min-width: 721px) {
  .home .statement { font-size: 62px; }
  .home .stage { min-height: 700px; }
  .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) { .menu { justify-content: flex-start; } }
@media (max-width: 720px) {
  .home .stage { min-height: 800px; padding-top: 52px; padding-bottom: 68px; }
  .home .statement { font-size: clamp(45px, 11.8vw, 72px); }
  .purpose { font-size: 15px; margin-top: 22px; }
  .growth { top: 268px; height: 330px; }
  .routes { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 430px; padding-top: 0; }
  .route-title { font-size: 21px; }
  .route-detail { font-size: 13px; }
  .home .foot { flex-direction: row; align-items: center; gap: 12px 24px; }
  .home .foot > span { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .route-title > span { transition: none; } }

/* Keep vertical page scrolling available while a finger moves the robot. */
.home .stage { touch-action: pan-y pinch-zoom; }
.worker-control { position: absolute; bottom: 19px; left: 0; padding: 10px 8px; border: 0; border-radius: 3px; background: var(--sheet); color: var(--muted); font: 400 11px/1.2 var(--mono); cursor: pointer; }
.worker-control[hidden], .touch-hint { display: none; }
.worker-control:hover { color: var(--ink); }
@media (hover: none) { .mouse-hint { display: none; } .touch-hint { display: inline; } }

/* Keep the controls below the foreground on wider screens. */
@media (min-width: 721px) {
  .home .worker-control, .home .motion-control { bottom: 1px; padding: 6px 8px; }
}
