/* abso.team — the identity of Absolute (C:\dev\Absolute\docs\brand.md): ink,
   paper, Unbounded for headings, Onest for text, the pin in place of the «o» -
   with AbsoTeam's own colour, «Коралл», where AbsoLive has volt. The accent
   carries only ink text. Two themes: the system's light and dark.
   Every file is this site's own - no request leaves the origin. */

/* ------------------------------------------------------------------ fonts */

@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/unbounded-cyrillic-700-normal.fdc2a84527.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/unbounded-latin-700-normal.477fa23002.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/unbounded-cyrillic-800-normal.a535053f07.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/unbounded-latin-800-normal.fe6d4ea7ed.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 900; font-display: swap; src: url(/assets/fonts/unbounded-cyrillic-900-normal.47cf6520d0.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 900; font-display: swap; src: url(/assets/fonts/unbounded-latin-900-normal.d84ca6bdf9.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/onest-cyrillic-400-normal.51adb4c8c5.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/onest-latin-400-normal.93dfb945d2.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/onest-cyrillic-500-normal.a345dcbda6.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/onest-latin-500-normal.83c1e16166.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/onest-cyrillic-600-normal.73984d20ad.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/onest-latin-600-normal.a56e6d2dcc.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/onest-cyrillic-700-normal.0fcb8fa256.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/onest-latin-700-normal.d48e1aee80.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ----------------------------------------------------------------- tokens */

:root {
  --ink: #0b0c0f;
  --ink-2: #15171c;
  --ink-3: #1f232b;
  --volt: #d4ff3a;
  --volt-600: #bdeb1c;
  /* AbsoTeam's own colour, «Коралл» - a reef is a colony built together
     (sisters each have one: Мята, Шафран, Румянец...).
     A fill under ink text and an accent on ink - never text on light. Volt stays
     only where it means Absolute itself: the strip, the centres. */
  --accent: #ff8a66;
  --accent-600: #f5703f;
  --accent-rgb: 255, 138, 102;
  --flame: #ff4f1f;
  --light: #f5f4ee;

  --paper: #f5f4ee;
  --card: #ffffff;
  --fg: #0b0c0f;
  --muted: rgba(11, 12, 15, 0.66);
  --line: rgba(11, 12, 15, 0.12);
  --line-strong: rgba(11, 12, 15, 0.28);

  --wm-pin: var(--ink);
  --wm-accent: var(--accent);

  --display: 'Unbounded', system-ui, sans-serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 24px;
  --r-sm: 14px;
  --wrap: 1200px;
  --gut: 16px;
  --shadow: 0 10px 30px -12px rgba(11, 12, 15, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e0f12;
    --card: #17191e;
    --fg: #f2f1ea;
    --muted: rgba(242, 241, 234, 0.68);
    --line: rgba(242, 241, 234, 0.13);
    --line-strong: rgba(242, 241, 234, 0.32);
    --wm-pin: var(--accent);
    --wm-accent: var(--ink);
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  }
}

@media (min-width: 640px) {
  :root { --gut: 24px; }
}
@media (min-width: 1024px) {
  :root { --gut: 32px; }
}

/* ------------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 1024px) { body { font-size: 1.0625rem; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------- type */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 0.72rem/1.2 var(--display); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); box-shadow: inset 0 0 0 1px rgba(11, 12, 15, 0.15); }
.band .eyebrow, .eyebrow-band { color: rgba(245, 244, 238, 0.7); }

.h1 {
  font: 900 clamp(2rem, 6.4vw, 4.6rem)/1.04 var(--display);
  letter-spacing: -0.035em;
}
.h2 { font: 800 clamp(1.6rem, 3.8vw, 2.9rem)/1.08 var(--display); letter-spacing: -0.03em; }
.h3 { font: 700 1.12rem/1.3 var(--display); letter-spacing: -0.01em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46rem; }
.band .lead { color: rgba(245, 244, 238, 0.74); }

