/* ============================================
   CYBERDECK SYSTEMS — CDS/OS TERMINAL
   Cream instrument panel, OS chrome frame
   Share Tech Mono + Bungee + Space Grotesk
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream:    #eeeade;
  --cream-dk: #ddd8cc;
  --chrome:   #6b7f8a;
  --chrome-l: #8fa0aa;
  --chrome-d: #4a5a63;
  --dark:     #1e2a30;
  --ink:      #2a3540;
  --dim:      #6a7a80;
  --cyan:     #00b3dc;
  --magenta:  #dd3389;
  --yellow:   #e8b800;
  --red:      #b82231;
  --green:    #3aaa5c;
  --blue:     #2454c7;
  --border:   1px solid var(--chrome);
  --border-d: 1px solid var(--chrome-d);
  --mono:     'Share Tech Mono', monospace;
  --display:  'Bungee', cursive;
  --body:     'Space Grotesk', sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
  background: var(--chrome-d);
  font-family: var(--body);
  font-size: 115%;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }


/* ====== OUTER CHROME FRAME ====== */

.chrome {
  position: fixed;
  inset: 10px;
  display: flex;
  flex-direction: column;
  background: var(--chrome);
  border: 3px solid var(--chrome-d);
  box-shadow:
    inset 0 1px 0 var(--chrome-l),
    inset 1px 0 0 var(--chrome-l),
    0 8px 40px rgba(0,0,0,0.6);
  border-radius: 4px;
  overflow: hidden;
}


/* ====== CHROME TOP BAR ====== */

.chrome-top {
  display: flex;
  align-items: stretch;
  height: 41px;
  background: linear-gradient(180deg, var(--chrome-l) 0%, var(--chrome) 100%);
  border-bottom: var(--border-d);
  flex-shrink: 0;
}

.chrome-top-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  border-right: var(--border-d);
  min-width: 207px;
}

.chrome-notch {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--chrome-l), var(--chrome-d));
  border: 1px solid var(--chrome-d);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}

.sys-id {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--cream);
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.chrome-top-center {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.chrome-tab {
  width: 161px;
  height: 21px;
  background: var(--cream);
  border-radius: 4px 4px 0 0;
  border: var(--border-d);
  border-bottom: none;
  position: relative;
}

.chrome-tab::before,
.chrome-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 8px; height: 8px;
  background: var(--chrome);
}
.chrome-tab::before { left: -8px; border-radius: 0 0 4px 0; box-shadow: 3px 0 0 var(--cream); }
.chrome-tab::after  { right: -8px; border-radius: 0 0 0 4px; box-shadow: -3px 0 0 var(--cream); }

.chrome-top-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  border-left: var(--border-d);
  min-width: 207px;
  justify-content: flex-end;
}

.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 6px var(--yellow);
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.status-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--cream);
  opacity: 0.85;
}


/* ====== SCREEN ====== */

.screen {
  flex: 1;
  position: relative;
  background: var(--cream);
  overflow: hidden;
}


/* ====== SCANLINES ====== */

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.018) 3px,
    rgba(0,0,0,0.018) 4px
  );
  pointer-events: none;
  z-index: 50;
}


/* ====== BOOT LAYER ====== */

.boot-layer {
  position: absolute;
  inset: 0;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  transition: opacity 0.6s ease;
  min-height: 400px;
}

.boot-layer.hidden {
  opacity: 0;
  pointer-events: none;
}

.boot-inner { width: min(690px, 90%); }

.boot-log {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--ink);
  white-space: pre-wrap;
  min-height: 253px;
  letter-spacing: 0.02em;
}

.boot-bar-wrap {
  margin-top: 1.5rem;
  height: 7px;
  background: var(--cream-dk);
  border: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.boot-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transition: width 0.3s ease;
}


/* ====== UI LAYER ====== */

.ui-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.6s ease;
  overflow: hidden;
}

.ui-layer.visible { opacity: 1; }


/* ====== UI HEADER ====== */

.ui-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 5.5rem;
  border-bottom: var(--border);
  background: var(--cream);
  flex-shrink: 0;
}

.logo-mark { height: 175px; width: auto; }

.nav-links { display: flex; list-style: none; gap: 0.25rem; }

.nav-links a {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--dim);
  padding: 0.55rem 1.1rem;
  border: var(--border);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.nav-links a:hover {
  color: var(--dark);
  background: var(--cream-dk);
  border-color: var(--chrome-d);
}

.nav-bracket { color: var(--cyan); }


/* ====== DIVIDER RULE ====== */

.ui-rule {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  flex-shrink: 0;
}

.rule-line { flex: 1; height: 1px; background: var(--chrome); }

.rule-pip {
  width: 5px; height: 5px;
  border: 1px solid var(--chrome);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.rule-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: var(--dim);
  padding: 0 0.5rem;
}


