/* ==========================================================================
   UniformManagement — stylesheet
   --------------------------------------------------------------------------
   1.  Reset & base
   2.  Theme tokens (Meridian)
   3.  Layout primitives
   4.  Typography
   5.  Buttons & links
   6.  Header & mobile menu
   7.  Hero
   8.  Credibility bar
   9.  Services
   10. Approach
   11. Results
   12. About
   13. FAQ
   14. Contact & form
   15. Footer
   16. Reveal animations
   17. Responsive
   ========================================================================== */

/* ============================ 1. RESET & BASE ============================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .45s ease, color .45s ease;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 200;
  padding: 12px 20px; border-radius: 0 0 8px 8px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none;
  transition: top .25s ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--accent); color: var(--accent-ink); }


/* ======================= 2. DESIGN TOKENS (MERIDIAN) ==================== */

:root {
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 48px);

  /* Meridian — deep navy ground, warm amber accent. */
  --bg:            #0B1B2B;
  --bg-alt:        #0E2335;
  --surface:       #12293D;
  --surface-2:     #163149;
  --text:          #EFF3F7;
  --muted:         #94A9BB;
  --accent:        #F2A73B;
  --accent-2:      #E4842B;
  --accent-ink:    #14100A;
  --border:        rgba(239, 243, 247, .13);
  --border-strong: rgba(239, 243, 247, .26);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --display-weight: 600;
  --display-track: -.02em;
  --display-opsz: 'opsz' 120;
  --eyebrow-track: .18em;

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow:    0 18px 50px -18px rgba(0, 0, 0, .65);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .8);

  --img-filter: saturate(.92) contrast(1.04) brightness(.94);
  --img-tint: linear-gradient(150deg, rgba(11,27,43,.42), rgba(242,167,59,.12));
  --img-blend: normal;

  --accent-fill: var(--accent);
  --ease: cubic-bezier(.22, .68, .36, 1);
}


/* ========================= 3. LAYOUT PRIMITIVES ========================= */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(72px, 10vw, 132px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.reveal { will-change: transform, opacity; }
.section-sub { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.125rem); margin-bottom: 0; }


/* ============================ 4. TYPOGRAPHY ============================= */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  font-variation-settings: var(--display-opsz);
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.12; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.25; }

.h1-accent {
  display: block;
  color: transparent;
  background: var(--accent-fill);
  -webkit-background-clip: text;
  background-clip: text;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: var(--eyebrow-track);
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.1em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent-2);
  flex: none;
}

.lede {
  font-size: clamp(1.06rem, 1.9vw, 1.28rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
}


/* ========================== 5. BUTTONS & LINKS ========================== */

.btn {
  --btn-py: 14px;
  --btn-px: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background-color .25s ease, color .25s ease, border-color .25s ease;
}

.btn-sm { --btn-py: 10px; --btn-px: 18px; font-size: .875rem; }
.btn-lg { --btn-py: 17px; --btn-px: 34px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: var(--accent-fill);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px var(--accent);
}
.btn-primary::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--accent-2);
  opacity: 0;
  transition: opacity .3s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px var(--accent); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  margin-top: auto;
  padding-top: 6px;
  transition: gap .28s var(--ease), color .2s ease;
}
.link-arrow:hover { gap: 14px; color: var(--accent); }
.link-arrow span { transition: transform .28s var(--ease); }


/* ========================= 6. HEADER / MOBILE MENU ====================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding .35s var(--ease), background-color .35s ease,
              box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transition: opacity .35s ease, border-color .35s ease;
}
.site-header.scrolled { padding: 10px 0; }
.site-header.scrolled::before { opacity: 1; border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.brand-mark { color: var(--accent); display: flex; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.14rem;
  letter-spacing: -.015em;
  white-space: nowrap;
}
.brand-text strong { font-weight: inherit; color: var(--accent); }

.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-desktop a {
  position: relative;
  padding: 8px 14px;
  color: var(--muted);
  font-size: .93rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color .22s ease;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s var(--ease);
}
.nav-desktop a:hover { color: var(--text); }
.nav-desktop a:hover::after,
.nav-desktop a.active::after { transform: scaleX(1); }
.nav-desktop a.active { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 14px; }


.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 20px; height: 1.8px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s ease, width .35s var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; width: 14px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 20px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  padding: 104px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .38s var(--ease), transform .38s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.open { opacity: 1; transform: none; }

.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  letter-spacing: var(--display-track);
  color: var(--text);
  text-decoration: none;
  opacity: 0;
  transform: translateX(-16px);
}
.mobile-menu.open .mobile-nav a {
  animation: mmIn .5s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 90ms);
}
@keyframes mmIn { to { opacity: 1; transform: none; } }
.mm-idx {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent-2);
}
.mobile-nav a:hover { color: var(--accent); }

.mobile-foot { display: flex; flex-direction: column; gap: 16px; }
.mobile-mail {
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
  text-decoration: none;
  word-break: break-all;
}
.mobile-mail:hover { color: var(--accent); }


/* ================================ 7. HERO =============================== */

