/* =========================================================
   Elevate Home Solutions — V4 / Editorial Framer-inspired skin
   Purpose: warmer, architectural, human, premium. Minimal tech-cliche.
   Loaded after style.css so the original build remains reversible.
   ========================================================= */

:root {
  /* Warm architectural neutrals */
  --color-bg: #f4f2ed;
  --color-surface: #fbfaf7;
  --color-surface-2: #ebe9e2;
  --color-elevated: #ffffff;
  --color-line: rgba(23, 25, 23, 0.10);
  --color-line-2: rgba(23, 25, 23, 0.18);

  --text-primary: #171917;
  --text-secondary: #545851;
  --text-muted: #777b74;
  --text-faint: #a2a49e;

  /* Brand accent: derived from Elevate's blue/teal, deliberately restrained */
  --blue-primary: #397b84;
  --blue-deep: #1b3538;
  --teal-cyan: #4a8e95;
  --sage: #6f8e78;
  --sage-deep: #526b59;
  --mint: #5d9b86;

  --grad-pop: none;
  --grad-button: none;
  --grad-soft: none;

  --font-display: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-editorial: "Instrument Serif", Georgia, serif;

  --fs-body: 1rem;
  --fs-lead: clamp(1.08rem, 1rem + .35vw, 1.3rem);
  --fs-h3: clamp(1.28rem, 1.15rem + .7vw, 1.72rem);
  --fs-h2: clamp(2.35rem, 1.6rem + 3.2vw, 4rem);
  --fs-h1: clamp(3.15rem, 2rem + 5.1vw, 6.75rem);
  --container: 1320px;
  --container-narrow: 980px;
  --pad-x: clamp(1.25rem, 1rem + 2vw, 3.25rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-padding-top: 92px; }
body {
  background: var(--color-bg);
  color: var(--text-primary);
  line-height: 1.65;
  letter-spacing: -0.006em;
}

::selection { background: #203f43; color: #fff; }

h1, h2, h3, h4 {
  color: var(--text-primary);
  font-family: var(--font-display);
  letter-spacing: -0.045em;
}
h1 { line-height: .98; font-weight: 560; }
h2 { line-height: 1.02; font-weight: 560; }
h3 { line-height: 1.12; font-weight: 600; }
p { color: var(--text-secondary); }
.lead { color: var(--text-secondary); line-height: 1.58; }

.gradient-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: inherit;
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.eyebrow {
  color: var(--sage-deep);
  font-size: .69rem;
  font-weight: 650;
  letter-spacing: .17em;
}
.eyebrow::before {
  width: 1.25rem;
  background: currentColor;
  opacity: .7;
}

.section { padding-block: clamp(5.25rem, 3rem + 7vw, 9.5rem); }
.section--sm { padding-block: clamp(3.5rem, 2rem + 4vw, 6rem); }
.section--alt { background: #ebe9e2; }
.section--accent {
  background: #1a1c1a;
  color: #f7f5ef;
  overflow: hidden;
}
.section--accent::before {
  content: "";
  position: absolute;
  width: min(62vw, 860px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  right: -20vw;
  top: -55%;
  pointer-events: none;
}
.section--accent h2,
.section--accent h3,
.section--accent .chip { color: #f7f5ef; }
.section--accent p,
.section--accent .lead { color: #c9cbc4; }
.section--accent .eyebrow { color: #a9c0ae; }
.section--accent .chip {
  background: transparent;
  border-color: rgba(255,255,255,.18);
}

.section-head { max-width: 860px; margin-bottom: clamp(2.6rem, 2rem + 2vw, 4.75rem); }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head h2 { margin-bottom: 1.25rem; }

/* ---------- Header ---------- */
.site-header {
  padding: 1rem 0;
  border-bottom-color: transparent;
}
.site-header__inner {
  min-height: 54px;
}
.brand img {
  height: 34px;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.nav { gap: clamp(1.1rem, 1vw + .7rem, 2rem); }
.nav a:not(.btn) {
  color: rgba(255,255,255,.82);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.nav a::after { display: none; }
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn).active { color: #fff; }

.site-header.scrolled {
  background: rgba(247,246,241,.86);
  border-bottom-color: rgba(23,25,23,.08);
  padding: .7rem 0;
  box-shadow: 0 10px 30px rgba(18,20,18,.04);
}
.site-header.scrolled .brand img { filter: brightness(0); opacity: .88; }
.site-header.scrolled .nav a:not(.btn) { color: #575b55; }
.site-header.scrolled .nav a:not(.btn):hover,
.site-header.scrolled .nav a:not(.btn).active { color: #111311; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 999px;
  padding: .88rem 1.28rem;
  font-size: .88rem;
  font-weight: 650;
  letter-spacing: -.01em;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: #171917;
  color: #fff;
  box-shadow: none;
  border: 1px solid #171917;
}
.btn--primary:hover {
  background: #397b84;
  border-color: #397b84;
  box-shadow: 0 10px 28px rgba(44,94,101,.18);
}
.site-header:not(.scrolled) .btn--primary {
  background: rgba(255,255,255,.94);
  color: #171917;
  border-color: rgba(255,255,255,.94);
}
.site-header:not(.scrolled) .btn--primary:hover { background: #fff; border-color: #fff; }
.site-header.scrolled .btn--primary { background: #171917; color: #fff; border-color: #171917; }
.btn--ghost {
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--color-line-2);
}
.btn--ghost:hover { color: var(--text-primary); border-color: rgba(23,25,23,.38); background: rgba(255,255,255,.46); }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.36); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.7); }
.btn--text { color: #397b84; }
.btn--text:hover { color: #171917; }

/* ---------- Home hero ---------- */
.hero {
  min-height: min(96svh, 980px);
  align-items: flex-end;
  background: #171917;
}
.hero__media::after {
  background:
    linear-gradient(90deg, rgba(11,14,13,.78) 0%, rgba(11,14,13,.44) 44%, rgba(11,14,13,.10) 72%, rgba(11,14,13,.22) 100%),
    linear-gradient(180deg, rgba(11,14,13,.06) 35%, rgba(11,14,13,.68) 100%);
}
.hero__media img,
.hero__media video { transform: scale(1.015); }
.hero__inner {
  padding-top: clamp(9rem, 15vh, 12rem);
  padding-bottom: clamp(2.75rem, 4vw, 4.5rem);
}
.hero__inner .eyebrow { color: #c3d0c5; margin-bottom: 1.35rem; }
.hero h1 {
  color: #f7f5ef;
  max-width: 12.7ch;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 22px rgba(0,0,0,.18);
}
.hero h1 .gradient-text { color: #f7f5ef; }
.hero .lead {
  color: rgba(247,245,239,.78);
  max-width: 62ch;
  font-size: clamp(1rem, .94rem + .35vw, 1.2rem);
  line-height: 1.62;
  text-shadow: none;
  margin-bottom: 1.9rem;
}
.hero__ctas { margin-bottom: 1.4rem; }
.hero__partner {
  margin-top: 0;
  padding: .38rem .8rem .38rem .38rem;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}
.hero__partner span { color: rgba(255,255,255,.66); }
.hero__partner-row { margin-bottom: 2.75rem; }
.hero__stats {
  max-width: 980px;
  gap: 0;
  border-top-color: rgba(255,255,255,.22);
  padding-top: 0;
}
.hero__stat {
  padding: 1.3rem clamp(1rem, 2vw, 2rem) .2rem 0;
  margin-right: clamp(1rem, 2vw, 2rem);
  border-right: 1px solid rgba(255,255,255,.14);
}
.hero__stat:last-child { border-right: 0; }
.hero__stat .num { color: #fff; font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem); }
.hero__stat .label { color: rgba(255,255,255,.54); max-width: 23ch; }
.scroll-cue { color: rgba(255,255,255,.5); }
.scroll-cue::after { background: linear-gradient(180deg, #fff, transparent); }

/* ---------- Interior page heroes ---------- */
.page-hero,
.page-header {
  padding: clamp(9rem, 8rem + 5vw, 13rem) 0 clamp(4.5rem, 3.5rem + 4vw, 7rem);
  background: #1a1c1a;
  border-bottom: 0;
  overflow: hidden;
}
.page-hero::after,
.page-header::after {
  content: "";
  position: absolute;
  width: min(60vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.07);
  right: -18vw;
  top: -45%;
  pointer-events: none;
}
.page-header::before { display: none; }
.page-hero h1,
.page-header h1 { color: #f7f5ef; max-width: 15ch; }
.page-hero .gradient-text,
.page-header .gradient-text { color: #a7c0ac; }
.page-hero .lead,
.page-header .lead { color: #bfc2bb; max-width: 62ch; }
.page-hero .eyebrow,
.page-header .eyebrow { color: #a7c0ac; }

/* ---------- Editorial cards / service system ---------- */
.card,
.market-card,
.step,
.package,
.team-card,
.contact-card,
.commercial-note {
  box-shadow: none;
}

.services-grid { gap: 0 clamp(1.4rem, 2.4vw, 2.75rem); }
.services-grid > .card:not(.featured) {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--color-line-2);
  border-radius: 0;
  padding: 1.7rem .2rem 2.15rem;
  min-height: 238px;
}
.services-grid > .card:not(.featured):hover {
  transform: none;
  background: transparent;
  border-color: rgba(23,25,23,.42);
}
.services-grid > .card:not(.featured) .card__icon {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #e2e6df;
  color: #406950;
  margin-bottom: 2rem;
}
.services-grid > .card:not(.featured) h3 { margin-bottom: .8rem; }
.services-grid > .card:not(.featured) p { color: #656961; }

.services-grid .featured {
  grid-column: span 2;
  grid-template-columns: 1.2fr .9fr;
  background: #1c1e1c;
  border: 0;
  border-radius: 28px;
  margin-bottom: 2.4rem;
  min-height: 420px;
}
.services-grid .featured:hover { background: #1c1e1c; transform: none; }
.services-grid .featured .featured__media { min-height: 360px; }
.services-grid .featured .featured__media img { transition: transform .8s var(--ease); }
.services-grid .featured:hover .featured__media img { transform: scale(1.025); }
.services-grid .featured .featured__body { padding: clamp(2rem, 2vw + 1rem, 3.6rem); }
.services-grid .featured h3 { color: #f7f5ef; font-size: clamp(1.8rem, 1.35rem + 1.5vw, 2.7rem); }
.services-grid .featured p { color: #bfc2bb; font-size: .98rem; }
.services-grid .featured .pill {
  color: #b9cabd;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  letter-spacing: .15em;
}

/* Markets: fewer pills, more editorial hierarchy */
.markets-grid { gap: 1rem; }
.market-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.56);
  border: 1px solid var(--color-line);
  border-radius: 22px;
  padding: 2rem 1.8rem 1.75rem;
  min-height: 390px;
  justify-content: flex-end;
}
.market-card::before {
  position: absolute;
  top: 1.5rem;
  right: 1.6rem;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(23,25,23,.12);
}
.market-card:nth-child(1)::before { content: "01"; }
.market-card:nth-child(2)::before { content: "02"; }
.market-card:nth-child(3)::before { content: "03"; }
.market-card:hover { transform: translateY(-2px); background: #fff; border-color: rgba(23,25,23,.16); }
.market-card__tag,
.market-card__tag--resi,
.market-card__tag--commercial,
.market-card__tag--institutional {
  background: transparent;
  border: 0;
  color: #5e7764;
  padding: 0;
  border-radius: 0;
  font-size: .67rem;
  letter-spacing: .16em;
}
.market-card h3 { font-size: clamp(1.55rem, 1.2rem + 1vw, 2rem); max-width: 14ch; }
.market-card__meta { border-top-color: var(--color-line); color: var(--text-muted); }

/* Split imagery */
.split { gap: clamp(2.5rem, 2rem + 4vw, 6.5rem); }
.split__media {
  border: 0;
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(22,25,22,.08);
}
.split__media img { transition: transform 1s var(--ease); }
.split__media:hover img { transform: scale(1.02); }
.split__body h2 { margin-bottom: 1.35rem; }

.bullet-list { gap: 0; border-top: 1px solid var(--color-line-2); }
.bullet-list li {
  grid-template-columns: 24px 1fr;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-line);
  border-radius: 0;
  padding: 1.25rem 0;
}
.bullet-list .bullet-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dfe5de;
  color: #466a50;
}

/* Process steps: line-based rather than tile-based */
.steps { gap: clamp(1.25rem, 2vw, 2.5rem); }
.step {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--color-line-2);
  border-radius: 0;
  padding: 1.5rem .25rem 0;
}
.step__num {
  font-family: var(--font-editorial);
  font-style: italic;
  color: #6d8b75;
  font-size: 1.55rem;
  letter-spacing: 0;
  margin-bottom: 2.4rem;
}

/* ---------- Approach page missing styles in deploy bundle ---------- */
.approach-list { display: grid; }
.approach-item {
  display: grid;
  grid-template-columns: minmax(90px, 140px) 1fr;
  gap: clamp(1.5rem, 4vw, 5rem);
  padding: clamp(2rem, 3vw, 3.5rem) 0;
  border-top: 1px solid var(--color-line-2);
}
.approach-item:last-child { border-bottom: 1px solid var(--color-line-2); }
.approach-item__num {
  font-family: var(--font-editorial);
  font-size: clamp(2.2rem, 1.8rem + 1.8vw, 3.5rem);
  font-style: italic;
  color: #78907d;
  line-height: 1;
}
.approach-item__body { max-width: 780px; }
.approach-item__body h3 { font-size: clamp(1.8rem, 1.5rem + 1vw, 2.35rem); margin-bottom: .9rem; }

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px;
  background: rgba(23,25,23,.12);
  border: 1px solid rgba(23,25,23,.12);
  border-radius: 24px;
  overflow: hidden;
}
.principle {
  background: #f5f3ee;
  padding: clamp(1.8rem, 2.5vw, 3rem);
  min-height: 240px;
}
.principle h3 { max-width: 18ch; margin-bottom: .8rem; }
.principle p { max-width: 50ch; }

/* Loxone side card — explicit because v3 bundle omitted component styles */
.loxone-aside {
  align-self: stretch;
  background: #1b1d1b;
  color: #f7f5ef;
  border-radius: 28px;
  padding: clamp(1.6rem, 2.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.loxone-aside > img { width: min(280px, 80%); max-height: 150px; object-fit: contain; object-position: left center; margin-bottom: 1.7rem; border-radius: 10px; }
.loxone-aside h4 { color: #fff; font-size: 1.35rem; margin: 0 0 .75rem; letter-spacing: -.025em; }
.loxone-aside p { color: #bfc2bb; }
.aside-list { list-style: none; padding: 1.4rem 0 0; margin: 1.5rem 0 0; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: .72rem; }
.aside-list li { color: #d6d8d2; padding-left: 1.2rem; position: relative; font-size: .92rem; }
.aside-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #a8bbaa; position: absolute; left: 0; top: .7em; }

/* ---------- Packages ---------- */
.package-section { background: transparent; }
.package-section--starter,
.package-section--elevated,
.package-section--premium { background: transparent; }
.package-section--elevated { background: #ebe9e2; }
.package-section--elevated::before,
.package-section--premium::before { display: none; }
.package-feature { gap: clamp(2.75rem, 3vw + 1rem, 6rem); }
.package-feature__media {
  border: 0;
  border-radius: 28px;
  box-shadow: 0 24px 65px rgba(22,25,22,.10);
}
.package-feature__tier,
.package-feature__tier--featured {
  color: #617766;
  font-size: .69rem;
  letter-spacing: .18em;
}
.package-feature__ribbon {
  background: #1b1d1b;
  border: 0;
  color: #fff;
  border-radius: 999px;
  padding: .25rem .65rem;
}
.package-feature__body h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.package-feature__details { border-top-color: var(--color-line-2); }
.package-feature__details h4 { color: #73776f; }
.package-list li { color: #5d615a; }
.package-list li::before { background: #718d78; }
.package-investment { border-top-color: var(--color-line-2); }
.package-investment strong { color: var(--text-primary); font-size: 1.55rem; }
.commercial-note {
  background: #1a1c1a;
  background-image: none;
  border: 0;
  border-radius: 28px;
}
.commercial-note h2,
.commercial-note h3,
.commercial-note h4 { color: #f7f5ef; }
.commercial-note p,
.commercial-note .lead { color: #bfc2bb; }
.commercial-note .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }

/* ---------- Team ---------- */
.team-grid { gap: 1rem; }
.team-card {
  background: rgba(255,255,255,.58);
  border: 1px solid var(--color-line);
  border-radius: 26px;
  overflow: hidden;
}
.team-card:hover { transform: none; border-color: rgba(23,25,23,.16); }
.team-card__media,
.team-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #deddd7;
}
.team-card__media img,
.team-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .85s var(--ease); }
.team-card:hover .team-card__media img,
.team-card:hover .team-card__img img { transform: scale(1.02); }
.team-card__body { padding: clamp(1.6rem, 2.3vw, 2.4rem); }
.team-card__role { color: #617766; }
.team-card__body h3 { font-size: clamp(1.65rem, 1.4rem + .8vw, 2rem); margin-bottom: .8rem; }

/* ---------- Chips ---------- */
.chip {
  background: rgba(255,255,255,.42);
  border-color: var(--color-line-2);
  color: #5d615a;
  font-size: .8rem;
  padding: .55rem .92rem;
}
.chip:hover { border-color: rgba(23,25,23,.35); color: #171917; }

/* ---------- CTA ---------- */
.cta-block {
  border: 0;
  border-radius: 32px;
  background: #1a1c1a;
  padding: clamp(4rem, 3rem + 5vw, 7rem) clamp(1.5rem, 2rem + 3vw, 5rem);
}
.cta-block::after {
  content: "";
  position: absolute;
  width: 480px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  top: -320px;
  left: calc(50% - 240px);
  pointer-events: none;
}
.cta-block h2 { color: #f7f5ef; max-width: 15ch; }
.cta-block .lead { color: #bfc2bb; max-width: 52ch; }
.cta-block .eyebrow { color: #a7c0ac; }
.cta-block .btn--primary {
  background: #f7f5ef;
  border-color: #f7f5ef;
  color: #171917;
}
.cta-block .btn--primary:hover { background: #fff; border-color: #fff; }
.cta-block .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.cta-block .btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.48); }

/* ---------- Contact ---------- */
.contact-grid { gap: clamp(3rem, 3vw + 1rem, 6rem); }
.contact-form { gap: 1.3rem; }
.field label { color: #6d716a; font-size: .68rem; letter-spacing: .15em; }
.field input,
.field select,
.field textarea {
  color: #171917;
  background: rgba(255,255,255,.72);
  border-color: rgba(23,25,23,.13);
  border-radius: 14px;
  padding: 1rem 1.05rem;
}
.field input::placeholder,
.field textarea::placeholder { color: #999c95; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #6f8e78;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(111,142,120,.10);
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23545851' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.contact-aside { gap: 1rem; }
.contact-card {
  background: rgba(255,255,255,.62);
  border-color: var(--color-line);
  border-radius: 20px;
}
.contact-card--partner { background: #e1e5de; border: 0; }
.contact-card h4 { color: #72766f; }
.contact-card a:hover { color: #397b84; }

/* ---------- Loxone badge ---------- */
.loxone-badge {
  background: #fff;
  border-color: var(--color-line);
  border-radius: 14px;
}
.loxone-badge .text { color: #666a63; }
.loxone-badge .text strong { color: #171917; }

/* ---------- Footer ---------- */
.site-footer {
  background: #111311;
  border-top: 0;
  padding-top: clamp(4rem, 3rem + 4vw, 6.5rem);
}
.footer-grid { grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: clamp(2rem, 3vw, 4rem); }
.footer-brand p { color: #9da19a; }
.footer-col h4 { color: #7f847d; }
.footer-col a,
.footer-col li { color: #b7bbb4; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top-color: rgba(255,255,255,.10); color: #7f847d; }

/* ---------- Motion ---------- */
.reveal {
  transform: translateY(18px);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
}
.reveal-delay-1 { transition-delay: .05s; }
.reveal-delay-2 { transition-delay: .10s; }
.reveal-delay-3 { transition-delay: .15s; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav { gap: 1rem; }
  .nav a:not(.btn) { font-size: .8rem; }
}

@media (max-width: 980px) {
  .services-grid .featured { grid-column: span 1; grid-template-columns: 1fr; }
  .services-grid .featured .featured__media { min-height: 320px; }
  .market-card { min-height: 300px; }
  .principles { grid-template-columns: 1fr; }
  .approach-item { grid-template-columns: 72px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --fs-h1: clamp(2.7rem, 12vw, 4.25rem); }
  .site-header { padding: .8rem 0; }
  .brand img { height: 30px; }
  .nav-toggle { display: inline-flex; border-color: rgba(255,255,255,.28); }
  .site-header.scrolled .nav-toggle { border-color: rgba(23,25,23,.18); }
  .site-header.scrolled .nav-toggle span,
  .site-header.scrolled .nav-toggle span::before,
  .site-header.scrolled .nav-toggle span::after { background: #171917; }
  .nav.open {
    inset: 74px 1rem auto;
    padding: 1rem;
    background: rgba(247,246,241,.97);
    border: 1px solid rgba(23,25,23,.10);
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(18,20,18,.16);
    gap: .15rem;
  }
  .nav.open a:not(.btn) {
    color: #343733;
    padding: .8rem .75rem;
    border-radius: 10px;
  }
  .nav.open a:not(.btn):hover,
  .nav.open a:not(.btn).active { color: #111311; background: rgba(23,25,23,.05); }
  .nav.open .btn { justify-content: center; margin-top: .5rem; background: #171917 !important; color: #fff !important; border-color: #171917 !important; }
  .hero { min-height: 900px; align-items: flex-end; }
  .hero__inner { padding-top: 8.5rem; }
  .hero h1 { max-width: 10.5ch; }
  .hero .lead { max-width: 42ch; }
  .hero__stats { grid-template-columns: 1fr; }
  .hero__stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding: 1rem 0; margin: 0; }
  .hero__stat:last-child { border-bottom: 0; }
  .services-grid > .card:not(.featured) { min-height: auto; }
  .services-grid .featured { border-radius: 22px; }
  .split__media,
  .package-feature__media { border-radius: 20px; }
  .approach-item { grid-template-columns: 1fr; gap: 1rem; }
  .approach-item__num { font-size: 2rem; }
  .principles { border-radius: 20px; }
  .principle { min-height: auto; }
  .cta-block { border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   V5 / Refit-influenced refinement + restrained motion
   ========================================================= */

/* Hero emphasis: keep it modern; no editorial serif on the signature line. */
.gradient-text,
.hero h1 .gradient-text,
.page-hero .gradient-text,
.page-header .gradient-text {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 420;
  letter-spacing: -0.055em;
}
.hero h1 .gradient-text { color: #c6d5ca; }
.page-hero .gradient-text,
.page-header .gradient-text { color: #b2c5b6; }

/* Slightly more architectural / Framer-like header glass. */
.site-header.scrolled {
  background: rgba(247,246,241,.78);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
}

/* Make hero video motion feel cinematic rather than like a background ad. */
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  animation: hero-breathe 16s ease-in-out infinite alternate;
}
@keyframes hero-breathe {
  from { transform: scale(1.02); }
  to { transform: scale(1.065); }
}

/* Refit-inspired editorial media ribbon. */
.media-story {
  padding-top: clamp(4rem, 3rem + 4vw, 7rem);
  overflow: hidden;
}
.media-story__head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.6rem, 4vw, 4.6rem);
}
.media-story__head h2 {
  max-width: 13ch;
  margin-top: .9rem;
}
.media-story__head .lead {
  margin: 0 0 .5rem;
  max-width: 42ch;
}
.media-ribbon {
  display: grid;
  grid-template-columns: 1.2fr .82fr 1.12fr .82fr;
  gap: clamp(.75rem, 1.2vw, 1.25rem);
  align-items: end;
}
.media-ribbon__item {
  margin: 0;
  min-width: 0;
}
.media-ribbon__item--wide { padding-top: clamp(1rem, 4vw, 4rem); }
.media-ribbon__item--tall:nth-child(2) { transform: translateY(-4.5%); }
.media-ribbon__item--tall:nth-child(4) { transform: translateY(3%); }
.media-ribbon__frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #deddd7;
  clip-path: inset(0 0 0 0 round 20px);
  transform: translateZ(0);
}
.media-ribbon__item--wide .media-ribbon__frame { aspect-ratio: 1.08 / 1; }
.media-ribbon__item--tall .media-ribbon__frame { aspect-ratio: .72 / 1; }
.media-ribbon img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, var(--parallax-shift, 0px), 0) scale(1.04);
  will-change: transform;
}
.media-ribbon figcaption {
  margin-top: .75rem;
  color: #6e726b;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.media-story__note {
  margin: 2rem 0 0 auto;
  max-width: max-content;
  color: #898c85;
  font-size: .72rem;
}

/* Image reveal treatment used site-wide. */
.media-motion,
.split__media,
.package-feature__media,
.services-grid .featured .featured__media,
.team-card__media,
.team-card__img {
  --reveal-radius: 24px;
}
.js-motion .media-motion,
.js-motion .split__media,
.js-motion .package-feature__media,
.js-motion .services-grid .featured .featured__media,
.js-motion .team-card__media,
.js-motion .team-card__img {
  clip-path: inset(7% 0 7% 0 round var(--reveal-radius));
  opacity: .5;
  transform: translateY(24px) scale(.985);
  transition:
    clip-path 1.05s var(--ease),
    opacity .8s var(--ease),
    transform 1.05s var(--ease);
}
.js-motion .media-motion.is-media-visible,
.js-motion .split__media.is-media-visible,
.js-motion .package-feature__media.is-media-visible,
.js-motion .services-grid .featured .featured__media.is-media-visible,
.js-motion .team-card__media.is-media-visible,
.js-motion .team-card__img.is-media-visible {
  clip-path: inset(0 0 0 0 round var(--reveal-radius));
  opacity: 1;
  transform: none;
}

/* Hover motion: quiet, tactile, not theme-park UI. */
.card a,
.market-card,
.team-card,
.package-feature__media,
.media-ribbon__frame,
.split__media {
  transition-timing-function: var(--ease);
}
.media-ribbon__frame img,
.package-feature__media img,
.team-card img {
  transition: transform 1s var(--ease), filter .6s ease;
}
.media-ribbon__item:hover .media-ribbon__frame img {
  transform: translate3d(0, var(--parallax-shift, 0px), 0) scale(1.075);
}

/* Premium page-to-page transition where supported by the browser. */
@view-transition { navigation: auto; }
::view-transition-old(root) {
  animation: elevate-page-out .24s ease both;
}
::view-transition-new(root) {
  animation: elevate-page-in .52s var(--ease) both;
}
@keyframes elevate-page-out {
  to { opacity: 0; transform: translateY(-5px) scale(.997); }
}
@keyframes elevate-page-in {
  from { opacity: 0; transform: translateY(9px) scale(.997); }
  to { opacity: 1; transform: none; }
}

/* Fallback navigation fade for browsers without cross-document view transitions. */
body {
  transition: opacity .22s ease, transform .32s var(--ease);
}
body.page-entering {
  opacity: 0;
  transform: translateY(7px);
}
body.page-leaving {
  opacity: 0;
  transform: translateY(-5px);
}

@media (max-width: 980px) {
  .media-story__head { grid-template-columns: 1fr; }
  .media-story__head .lead { max-width: 56ch; }
  .media-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .media-ribbon__item--wide { padding-top: 0; }
  .media-ribbon__item--tall:nth-child(2),
  .media-ribbon__item--tall:nth-child(4) { transform: none; }
  .media-ribbon__item:nth-child(even) { margin-top: 3rem; }
}

@media (max-width: 720px) {
  .hero__media video { animation: none; transform: scale(1.025); }
  .media-story { padding-inline: 0; }
  .media-story .container { overflow: visible; }
  .media-ribbon {
    display: flex;
    gap: .85rem;
    overflow-x: auto;
    margin-inline: calc(var(--pad-x) * -1);
    padding-inline: var(--pad-x);
    padding-bottom: .7rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .media-ribbon::-webkit-scrollbar { display: none; }
  .media-ribbon__item,
  .media-ribbon__item:nth-child(even) {
    flex: 0 0 77vw;
    margin-top: 0;
    scroll-snap-align: center;
  }
  .media-ribbon__item--wide .media-ribbon__frame,
  .media-ribbon__item--tall .media-ribbon__frame { aspect-ratio: .88 / 1; }
  .media-story__note { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media video { animation: none !important; transform: none !important; }
  .js-motion .media-motion,
  .js-motion .split__media,
  .js-motion .package-feature__media,
  .js-motion .services-grid .featured .featured__media,
  .js-motion .team-card__media,
  .js-motion .team-card__img {
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  body { transition: none !important; }
}

/* JS-enhanced parallax for selected existing photography. */
.parallax-active { overflow: hidden; }
.parallax-active > img,
.parallax-active picture > img,
.parallax-active .featured__media > img {
  height: 112%;
  transform: translate3d(0, var(--parallax-shift, 0px), 0) scale(1.035);
  will-change: transform;
}
.split__media.parallax-active:hover img,
.package-feature__media.parallax-active:hover img {
  transform: translate3d(0, var(--parallax-shift, 0px), 0) scale(1.055);
}
