/*
 * NOBELDWARF - MAIN STYLESHEET
 * ------------------------------------------------------------------
 * This file controls the visual appearance of every page.
 *
 * Editing guide:
 * 1. Change the design tokens in :root to adjust the shared palette.
 * 2. Edit the component rules to change cards, buttons and layouts.
 * 3. Edit the responsive sections near the bottom for tablet/mobile.
 * 4. Keep selectors grouped by page component where possible.
 *
 * The stylesheet is intentionally readable and is not minified.
 */

/* Typography: hosted fonts used throughout the site. */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

/* Design tokens: change these values to adjust the site-wide palette. */
:root {
  --bg:#080d17;
  --panel:#0e1625;
  --panel2:#111d30;
  --line:rgba(160,184,218,.14);
  --text:#edf3fc;
  --muted:#9baac0;
  --cyan:#5ee7e2;
  --blue:#6d9dff;
  --purple:#a78bfa;
  --max:1160px
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:90px
}

body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Manrope,system-ui,sans-serif;
  line-height:1.65
}

a {
  color:inherit;
  text-decoration:none
}

button {
  font:inherit
}

.wrap {
  width:min(var(--max),calc(100% - 48px));
  margin-inline:auto
}

.skip-link {
  position:absolute;
  left:-999px;
  top:10px;
  background:var(--cyan);
  color:#061018;
  padding:10px;
  z-index:99
}

.skip-link:focus {
  left:10px
}

/* Header and primary navigation. */
.site-header {
  height:82px;
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(8,13,23,.88);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line)
}

.header-inner {
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between
}

.brand {
  display:flex;
  align-items:center;
  gap:11px
}

.brand-mark {
  width:40px;
  height:40px;
  border:1px solid rgba(94,231,226,.5);
  border-radius:12px;
  display:grid;
  place-items:center;
  font-size:21px;
  font-weight:800;
  color:var(--cyan);
  background:linear-gradient(145deg,rgba(94,231,226,.12),rgba(109,157,255,.08))
}

.brand-mark span {
  color:var(--blue)
}

.brand-word {
  font-size:14px;
  font-weight:800;
  letter-spacing:2px;
  line-height:1.1
}

.brand-word>span {
  color:var(--cyan)
}

.brand-word small {
  display:block;
  font:9px 'DM Mono',monospace;
  letter-spacing:1.2px;
  color:#8394ac;
  margin-top:5px
}

.nav {
  display:flex;
  align-items:center;
  gap:23px
}

.nav a {
  font-size:12px;
  color:#aab7ca;
  font-weight:700;
  transition:.2s
}

.nav a:hover,.nav a.active {
  color:var(--cyan)
}

.nav .nav-contact {
  border:1px solid rgba(94,231,226,.4);
  padding:9px 13px;
  border-radius:8px;
  color:var(--text)
}

.nav-contact span {
  color:var(--cyan);
  margin-left:5px
}

.menu-toggle {
  display:none;
  background:none;
  border:1px solid var(--line);
  color:var(--text);
  border-radius:8px;
  padding:8px 11px
}

.gradient {
  background:linear-gradient(100deg,var(--cyan),#83b4ff 55%,var(--purple));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent
}

.eyebrow,.card-kicker,.server-number,.server-card-top,.hero-meta,.diagram-toolbar,.diagram-note,.vlan-card>span,.equipment-list b,.maker-grid article>span,.project-art small {
  font:10px 'DM Mono',monospace;
  letter-spacing:1.2px;
  color:#8da0ba
}

/* Homepage hero and feature sections. */
.hero {
  min-height:610px;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:30px;
  padding-top:55px;
  padding-bottom:70px
}

.eyebrow {
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--cyan)
}

.pulse,.live-dot,.server-status i {
  width:7px;
  height:7px;
  background:#54dfad;
  border-radius:50%;
  box-shadow:0 0 13px #54dfad
}

.hero h1,.page-hero h1 {
  font-size:clamp(44px,6.2vw,76px);
  line-height:1.08;
  letter-spacing:-3.8px;
  margin:23px 0
}

.lead {
  max-width:640px;
  font-size:17px;
  line-height:1.8;
  color:#aab8cc
}

.hero-copy .lead {
  max-width:550px
}

.hero-actions {
  display:flex;
  gap:12px;
  margin-top:30px;
  flex-wrap:wrap
}

.button {
  display:inline-flex;
  align-items:center;
  gap:18px;
  padding:13px 18px;
  border-radius:9px;
  font-size:12px;
  font-weight:800;
  transition:.2s
}

.button:hover {
  transform:translateY(-2px)
}

