/* chirouze.tech — "Stage & firmament"
   One accent on near-black. Change --acc to retint the whole site. */

:root {
  --acc: #FF2A1F;            /* alternatives: #D4F55A lime · #4B6BFF cobalt · #FFB454 amber */
  --bg: #050507;
  --bg-2: #07070A;
  --ink: #ECECF1;
  --ink-2: #C9C9D2;
  --mute: #9A9AA6;
  --line: rgba(236, 236, 241, 0.12);
  --line-2: rgba(236, 236, 241, 0.2);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
p { margin: 0; }
h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--acc); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
strong { font-weight: 500; color: #fff; }

.site { position: relative; z-index: 1; display: flex; align-items: stretch; min-height: 100vh; overflow-x: clip; }

/* the field: one fixed canvas behind the whole page, drawn by main.js */
.field { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.main { flex: 1 1 0; min-width: 0; padding: 0 40px 0 24px; }

/* ---------- vertical nav (Roman) ----------
   Each link is a fixed box; the label inside is ordinary horizontal text turned
   on its side with a transform, so every browser lays the rail out the same.
   The rail is backed so the field fades out under the labels. */
.vnav {
  position: sticky; top: 0; align-self: flex-start;
  height: 100vh; width: 56px; flex: none; z-index: 5;
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 0 0 14px;
  background: linear-gradient(90deg, var(--bg) 60%, rgba(5, 5, 7, 0));
}
.vlink {
  position: relative; flex: none; width: 30px; height: 84px;
  color: var(--mute);
  transition: color 0.25s, background-color 0.25s;
}
.vlink span {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}
.vlink:hover { color: var(--ink); }
.vlink.on, .vlink.on:hover { background: var(--acc); color: var(--bg); }

/* ---------- top bar ---------- */
.topbar { display: flex; justify-content: flex-end; align-items: center; padding: 14px 0 8px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid rgba(236, 236, 241, 0.22);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em;
  transition: border-color 0.25s, color 0.25s, background-color 0.25s, transform 0.25s;
}
.pill:hover { border-color: var(--acc); transform: translateY(-2px); }
.pill.solid, .pill.solid:hover { background: var(--acc); border-color: var(--acc); color: var(--bg); }
.pill-sm { min-height: 36px; padding: 0 16px; font-size: 11.5px; color: var(--mute); }

/* ---------- hero ---------- */
.hero { display: flex; flex-direction: column; padding-top: 12px; }

/* room in the hero for the field to show through */
.sky { height: clamp(200px, 28vh, 340px); }

/* the name */
.name {
  margin: -0.42em 0 0; position: relative; z-index: 2;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(64px, 10.4vw, 150px); line-height: 0.9; letter-spacing: 0.005em;
  text-transform: uppercase; color: var(--acc);
}
.word { display: inline-block; white-space: nowrap; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; vertical-align: bottom; }
.ltr {
  display: inline-block;
  animation: rise 0.9s var(--ease) both;
  transition: transform 0.35s var(--ease);
}
.ltr.cap { color: var(--ink); }
.ltr:hover { transform: translateY(-6%) skewX(-6deg); }

.lede-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 56px; padding: 36px 0 56px; }
.lede-col { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.lede {
  font-weight: 200; font-size: clamp(28px, 3.3vw, 46px); line-height: 1.18; letter-spacing: -0.01em;
  max-width: 760px; text-wrap: pretty;
}
.lede strong { font-weight: 400; color: inherit; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.meta {
  flex: 1 1 260px; margin: 0; padding-top: 10px;
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px 16px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; line-height: 1.5;
}
.meta dt { color: var(--mute); text-transform: uppercase; letter-spacing: 0.14em; font-size: 10.5px; }
.meta dd { margin: 0; }
.meta .dim { color: var(--ink-2); }

.nets {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute);
}
.nets-t { color: var(--ink); }
.hflow {
  width: 48px; height: 1px; background-size: 16px 1px;
  background-image: repeating-linear-gradient(90deg, var(--acc) 0 8px, transparent 8px 16px);
  animation: hflow 1s linear infinite;
}

/* ---------- sections ---------- */
.sec { padding: 72px 0; display: flex; flex-direction: column; gap: 28px; }
.sec-about { padding-top: 96px; gap: 40px; }
.sec-head { display: flex; flex-direction: column; gap: 14px; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); }
.h-big { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 7vw, 96px); line-height: 0.95; text-transform: uppercase; letter-spacing: 0.01em; }
.h-mono { font-family: var(--mono); font-weight: 400; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.h-huge { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 12vw, 170px); line-height: 0.9; text-transform: uppercase; letter-spacing: 0.01em; color: var(--acc); }

