/* ============================================================
   Samuel Ssekizinvu — portfolio
   Palette:  cream #F3F1E7 · ink #14171A · graphite #5C6159
             forest #1E3A2C · forest-deep #10231A · abyss #0B1A13
             pine #1D5B42 · lime #C9F04D · hairline #E1DDCC
   Type:     Schibsted Grotesk (display + body) · IBM Plex Mono (data)
   Signature: the accounting double-rule + the live ops console
   ============================================================ */

:root {
  --cream: #F3F1E7;
  --card: #FFFFFC;
  --ink: #14171A;
  --graphite: #5C6159;
  --hairline: #E1DDCC;
  --forest: #1E3A2C;
  --forest-deep: #10231A;
  --abyss: #0B1A13;
  --pine: #1D5B42;
  --lime: #C9F04D;
  --band-text: #F5F3E9;
  --band-muted: rgba(245, 243, 233, 0.66);
  --band-line: rgba(255, 255, 255, 0.09);

  --font-body: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --measure: 72rem;
  --pad-x: clamp(1.25rem, 5vw, 3rem);
  --radius: 14px;

  --shadow-card: 0 1px 2px rgba(20, 23, 26, 0.05), 0 4px 16px rgba(20, 23, 26, 0.04);
  --shadow-lift: 0 2px 4px rgba(20, 23, 26, 0.06), 0 18px 44px rgba(20, 23, 26, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(20, 23, 26, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 23, 26, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--pine); color: var(--cream); }

/* ---------- signature: accounting double-rule ---------- */

.ledger-total {
  display: inline;
  padding-bottom: 0.06em;
  border-bottom: 4px double var(--pine);
}

.accent-word { color: var(--pine); }

.cursor {
  display: inline-block;
  width: 0.42em;
  height: 0.78em;
  margin-left: 0.12em;
  background: var(--ink);
  animation: blink 1.1s steps(1) infinite;
}

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

/* ---------- shared bits ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}

.eyebrow-lime { color: var(--lime); }

.status-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--pine);
  box-shadow: 0 0 0 3px rgba(29, 91, 66, 0.15);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

.status-dot-lime {
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(201, 240, 77, 0.18);
}

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

/* section rule: eyebrow — line — index */

.section-rule {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.4rem;
}

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

.sec-index {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--graphite);
}

.section-rule-dark .rule-line { background: var(--band-line); }
.section-rule-dark .sec-index { color: var(--band-muted); }

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 1rem 1.7rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease,
              box-shadow 160ms ease, transform 160ms ease;
}

.btn-arrow {
  display: inline-block;
  transition: transform 180ms ease;
}

.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-solid {
  background: var(--pine);
  color: #fff;
  box-shadow: 0 1px 2px rgba(20, 23, 26, 0.15), 0 6px 20px rgba(29, 91, 66, 0.25);
}

.btn-solid:hover { background: var(--forest); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255, 255, 252, 0.6);
  color: var(--ink);
  border-color: rgba(20, 23, 26, 0.25);
}

.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.btn-lime {
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(20, 23, 26, 0.12), 0 6px 22px rgba(201, 240, 77, 0.35);
}

.btn-lime:hover {
  box-shadow: 0 8px 32px rgba(201, 240, 77, 0.65);
  transform: translateY(-1px);
}

.text-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--pine);
  text-decoration: none;
  border-bottom: 1px solid var(--pine);
  padding-bottom: 0.1em;
}

.text-link:hover { border-bottom-style: double; border-bottom-width: 3px; }

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem var(--pad-x);
  background: rgba(243, 241, 231, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow 200ms ease;
}

.topbar.scrolled { box-shadow: 0 8px 30px rgba(20, 23, 26, 0.07); }

.wordmark {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-dot { color: var(--pine); }

.topbar-status {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--graphite);
  text-decoration: none;
  transition: color 140ms ease;
}

.nav a:hover { color: var(--ink); }