.button.primary {
  color:#06141b;
  background:linear-gradient(100deg,var(--cyan),#8abaff);
  box-shadow:0 8px 30px rgba(94,231,226,.13)
}

.button.ghost {
  border:1px solid var(--line);
  color:#d9e5f5
}

.hero-meta {
  display:flex;
  gap:13px;
  align-items:center;
  margin-top:45px;
  font-size:9px;
  color:#7588a2
}

.hero-meta i {
  width:3px;
  height:3px;
  background:#52647d;
  border-radius:50%
}

.hero-visual {
  height:430px;
  position:relative;
  display:grid;
  place-items:center
}

.orbit {
  position:absolute;
  border:1px solid rgba(94,231,226,.15);
  border-radius:50%;
  transform:rotate(-22deg)
}

.orbit-one {
  width:370px;
  height:270px
}

.orbit-two {
  width:450px;
  height:340px;
  border-color:rgba(109,157,255,.13);
  transform:rotate(42deg)
}

.core-card {
  width:245px;
  height:255px;
  border:1px solid rgba(94,231,226,.3);
  border-radius:22px;
  background:linear-gradient(145deg,rgba(20,39,58,.96),rgba(10,19,33,.96));
  box-shadow:0 25px 90px rgba(0,0,0,.4),0 0 70px rgba(94,231,226,.08);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  position:relative;
  z-index:2
}

.core-top {
  position:absolute;
  top:18px;
  left:20px;
  display:flex;
  align-items:center;
  gap:8px;
  font:9px 'DM Mono';
  letter-spacing:1.5px;
  color:#9aacc4
}

.core-symbol {
  font-size:88px;
  font-weight:800;
  line-height:1;
  color:#e9f8ff;
  text-shadow:0 0 40px rgba(94,231,226,.28)
}

.core-symbol span {
  color:var(--cyan)
}

.core-name {
  font-weight:800;
  letter-spacing:4px;
  font-size:13px;
  margin-top:12px
}

.core-caption {
  font:8px 'DM Mono';
  letter-spacing:1.2px;
  color:#8295ae;
  margin-top:7px
}

.core-bars {
  display:flex;
  gap:4px;
  margin-top:22px;
  align-items:end;
  height:14px
}

.core-bars i {
  width:5px;
  background:var(--cyan);
  border-radius:4px;
  opacity:.7
}

.core-bars i:nth-child(1),.core-bars i:nth-child(5) {
  height:6px
}

.core-bars i:nth-child(2),.core-bars i:nth-child(4),.core-bars i:nth-child(6) {
  height:10px
}

.core-bars i:nth-child(3) {
  height:14px
}

.float-chip {
  position:absolute;
  z-index:3;
  padding:10px 13px;
  border:1px solid var(--line);
  background:#101c2c;
  border-radius:9px;
  font-size:11px;
  color:var(--cyan);
  box-shadow:0 12px 35px #0005
}

.float-chip span {
  color:#c9d6e9;
  margin-left:7px
}

.chip-server {
  top:60px;
  left:0
}

.chip-network {
  right:-4px;
  top:145px
}

.chip-maker {
  bottom:55px;
  left:15px
}

.ticker {
  border-block:1px solid var(--line);
  overflow:hidden;
  background:#0b1320
}

.ticker-track {
  display:flex;
  align-items:center;
  justify-content:space-around;
  gap:30px;
  padding:17px 20px;
  white-space:nowrap;
  font:10px 'DM Mono';
  letter-spacing:1.7px;
  color:#8496ae
}

.ticker b {
  color:var(--cyan);
  font-size:13px
}

.section {
  padding-top:100px;
  padding-bottom:100px
}

.section-head {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:35px;
  margin-bottom:35px
}

.section h2,.split-band h2,.cta-inner h2 {
  font-size:clamp(31px,4vw,48px);
  letter-spacing:-2px;
  line-height:1.17;
  margin:13px 0 0
}

.section-intro {
  max-width:430px;
  color:var(--muted);
  font-size:13px;
  line-height:1.9;
  margin:0
}

.feature-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px
}

