/* ═══ k1r1l0v · THE STUDIO IDENTITY ═══════════════════════════════════════════════════════════
   Distinct from AURUM's night-gold on purpose (his direction, 2026-07-10): the studio is DARK
   ENGINEERING LUXURY — cold precision, one electric accent, monospace details, hairline rules,
   fine micro-motion. Zero external requests: system type, CSS-drawn everything.
   AURUM appears on the landing only as an artifact in a vitrine — the warm jewel in a cold frame. */

:root {
  --void: #090b0f;
  --panel: #0d1016;
  --panel-lift: #11151d;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --ink: #e7ebf1;
  --dim: #97a1b0;
  --faint: #5c6674;
  --accent: #5cb8ff;
  --accent-dim: rgba(92, 184, 255, 0.14);
  --mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* the AURUM vitrine keeps the game's own warmth */
  --au-night: #0a0810;
  --au-gold: #c9a558;
  --au-gold-bright: #e8cd8f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  /* the engineering ground: a blueprint grid kept SUBLIMINAL (the first casting shouted at
     0.14 — a grid is texture, never a character), plus one cold glow at the crown */
  background-image:
    radial-gradient(900px 480px at 78% -10%, rgba(92, 184, 255, 0.07), transparent 60%),
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  background-position: 0 0, 0 0, 0 0;
}

::selection { background: var(--accent-dim); color: var(--ink); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ── the fixed masthead: the mark + the sections ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(9, 11, 15, 0.72);
  border-bottom: 1px solid var(--line);
}
nav .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.mark {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
}
.mark b { color: var(--accent); font-weight: 400; }
nav .links { display: flex; gap: 30px; }
nav .links a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.10em;
  color: var(--dim);
  text-decoration: none;
  transition: color .25s ease;
}
nav .links a:hover { color: var(--ink); }
nav .links a.cta { color: var(--accent); }
@media (max-width: 640px) { nav .links a:not(.cta) { display: none; } }

/* ── shared section rhythm ── */
section { padding: 108px 0 20px; }
.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 18px;
}
.kicker::before { content: "// "; color: var(--faint); }
h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 650; letter-spacing: -0.015em; margin-bottom: 14px; }
.sub { color: var(--dim); max-width: 620px; font-size: 17px; }

