:root {
  --bg: #050607;
  --bg-soft: #0b0d10;
  --surface: rgba(15, 17, 20, .72);
  --surface-strong: rgba(17, 19, 23, .93);
  --surface-2: rgba(255,255,255,.05);
  --text: #f7f7f5;
  --muted: #a7abb2;
  --line: rgba(255,255,255,.14);
  --line-strong: rgba(255,255,255,.28);
  --accent: #ff6500;
  --accent-2: #ff9d38;
  --accent-rgb: 255,101,0;
  --accent-deep: #6c2500;
  --accent-soft: rgba(255,101,0,.16);
  --shadow: 0 24px 70px rgba(0,0,0,.35);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1440px;
  --header-h: 82px;
  --focus: 0 0 0 3px rgba(var(--accent-rgb), .28);
}

html[data-theme="black-gold"] {
  --bg: #040404;
  --bg-soft: #0a0a08;
  --surface: rgba(16,15,11,.76);
  --surface-strong: rgba(15,14,10,.94);
  --surface-2: rgba(255,211,91,.045);
  --text: #fbfaf6;
  --muted: #b5b0a1;
  --line: rgba(255,221,119,.16);
  --line-strong: rgba(255,221,119,.32);
  --accent: #dcae2f;
  --accent-2: #ffd66a;
  --accent-rgb: 220,174,47;
  --accent-deep: #5f3c00;
  --accent-soft: rgba(220,174,47,.17);
}
html[data-theme="white-orange"] {
  --bg: #f8f8f6;
  --bg-soft: #ffffff;
  --surface: rgba(255,255,255,.66);
  --surface-strong: rgba(255,255,255,.93);
  --surface-2: rgba(255,101,0,.03);
  --text: #171719;
  --muted: #646971;
  --line: rgba(32,35,40,.10);
  --line-strong: rgba(32,35,40,.20);
  --accent: #ff6200;
  --accent-2: #ff9b42;
  --accent-rgb: 255,98,0;
  --accent-deep: #9e3900;
  --accent-soft: rgba(255,98,0,.10);
  --shadow: 0 24px 70px rgba(24,27,32,.11);
}
html[data-theme="white-gold"] {
  --bg: #fbfaf7;
  --bg-soft: #ffffff;
  --surface: rgba(255,255,255,.70);
  --surface-strong: rgba(255,255,255,.95);
  --surface-2: rgba(195,143,29,.035);
  --text: #1a1917;
  --muted: #6d685f;
  --line: rgba(72,58,29,.10);
  --line-strong: rgba(72,58,29,.18);
  --accent: #c89222;
  --accent-2: #e5ba54;
  --accent-rgb: 200,146,34;
  --accent-deep: #765006;
  --accent-soft: rgba(200,146,34,.10);
  --shadow: 0 24px 70px rgba(90,69,22,.10);
}

html[data-theme="black-blue"] {
  --bg: #02060b;
  --bg-soft: #050c14;
  --surface: rgba(6, 15, 25, .74);
  --surface-strong: rgba(5, 14, 24, .95);
  --surface-2: rgba(31,142,255,.055);
  --text: #f4f9ff;
  --muted: #9fb2c8;
  --line: rgba(76,166,255,.18);
  --line-strong: rgba(76,166,255,.36);
  --accent: #168cff;
  --accent-2: #56d5ff;
  --accent-rgb: 22,140,255;
  --accent-deep: #064f9e;
  --accent-soft: rgba(22,140,255,.16);
  --shadow: 0 24px 78px rgba(0,0,0,.48);
}
html[data-theme="white-blue"] {
  --bg: #f6f9fd;
  --bg-soft: #ffffff;
  --surface: rgba(255,255,255,.74);
  --surface-strong: rgba(255,255,255,.96);
  --surface-2: rgba(20,123,255,.045);
  --text: #101722;
  --muted: #607086;
  --line: rgba(25,73,128,.11);
  --line-strong: rgba(25,73,128,.22);
  --accent: #147bff;
  --accent-2: #55bfff;
  --accent-rgb: 20,123,255;
  --accent-deep: #084f9d;
  --accent-soft: rgba(20,123,255,.10);
  --shadow: 0 24px 70px rgba(26,76,132,.11);
}
html[data-theme="black-red"] {
  --bg: #080204;
  --bg-soft: #110407;
  --surface: rgba(22, 6, 10, .74);
  --surface-strong: rgba(20, 5, 9, .95);
  --surface-2: rgba(255,42,69,.055);
  --text: #fff6f7;
  --muted: #c1a0a6;
  --line: rgba(255,82,104,.18);
  --line-strong: rgba(255,82,104,.36);
  --accent: #ff2945;
  --accent-2: #ff6b55;
  --accent-rgb: 255,41,69;
  --accent-deep: #8f1027;
  --accent-soft: rgba(255,41,69,.16);
  --shadow: 0 24px 78px rgba(0,0,0,.48);
}
html[data-theme="white-red"] {
  --bg: #fdf7f8;
  --bg-soft: #ffffff;
  --surface: rgba(255,255,255,.74);
  --surface-strong: rgba(255,255,255,.96);
  --surface-2: rgba(232,36,63,.045);
  --text: #1d1114;
  --muted: #7b6268;
  --line: rgba(128,31,50,.11);
  --line-strong: rgba(128,31,50,.22);
  --accent: #e8243f;
  --accent-2: #ff685c;
  --accent-rgb: 232,36,63;
  --accent-deep: #971329;
  --accent-soft: rgba(232,36,63,.10);
  --shadow: 0 24px 70px rgba(112,28,44,.11);
}