.mark {
  background: var(--accent); color: var(--ink);
  padding: 0 0.16em; margin: 0 -0.04em; border-radius: 0.14em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.num {
  display: inline-grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--ink); color: var(--accent);
  font: 900 1.05rem/1 var(--display); letter-spacing: -0.02em;
}
.num-sm { width: 40px; height: 40px; border-radius: 11px; font-size: 0.85rem; }
.band .num { background: var(--accent); color: var(--ink); }
@media (prefers-color-scheme: dark) { .num { background: var(--accent); color: var(--ink); } }

.arr { display: inline-block; transition: transform 0.2s ease; }
a:hover .arr, button:hover .arr { transform: translateX(3px); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font: 800 0.82rem/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.72rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-600); }
.btn-ink { background: var(--ink); color: var(--light); }
@media (prefers-color-scheme: dark) { .btn-ink { background: var(--accent); color: var(--ink); } }
.btn-ghost, .btn-line { border-color: rgba(245, 244, 238, 0.4); color: var(--light); background: transparent; }
.btn-ghost:hover, .btn-line:hover { border-color: var(--light); }
.form .btn-line { border-color: var(--line-strong); color: var(--fg); }
.form .btn-line:hover { border-color: var(--fg); }

/* ------------------------------------------------------------ strip, header */

.strip { background: var(--volt); color: var(--ink); font: 600 0.78rem/1.2 var(--sans); }
.strip-in { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.strip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip a { text-decoration: none; font-weight: 700; white-space: nowrap; }
.strip a:hover { text-decoration: underline; }

.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 15, 0.94); color: var(--light);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(245, 244, 238, 0.08);
  --wm-pin: var(--accent); --wm-accent: var(--ink);
}
.top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { text-decoration: none; margin-right: auto; display: inline-flex; padding: 6px 0; }
.nav { display: none; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 999px; font: 600 0.92rem/1 var(--sans); text-decoration: none; color: rgba(245, 244, 238, 0.82); }
.nav a:hover { color: var(--light); background: rgba(245, 244, 238, 0.08); }
.top-cta { display: none; }
.nav .nav-cta { display: none; }
.menu { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(245, 244, 238, 0.08); cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--light); transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ''; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu[aria-expanded='true'] .menu-bars { background: transparent; }
.menu[aria-expanded='true'] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu[aria-expanded='true'] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 959px) {
  .nav.is-open {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); padding: 8px var(--gut) 20px; border-bottom: 1px solid rgba(245, 244, 238, 0.12);
  }
  .nav.is-open a { padding: 14px 4px; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid rgba(245, 244, 238, 0.08); }
  .nav.is-open .nav-cta { display: inline-flex; margin-top: 16px; padding: 0 24px; border: 0; border-radius: 999px; color: var(--ink); font: 800 0.82rem/1 var(--display); }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .top-cta { display: inline-flex; }
  .menu { display: none; }
}

/* --------------------------------------------------------------- wordmark */

.wordmark {
  display: inline-flex; align-items: center; white-space: nowrap;
  font: 900 1.3rem/1 var(--display); letter-spacing: -0.04em;
  transform: skewX(-10deg);
}
.wm-pin { height: 1em; width: auto; margin: 0 0.02em; flex: none; }
.wm-tail { display: inline-flex; }
.wm-swap { display: inline-grid; position: relative; }
.wm-word { grid-area: 1 / 1; display: inline-flex; }
.wm-word .ch { display: inline-block; transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.26s ease; transition-delay: calc(var(--i, 0) * 45ms); }
.wm-word:not(.is-on) .ch { opacity: 0; transform: translateX(-0.45em); }
.wm-word.is-leaving .ch { opacity: 0; transform: translateX(0.7em); }
.wm-swap::before {
  content: ''; position: absolute; right: 100%; top: 18%; bottom: 18%; width: 0.9em; margin-right: 0.85em;
  background: repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 6px);
  opacity: 0; transform: scaleX(0); transform-origin: right; transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.wm-swap.is-running::before { opacity: 0.45; transform: scaleX(1); }

/* ------------------------------------------------------------------- bands */

