/* =============================================================
   CEASUS AGENCIES — main.css
   Production stylesheet.
   Sections: Reset > Tokens > Typography > Layout > Buttons >
             Nav > Hero > Marquee > Stats > About > Services >
             Projects > Divider > Contact > Footer >
             Animations > Media Queries
   ============================================================= */

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
a { color: inherit; }
ul { list-style: none; }

/* ── DESIGN TOKENS ── */
:root {
  --gold:       #C9A84C;
  --gold-light: #E8C97A;
  --gold-dim:   rgba(201,168,76,0.15);
  --gold-faint: rgba(201,168,76,0.07);
  --black:      #0A0A08;
  --black2:     #111109;
  --black3:     #181813;
  --white:      #F5F2EC;
  --muted:      rgba(245,242,236,0.55);
  --gray:       #8A8A7A;
  --radius:     2px;
  --ease:       cubic-bezier(0.4,0,0.2,1);
  --dur:        0.35s;
  --max-width:  1200px;
  --gutter:     48px;
}

/* ── TYPOGRAPHY ── */
.display { font-family: 'Cormorant Garamond', serif; font-weight: 300; line-height: 1.08; }
.display em { font-style: italic; color: var(--gold); }
.eyebrow { font-size: 11px; letter-spacing: 3.5px; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.rule { width: 56px; height: 1px; background: var(--gold); }

/* ── LAYOUT ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 110px 0; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--gold); color: var(--black);
  border: none; padding: 17px 42px;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 600; font-family: 'Inter', sans-serif;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
  transition: all 0.4s var(--ease);
}
.btn-primary:hover {
  background: var(--gold-light); transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.45);
}
.btn-primary:active { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(201,168,76,0.3); }

.btn-secondary {
  display: inline-block;
  background: transparent; color: var(--white);
  border: 1px solid rgba(245,242,236,0.28);
  padding: 17px 42px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  font-family: 'Inter', sans-serif; border-radius: 50px;
  transition: all 0.4s var(--ease);
}
.btn-secondary:hover {
  border-color: var(--gold); color: var(--black);
  background: var(--gold);
  box-shadow: 0 8px 30px rgba(201,168,76,0.35);
  transform: translateY(-3px);
}

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: background var(--dur) var(--ease), padding var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(10,10,8,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px var(--gutter);
  border-bottom-color: var(--gold-dim);
}
.nav-logo img { height: 48px; transition: height var(--dur) var(--ease); }
#nav.scrolled .nav-logo img { height: 40px; }
.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a {
  font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase;
  color: rgba(245,242,236,0.65); text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: transparent; border: 1px solid var(--gold); color: var(--gold);
  padding: 10px 28px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  border-radius: 50px;
  transition: all 0.4s var(--ease);
}
.nav-cta:hover {
  background: var(--gold); color: var(--black);
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
  transform: translateY(-2px);
}
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-burger span { display: block; width: 24px; height: 1px; background: var(--white); transition: all 0.3s; }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: rgba(10,10,8,0.98); z-index: 190;
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 2rem; font-family: 'Cormorant Garamond', serif;
  font-weight: 300; color: var(--white); text-decoration: none;
  letter-spacing: 2px; transition: color var(--dur) var(--ease);
}
.mobile-menu a:hover, .mobile-menu .mobile-cta { color: var(--gold); }
.mobile-close { position: absolute; top: 24px; right: 32px; background: none; border: none; color: var(--white); font-size: 28px; line-height: 1; }

/* ── HERO ── */
#hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-video-wrap { position: absolute; inset: 0; }
.hero-video-wrap video { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(180deg, rgba(10,10,8,0.45) 0%, rgba(10,10,8,0.28) 40%, rgba(10,10,8,0.92) 100%);
}
.hero-content { position: relative; z-index: 4; text-align: center; padding: 0 24px; max-width: 920px; }
.hero-content .eyebrow { margin-bottom: 28px; animation: fadeUp 0.9s ease both; }
.hero-title { font-size: clamp(3rem,7.5vw,6.8rem); margin-bottom: 28px; animation: fadeUp 0.9s 0.12s ease both; }
.hero-sub {
  font-size: 15px; line-height: 1.85; color: var(--muted);
  max-width: 540px; margin: 0 auto 52px;
  animation: fadeUp 0.9s 0.22s ease both;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeUp 0.9s 0.32s ease both; }
.hero-scroll {
  position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(245,242,236,0.3); font-size: 10px; letter-spacing: 3.5px; text-transform: uppercase;
  z-index: 4; animation: scrollBounce 2.4s infinite;
}
.hero-scroll-line { width: 1px; height: 52px; background: linear-gradient(180deg, var(--gold) 0%, transparent 100%); }

/* ── MARQUEE ── */
.marquee-bar {
  background: rgba(201,168,76,0.05);
  border-top: 1px solid var(--gold-dim); border-bottom: 1px solid var(--gold-dim);
  padding: 18px 0; overflow: hidden;
}
.marquee-track { display: flex; gap: 56px; animation: marquee 30s linear infinite; width: max-content; }
.marquee-item { display: flex; align-items: center; gap: 20px; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: rgba(201,168,76,0.45); white-space: nowrap; }
.marquee-diamond { width: 4px; height: 4px; background: var(--gold); transform: rotate(45deg); opacity: 0.45; flex-shrink: 0; }

/* ── STATS ── */
#stats { background: var(--black3); border-bottom: 1px solid var(--gold-dim); }
.stats-inner { display: grid; grid-template-columns: repeat(4,1fr); max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.stat-item { padding: 56px 32px; text-align: center; border-right: 1px solid var(--gold-dim); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 4rem; font-weight: 300; color: var(--gold); line-height: 1; }
.stat-label { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gray); margin-top: 10px; }

/* ── ABOUT ── */
#about { background: var(--black); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.about-images { position: relative; height: 520px; }
.about-img-main { width: 74%; height: 430px; object-fit: cover; position: absolute; top: 0; left: 0; border: 1px solid var(--gold-dim); }
.about-img-accent { width: 54%; height: 290px; object-fit: cover; position: absolute; bottom: 0; right: 0; border: 2px solid var(--gold); }
.about-accent-label {
  position: absolute; bottom: 290px; right: 0; width: 54%;
  background: var(--gold); color: var(--black);
  padding: 12px 20px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; text-align: center;
}
.about-text .eyebrow { margin-bottom: 18px; }
.about-title { font-size: clamp(2rem,3.5vw,3.2rem); margin-bottom: 24px; }
.about-text .rule { margin-bottom: 32px; }
.about-text p { font-size: 14.5px; color: var(--muted); line-height: 1.95; margin-bottom: 18px; }
.about-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.badge { display: flex; align-items: center; gap: 10px; border: 1px solid var(--gold-dim); background: var(--gold-faint); padding: 10px 18px; }
.badge span { font-size: 11px; letter-spacing: 1px; color: rgba(201,168,76,0.8); }

/* ── SERVICES ── */
#services { background: var(--black2); }
.services-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 64px; flex-wrap: wrap; gap: 24px; }
.services-header-text .eyebrow { margin-bottom: 16px; }
.services-title { font-size: clamp(2rem,3.5vw,3.2rem); margin-bottom: 20px; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--gold-dim); border: 1px solid var(--gold-dim); }
.service-card {
  background: var(--black2); padding: 44px 36px;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, background var(--dur) var(--ease);
}
.service-card.in { opacity: 1; transform: translateY(0); }
.service-card:hover { background: var(--black3); }
.service-card:hover .service-icon-wrap { border-color: var(--gold); }
.service-num { font-family: 'Cormorant Garamond', serif; font-size: 13px; color: rgba(201,168,76,0.35); letter-spacing: 1px; margin-bottom: 20px; }
.service-icon-wrap { width: 46px; height: 46px; border: 1px solid var(--gold-dim); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; font-size: 18px; transition: border-color var(--dur) var(--ease); }
.service-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 400; margin-bottom: 12px; }
.service-card p { font-size: 13px; color: var(--gray); line-height: 1.85; }

