:root {
  color-scheme: dark;
  --void: #040609;
  --ink: #070a0e;
  --panel: #0a1117;
  --panel-2: #101922;
  --cyan: #42edf4;
  --cyan-soft: #9afaff;
  --red: #ff355c;
  --red-soft: #ff6a84;
  --green: #43f59a;
  --white: #eafcff;
  --text: #9cbec4;
  --muted: #57747b;
  --line: rgba(66, 237, 244, .18);
  --line-red: rgba(255, 53, 92, .32);
  --earth: #67f25e;
  --earth-soft: #b0f7a8;
  --earth-stone: #d9cdb5;
  --earth-muted: #99998b;
  --container: 1320px;
  --mono: "Cascadia Code", "IBM Plex Mono", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--void); }
body { margin: 0; min-width: 320px; background: var(--void); color: var(--text); font-family: var(--sans); }
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .22;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .34) 0 1px, transparent 1px 4px);
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.hidden { display: none !important; }
.skip-link {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 2000;
  padding: 10px 14px;
  background: var(--cyan);
  color: #021013;
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.container, .earth-container { width: min(var(--container), calc(100% - 64px)); margin: 0 auto; }
.site-shell { min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 8% 4%, rgba(255, 53, 92, .09), transparent 28%), radial-gradient(circle at 92% 10%, rgba(66, 237, 244, .07), transparent 30%), var(--void); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 0 max(32px, calc((100vw - var(--container)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(4, 6, 9, .9);
  backdrop-filter: blur(18px);
  font-family: var(--mono);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 32%;
  height: 1px;
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 53, 92, .6);
}
.brand { display: flex; align-items: baseline; gap: 5px; width: max-content; }
.brand > span { color: var(--red); font-size: 28px; font-weight: 900; }
.brand strong { color: var(--white); font-size: 23px; letter-spacing: .18em; }
.brand small { margin-left: 10px; color: #46636a; font-size: 7px; letter-spacing: .18em; }
.site-header nav { display: flex; align-items: center; gap: 34px; }
.site-header nav a { position: relative; color: #79959c; font-size: 10px; letter-spacing: .12em; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--cyan); transition: right .18s; }
.site-header nav a:hover { color: var(--cyan-soft); }
.site-header nav a:hover::after { right: 0; }
.system-status { justify-self: end; display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 8px; letter-spacing: .12em; }
.system-status i, .toph-online i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; animation: pulse 2.2s infinite; }
.mobile-menu { display: none; border: 1px solid var(--line); background: transparent; padding: 8px 11px; color: var(--cyan); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; cursor: pointer; }
@keyframes pulse { 50% { opacity: .38; box-shadow: 0 0 3px currentColor; } }

.library-hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding: 88px 0 104px;
  overflow: hidden;
}
.scan-grid {
  position: absolute;
  inset: 0;
  opacity: .72;
  background: linear-gradient(90deg, rgba(66, 237, 244, .035) 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(rgba(255, 53, 92, .025) 1px, transparent 1px) 0 0 / 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.library-hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: 4%;
  top: 12%;
  border: 1px solid rgba(66, 237, 244, .1);
  border-radius: 50%;
  box-shadow: 0 0 120px rgba(66, 237, 244, .05), inset 0 0 100px rgba(255, 53, 92, .035);
}
.vertical-code { position: absolute; top: 50%; color: #223940; font: 7px var(--mono); letter-spacing: .2em; writing-mode: vertical-rl; }
.vertical-code.left { left: 14px; }
.vertical-code.right { right: 14px; transform: rotate(180deg); }
.hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr); gap: clamp(42px, 7vw, 100px); align-items: center; }
.reveal { animation: reveal .7s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } }
.kicker { margin: 0 0 22px; color: var(--cyan); font: 10px var(--mono); letter-spacing: .18em; }
.kicker b { color: var(--red); margin-right: 8px; }
.hero-copy h1 { max-width: 760px; margin: 0; color: var(--white); font: 850 clamp(55px, 6.6vw, 106px) / .9 var(--sans); letter-spacing: -.065em; }
.hero-copy h1 span { display: block; color: transparent; -webkit-text-stroke: 1px var(--red); text-shadow: 0 0 34px rgba(255, 53, 92, .14); }
.hero-text { max-width: 690px; margin: 30px 0 0; color: #8aa7ad; font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 23px;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
  font: 800 10px var(--mono);
  letter-spacing: .1em;
  cursor: pointer;
  transition: transform .18s, background .18s, box-shadow .18s;
}
.button:hover { transform: translateY(-2px); }
.button-red { border-color: var(--red); background: var(--red); color: #fff; }
.button-red:hover { background: var(--red-soft); box-shadow: 0 12px 34px rgba(255, 53, 92, .2); }
.button-ghost { background: rgba(7, 17, 22, .76); color: var(--cyan); }
.button-ghost:hover { background: var(--cyan); color: #031014; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; padding-top: 19px; border-top: 1px solid rgba(66, 237, 244, .1); }
.hero-stats span { color: #526d74; font: 8px var(--mono); letter-spacing: .11em; }
.hero-stats strong { margin-right: 5px; color: var(--white); font-size: 12px; }

.feature-terminal {
  min-width: 0;
  border: 1px solid rgba(66, 237, 244, .3);
  background: rgba(4, 8, 11, .94);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .5), 0 0 60px rgba(66, 237, 244, .06);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  animation-delay: .08s;
}
.feature-terminal > header { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(66, 237, 244, .11), transparent 60%, rgba(255, 53, 92, .09)); color: #78969c; font: 8px var(--mono); letter-spacing: .13em; }
.feature-terminal > header div { display: flex; gap: 6px; }
.feature-terminal > header i { width: 7px; height: 7px; border-radius: 50%; background: #29464e; }
.feature-terminal > header i:first-child { background: var(--red); }
.feature-visual { position: relative; height: 190px; overflow: hidden; border-bottom: 1px solid var(--line-red); }
.feature-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #050a0e, transparent 70%); }
.feature-visual img { width: 100%; height: 100%; object-fit: cover; }
.feature-data { padding: 24px 26px 28px; }
.feature-data > p:first-child { margin: 0 0 18px; color: #729198; font: 9px var(--mono); }
.feature-data > p:first-child span { color: var(--cyan); }
.feature-data small { color: #536f76; font: 7px var(--mono); letter-spacing: .12em; }
.feature-data h2 { margin: 7px 0 10px; color: var(--white); font-size: 31px; letter-spacing: .04em; }
.feature-data > p:not(:first-child) { margin: 0; color: #79959c; font-size: 13px; line-height: 1.55; }
.feature-terminal > a { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-top: 1px solid var(--line); background: rgba(66, 237, 244, .07); color: var(--cyan); font: 800 10px var(--mono); letter-spacing: .12em; transition: background .18s, color .18s; }
.feature-terminal > a:hover { background: var(--cyan); color: #031014; }
.empty-terminal { min-height: 400px; display: flex; flex-direction: column; }
.empty-terminal .feature-data { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.section { position: relative; padding: 110px 0; }
.projects-library { border-top: 1px solid var(--line); background: #06090d; }
.projects-library::before { content: "PROJECTS"; position: absolute; right: -30px; top: 18px; color: rgba(66, 237, 244, .025); font-size: 155px; font-weight: 900; letter-spacing: -.08em; }
.section-heading { position: relative; z-index: 2; display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 43px; }
.section-heading p { margin: 0 0 11px; color: var(--red); font: 9px var(--mono); letter-spacing: .18em; }
.section-heading h2 { margin: 0; color: var(--white); font-size: clamp(36px, 4vw, 58px); letter-spacing: -.05em; }
.section-heading > span { color: #456168; font: 8px var(--mono); letter-spacing: .12em; }
.search-control { width: min(390px, 100%); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.search-control span { color: var(--cyan); font: 8px var(--mono); letter-spacing: .12em; }
.search-control input { width: 100%; height: 48px; border: 1px solid var(--line); outline: 0; padding: 0 14px; background: #071015; color: var(--white); font: 11px var(--mono); }
.search-control input:focus { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(66, 237, 244, .12); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.project-card { min-height: 430px; display: grid; grid-template-columns: .88fr 1.12fr; border: 1px solid var(--line); background: linear-gradient(135deg, #0b1116, #070a0d); overflow: hidden; transition: border-color .2s, transform .2s; }
.project-card:hover { border-color: var(--cyan); transform: translateY(-3px); }
.project-card.featured { grid-column: span 2; min-height: 520px; grid-template-columns: 1.06fr .94fr; }
.project-card-image { position: relative; min-height: 100%; overflow: hidden; background: #081015; }
.project-card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 52%, rgba(5, 9, 12, .9)), linear-gradient(to top, rgba(3, 6, 9, .65), transparent 45%); }
.project-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover img { transform: scale(1.035); }
.project-index { position: absolute; z-index: 2; left: 18px; top: 14px; color: rgba(255, 255, 255, .36); font: 900 40px var(--sans); }
.status-pill { display: inline-flex; width: max-content; align-items: center; padding: 6px 8px; border: 1px solid currentColor; font: 8px var(--mono); letter-spacing: .1em; }
.project-card-image .status-pill { position: absolute; z-index: 3; right: 14px; top: 16px; }
.status-active { color: var(--green); background: rgba(67, 245, 154, .08); }
.status-development { color: var(--cyan); background: rgba(66, 237, 244, .08); }
.status-paused { color: #ffbd4a; background: rgba(255, 189, 74, .08); }
.status-archived { color: #8e98a2; background: rgba(142, 152, 162, .08); }
.project-card-copy { padding: 38px 34px; display: flex; flex-direction: column; justify-content: center; }
.project-card-copy > small { color: #58747b; font: 8px var(--mono); letter-spacing: .13em; }
.project-card-copy h3 { margin: 11px 0 14px; color: var(--white); font-size: clamp(31px, 3vw, 48px); letter-spacing: -.05em; }
.project-card-copy > p { margin: 0; color: #829ca2; font-size: 14px; line-height: 1.65; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 21px; }
.tag-row span { padding: 6px 8px; border: 1px solid var(--line); color: #6ea6ad; font: 7px var(--mono); letter-spacing: .08em; }
.project-card-copy > strong { margin-top: 34px; color: var(--cyan); font: 800 9px var(--mono); letter-spacing: .12em; }
.project-card-copy > strong b { float: right; font-size: 17px; }
.empty-library { grid-column: 1 / -1; padding: 65px; border: 1px dashed var(--line); text-align: center; background: rgba(7, 14, 18, .6); }
.empty-library strong { color: var(--white); font: 18px var(--mono); }
.empty-library p { color: var(--muted); }
.empty-library a { color: var(--cyan); font: 9px var(--mono); letter-spacing: .1em; }
.empty-result { margin: 25px 0 0; color: var(--muted); font: 10px var(--mono); }

.feed-section { border-top: 1px solid var(--line-red); background: linear-gradient(180deg, #07090d, #0a080d); }
.feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.feed-card { min-height: 330px; display: flex; flex-direction: column; border: 1px solid var(--line-red); background: #0a0d12; transition: transform .18s, border-color .18s; }
.feed-card:hover { transform: translateY(-3px); border-color: var(--red); }
.feed-image { height: 160px; overflow: hidden; border-bottom: 1px solid var(--line-red); }
.feed-image img { width: 100%; height: 100%; object-fit: cover; }
.feed-card-copy { flex: 1; display: flex; flex-direction: column; padding: 25px; }
.feed-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 24px; color: var(--red); font: 8px var(--mono); letter-spacing: .1em; }
.feed-meta time { color: #536b72; }
.feed-card small { color: #455d64; font: 7px var(--mono); letter-spacing: .12em; }
.feed-card h3 { margin: 10px 0 12px; color: var(--white); font-size: 23px; line-height: 1.15; }
.feed-card p { margin: 0; color: #78949a; font-size: 13px; line-height: 1.6; }
.feed-card a { margin-top: auto; padding-top: 25px; color: var(--cyan); font: 8px var(--mono); letter-spacing: .1em; }

.about-section { border-top: 1px solid var(--line-red); background: linear-gradient(90deg, rgba(255, 53, 92, .055), transparent 38%); }
.about-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; align-items: center; }
.identity-card { position: relative; min-height: 350px; display: flex; flex-direction: column; justify-content: center; padding: 46px; border: 1px solid var(--line-red); border-left: 4px solid var(--red); background: #090c11; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); overflow: hidden; }
.identity-card::after { content: "G"; position: absolute; right: 12px; bottom: -66px; color: rgba(255, 53, 92, .045); font-size: 285px; font-weight: 900; }
.identity-card small { color: var(--red); font: 8px var(--mono); letter-spacing: .15em; }
.identity-card strong { position: relative; z-index: 2; margin: 18px 0 8px; color: var(--white); font-size: clamp(45px, 6vw, 76px); letter-spacing: -.06em; }
.identity-card > span { color: var(--cyan); font: 9px var(--mono); letter-spacing: .14em; }
.identity-bars { position: absolute; left: 45px; right: 45px; bottom: 30px; display: flex; gap: 4px; }
.identity-bars i { flex: 1; height: 3px; background: var(--red); opacity: .22; }
.identity-bars i:nth-child(2) { opacity: .55; }
.identity-bars i:nth-child(3) { background: var(--cyan); opacity: .7; }
.about-copy h2 { max-width: 760px; margin: 0; color: var(--white); font-size: clamp(38px, 4.3vw, 64px); line-height: 1.03; letter-spacing: -.055em; }
.about-copy > p:not(.kicker) { max-width: 760px; color: #7e9ba1; font-size: 17px; line-height: 1.75; }

.contact-section { background: #05080b; }
.contact-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; padding: 52px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(66, 237, 244, .055), transparent 45%, rgba(255, 53, 92, .06)); }
.contact-panel h2 { margin: 0; color: var(--white); font-size: clamp(40px, 5vw, 69px); letter-spacing: -.06em; }
.contact-panel > div > p:last-child { color: #718f96; line-height: 1.65; }
.social-list { display: grid; gap: 10px; }
.social-card { width: 100%; min-height: 80px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 17px; border: 1px solid var(--line); background: #071015; text-align: left; cursor: pointer; transition: background .18s, border-color .18s; }
.social-card:hover { border-color: var(--cyan); background: rgba(66, 237, 244, .075); }
.social-card > b { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-red); color: var(--red); font: 800 10px var(--mono); }
.social-card small { display: block; color: #4d6970; font: 7px var(--mono); letter-spacing: .12em; }
.social-card strong { display: block; margin-top: 5px; color: var(--white); font-size: 13px; }
.social-card em { color: var(--cyan); font: 8px var(--mono); letter-spacing: .1em; }
.site-footer { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 max(32px, calc((100vw - var(--container)) / 2)); border-top: 1px solid var(--line); background: #040609; color: #466067; font: 8px var(--mono); letter-spacing: .1em; }
.site-footer div { display: flex; gap: 20px; }
.site-footer a { color: var(--cyan); }

.project-hero { position: relative; min-height: 720px; display: flex; align-items: end; padding: 130px 0 90px; overflow: hidden; }
.project-hero-media, .project-hero-shade { position: absolute; inset: 0; }
.project-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.project-hero-shade { background: linear-gradient(90deg, rgba(3, 6, 9, .98) 0, rgba(3, 6, 9, .84) 45%, rgba(3, 6, 9, .22)), linear-gradient(to top, var(--void), transparent 60%); }
.project-hero-content { position: relative; z-index: 2; }
.back-link { display: inline-block; margin-bottom: 70px; color: var(--cyan); font: 9px var(--mono); letter-spacing: .1em; }
.project-hero-content .status-pill { margin-bottom: 22px; }
.project-hero-content h1 { max-width: 900px; margin: 0; color: var(--white); font-size: clamp(64px, 8vw, 120px); line-height: .9; letter-spacing: -.065em; }
.project-hero-content > p:not(.kicker) { max-width: 720px; color: #a1bbc0; font-size: 19px; line-height: 1.65; }
.project-content-section { background: #070a0e; }
.project-content-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 85px; }
.project-content-grid h2 { margin: 0 0 24px; color: var(--white); font-size: clamp(42px, 5vw, 70px); letter-spacing: -.055em; }
.long-copy { color: #8ca6ac; font-size: 17px; line-height: 1.85; }
.feature-list { border: 1px solid var(--line); background: #081015; }
.feature-list > small { display: block; padding: 18px 20px; border-bottom: 1px solid var(--line); color: var(--red); font: 8px var(--mono); letter-spacing: .13em; }
.feature-list > div { display: grid; grid-template-columns: 45px 1fr; gap: 15px; padding: 20px; border-bottom: 1px solid rgba(66, 237, 244, .08); }
.feature-list > div:last-child { border: 0; }
.feature-list span { color: #3d5b62; font: 11px var(--mono); }
.feature-list strong { color: var(--white); font-size: 14px; }

.not-found, .loading-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px; background: radial-gradient(circle, rgba(255, 53, 92, .08), transparent 40%), var(--void); text-align: center; }
.not-found > span { color: var(--red); font: 10px var(--mono); letter-spacing: .15em; }
.not-found h1 { max-width: 900px; margin: 18px 0; color: var(--white); font-size: clamp(45px, 7vw, 100px); line-height: .9; letter-spacing: -.06em; }
.not-found p { color: var(--muted); }
.not-found .button { margin-top: 24px; }
.loading-mark { color: var(--white); font: 800 34px var(--mono); letter-spacing: .14em; }
.loading-screen p { color: var(--cyan); font: 9px var(--mono); letter-spacing: .14em; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.image-placeholder { min-height: 180px; display: grid; place-items: center; background: linear-gradient(135deg, #111820, #080c11); color: #354e55; font: 9px var(--mono); letter-spacing: .12em; }

/* TOPH-BOT / Earthcore */
.toph-shell { min-height: 100vh; overflow: hidden; background: #030603; color: var(--earth-stone); }
.toph-shell ::selection { background: var(--earth); color: #041004; }
.toph-header { position: sticky; top: 0; z-index: 60; min-height: 86px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 0 max(34px, calc((100vw - var(--container)) / 2)); border-bottom: 1px solid rgba(103, 242, 94, .16); background: rgba(3, 6, 3, .92); backdrop-filter: blur(18px); font-family: var(--mono); }
.toph-brand { display: flex; align-items: center; gap: 8px; width: max-content; }
.toph-brand > span { color: var(--earth); font-size: 21px; text-shadow: 0 0 15px rgba(103, 242, 94, .55); }
.toph-brand strong { color: var(--earth-stone); font-size: 21px; letter-spacing: .06em; }
.toph-brand small { margin-left: 7px; color: #536553; font-size: 7px; letter-spacing: .12em; }
.toph-header nav { display: flex; gap: 28px; }
.toph-header nav a { color: #96998a; font: 9px var(--mono); letter-spacing: .1em; }
.toph-header nav a:hover { color: var(--earth-soft); }
.toph-online { justify-self: end; display: flex; align-items: center; gap: 8px; color: var(--earth); font: 8px var(--mono); letter-spacing: .1em; }
.toph-hero { position: relative; min-height: calc(100vh - 86px); display: flex; align-items: center; overflow: hidden; }
.toph-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.toph-vignette { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(1, 3, 1, .98) 0, rgba(1, 3, 1, .87) 32%, rgba(1, 3, 1, .2) 65%, rgba(1, 3, 1, .08)), linear-gradient(to bottom, transparent 63%, #030603); }
.toph-hero-copy { position: relative; z-index: 2; padding: 105px 0 120px; }
.earth-kicker { margin: 0 0 23px; color: var(--earth); font: 10px var(--mono); letter-spacing: .16em; }
.toph-hero h1 { max-width: 820px; margin: 0; color: var(--earth-stone); font: 900 clamp(63px, 7.2vw, 116px) / .89 Impact, "Arial Narrow", sans-serif; letter-spacing: -.03em; text-shadow: 0 3px 0 #4f493d, 0 18px 50px rgba(0, 0, 0, .7); }
.toph-hero-copy > p:not(.earth-kicker) { max-width: 600px; margin: 29px 0 0; color: #c5bdab; font-size: 19px; line-height: 1.55; }
.toph-hero-copy > p strong { color: var(--earth); }
.earth-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.earth-button { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid rgba(103, 242, 94, .35); background: rgba(4, 10, 4, .72); color: var(--earth-soft); font: 800 10px var(--mono); letter-spacing: .08em; transition: transform .18s, box-shadow .18s, background .18s; }
.earth-button.primary { border-color: var(--earth); background: linear-gradient(#2e952d, #155215); color: #fff; box-shadow: 0 0 25px rgba(103, 242, 94, .22); }
.earth-button.console { border-color: #d2be69; color: #f1df8c; }
.earth-button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(103, 242, 94, .17); }
.earth-trust { display: flex; align-items: center; gap: 12px; margin-top: 30px; color: #aaa692; font: 9px var(--mono); letter-spacing: .08em; }
.earth-trust i { width: 5px; height: 5px; border-radius: 50%; background: var(--earth); }
.toph-overview { position: relative; z-index: 3; padding: 0 0 110px; background: #030603; }
.toph-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(103, 242, 94, .17); background: #070c07; transform: translateY(-35px); box-shadow: 0 30px 80px rgba(0, 0, 0, .36); }
.toph-stats article { padding: 27px; border-right: 1px solid rgba(103, 242, 94, .13); }
.toph-stats article:last-child { border: 0; }
.toph-stats strong { display: block; color: var(--earth); font: 31px var(--mono); }
.toph-stats span { color: #777d6f; font: 8px var(--mono); letter-spacing: .11em; }
.earth-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 25px; }
.earth-feature-grid article { min-height: 260px; padding: 28px; border: 1px solid rgba(217, 205, 181, .12); background: #080d08; }
.earth-feature-grid article > span { color: rgba(103, 242, 94, .42); font: 13px var(--mono); }
.earth-feature-grid h2 { margin: 52px 0 11px; color: var(--earth-stone); font-size: 23px; }
.earth-feature-grid p { margin: 0; color: #808375; font-size: 13px; line-height: 1.6; }
.toph-commands { padding: 110px 0; border-top: 1px solid rgba(103, 242, 94, .13); background: linear-gradient(#050805, #091109); }
.earth-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.earth-heading h2 { margin: 0; color: var(--earth-stone); font-size: clamp(40px, 4.5vw, 67px); letter-spacing: -.055em; }
.earth-heading > span { color: #596557; font: 8px var(--mono); letter-spacing: .11em; }
.command-console { border: 1px solid rgba(103, 242, 94, .2); background: rgba(4, 8, 4, .92); box-shadow: 0 28px 90px rgba(0, 0, 0, .38); }
.command-controls { padding: 21px; border-bottom: 1px solid rgba(103, 242, 94, .15); background: #081008; }
.command-controls label { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.command-controls label span { color: var(--earth); font: 8px var(--mono); letter-spacing: .1em; }
.command-controls input { width: 100%; height: 47px; border: 1px solid rgba(103, 242, 94, .2); outline: 0; padding: 0 14px; background: #030603; color: var(--earth-stone); font: 11px var(--mono); }
.command-controls input:focus { border-color: var(--earth); }
.command-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.command-tabs button { min-height: 33px; padding: 0 10px; border: 1px solid rgba(217, 205, 181, .12); background: #0a0f0a; color: #787e71; font: 8px var(--mono); cursor: pointer; }
.command-tabs button:hover, .command-tabs button.active { border-color: var(--earth); background: rgba(103, 242, 94, .1); color: var(--earth-soft); }
.command-result { display: flex; justify-content: space-between; padding: 11px 21px; border-bottom: 1px solid rgba(103, 242, 94, .1); color: #485547; font: 8px var(--mono); letter-spacing: .1em; }
.command-result strong { color: var(--earth); }
.command-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(103, 242, 94, .09); }
.command-card { min-height: 148px; padding: 21px; background: #060a06; }
.command-card:hover { background: #0b140b; }
.command-card > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.command-card code { color: var(--earth-soft); font: 800 16px var(--mono); }
.command-card div span { padding: 4px 6px; border: 1px solid #385037; color: #6a8467; font: 7px var(--mono); text-transform: uppercase; }
.command-card div .access-admin { border-color: #746528; color: #baaa5a; }
.command-card div .access-owner { border-color: #743030; color: #d06a6a; }
.command-card div .access-premium { border-color: #705187; color: #bc91d4; }
.command-card p { min-height: 42px; margin: 17px 0 12px; color: #8d8f84; font-size: 13px; line-height: 1.5; }
.command-card small { color: #485547; font: 7px var(--mono); letter-spacing: .08em; }
.command-empty { grid-column: 1 / -1; padding: 45px; background: #060a06; color: #687266; text-align: center; }
.toph-connect { padding: 105px 0; border-top: 1px solid rgba(103, 242, 94, .12); background: #040704; }
.toph-connect-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 75px; align-items: center; }
.toph-connect h2, .toph-donation h2 { margin: 0; color: var(--earth-stone); font-size: clamp(40px, 4.8vw, 68px); line-height: 1; letter-spacing: -.055em; }
.toph-connect p:not(.earth-kicker), .toph-donation p:not(.earth-kicker) { color: #8c8e80; line-height: 1.7; }
.earth-link-list { display: grid; gap: 9px; }
.earth-link-list a { min-height: 84px; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 18px 20px; border: 1px solid rgba(103, 242, 94, .15); background: #081008; }
.earth-link-list span { display: block; color: #5d6b5a; font: 7px var(--mono); letter-spacing: .12em; }
.earth-link-list strong { display: block; margin-top: 5px; color: var(--earth-stone); }
.earth-link-list em { grid-column: 2; grid-row: 1 / 3; color: var(--earth); font: 8px var(--mono); font-style: normal; letter-spacing: .1em; }
.earth-link-list a:hover { border-color: var(--earth); }
.toph-feed { padding: 105px 0; border-top: 1px solid rgba(103, 242, 94, .12); background: #071007; }
.toph-feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.toph-feed-grid article { padding: 25px; border: 1px solid rgba(103, 242, 94, .14); background: #050905; }
.toph-feed-grid span { color: var(--earth); font: 8px var(--mono); }
.toph-feed-grid time { float: right; color: #596157; font: 8px var(--mono); }
.toph-feed-grid h3 { margin: 35px 0 12px; color: var(--earth-stone); font-size: 22px; }
.toph-feed-grid p { color: #818477; font-size: 13px; line-height: 1.6; }
.toph-donation { padding: 110px 0; border-top: 1px solid rgba(103, 242, 94, .13); background: radial-gradient(circle at 75%, rgba(103, 242, 94, .09), transparent 35%), #030603; }
.donation-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 75px; align-items: center; }
.toph-donation ul { margin: 28px 0 0; padding: 0; list-style: none; }
.toph-donation li { margin: 10px 0; color: #85887b; }
.toph-donation li::before { content: "◆"; margin-right: 11px; color: var(--earth); font-size: 8px; }
.pix-card { padding: 16px; border: 1px solid rgba(103, 242, 94, .22); background: #071007; }
.pix-card img { width: 100%; height: auto; }
.toph-footer { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 max(34px, calc((100vw - var(--container)) / 2)); border-top: 1px solid rgba(103, 242, 94, .13); background: #030603; color: #596356; font: 8px var(--mono); letter-spacing: .1em; }
.toph-footer a { color: var(--earth); }

@media (max-width: 1100px) {
  .site-header, .toph-header { grid-template-columns: 1fr auto; }
  .system-status, .toph-online { display: none; }
  .hero-layout { grid-template-columns: 1fr; }
  .feature-terminal { width: min(720px, 100%); }
  .project-card, .project-card.featured { grid-column: auto; grid-template-columns: 1fr; min-height: 0; }
  .project-card-image { height: 290px; }
  .feed-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout, .contact-panel, .project-content-grid, .toph-connect-grid, .donation-layout { grid-template-columns: 1fr; gap: 50px; }
  .identity-card { max-width: 620px; }
  .earth-feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .container, .earth-container { width: min(100% - 34px, var(--container)); }
  .site-header, .toph-header { min-height: 68px; padding: 0 18px; }
  .brand small, .toph-brand small { display: none; }
  .mobile-menu { display: block; justify-self: end; }
  .site-header nav, .toph-header nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 18px 18px; border-bottom: 1px solid var(--line); background: rgba(4, 6, 9, .98); }
  .toph-header nav { border-color: rgba(103, 242, 94, .2); background: rgba(3, 6, 3, .98); }
  .site-header nav.open, .toph-header nav.open { display: flex; }
  .site-header nav a, .toph-header nav a { padding: 14px 8px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
  .library-hero { min-height: auto; padding: 72px 0 80px; }
  .hero-copy h1 { font-size: clamp(49px, 15vw, 76px); }
  .vertical-code { display: none; }
  .section { padding: 78px 0; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .search-control { width: 100%; }
  .project-grid, .feed-grid, .toph-feed-grid { grid-template-columns: 1fr; }
  .project-card-copy { padding: 30px 25px; }
  .contact-panel { padding: 30px 24px; }
  .social-card { grid-template-columns: 44px minmax(0, 1fr); }
  .social-card em { grid-column: 2; }
  .site-footer, .toph-footer { padding: 22px 18px; flex-direction: column; align-items: flex-start; }
  .project-hero { min-height: 650px; padding: 100px 0 60px; }
  .back-link { margin-bottom: 48px; }
  .project-hero-content h1 { font-size: clamp(55px, 17vw, 90px); }
  .toph-hero { min-height: auto; }
  .toph-hero-copy { padding: 95px 0 100px; }
  .toph-hero h1 { font-size: clamp(57px, 16vw, 88px); }
  .toph-stats { grid-template-columns: repeat(2, 1fr); }
  .toph-stats article:nth-child(2) { border-right: 0; }
  .toph-stats article:nth-child(-n + 2) { border-bottom: 1px solid rgba(103, 242, 94, .13); }
  .earth-feature-grid, .command-grid { grid-template-columns: 1fr; }
  .command-controls label { grid-template-columns: 1fr; }
  .earth-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .brand strong { font-size: 19px; }
  .hero-copy h1 { font-size: 48px; }
  .hero-text { font-size: 15px; }
  .hero-actions .button { width: 100%; }
  .feature-visual { height: 150px; }
  .hero-stats { gap: 15px; }
  .project-card-image { height: 230px; }
  .identity-card { min-height: 285px; padding: 30px; }
  .section-heading h2 { font-size: 38px; }
  .toph-hero h1 { font-size: 55px; }
  .earth-actions .earth-button { width: 100%; }
  .earth-feature-grid { grid-template-columns: 1fr; }
  .toph-stats article { padding: 20px; }
  .earth-link-list a { grid-template-columns: 1fr; }
  .earth-link-list em { grid-column: 1; grid-row: auto; margin-top: 15px; }
}

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