:root {
  --bg: #050b12;
  --bg-2: #07121e;
  --panel: rgba(7, 17, 29, .86);
  --panel-2: rgba(11, 27, 44, .72);
  --line: rgba(132, 186, 226, .34);
  --line-strong: rgba(174, 219, 255, .72);
  --text: #eef7ff;
  --muted: #9aafc1;
  --accent: #ff304a;
  --accent-2: #ff6174;
  --cyan: #49dcff;
  --green: #33f0ad;
  --shadow: 0 22px 80px rgba(0, 0, 0, .38);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 5%, rgba(29, 73, 108, .24), transparent 30%),
    radial-gradient(circle at 5% 85%, rgba(255, 48, 74, .08), transparent 22%),
    linear-gradient(180deg, #06101b 0%, var(--bg) 35%, #03070b 100%);
  font-family: Inter, system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(109, 166, 207, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 166, 207, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
  z-index: -2;
}

button, a, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.shell { width: min(1440px, calc(100% - 34px)); margin-inline: auto; }
.mono { font-family: "Space Mono", ui-monospace, monospace; letter-spacing: .04em; }
.subtle { color: #7690a5; font-size: 11px; }

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .035; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}
.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 99;
  opacity: .05;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255,255,255,.15) 4px);
}
.cursor-glow {
  position: fixed; width: 360px; height: 360px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(50, 160, 230, .10), transparent 68%);
  transform: translate(-50%, -50%); transition: opacity .2s;
}

.topbar {
  position: sticky; top: 0; z-index: 50;
  height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border: 1px solid var(--line); border-top: 0; padding: 0 20px;
  background: rgba(3, 10, 18, .86); backdrop-filter: blur(16px);
  clip-path: polygon(0 0, 100% 0, 100% 76%, 98.8% 100%, 1.2% 100%, 0 76%);
}
.brand { font-size: 28px; font-weight: 800; letter-spacing: -.05em; justify-self: start; }
.brand span, h1 span { color: var(--accent); }
.nav { display: flex; gap: 34px; font-size: 12px; font-family: "Space Mono", monospace; }
.nav a { color: #a4b5c4; position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -12px; height: 2px; background: var(--accent); transition: right .2s; box-shadow: 0 0 14px var(--accent); }
.nav a:hover { color: white; }
.nav a:hover::after { right: 0; }
.status-pill { justify-self: end; background: transparent; border: 1px solid rgba(255,48,74,.55); padding: 9px 14px; font-family: "Space Mono"; font-size: 10px; letter-spacing: .08em; cursor: pointer; }
.status-dot { width: 7px; height: 7px; background: #7f8e99; border-radius: 50%; display: inline-block; margin-right: 8px; }
.status-pill.active .status-dot { background: var(--green); box-shadow: 0 0 12px var(--green); }

.dashboard { padding: 26px 0 18px; position: relative; z-index: 1; }
.panel { position: relative; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(9, 23, 38, .90), rgba(4, 12, 21, .90)); box-shadow: var(--shadow); overflow: hidden; }
.panel::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(145,198,238,.08); pointer-events: none; }
.panel::after { content: ""; position: absolute; width: 70px; height: 2px; right: 15px; top: 11px; background: linear-gradient(90deg, transparent, var(--accent)); opacity: .75; }
.panel-label { color: var(--accent-2); font: 700 12px "Space Mono", monospace; letter-spacing: .08em; padding: 11px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(255,48,74,.06), transparent 30%); }
.panel-label.static { padding: 0; border: 0; background: none; }

