/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; display: block; }

/* ─────────────────────────────────────────────
   BRAND COLOUR VARIABLES
   Move The Machine Brand Guidelines 2025
   Primary:   #B5963C  Signature Gold
              #0C0C0C  Deep Black
              #F7F5F0  Warm Cream
   Secondary: #1E1E1E  Charcoal
              #5A5A5A  Mid Grey
              #9A9A9A  Light Grey
              #C8AA5A  Gold Mid (hover)
              #E8D48A  Gold Pale
              #FAFAF8  Warm White (cards)
───────────────────────────────────────────── */
:root {
  --bg:              #F7F5F0;
  --text:            #1E1E1E;
  --text-supporting: #5A5A5A;
  --text-label:      #9A9A9A;
  --card:            #FAFAF8;
  --header:          #0C0C0C;
  --hero-bg:         #0C0C0C;
  --accent:          #B5963C;
  --accent-hover:    #C8AA5A;
  --accent-pale:     #E8D48A;
  --shadow:          rgba(0,0,0,0.08);
  --border-subtle:   rgba(0,0,0,0.07);
  --footer-color:    #5A5A5A;
}

/* DARK MODE — "Dark: Black bg, Gold heads, White body" */
body.dark-mode {
  --bg:              #0C0C0C;
  --text:            #F7F5F0;
  --text-supporting: #9A9A9A;
  --text-label:      #5A5A5A;
  --card:            #1E1E1E;
  --shadow:          rgba(0,0,0,0.5);
  --border-subtle:   rgba(255,255,255,0.07);
  --footer-color:    #9A9A9A;
}

/* BASE */
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  transition: background 0.3s ease, color 0.3s ease;
}

/* SKIP LINK */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ── HEADER ──────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--header);
  color: white;
  padding: 0.85rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

/* LOGO — "light elegant weight, wide tracking" */
a.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  cursor: pointer;
}
.logo img {
  width: 80px;
  height: 50px;
  object-fit: contain;
  filter: invert(1);
}
.logo-text {
  color: #fff;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.4;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}
nav a:hover { color: var(--accent-hover); }
nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* DARK TOGGLE */
.dark-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  min-height: 44px;
}
.dark-toggle:hover {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}

/* HAMBURGER */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  min-height: 44px;
}

/* MOBILE NAV */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 1rem 0 0.5rem;
    gap: 0.25rem;
  }
  nav.open { display: flex; }
  nav a { min-height: 44px; }
  .hamburger { display: block; }
  header { flex-wrap: wrap; }
}

/* ── HERO ────────────────────────────────────── */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 8%;
  background: var(--hero-bg);
  color: white;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}
/* H1 — Montserrat Black, Tracking +20 */
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  color: #fff;
}
.hero-text > p {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  margin-bottom: 2.25rem;
  letter-spacing: 0.01em;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* HERO CARD */
.hero-card {
  background: var(--card);
  color: var(--text);
  padding: 2.25rem;
  border-radius: 2px;
  border-left: 3px solid var(--accent);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  min-width: 280px;
  flex: 0 1 320px;
}
/* H3 — Montserrat Bold */
.hero-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.hero-card > p {
  font-size: 0.825rem;
  color: var(--text-supporting);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.metric {
  margin-top: 1.25rem;
  font-size: 0.72rem;
  color: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.metric strong {
  display: block;
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.15rem;
}

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  padding: 0.9rem 1.6rem;
  border-radius: 2px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: #0C0C0C; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
}
.btn-secondary:hover {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}

/* ── SECTION SHARED ──────────────────────────── */
section { padding: 5rem 8%; }

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}
/* H2 — Montserrat Bold */
.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.85rem;
  color: var(--text);
}
.section-title p {
  color: var(--text-supporting);
  max-width: 640px;
  margin: auto;
  font-size: 0.95rem;
  font-weight: 400;
}