.feature-card {
  min-height:270px;
  padding:24px;
  border:1px solid var(--line);
  border-radius:13px;
  background:linear-gradient(145deg,#101a2a,#0b1320);
  transition:.25s;
  display:flex;
  flex-direction:column
}

.feature-card:hover,.project-card:hover {
  border-color:rgba(94,231,226,.4);
  transform:translateY(-4px)
}

.feature-icon {
  width:43px;
  height:43px;
  border-radius:11px;
  background:rgba(94,231,226,.09);
  display:grid;
  place-items:center;
  color:var(--cyan);
  font-size:22px;
  margin-bottom:24px
}

.card-kicker {
  font-size:9px;
  color:#7288a5
}

.feature-card h3 {
  font-size:18px;
  margin:10px 0 7px
}

.feature-card p,.project-content p {
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
  margin:0 0 20px
}

.card-link {
  margin-top:auto;
  font-size:11px;
  color:var(--cyan);
  font-weight:800
}

.card-link b {
  float:right
}

.dark-band {
  background:radial-gradient(ellipse at 80% 40%,rgba(48,94,130,.15),transparent 55%),#0b1320;
  border-block:1px solid var(--line)
}

.split-band {
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  align-items:center;
  gap:70px
}

.split-band .section-intro {
  margin:20px 0
}

.text-link {
  color:var(--cyan);
  font-size:12px;
  font-weight:800
}

.text-link span {
  margin-left:7px
}

.server-pair {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px
}

.mini-server {
  width:190px;
  min-height:220px;
  border:1px solid rgba(94,231,226,.25);
  border-radius:13px;
  background:linear-gradient(145deg,#14243a,#0b1422);
  padding:19px;
  position:relative;
  text-align:center
}

.mini-server.secondary {
  border-color:rgba(109,157,255,.3)
}

.server-led {
  position:absolute;
  top:15px;
  right:15px;
  width:6px;
  height:6px;
  background:#54dfad;
  border-radius:50%;
  box-shadow:0 0 10px #54dfad
}

.server-glyph {
  height:95px;
  display:grid;
  place-items:center;
  font-size:58px;
  color:#81dcd9;
  text-shadow:0 0 30px #5ee7e244
}

.secondary .server-glyph {
  color:#88aaff
}

.mini-server b {
  display:block;
  letter-spacing:2px;
  font-size:12px
}

.mini-server small {
  font:9px 'DM Mono';
  color:#8498b2;
  letter-spacing:1px
}

.server-spec {
  font-size:10px;
  color:#b3c1d4;
  margin-top:12px
}

.flow-arrow {
  font-size:20px;
  color:var(--cyan)
}

.interest-strip {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden
}

.interest-strip>div {
  padding:23px;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:5px
}

.interest-strip>div:last-child {
  border:0
}

.interest-strip span {
  font:10px 'DM Mono';
  color:var(--cyan)
}

.interest-strip b {
  font-size:14px
}

.interest-strip small {
  font-size:10px;
  color:var(--muted)
}

.cta-section {
  padding:70px 0;
  background:linear-gradient(100deg,rgba(94,231,226,.08),rgba(109,157,255,.06));
  border-top:1px solid var(--line)
}

.cta-inner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px
}

.cta-inner h2 {
  margin-top:12px
}

.footer {
  border-top:1px solid var(--line);
  background:#070b13;
  padding:35px 0 18px
}

.footer-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-bottom:27px
}

.footer-top p {
  font-size:11px;
  color:var(--muted);
  line-height:1.7
}

.back-top {
  font-size:11px;
  color:var(--cyan)
}

.footer-bottom {
  border-top:1px solid var(--line);
  padding-top:16px;
  display:flex;
  justify-content:space-between;
  color:#667891;
  font:9px 'DM Mono';
  letter-spacing:.5px
}

/* Shared page headings and content layouts. */
.page-hero {
  padding-top:105px;
  padding-bottom:55px
}

.page-hero h1 {
  font-size:clamp(42px,6vw,68px);
  margin:18px 0
}

.page-hero .lead {
  max-width:700px
}

.two-col {
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:70px
}

.two-col h2 {
  margin-top:16px
}

.prose {
  color:#aab8cc;
  font-size:14px;
  line-height:2
}

.prose p {
  margin:0 0 17px
}

.muted {
  background:#0c1422;
  border-block:1px solid var(--line)
}

.skill-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:13px;
  margin-top:35px
}

.skill-card {
  border:1px solid var(--line);
  border-radius:12px;
  padding:23px;
  background:#0b1421
}

.skill-card>span {
  font:10px 'DM Mono';
  color:var(--cyan)
}

.skill-card h3 {
  font-size:17px;
  margin:13px 0 7px
}

.skill-card p {
  font-size:12px;
  color:var(--muted);
  line-height:1.8
}

.tags {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:17px
}

.tags i {
  font-style:normal;
  font-size:9px;
  color:#a9bdd6;
  border:1px solid rgba(126,156,194,.2);
  background:rgba(94,130,174,.07);
  padding:5px 8px;
  border-radius:5px
}

.interest-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-top:30px
}

.interest {
  border:1px solid var(--line);
  border-radius:11px;
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:5px;
  background:#0d1625
}

.interest span {
  font-size:23px;
  margin-bottom:9px
}

.interest b {
  font-size:13px
}

.interest small {
  font-size:10px;
  color:var(--muted)
}

/* HomeLab server and software cards. */
.server-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px
}