html[data-theme="black-neon-green"] {
  --bg: #020503;
  --bg-soft: #050a07;
  --surface: rgba(7, 16, 10, .72);
  --surface-strong: rgba(6, 15, 9, .94);
  --surface-2: rgba(45,255,115,.055);
  --text: #f4fff7;
  --muted: #9db7a5;
  --line: rgba(93,255,145,.17);
  --line-strong: rgba(93,255,145,.34);
  --accent: #20f56f;
  --accent-2: #a8ff32;
  --accent-rgb: 32,245,111;
  --accent-deep: #046328;
  --accent-soft: rgba(32,245,111,.16);
  --shadow: 0 24px 78px rgba(0,0,0,.48);
}
html[data-theme="white-neon-green"] {
  --bg: #f6faf7;
  --bg-soft: #ffffff;
  --surface: rgba(255,255,255,.72);
  --surface-strong: rgba(255,255,255,.95);
  --surface-2: rgba(25,218,91,.045);
  --text: #101713;
  --muted: #5f7165;
  --line: rgba(23,92,48,.11);
  --line-strong: rgba(23,92,48,.22);
  --accent: #13d95d;
  --accent-2: #75f53f;
  --accent-rgb: 19,217,93;
  --accent-deep: #087234;
  --accent-soft: rgba(19,217,93,.10);
  --shadow: 0 24px 70px rgba(20,68,37,.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 73% 10%, rgba(var(--accent-rgb), .14), transparent 28%),
    radial-gradient(circle at 8% 85%, rgba(var(--accent-rgb), .08), transparent 28%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.01em;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .55;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), .04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 65%);
}
html[data-theme^="white"] body::before { opacity: .4; }
html[data-theme$="neon-green"] body::before { background-size:38px 38px; opacity:.64; }
html[data-theme="black-neon-green"] body { background:radial-gradient(circle at 73% 10%, rgba(var(--accent-rgb), .18), transparent 28%), radial-gradient(circle at 8% 85%, rgba(var(--accent-rgb), .10), transparent 28%), linear-gradient(180deg, var(--bg-soft), var(--bg)); }
html[data-theme="black-blue"] body,
html[data-theme="black-red"] body { background:radial-gradient(circle at 73% 10%, rgba(var(--accent-rgb), .18), transparent 28%), radial-gradient(circle at 8% 85%, rgba(var(--accent-rgb), .10), transparent 28%), linear-gradient(180deg, var(--bg-soft), var(--bg)); }
html[data-theme="white-neon-green"] body { background:radial-gradient(circle at 73% 10%, rgba(var(--accent-rgb), .12), transparent 30%), radial-gradient(circle at 8% 85%, rgba(var(--accent-rgb), .07), transparent 28%), linear-gradient(180deg, var(--bg-soft), var(--bg)); }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--focus); }
svg { width: 1.3em; height: 1.3em; fill: currentColor; display: block; }
img { max-width: 100%; display: block; }

