@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ============================================================
   gabemunro.com — styles.css
   Fonts: Space Grotesk (display/headings/UI) + DM Sans (body copy/forms)
   ============================================================ */

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

:root {
  --bg: #0d0d0d;
  --bg2: #141414;
  --text: #f0ede8;
  --muted: #888880;
  --accent: #c8b89a;
  --border: rgba(240, 237, 232, 0.08);
  --border-hover: rgba(240, 237, 232, 0.18);
  --nav-bg: rgba(13, 13, 13, 0.92);
  --panel-bg: linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(13, 13, 13, 0.98));
  --overlay: rgba(13, 13, 13, 0.82);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.4);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --site-nav-height: 73px;
  --styleguide-subnav-height: 50px;

  --sg-light-bg-primary: #f6f1e8;
  --sg-light-bg-secondary: #fffaf2;
  --sg-light-text-primary: #171411;
  --sg-light-text-secondary: #6d6257;
  --sg-light-accent: #9a7543;
  --sg-light-divider: rgba(0, 0, 0, 0.06);

  --sg-dark-bg-primary: #0d0d0d;
  --sg-dark-bg-secondary: #141414;
  --sg-dark-text-primary: #f0ede8;
  --sg-dark-text-secondary: #888880;
  --sg-dark-accent: #c8b89a;
  --sg-dark-divider: rgba(255, 255, 255, 0.06);

  --sg-verdict-yes: #6a9a6a;
  --sg-verdict-no: #9a6a6a;
}

html[data-theme='light'] {
  --bg: #f6f1e8;
  --bg2: #fffaf2;
  --text: #171411;
  --muted: #6d6257;
  --accent: #9a7543;
  --border: rgba(23, 20, 17, 0.08);
  --border-hover: rgba(23, 20, 17, 0.18);
  --nav-bg: rgba(246, 241, 232, 0.92);
  --panel-bg: linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(246, 241, 232, 0.98));
  --overlay: rgba(246, 241, 232, 0.76);
  --shadow-lg: 0 24px 80px rgba(23, 20, 17, 0.14);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a,
button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 500;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── NAV ── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 3rem;
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.nav-active {
  color: var(--text);
}

.nav-meta {
  min-width: 104px;
  color: var(--muted);
  text-align: right;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.nav-utilities {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.theme-switcher {
  position: relative;
}

.theme-toggle {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, opacity 0.2s;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--text);
}

.theme-toggle .theme-icon {
  transform: translateY(1px);
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon svg {
  display: block;
  width: 15px;
  height: 15px;
}

.theme-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  right: 0;
  z-index: 220;
  display: none;
  width: 236px;
  padding: 1.1rem;
  border: 1px solid var(--border-hover);
  background: var(--panel-bg);
  box-shadow: var(--shadow-lg);
}

.theme-menu.is-visible {
  display: block;
}

.theme-menu-label {
  margin-bottom: 0.9rem;
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.theme-menu-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.theme-menu-button:hover,
.theme-menu-button:focus-visible,
.theme-menu-button.is-active {
  color: var(--text);
  border-color: var(--border);
  background: var(--bg2);
}

.theme-menu-glyph {
  width: 18px;
  flex: 0 0 18px;
}

/* ── BUTTONS ── */

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-primary {
  border: none;
  background: var(--text);
  color: var(--bg);
  transition: opacity 0.2s;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  opacity: 0.85;
}

.btn-secondary {
  border: 1px solid var(--border-hover);
  background: transparent;
  color: var(--text);
  transition: border-color 0.2s;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--text);
}

/* ── DIVIDER ── */

.divider {
  margin: 0 3rem;
  border: none;
  border-top: 1px solid var(--border);
}

/* ── HERO ── */

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 3rem 5rem;
}