.band { position: relative; background: var(--ink); color: var(--light); overflow: hidden; --wm-pin: var(--accent); --wm-accent: var(--ink); }
.band + .band { border-top: 1px solid rgba(245, 244, 238, 0.08); }
@media (prefers-color-scheme: dark) {
  .band { border-top: 1px solid rgba(245, 244, 238, 0.08); border-bottom: 1px solid rgba(245, 244, 238, 0.08); }
}
.dots {
  position: absolute; top: 0; bottom: 0; right: 0; width: 46%; pointer-events: none;
  background-image: radial-gradient(rgba(var(--accent-rgb), 0.55) 1.3px, transparent 1.7px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(to left, #000 20%, transparent 95%);
  mask-image: linear-gradient(to left, #000 20%, transparent 95%);
  opacity: 0.75;
}
.dots-left { right: auto; left: 0; -webkit-mask-image: linear-gradient(to right, #000 10%, transparent 80%); mask-image: linear-gradient(to right, #000 10%, transparent 80%); opacity: 0.35; }

/* -------------------------------------------------------------------- hero */

.hero { padding: 48px 0 0; }
.hero-in { position: relative; display: grid; gap: 40px; align-items: center; }
.hero-text { max-width: 640px; }
.hero .h1 { margin-top: 22px; }
.hero-lead { margin-top: 22px; font-size: 1.1rem; color: rgba(245, 244, 238, 0.78); max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 22px; font-size: 0.88rem; color: rgba(245, 244, 238, 0.56); }

.hero-art { position: relative; min-height: 380px; display: grid; place-items: center; }
.bib {
  position: relative; width: min(290px, 74vw); aspect-ratio: 1 / 1.06;
  background: var(--light); color: var(--ink); border-radius: 22px; border: 3px solid var(--ink);
  box-shadow: 0 0 0 3px var(--accent), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  padding: 24px 24px 20px; transform: rotate(-4deg);
  display: flex; flex-direction: column;
  animation: bob 6s ease-in-out infinite;
}
.bib-hole { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); opacity: 0.18; }
.bib-hole:nth-child(1) { top: 12px; left: 12px; }
.bib-hole:nth-child(2) { top: 12px; right: 12px; }
.bib-hole:nth-child(3) { bottom: 12px; left: 12px; }
.bib-hole:nth-child(4) { bottom: 12px; right: 12px; }
.bib-top { display: flex; justify-content: space-between; gap: 8px; font: 800 0.62rem/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; }
.bib-num { font: 900 clamp(4.8rem, 22vw, 6.6rem)/0.9 var(--display); letter-spacing: -0.06em; margin: 14px 0 auto; font-variant-numeric: tabular-nums; }
.bib-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 2px dotted rgba(11, 12, 15, 0.3); font-size: 0.82rem; }
.bib-row span { font: 700 0.6rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; width: 46px; flex: none; }
.bib-row b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 0.3s ease; }
.bib-mark { position: absolute; right: 22px; top: 48px; width: 30px; }
.bib-mark .bib-pin { width: 100%; height: auto; }
@keyframes bob { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-8px); } }

.floaters { position: absolute; inset: 0; pointer-events: none; }
.floaters li { position: absolute; opacity: 0; transform: translateY(10px) scale(0.96); transition: opacity 0.5s ease, transform 0.5s ease; }
.floaters li.is-shown { opacity: 1; transform: none; }
.floaters li[data-slot='0'] { top: 1%; right: 0; }
.floaters li[data-slot='1'] { top: 10.5%; left: 0; }
.floaters li[data-slot='2'] { bottom: 1%; left: 3%; }
.floaters li[data-slot='3'] { bottom: 10.5%; right: 0; }
.floaters a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px;
  background: rgba(21, 23, 28, 0.92); border: 1px solid rgba(245, 244, 238, 0.14); border-radius: 999px;
  color: var(--light); text-decoration: none; font-size: 0.82rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8);
}
.floaters i { width: 20px; height: 20px; border-radius: 7px; background: var(--c); flex: none; box-shadow: inset 0 0 0 1.5px rgba(245, 244, 238, 0.35); }
.floaters span { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.floaters small { color: rgba(245, 244, 238, 0.55); font-size: 0.74rem; font-weight: 500; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 48px; border-top: 1px solid rgba(245, 244, 238, 0.12); }
.facts li { padding: 22px 16px 26px 0; display: flex; flex-direction: column; gap: 6px; }
.facts b { font: 900 clamp(1.8rem, 4vw, 2.6rem)/1 var(--display); color: var(--accent); letter-spacing: -0.03em; }
.facts span { font-size: 0.86rem; color: rgba(245, 244, 238, 0.66); max-width: 15rem; }

@media (max-width: 639px) {
  .floaters li[data-slot='1'], .floaters li[data-slot='3'] { display: none; }
  .floaters li[data-slot='0'] { top: 0; right: 0; }
  .floaters li[data-slot='2'] { bottom: 0; left: 0; }
  .hero-art { min-height: 430px; }
}
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) {
  .hero { padding-top: 72px; }
  .hero-in { grid-template-columns: 1.15fr 0.85fr; }
  .hero-art { min-height: 540px; }
  .bib { margin-right: 10%; }
}

