/* Obelisk Point: the brand kit's palette and type. Minimal and quiet, inspired by the menus of
   NieR:Automata (thin lines, square markers, a sliding selection bar), with no asset of the game.
   Sharp corners, 1 px lines, no shadows or gradients. Text contrast at least WCAG AA. */

@font-face { font-family: "Plex Sans"; src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/IBMPlexSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --sand: #d9d4bd;        /* ground */
  --ivory: #ece8d6;       /* light ground, logo on dark */
  --panel: #e5e0ca;       /* panels */
  --ink: #3f3b33;         /* text, lines, logo */
  --ink-soft: #5c574b;    /* secondary text */
  --line: #8b8574;        /* rules */
  --line-soft: #b9b39e;   /* dividers */
  --rust: #8f3426;        /* warnings or a single detail, never the logo */
  --texture: rgba(63, 59, 51, 0.045);
  --font: "Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Consolas", monospace;
  --fast: 140ms;
  --wrap: 1200px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; background-color: var(--sand); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55;
  background-image:
    repeating-linear-gradient(0deg, var(--texture) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(90deg, var(--texture) 0 1px, transparent 1px 6px);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--rust); }
:focus-visible { outline: 1px dashed var(--ink); outline-offset: 3px; }
.mono { font-family: var(--mono); }
main { flex: 1; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--ivory); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

.code { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--ink-soft); text-transform: uppercase; }
.marker { width: 9px; height: 9px; border: 1px solid currentColor; flex: none; display: inline-block; }
.sq { width: 8px; height: 8px; background: currentColor; display: inline-block; flex: none; }
.cursor { display: inline-block; margin-left: 0.08em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.rule { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.muted { color: var(--ink-soft); }

/* ------------------------------------------------------------------ header */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-size: 17px; font-weight: 500; letter-spacing: 0.28em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.nav-list { position: relative; display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.select-bar {
  position: absolute; top: 0; left: 0; height: 44px; width: 0; background: var(--ink); opacity: 0; pointer-events: none; z-index: 0;
  transition: left var(--fast) ease-out, width var(--fast) ease-out, opacity var(--fast);
}
.nav-item {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px;
  text-decoration: none; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
  transition: color var(--fast);
}
.nav-item:hover { color: var(--ink); }
.nav-item[aria-current="page"] .marker { background: currentColor; }
.nav-item.under-bar, .nav-item.under-bar:hover { color: var(--ivory); }
.tools { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; border: 1px solid var(--ink); }
.lang-switch a { display: flex; align-items: center; height: 32px; padding: 0 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-decoration: none; color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--ivory); }
.lang-switch a:not([aria-current="true"]):hover { background: var(--ivory); }
.sound-toggle, .music-toggle, .menu-toggle {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--ink); background: transparent;
  color: var(--ink); font: inherit; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
}
.sound-toggle[aria-pressed="true"] .marker, .music-toggle[aria-pressed="true"] .marker { background: currentColor; }
.sound-toggle:hover, .music-toggle:hover, .menu-toggle:hover { background: var(--ivory); }
.menu-toggle { display: none; height: 44px; }
.menu-toggle[aria-expanded="true"] .marker { background: currentColor; }

/* ------------------------------------------------------------------ type and buttons */
h1 { margin: 14px 0 0; font-size: clamp(28px, 3.6vw, 40px); font-weight: 500; letter-spacing: 0.14em; line-height: 1.15; text-transform: uppercase; }
.slogan { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 14px; }
.narrow { max-width: 60ch; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border: 1px solid var(--ink);
  text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
  background: transparent; transition: background var(--fast), color var(--fast);
}
.btn:hover { background: var(--ivory); color: var(--ink); }
.btn-solid { background: var(--ink); color: var(--ivory); }
.btn-solid:hover { background: var(--ivory); color: var(--ink); }
.btn-disabled { border-style: dashed; border-color: var(--line); color: var(--ink-soft); cursor: default; }
.btn-disabled:hover { background: transparent; color: var(--ink-soft); }
.btn.email { letter-spacing: 0.08em; text-transform: none; font-family: var(--mono); font-weight: 400; font-size: 15px; }
.cta-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ home (about): one screen, nothing below */
.intro { min-height: calc(100vh - 69px - 64px); display: flex; align-items: center; padding: 48px 0; }
.intro-inner { width: 100%; }
.intro-mark { color: var(--ink); }
.intro-name { font-size: clamp(34px, 6vw, 64px); letter-spacing: 0.28em; margin-top: 26px; }
.intro-rule { max-width: 560px; margin-bottom: 30px; }
.intro-text { max-width: 54ch; font-size: 18px; line-height: 1.6; margin: 0 0 10px; }

/* ------------------------------------------------------------------ inner pages */
.page-hero { padding: 64px 0 0; }
.section { padding: 28px 0 56px; }
.two-col, .three-col { display: grid; gap: 40px; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.item { border-top: 1px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; }
.item h2 { margin: 10px 0 10px; font-size: 16px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.item p { margin: 0; color: var(--ink-soft); max-width: 46ch; }
.item .cta-row { margin-top: auto; padding-top: 22px; }

.product { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; border: 1px solid var(--line); background: var(--panel); padding: 28px 32px; max-width: 860px; }
.product-mark { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; border-right: 1px solid var(--line-soft); }
.product-name { margin: 0; font-size: 34px; font-weight: 500; letter-spacing: 0.3em; }
.product-full { margin: 6px 0 18px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.product-text { margin: 0 0 16px; color: var(--ink-soft); max-width: 56ch; }
.specs { margin: 0; border-top: 1px solid var(--line-soft); }
.spec { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.spec dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); padding-top: 2px; }
.spec dd { margin: 0; }
.contact-specs { max-width: 620px; }
.contacts { padding-top: 0; }
.section-head { display: flex; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-soft); }
.list li { display: flex; gap: 10px; align-items: baseline; }
.list .sq { transform: translateY(-1px); }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--ink); color: var(--ivory); }
.footer-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; font-size: 13px; font-weight: 500; letter-spacing: 0.28em; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; letter-spacing: 0.1em; color: #d9d4bd; }
.footer-links a { color: var(--ivory); }
.footer-links a:hover { color: #d9d4bd; }
.notfound { min-height: 100vh; display: flex; align-items: center; }
.notfound .btn { margin: 8px 8px 0 0; }

/* ------------------------------------------------------------------ motion */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 420ms ease-out, transform 420ms ease-out; }
.reveal.shown { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .select-bar, .nav-item, .btn { transition: none; }
}

/* ------------------------------------------------------------------ narrow screens */
@media (max-width: 980px) {
  .three-col { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) {
  :root { --gutter: 16px; }
  .menu-toggle { display: flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; gap: 12px; }
  .site-nav.open { display: flex; }
  .nav-list { flex-direction: column; }
  .select-bar { display: none; }
  .nav-item[aria-current="page"] { background: var(--ink); color: var(--ivory); }
  .tools { justify-content: space-between; }
  .header-row { position: relative; min-height: 60px; }
  .brand-name { font-size: 14px; letter-spacing: 0.22em; }
  .two-col { grid-template-columns: 1fr; }
  .page-hero { padding: 40px 0 0; }
  .intro { min-height: calc(100vh - 61px - 90px); }
  .product { grid-template-columns: 1fr; padding: 22px 20px; gap: 18px; }
  .product-mark { flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line-soft); padding-bottom: 14px; }
  .product-name { font-size: 28px; }
  .spec { grid-template-columns: 1fr; gap: 2px; }
}