.nav .nav-cta {
  background: var(--pine);
  color: #fff;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(29, 91, 66, 0.25);
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.nav .nav-cta:hover { background: var(--forest); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
}

/* ---------- hero ---------- */

.hero {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 6.5rem) var(--pad-x) clamp(3.5rem, 8vh, 5.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

/* staggered entrance */
.hero .reveal:nth-child(1) { transition-delay: 0ms; }
.hero .reveal:nth-child(2) { transition-delay: 80ms; }
.hero .reveal:nth-child(3) { transition-delay: 160ms; }
.hero .reveal:nth-child(4) { transition-delay: 240ms; }
.hero .reveal:nth-child(5) { transition-delay: 320ms; }
.hero .console-wrap.reveal { transition-delay: 260ms; }

.hero-title {
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.028em;
  margin-top: 1.3rem;
  max-width: 16ch;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 1.6rem;
  max-width: 52ch;
  font-size: 1.1rem;
  color: var(--graphite);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.chip-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2.4rem;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
  border: 1px solid rgba(20, 23, 26, 0.2);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  background: rgba(255, 255, 252, 0.55);
}

.chip-live {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(201, 240, 77, 0.4);
}

/* ---------- ops console ---------- */

.console-wrap {
  position: relative;
  perspective: 1200px;
}

.console {
  background: var(--forest-deep);
  border: 1px solid rgba(201, 240, 77, 0.16);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 70px rgba(16, 35, 26, 0.4),
    0 6px 22px rgba(20, 23, 26, 0.18);
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1.1rem;
  background: var(--abyss);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.console-dots { display: flex; gap: 6px; }

.console-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.console-dots i:first-child { background: rgba(255, 107, 107, 0.75); }
.console-dots i:nth-child(2) { background: rgba(255, 202, 87, 0.75); }
.console-dots i:last-child { background: rgba(201, 240, 77, 0.75); }

.console-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--band-muted);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.console-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(201, 240, 77, 0.35);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

.console-body {
  position: relative;
  padding: 1.3rem 1.4rem 1.9rem;
}

/* scanlines */
.console-body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.018) 0px,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 3px
  );
}

.console-log {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 2;
  color: var(--band-text);
  min-height: 4.5rem;
}

.console-log p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-ok { color: var(--lime); margin-right: 0.5rem; }

.console-chart { margin-top: 1.1rem; }

.console-chart svg {
  display: block;
  width: 100%;
  height: 72px;
}

.spark-line {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(201, 240, 77, 0.5));
}

.spark-fill { fill: rgba(201, 240, 77, 0.08); }

.console-chart-label {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--band-muted);
}

.console-meta {
  display: flex;
  gap: 1.6rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--band-muted);
}

.console-meta b { color: var(--lime); font-weight: 600; margin-left: 0.3rem; }

/* floating chips */

.float-chip {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding: 0.6rem 0.95rem;
  border-radius: 10px;
  animation: floaty 6s ease-in-out infinite;
}

.float-chip b { color: var(--pine); margin-right: 0.2rem; }

.float-chip-a {
  top: -1.1rem;
  right: -0.9rem;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lift);
  transform: rotate(2deg);
}

.float-chip-b {
  bottom: -1.3rem;
  left: -0.9rem;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(201, 240, 77, 0.4);
  transform: rotate(-2deg);
  animation-delay: 1.2s;
}

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 252, 0.6);
  padding: 0.85rem 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  white-space: nowrap;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-sep { color: var(--pine); opacity: 0.45; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- dark bands ---------- */

.band {
  position: relative;
  background-color: var(--forest);
  background-image:
    radial-gradient(70% 90% at 78% 12%, rgba(201, 240, 77, 0.07), transparent 55%),
    radial-gradient(50% 70% at 8% 95%, rgba(201, 240, 77, 0.045), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  color: var(--band-text);
}

.band-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.band-inner-col {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) var(--pad-x);
}

.band-title {
  margin-top: 1rem;
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.1;
  color: var(--band-text);
}

.band-sub {
  margin-top: 1.25rem;
  color: var(--band-muted);
  max-width: 38ch;
}

/* the OLED career ledger */

.oled {
  position: relative;
  background: var(--forest-deep);
  border: 1px solid rgba(201, 240, 77, 0.15);
  border-radius: 12px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 24px 60px rgba(11, 26, 19, 0.5);
}

.oled::before,
.oled::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 5px rgba(201, 240, 77, 0.4));
}