/* ── WHY ─────────────────────────────────────── */
section.why-section {
  background: #0C0C0C !important;
  padding: 5rem 8%;
}
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
  max-width: 1200px;
}
/* Gold eyebrow label — matches brand accent treatment */
.why-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.3rem;
  margin-bottom: 1.5rem;
}
.why-heading h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: #fff;
  text-align: left;
}
.why-body p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}
.why-body p:last-child { margin-bottom: 0; }

/* ── SERVICES ────────────────────────────────── */
section.services-section {
  background: #0C0C0C !important;
  padding: 5rem 8%;
}
.services-section .section-title h2 {
  color: #fff;
}
.services-section .services-intro p {
  color: rgba(255,255,255,0.55);
}
.services-section .service-card {
  background: var(--card);
  border-top-color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.services-section .service-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
}
.services-section .service-card-header h3 {
  color: var(--text);
}
.services-section .service-card-body p {
  color: var(--text-supporting);
}
.services-section .service-problems {
  border-top-color: var(--border-subtle);
}
.services-section .service-problems li {
  color: var(--text-label);
  border-bottom-color: var(--border-subtle);
}
.services-intro {
  max-width: 780px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.services-intro p {
  font-size: 0.95rem;
  color: var(--text-supporting);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.services-intro p:last-child { margin-bottom: 0; }
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.service-card {
  background: var(--card);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  border-radius: 2px;
  border-top: 3px solid var(--accent);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  user-select: none;
}
.service-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  transform: translateY(-2px);
}
.service-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.5rem 1.75rem;
}
.service-card-header .card-icon {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0;
  flex-shrink: 0;
}
.service-card-header h3 {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}
.service-toggle {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.25s ease;
  display: block;
  width: 20px;
  text-align: center;
}
.service-card.open .service-toggle {
  transform: rotate(45deg);
}
.service-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.75rem;
  border-top: 0px solid var(--border-subtle);
}
.service-card.open .service-card-body {
  max-height: 600px;
  padding: 1.25rem 1.75rem 1.75rem;
  border-top-width: 1px;
}
.service-card-body p {
  font-size: 0.875rem;
  color: var(--text-supporting);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.service-card-body p:last-of-type { margin-bottom: 1.25rem; }
.service-problems {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}
.service-problems li {
  font-size: 0.8rem;
  color: var(--text-label);
  line-height: 1.5;
  padding: 0.35rem 0 0.35rem 1rem;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}
.service-problems li:last-child { border-bottom: none; }
.service-problems li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── TESTIMONIALS ────────────────────────────── */
#testimonials { background: var(--bg); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 4px 20px var(--shadow);
  padding: 2.25rem;
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-card > p {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-supporting);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
/* Gold opening quote mark */
.testimonial-card > p::before {
  content: '\201C';
  font-size: 2.5rem;
  font-style: normal;
  color: var(--accent);
  line-height: 0;
  vertical-align: -0.6rem;
  margin-right: 0.15rem;
}
.testimonial-author strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}
.testimonial-author span {
  font-size: 0.75rem;
  color: var(--text-label);
  letter-spacing: 0.04em;
}

/* ── INSIGHTS ────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 4px 20px var(--shadow);
  padding: 2.25rem;
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.blog-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.blog-card p {
  font-size: 0.85rem;
  color: var(--text-supporting);
  line-height: 1.7;
}

/* ── ABOUT ───────────────────────────────────── */
section.about-section {
  background: #0C0C0C !important;
  padding: 5rem 8%;
}
.about-card {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 4px 20px var(--shadow);
  border-radius: 2px;
  border-left: 3px solid var(--accent);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.about-heading h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}