.hero {
  position: relative;
  padding: clamp(140px, 19vw, 210px) 0 clamp(72px, 10vw, 120px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.orb-a {
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  top: -12%; right: -10%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 68%);
  opacity: .26;
  animation: drift 22s ease-in-out infinite alternate;
}
.orb-b {
  width: 38vw; height: 38vw;
  max-width: 500px; max-height: 500px;
  bottom: -18%; left: -12%;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 68%);
  opacity: .2;
  animation: drift 28s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4%, 6%, 0) scale(1.14); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 44px; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.stat dt {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--text);
}
.suf { color: var(--accent); }

.hero-figure { margin: 0; position: relative; }

.frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.frame img {
  width: 100%;
  filter: var(--img-filter);
  transition: transform .9s var(--ease), filter .5s ease;
}
.frame::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--img-tint);
  mix-blend-mode: var(--img-blend);
  pointer-events: none;
}
.hero-figure:hover .frame img { transform: scale(1.035); }

.float-card {
  position: absolute;
  left: clamp(-8px, -1vw, 0px);
  bottom: -26px;
  max-width: 330px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  font-size: .86rem;
  line-height: 1.5;
  color: var(--muted);
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong { color: var(--text); font-weight: 600; }
.fc-dot {
  width: 9px; height: 9px; flex: none;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}


/* ========================= 8. CREDIBILITY BAR ========================== */

.cred { padding: 34px 0; border-block: 1px solid var(--border); background: var(--bg-alt); }
.cred-inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.cred-label {
  margin: 0;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  flex: none;
}
.cred-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  flex: 1;
}
.cred-list li {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color .25s ease, color .25s ease, transform .25s var(--ease);
}
.cred-list li:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }


/* ============================= 9. SERVICES ============================= */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 30px);
}

.svc {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .35s ease, box-shadow .45s var(--ease);
}
.svc:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.svc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.svc-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: var(--img-filter);
  transition: transform .8s var(--ease);
}
.svc-media::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--img-tint);
  mix-blend-mode: var(--img-blend);
}
.svc:hover .svc-media img { transform: scale(1.07); }

.svc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(22px, 2.6vw, 32px);
  position: relative;
}
.svc-num {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.svc-body > p { color: var(--muted); font-size: .95rem; }

.svc-list { margin: 4px 0 22px; display: flex; flex-direction: column; gap: 9px; }
.svc-list li {
  position: relative;
  padding-left: 22px;
  font-size: .89rem;
  color: var(--muted);
  line-height: 1.5;
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
  opacity: .85;
}


/* ============================= 10. APPROACH ============================ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
  counter-reset: step;
}
.step {
  position: relative;
  padding: clamp(24px, 2.6vw, 34px) clamp(20px, 2.2vw, 28px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), border-color .3s ease;
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-fill);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.step:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.step:hover::before { transform: scaleX(1); }

.step-num {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 2.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-2);
  margin-bottom: 14px;
  opacity: .75;
}
.step p { color: var(--muted); font-size: .92rem; flex: 1; }
.step-meta {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}


/* ============================== 11. RESULTS ============================ */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  margin-bottom: clamp(40px, 5vw, 60px);
}
.metric {
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2vw, 26px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.metric:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.metric dd {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--text);
}
.metric dt { font-size: .88rem; color: var(--muted); line-height: 1.5; }

.results-note {
  max-width: 62ch;
  font-size: clamp(1.02rem, 1.7vw, 1.16rem);
  line-height: 1.65;
  color: var(--muted);
  padding-left: 22px;
  border-left: 2px solid var(--accent);
  margin-bottom: 0;
}


/* =============================== 12. ABOUT ============================= */

.about-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}
.about-figure { margin: 0; }
.about-figure .frame { border-radius: var(--radius-lg); }
.about-copy > p { color: var(--muted); }

.about-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0 34px;
}
.about-points li {
  position: relative;
  padding-left: 30px;
  font-size: .94rem;
  color: var(--muted);
  line-height: 1.55;
}
.about-points strong { color: var(--text); font-weight: 600; }
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background:
    linear-gradient(45deg, transparent 44%, var(--accent) 44%, var(--accent) 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--accent) 44%, var(--accent) 56%, transparent 56%);
  background-size: 7px 7px;
  background-position: center;
  background-repeat: no-repeat;
}


/* ================================ 13. FAQ ============================== */

.faq-shell { max-width: 860px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .3s ease, background-color .3s ease;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(18px, 2.4vw, 28px);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.02rem, 1.7vw, 1.16rem);
  letter-spacing: var(--display-track);
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }

.chev {
  position: relative;
  width: 18px; height: 18px;
  flex: none;
}
.chev::before, .chev::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.8px;
  background: var(--accent);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease), opacity .3s ease;
}
.chev::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .chev::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.faq-a { padding: 0 clamp(18px, 2.4vw, 28px) 22px; }
.faq-a p { margin: 0; color: var(--muted); font-size: .95rem; }
.faq-item[open] .faq-a { animation: faqIn .38s var(--ease); }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}