/* ------------------------------------------------------------------ ticker */

.ticker { background: var(--accent); color: var(--ink); overflow: hidden; border-bottom: 2px solid var(--ink); }
.ticker-track { display: flex; width: max-content; animation: run 90s linear infinite; }
.ticker-run { display: flex; align-items: center; gap: 18px; padding: 14px 9px; font: 800 0.8rem/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.ticker-pin { width: 14px; height: auto; }
@keyframes run { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- sections */

.sec { position: relative; padding: 72px 0; }
.sec-card { background: var(--card); }
@media (min-width: 960px) { .sec { padding: 104px 0; } }
.s-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; max-width: 760px; }
.s-head .h2 { margin-top: 2px; }
.link-accent { color: var(--accent); font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(var(--accent-rgb), 0.4); padding-bottom: 2px; }
.link-accent:hover { border-color: var(--accent); }

/* ---------------------------------------------------------------- projects */

.proj-grid { display: grid; gap: 16px; }
@media (min-width: 680px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .proj-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.proj {
  display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--line);
  border-radius: var(--r); overflow: hidden; transition: border-color 0.2s ease, transform 0.2s ease;
}
.proj:hover { border-color: var(--fg); transform: translateY(-2px); }
.proj-tile { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; background: var(--c); color: var(--ink); padding: 18px 20px; min-height: 96px; position: relative; }
.proj-tile::after {
  content: ''; position: absolute; right: 14px; bottom: 10px; width: 80px; height: 40px;
  background-image: radial-gradient(rgba(11, 12, 15, 0.3) 1.2px, transparent 1.5px); background-size: 10px 10px;
}
.proj-domain { font: 800 1.02rem/1.2 var(--display); letter-spacing: -0.02em; }
.proj-status { flex: none; background: var(--ink); color: var(--light); font: 700 0.62rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }
.proj-dark .proj-tile { background: var(--ink); color: var(--volt); }
.proj-dark .proj-tile::after { background-image: radial-gradient(rgba(212, 255, 58, 0.45) 1.2px, transparent 1.5px); }
.proj-dark .proj-status { background: var(--volt); color: var(--ink); }
@media (prefers-color-scheme: dark) { .proj-dark .proj-tile { box-shadow: inset 0 -1px 0 rgba(245, 244, 238, 0.12); } }
.proj-body { padding: 20px 20px 8px; flex: 1; }
.proj-name { font: 800 1.35rem/1.15 var(--display); letter-spacing: -0.02em; }
.proj-tag { margin-top: 6px; font-weight: 700; }
.proj-text { margin-top: 10px; color: var(--muted); font-size: 0.96rem; }
.proj-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px 20px; }
.proj-site { font-size: 0.9rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.proj-site:hover { color: var(--fg); }

.more { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; color: var(--muted); font-size: 0.95rem; }
.more ul { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.more li { display: inline-flex; align-items: center; gap: 8px; }
.more i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); }
.more b { color: var(--fg); }
.more-link { margin-left: auto; font-weight: 700; color: var(--fg); text-decoration: none; }

/* --------------------------------------------------------------------- why */