/* ── PROJECTS ── */
#projects { background: var(--black); }
.projects-section { padding-bottom: 80px; }
.projects-header { margin-bottom: 56px; }
.projects-header .eyebrow { margin-bottom: 18px; }
.projects-title { font-size: clamp(2rem,3.5vw,3.2rem); margin-bottom: 20px; }
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: 380px 280px; gap: 4px; }
.project-tile { position: relative; overflow: hidden; cursor: pointer; opacity: 0; transform: scale(0.98); transition: opacity 0.55s ease, transform 0.55s ease; }
.project-tile.in { opacity: 1; transform: scale(1); }
.project-tile:nth-child(1) { grid-column: span 2; }
.project-tile:nth-child(4) { grid-column: span 2; }
.project-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.65s var(--ease); }
.project-tile:hover img { transform: scale(1.06); }
.tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,transparent 35%,rgba(10,10,8,0.88) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; opacity: 0; transition: opacity 0.35s ease;
}
.project-tile:hover .tile-overlay { opacity: 1; }
.tile-overlay .eyebrow { margin-bottom: 6px; }
.tile-overlay h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 300; color: var(--white); }
.projects-cta { margin-top: 48px; text-align: center; }

/* ── VIDEO DIVIDER ── */
#divider { position: relative; height: 520px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
#divider::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: var(--black);
}
#divider video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.divider-over { position: absolute; inset: 0; z-index: 2; background: rgba(10,10,8,0.55); }
.divider-content { position: relative; z-index: 3; text-align: center; padding: 0 24px; }
.divider-content .rule { margin: 0 auto 28px; }
.divider-content h2 { font-size: clamp(2.4rem,5vw,4.4rem); margin-bottom: 16px; }
.divider-content p { font-size: 13px; color: var(--muted); letter-spacing: 1px; margin-bottom: 36px; }

