/* ==========================================================================
   UpLift Digital — design system (flagship rewrite, home page)
   Fresh, self-contained stylesheet. Retains brand DNA (orange #f15a24,
   near-black ink, Montserrat/Open Sans, large radii) and the service-card
   language, modernized: fluid type, layered dark surfaces, glass, motion.
   Pages migrate onto this and retire the Webflow main.css.
   ========================================================================== */

/* ----------------------------------------------------------------- tokens */
:root {
  /* brand */
  --brand: #f15a24;
  --brand-600: #d84a18;
  --brand-300: #ff8a5c;
  --blue: #3d6ea3;
  --blue-300: #6da0d4;

  /* ink / paper */
  --ink: #131313;
  --ink-800: #1a1a1a;
  --ink-700: #232323;
  --ink-600: #2e2e2e;
  --paper: #ffffff;
  --paper-2: #f4f7fb;
  --paper-3: #eaf0f7;

  /* text */
  --text: #1a1a1a;
  --text-soft: #54585e;
  --text-invert: #ffffff;
  --text-invert-soft: #c8cdd6;

  /* legacy aliases so the ported service-card CSS keeps working */
  --font-primary: "Montserrat", sans-serif;
  --font-secondary: "Open Sans", sans-serif;
  --color-primary: var(--brand);
  --color-accentblue: var(--blue);
  --body-color: #fafafa;

  /* type */
  --font-display: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;

  /* radii */
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 26px;
  --r-pill: 999px;

  /* shadow */
  --shadow-s: 0 4px 14px rgba(15, 18, 25, 0.08);
  --shadow-m: 0 18px 44px -18px rgba(15, 18, 25, 0.28);
  --shadow-brand: 0 22px 50px -18px rgba(241, 90, 36, 0.55);

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* layout */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 10vw, 140px);
}

/* ------------------------------------------------------------------- base */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* clip (not hidden) so it doesn't break touch momentum scrolling */
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }

::selection { background: var(--brand); color: #fff; }

/* --------------------------------------------------------------- layout u */
.u-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.u-container--wide { max-width: 1520px; } /* roomier for the service accordion */
.u-section { padding-block: var(--section-y); position: relative; }
.u-section--tight { padding-block: clamp(48px, 7vw, 96px); }

.u-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.u-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(241, 90, 36, 0.18);
}
.u-eyebrow--invert { color: var(--brand-300); }

.u-h2 {
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 0;
  text-wrap: balance;
}
.u-h2 .u-accent { color: var(--brand); }
.u-h2 .u-underline {
  background-image: linear-gradient(transparent 64%, rgba(241, 90, 36, 0.28) 64%);
}
.u-lead {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--text-soft);
  max-width: 60ch;
  margin: 18px 0 0;
  text-wrap: pretty;
}
.u-section--dark { background: var(--ink); color: var(--text-invert); }
.u-section--dark .u-lead { color: var(--text-invert-soft); }

/* --------------------------------------------------------------- buttons  */
.u-btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  will-change: transform;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.3s ease, color 0.3s ease;
}
.u-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-brand); }
.u-btn__arrow { transition: transform 0.3s var(--ease); }
.u-btn:hover .u-btn__arrow { transform: translateX(5px); }

.u-btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.u-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); box-shadow: none; }

.u-btn--dark {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
}
.u-btn--dark:hover { box-shadow: var(--shadow-m); }