.site-shell { min-height: 100vh; }
.glass {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 82%, transparent), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.site-header {
  width: min(calc(100% - 28px), 1540px);
  height: var(--header-h);
  margin: 14px auto 0;
  padding: 0 22px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 12px;
  z-index: 50;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 18px; font-weight: 950; font-style: italic; letter-spacing: -3px;
  background: linear-gradient(145deg, #fff 5%, var(--accent-2) 34%, var(--accent) 56%, var(--accent-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 5px 12px rgba(var(--accent-rgb), .28));
}
html[data-theme="black-gold"] .brand-mark,
html[data-theme="white-gold"] .brand-mark { background: linear-gradient(145deg,#fff7d4 0%,#f0ca64 35%,#b57b08 68%,#5f3c00 100%); -webkit-background-clip:text; background-clip:text; }
html[data-theme="black-neon-green"] .brand-mark,
html[data-theme="white-neon-green"] .brand-mark { filter:drop-shadow(0 5px 14px rgba(var(--accent-rgb),.42)); }
.brand-mark.small { width: 32px; height: 32px; font-size: 14px; }
.brand-text { display: grid; gap: 2px; }
.brand-text strong { font-size: 19px; letter-spacing: .02em; }
.brand-text em { color: var(--accent); font-style: normal; }
.brand-text small { color: var(--muted); letter-spacing: .18em; font-size: 8px; font-weight: 700; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 21px; min-width: 0; }
.main-nav a { font-size: 13px; font-weight: 750; color: color-mix(in srgb, var(--text) 80%, var(--muted)); padding: 31px 0 27px; position: relative; white-space: nowrap; }
.main-nav a::after { content:""; position:absolute; height:2px; left:50%; right:50%; bottom:17px; background:var(--accent); border-radius: 4px; transition:.22s ease; box-shadow:0 0 14px rgba(var(--accent-rgb),.45); }
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.main-nav a:hover::after, .main-nav a.active::after { left:0; right:0; }
.header-actions { display:flex; align-items:center; gap:10px; }
.icon-button, .nav-toggle { width:46px; height:46px; display:grid; place-items:center; border-radius:14px; border:1px solid var(--line); color:var(--text); background:var(--surface-2); cursor:pointer; }
.nav-toggle { display:none; }
.btn { min-height: 46px; padding: 0 20px; border-radius: 13px; display:inline-flex; align-items:center; justify-content:center; gap:10px; font-weight:850; font-size:14px; border:1px solid transparent; cursor:pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color:white; background:linear-gradient(135deg,var(--accent),var(--accent-2)); box-shadow:0 11px 30px rgba(var(--accent-rgb),.24), inset 0 1px rgba(255,255,255,.35); }
html[data-theme="white-gold"] .btn-primary, html[data-theme="black-gold"] .btn-primary { color:#17120a; }
.btn-secondary { border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); background: color-mix(in srgb, var(--surface) 86%, transparent); color:var(--text); }
.btn-ghost { border-color: var(--line); background: transparent; color:var(--text); }

.page-main { width:100%; animation: pageIn .5s cubic-bezier(.2,.75,.2,1); }
@keyframes pageIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
.page-transition { position:fixed; inset:0; z-index:200; background:radial-gradient(circle at center, rgba(var(--accent-rgb),.18), transparent 32%), var(--bg); transform:translateY(102%); transition:transform .32s cubic-bezier(.65,0,.35,1); pointer-events:none; }
body.is-leaving .page-transition { transform:translateY(0); }

.hero {
  width:min(calc(100% - 52px), var(--max));
  margin: 28px auto 0;
  min-height: 610px;
  display:grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(520px, .95fr);
  align-items:center;
  gap:30px;
  position:relative;
}
.hero::before { content:""; position:absolute; inset:40px -6vw -40px; background:radial-gradient(circle at 76% 47%, rgba(var(--accent-rgb),.16), transparent 30%); pointer-events:none; }
.hero-copy { position:relative; z-index:2; padding: 34px 0; }
.eyebrow { color:var(--accent); text-transform:uppercase; letter-spacing:.24em; font-size:13px; font-weight:900; margin-bottom:18px; }
.hero h1 { margin:0; font-size:clamp(68px,7.1vw,118px); line-height:.86; letter-spacing:-.065em; font-weight:950; max-width: 760px; }
.hero h1 .accent { color:transparent; background:linear-gradient(135deg,var(--accent),var(--accent-2)); -webkit-background-clip:text; background-clip:text; text-shadow:0 10px 30px rgba(var(--accent-rgb),.12); }
.hero-tagline { margin:26px 0 0; font-size:16px; letter-spacing:.32em; font-weight:760; text-transform:uppercase; color:color-mix(in srgb,var(--text) 88%, var(--muted)); }
.hero-rule { width:52px; height:3px; background:var(--accent); border-radius:4px; margin:22px 0; box-shadow:0 0 18px rgba(var(--accent-rgb),.4); }
.hero-text { max-width:650px; font-size:19px; line-height:1.65; color:var(--muted); }
.hero-actions { margin-top:30px; display:flex; gap:14px; flex-wrap:wrap; }
.hero-visual { min-height: 500px; position:relative; display:grid; place-items:center; isolation:isolate; }
.hero-monogram { z-index:4; font-size:clamp(150px,18vw,300px); font-weight:1000; font-style:italic; letter-spacing:-.12em; color:transparent; background:linear-gradient(145deg,#ffffff 0%,#e6e7e7 28%,var(--accent-2) 42%,#fff 49%,var(--accent) 63%,var(--accent-deep) 100%); -webkit-background-clip:text; background-clip:text; filter:drop-shadow(0 18px 22px rgba(0,0,0,.30)) drop-shadow(0 0 22px rgba(var(--accent-rgb),.24)); transform:perspective(850px) rotateY(-10deg) rotateX(4deg); text-shadow:0 0 1px rgba(255,255,255,.4); }
html[data-theme="white-gold"] .hero-monogram, html[data-theme="black-gold"] .hero-monogram { background:linear-gradient(145deg,#fff 0%,#f4ead1 22%,#f1c65b 42%,#fff6d6 49%,#b57a09 72%,#513000 100%); -webkit-background-clip:text; background-clip:text; }
.orbit { position:absolute; border:2px solid rgba(var(--accent-rgb),.42); border-radius:50%; box-shadow:0 0 24px rgba(var(--accent-rgb),.18), inset 0 0 22px rgba(var(--accent-rgb),.08); animation: spin 16s linear infinite; }
.orbit::before,.orbit::after { content:""; position:absolute; width:8px; height:8px; border-radius:50%; background:var(--accent-2); box-shadow:0 0 18px var(--accent); }
.orbit::before { top:7%; left:20%; } .orbit::after { right:7%; bottom:22%; }
.orbit-a { width: 92%; aspect-ratio: 2.2/1; transform: rotate(-7deg); }
.orbit-b { width: 76%; aspect-ratio: 2.2/1; transform: rotate(8deg); animation-duration:24s; animation-direction:reverse; }
.orbit-c { width: 58%; aspect-ratio: 2.2/1; transform: rotate(-2deg); animation-duration:11s; }
@keyframes spin { to { rotate:360deg; } }
.hero-grid { position:absolute; inset:8%; border-radius:50%; background:radial-gradient(circle,rgba(var(--accent-rgb),.10),transparent 68%); filter:blur(10px); }

.quick-grid { width:min(calc(100% - 52px), var(--max)); margin:-38px auto 0; display:grid; grid-template-columns:repeat(4,1fr); gap:18px; position:relative; z-index:10; }
.feature-card { min-height:180px; padding:26px; border-radius:var(--radius); display:grid; grid-template-columns:auto 1fr auto; align-items:start; gap:18px; transition:.25s ease; overflow:hidden; position:relative; }
.feature-card::after { content:""; position:absolute; inset:auto -20% -58% 25%; height:75%; background:radial-gradient(circle at center, rgba(var(--accent-rgb),.22), transparent 65%); transform:rotate(-8deg); pointer-events:none; }
.feature-card:hover { transform:translateY(-6px); border-color:color-mix(in srgb,var(--accent) 52%,var(--line)); box-shadow:0 22px 50px rgba(var(--accent-rgb),.12), var(--shadow); }
.feature-icon { width:52px; height:52px; border-radius:16px; color:var(--accent); display:grid; place-items:center; border:1px solid rgba(var(--accent-rgb),.28); background:var(--accent-soft); }
.feature-icon svg { width:28px; height:28px; }
.feature-card strong { display:block; font-size:18px; margin:8px 0 10px; }
.feature-card small { display:block; font-size:14px; line-height:1.55; color:var(--muted); }
.feature-arrow { align-self:end; color:var(--accent); }

.value-strip { width:min(calc(100% - 52px), var(--max)); margin:22px auto 0; display:grid; grid-template-columns:repeat(4,1fr); border-radius:var(--radius); overflow:hidden; }
.value-item { display:grid; grid-template-columns:auto 1fr; gap:16px; padding:22px 26px; align-items:center; border-right:1px solid var(--line); }
.value-item:last-child { border-right:0; }
.value-item .round-icon { width:48px; height:48px; border-radius:50%; display:grid; place-items:center; color:var(--accent); border:1px solid rgba(var(--accent-rgb),.32); box-shadow:0 0 20px rgba(var(--accent-rgb),.10); }
.value-item strong { display:block; font-size:13px; margin-bottom:5px; }
.value-item small { color:var(--muted); line-height:1.45; font-size:12px; }

.section { width:min(calc(100% - 52px), var(--max)); margin:82px auto 0; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.section-kicker { color:var(--accent); text-transform:uppercase; font-size:12px; font-weight:900; letter-spacing:.22em; margin-bottom:8px; }
.section-heading h2, .content-hero h1 { margin:0; font-size:clamp(34px,4vw,58px); letter-spacing:-.045em; }
.section-heading p { color:var(--muted); max-width:680px; margin:10px 0 0; line-height:1.65; }
.two-col { display:grid; grid-template-columns:1.15fr .85fr; gap:24px; }
.panel { border-radius:var(--radius); padding:30px; }
.panel h3 { margin:0 0 10px; font-size:24px; }
.panel p { color:var(--muted); line-height:1.7; }
.list-clean { list-style:none; margin:22px 0 0; padding:0; display:grid; gap:13px; }
.list-clean li { display:flex; gap:12px; align-items:flex-start; color:color-mix(in srgb,var(--text) 86%,var(--muted)); }
.list-clean li::before { content:"✓"; width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-weight:950;font-size:12px;flex:0 0 auto; }
.area-list { display:grid; gap:0; }
.area-list a { display:flex; align-items:center; gap:14px; justify-content:space-between; padding:18px 4px; border-bottom:1px solid var(--line); }
.area-list a:last-child { border-bottom:0; }
.area-list a:hover { color:var(--accent); }

.project-grid, .article-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.project-card, .article-card { border-radius:var(--radius); overflow:hidden; transition:.22s ease; position:relative; }
.project-card:hover, .article-card:hover { transform:translateY(-5px); border-color:rgba(var(--accent-rgb),.34); }
.project-cover { height:180px; overflow:hidden; background:linear-gradient(135deg,rgba(var(--accent-rgb),.16),rgba(var(--accent-rgb),.04)), radial-gradient(circle at 75% 20%,rgba(var(--accent-rgb),.36),transparent 30%), var(--surface-strong); position:relative; display:grid; place-items:center; }
.project-cover img { width:100%;height:100%;object-fit:cover; }
.project-cover .cover-mark { font-size:64px; font-weight:950; font-style:italic; color:transparent; background:linear-gradient(135deg,#fff,var(--accent)); -webkit-background-clip:text;background-clip:text; opacity:.9; }
.card-body { padding:24px; }
.card-meta { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:15px; }
.badge { display:inline-flex; align-items:center; min-height:26px; padding:0 9px; border-radius:999px; font-size:11px; font-weight:850; color:var(--accent); background:var(--accent-soft); border:1px solid rgba(var(--accent-rgb),.20); }
.badge.muted { color:var(--muted); background:var(--surface-2); border-color:var(--line); }
.card-body h3 { margin:0 0 10px; font-size:22px; }
.card-body p { margin:0; color:var(--muted); line-height:1.6; }
.card-link { display:inline-flex; align-items:center; gap:8px; color:var(--accent); font-weight:850; margin-top:18px; }
.empty-state { border:1px dashed var(--line-strong); border-radius:var(--radius); padding:54px 28px; text-align:center; color:var(--muted); background:var(--surface-2); }

.content-hero { width:min(calc(100% - 52px), var(--max)); margin:60px auto 0; padding:54px; border-radius:30px; position:relative; overflow:hidden; }
.content-hero::after { content:""; position:absolute; width:420px; height:420px; border:1px solid rgba(var(--accent-rgb),.32); border-radius:50%; right:-130px; top:-170px; box-shadow:0 0 80px rgba(var(--accent-rgb),.10), inset 0 0 60px rgba(var(--accent-rgb),.08); }
.content-hero p { max-width:780px; color:var(--muted); line-height:1.7; font-size:18px; }
.breadcrumb { color:var(--accent); font-size:12px; font-weight:900; letter-spacing:.18em; text-transform:uppercase; margin-bottom:14px; }

.detail-layout { width:min(calc(100% - 52px), 1180px); margin:46px auto 0; display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:24px; }
.prose { border-radius:var(--radius); padding:34px; }
.prose h2 { font-size:28px; margin-top:0; }
.prose p { color:var(--muted); line-height:1.8; font-size:16px; }
.sidebar-card { border-radius:var(--radius); padding:24px; height:max-content; position:sticky; top:110px; }
.sidebar-card dl { margin:0; display:grid; gap:16px; }
.sidebar-card dt { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.14em; }
.sidebar-card dd { margin:4px 0 0; font-weight:800; }
.sidebar-card .btn { width:100%; margin-top:12px; }

.form-shell { width:min(calc(100% - 52px), 1040px); margin:46px auto 0; }
.form-card { border-radius:28px; padding:34px; }
.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.field { display:grid; gap:8px; }
.field.full { grid-column:1 / -1; }
.field label { font-size:13px; font-weight:850; }
.field small { color:var(--muted); }
.input, select, textarea { width:100%; border:1px solid var(--line); background:color-mix(in srgb,var(--surface-strong) 86%,transparent); color:var(--text); border-radius:13px; padding:13px 14px; transition:.18s ease; }
.input:focus, select:focus, textarea:focus { border-color:rgba(var(--accent-rgb),.55); }
textarea { min-height:150px; resize:vertical; }
.category-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.category-choice input { position:absolute; opacity:0; pointer-events:none; }
.category-choice span { display:block; border:1px solid var(--line); border-radius:14px; padding:16px; min-height:92px; background:var(--surface-2); cursor:pointer; }
.category-choice strong { display:block; margin-bottom:6px; }
.category-choice small { color:var(--muted); line-height:1.45; }
.category-choice input:checked + span { border-color:var(--accent); background:var(--accent-soft); box-shadow:0 0 0 1px rgba(var(--accent-rgb),.18) inset; }
.notice { border-radius:14px; padding:15px 17px; border:1px solid var(--line); background:var(--surface-2); color:var(--muted); margin-bottom:18px; }
.notice.success { border-color:rgba(40,180,100,.3); background:rgba(40,180,100,.08); color:color-mix(in srgb,var(--text) 75%,#4bd987); }
.notice.error { border-color:rgba(220,70,70,.3); background:rgba(220,70,70,.08); color:color-mix(in srgb,var(--text) 72%,#ff6b6b); }
.honeypot { position:absolute!important; left:-9999px!important; width:1px!important; height:1px!important; overflow:hidden!important; }

.forum-gateway { text-align:center; padding:58px 28px; }
.forum-orbit { width:160px; height:160px; margin:0 auto 24px; border-radius:50%; border:1px solid rgba(var(--accent-rgb),.4); display:grid; place-items:center; position:relative; box-shadow:0 0 50px rgba(var(--accent-rgb),.12), inset 0 0 40px rgba(var(--accent-rgb),.08); }
.forum-orbit::before { content:""; position:absolute; inset:18px; border:1px dashed rgba(var(--accent-rgb),.45); border-radius:50%; animation:spin 12s linear infinite; }
.forum-orbit svg { width:58px;height:58px;color:var(--accent); }

.site-footer { width:min(calc(100% - 52px), var(--max)); margin:80px auto 24px; padding:28px 4px 8px; border-top:1px solid var(--line); display:grid; grid-template-columns:auto 1fr auto; gap:24px; align-items:center; color:var(--muted); font-size:13px; }
.footer-brand { display:flex; align-items:center; gap:8px; color:var(--text); }
.footer-links { display:flex; justify-content:center; gap:24px; flex-wrap:wrap; }
.footer-links a:hover { color:var(--accent); }

/* landing */
.landing-body { min-height:100vh; display:grid; place-items:center; overflow:hidden; }
.landing { width:min(94vw,1180px); min-height:640px; display:grid; place-items:center; text-align:center; position:relative; }
.landing::before,.landing::after { content:""; position:absolute; border-radius:50%; border:1px solid rgba(var(--accent-rgb),.28); animation:landingPulse 2s ease-in-out infinite; }
.landing::before { width:520px;height:520px; }
.landing::after { width:390px;height:390px; animation-delay:.24s; }
@keyframes landingPulse { 50% { transform:scale(1.04); opacity:.45; box-shadow:0 0 80px rgba(var(--accent-rgb),.16); } }
.landing-content { z-index:2; }
.landing-mark { font-size:120px; line-height:1; font-weight:1000; font-style:italic; letter-spacing:-.12em; color:transparent; background:linear-gradient(145deg,#fff,var(--accent-2),var(--accent)); -webkit-background-clip:text;background-clip:text; filter:drop-shadow(0 18px 32px rgba(var(--accent-rgb),.22)); }
html[data-theme^="white"] .landing-mark { background:linear-gradient(145deg,#38322b,var(--accent-2),var(--accent)); -webkit-background-clip:text;background-clip:text; }
.landing h1 { font-size:clamp(44px,7vw,90px); margin:14px 0 8px; letter-spacing:-.055em; }
.landing p { color:var(--muted); text-transform:uppercase; letter-spacing:.28em; font-weight:780; font-size:13px; }
.loading-line { width:240px; height:3px; margin:34px auto 0; border-radius:9px; overflow:hidden; background:var(--line); }
.loading-line span { display:block; height:100%; width:0; background:linear-gradient(90deg,var(--accent),var(--accent-2)); animation:loadingLine var(--landing-delay, 2s) linear forwards; }
@keyframes loadingLine { to { width:100%; } }

/* admin - follows the saved public theme */
.admin-body {
  color:var(--text);
  background:
    radial-gradient(circle at 82% 0, rgba(var(--accent-rgb),.13), transparent 30%),
    radial-gradient(circle at 0 100%, rgba(var(--accent-rgb),.07), transparent 32%),
    linear-gradient(180deg,var(--bg-soft),var(--bg));
}
.admin-shell {
  width:min(calc(100% - 28px),1600px);
  margin:14px auto;
  min-height:calc(100vh - 28px);
  display:grid;
  grid-template-columns:270px 1fr;
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  background:color-mix(in srgb,var(--surface-strong) 94%, transparent);
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px) saturate(140%);
}
.admin-sidebar {
  padding:24px 18px;
  border-right:1px solid var(--line);
  background:color-mix(in srgb,var(--bg-soft) 82%, var(--surface));
  display:flex;
  flex-direction:column;
}
.admin-brand { display:flex; align-items:center; gap:10px; padding:0 8px 20px; border-bottom:1px solid var(--line); }
.admin-brand strong { font-size:18px; }
.admin-nav { display:grid; gap:6px; margin-top:20px; }
.admin-nav a { padding:12px 13px; border-radius:11px; color:var(--muted); font-size:14px; font-weight:760; transition:.18s ease; }
.admin-nav a:hover,.admin-nav a.active { color:var(--text); background:var(--accent-soft); }
.admin-nav a.active { box-shadow:inset 3px 0 var(--accent), 0 0 24px rgba(var(--accent-rgb),.08); }
.admin-sidebar-bottom { margin-top:auto; display:grid; gap:8px; }
.admin-content { min-width:0; }
.admin-topbar { min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:0 30px; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20; background:color-mix(in srgb,var(--surface-strong) 92%, transparent); backdrop-filter:blur(16px) saturate(145%); }
.admin-topbar h1 { margin:0; font-size:22px; }
.admin-main { padding:30px; }
.admin-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.stat-card { padding:20px; border:1px solid var(--line); border-radius:16px; background:color-mix(in srgb,var(--surface-strong) 90%, transparent); box-shadow:0 15px 38px rgba(0,0,0,.08); }
.stat-card small { color:var(--muted); }
.stat-card strong { display:block; font-size:32px; margin-top:8px; }
.admin-panel { margin-top:20px; border:1px solid var(--line); background:color-mix(in srgb,var(--surface-strong) 91%, transparent); border-radius:18px; padding:22px; box-shadow:0 16px 42px rgba(0,0,0,.06); }
.admin-panel h2 { margin:0 0 18px; font-size:20px; }
.admin-form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.admin-form-grid .field label { color:var(--text); }
.admin-form-grid .input, .admin-form-grid select, .admin-form-grid textarea, .admin-panel .input, .admin-panel select, .admin-panel textarea { background:color-mix(in srgb,var(--bg-soft) 78%, var(--surface)); color:var(--text); border-color:var(--line); }
.admin-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.admin-table-wrap { overflow:auto; }
.admin-table { width:100%; border-collapse:collapse; min-width:760px; }
.admin-table th,.admin-table td { text-align:left; padding:13px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
.admin-table th { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.08em; }
.admin-table td { color:color-mix(in srgb,var(--text) 90%, var(--muted)); font-size:14px; }
.admin-table tr:last-child td { border-bottom:0; }
.action-link { color:var(--accent); font-weight:750; }
.danger { color:#e85c5c; }
.theme-picker { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.theme-option { position:relative; }
.theme-option input { position:absolute; opacity:0; pointer-events:none; }
.theme-preview { border:2px solid transparent; min-height:150px; border-radius:16px; padding:14px; cursor:pointer; display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; transition:.18s ease; }
.theme-preview:hover { transform:translateY(-2px); }
.theme-preview.dark { background:#050607; color:#fff; }
.theme-preview.light { background:#f8f8f6; color:#1b1b1b; }
.theme-preview.orange { --sw:#ff6500; }
.theme-preview.gold { --sw:#d8a62e; }
.theme-preview.green { --sw:#20f56f; }
.theme-preview.blue { --sw:#168cff; }
.theme-preview.red { --sw:#ff2945; }
.theme-preview .swatch-title { font-weight:850; }
.theme-preview .swatch-line { width:74%; height:9px; border-radius:8px; background:linear-gradient(90deg,var(--sw),transparent); box-shadow:0 0 18px color-mix(in srgb,var(--sw) 45%,transparent); }
.theme-preview .swatch-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.theme-preview .swatch-cards i { height:35px; border-radius:7px; border:1px solid color-mix(in srgb,var(--sw) 45%,transparent); background:color-mix(in srgb,var(--sw) 10%,transparent); }
.theme-option input:checked + .theme-preview { border-color:var(--accent); box-shadow:0 0 0 3px rgba(var(--accent-rgb),.12), 0 12px 34px rgba(var(--accent-rgb),.10); }
.switch-row { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:13px 0; border-bottom:1px solid var(--line); }
.switch-row:last-child { border-bottom:0; }
.switch { position:relative; width:48px; height:26px; flex:0 0 auto; }
.switch input { opacity:0; width:0; height:0; }
.switch span { position:absolute; inset:0; background:color-mix(in srgb,var(--muted) 48%, var(--surface)); border-radius:999px; cursor:pointer; transition:.2s; }
.switch span::after { content:""; position:absolute; width:20px;height:20px; left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.22);transition:.2s; }
.switch input:checked + span { background:var(--accent); box-shadow:0 0 18px rgba(var(--accent-rgb),.22); }
.switch input:checked + span::after { transform:translateX(22px); }
.login-wrap { min-height:100vh; display:grid; place-items:center; padding:24px; color:var(--text); background:radial-gradient(circle at 50% 0,rgba(var(--accent-rgb),.16),transparent 34%),linear-gradient(180deg,var(--bg-soft),var(--bg)); }
.login-card { width:min(100%,480px); padding:32px; border:1px solid var(--line); background:color-mix(in srgb,var(--surface-strong) 92%, transparent); border-radius:22px; box-shadow:var(--shadow); backdrop-filter:blur(18px) saturate(140%); }
.login-card h1 { margin:0 0 6px; }
.login-card p { color:var(--muted); line-height:1.6; }
.login-card .field { margin-top:16px; }
.login-card .input { background:color-mix(in srgb,var(--bg-soft) 82%, var(--surface)); border-color:var(--line); color:var(--text); }
.login-card .btn { width:100%; margin-top:18px; }
html[data-theme$="neon-green"] .admin-shell,
html[data-theme$="neon-green"] .login-card { box-shadow:var(--shadow), 0 0 48px rgba(var(--accent-rgb),.08); }
html[data-theme="black-neon-green"] .admin-sidebar { box-shadow:inset -1px 0 rgba(var(--accent-rgb),.06); }

@media (max-width: 1260px) {
  .site-header { grid-template-columns:auto auto 1fr; }
  .main-nav { position:absolute; top:72px; left:0; right:0; margin:0 10px; padding:14px; border-radius:18px; background:var(--surface-strong); border:1px solid var(--line); box-shadow:var(--shadow); display:none; grid-template-columns:repeat(3,1fr); }
  .main-nav.open { display:grid; }
  .main-nav a { padding:12px; text-align:center; border-radius:10px; }
  .main-nav a::after { display:none; }
  .nav-toggle { display:grid; }
  .site-header { grid-template-columns:auto 46px 1fr; }
  .header-actions { justify-self:end; }
  .hero { grid-template-columns:1fr 1fr; }
  .hero h1 { font-size:clamp(62px,7vw,92px); }
  .quick-grid { grid-template-columns:repeat(2,1fr); margin-top:10px; }
  .project-grid,.article-grid { grid-template-columns:repeat(2,1fr); }
  .admin-grid { grid-template-columns:repeat(2,1fr); }
  .theme-picker { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 900px) {
  :root { --header-h:68px; }
  .site-header { width:calc(100% - 18px); margin-top:9px; padding:0 12px; gap:10px; }
  .brand-text small { display:none; }
  .brand-text strong { font-size:15px; }
  .brand-mark { width:38px;height:38px; }
  .header-cta span { display:none; }
  .header-cta { width:46px; padding:0; }
  .hero { width:calc(100% - 28px); grid-template-columns:1fr; min-height:auto; margin-top:28px; }
  .hero-copy { padding:20px 0 0; }
  .hero h1 { font-size:clamp(58px,17vw,90px); }
  .hero-tagline { font-size:12px; letter-spacing:.22em; }
  .hero-text { font-size:16px; }
  .hero-visual { min-height:360px; order:-1; }
  .hero-monogram { font-size:clamp(130px,38vw,220px); }
  .orbit-a { width:96%; } .orbit-b{width:80%;}.orbit-c{width:62%;}
  .quick-grid,.value-strip,.section,.content-hero,.detail-layout,.form-shell,.site-footer { width:calc(100% - 28px); }
  .quick-grid { grid-template-columns:1fr; }
  .feature-card { min-height:145px; }
  .value-strip { grid-template-columns:1fr 1fr; }
  .value-item { border-right:0; border-bottom:1px solid var(--line); }
  .two-col,.detail-layout { grid-template-columns:1fr; }
  .sidebar-card { position:static; }
  .project-grid,.article-grid { grid-template-columns:1fr; }
  .content-hero { padding:34px 26px; }
  .form-grid,.category-grid { grid-template-columns:1fr; }
  .site-footer { grid-template-columns:1fr; text-align:center; justify-items:center; }
  .admin-shell { grid-template-columns:1fr; }
  .admin-sidebar { position:static; border-right:0; border-bottom:1px solid var(--line); }
  .admin-nav { grid-template-columns:repeat(3,1fr); }
  .admin-sidebar-bottom { margin-top:16px; grid-template-columns:1fr 1fr; }
  .admin-main { padding:20px; }
  .admin-form-grid { grid-template-columns:1fr; }
}
@media (max-width: 640px) {
  .main-nav { grid-template-columns:1fr 1fr; max-height:70vh; overflow:auto; }
  .hero-actions { display:grid; }
  .btn { width:100%; }
  .value-strip { grid-template-columns:1fr; }
  .section-heading { align-items:flex-start; flex-direction:column; }
  .admin-grid,.theme-picker,.admin-nav { grid-template-columns:1fr; }
  .admin-topbar { padding:0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:.001ms!important; animation-iteration-count:1!important; scroll-behavior:auto!important; transition-duration:.001ms!important; }
}