.why-grid { display: grid; gap: 14px; }
@media (min-width: 680px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.why { padding: 24px; border-radius: var(--r); background: var(--paper); border: 2px solid transparent; }
.why-dot { display: block; width: 34px; height: 34px; border-radius: 10px; background: var(--c); margin-bottom: 18px; position: relative; }
.why-dot::after { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: var(--ink); }
.why h3 { font: 700 1.08rem/1.3 var(--display); letter-spacing: -0.01em; }
.why p { margin-top: 10px; color: var(--muted); font-size: 0.97rem; }

/* -------------------------------------------------------------- principles */

.pr-grid { display: grid; gap: 14px; counter-reset: pr; }
@media (min-width: 860px) { .pr-grid { grid-template-columns: 1fr 1fr; gap: 16px 28px; } }
.pr { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid rgba(245, 244, 238, 0.12); }
.pr h3 { font: 700 1.1rem/1.3 var(--display); }
.pr p { margin-top: 8px; color: rgba(245, 244, 238, 0.72); font-size: 0.97rem; }

.notfor {
  margin-top: 40px; display: grid; gap: 20px; padding: 28px; border-radius: var(--r);
  background: rgba(245, 244, 238, 0.05); border: 1px solid rgba(245, 244, 238, 0.14);
}
.notfor p { margin-top: 8px; color: rgba(245, 244, 238, 0.66); }
.notfor ul { display: grid; gap: 12px; }
.notfor li { position: relative; padding-left: 30px; color: rgba(245, 244, 238, 0.88); }
.notfor li::before { content: '×'; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgba(245, 244, 238, 0.45); color: var(--light); font: 900 0.9rem/20px var(--display); text-align: center; }
@media (min-width: 860px) { .notfor { grid-template-columns: 0.8fr 1.2fr; padding: 36px; } }

/* -------------------------------------------------------------------- ways */

.way-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .way-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .way-grid { grid-template-columns: repeat(4, 1fr); } }
.way { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r); background: var(--card); border: 2px solid var(--line); transition: border-color 0.2s ease; }
.way:hover { border-color: var(--fg); }
.way h3 { margin-top: 8px; font: 700 1.08rem/1.25 var(--display); }
.way p { color: var(--muted); font-size: 0.95rem; }
.way .way-meta { margin-top: auto; padding-top: 8px; font: 700 0.66rem/1.3 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg); opacity: 0.7; }
.way a { font-weight: 700; text-decoration: none; }
.way a:hover { text-decoration: underline; }
.way-out { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.way-out .num { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px var(--fg); }
.way-ask { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.way-ask p { color: rgba(11, 12, 15, 0.74); }
.way-ask h3 { margin-top: 0; font-size: 1.25rem; }
.way-ask .btn { align-self: flex-start; margin-top: auto; background: var(--ink); color: var(--light); }
.way-ask:hover { border-color: var(--ink); }

/* ------------------------------------------------------------------- roles */

.filters { display: grid; gap: 12px; margin-bottom: 28px; }
.frow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flabel { font: 700 0.66rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); width: 100%; }
@media (min-width: 760px) { .flabel { width: 84px; } }
.fchip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px 0 12px;
  border-radius: 999px; border: 2px solid var(--line); background: var(--card); cursor: pointer;
  font: 600 0.9rem/1 var(--sans); transition: border-color 0.15s ease, background 0.15s ease;
}
.fchip:hover { border-color: var(--fg); }
.fchip i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(11, 12, 15, 0.2); }
.fchip small { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.fchip[aria-pressed='true'] { background: var(--ink); color: var(--light); border-color: var(--ink); }
.fchip[aria-pressed='true'] small { color: rgba(245, 244, 238, 0.6); }
@media (prefers-color-scheme: dark) {
  .fchip i { box-shadow: inset 0 0 0 1.5px rgba(245, 244, 238, 0.4); }
  .fchip[aria-pressed='true'] { background: var(--accent); color: var(--ink); border-color: var(--accent); }
  .fchip[aria-pressed='true'] small { color: rgba(11, 12, 15, 0.6); }
}
.fcount { font-weight: 700; color: var(--muted); font-size: 0.92rem; }

.role-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .role-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .role-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.role {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--r);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.role:hover { border-color: var(--fg); transform: translateY(-2px); }
.role[hidden] { display: none; }
.role-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font: 700 0.62rem/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.chip-project { background: var(--c); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(11, 12, 15, 0.1); }
.chip-dark { color: var(--volt); box-shadow: inset 0 0 0 1.5px rgba(212, 255, 58, 0.35); }
.chip-project i { display: none; }
.chip-format { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.band .chip-format { color: var(--light); box-shadow: inset 0 0 0 1.5px rgba(245, 244, 238, 0.35); }
.role-title { font: 800 1.18rem/1.22 var(--display); letter-spacing: -0.02em; }
.role-title a { text-decoration: none; }
.role-title a::after { content: ''; position: absolute; inset: 0; border-radius: var(--r); }
.role-sum { color: var(--muted); font-size: 0.95rem; }
.role-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 6px; font-size: 0.86rem; font-weight: 600; }
.role-meta span { display: inline-flex; align-items: center; gap: 6px; }
.role-meta span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--fg); opacity: 0.5; }
.role-more { font-weight: 700; font-size: 0.9rem; }
.role:hover .role-more .arr { transform: translateX(3px); }
.role-own { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.role-own .role-sum { color: rgba(11, 12, 15, 0.72); }
.role-own:hover { border-color: var(--ink); }
.role-own .btn { align-self: flex-start; margin-top: auto; background: var(--ink); color: var(--light); }
.btn-outline { border-color: var(--fg); color: var(--fg); background: transparent; }
.show-all { display: none; margin-top: 18px; width: 100%; }
@media (max-width: 719px) {
  .role-grid.is-collapsed .role.is-extra { display: none; }
  .role-grid.is-collapsed + .show-all { display: inline-flex; }
}
.empty { margin-top: 20px; padding: 20px; border-radius: var(--r); border: 2px dashed var(--line-strong); color: var(--muted); }

/* ------------------------------------------------------------------- steps */

.steps { display: grid; gap: 14px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; padding: 22px; border-radius: var(--r); background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.step h3 { margin-top: 6px; font: 800 1.12rem/1.2 var(--display); }
.step p { color: var(--muted); font-size: 0.94rem; }
.step-time { align-self: flex-start; font: 700 0.62rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; background: var(--accent); color: var(--ink); padding: 6px 9px; border-radius: 999px; }
@media (min-width: 1080px) {
  .step:not(:last-child)::after { content: ''; position: absolute; top: 47px; right: -14px; width: 14px; height: 2px; background: var(--line-strong); }
}

/* ------------------------------------------------------------------- apply */

.apply-in { position: relative; display: grid; gap: 32px; }
@media (min-width: 1000px) { .apply-in { grid-template-columns: 1.6fr 0.9fr; gap: 48px; align-items: start; } }
.form { background: var(--card); color: var(--fg); border-radius: var(--r); padding: 22px; display: grid; gap: 16px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .form { padding: 32px; } }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field > span { font: 700 0.68rem/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.field em { color: var(--flame); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 2px solid var(--line); background: var(--paper); font-size: 1rem; line-height: 1.4;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--fg); background: var(--card); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.55); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--flame); }
.form-error { color: #c8380f; font-weight: 700; }
@media (prefers-color-scheme: dark) { .form-error { color: var(--flame); } }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-note { font-size: 0.84rem; color: var(--muted); }

.apply-side { display: grid; gap: 12px; }
.apply-side .h3 { margin-bottom: 4px; }
@media (min-width: 1000px) { .apply-side { padding-top: 200px; } }
.direct {
  display: grid; gap: 4px; padding: 20px; border-radius: var(--r); text-decoration: none;
  border: 2px solid rgba(245, 244, 238, 0.18); transition: border-color 0.15s ease, background 0.15s ease;
}
.direct:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.06); }
.direct span { font: 700 0.64rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245, 244, 238, 0.6); }
.direct b { font: 800 1.12rem/1.3 var(--display); word-break: break-all; }
.direct small { color: rgba(245, 244, 238, 0.66); font-size: 0.9rem; font-weight: 600; }
.side-note { color: rgba(245, 244, 238, 0.62); font-size: 0.9rem; }