/* ------------------------------------------------------------------- nav  */
.u-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.4s var(--ease-soft), backdrop-filter 0.4s,
    box-shadow 0.4s, padding 0.4s var(--ease-soft);
  padding-block: 18px;
}
.u-nav.is-scrolled {
  background: rgba(19, 19, 19, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  padding-block: 10px;
}
.u-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.u-nav__logo img { height: 56px; width: auto; transition: height 0.4s var(--ease-soft); }
.u-nav.is-scrolled .u-nav__logo img { height: 46px; }
.u-nav__menu { display: flex; align-items: center; gap: 8px; }
.u-nav__link {
  position: relative;
  padding: 9px 14px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  border-radius: var(--r-s);
  transition: color 0.25s ease, background-color 0.25s ease;
}
.u-nav__link:hover { background: rgba(255, 255, 255, 0.08); }
.u-nav__link[aria-current="page"] { color: var(--brand-300); }

/* dropdown */
.u-dd { position: relative; }
.u-dd__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.u-dd__caret {
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s var(--ease);
}
.u-dd.is-open .u-dd__caret { transform: rotate(-135deg) translateY(-2px); }
.u-dd__list {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 280px;
  padding: 10px;
  background: rgba(26, 26, 26, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-m);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.u-dd.is-open .u-dd__list { opacity: 1; visibility: visible; transform: none; }
.u-dd__item {
  display: block;
  padding: 11px 14px;
  border-radius: var(--r-s);
  font-size: 14.5px;
  color: var(--text-invert-soft);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.u-dd__item:hover { background: rgba(241, 90, 36, 0.16); color: #fff; }

.u-nav__cta { padding: 11px 22px; font-size: 14px; }

/* hamburger */
.u-burger {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  position: relative;
}
.u-burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px; background: #fff;
  transition: transform 0.35s var(--ease), opacity 0.2s ease;
}
.u-burger span:nth-child(1) { top: 15px; }
.u-burger span:nth-child(2) { top: 21px; }
.u-burger span:nth-child(3) { top: 27px; }
.u-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.u-burger.is-open span:nth-child(2) { opacity: 0; }
.u-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero  */
.u-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(140px, 18vh, 220px) clamp(80px, 12vh, 140px);
  background: radial-gradient(120% 90% at 78% 8%, #24160f 0%, #161311 42%, #0e0d0c 100%);
  color: #fff;
  overflow: hidden;
}
.u-hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}
.u-hero__glow {
  position: absolute;
  z-index: 0;
  width: 60vw; height: 60vw;
  max-width: 760px; max-height: 760px;
  top: -16%; right: -8%;
  background: radial-gradient(circle, rgba(241, 90, 36, 0.34) 0%, rgba(241, 90, 36, 0) 62%);
  pointer-events: none;
}
.u-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr 0.9fr; gap: clamp(32px, 5vw, 80px); align-items: center; width: 100%; }
.u-hero__title {
  font-size: clamp(38px, 6.2vw, 86px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 20px 0 0;
  text-wrap: balance;
}
.u-hero__title .u-accent { color: var(--brand); }
.u-hero__title .u-soft { color: var(--text-invert-soft); font-weight: 300; }
.u-hero__sub {
  margin: 26px 0 0;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--text-invert-soft);
  max-width: 54ch;
  text-wrap: pretty;
}
.u-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* free report card */
.u-hero__card {
  position: relative;
  padding: 30px;
  border-radius: var(--r-l);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-m);
}
.u-hero__card-icon { width: 58px; margin-bottom: 16px; }
.u-hero__card-text { font-size: 18px; line-height: 1.45; color: #fff; }
.u-hero__card-text em { font-style: normal; color: var(--brand-300); font-weight: 700; }
.u-hero__card .u-btn { margin-top: 20px; width: 100%; justify-content: center; }

.u-scroll-cue {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-invert-soft);
}
.u-scroll-cue__line { width: 1px; height: 40px; background: linear-gradient(var(--brand), transparent); }

/* --------------------------------------------------------------- impact   */
.u-impact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;   /* image matches text height: tops + bottoms line up */
  margin-top: clamp(36px, 5vw, 64px);
}
.u-impact__media {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--shadow-m);
}
/* absolutely filled so the image takes the text column's height exactly
   (it no longer drives the row height) -> tops and bottoms align */
.u-impact__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.u-impact__media::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: inherit;
}
.u-impact__kicker {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 18px;
  text-wrap: balance;
}
.u-impact__body { color: var(--text-soft); }
.u-impact__body .u-brandword { color: var(--brand); font-weight: 700; }
.u-impact__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;   /* sits directly below the body copy */
}
.u-impact__cta img { width: 46px; height: 46px; }

