@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --charcoal: #2d2d2d;
  --slate: #3d4f5f;
  --steel: #5a7a8c;
  --gold: #b89b5e;
  --gold-hover: #c9ac6f;
  --blue: #3a6b8c;
  --bg-warm: #faf8f5;
  --bg-cool: #f0f3f5;
  --text-primary: #3a3a3a;
  --text-secondary: #6b6b6b;
  --border: #d4d0c8;
  --white: #ffffff;
  --nav-h: 72px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg-warm);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img,
svg {
  display: block;
}

code {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.94em;
  font-weight: 600;
  font-variant-ligatures: none;
  letter-spacing: 0.01em;
  color: var(--charcoal);
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 2000;
  padding: 8px 14px;
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 600;
  border-radius: 4px;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* Navigation — matches gmbxdigital.com: fixed charcoal bar, 72px */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(20px, 4vw, 40px);
  background: var(--charcoal);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.nav.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: 1200px;
  margin: 0 auto;
}

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

.nav-logo-icon {
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-name {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--white);
  text-transform: uppercase;
}

.nav-logo-sub {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--steel);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 10px 24px;
  font-size: 0.85rem;
  background: rgba(184, 155, 94, 0.12);
  border: 1px solid rgba(184, 155, 94, 0.35);
  border-radius: 4px;
  color: var(--gold) !important;
  font-weight: 600;
  transition: all 0.25s;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: rgba(184, 155, 94, 0.22);
  border-color: var(--gold);
  color: var(--gold) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Draft notice — visible, not cloaked */
.draft-banner {
  margin-top: var(--nav-h);
  background: #efe6d3;
  border-bottom: 1px solid rgba(184, 155, 94, 0.35);
  color: var(--charcoal);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  padding: 10px clamp(20px, 4vw, 40px);
}

/* Hero — charcoal like the company site, but not min-height 100vh */
.hero {
  background: var(--charcoal);
  padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 10vw, 128px);
}

.hero-content {
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 28px;
}

.hero-title .accent {
  display: inline;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.75;
  color: var(--steel);
  max-width: 620px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--gold-hover);
  box-shadow: 0 4px 16px rgba(184, 155, 94, 0.3);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  padding: 15px 35px;
}

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

/* Sections */
.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin-top: 16px;
}

.section-desc {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 16px;
}

.projects {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg-warm);
}

.projects-header {
  margin-bottom: clamp(48px, 5vw, 72px);
}

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

.project {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 32px 30px;
  background: var(--bg-cool);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.project:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.project-head {
  margin-bottom: 12px;
}

.project h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.stack {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lede {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.proof {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.proof li {
  position: relative;
  padding-left: 1.05rem;
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.proof li:last-child {
  margin-bottom: 0;
}

.proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
}

.proof strong {
  color: var(--charcoal);
  font-weight: 600;
}

.project-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-top: auto;
  padding-top: 8px;
}

.case-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}

.case-link:hover,
.case-link:focus-visible {
  color: var(--gold);
}

.repo-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--steel);
}

.repo-link:hover,
.repo-link:focus-visible {
  color: var(--charcoal);
  text-decoration: underline;
}

.repo-status {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Contact */
.contact {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--charcoal);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 16px;
}

.contact-sub {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 500px;
  margin: 0 auto 40px;
}

.contact .btn-gold {
  font-size: 1rem;
  padding: 18px 44px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.contact-email,
.contact-github {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.contact-email:hover,
.contact-email:focus-visible,
.contact-github:hover,
.contact-github:focus-visible {
  color: var(--gold);
}

/* Footer */
.footer {
  padding: 48px 0 40px;
  background: var(--slate);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.footer-brand strong {
  color: var(--gold);
  font-weight: 600;
}

.footer-copy,
.footer-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  max-width: 480px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

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

/* Case study pages */
.case {
  padding: clamp(56px, 8vw, 96px) 0 clamp(80px, 10vw, 120px);
  background: var(--bg-warm);
}

.case-header {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.case-header .lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.75;
  color: var(--text-primary);
  margin: 20px 0 16px;
}

.case-body {
  max-width: 760px;
}

.case-body .proof li {
  margin-bottom: 1.15rem;
  font-size: 1rem;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.case-meta h2 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.case-meta p,
.case-meta a {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.case-meta a:hover,
.case-meta a:focus-visible {
  color: var(--steel);
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--steel);
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--charcoal);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: var(--charcoal);
    padding: 40px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.05rem;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

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

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }

  .nav-logo-name {
    letter-spacing: 0.1em;
    font-size: 0.82rem;
  }
}

@media print {
  .nav,
  .hamburger,
  .skip-link,
  .draft-banner {
    position: static;
  }

  .hamburger {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero,
  .contact,
  .footer,
  .nav {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none;
  }

  .hero-title,
  .contact-title,
  .nav-logo-name,
  .section-title {
    color: #000 !important;
  }

  a {
    color: #000;
  }

  .project {
    box-shadow: none;
    break-inside: avoid;
  }
}