.oled::before {
  top: -8px;
  left: -8px;
  border-top: 2px solid var(--lime);
  border-left: 2px solid var(--lime);
}

.oled::after {
  bottom: -8px;
  right: -8px;
  border-bottom: 2px solid var(--lime);
  border-right: 2px solid var(--lime);
}

.oled-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--band-line);
}

.oled-row dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--band-muted);
}

.oled-row dd {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(201, 240, 77, 0.35);
}

.oled-row-total { border-bottom: 4px double var(--lime); }

.oled-row-total dt { color: var(--band-text); }

/* ---------- sections ---------- */

.section {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(4rem, 9vh, 6.5rem) var(--pad-x);
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.12;
  max-width: 26ch;
  text-wrap: balance;
}

.section-foot { margin-top: 2.25rem; }

/* ---------- work ---------- */

.work-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.work-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 2.2fr) minmax(0, 1.15fr) minmax(0, 1.3fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 1.75rem;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

/* lime corner bracket on hover */
.work-row::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 22px;
  height: 22px;
  border-top: 2px solid var(--lime);
  border-left: 2px solid var(--lime);
  border-top-left-radius: var(--radius);
  opacity: 0;
  transition: opacity 200ms ease;
}

a.work-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(29, 91, 66, 0.3);
}

a.work-row:hover::before { opacity: 1; }

a.work-row:hover .work-arrow { color: var(--pine); transform: translate(2px, -2px); }

.work-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--graphite);
  opacity: 0.7;
  align-self: start;
  padding-top: 0.3rem;
}

.work-main h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.work-main p {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  color: var(--graphite);
}

.work-proof {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--pine);
}

.work-stack {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--graphite);
}

.work-arrow {
  font-size: 1.15rem;
  color: var(--graphite);
  transition: color 160ms ease, transform 160ms ease;
}

.work-arrow-muted { color: var(--hairline); }

/* ---------- services ---------- */

.services-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.6rem 1.6rem 1.8rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.service h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.service p {
  margin-top: 0.55rem;
  font-size: 0.93rem;
  color: var(--graphite);
}

.toolbox {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--forest);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(30, 58, 44, 0.25);
}

.toolbox-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.toolbox-line {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--band-text);
}

/* ---------- open source ---------- */

.package-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.package {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.4rem 1.7rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.package:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.package-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--pine);
}

.package h3 {
  margin-top: 0.8rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.package p {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: var(--graphite);
}

/* ---------- testimonials band ---------- */

.quote-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.quote {
  background: var(--forest-deep);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  transition: border-color 200ms ease, transform 200ms ease;
}

.quote:hover {
  border-color: rgba(201, 240, 77, 0.3);
  transform: translateY(-3px);
}

.quote p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--band-text);
}

.quote p::before {
  content: "\201C";
  display: block;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--lime);
  margin-bottom: 0.4rem;
  font-family: Georgia, serif;
}

.quote footer {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--band-line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--lime);
}

/* ---------- credentials + writing ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 1rem;
}

.cred-list {
  margin-top: 2.25rem;
  list-style: none;
}

.cred-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 160ms ease;
}

.cred-list li:hover { background: rgba(255, 255, 252, 0.7); }

.cred-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--graphite);
  white-space: nowrap;
}

.writing-list {
  margin-top: 2.25rem;
  list-style: none;
}

.writing-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--hairline);
  transition: background-color 160ms ease;
}

.writing-row:hover { background: rgba(255, 255, 252, 0.7); }

.writing-title { font-weight: 500; font-size: 0.95rem; }

.writing-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--graphite);
  white-space: nowrap;
}

/* ---------- contact ---------- */