/* ========================= 14. CONTACT & FORM ========================== */

.contact { background: var(--bg-alt); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.contact-direct {
  margin-top: 36px;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}
.cd-label {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.cd-mail {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.02rem, 2.2vw, 1.3rem);
  letter-spacing: -.01em;
  color: var(--accent);
  text-decoration: none;
  word-break: break-word;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.cd-mail:hover { border-bottom-color: var(--accent); }
.cd-note { margin: 10px 0 0; font-size: .84rem; color: var(--muted); }

.form-wrap {
  padding: clamp(26px, 3.4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.3rem;
  letter-spacing: var(--display-track);
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 7px;
}
.req { color: var(--accent); }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--text);
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, var(--muted) 66%, transparent); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.field select option { background: var(--surface); color: var(--text); }

.field.invalid input,
.field.invalid textarea { border-color: #E5484D; background: color-mix(in srgb, #E5484D 7%, var(--surface-2)); }

.err {
  margin: 7px 0 0;
  font-size: .8rem;
  color: #FF6B6E;
  min-height: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .25s ease, max-height .25s ease, margin .25s ease;
}
.field.invalid .err { opacity: 1; max-height: 40px; }

.form-foot {
  margin: 16px 0 0;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}
.form-foot a { color: var(--accent); }

.form-status {
  margin: 14px 0 0;
  padding: 0;
  font-size: .87rem;
  text-align: center;
  color: var(--accent);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.form-status.show { max-height: 90px; padding: 12px 0 0; }


/* =============================== 15. FOOTER ============================ */

.site-footer {
  padding: clamp(56px, 7vw, 84px) 0 28px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.foot-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(36px, 4vw, 52px);
}
.foot-brand .brand { margin-bottom: 16px; }
.foot-blurb { color: var(--muted); font-size: .9rem; max-width: 34ch; margin: 0; }

.foot-h {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.foot-nav { display: flex; flex-direction: column; gap: 10px; }
.foot-nav a {
  color: var(--muted);
  font-size: .9rem;
  text-decoration: none;
  width: fit-content;
  transition: color .22s ease, transform .28s var(--ease);
}
.foot-nav a:hover { color: var(--accent); transform: translateX(3px); }

.foot-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.foot-mail {
  color: var(--accent);
  font-size: .92rem;
  text-decoration: none;
  word-break: break-all;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.foot-mail:hover { border-bottom-color: var(--accent); }

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.foot-bottom p { margin: 0; font-size: .84rem; color: var(--muted); }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 4px;
  transition: color .22s ease;
}
.to-top:hover { color: var(--accent); }
.to-top span { transition: transform .3s var(--ease); }
.to-top:hover span { transform: translateY(-3px); }


/* ========================= 16. REVEAL ANIMATIONS ======================= */

/* Reveals only engage once the inline head script has added .js to <html>.
   Without JS — or if main.js fails to load — content renders normally rather
   than being stranded at opacity 0. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease) var(--d, 0ms),
              transform .75s var(--ease) var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

.magnetic { will-change: transform; }


/* ============================ 17. RESPONSIVE =========================== */

@media (max-width: 1080px) {
  .svc-grid  { grid-template-columns: repeat(2, 1fr); }
  .svc:last-child { grid-column: 1 / -1; flex-direction: row; }
  .svc:last-child .svc-media { width: 42%; aspect-ratio: auto; }
  .svc:last-child .svc-body  { width: 58%; }
  .steps     { grid-template-columns: repeat(2, 1fr); }
  .metrics   { grid-template-columns: repeat(2, 1fr); }
  .foot-top  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 80px; }
  .nav-desktop { display: none; }
  .header-cta  { display: none; }
  .burger      { display: block; }

  .hero-inner  { grid-template-columns: 1fr; gap: 52px; }
  .hero-copy   { max-width: 640px; }
  .about-grid  { grid-template-columns: 1fr; }
  .about-figure { max-width: 420px; }
  .contact-grid { grid-template-columns: 1fr; }
  .float-card  { max-width: 280px; bottom: -20px; }
}

@media (max-width: 680px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc:last-child { flex-direction: column; }
  .svc:last-child .svc-media { width: 100%; aspect-ratio: 4 / 3; }
  .svc:last-child .svc-body  { width: 100%; }
  .steps    { grid-template-columns: 1fr; }
  .metrics  { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .stat-strip { gap: 20px 12px; }
  .hero-cta .btn { width: 100%; }
  .cred-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .metrics { grid-template-columns: 1fr; }
  .float-card { position: static; max-width: none; margin-top: 16px; animation: none; }
}


/* ====================== REDUCED MOTION & PRINT ========================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .orb { animation: none; }
  .float-card { animation: none; }
}

@media print {
  .site-header, .mobile-menu, .burger, .to-top, .orb { display: none !important; }
  body { background: #fff; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