/* ====== HERO PANEL ====== */

/* Screen area between header rule and modules rule */
.hero-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Sidebar pinned to the right */
.hero-sidebar {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 299px;
  border-left: var(--border);
  display: flex;
  flex-direction: column;
  z-index: 2;
  background: var(--cream);
}

/* Hero text: truly centered on the FULL panel width */
.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem 2rem;
  z-index: 1;
}

.hero-text h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 1rem;
}

.hero-text h1 .accent { color: var(--word-color, var(--cyan)); transition: color 0.1s; }

/* Cycling word element */
.cycle-word {
  display: inline-block;
  min-width: 4ch;
  position: relative;
}

/* Glitch animation — fires during transition between words */
@keyframes glitch-in {
  0%   { opacity: 0; transform: skewX(-12deg) translateX(-6px); clip-path: inset(40% 0 40% 0); }
  20%  { opacity: 1; transform: skewX(4deg)  translateX(3px);  clip-path: inset(0% 0 60% 0); }
  40%  { opacity: 1; transform: skewX(-2deg) translateX(-2px); clip-path: inset(60% 0 0% 0); }
  60%  { opacity: 1; transform: skewX(1deg)  translateX(1px);  clip-path: inset(20% 0 20% 0); }
  80%  { opacity: 1; transform: skewX(0deg)  translateX(0px);  clip-path: inset(0% 0 0% 0); }
  100% { opacity: 1; transform: none; clip-path: none; }
}

@keyframes glitch-out {
  0%   { opacity: 1; transform: none; clip-path: none; }
  20%  { opacity: 1; transform: skewX(8deg)  translateX(5px);  clip-path: inset(30% 0 30% 0); }
  40%  { opacity: 1; transform: skewX(-6deg) translateX(-4px); clip-path: inset(60% 0 10% 0); }
  60%  { opacity: 0; transform: skewX(3deg)  translateX(8px);  clip-path: inset(0% 0 80% 0); }
  100% { opacity: 0; transform: skewX(0deg)  translateX(0px);  clip-path: inset(50% 0 50% 0); }
}

.cycle-word.glitch-out { animation: glitch-out 0.25s forwards; }
.cycle-word.glitch-in  { animation: glitch-in  0.3s forwards; }

/* Blinking period after the cycled word */
.blink-period {
  animation: blink-period 1.1s step-end infinite;
}

@keyframes blink-period {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-sub {
  font-size: 1rem;
  color: var(--dim);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 480px;
  text-align: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--dark);
  background: var(--cream-dk);
  border: 6px solid var(--chrome-d);
  border-radius: 10px;
  padding: 0.65rem 1.1rem;
  transition: background 0.15s, border-color 0.15s;
}

.cta:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
}

.cta-prompt { color: var(--cyan); font-size: 1rem; }
.cta:hover .cta-prompt { color: rgba(255,255,255,0.8); }
.cta-arrow { margin-left: 0.25rem; }


/* ====== SIDEBAR INTERNALS ====== */

.sidebar-panel {
  flex: 1;
  padding: 1.25rem;
  border-bottom: var(--border);
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--cream-dk);
  gap: 0.5rem;
}

.status-row:last-child { border-bottom: none; }

.s-key {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--dim);
  text-transform: uppercase;
}

.s-val {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-weight: 700;
}

.s-green  { color: var(--green); }
.s-cyan   { color: var(--cyan); }
.s-yellow { color: var(--yellow); }

.cmyk-swatch { display: flex; height: 18px; flex-shrink: 0; }
.swatch { flex: 1; }


/* ====== MODULES — cyberdeck menu items ====== */

.modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 12px;
  background: var(--cream-dk);
  border-top: 2px solid var(--chrome-d);
  border-bottom: 2px solid var(--chrome-d);
  flex-shrink: 0;
}

.module {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.25rem;
  background: var(--cream);
  border: 2px solid var(--chrome);
  border-top: 6px solid var(--mc, var(--chrome));
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.1s;
  box-shadow: 3px 3px 0 var(--chrome-d);
}

.module:hover {
  background: var(--cream-dk);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--chrome-d);
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.module-id {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--mc, var(--dim));
  letter-spacing: 0.1em;
}

.module-status {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 0.15rem 0.4rem;
}

.module-icon {
  width: 36px; height: 36px;
  fill: none;
  stroke: var(--mc, var(--ink));
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 0.6rem;
}

.module h3 {
  font-family: var(--mono);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--mc, var(--ink));
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  background: var(--dark);
  color: #fff;
  display: inline-block;
  padding: 0.1rem 0.4rem;
  margin-left: -0.4rem;
}

.module p {
  font-size: 0.9rem;
  color: var(--dim);
  line-height: 1.45;
}


