/* ============================================================
   Norellix Studio — shared site theme
   "Atelier Terminal": a luxury developer-studio aesthetic.
   Near-black canvas · signal-gold accent · geometric display
   type (Space Grotesk) · monospace metadata (JetBrains Mono).
   ============================================================ */

:root {
  --bg:      #0B0C0F;
  --bg-2:    #111317;
  --bg-3:    #16181D;
  --ink:     #ECEBE4;
  --ink-2:   #C7C7C0;
  --soft:    #8C8D88;
  --line:    rgba(255,255,255,0.10);
  --line-2:  rgba(255,255,255,0.055);
  --gold:    #C9A45C;          /* muted brass — hairlines & quiet labels */
  --gold-2:  #E6CA8E;          /* light gold — hovers */
  --gold-vivid: #F2B63D;       /* vivid amber-gold — CTAs, accents, the things that matter */
  --code:    #8FB7A6;          /* muted terminal green for code accents */
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(201,164,92,0.26); color: #fff; }

a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.reader { max-width: 720px; margin: 0 auto; }

/* monospace label / code-comment eyebrow */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.eyebrow .dim { color: var(--soft); }

/* ---------------- Header / Nav ---------------- */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11,12,15,0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .tick { color: var(--gold-vivid); font-size: 13px; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--gold); }
.nav-links a[aria-current="page"]::after { width: 100%; }

