/* =========================================================
   Layout — page shell, section rhythm, structural grids
   ========================================================= */

.shell {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

/* Bottom padding runs slightly heavier than top — optically balanced,
   not mathematically identical. */
.section { padding: 104px 0 116px; }
.section-tight { padding: 76px 0 84px; }

/* ---- Header ---------------------------------------------------------
   The old nav was rgba(11,12,14,.72) on a #0b0c0e body — the same colour
   at 72% opacity, so it had no edge at all. It is now an opaque white
   card with a real border and a warm shadow, and it gains elevation
   once you scroll (.is-scrolled, set by navigation.js).
   ------------------------------------------------------------------- */
.nav-wrap {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  padding-top: 16px;
  transition: padding-top .3s var(--ease-out);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px 12px 12px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-nav);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: box-shadow .3s var(--ease-out), background .3s var(--ease-out), border-color .3s var(--ease-out);
}

.nav-wrap.is-scrolled { padding-top: 10px; }
.nav-wrap.is-scrolled .nav {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 148px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
}

/* ---- Trust strip ---- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.trust-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 48px;
  min-height: 108px;
}

/* ---- Services -------------------------------------------------------
   Deliberately not three equal towers. The lead card is wider and sits
   flush; the two supporting cards are narrower and drop below the
   baseline, so the row reads as a composition rather than a template.
   ------------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: 1.28fr 1fr 1fr;
  align-items: start;
  gap: 20px;
  margin-top: 56px;
}
.service-card:nth-child(2) { margin-top: 34px; }
.service-card:nth-child(3) { margin-top: 68px; }

/* ---- Work ---- */
.work-grid {
  display: grid;
  grid-template-columns: 1.24fr .76fr;
  gap: 20px;
  margin-top: 56px;
}

/* ---- Performance ---- */
.performance-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.performance-wrap::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -260px;
  right: -160px;
  border-radius: 50%;
  background: rgba(224, 130, 61, 0.14);
  filter: blur(80px);
}

.performance-grid {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 56px;
  padding: clamp(34px, 5.5vw, 68px);
}

/* ---- Value ---- */
.value-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 56px;
  align-items: start;
}

/* ---- Closing band --------------------------------------------------
   Full-bleed dark region holding the CTA and the footer. A single
   committed anchor at the end of the page, not a stray dark section.
   ------------------------------------------------------------------- */
.closing {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: linear-gradient(150deg, var(--deep-2), var(--deep) 58%);
}
.closing::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -180px;
  top: -270px;
  border-radius: 50%;
  background: rgba(224, 130, 61, .26);
  filter: blur(85px);
  pointer-events: none;
}
.closing > * { position: relative; z-index: var(--z-base); }

.contact-section { padding: clamp(56px, 7vw, 100px) 0 clamp(36px, 4vw, 56px); }

/* ---- Footer ---- */
footer { padding: 0 0 40px; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
  border-top: 1px solid var(--deep-line);
}