.about-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
}
.about-body p {
  font-size: 0.9rem;
  color: var(--text-supporting);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-body p:last-child { margin-bottom: 0; }
.about-founder {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.about-founder .about-label {
  margin-bottom: 1rem;
}
.about-founder p {
  font-size: 0.9rem;
  color: var(--text-supporting);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-founder p:last-child { margin-bottom: 0; }
.about-values {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.about-value {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.875rem;
}
.about-value strong {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.about-value span {
  color: var(--text-supporting);
  line-height: 1.6;
}

/* ── CONTACT — white bg, black card ─────────── */
.contact-section {
  padding: 5rem 8%;
  background: var(--bg);
}
.contact-card {
  background: #0C0C0C;
  border-radius: 2px;
  border-left: 3px solid var(--accent);
  padding: 3.5rem;
}
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

/* Contact intro — white text on black */
.contact-intro h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 1.25rem;
}
.contact-intro > p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-detail { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-detail a,
.contact-detail span:not(.contact-label) {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-detail a:hover { color: var(--accent-hover); }

/* FORM — on black background */
.contact-form-wrap { position: relative; }

.form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.4rem;
}
.required { color: var(--accent); }

.form-group input,
.form-group textarea {
  background: #ffffff;
  color: #1E1E1E;
  border: 2px solid transparent;
  border-radius: 2px;
  padding: 0.85rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181,150,60,0.2);
}
.form-group input.invalid,
.form-group textarea.invalid { border-color: #c0392b; }

.field-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 0.3rem;
  min-height: 1em;
}
.char-count {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
  margin-left: 0.5rem;
  flex-shrink: 0;
}
.field-error {
  font-size: 0.7rem;
  color: #f87171;
  margin-top: 0.3rem;
  min-height: 1em;
}

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

/* Turnstile */
.cf-turnstile { margin-bottom: 1.5rem; }

/* Submit */
.btn-submit { width: 100%; text-align: center; padding: 1rem; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Status message */
.form-status {
  padding: 1rem 1.25rem;
  border-radius: 2px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent);
}
.form-status.success {
  background: rgba(181,150,60,0.12);
  color: #fff;
  border-left-color: var(--accent);
}
.form-status.error {
  background: rgba(192,57,43,0.12);
  color: #f87171;
  border-left-color: #c0392b;
}

/* Focus ring — brand-consistent */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid var(--accent-hover);
  outline-offset: 3px;
}

/* ── REVEAL ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ── FOOTER ──────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--footer-color);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border-subtle);
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .contact-container { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-card { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem; }
  .why-inner { grid-template-columns: 1fr; gap: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 2.5rem; }
}

@media (max-width: 768px) {
  .hero-text h1 { font-size: 2.25rem; }
  .form-row--half { grid-template-columns: 1fr; }
  .contact-card { padding: 2rem 1.5rem; }
  .contact-container { gap: 2rem; }
}

@media (max-width: 480px) {
  section { padding: 4rem 6%; }
  .hero { padding: 4rem 6%; }
  .contact-section { padding: 3rem 5%; }
  .contact-card { padding: 1.75rem 1.25rem; border-left-width: 2px; }
  .form-group input,
  .form-group textarea { font-size: 1rem; } /* Prevents iOS auto-zoom on focus */
  .btn-submit { font-size: 0.8rem; padding: 0.9rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── BLOG READ MORE BUTTON ───────────────────── */
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  transition: color 0.2s ease;
}
.blog-read-more:hover { color: var(--accent-hover); }

/* ── ARTICLE MODAL ───────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.modal-visible {
  opacity: 1;
  pointer-events: all;
}
.modal-container {
  background: var(--card);
  color: var(--text);
  border-radius: 2px;
  border-left: 3px solid var(--accent);
  width: 100%;
  max-width: 780px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  transform: translateY(16px);
  transition: transform 0.25s ease;
}
.modal-overlay.modal-visible .modal-container {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.modal-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-supporting);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  transition: color 0.2s ease;
  font-family: 'Montserrat', sans-serif;
}
.modal-close:hover { color: var(--text); }
.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}
.modal-body h2 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: 1.75rem;
  color: var(--text);
}
.modal-body p {
  font-size: 0.9rem;
  color: var(--text-supporting);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}
.modal-body p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-container { max-height: 92vh; border-radius: 8px 8px 0 0; border-left: none; border-top: 3px solid var(--accent); }
}