.hero-panel { border-radius: var(--radius); }
.hero-grid { display: grid; grid-template-columns: 310px 1fr 330px; gap: 28px; padding: 28px; align-items: stretch; }
.portrait-frame, .identity-card { border: 1px solid var(--line-strong); background: #07111c; min-height: 290px; position: relative; }
.portrait-frame { padding: 10px; clip-path: polygon(0 0, 87% 0, 100% 12%, 100% 100%, 0 100%); }
.portrait-placeholder { height: 100%; min-height: 250px; display: grid; place-items: center; position: relative; overflow: hidden; background:
  radial-gradient(circle at 60% 40%, rgba(255,48,74,.22), transparent 22%),
  linear-gradient(140deg, #0d2337, #09121c 55%, #0c1722); }
.portrait-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(80,155,205,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(80,155,205,.12) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(circle, black, transparent 85%); }
.portrait-initials { font: 800 74px Inter; letter-spacing: -.08em; color: rgba(233,246,255,.12); transform: rotate(-7deg); }
.portrait-note { position: absolute; bottom: 18px; left: 18px; font: 10px "Space Mono"; color: #88a5b9; }
.portrait-meta { position: absolute; top: 18px; left: 18px; display: grid; gap: 4px; font-size: 9px; color: #89a2b5; z-index: 2; }

.hero-copy { align-self: center; padding: 8px 0; }
.eyebrow { color: #9eb3c4; font-size: 14px; }
h1 { margin: 16px 0 8px; font-size: clamp(46px, 5.4vw, 82px); line-height: .96; letter-spacing: -.055em; }
.role { color: #a7bbca; font-size: 12px; line-height: 1.8; }
.divider { height: 1px; background: linear-gradient(90deg, var(--accent), rgba(255,48,74,.15), transparent); margin: 25px 0; position: relative; }
.divider span { width: 90px; height: 3px; background: var(--accent); position: absolute; top: -1px; box-shadow: 0 0 16px rgba(255,48,74,.75); }
.quote { color: #b2c2cf; font-family: "Space Mono"; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.primary-btn, .ghost-btn { border: 1px solid rgba(255,48,74,.7); padding: 11px 16px; cursor: pointer; background: rgba(255,48,74,.07); font: 700 11px "Space Mono"; letter-spacing: .06em; transition: .2s ease; }
.primary-btn:hover { background: var(--accent); color: #05070a; box-shadow: 0 0 24px rgba(255,48,74,.38); }
.ghost-btn { border-color: var(--line); background: rgba(255,255,255,.015); }
.ghost-btn:hover { border-color: var(--line-strong); background: rgba(117,185,233,.08); }

.identity-card { padding: 18px; clip-path: polygon(0 0, 95% 0, 100% 9%, 100% 100%, 5% 100%, 0 91%); }
.identity-title { font-size: 10px; color: #8ba2b5; margin-bottom: 12px; }
.identity-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-bottom: 1px solid rgba(136,187,224,.18); padding: 13px 2px; }
.identity-row span { font: 10px "Space Mono"; color: #849db1; }
.identity-row strong { font-size: 14px; font-weight: 600; }
.online { color: var(--green); font-family: "Space Mono"; font-size: 12px !important; }
.online i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 7px; box-shadow: 0 0 14px var(--green); }
.mini-map { height: 60px; color: var(--accent); opacity: .45; margin-top: 10px; }
.mini-map svg { width: 100%; height: 100%; }

.links-panel { margin-top: 14px; border-radius: var(--radius); }
.panel-head { padding: 13px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.panel-head.compact { padding: 11px 14px; }
.social-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; padding: 14px; }
.social-card { position: relative; min-height: 82px; border: 1px solid rgba(138,190,228,.28); background: linear-gradient(180deg, rgba(18,42,65,.65), rgba(7,18,29,.8)); padding: 13px; display: flex; align-items: center; gap: 12px; overflow: hidden; cursor: pointer; transition: transform .18s, border-color .18s, background .18s; }
.social-card:hover { transform: translateY(-3px); border-color: rgba(230,245,255,.72); background: linear-gradient(180deg, rgba(29,59,86,.78), rgba(8,20,32,.95)); }
.social-card::after { content: "↗"; position: absolute; right: 12px; bottom: 10px; color: #8da4b7; }
.social-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #101f2d; font-weight: 800; font-size: 18px; box-shadow: inset 0 0 18px rgba(255,255,255,.04); }
.social-copy strong { display: block; font-size: 13px; }
.social-copy span { display: block; color: #8298aa; font-size: 10px; margin-top: 3px; }

.widgets-grid { display: grid; grid-template-columns: 1.25fr 1.05fr .92fr 1fr; gap: 12px; margin-top: 12px; }
.widget { border-radius: var(--radius); min-height: 290px; padding-bottom: 14px; }
.widget-title { font-size: 18px; font-weight: 700; margin: 18px 16px 6px; }
.widget-copy { color: #8fa4b5; font-size: 12px; line-height: 1.6; margin: 0 16px 14px; }
.message-form { margin: 0 16px; display: grid; gap: 8px; }
.message-form input, .message-form textarea, .terminal-input-row input { width: 100%; border: 1px solid rgba(141,190,227,.24); background: rgba(1,7,13,.7); color: white; padding: 10px 11px; outline: none; resize: none; }
.message-form input:focus, .message-form textarea:focus, .terminal-input-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,48,74,.08); }
.message-feed { margin: 12px 16px 0; max-height: 74px; overflow: auto; font: 10px "Space Mono"; color: #8ea5b7; }
.message-feed p { margin: 4px 0; }

.audio-widget { display: grid; grid-template-columns: 118px 1fr; align-content: start; }
.audio-widget .panel-head { grid-column: 1 / -1; }
.disc-wrap { width: 92px; height: 92px; border: 1px solid var(--line); display: grid; place-items: center; margin: 22px 0 0 16px; background: #08111a; }
.disc { width: 65px; height: 65px; border-radius: 50%; background: repeating-radial-gradient(circle, #14212b 0 2px, #060a0e 3px 4px); position: relative; }
.disc::after { content:""; position:absolute; inset: 25px; border-radius:50%; background: var(--accent); box-shadow: 0 0 20px rgba(255,48,74,.4); }
.audio-widget.playing .disc { animation: spin 4s linear infinite; }
.level { height: 4px; margin: 10px 16px 12px; background: rgba(123,169,202,.15); overflow: hidden; }
.level span { display:block; width:0%; height:100%; background: var(--accent); box-shadow:0 0 12px var(--accent); transition: width .2s; }
@keyframes spin { to { transform: rotate(360deg); } }

.date { margin: 18px 16px 0; color:#91a8ba; font-size:11px; }
.clock { margin: 6px 16px 0; font: 700 42px "Space Mono"; letter-spacing: -.08em; }
.radar { width: 92px; height: 92px; border: 1px solid rgba(121,188,228,.25); border-radius: 50%; margin: 8px 16px; position: relative; background: repeating-radial-gradient(circle, transparent 0 14px, rgba(82,158,207,.12) 15px 16px); overflow:hidden; }
.radar::before, .radar::after { content:""; position:absolute; background:rgba(100,178,224,.15); }
.radar::before { width:1px; top:0; bottom:0; left:50%; }
.radar::after { height:1px; left:0; right:0; top:50%; }
.radar span { position:absolute; width:50%; height:50%; left:50%; top:0; transform-origin:0 100%; background: conic-gradient(from 90deg at 0 100%, rgba(73,220,255,.35), transparent 26%); animation: radar 3s linear infinite; }
.radar i { position:absolute; width:5px; height:5px; left:65%; top:37%; border-radius:50%; background:var(--green); box-shadow:0 0 10px var(--green); }
@keyframes radar { to { transform: rotate(360deg); } }

.season-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:18px 14px; }
.season-grid a { min-height:74px; border:1px solid rgba(128,186,226,.27); padding:14px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; font-family:"Space Mono"; font-size:12px; background:rgba(8,21,34,.65); transition:.2s; }
.season-grid a:hover { border-color:var(--accent); background:rgba(255,48,74,.07); transform:translateY(-2px); }
.season-grid b { color:#758fa3; }

.footer { border-top: 1px solid var(--line); margin-top: 2px; min-height: 130px; padding: 25px 10px 36px; display:grid; grid-template-columns:1fr 1fr 1fr; align-items:center; color:#879daf; position:relative; z-index:1; }
.footer strong { color:white; font-size:22px; }
.footer p { font:9px "Space Mono"; line-height:1.8; text-transform:uppercase; }
.footer-center { text-align:center; color:#d1dfeb; font-size:13px; }
.footer-center span { color:#71889b; font-size:10px; }
.copy-email { justify-self:end; border:0; background:transparent; color:#a9bccb; cursor:pointer; font:11px "Space Mono"; padding:12px; }
.copy-email span { color:var(--accent); margin-left:8px; }

.command-dialog { border:0; padding:0; background:transparent; color:white; width:min(720px, calc(100% - 30px)); }
.command-dialog::backdrop { background:rgba(0,5,10,.72); backdrop-filter:blur(7px); }
.terminal-box { border:1px solid var(--line-strong); background:#02080e; box-shadow:0 0 70px rgba(21,90,137,.3); }
.terminal-top { padding:12px 14px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; color:var(--accent); font-size:11px; }
.terminal-top button { background:none; border:0; color:white; font-size:22px; cursor:pointer; }
.terminal-output { padding:18px; min-height:260px; max-height:420px; overflow:auto; color:#9eb4c5; font-size:12px; line-height:1.7; }
.terminal-output strong { color:var(--accent-2); }
.terminal-input-row { display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:center; border-top:1px solid var(--line); padding:12px 14px; color:var(--accent); }
.terminal-input-row input { border:0; background:transparent; padding:3px 0; font-family:"Space Mono"; }

.toast { position:fixed; right:18px; bottom:18px; z-index:120; background:#07121d; border:1px solid var(--line-strong); padding:11px 14px; font-size:10px; opacity:0; transform:translateY(10px); pointer-events:none; transition:.22s; }
.toast.show { opacity:1; transform:none; }

.reveal { opacity:0; transform:translateY(18px); transition:opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity:1; transform:none; }
.tilt-card { transform-style:preserve-3d; transition:transform .12s ease; }

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 260px 1fr; }
  .identity-card { grid-column: 1 / -1; display:grid; grid-template-columns:repeat(4,1fr); min-height:auto; }
  .identity-title, .mini-map { display:none; }
  .identity-row { border-right:1px solid rgba(136,187,224,.18); border-bottom:0; flex-direction:column; align-items:flex-start; }
  .social-grid { grid-template-columns:repeat(4,1fr); }
  .widgets-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 760px) {
  .shell { width:min(100% - 18px, 1440px); }
  .topbar { height:64px; grid-template-columns:auto 1fr auto; padding:0 12px; }
  .nav { display:none; }
  .brand { font-size:22px; }
  .status-pill { font-size:8px; padding:8px 9px; }
  .dashboard { padding-top:12px; }
  .hero-grid { grid-template-columns:1fr; padding:16px; gap:16px; }
  .portrait-frame { min-height:230px; }
  .portrait-placeholder { min-height:210px; }
  h1 { font-size:clamp(42px, 14vw, 70px); }
  .identity-card { grid-template-columns:1fr 1fr; }
  .identity-row { border-bottom:1px solid rgba(136,187,224,.18); }
  .social-grid { grid-template-columns:1fr 1fr; padding:10px; }
  .social-card { min-height:74px; }
  .widgets-grid { grid-template-columns:1fr; }
  .footer { grid-template-columns:1fr; text-align:center; gap:16px; }
  .copy-email { justify-self:center; }
  .footer-center { order:3; }
  .cursor-glow { display:none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.01ms !important; }
}
