/* ---------- Tokens ---------- */
:root {
  /* Brand palette */
  --green-deep: #1a2517;     /* dark forest green — brand */
  --sage: #acc8a2;           /* sage green — accent / highlight */
  --taupe: #92817a;          /* warm taupe — muted text */
  --accent: #FFB627;         /* warm amber — CTAs and interactive accents */
  --accent-hover: #ffc44d;
  --accent-glow: rgba(255, 182, 39, 0.38);

  /* Surfaces (dark theme) */
  --bg: #0e140c;             /* deep green-black */
  --surface: #1a2517;        /* brand dark green */
  --surface-2: #233121;

  /* Borders */
  --border: rgba(232, 236, 223, 0.08);
  --border-strong: rgba(232, 236, 223, 0.18);

  /* Text */
  --text: #e8ecdf;           /* warm cream */
  --text-dim: #b3b9a6;       /* dimmed cream/sage */
  --text-muted: var(--taupe);

  /* Effects */
  --grad: linear-gradient(135deg, #FFB627 0%, #c79a52 65%, #92817a 100%);

  --radius: 18px;
  --radius-lg: 28px;

  --max-width: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --nav-h: 74px; /* used by hero negative margin so transparent nav overlays the hero */

  --t: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Background ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 236, 223, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 236, 223, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: -2;
}
.bg-glow {
  position: fixed;
  top: -240px;
  left: 50%;
  width: 1200px;
  height: 760px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(172, 200, 162, 0.22), transparent 70%),
    radial-gradient(closest-side at 70% 40%, rgba(146, 129, 122, 0.16), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section {
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
}
.section-alt {
  background:
    linear-gradient(180deg, transparent, rgba(232, 236, 223, 0.02) 20%, rgba(232, 236, 223, 0.02) 80%, transparent);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(14, 20, 12, 0.7);
  border-bottom: 1px solid var(--border);
  transition: background .35s var(--t), border-color .35s var(--t),
              backdrop-filter .35s var(--t), -webkit-backdrop-filter .35s var(--t);
}

/* At-top state: nav is fully transparent and overlays the hero.
   The hero uses a negative top margin (= --nav-h) to slide up
   under the nav, so the hero's real gradient paints through. */
.nav.at-top {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav.at-top .logo img { filter: none; }
.nav.at-top .nav-links a { color: rgba(26, 37, 23, 0.72); }
.nav.at-top .nav-links a:hover { color: var(--green-deep); }
.nav.at-top .nav-links a::after { background: var(--green-deep); }
.nav.at-top .lang-switch {
  border-color: rgba(26, 37, 23, 0.22);
  background: rgba(26, 37, 23, 0.04);
}
.nav.at-top .lang-switch button { color: rgba(26, 37, 23, 0.65); }
.nav.at-top .lang-switch button:hover:not(.active) { color: var(--green-deep); }
.nav.at-top .lang-switch button.active {
  background: var(--green-deep);
  color: var(--text);
}
/* Burger button on the light nav (mobile only — desktop nav-links are visible) */
.nav.at-top .menu-toggle { border-color: rgba(26, 37, 23, 0.22); }
.nav.at-top .menu-toggle span { background: var(--green-deep); }
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.logo img {
  height: 45px;
  width: auto;
  display: block;
  /* The brand logo is on white with dark text — invert for dark theme.
     Replace this filter (and serve a dark-theme PNG) once you have one. */
  filter: invert(1) hue-rotate(180deg);
  transition: filter .35s var(--t);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
  transition: color .2s var(--t);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--t);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(232, 236, 223, 0.03);
}
.lang-switch button {
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s var(--t), color .2s var(--t);
  line-height: 1;
}
.lang-switch button:hover:not(.active) { color: var(--text); }
.lang-switch button.active {
  background: var(--sage);
  color: var(--green-deep);
}

/* Highlighted contact link (button-styled inside nav-links) */
.nav-links a.nav-cta-link {
  padding: 7px 18px;
  background: var(--accent);
  color: var(--green-deep);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 6px 18px -8px var(--accent-glow);
  transition: background .2s var(--t), transform .2s var(--t), box-shadow .25s var(--t);
}
.nav-links a.nav-cta-link::after { display: none; }
.nav-links a.nav-cta-link:hover {
  background: var(--accent-hover);
  color: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(172, 200, 162, 0.55);
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  margin-left: auto;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.menu-toggle span {
  width: 18px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s var(--t), opacity .2s var(--t);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform .2s var(--t), box-shadow .25s var(--t), background .2s var(--t), color .2s var(--t);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--green-deep);
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px var(--accent-glow);
  background: var(--accent-hover);
}
.btn-ghost {
  color: var(--text);
  background: rgba(232, 236, 223, 0.04);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(232, 236, 223, 0.08);
  transform: translateY(-2px);
  border-color: var(--sage);
}

/* ---------- Hero ---------- */
.hero {
  /* Pull the hero up under the transparent nav so its gradient paints through.
     padding-top compensates so visible content still starts below the nav. */
  margin-top: calc(var(--nav-h) * -1);
  padding: calc(clamp(80px, 14vw, 160px) + var(--nav-h)) 0 clamp(60px, 10vw, 100px);
  position: relative;
  background:
    radial-gradient(ellipse 90% 70% at 70% 0%, rgba(172, 200, 162, 0.55), transparent 65%),
    radial-gradient(ellipse 60% 50% at 15% 100%, rgba(216, 227, 207, 0.5), transparent 70%),
    linear-gradient(180deg, #eef2e4 0%, #d4e0c8 100%);
  border-bottom: 1px solid rgba(26, 37, 23, 0.1);
  isolation: isolate; /* keep bg-grid/bg-glow behind */
}
.hero::after {
  /* subtle fade so the transition to the dark section below is smooth */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
  opacity: 0.18;
  pointer-events: none;
}

/* Light-hero text + element overrides */
.hero .hero-title { color: var(--green-deep); }
.hero .hero-sub { color: rgba(26, 37, 23, 0.72); }
.hero .grad {
  /* Deeper amber for legibility on the light cream hero. */
  color: #E89E1F;
  background: none;
  -webkit-text-fill-color: currentColor;
}
.hero .hero-stats { border-top-color: rgba(26, 37, 23, 0.14); }
.hero .stat-num {
  background: linear-gradient(135deg, #1a2517 0%, #3d5a32 50%, #5a4d44 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .stat-label { color: rgba(26, 37, 23, 0.65); }

/* Buttons inside the light hero */
.hero .btn-ghost {
  color: var(--green-deep);
  background: rgba(26, 37, 23, 0.04);
  border: 1px solid rgba(26, 37, 23, 0.22);
}
.hero .btn-ghost:hover {
  background: rgba(26, 37, 23, 0.08);
  border-color: var(--green-deep);
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 18ch;
  margin-bottom: 28px;
  color: var(--text);
}
.grad {
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-dim);
  max-width: 56ch;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ---------- Section heads ---------- */
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sage);
  margin-bottom: 16px;
  padding: 6px 14px;
  background: rgba(172, 200, 162, 0.1);
  border: 1px solid rgba(172, 200, 162, 0.25);
  border-radius: 999px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 22ch;
  margin-bottom: 24px;
  color: var(--text);
}
.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
.section-desc {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 50ch;
}
.lead {
  font-size: 17px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

/* ---------- About ---------- */
.about-content {
  max-width: 760px;
  margin: 0 0 56px;
}
.about-content .lead strong,
.about-content p strong {
  color: var(--text);
  font-weight: 700;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 0;
}
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(232, 236, 223, 0.025);
  border: 1px solid var(--border);
  transition: transform .25s var(--t), border-color .25s var(--t), background .25s var(--t);
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: rgba(232, 236, 223, 0.05);
}
.feature-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 182, 39, 0.12);
  border: 1px solid rgba(255, 182, 39, 0.3);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.feature p {
  font-size: 14px;
  color: var(--text-dim);
}

/* Sage-tinted fallback so the carousel area doesn't flash dark on slow image loads */
.project-carousel {
  background:
    linear-gradient(135deg, rgba(172, 200, 162, 0.08), rgba(146, 129, 122, 0.06)),
    linear-gradient(135deg, var(--surface-2), var(--surface));
}

/* ---------- Projects ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--t), border-color .35s var(--t);
  position: relative;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

/* Touch devices have no hover — give cards a permanent amber tint
   so the accent does some visual work on mobile/tablet. */
@media (hover: none) {
  .feature,
  .project-card,
  .contact-item {
    border-color: rgba(255, 182, 39, 0.3);
  }
}

/* ---------- Project carousel ---------- */
.project-carousel {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.project-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.project-track::-webkit-scrollbar { display: none; }
.project-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  height: 100%;
}
.project-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(20, 26, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  padding-bottom: 2px;
  transition: background .2s var(--t), color .2s var(--t), transform .2s var(--t);
  z-index: 2;
}
.project-arrow:hover {
  background: var(--accent);
  color: var(--green-deep);
  transform: translateY(-50%) scale(1.08);
}
.project-arrow.prev { left: 14px; }
.project-arrow.next { right: 14px; }
.project-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
  padding: 6px 10px;
  background: rgba(20, 26, 18, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
}
.project-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all .25s var(--t);
}
.project-dots span.active {
  background: var(--accent);
  width: 20px;
  border-radius: 3px;
}

.project-body {
  padding: 28px;
  /* No own background — inherits the .project-card surface (0.025 cream),
     matching the look of .feature (About) and .contact-item (Contact). */
}
.project-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.project-body p {
  color: var(--text-dim);
  font-size: 15px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 26px;
  background: rgba(232, 236, 223, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .25s var(--t), border-color .25s var(--t), background .25s var(--t);
}
.contact-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: rgba(232, 236, 223, 0.05);
}
.contact-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 182, 39, 0.12);
  border: 1px solid rgba(255, 182, 39, 0.3);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-item > div:last-child {
  min-width: 0;
  flex: 1;
}
.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.contact-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: color .2s var(--t);
}
.contact-item:hover .contact-value { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--border);
  background: rgba(14, 20, 12, 0.7);
}
.footer .logo img {
  height: 42px;
  filter: invert(1) hue-rotate(180deg);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 14px;
  max-width: 30ch;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: end;
  gap: 48px;
}
.footer-cols h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sage);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-cols a,
.footer-cols span {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 8px;
  transition: color .2s var(--t);
}
.footer-cols a:hover { color: var(--sage); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--t), transform .7s var(--t);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav-inner { gap: 16px; justify-content: space-between; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(14, 20, 12, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px var(--pad);
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  /* When the burger menu is OPEN, its dropdown always has a dark background —
     so revert all the at-top light-mode overrides for items inside it. */
  .nav.at-top .nav-links.open a { color: var(--text-dim); }
  .nav.at-top .nav-links.open a:hover { color: var(--text); }
  .nav.at-top .nav-links.open a::after { background: var(--sage); }
  .nav.at-top .nav-links.open .lang-switch {
    border-color: var(--border-strong);
    background: rgba(232, 236, 223, 0.03);
  }
  .nav.at-top .nav-links.open .lang-switch button { color: var(--text-dim); }
  .nav.at-top .nav-links.open .lang-switch button:hover:not(.active) { color: var(--text); }
  .nav.at-top .nav-links.open .lang-switch button.active {
    background: var(--sage);
    color: var(--green-deep);
  }

  /* Contact CTA: in the burger menu, drop the amber-button styling
     and let it look like a regular text link (matches About/Projects/Gallery). */
  .nav-links.open .nav-cta-link {
    padding: 0;
    background: transparent;
    color: var(--text-dim);
    box-shadow: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
  }
  .nav-links.open .nav-cta-link:hover {
    background: transparent;
    color: var(--text);
  }
  .nav-links.open .nav-cta-link::after { display: block; }

  /* Visually reorder: push the language switcher below the Contact link
     so the order becomes About → Projects → Contact → lang switcher. */
  .nav-links.open .lang-switch { order: 1; }

  .features { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .projects { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-brand p { max-width: none; }
  .footer-cols { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .logo img { height: 40px; }
  .footer .logo img { height: 38px; }
}

/* ---------- Print / PDF export ---------- */
@media print {
  @page {
    size: 1280px 7800px;
    margin: 0;
  }
  html, body {
    background: var(--bg) !important;
    width: 1280px !important;
    min-width: 1280px !important;
    max-width: 1280px !important;
  }
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
    animation: none !important;
    transition: none !important;
  }
  .nav { position: relative !important; backdrop-filter: none !important; background: rgba(14, 20, 12, 0.95) !important; }
  .bg-grid, .bg-glow { position: absolute !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .feature, .project-card, .contact-item { break-inside: avoid; }

  /* Force desktop layout regardless of print viewport quirks */
  .nav-links { display: flex !important; }
  .nav-cta { display: inline-flex !important; }
  .menu-toggle { display: none !important; }
  .section-head { grid-template-columns: 1.2fr 1fr !important; }
  .projects { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-inner { grid-template-columns: 1.4fr 1fr !important; }
  .footer-cols { grid-template-columns: repeat(2, 1fr) !important; }
  .hero-stats { grid-template-columns: repeat(4, 1fr) !important; }
  .contact-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .hero-cta { flex-direction: row !important; }
  .footer-bottom { flex-direction: row !important; }
}

@media (max-width: 540px) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .logo img { height: 40px; }
  .footer .logo img { height: 34px; }
  .contact-value { font-size: 14px; }
  /* Slightly smaller carousel arrows on phones so they don't dominate. */
  .project-arrow { width: 36px; height: 36px; font-size: 20px; }
  .project-arrow.prev { left: 10px; }
  .project-arrow.next { right: 10px; }
}