.section-contact .section-head h2 { max-width: none; }

.contact-grid {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info p {
  color: var(--graphite);
  max-width: 32ch;
}

.contact-email {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--pine);
  text-decoration: none;
  border-bottom: 4px double var(--pine);
  padding-bottom: 0.15em;
}

.social-list {
  margin-top: 2rem;
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.social-list a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--graphite);
  text-decoration: none;
}

.social-list a:hover { color: var(--ink); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  padding: 2.2rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact-form label span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(29, 91, 66, 0.14);
}

.contact-form textarea { resize: vertical; }

.contact-form .btn { align-self: flex-start; }

.contact-form .btn[disabled] {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1rem;
  border-radius: 10px;
}

.form-status.ok {
  display: block;
  background: rgba(29, 91, 66, 0.1);
  color: var(--pine);
  border: 1px solid rgba(29, 91, 66, 0.3);
}

.form-status.err {
  display: block;
  background: rgba(178, 58, 58, 0.08);
  color: #A03232;
  border: 1px solid rgba(178, 58, 58, 0.3);
}

.form-status a { color: inherit; font-weight: 600; }

/* ---------- footer (dark) ---------- */

.footer {
  background-color: var(--forest);
  background-image:
    radial-gradient(60% 100% at 85% 0%, rgba(201, 240, 77, 0.06), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  color: var(--band-text);
}

.footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 7vh, 4.5rem) var(--pad-x) 2.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
}

.footer-line {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.footer-mail {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--lime);
  text-decoration: none;
  border-bottom: 4px double var(--lime);
  padding-bottom: 0.15em;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
}

.footer-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--band-muted);
  text-decoration: none;
  transition: color 140ms ease;
}

.footer-nav a:hover { color: var(--band-text); }

.footer-bar {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.4rem var(--pad-x) 1.8rem;
  border-top: 1px solid var(--band-line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--band-muted);
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(0.2, 0.6, 0.2, 1),
              transform 600ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- focus ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.band a:focus-visible,
.band button:focus-visible,
.footer a:focus-visible {
  outline-color: var(--lime);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .topbar-status { display: none; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .console-wrap { max-width: 34rem; }
  .band-inner { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .work-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "index main arrow"
      "index proof proof"
      "index stack stack";
    gap: 0.6rem 1rem;
  }
  .work-index { grid-area: index; }
  .work-main { grid-area: main; }
  .work-proof { grid-area: proof; line-height: 1.5; }
  .work-proof br { display: none; }
  .work-stack { grid-area: stack; }
  .work-arrow { grid-area: arrow; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .package-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 4rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 1.25rem; }
}

@media (max-width: 640px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 18px 40px rgba(20, 23, 26, 0.12);
    display: none;
  }

  .nav.open { display: flex; }

  .nav a {
    width: 100%;
    padding: 1rem var(--pad-x);
    border-top: 1px solid var(--hairline);
    font-size: 1rem;
  }

  .nav .nav-cta {
    width: auto;
    margin: 0.75rem var(--pad-x) 1rem;
    padding: 0.6rem 1.3rem;
    border-top: none;
  }

  .nav-toggle { display: flex; }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .float-chip-a { right: 0.25rem; }
  .float-chip-b { left: 0.25rem; }

  .services-grid { grid-template-columns: 1fr; }
  .package-grid { grid-template-columns: 1fr; }
  .writing-row { flex-direction: column; gap: 0.2rem; align-items: flex-start; }
  .section-rule { gap: 0.9rem; }
  .eyebrow { white-space: normal; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .status-dot { animation: none; }
  .cursor { animation: none; }
  .marquee-track { animation: none; }
  .float-chip { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