/* --------------------------------------------------------------------- faq */

.faq-in { display: grid; gap: 8px; }
@media (min-width: 1000px) { .faq-in { grid-template-columns: 0.8fr 1.2fr; gap: 48px; } }
.qa { border-bottom: 2px solid var(--line); }
.qa:first-child { border-top: 2px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font: 700 1.04rem/1.35 var(--display); letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); transition: background 0.2s ease, transform 0.2s ease; }
.qa summary i::before, .qa summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; }
.qa summary i::after { transform: rotate(90deg); transition: transform 0.2s ease; }
.qa[open] summary i { background: var(--accent); color: var(--ink); box-shadow: none; }
.qa[open] summary i::after { transform: rotate(0); }
.qa p { padding: 0 48px 22px 0; color: var(--muted); }

/* ------------------------------------------------------------------ footer */

.foot { background: var(--ink); color: var(--light); padding: 56px 0 28px; --wm-pin: var(--accent); --wm-accent: var(--ink); }
@media (prefers-color-scheme: dark) { .foot { border-top: 1px solid rgba(245, 244, 238, 0.08); } }
.f-top { display: grid; gap: 36px; }
@media (min-width: 900px) { .f-top { grid-template-columns: 1fr 1.6fr; } }
.f-brand .wordmark { font-size: 2rem; }
.f-motto { margin-top: 14px; color: rgba(245, 244, 238, 0.66); max-width: 22rem; }
.f-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.f-col h3 { font: 700 0.66rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245, 244, 238, 0.5); margin-bottom: 12px; }
.f-col li + li { margin-top: 8px; }
.f-col a { text-decoration: none; color: rgba(245, 244, 238, 0.86); font-weight: 500; }
.f-col a:hover { color: var(--accent); }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(245, 244, 238, 0.12); font-size: 0.84rem; color: rgba(245, 244, 238, 0.5); }