.hero-eyebrow {
  margin-bottom: 2rem;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-headline {
  max-width: 860px;
  margin-bottom: 2.5rem;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

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

.hero-sub {
  max-width: 540px;
  margin-bottom: 3rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── STATS BAR ── */

.stats-bar {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
}

.stat {
  flex: 1;
  margin-right: 2.5rem;
  padding: 2.5rem 2.5rem 2.5rem 0;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  margin-right: 0;
  border-right: none;
}

.stat-number {
  margin-bottom: 0.4rem;
  color: var(--text);
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── SHARED SECTION STRUCTURE ── */

section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 3rem;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--border);
}

/* ── ABOUT ── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
}

.about-text p strong {
  color: var(--text);
  font-weight: 500;
}

.about-details {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.detail-label {
  color: var(--muted);
  white-space: nowrap;
}

.detail-value {
  color: var(--text);
  font-weight: 400;
  text-align: right;
}

/* ── PROJECTS ── */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}

.project-card {
  padding: 2.25rem;
  background: var(--bg);
  transition: background 0.2s;
}

.project-card:hover {
  background: var(--bg2);
}

.project-tag {
  margin-bottom: 1rem;
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-title {
  margin-bottom: 0.75rem;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.project-desc {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.75;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stack-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 1px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-meta {
  margin-top: 1.25rem;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 300;
}

/* ── CAPABILITIES ── */

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}

.capability {
  padding: 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.capability:nth-child(3n) {
  border-right: none;
}

.capability:nth-child(n + 4) {
  border-bottom: none;
}

.capability-num {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.capability-title {
  margin-bottom: 0.5rem;
  color: var(--text);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
}

.capability-desc {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.65;
}

/* ── CONTACT CTA (homepage) ── */

.contact-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-headline {
  margin-bottom: 1.25rem;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.contact-sub {
  max-width: 440px;
  margin-right: auto;
  margin-bottom: 2.5rem;
  margin-left: auto;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ── CONTACT / THANKS PAGES ── */

.contact-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 3rem 5rem;
}

.contact-page-inner {
  max-width: 600px;
}

.contact-page-headline {
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.contact-page-sub {
  max-width: 500px;
  margin-bottom: 3rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  gap: 0.5rem;
}

.form-row label {
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  outline: none;
  background: var(--bg2);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--border-hover);
}

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

.contact-form .btn-primary {
  justify-self: start;
  margin-top: 0.5rem;
}

/* ── MODAL ── */

.modal-open {
  overflow: hidden;
}

.modal-open .site-nav,
.modal-open main,
.modal-open footer {
  filter: blur(2px);
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.site-modal.is-visible {
  display: flex;
}

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-modal-panel {
  position: relative;
  width: min(100%, 560px);
  padding: 2.5rem;
  border: 1px solid var(--border-hover);
  background: var(--panel-bg);
  box-shadow: var(--shadow-lg);
}

.site-modal-eyebrow {
  margin-bottom: 0.9rem;
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-modal-title {
  margin-bottom: 0.9rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.site-modal-copy {
  max-width: 32rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.site-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* ── FOOTER ── */

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  border-top: 1px solid var(--border);
}

footer p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

/* ── STYLE GUIDE ── */

.page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 5rem 3rem 8rem;
}

.page-title {
  margin-bottom: 0.75rem;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.page-sub {
  max-width: 720px;
  margin-bottom: 5rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}

.sg-subnav {
  position: sticky;
  top: var(--site-nav-height);
  z-index: 90;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.sg-subnav-inner {
  display: flex;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 3rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sg-subnav-inner::-webkit-scrollbar {
  display: none;
}

.sg-subnav-link {
  padding: 0.85rem 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
}

.sg-subnav-link:hover,
.sg-subnav-link:focus-visible,
.sg-subnav-link.is-active {
  border-bottom-color: var(--accent);
  color: var(--text);
}

.sg-section {
  margin-bottom: 5rem;
  scroll-margin-top: calc(var(--site-nav-height) + var(--styleguide-subnav-height) + 10px);
}

.sg-section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sg-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.sg-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

.sg-copy--spaced {
  margin-bottom: 2rem;
}

.sg-intro-block {
  margin-bottom: 2rem;
}

.sg-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.sg-tab {
  padding: 0.85rem 1.25rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.sg-tab:hover,
.sg-tab:focus-visible,
.sg-tab.is-active {
  border-bottom-color: var(--accent);
  color: var(--text);
}

.sg-tab-panel {
  display: none;
}

.sg-tab-panel.is-active {
  display: block;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  background: var(--border);
}

.color-card {
  overflow: hidden;
  background: var(--bg);
}

.color-swatch {
  width: 100%;
  height: 80px;
}

.color-swatch--light-divider {
  border-bottom: 1px solid var(--sg-light-divider);
}

.color-swatch--dark-divider {
  border-bottom: 1px solid var(--sg-dark-divider);
}

.color-swatch--light-bg-primary {
  background: var(--sg-light-bg-primary);
}

.color-swatch--light-bg-secondary {
  background: var(--sg-light-bg-secondary);
}

.color-swatch--light-text-primary {
  background: var(--sg-light-text-primary);
}

.color-swatch--light-text-secondary {
  background: var(--sg-light-text-secondary);
}

.color-swatch--light-accent {
  background: var(--sg-light-accent);
}

.color-swatch--dark-bg-primary {
  background: var(--sg-dark-bg-primary);
}

.color-swatch--dark-bg-secondary {
  background: var(--sg-dark-bg-secondary);
}

.color-swatch--dark-text-primary {
  background: var(--sg-dark-text-primary);
}

.color-swatch--dark-text-secondary {
  background: var(--sg-dark-text-secondary);
}

.color-swatch--dark-accent {
  background: var(--sg-dark-accent);
}

.color-info {
  padding: 1rem 1.1rem;
}

.color-name {
  margin-bottom: 0.35rem;
  color: var(--text);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
}

.color-role {
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.color-codes {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.color-code {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.color-code span {
  color: var(--text);
  font-weight: 500;
}

.color-note {
  max-width: 780px;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.6;
}

.type-row {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.type-row:first-child {
  padding-top: 0;
}

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

.type-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.type-label {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.type-spec {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

.type-use {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: italic;
  line-height: 1.5;
}

.sample-display-xl {
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.sample-display-lg {
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sample-display-md {
  color: var(--text);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.sample-stat {
  color: var(--text);
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.sample-nav {
  color: var(--text);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sample-eyebrow {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sample-body {
  max-width: 600px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
}

.sample-body strong {
  color: var(--text);
  font-weight: 500;
}

.sample-label {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sample-caption {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.5;
}

.accent-demo {
  margin: 1rem 0;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.accent-demo--compact {
  margin-top: 1rem;
  font-size: 1.4rem;
}

.accent-demo--compact-alt {
  margin-top: 0.75rem;
  font-size: 1.4rem;
}

.component-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stack-tag-sample {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 1px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.component-note {
  max-width: 760px;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.5;
}

.sg-mini-label {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sg-mini-label--spaced {
  margin-top: 2rem;
}

.sg-spacer {
  height: 2rem;
}

.spacing-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.spacing-row--last {
  border-bottom: none;
}

.spacing-swatch {
  height: 16px;
  flex-shrink: 0;
  background: var(--accent);
  opacity: 0.4;
}

.spacing-swatch--4 {
  width: 4px;
}

.spacing-swatch--8 {
  width: 8px;
}

.spacing-swatch--16 {
  width: 16px;
}

.spacing-swatch--24 {
  width: 24px;
}

.spacing-swatch--48 {
  width: 48px;
}

.spacing-swatch--80 {
  width: 80px;
}

.spacing-swatch--112 {
  width: 112px;
}

.spacing-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.spacing-meta strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text);
  font-weight: 500;
}

.voice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  background: var(--border);
}

.voice-card {
  padding: 1.75rem 2rem;
  background: var(--bg);
}

.voice-card-label {
  margin-bottom: 1rem;
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.voice-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
}

.voice-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.voice-list li::before {
  content: '';
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.example-pair {
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.example-row {
  display: grid;
  grid-template-columns: 80px 1fr;
}

.example-row + .example-row {
  border-top: 1px solid var(--border);
}

.example-verdict {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-right: 1px solid var(--border);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.example-verdict.yes {
  color: var(--sg-verdict-yes);
}

.example-verdict.no {
  color: var(--sg-verdict-no);
}

.example-text {
  padding: 1rem 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.example-text em {
  color: var(--text);
  font-style: normal;
}

.checklist {
  margin-top: 2rem;
}

.check-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.check-indicator {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  margin-top: 4px;
  border: 1px solid var(--accent);
  border-radius: 1px;
}

.check-text {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.print-group {
  max-width: 760px;
  margin-bottom: 2rem;
}

.print-copy {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* ── RESPONSIVE ── */

@media (max-width: 768px) {
  .site-nav {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-meta {
    display: none;
  }

  .nav-utilities {
    margin-left: auto;
  }

  .hero,
  section,
  .contact-page,
  .contact-section {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .hero {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .divider {
    margin: 0 1.5rem;
  }

  .stats-bar {
    flex-wrap: wrap;
    gap: 0;
    padding: 0 1.5rem;
  }

  .stat {
    flex: 0 0 50%;
    margin-right: 0;
    padding-right: 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stat:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-bottom: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .projects-grid,
  .capabilities-grid,
  .voice-grid {
    grid-template-columns: 1fr;
  }

  .capability {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .capability:last-child {
    border-bottom: none;
  }

  .site-modal-panel {
    padding: 2rem 1.25rem;
  }

  .site-modal-actions {
    flex-direction: column;
  }

  .theme-menu {
    right: 0;
    width: min(220px, calc(100vw - 3rem));
  }

  .page {
    padding: 3rem 1.5rem 6rem;
  }

  .sg-subnav-inner {
    gap: 1.25rem;
    padding: 0 1.5rem;
  }

  .color-grid {
    grid-template-columns: 1fr 1fr;
  }

  footer {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .color-grid {
    grid-template-columns: 1fr;
  }

  .example-row {
    grid-template-columns: 60px 1fr;
  }
}