/* ── HERO ── */
.hero { padding: 190px 0 96px; position: relative; overflow: hidden; }
.hero h1 {
  font-size: clamp(42px, 7.2vw, 84px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 18px 0 26px;
}
.hero h1 .accent { color: var(--accent); }
.hero .lead { color: var(--dim); font-size: clamp(17px, 2vw, 20px); max-width: 640px; }
.hero .actions { display: flex; gap: 16px; margin-top: 44px; flex-wrap: wrap; }

.btn {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 6px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn.primary {
  background: var(--accent);
  color: #071018;
  font-weight: 600;
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(92, 184, 255, 0.28); }
.btn.ghost {
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* the hero's one living detail: a slow radar sweep on a status line */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
  letter-spacing: 0.08em;
  margin-top: 54px;
}
.status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.status .dot::after {
  content: ""; position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: ping 2.6s cubic-bezier(0, 0.6, 0.4, 1) infinite;
}
@keyframes ping { 0% { transform: scale(0.4); opacity: 0.9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* ── the capability ribbon: one quiet monospace line under the hero ── */
.ribbon {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--faint);
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  justify-content: center;
}
.ribbon span b { color: var(--dim); font-weight: 400; }

/* ── SERVICES: three numbered plates ── */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
@media (max-width: 840px) { .grid3 { grid-template-columns: 1fr; } }
.plate {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px 26px 26px;
  transition: border-color .3s ease, transform .3s ease, background .3s ease;
}
.plate:hover { border-color: var(--accent); transform: translateY(-4px); background: var(--panel-lift); }
.plate .no {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: 0.14em;
}
.plate h3 { font-size: 19px; font-weight: 650; margin: 14px 0 10px; letter-spacing: -0.01em; }
.plate p { color: var(--dim); font-size: 15px; margin-bottom: 16px; }
.plate ul { list-style: none; }
.plate li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--faint);
  padding: 5px 0 5px 18px;
  position: relative;
}
.plate li::before { content: "—"; position: absolute; left: 0; color: var(--accent); opacity: .7; }

/* ── THE VITRINE: AURUM as the warm artifact in the cold frame ── */
.vitrine {
  margin-top: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(720px 340px at 26% 18%, rgba(201, 165, 88, 0.14), transparent 62%),
    var(--au-night);
  display: grid;
  grid-template-columns: 300px 1fr;
  transition: border-color .35s ease, box-shadow .35s ease;
}
.vitrine:hover { border-color: rgba(201, 165, 88, 0.55); box-shadow: 0 18px 60px rgba(201, 165, 88, 0.10); }
@media (max-width: 760px) { .vitrine { grid-template-columns: 1fr; } }

.vitrine .stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 46px 20px;
}
.au-orb {
  width: 132px; height: 132px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f6e6b8 0%, #e2bd6e 26%, #a87f3a 58%, #4a3517 86%, #241a0c 100%);
  box-shadow: 0 0 44px 8px rgba(201, 165, 88, 0.22), 0 0 120px 30px rgba(201, 165, 88, 0.08),
              inset -14px -18px 42px rgba(0, 0, 0, 0.55);
  animation: aubreathe 6.4s ease-in-out infinite;
}
@keyframes aubreathe {
  0%, 100% { transform: scale(0.985); filter: brightness(0.96); }
  50%      { transform: scale(1.015); filter: brightness(1.06); }
}
.vitrine .card { padding: 40px 40px 36px 8px; }
@media (max-width: 760px) { .vitrine .card { padding: 6px 30px 34px; } }
.vitrine .tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--au-gold);
}
.vitrine h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: 0.16em;
  color: var(--au-gold-bright);
  margin: 12px 0 4px;
}
.vitrine .sub2 { font-family: Georgia, serif; font-style: italic; color: #a89f8c; margin-bottom: 16px; }
.vitrine p.desc { color: #b6ad9a; font-size: 15px; max-width: 480px; margin-bottom: 22px; }
.vitrine .go {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--au-gold-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 165, 88, 0.4);
  padding-bottom: 2px;
  transition: color .25s, border-color .25s;
}
.vitrine .go:hover { color: #fff3d6; border-color: #fff3d6; }

/* ── ABOUT: the fact row speaks in mono ── */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr; } }
.fact { border-left: 1px solid var(--line-strong); padding-left: 18px; }
.fact .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--faint); }
.fact .v { font-size: 16px; color: var(--ink); margin-top: 6px; }

/* ── CONTACT ── */
.contact { text-align: center; padding: 140px 0 120px; }
.contact h2 { font-size: clamp(30px, 5vw, 52px); letter-spacing: -0.02em; }
.contact .mail {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(17px, 2.6vw, 24px);
  letter-spacing: 0.05em;
  color: var(--accent);
  text-decoration: none;
  margin: 30px 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 16px 30px;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.contact .mail:hover { border-color: var(--accent); box-shadow: 0 12px 44px rgba(92, 184, 255, 0.18); transform: translateY(-2px); }
.contact .note { font-family: var(--mono); font-size: 12.5px; color: var(--faint); letter-spacing: 0.08em; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--line); padding: 30px 0 40px; }
footer .row {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--faint);
}
footer a { color: var(--dim); text-decoration: none; margin-left: 18px; transition: color .25s; }
footer a:hover { color: var(--ink); }

/* ── the reveal choreography: sections rise as the reader arrives (JS toggles .in) ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .au-orb, .status .dot::after { animation: none; }
  html { scroll-behavior: auto; }
}