/* ====== STATUS BAR ====== */

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: 32px;
  background: var(--ink);
  border-top: var(--border-d);
  flex-shrink: 0;
  overflow: hidden;
}

.sb-item {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(238, 234, 222, 0.6);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.sb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.sb-dot.sb-green { background: var(--green); box-shadow: 0 0 4px var(--green); }

.ticker {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  margin: 0 1.5rem;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.ticker-inner {
  display: inline-block;
  animation: ticker 18s linear infinite;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.blink {
  animation: blink 1.1s step-end infinite;
  color: var(--cyan);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}


/* ====== CHROME BOTTOM BAR ====== */

.chrome-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  background: linear-gradient(180deg, var(--chrome) 0%, var(--chrome-d) 100%);
  border-top: var(--border-d);
  flex-shrink: 0;
}

.chrome-bottom-left {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 1rem;
}

.chrome-port {
  width: 14px; height: 9px;
  background: var(--chrome-d);
  border: 1px solid rgba(0,0,0,0.3);
  border-radius: 1px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}

.chrome-bottom-center { display: none; }

.chrome-bottom-right { padding: 0 1rem; }

.chrome-copy {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--cream);
  opacity: 0.6;
  letter-spacing: 0.08em;
}


/* ====== PAGE HEADER (subpages) ====== */

.page-header {
  padding: 2rem 5.5rem 1.25rem;
  flex-shrink: 0;
}

.page-header .page-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--dim);
  margin-bottom: 0.5rem;
}

.page-header h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.page-header h1.hdr-blue  { color: var(--blue); }
.page-header h1.hdr-green { color: var(--green); }

.page-header p {
  font-family: var(--body);
  color: var(--dim);
  max-width: 620px;
  line-height: 1.6;
}


/* ====== SCROLLABLE PAGE CONTENT ====== */

.page-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 5.5rem 3rem;
}

.page-scroll::-webkit-scrollbar { width: 10px; }
.page-scroll::-webkit-scrollbar-track { background: var(--cream-dk); }
.page-scroll::-webkit-scrollbar-thumb { background: var(--chrome); border: 2px solid var(--cream-dk); }
.page-scroll::-webkit-scrollbar-thumb:hover { background: var(--chrome-d); }


/* ====== SPLIT PANEL (services picker) ====== */

.split-panel {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
}

.split-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  border: 2px solid var(--chrome);
  background: var(--cream);
  padding: 2rem;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.1s;
  box-shadow: 4px 4px 0 var(--chrome-d);
}

.split-tile:hover {
  background: var(--cream-dk);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--chrome-d);
}

.split-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: var(--tc, var(--chrome));
}

.split-tile--enterprise  { --tc: var(--blue); }
.split-tile--residential { --tc: var(--green); }

.split-icon {
  width: 52px; height: 52px;
  fill: none;
  stroke: var(--tc, var(--ink));
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.split-id {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--tc, var(--dim));
}

.split-tile h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  color: var(--ink);
}

.split-tile p {
  font-family: var(--body);
  font-size: 0.92rem;
  color: var(--dim);
  max-width: 320px;
  line-height: 1.5;
}

.split-go {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--tc, var(--dim));
  margin-top: 0.25rem;
}


/* ====== SERVICE LIST (enterprise / residential detail) ====== */

.service-list {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
}

.service-item {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1.75rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--chrome);
}

.service-item:first-child { border-top: 1px solid var(--chrome); }

.service-name {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-transform: uppercase;
}

.service-name .sc {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--sc, var(--dim));
  margin-bottom: 0.4rem;
}

.service-copy {
  font-family: var(--body);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--dim);
}

.service-copy ul {
  margin-top: 0.5rem;
  padding-left: 1.15rem;
}

.service-copy li { margin-bottom: 0.2rem; }


/* ====== CTA BLOCK (enterprise audit / fallback) ====== */

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 2.5rem 0 1rem;
  padding-top: 1.75rem;
  border-top: 2px dashed var(--chrome);
}

.cta-fallback {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--dim);
}

.cta-fallback a {
  color: var(--cyan);
  border-bottom: 1px dotted var(--cyan);
}


/* ====== PRICE BLOCK (residential) ====== */

.price-block {
  margin: 1.5rem 0 2.5rem;
  padding: 1.5rem 1.75rem;
  border: 2px solid var(--chrome);
  background: var(--cream-dk);
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
}

.price-row { display: flex; align-items: baseline; gap: 0.5rem; }

.price-amount {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--green);
  line-height: 1;
}

.price-unit {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--dim);
  letter-spacing: 0.06em;
}

.price-fine {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--dim);
  letter-spacing: 0.02em;
  max-width: 360px;
  line-height: 1.55;
}