/* --------------------------------------------------------------- role page */

.role-hero { padding: 40px 0 56px; }
.role-hero .wrap { position: relative; }
.back { display: inline-block; margin-bottom: 22px; color: rgba(245, 244, 238, 0.7); text-decoration: none; font-weight: 600; }
.back:hover { color: var(--accent); }
.h1-role { margin-top: 18px; font-size: clamp(1.9rem, 5vw, 3.6rem); max-width: 900px; }
.role-hero .hero-lead { max-width: 44rem; }
.role-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .role-layout { grid-template-columns: 1fr 360px; gap: 64px; align-items: start; } }
.role-body { max-width: 700px; }
.role-body .h3 { margin: 36px 0 14px; font-size: 1.3rem; }
.role-body .h3:first-child { margin-top: 0; }
.role-about { font-size: 1.1rem; }
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: var(--accent); }
.ticks li::after { content: ''; position: absolute; left: 7px; top: 7px; width: 8px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.role-side { display: grid; gap: 16px; }
@media (min-width: 960px) { .role-side { position: sticky; top: 92px; } }
.terms { padding: 24px; border-radius: var(--r); background: var(--card); border: 2px solid var(--fg); display: grid; gap: 16px; }
.terms dl { display: grid; gap: 12px; }
.terms dl div { display: grid; gap: 3px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.terms dt { font: 700 0.62rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.terms dd { font-weight: 600; }
.side-proj { padding: 22px; border-radius: var(--r); background: var(--c); color: var(--ink); display: grid; gap: 8px; }
.side-proj b { font: 800 1.15rem/1.2 var(--display); }
.side-proj p { font-size: 0.92rem; color: rgba(11, 12, 15, 0.76); }
.side-proj a { font-weight: 700; text-decoration: none; }
.side-proj.proj-dark { background: var(--ink); color: var(--light); border: 1px solid rgba(245, 244, 238, 0.14); }
.side-proj.proj-dark p { color: rgba(245, 244, 238, 0.7); }
.side-proj.proj-dark a { color: var(--volt); }
.nf { padding: 80px 0 100px; }
.nf .h1 { margin-top: 18px; }

/* ------------------------------------------------------------------ motion */

.rise { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-lead.rise { animation-delay: 0.1s; }
.hero-cta.rise { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker-track { transform: none; }
}

@media print {
  .strip, .top, .ticker, .hero-art, .dots, .foot, .form-actions { display: none !important; }
  .band { background: none; color: #000; }
}