/* ── CONTACT ── */
#contact { background: var(--black2); }
.contact-title { font-size: clamp(2rem,3.5vw,3.2rem); margin: 18px 0 20px; }
.rule-contact { margin-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 88px; margin-top: 60px; }
.contact-info h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 300; margin-bottom: 36px; line-height: 1.3; }
.contact-detail { display: flex; gap: 18px; margin-bottom: 28px; align-items: flex-start; }
.c-icon { width: 42px; height: 42px; flex-shrink: 0; border: 1px solid var(--gold-dim); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--gold); }
.contact-detail strong { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; font-weight: 500; }
.contact-detail p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.contact-detail a { color: var(--muted); text-decoration: none; transition: color var(--dur) var(--ease); }
.contact-detail a:hover { color: var(--gold); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-wrap { position: relative; }
.field-err { display: none; font-size: 11px; color: #e05252; margin-top: 5px; }
.field-err.show { display: block; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; background: rgba(245,242,236,0.03);
  border: 1px solid rgba(201,168,76,0.15); color: var(--white);
  padding: 15px 18px; font-size: 13px; font-family: 'Inter', sans-serif;
  outline: none; appearance: none; -webkit-appearance: none;
  border-radius: 12px; transition: border-color var(--dur) var(--ease);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--gray); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: rgba(201,168,76,0.45); box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
.contact-form input.error, .contact-form select.error { border-color: #e05252; }
.contact-form textarea { height: 130px; resize: vertical; }
.contact-form select option { background: var(--black2); }
.form-footer { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-msg { font-size: 12px; color: var(--gold); display: none; letter-spacing: 0.5px; }
.form-msg.show { display: block; }
.form-msg.error { color: #e05252; }

/* ── FOOTER ── */
footer { background: var(--black); border-top: 1px solid var(--gold-dim); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding: 72px var(--gutter) 56px; max-width: var(--max-width); margin: 0 auto; }
.footer-brand img { height: 52px; margin-bottom: 20px; }
.footer-brand p { font-size: 13px; color: var(--gray); line-height: 1.8; max-width: 280px; }
.footer-col h4 { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; font-weight: 500; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 13px; color: var(--gray); text-decoration: none; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-addr { font-size: 13px; color: var(--gray); margin-top: 4px; }
.footer-bottom { border-top: 1px solid var(--gold-dim); padding: 24px var(--gutter); display: flex; align-items: center; justify-content: space-between; max-width: var(--max-width); margin: 0 auto; }
.footer-bottom p { font-size: 12px; color: var(--gray); letter-spacing: 0.5px; }
.footer-tagline { color: var(--gray); font-size: 12px; }
.footer-socials { display: flex; gap: 14px; margin-top: 20px; }
.footer-socials a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--gold-dim); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
}
.footer-socials a:hover { background: var(--gold); color: var(--black); border-color: var(--gold); transform: translateY(-3px); }

/* ── KEYFRAMES ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes scrollBounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); } 50% { box-shadow: 0 0 0 12px rgba(201,168,76,0); } }

/* ── SCROLL ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fade-up.in { opacity: 1; transform: translateY(0); }
.fade-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fade-left.in { opacity: 1; transform: translateX(0); }
.fade-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fade-right.in { opacity: 1; transform: translateX(0); }
.scale-in { opacity: 0; transform: scale(0.92); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.scale-in.in { opacity: 1; transform: scale(1); }

/* Stagger delays */
[data-delay="80"] { transition-delay: 0.08s; }
[data-delay="160"] { transition-delay: 0.16s; }
[data-delay="240"] { transition-delay: 0.24s; }
[data-delay="320"] { transition-delay: 0.32s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="480"] { transition-delay: 0.48s; }
[data-delay="560"] { transition-delay: 0.56s; }
[data-delay="640"] { transition-delay: 0.64s; }

/* Hover transitions for interactive elements */
.contact-detail { transition: transform 0.3s var(--ease); }
.contact-detail:hover { transform: translateX(8px); }
.badge { transition: all 0.3s var(--ease); }
.badge:hover { border-color: var(--gold); background: rgba(201,168,76,0.12); transform: translateY(-2px); }
.c-icon { transition: all 0.3s var(--ease); }
.contact-detail:hover .c-icon { background: var(--gold); color: var(--black); border-color: var(--gold); }
.stat-item { transition: transform 0.3s var(--ease); }
.stat-item:hover { transform: translateY(-4px); }
.footer-col a { transition: color 0.3s var(--ease), transform 0.3s var(--ease); display: inline-block; }
.footer-col a:hover { color: var(--gold); transform: translateX(4px); }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── BREAKPOINTS ── */
@media (max-width: 1024px) { :root { --gutter: 32px; } }

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .section { padding: 72px 0; }
  #nav { padding: 18px var(--gutter); }
  #nav.scrolled { padding: 14px var(--gutter); }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-images { height: 340px; }
  .about-img-main { width: 70%; height: 280px; }
  .about-img-accent { width: 52%; height: 200px; }
  .about-accent-label { bottom: 200px; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 48px var(--gutter) 40px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 768px) {
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--gold-dim); border-top: 1px solid var(--gold-dim); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--gold-dim); }
  .projects-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .project-tile { height: 200px; }
  .project-tile:nth-child(1), .project-tile:nth-child(4) { grid-column: span 2; height: 240px; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; max-width: 280px; text-align: center; }
  .hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .hero-sub { font-size: 13px; padding: 0 8px; }
  .about-title, .services-title, .projects-title, .contact-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .about-text p { font-size: 13px; }
  .about-badges { gap: 8px; }
  .badge { padding: 8px 14px; }
  .badge span { font-size: 10px; }
  .contact-info h3 { font-size: 1.5rem; }
  .contact-detail { gap: 14px; }
  #divider { height: 360px; }
  .divider-content h2 { font-size: clamp(1.6rem, 6vw, 2.8rem); }
  .projects-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .project-tile, .project-tile:nth-child(1), .project-tile:nth-child(4) { grid-column: span 1; height: 220px; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: clamp(2rem, 8vw, 2.8rem); }
  .nav-logo img { height: 60px; }
}

/* Prevent iOS Safari auto-zoom on input focus (needs >=16px font) */
@media (max-width: 900px) {
  .contact-form input, .contact-form textarea, .contact-form select { font-size: 16px; }
}

@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .section { padding: 56px 0; }
  .hero-title { font-size: 2rem; }
  .btn-primary, .btn-secondary { padding: 14px 28px; font-size: 11px; }
  .service-card { padding: 32px 24px; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; border-bottom: 1px solid var(--gold-dim); }
  .stat-item:last-child { border-bottom: none; }
}