/* stat strip */
.u-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.u-stat {
  padding: 26px;
  border-radius: var(--r-m);
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
}
.u-stat__num { font-family: var(--font-display); font-size: clamp(34px, 4vw, 48px); font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -0.02em; }
.u-stat__label { margin-top: 10px; font-size: 14px; color: var(--text-soft); }

/* --------------------------------------------------------------- banner   */
.u-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff;
}
.u-banner__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-block: clamp(40px, 6vw, 68px);
}
.u-banner__title { font-size: clamp(24px, 3vw, 38px); font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
.u-banner .u-btn--dark { background: var(--ink); }

/* ---------------------------------------------------- service accordion   */
/* (ported from main.css — the existing modern component, kept intact) */
.u-services__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }

.service-accordion {
  display: flex; flex-flow: row; gap: 14px;
  width: 100%; height: 540px;
  margin-inline: auto; z-index: 1; position: relative;
}
.svc-panel {
  flex: 1 1 0; min-width: 0;
  border-radius: 20px; overflow: hidden; position: relative;
  transition: flex-grow 0.55s var(--ease);
}
.service-accordion:hover .svc-panel { flex-grow: 0.65; }
.svc-panel:hover { flex-grow: 3.2; }
.svc-panel__link { display: block; width: 100%; height: 100%; position: relative; color: var(--body-color); }
.svc-panel__media { position: absolute; inset: 0; background: #14130f; transform: scale(1.05); transition: transform 0.6s var(--ease); }
.svc-panel:hover .svc-panel__media { transform: scale(1.1); }
.svc-panel__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.svc-panel__shade { position: absolute; inset: 0; background-image: linear-gradient(180deg, #1a1a1a00 0%, #1a1a1a3d 42%, #1a1a1ae8 80%, #1a1a1af7 100%); transition: background-color 0.5s ease; }
.svc-panel:hover .svc-panel__shade { background-color: #f15a241a; }
.svc-panel__content { position: absolute; inset: 0; display: flex; flex-flow: column; justify-content: flex-end; padding: 26px 24px; }
.svc-panel__content::after {
  content: "+"; position: absolute; top: 20px; right: 22px;
  width: 42px; height: 42px; display: grid; place-items: center;
  font-family: var(--font-primary); font-size: 26px; font-weight: 300; line-height: 1; color: var(--body-color);
  background: #1a1a1a59; border: 2px solid #ffffff5c; border-radius: 50%;
  backdrop-filter: blur(2px);
  transition: transform 0.45s var(--ease), background-color 0.35s ease, border-color 0.35s ease;
}
.svc-panel:hover .svc-panel__content::after { transform: rotate(135deg); background: var(--brand); border-color: var(--brand); }
.svc-panel__head { display: flex; flex-flow: row; align-items: center; gap: 14px; padding-left: 16px; border-left: 4px solid var(--brand); }
.svc-panel__icon { width: 56px; height: 56px; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 2px 6px #0009); }
.svc-panel__title { margin: 0; font-family: var(--font-primary); color: var(--body-color); font-size: clamp(20px, 0.7vw + 17px, 27px); font-weight: 800; line-height: 1.14; letter-spacing: -0.6px; text-shadow: 0 2px 12px #000000a6; }
.svc-panel__reveal { overflow: hidden; max-height: 0; opacity: 0; transform: translateY(14px); transition: max-height 0.55s var(--ease), opacity 0.45s ease 0.08s, transform 0.55s var(--ease); }
.svc-panel:hover .svc-panel__reveal { max-height: 360px; opacity: 1; transform: none; }
.svc-panel__tagline { margin: 16px 0 6px; font-family: var(--font-primary); color: var(--brand); font-size: 19px; font-weight: 700; line-height: 1.2; text-shadow: 0 2px 10px #000000a6; }
.svc-panel__desc { margin: 0 0 14px; font-family: var(--font-secondary); color: #f2f2f2; font-size: 15px; line-height: 1.5; max-width: 46ch; }
.svc-panel__tags { display: flex; flex-flow: row wrap; gap: 8px; margin: 0 0 18px; }
.svc-panel__tags li { font-family: var(--font-secondary); font-size: 12.5px; font-weight: 600; color: var(--body-color); letter-spacing: 0.2px; padding: 5px 12px; border: 1px solid #ffffff40; border-radius: 999px; background: #ffffff14; white-space: nowrap; }
.svc-panel__cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-primary); font-size: 15px; font-weight: 700; color: var(--body-color); }
.svc-panel__cta-arrow { display: inline-block; transition: transform 0.3s ease; }
.svc-panel:hover .svc-panel__cta-arrow { transform: translateX(5px); }
.svc-panel__link:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.service-accordion:focus-within .svc-panel { flex-grow: 0.65; }
.svc-panel:focus-within { flex-grow: 3.2; }
.svc-panel:focus-within .svc-panel__media { transform: scale(1); }
.svc-panel:focus-within .svc-panel__reveal { max-height: 360px; opacity: 1; transform: none; }

/* --------------------------------------------------------------- packages */
/* Shared dark backdrop for Packages + About, with one large faint side glow
   that spans BOTH sections instead of being clipped inside one. */
.u-darkwrap { position: relative; background: var(--ink); overflow: hidden; }
.u-darkwrap__glow {
  position: absolute;
  width: min(1400px, 130vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}
/* blue — lower, toward the About section, right side */
.u-darkwrap__glow--cool {
  top: 64%;
  right: -24%;
  background: radial-gradient(circle,
    rgba(61, 110, 163, 0.22) 0%,
    rgba(61, 110, 163, 0.09) 36%,
    transparent 66%);
}
/* orange — upper, near the Packages section, opposite (left) side */
.u-darkwrap__glow--warm {
  top: 16%;
  left: -24%;
  background: radial-gradient(circle,
    rgba(241, 90, 36, 0.18) 0%,
    rgba(241, 90, 36, 0.07) 36%,
    transparent 66%);
}
.u-packages { color: #fff; position: relative; z-index: 1; overflow: hidden; }
.u-packages__card {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(34px, 5vw, 64px);
  border-radius: var(--r-l);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.u-packages__secret { font-family: var(--font-display); font-size: 18px; color: var(--brand-300); font-weight: 700; }
.u-packages__body { color: var(--text-invert-soft); margin-top: 18px; }

/* ---------------------------------------------------------------- about   */
.u-about { color: #fff; position: relative; z-index: 1; }
.u-about__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.u-about__media { position: relative; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-m); }
.u-about__media img { width: 100%; }
.u-about__media::before { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(19, 19, 19, 0.7)); z-index: 1; }
.u-about__role { color: var(--text-invert-soft); font-size: 15px; margin-top: 6px; }
.u-about__note { color: var(--text-invert-soft); margin-top: 22px; }
.u-about__note .u-brandword { color: var(--brand-300); }
.u-about__sign { font-family: var(--font-display); font-weight: 700; color: #fff; margin-top: 18px; }

/* ----------------------------------------------------------------- blog   */
.u-blog { text-align: center; }
.u-blog__empty { margin-top: 26px; color: var(--text-soft); }

/* ------------------------------------------------ inner-page hero (shared) */
.u-pagehero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(130px, 16vh, 200px);
  padding-bottom: clamp(50px, 7vw, 96px);
  background: radial-gradient(120% 120% at 80% -10%, #24160f 0%, #161311 45%, #0e0d0c 100%);
  color: #fff;
}
.u-pagehero__glow {
  position: absolute;
  top: -25%; right: -12%;
  width: min(620px, 70vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(241, 90, 36, 0.30), transparent 62%);
  pointer-events: none;
}
.u-pagehero .u-container { position: relative; z-index: 1; }
.u-pagehero__title {
  font-size: clamp(34px, 5.2vw, 66px);
  font-weight: 800; line-height: 1.03; letter-spacing: -0.02em;
  margin: 16px 0 0; text-wrap: balance;
}
.u-pagehero__title .u-accent { color: var(--brand); }
.u-pagehero__lead {
  margin: 20px 0 0; font-size: clamp(16px, 1.3vw, 19px);
  color: var(--text-invert-soft); max-width: 62ch; text-wrap: pretty;
}
.u-pagehero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.u-breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--text-invert-soft); margin-bottom: 4px; }
.u-breadcrumb a:hover { color: var(--brand-300); }

/* --------------------------------------------------- long-form prose (shared) */
.u-prose { max-width: 768px; color: var(--text); }
.u-prose > * + * { margin-top: 16px; }
.u-prose h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.01em; margin-top: 40px; }
.u-prose h3 { font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; margin-top: 30px; }
.u-prose p, .u-prose li { color: var(--text-soft); line-height: 1.75; }
.u-prose ul, .u-prose ol { padding-left: 22px; }
.u-prose li { margin-top: 8px; }
.u-prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.u-prose strong { color: var(--text); }
.u-prose hr { border: 0; border-top: 1px solid var(--paper-3); margin: 32px 0; }

/* -------------------------------------------------------------- newsletter*/
.u-news {
  background: linear-gradient(120deg, var(--ink-800), var(--ink));
  color: #fff;
}
.u-news__row { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.u-news__form { display: flex; flex-direction: column; gap: 12px; }
.u-news__field { display: flex; gap: 10px; flex-wrap: wrap; }
.u-news__field .u-input { flex: 1 1 220px; min-width: 0; } /* newsletter row only */
.u-input {
  width: 100%;
  padding: 15px 20px;
  font-family: var(--font-body); font-size: 15px; color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-pill);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.u-input::placeholder { color: var(--text-invert-soft); }
.u-input:focus { outline: none; border-color: var(--brand); background: rgba(255, 255, 255, 0.1); }
.u-news__fine { font-size: 12.5px; color: var(--text-invert-soft); }

/* ---------------------------------------------------------------- footer  */
.u-footer { background: #0e0e0e; color: var(--text-invert-soft); padding-block: clamp(56px, 7vw, 88px) 28px; }
.u-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.u-footer__social { display: flex; gap: 12px; margin-bottom: 22px; }
.u-footer__social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.06); transition: transform 0.3s var(--ease), background-color 0.3s ease; }
.u-footer__social a:hover { transform: translateY(-3px); background: var(--brand); }
.u-footer__social img { width: 20px; height: 20px; }
.u-footer__title { font-family: var(--font-display); color: var(--brand); font-weight: 700; margin-bottom: 14px; }
.u-footer__links a { display: block; padding: 6px 0; transition: color 0.2s ease; }
.u-footer__links a:hover { color: #fff; }
.u-footer__bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; }

/* ----------------------------------------------------------------- modal  */
.u-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.u-modal.is-open { display: flex; }
.u-modal__bg { position: absolute; inset: 0; background: rgba(8, 8, 8, 0.7); backdrop-filter: blur(6px); }
.u-modal__card {
  position: relative; z-index: 1;
  width: min(540px, 100%); max-height: 90vh; overflow-y: auto;
  padding: clamp(28px, 4vw, 44px);
  background: var(--ink-800); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-m);
}
.u-modal__title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--brand); }
.u-modal__sub { color: var(--text-invert-soft); margin: 8px 0 22px; }
.u-modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 22px; cursor: pointer; transition: background-color 0.25s ease, transform 0.25s ease; }
.u-modal__close:hover { background: var(--brand); transform: rotate(90deg); }
.u-modal__form { display: flex; flex-direction: column; gap: 12px; }
.u-modal__form .u-input { border-radius: var(--r-m); }
.u-modal__form textarea.u-input { min-height: 110px; resize: vertical; border-radius: var(--r-m); }
.u-check { display: flex; gap: 10px; font-size: 12.5px; color: var(--text-invert-soft); }

/* form submit status (success / failure) — readable on dark or light */
.u-form-status {
  margin-top: 14px;
  padding: 11px 15px;
  border-radius: var(--r-s);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  display: none;
}
.u-form-status--ok,
.u-form-status--err { display: block; }
.u-form-status--ok { background: rgba(46, 160, 67, 0.14); color: #4cc266; border: 1px solid rgba(46, 160, 67, 0.4); }
.u-form-status--err { background: rgba(255, 90, 70, 0.12); color: #ff8a72; border: 1px solid rgba(255, 90, 70, 0.42); }

/* --------------------------------------------------------------- reveal   */
.u-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); will-change: opacity, transform; }
.u-reveal.is-visible { opacity: 1; transform: none; }
.u-reveal[data-delay="1"] { transition-delay: 0.08s; }
.u-reveal[data-delay="2"] { transition-delay: 0.16s; }
.u-reveal[data-delay="3"] { transition-delay: 0.24s; }

/* --------------------------------------------------------------- responsive*/
/* Mid desktop: four side-by-side cards would get too narrow and clip text,
   so reflow into a 2x2 grid. Cells are fixed width here, so hovering reveals
   a card's content without the accordion width-expansion. */
@media (min-width: 992px) and (max-width: 1399px) {
  .service-accordion {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: auto;
    gap: 18px;
  }
  .svc-panel { height: 420px; }
  .service-accordion:hover .svc-panel,
  .svc-panel:hover { flex-grow: 0; }
}

@media (max-width: 991px) {
  .u-hero__inner { grid-template-columns: 1fr; }
  .u-hero__card { max-width: 520px; }
  .u-impact__grid,
  .u-about__grid,
  .u-packages__card,
  .u-news__row { grid-template-columns: 1fr; }
  .u-about__grid { gap: 28px; }
  .u-about__media { order: -1; max-width: 460px; }
  /* On mobile the image is in normal flow (not absolute), so it gives the
     container height itself. Avoids the iOS/WebKit bug where an aspect-ratio
     box with only absolutely-positioned children collapses to 0 height. */
  .u-impact__media img { position: static; height: auto; }
  .u-footer__grid { grid-template-columns: 1fr 1fr; }

  .u-nav__menu { position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw); flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 80px 32px; background: rgba(16, 16, 16, 0.97); backdrop-filter: blur(18px); transform: translateX(100%); transition: transform 0.45s var(--ease); }
  .u-nav__menu.is-open { transform: none; }
  /* A backdrop-filter on the scrolled header makes it the containing block for
     the fixed slide-in menu, breaking it once scrolled. Drop the blur on mobile
     (keep a solid-enough bg) so the menu stays viewport-fixed. */
  .u-nav.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(16, 16, 16, 0.95); }
  .u-nav__link, .u-dd { width: 100%; font-size: 17px; }
  .u-dd__list { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: 0; padding: 4px 0 4px 12px; min-width: 0; }
  .u-burger { display: block; z-index: 101; }

  .service-accordion { flex-flow: column; height: auto; gap: 18px; }
  .svc-panel { flex: 0 0 auto; height: clamp(380px, 64vh, 560px); transition: none; }
  .service-accordion:hover .svc-panel, .svc-panel:hover { flex-grow: 0; }
  .svc-panel__content::after { display: none; }
  .svc-panel__media { transform: scale(1.04); }
  .svc-panel.is-open .svc-panel__media { transform: scale(1); }
  .svc-panel.is-open .svc-panel__shade { background-color: #f15a2412; }
  .svc-panel.is-open .svc-panel__reveal { max-height: 360px; opacity: 1; transform: none; }
  .u-stats { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .u-footer__grid { grid-template-columns: 1fr; }
  .u-hero__actions { flex-direction: column; }
  .u-hero__actions .u-btn { width: 100%; justify-content: center; }
  .svc-panel { height: clamp(420px, 72vh, 600px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .u-reveal { opacity: 1; transform: none; }
}