/* about */
.about-copy { max-width: 820px; display: flex; flex-direction: column; gap: 22px; }
.about-lead { font-weight: 300; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.4; text-wrap: pretty; }
.about-p { font-size: 17px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.about-p strong { color: var(--ink); }
.about-s { font-size: 15px; line-height: 1.6; color: var(--mute); text-wrap: pretty; }

/* steps (Roman's hover timeline) */
.steps { margin-top: 24px; display: flex; gap: 16px; border-top: 1px solid var(--line-2); }
.step {
  position: relative; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: 8px; padding: 22px 16px 0 0;
  opacity: 0.55; transition: opacity 0.35s;
}
.step:hover, .step:focus-within { opacity: 1; }
.dot { position: absolute; left: 0; top: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--mute); transition: background-color 0.35s, transform 0.35s; }
.step:hover .dot { background: var(--acc); transform: scale(1.5); }
.yr { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--mute); transition: color 0.35s; }
.step:hover .yr { color: var(--acc); }
.step-t { font-family: var(--display); font-size: 30px; line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; }
.step-p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* work list (Roman's giant lines) */
.work { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.wk {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px;
  padding: 14px 0; border-top: 1px solid var(--line); cursor: default;
}
.wt {
  font-family: var(--display); font-size: clamp(44px, 7.5vw, 108px); line-height: 0.95; letter-spacing: 0.01em;
  text-transform: uppercase; color: var(--ink);
  transition: color 0.3s, letter-spacing 0.4s var(--ease), transform 0.4s var(--ease);
}
.wm {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute);
  opacity: 0.55; transform: translateX(-10px);
  transition: opacity 0.35s, transform 0.35s, color 0.35s;
}
.wk:hover .wt { color: var(--acc); letter-spacing: 0.04em; transform: translateX(10px); }
.wk:hover .wm { opacity: 1; transform: none; color: var(--ink); }

/* entries (Firmament's shape) */
.entry { display: flex; flex-direction: column; gap: 14px; padding: 36px 0; border-top: 1px solid var(--line); max-width: 820px; }
.entry-last { padding-bottom: 8px; }
.org { display: flex; align-items: center; gap: 10px; }
.logo {
  width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9px; font-weight: 500; color: var(--ink); border: 1px solid rgba(236, 236, 241, 0.3);
}
.logo-acc { background: var(--acc); border-color: var(--acc); color: var(--bg); }
.org-name { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.entry-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; }
.entry-title { font-weight: 300; font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.01em; }
.entry-title-sm { font-size: clamp(22px, 2.4vw, 30px); }
.date { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.entry-p { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.entry-p strong { color: var(--ink); }
.bullets { padding-left: 18px; list-style: disc; display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px;
  border: 1px solid rgba(236, 236, 241, 0.18); border-radius: 999px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  transition: border-color 0.25s, color 0.25s;
}
.tag:hover { border-color: var(--acc); color: var(--ink); }

/* stack */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px 48px; max-width: 960px; }
.group { display: flex; flex-direction: column; gap: 12px; }
.group-t { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--acc); }

/* contact */
.contact {
  position: relative; padding: 96px 0 120px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px;
  border-top: 1px solid var(--line);
}
.contact > * { position: relative; }
.contact-p { font-size: 16px; line-height: 1.6; max-width: 520px; color: var(--ink-2); text-wrap: pretty; }
.mail {
  font-weight: 200; font-size: clamp(28px, 5.2vw, 68px); letter-spacing: -0.01em; color: var(--ink);
  padding-bottom: 14px;
}
.mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(236, 236, 241, 0.25); transition: background-color 0.3s; }
.mail:hover { color: var(--ink); }
.mail:hover::after { background: var(--acc); }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mute); }
.links a:hover { color: var(--acc); }

.foot {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0 28px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute);
}
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.foot > span { opacity: 0; transform: translateY(10px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.foot > span:nth-child(2) { transition-delay: 120ms; }
.foot > span:nth-child(3) { transition-delay: 240ms; }
.foot.rv { transform: none; }
.foot.in::before { transform: none; }
.foot.in > span { opacity: 1; transform: none; }
.no-js .foot::before, .no-js .foot > span { opacity: 1; transform: none; }

/* ---------- motion ---------- */
.fade { animation: fade 0.8s var(--ease) both; animation-delay: var(--d, 0ms); }
.rv { opacity: 0; transform: translateY(36px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(105%) skewY(5deg); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hflow { to { background-position: 16px 0; } }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .site { flex-direction: column; }
  .vnav { position: static; height: auto; width: auto; flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 10px 16px 0; background: none; }
  .vlink { width: auto; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; }
  .vlink span { position: static; transform: none; }
  .main { padding: 0 16px; }
  .steps { flex-direction: column; gap: 28px; }
  .sky { height: clamp(160px, 26vh, 260px); }
  .name { margin-top: -0.3em; font-size: clamp(48px, 15.5vw, 84px); }
  .wt { font-size: clamp(36px, 11vw, 64px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .rv, .foot > span { opacity: 1; transform: none; }
  .foot::before { transform: none; }
}