/* ====== CONTACT PAGE ====== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: start;
}

.contact-audit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  border: 2px solid var(--chrome);
  background: var(--cream-dk);
  padding: 1.5rem;
}

.contact-audit h3 {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
}

.contact-audit p {
  font-family: var(--body);
  font-size: 0.88rem;
  color: var(--dim);
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 2px solid var(--chrome);
  background: var(--cream);
  padding: 1.5rem;
}

.form-row { display: flex; flex-direction: column; gap: 0.4rem; }

.form-row label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--cream);
  border: var(--border);
  padding: 0.6rem 0.7rem;
  border-radius: 2px;
}

.form-row textarea { resize: vertical; min-height: 110px; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  border-color: var(--cyan);
}

.form-submit {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--ink);
  border: none;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s;
}

.form-submit:hover { background: var(--dark); }
.form-submit:disabled { opacity: 0.6; cursor: default; }

.form-status {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  min-height: 1.2em;
}

.form-status.ok  { color: var(--green); }
.form-status.err { color: var(--red); }


/* ====== PANEL LABEL (used by hero sidebar + about credentials) ====== */

.panel-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}


/* ====== ABOUT PAGE ====== */

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  margin-top: 0.5rem;
  align-items: start;
}

.headshot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  border: 2px solid var(--chrome);
  background: var(--cream-dk);
  padding: 1.25rem;
  box-shadow: 3px 3px 0 var(--chrome-d);
}

.headshot-img {
  width: 220px;
  height: 250px;
  object-fit: cover;
  object-position: center 12%;
  border: 2px solid var(--chrome-d);
  border-radius: 3px;
}

.headshot-name {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-align: center;
}

.headshot-title {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
  text-align: center;
}

.about-copy {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.7;
  max-width: 900px;
}

.about-body {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.about-text { flex: 1; min-width: 0; }

.about-body .credentials {
  width: 260px;
  flex-shrink: 0;
  margin: 0;
}

.about-copy p { margin-bottom: 1.1rem; }
.about-copy p:last-child { margin-bottom: 0; }

.credentials {
  border: 2px solid var(--chrome);
  background: var(--cream);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}


/* ====== MOBILE ====== */

@media (max-width: 900px) {

  /* Allow page to scroll */
  html, body {
    overflow: auto;
    height: auto;
  }

  /* Chrome becomes a normal block, fills viewport minimum */
  .chrome {
    position: relative;
    inset: 0;
    border-radius: 0;
    border-width: 0;
    min-height: 100dvh;
  }

  /* Screen no longer fixed-height — grows with content */
  .screen {
    overflow: visible;
    height: auto;
  }

  /* UI layer is normal flow, not absolute */
  .ui-layer {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    overflow: visible;
    height: auto;
  }

  /* Boot layer still absolute within screen but screen is auto height */
  .boot-layer {
    min-height: 300px;
  }

  /* Header: smaller logo, tighter padding */
  .ui-header {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .logo-mark { height: 80px; }

  .nav-links a {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
  }

  /* Hero panel: normal flow, sidebar hidden */
  .hero-panel {
    position: relative;
    min-height: 0;
    height: auto;
  }

  .hero-text {
    position: relative;
    inset: auto;
    padding: 2.5rem 1.5rem;
    min-height: 320px;
  }

  .hero-sidebar { display: none; }

  /* Modules: single column, each card full width */
  .modules {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  /* Status bar: hide ticker on narrow screens */
  .ticker { display: none; }

  /* Chrome bars: reduce min-width */
  .chrome-top-left,
  .chrome-top-right { min-width: auto; }

  .sys-id { display: none; }

  /* Subpages: header + scroll area get mobile padding */
  .page-header { padding: 1.75rem 1.25rem 1rem; }

  .page-scroll {
    overflow: visible;
    height: auto;
    padding: 0 1.25rem 2.5rem;
  }

  /* Split panel stacks, tiles keep a tall presence */
  .split-panel {
    grid-template-columns: 1fr;
    padding: 10px;
    flex: none;
  }

  .split-tile { min-height: 220px; padding: 1.75rem 1.25rem; }

  /* Service list collapses to single column */
  .service-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1.1rem 0;
  }

  /* Contact grid stacks */
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* About grid stacks, headshot centered above bio */
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .headshot-card { flex-direction: row; align-items: center; gap: 1rem; width: 100%; }
  .headshot-img { width: 100px; height: 114px; object-position: center 12%; flex-shrink: 0; }
  .headshot-text { display: flex; flex-direction: column; gap: 0.3rem; }
  .headshot-name, .headshot-title { text-align: left; }
  .about-body { flex-direction: column; }
  .about-body .credentials { width: 100%; }
}

@media (max-width: 560px) {
  .nav-links {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}