.server-card {
  border:1px solid var(--line);
  border-radius:15px;
  padding:25px;
  background:linear-gradient(145deg,#111d2e,#0b1320)
}

.server-card-top {
  display:flex;
  justify-content:space-between;
  align-items:center
}

.server-status {
  display:flex;
  align-items:center;
  gap:8px;
  color:#6ee3b3
}

.server-status i {
  width:6px;
  height:6px
}

.backup-status {
  color:#8eafff
}

.backup-status i {
  background:#8eafff;
  box-shadow:0 0 12px #8eafff
}

.server-number {
  color:#71849e
}

.tower-art {
  height:145px;
  display:grid;
  place-items:center;
  position:relative;
  margin:15px 0 5px
}

.tower-front {
  width:77px;
  height:133px;
  border:2px solid #657d98;
  border-radius:9px;
  background:linear-gradient(90deg,#26364b,#111b2a);
  box-shadow:inset -8px 0 12px #0005,0 15px 25px #0006;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-evenly;
  padding:10px
}

.tower-front i {
  width:46px;
  height:13px;
  border:1px solid #4a617b;
  border-radius:3px;
  background:repeating-linear-gradient(90deg,#31465e 0 3px,#172638 3px 5px)
}

.tower-front b {
  width:7px;
  height:7px;
  background:var(--cyan);
  border-radius:50%;
  box-shadow:0 0 10px var(--cyan);
  align-self:flex-end
}

.tower-blue .tower-front {
  border-color:#6887bd;
  background:linear-gradient(90deg,#263e60,#111d31)
}

.tower-blue .tower-front b {
  background:#83a9ff;
  box-shadow:0 0 10px #83a9ff
}

.server-card h3 {
  font-size:27px;
  letter-spacing:-1px;
  margin:10px 0 0
}

.server-model {
  color:var(--cyan);
  font-size:11px;
  font-weight:700;
  margin:0 0 12px
}

.muted-copy {
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
  min-height:44px
}

.spec-list {
  border-top:1px solid var(--line);
  margin-top:20px;
  padding-top:10px
}

.spec-list div {
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:8px 0;
  border-bottom:1px solid rgba(160,184,218,.07);
  font-size:10px
}

.spec-list span {
  color:#8296af
}

.spec-list b {
  text-align:right;
  color:#d3deec;
  font-weight:600
}

.backup-flow {
  display:flex;
  align-items:center;
  justify-content:center;
  margin:45px 0 10px;
  gap:10px
}

.flow-node {
  width:190px;
  min-height:145px;
  padding:20px;
  border:1px solid rgba(94,231,226,.3);
  background:#101f2e;
  border-radius:12px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center
}

.flow-node>span {
  font-size:29px;
  color:var(--cyan)
}

.flow-node b {
  font-size:13px;
  margin-top:6px
}

.flow-node small {
  font-size:9px;
  color:var(--muted);
  margin-top:3px
}

.blue-node {
  border-color:rgba(109,157,255,.35)
}

.blue-node>span {
  color:#8db1ff
}

.purple-node {
  border-color:rgba(167,139,250,.35)
}

.purple-node>span {
  color:var(--purple)
}

.flow-connector {
  width:100px;
  text-align:center
}

.flow-connector i {
  height:1px;
  display:block;
  background:linear-gradient(90deg,var(--cyan),var(--blue));
  position:relative
}

.flow-connector i:after {
  content:'›';
  position:absolute;
  right:-1px;
  top:-14px;
  color:var(--cyan);
  font-size:23px
}

.flow-connector small {
  font:8px 'DM Mono';
  color:#8295ad;
  letter-spacing:.5px
}

.diagram-note {
  font-size:9px;
  color:#7488a2;
  text-align:center;
  letter-spacing:.4px;
  margin-top:25px
}

.service-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:9px;
  margin-top:30px
}

.service-grid>div {
  border:1px solid var(--line);
  background:#0d1624;
  border-radius:8px;
  padding:15px
}

.service-grid b {
  display:block;
  font-size:11px
}

.service-grid small {
  display:block;
  font-size:9px;
  color:var(--muted);
  margin-top:4px
}

.note-panel {
  margin-top:25px;
  padding:17px 19px;
  border:1px solid rgba(109,157,255,.2);
  border-left:3px solid var(--blue);
  background:rgba(109,157,255,.05);
  border-radius:7px;
  color:#aabbd0;
  font-size:11px;
  line-height:1.8
}

.note-panel b {
  color:#dce8f7
}

.diagram-shell {
  border:1px solid var(--line);
  border-radius:14px;
  background:linear-gradient(145deg,#0e1929,#0a111e);
  margin-top:25px;
  padding:22px
}

.diagram-toolbar {
  display:flex;
  justify-content:space-between;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
  font-size:9px
}

.legend-dot {
  display:inline-block;
  width:6px;
  height:6px;
  background:var(--cyan);
  border-radius:50%;
  margin-right:7px
}

.topology {
  max-width:800px;
  margin:25px auto 0;
  display:flex;
  flex-direction:column;
  align-items:center
}

.topology-row {
  display:flex;
  gap:25px
}

.topo-node {
  min-width:145px;
  padding:15px 18px;
  border:1px solid var(--line);
  background:#111e30;
  border-radius:9px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center
}

.topo-node>span {
  font-size:22px;
  color:var(--cyan)
}

.topo-node b {
  font-size:11px;
  margin-top:5px
}

.topo-node small {
  font-size:9px;
  color:var(--muted);
  margin-top:2px
}

.topo-node.external {
  border-color:rgba(94,231,226,.28)
}

.topo-node.alt {
  border-color:rgba(109,157,255,.3)
}

.topo-node.alt>span {
  color:#8db1ff
}

.topo-node.gateway {
  min-width:240px;
  border-color:rgba(94,231,226,.4);
  background:#102535
}

.topo-node.switch {
  min-width:240px
}

.topo-line {
  height:35px;
  width:1px;
  background:linear-gradient(var(--cyan),rgba(94,231,226,.1));
  position:relative
}

.topo-line span {
  position:absolute;
  left:12px;
  top:8px;
  font:8px 'DM Mono';
  color:#8297b0
}

.topo-branches {
  width:100%;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  position:relative;
  padding-top:27px
}

.topo-branches:before {
  content:'';
  position:absolute;
  top:0;
  left:12.5%;
  right:12.5%;
  height:1px;
  background:rgba(94,231,226,.35)
}

.topo-branches .topo-node {
  min-width:0;
  position:relative
}

.topo-branches .topo-node:before {
  content:'';
  position:absolute;
  top:-28px;
  height:27px;
  width:1px;
  background:rgba(94,231,226,.35)
}

.vlan-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-top:32px
}

.vlan-card {
  border:1px solid var(--line);
  border-radius:11px;
  padding:20px;
  background:#0b1422
}

.vlan-card h3 {
  font-size:15px;
  margin:13px 0 6px
}

.vlan-card p {
  font-size:11px;
  color:var(--muted);
  line-height:1.8;
  margin:0
}

.equipment-list {
  border-top:1px solid var(--line);
  margin-top:30px
}

.equipment-list>div {
  display:grid;
  grid-template-columns:210px 1fr;
  gap:20px;
  padding:17px 5px;
  border-bottom:1px solid var(--line);
  align-items:center
}

.equipment-list b {
  font-size:9px
}

.equipment-list span {
  font-size:12px;
  color:#c3d0e1
}

.automation-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:13px
}

.automation-card {
  border:1px solid var(--line);
  border-radius:12px;
  padding:25px;
  background:linear-gradient(145deg,#101b2b,#0b1320)
}

.automation-icon {
  font-size:25px;
  color:var(--cyan)
}

.automation-card h3 {
  margin:14px 0 6px;
  font-size:17px
}

.automation-card p {
  font-size:12px;
  color:var(--muted);
  line-height:1.8
}

.principles {
  display:flex;
  flex-direction:column;
  gap:12px
}

.principles>div {
  display:flex;
  gap:20px;
  padding:17px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#101b2b
}

.principles>div>b {
  font:11px 'DM Mono';
  color:var(--cyan)
}

.principles strong,.principles small {
  display:block
}

.principles strong {
  font-size:12px
}

.principles small {
  font-size:10px;
  color:var(--muted);
  margin-top:3px
}

.maker-hero {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:55px;
  align-items:center
}

.maker-visual {
  height:330px;
  display:grid;
  place-items:center;
  position:relative;
  background:radial-gradient(ellipse,rgba(94,231,226,.11),transparent 65%);
  border:1px solid var(--line);
  border-radius:14px
}

.printer-frame {
  width:220px;
  height:240px;
  border:8px solid #34475d;
  border-bottom-width:15px;
  border-radius:14px 14px 7px 7px;
  background:linear-gradient(145deg,#1a2a3e,#0b1422);
  position:relative;
  box-shadow:0 20px 40px #0007;
  z-index:1
}

.printer-top {
  height:17px;
  background:#4c6178;
  border-radius:4px;
  margin:-2px -2px 0
}

.printer-window {
  position:absolute;
  left:16px;
  right:16px;
  top:30px;
  height:155px;
  border:2px solid #50677e;
  background:linear-gradient(145deg,rgba(80,142,164,.2),rgba(5,14,26,.8));
  overflow:hidden
}

.print-bed {
  position:absolute;
  bottom:18px;
  left:18px;
  right:18px;
  height:5px;
  background:#8fa4b8;
  transform:skewY(-5deg)
}

.print-object {
  position:absolute;
  bottom:23px;
  left:75px;
  width:38px;
  height:65px;
  background:linear-gradient(90deg,#42b9b4,#8be5df);
  clip-path:polygon(50% 0,100% 18%,100% 100%,0 100%,0 18%);
  filter:drop-shadow(0 0 12px #5ee7e255)
}

.printer-base {
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:31px;
  background:#24364a;
  display:grid;
  place-items:center;
  font:8px 'DM Mono';
  letter-spacing:2px;
  color:#a8bbd0
}

.maker-glow {
  position:absolute;
  width:230px;
  height:70px;
  background:rgba(94,231,226,.15);
  filter:blur(40px);
  bottom:15px
}

.maker-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin-top:30px
}

.maker-grid article {
  padding:23px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#0b1422
}

.maker-grid h3 {
  font-size:16px;
  margin:12px 0 6px
}

.maker-grid p {
  font-size:11px;
  color:var(--muted);
  line-height:1.8;
  margin:0
}

.gallery-placeholder {
  margin-top:28px;
  min-height:190px;
  border:1px dashed rgba(140,169,204,.3);
  border-radius:12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#91a5c0;
  background:rgba(15,27,44,.4);
  gap:7px
}

.gallery-placeholder>span {
  font-size:28px;
  color:var(--cyan)
}

.gallery-placeholder b {
  font-size:13px;
  color:#d7e4f3
}

.gallery-placeholder small {
  font-size:10px
}

.project-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:25px
}

.filter-row {
  display:flex;
  gap:7px;
  flex-wrap:wrap
}

.filter {
  border:1px solid var(--line);
  background:#0c1523;
  color:#aab9cd;
  border-radius:6px;
  padding:8px 12px;
  font-size:10px;
  cursor:pointer
}

.filter.active,.filter:hover {
  color:#07131b;
  background:var(--cyan);
  border-color:var(--cyan)
}

.project-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px
}

.project-card {
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background:#0d1624;
  transition:.25s
}

.project-card[hidden] {
  display:none
}

.project-art {
  height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  background:radial-gradient(circle at 50% 60%,rgba(94,231,226,.17),transparent 60%),linear-gradient(135deg,#162a3d,#0b1422)
}

.project-art>span {
  font-size:58px;
  color:rgba(145,224,228,.8);
  text-shadow:0 0 35px rgba(94,231,226,.25)
}

.project-art small {
  position:absolute;
  left:17px;
  top:15px;
  font-size:8px
}

.art-network {
  background:radial-gradient(circle,rgba(109,157,255,.2),transparent 65%),#10192a
}

.art-network>span {
  color:#9bb9ff
}

.art-docker {
  background:radial-gradient(circle,rgba(88,158,231,.2),transparent 65%),#10192a
}

.art-home {
  background:radial-gradient(circle,rgba(167,139,250,.2),transparent 65%),#10192a
}

.art-home>span {
  color:#b5a0ff
}

.art-print {
  background:radial-gradient(circle,rgba(94,231,226,.18),transparent 65%),#10192a
}

.art-energy {
  background:radial-gradient(circle,rgba(255,194,112,.18),transparent 65%),#10192a
}

.art-energy>span {
  color:#ffc978
}

.project-content {
  padding:19px
}

.project-content h3 {
  font-size:16px;
  margin:12px 0 6px
}

.project-content .text-link {
  font-size:10px
}

.callout {
  margin-top:35px;
  padding:27px;
  border:1px solid rgba(94,231,226,.22);
  border-radius:12px;
  background:linear-gradient(100deg,rgba(94,231,226,.07),rgba(109,157,255,.05));
  display:flex;
  justify-content:space-between;
  align-items:center
}

.callout h3 {
  font-size:19px;
  margin:8px 0 4px
}

.callout p {
  font-size:11px;
  color:var(--muted);
  margin:0
}

.callout-mark {
  font-size:54px;
  font-weight:800;
  color:rgba(94,231,226,.35)
}

.contact-layout {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px
}

.contact-layout h2 {
  font-size:40px;
  line-height:1.2;
  letter-spacing:-2px;
  margin:15px 0
}

.contact-aside {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    margin-top: 25px;
}

.contact-aside span {
    position: static;
    color: var(--cyan);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-aside p {
    width: auto;
    text-align: left;
    font-size: 10px;
    color: var(--muted);
    margin: 0;
    line-height: 1.8;
}

.contact-panel {
  border:1px solid var(--line);
  border-radius:12px;
  background:#0d1624;
  padding:7px 20px
}

.contact-row {
  display:flex;
  align-items:center;
  gap:15px;
  padding:20px 5px;
  border-bottom:1px solid var(--line)
}

.contact-row:last-child {
  border:0
}

.contact-icon {
  width:39px;
  height:39px;
  border-radius:9px;
  background:rgba(94,231,226,.09);
  color:var(--cyan);
  display:grid;
  place-items:center;
  font-weight:800
}

.contact-row>span:nth-child(2) {
  flex:1
}

.contact-row b,.contact-row small {
  display:block
}

.contact-row b {
  font-size:12px
}

.contact-row small {
  font-size:10px;
  color:var(--muted);
  margin-top:3px
}

.contact-arrow {
  color:var(--cyan)
}

/* Software stack card: visual treatment for the third HomeLab overview panel. */
.software-status i {
  background:var(--purple);
  box-shadow:0 0 13px var(--purple)
}

.software-art {
  height:150px;
  display:grid;
  place-items:center;
  margin:12px 0 18px;
  border:1px solid rgba(167,139,250,.18);
  border-radius:10px;
  background:radial-gradient(circle,rgba(167,139,250,.13),transparent 68%),#0b1422
}

.software-window {
  position:relative;
  width:132px;
  height:94px;
  padding:13px;
  border:1px solid rgba(167,139,250,.5);
  border-radius:9px;
  background:linear-gradient(145deg,#1a2038,#101629);
  box-shadow:0 15px 35px #0006
}

.software-window span {
  display:inline-block;
  width:6px;
  height:6px;
  margin-right:4px;
  border-radius:50%;
  background:var(--purple)
}

.software-window b {
  display:grid;
  height:48px;
  place-items:center;
  color:#c7b7ff;
  font:700 28px 'DM Mono',monospace
}

/* Responsive layouts: tablet and smaller desktop screens. */
/* Responsive rules: adapt the desktop layout for smaller screens. */
@media (max-width: 1000px) {
  .server-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }


  .nav {
    gap:13px
  }

  .nav a {
    font-size:11px
  }

  .feature-grid {
    grid-template-columns:repeat(2,1fr)
  }

  .service-grid {
    grid-template-columns:repeat(3,1fr)
  }

  .hero {
    min-height:560px
  }

  .hero-visual {
    transform:scale(.88)
  }
}

/* Responsive layouts: mobile navigation and stacked content. */
/* Responsive rules: adapt the desktop layout for smaller screens. */
@media (max-width: 760px) {

  .wrap {
    width:min(100% - 34px,var(--max))
  }

  .site-header {
    height:70px
  }

  .menu-toggle {
    display:block
  }

  .nav {
    display:none;
    position:absolute;
    top:69px;
    left:0;
    right:0;
    padding:18px 22px 22px;
    background:#0a1220;
    border-bottom:1px solid var(--line);
    flex-direction:column;
    align-items:stretch;
    gap:0
  }

  .nav.open {
    display:flex
  }

  .nav a {
    padding:11px 4px;
    font-size:13px
  }

  .nav .nav-contact {
    margin-top:8px;
    text-align:center
  }

  .hero {
    grid-template-columns:1fr;
    padding-top:70px;
    padding-bottom:55px
  }

  .hero h1 {
    font-size:52px;
    letter-spacing:-2.8px
  }

  .hero-visual {
    height:350px;
    transform:scale(.9);
    margin-top:5px
  }

  .section {
    padding-top:70px;
    padding-bottom:70px
  }

  .section-head {
    display:block
  }

  .section-intro {
    margin-top:15px
  }

  .split-band,.two-col,.maker-hero,.contact-layout {
    grid-template-columns:1fr;
    gap:35px
  }

  .server-pair {
    gap:8px
  }

  .mini-server {
    width:44%;
    padding:13px;
    min-height:195px
  }

  .server-glyph {
    height:78px;
    font-size:45px
  }

  .interest-strip {
    grid-template-columns:repeat(2,1fr)
  }

  .interest-strip>div:nth-child(2) {
    border-right:0
  }

  .interest-strip>div:nth-child(-n+2) {
    border-bottom:1px solid var(--line)
  }

  .footer-top {
    flex-wrap:wrap;
    gap:20px
  }

  .footer-top p {
    display:none
  }

  .server-grid {
    grid-template-columns:1fr
  }

  .backup-flow {
    flex-direction:column
  }

  .flow-connector {
    width:100%;
    height:35px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:4px
  }

  .flow-connector i {
    width:1px;
    height:22px;
    margin:auto
  }

  .flow-connector i:after {
    content:'⌄';
    right:-6px;
    top:8px
  }

  .flow-node {
    width:80%;
    min-height:115px
  }

  .service-grid {
    grid-template-columns:repeat(2,1fr)
  }

  .vlan-grid {
    grid-template-columns:repeat(2,1fr)
  }

  .topology-row {
    gap:10px
  }

  .topo-node {
    min-width:125px;
    padding:12px 8px
  }

  .topo-node.gateway,.topo-node.switch {
    min-width:210px
  }

  .topo-branches {
    grid-template-columns:repeat(2,1fr);
    row-gap:35px
  }

  .topo-branches:before {
    display:none
  }

  .topo-branches .topo-node:before {
    height:20px;
    top:-21px
  }

  .equipment-list>div {
    grid-template-columns:1fr;
    gap:5px
  }

  .project-grid {
    grid-template-columns:repeat(2,1fr)
  }

  .interest-grid {
    grid-template-columns:repeat(2,1fr)
  }

  .cta-inner {
    align-items:flex-start;
    flex-direction:column
  }

  .maker-visual {
    height:280px
  }

  .skill-grid,.automation-grid,.maker-grid {
    grid-template-columns:1fr
  }

  .project-toolbar {
    align-items:flex-start;
    flex-direction:column
  }

  .page-hero {
    padding-top:75px
  }

  .page-hero h1 {
    letter-spacing:-2.5px
  }

  .contact-layout h2 {
    font-size:34px
  }
}

/* Responsive layouts: narrow mobile screens. */
/* Responsive rules: adapt the desktop layout for smaller screens. */
@media (max-width: 460px) {

  .hero h1 {
    font-size:43px
  }

  .hero-visual {
    transform:scale(.76);
    margin-inline:-45px
  }

  .feature-grid,.project-grid {
    grid-template-columns:1fr
  }

  .feature-card {
    min-height:230px
  }

  .server-pair {
    gap:6px
  }

  .mini-server {
    width:48%;
    min-height:180px
  }

  .mini-server b {
    font-size:10px
  }

  .mini-server small {
    font-size:7px
  }

  .flow-arrow {
    font-size:15px
  }

  .service-grid {
    grid-template-columns:repeat(2,1fr)
  }

  .vlan-grid {
    grid-template-columns:1fr 1fr
  }

  .topology-row {
    gap:6px
  }

  .topo-node {
    min-width:110px
  }

  .topo-node.gateway,.topo-node.switch {
    min-width:190px
  }

  .diagram-shell {
    padding:13px
  }

  .diagram-toolbar {
    font-size:8px
  }

  .footer-bottom {
    font-size:8px
  }
}


/* ================================================================
   3D PRINTING PROJECT GALLERY
   These styles control the real-photo project cards on 3d-printing.php.
   ================================================================ */

.print-gallery-meta {
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin:-12px 0 18px;
  padding-bottom:13px;
  border-bottom:1px solid var(--line);
  color:#8295ae;
  font:9px 'DM Mono',monospace;
  letter-spacing:1.2px
}

.print-gallery {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px
}

.print-card {
  min-width:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:13px;
  background:linear-gradient(145deg,#101a2a,#0b1320);
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease
}

.print-card:hover {
  transform:translateY(-4px);
  border-color:rgba(94,231,226,.42);
  box-shadow:0 18px 42px rgba(0,0,0,.2)
}

.print-card-image {
  aspect-ratio:4 / 3;
  overflow:hidden;
  background:#0b1320;
  border-bottom:1px solid var(--line)
}

.print-card-image img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease
}

.print-card:hover .print-card-image img {
  transform:scale(1.035)
}

.print-card-content {
  padding:19px 20px 21px
}

.print-category {
  display:block;
  margin-bottom:9px;
  color:var(--cyan);
  font:9px 'DM Mono',monospace;
  letter-spacing:1.15px
}

.print-card-content h3 {
  margin:0 0 9px;
  font-size:17px;
  line-height:1.35;
  letter-spacing:-.35px
}

.print-card-content p {
  margin:0 0 12px;
  color:var(--muted);
  font-size:12px;
  line-height:1.8
}

.print-card-content small {
  display:block;
  padding-top:11px;
  border-top:1px solid var(--line);
  color:#8295ae;
  font-size:10px;
  line-height:1.7
}

.print-gallery-note {
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:26px;
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:11px;
  background:rgba(14,22,37,.55)
}

.print-gallery-note span {
  flex-shrink:0;
  color:var(--cyan);
  font-size:21px
}

.print-gallery-note p {
  margin:0;
  color:var(--muted);
  font-size:12px
}

/* Tablet: use two gallery columns to preserve comfortable card widths. */
@media (max-width:900px) {
  .print-gallery {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}

/* Mobile: stack the project cards into one readable column. */
@media (max-width:560px) {
  .print-gallery {
    grid-template-columns:1fr;
    gap:14px
  }

  .print-card-image {
    aspect-ratio:16 / 10
  }

  .print-gallery-meta {
    font-size:8px
  }

  .print-card-content {
    padding:17px
  }
}