/* hamburger (mobile) — pure CSS toggle via checkbox */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger {
  display: none;
  width: 40px; height: 40px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-2);
}
.burger span {
  display: block; width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

@media (max-width: 760px) {
  .burger { display: flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: -32px; right: -32px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 6px 0;
    display: none;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a {
    padding: 15px 32px;
    font-size: 14px;
    border-bottom: 1px solid var(--line-2);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }
  .nav-toggle:checked ~ .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav-toggle:checked ~ .burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 104px;
  border-bottom: 1px solid var(--line-2);
}
.hero::before {  /* faint design-canvas grid — kept subtle */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(820px 420px at 16% -4%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(820px 420px at 16% -4%, #000 0%, transparent 70%);
  opacity: 0.35;
}
.hero::after {  /* warm glow */
  content: "";
  position: absolute; top: -180px; left: -120px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(242,182,61,0.22), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { display: block; margin-bottom: 28px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 0.99;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 15ch;
}
.hero h1 .accent { color: var(--gold-vivid); }
.hero .lede {
  margin: 36px 0 0;
  max-width: 52ch;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
}
.hero .cta-row { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.rule { height: 1px; background: var(--line-2); border: 0; margin: 0; }

/* ---------------- Buttons ---------------- */
.btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 7px;
  transition: all 0.28s ease;
  display: inline-block;
}
.btn-primary {
  background: var(--gold-vivid);
  color: #1B1305;
  border: 1px solid var(--gold-vivid);
  font-weight: 600;
}
.btn-primary:hover { background: #FFC957; border-color: #FFC957; text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

/* ---------------- Manifesto ---------------- */
.manifesto { padding: 92px 0; border-bottom: 1px solid var(--line-2); }
.manifesto-grid { display: grid; grid-template-columns: 0.8fr 2fr; gap: 48px; }
.manifesto .label { font-family: var(--mono); font-size: 12px; color: var(--soft); letter-spacing: 0.06em; padding-top: 10px; }
.manifesto p {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.manifesto p em { font-style: normal; color: var(--gold-vivid); }
@media (max-width: 720px) { .manifesto-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ---------------- Features ---------------- */
.features { padding: 84px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.02em;
  margin: 0;
}
.section-head .tag { font-family: var(--mono); font-size: 12px; color: var(--soft); }

.feature-list { border-top: 1px solid var(--line); }
.feature {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 28px;
  padding: 34px 6px;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease, padding-left 0.35s ease;
}
.feature:hover { background: var(--bg-2); padding-left: 18px; }
.feature .num { font-family: var(--mono); font-size: 13px; color: var(--gold-vivid); padding-top: 7px; }
.feature .body { max-width: 64ch; }
.feature h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 23px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.feature p { margin: 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.7; }
@media (max-width: 560px) {
  .feature { grid-template-columns: 1fr; gap: 8px; }
  .feature .num { padding-top: 0; }
}

/* ---------------- Membership ---------------- */
.membership { padding: 40px 0 96px; }
.member-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(700px 240px at 100% 0%, rgba(201,164,92,0.12), transparent 70%),
    var(--bg-2);
  padding: clamp(36px, 5vw, 68px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}
.member-card .eyebrow { display: block; margin-bottom: 20px; }
.member-card h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.member-card h2 .accent { color: var(--gold-vivid); }
.member-card .note { color: var(--soft); font-size: 16px; max-width: 38ch; margin: 0; }
.member-list { list-style: none; margin: 0; padding: 0; }
.member-list li {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--ink-2);
  display: flex; gap: 14px; align-items: baseline;
}
.member-list li:first-child { border-top: 0; padding-top: 0; }
.member-list li::before { content: "→"; color: var(--gold-vivid); flex: 0 0 auto; font-family: var(--mono); }
@media (max-width: 760px) { .member-card { grid-template-columns: 1fr; gap: 32px; } }

/* ---------------- Contact ---------------- */
.contact { padding: 36px 0 110px; text-align: center; border-top: 1px solid var(--line-2); }
.contact .eyebrow { display: block; margin-bottom: 22px; }
.contact h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 5.2vw, 58px);
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
.contact p { color: var(--ink-2); margin: 0 auto 38px; max-width: 46ch; }
.actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Inner / content pages ---------------- */
.page-head { position: relative; overflow: hidden; padding: 116px 0 48px; border-bottom: 1px solid var(--line-2); }
.page-head::after {
  content: "";
  position: absolute; top: -160px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(201,164,92,0.12), transparent 62%);
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head .eyebrow { display: block; margin-bottom: 22px; }
.page-head h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
}
.page-head h1 .accent { color: var(--gold-vivid); }
.page-head .meta { margin-top: 18px; font-family: var(--mono); color: var(--soft); font-size: 12.5px; letter-spacing: 0.04em; }

.content { padding: 56px 0 96px; }
.content .lead {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 10px;
}
.content h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 27px;
  letter-spacing: -0.015em;
  margin: 52px 0 12px;
}
.content h3 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  margin: 30px 0 4px;
  color: var(--gold);
}
.content p, .content li { font-size: 16px; color: var(--ink-2); }
.content ul { padding-left: 20px; margin: 10px 0; }
.content li { margin: 8px 0; }
.content li::marker { color: var(--gold); }
.content strong { color: var(--ink); font-weight: 500; }

table { border-collapse: collapse; width: 100%; margin: 18px 0; }
th, td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
th { background: var(--bg-2); color: var(--ink); font-weight: 500; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.03em; }

address { font-style: normal; color: var(--ink-2); line-height: 1.9; }
.caps { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--soft); line-height: 1.85; }

.card { border: 1px solid var(--line); border-radius: 10px; padding: 30px 32px; margin: 0 0 16px; background: var(--bg-2); }
.card h2 { margin-top: 0; }
.card .btn { margin-top: 14px; }

/* ---------------- About specifics ---------------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 30px 0; }
.value { background: var(--bg-2); padding: 26px 24px; }
.value .k { font-family: var(--mono); font-size: 13px; color: var(--gold); margin-bottom: 8px; }
.value p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.signature { font-family: var(--display); font-size: 24px; color: var(--ink); margin-top: 40px; }
.signature span { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--soft); margin-top: 8px; }
.cta { margin-top: 42px; }

/* ---------------- Footer ---------------- */
footer { border-top: 1px solid var(--line); padding: 44px 0; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot .copy { font-family: var(--mono); font-size: 12px; color: var(--soft); }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--ink-2); }
.foot-links a:hover { color: var(--gold); text-decoration: none; }

/* ---------------- Reveal (JS only) ---------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s cubic-bezier(0.2,0.7,0.2,1), transform 0.9s cubic-bezier(0.2,0.7,0.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
