/* Dibacii Technologies — modern Material-inspired design system */
:root {
  color-scheme: dark;
  --bg: #111318;
  --bg-elevated: #191b22;
  --surface: #20232b;
  --surface-strong: #292d36;
  --text: #f5f4f1;
  --muted: #a6a8b2;
  --line: rgba(255,255,255,.11);
  --accent: #e40000;
  --accent-strong: #c90000;
  --accent-ink: #ffffff;
  --green: #b9e8c9;
  --shadow: 0 24px 70px rgba(0,0,0,.28);
  --nav-bg: rgba(17,19,24,.76);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1200px;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f5f1;
  --bg-elevated: #fffdfa;
  --surface: #efede8;
  --surface-strong: #e6e2da;
  --text: #1c1d22;
  --muted: #666a73;
  --line: rgba(28,29,34,.12);
  --accent: #e40000;
  --accent-strong: #c90000;
  --accent-ink: #ffffff;
  --green: #2d7850;
  --shadow: 0 24px 70px rgba(50,42,32,.12);
  --nav-bg: rgba(247,245,241,.84);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; }
.modern-content img { display: block; max-width: 100%; }
.modern-content a { color: inherit; text-decoration: none; }
.modern-content button { color: inherit; font: inherit; }
.modern-content .container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.modern-content .section { position: relative; padding: 112px 0; }
.skip-link { position: fixed; z-index: 9999; top: 12px; left: 12px; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); border-radius: 10px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { background: var(--nav-bg); border-color: var(--line); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.modern-content .navbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; display: flex; align-items: flex-end; gap: 3px; padding: 7px; border-radius: 12px; background: var(--accent); transform: rotate(-5deg); }
.brand-mark span { display: block; width: 5px; border-radius: 4px; background: var(--accent-ink); transform: skew(-18deg); }
.brand-mark span:nth-child(1) { height: 11px; }
.brand-mark span:nth-child(2) { height: 19px; }
.brand-mark span:nth-child(3) { height: 14px; }
.brand-name { font: 800 22px/1 "DM Sans", sans-serif; letter-spacing: -.07em; }
.brand-name > span { color: var(--accent); }
.brand-name small { display: block; margin-top: 5px; font: 700 8px/1 "DM Sans", sans-serif; letter-spacing: .25em; color: var(--muted); }
.nav-panel, .nav-links, .nav-actions { display: flex; align-items: center; }
.nav-panel { gap: 32px; }
.nav-links { gap: 7px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; min-height: 42px; padding: 0 13px; border-radius: 99px; color: var(--muted); font-size: 13px; font-weight: 600; transition: color .2s, background .2s; }
.nav-link:hover, .nav-link.is-active { color: var(--text); background: var(--surface-strong); }
.nav-actions { gap: 12px; }
.theme-toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; transition: transform .2s, background .2s; }
.theme-toggle:hover { background: var(--surface); transform: rotate(-8deg); }
.theme-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="dark"] .theme-icon-sun, html[data-theme="light"] .theme-icon-moon { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 54px; padding: 0 23px; border: 1px solid transparent; border-radius: 99px; font-size: 14px; font-weight: 700; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-3px); }
.button span { font-size: 18px; line-height: 1; }
.button-small { min-height: 42px; padding: 0 18px; font-size: 13px; }
.button-primary { color: var(--accent-ink); background: var(--accent); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 20%, transparent); }
.button-primary:hover { background: var(--accent-strong); box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 28%, transparent); }
.button-quiet { border-color: var(--line); color: var(--text); background: color-mix(in srgb, var(--bg) 35%, transparent); }
.button-quiet:hover { background: var(--surface); }
.button-light { background: #fff4e9; color: #2a1b13; }
.menu-toggle { display: none; }
.hero { min-height: min(900px, 100svh); min-height: max(760px, 100svh); display: flex; align-items: center; padding-top: 145px; padding-bottom: 120px; overflow: hidden; }
.hero-backdrop { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 73% 42%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 40%), radial-gradient(ellipse at 10% 100%, rgba(77,94,123,.13), transparent 35%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: clamp(36px, 6vw, 88px); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 13%, transparent); }
.modern-content h1, .modern-content h2, .modern-content h3, .modern-content p { margin-top: 0; }
.modern-content h1, .modern-content h2, .modern-content h3 { font-family: "DM Sans", sans-serif; }
.hero h1 { max-width: 700px; margin-bottom: 24px; font-size: clamp(48px, 6.2vw, 82px); line-height: 1.04; font-weight: 700; letter-spacing: -.075em; }
.text-gradient { color: var(--accent); }
.hero-description { max-width: 520px; margin-bottom: 30px; color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 48px; color: var(--muted); font-size: 12px; }
.note-line { width: 35px; height: 1px; background: var(--accent); }
.hero-visual { position: relative; min-height: 480px; display: grid; place-items: center; perspective: 1000px; }
.hero-image-wrap { position: relative; width: min(100%, 470px); aspect-ratio: .88; border-radius: 46% 46% 28px 28px; overflow: hidden; transform: rotate(2deg); box-shadow: var(--shadow); background: var(--surface); }
.hero-image-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.42)); }
.hero-image { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); }
.floating-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; min-width: 200px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--bg-elevated) 88%, transparent); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.floating-card strong, .floating-card small { display: block; }
.floating-card strong { font-size: 12px; }
.floating-card small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.floating-card-top { top: 13%; left: -12%; }
.floating-card-bottom { right: -8%; bottom: 13%; }
.floating-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; color: var(--accent-ink); background: var(--accent); font-size: 22px; }
.status-pulse { width: 9px; height: 9px; margin: 0 14px; border-radius: 50%; background: #5fc78b; box-shadow: 0 0 0 5px rgba(95,199,139,.12); }
.hero-orbit { position: absolute; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 550px; height: 550px; right: -8%; top: -3%; }
.orbit-two { width: 660px; height: 660px; right: -19%; top: -14%; border-style: dashed; opacity: .35; }
.scroll-cue { position: absolute; left: max(24px, calc((100vw - var(--container))/2)); bottom: 32px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue span { position: relative; display: inline-block; width: 24px; height: 36px; border: 1px solid var(--muted); border-radius: 99px; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 6px; border-radius: 5px; background: var(--accent); transform: translateX(-50%); animation: scrollDot 1.5s ease-in-out infinite; }
@keyframes scrollDot { 0%,100% { transform: translate(-50%,0); opacity: .45; } 50% { transform: translate(-50%,8px); opacity: 1; } }
.intro-section { background: var(--bg-elevated); isolation: isolate; overflow: hidden; }
.intro-parallax {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
.intro-parallax-orbit {
  top: 8%;
  right: -150px;
  width: clamp(300px, 42vw, 560px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 34px color-mix(in srgb, var(--accent) 3%, transparent),
              0 0 0 76px color-mix(in srgb, var(--accent) 2%, transparent);
  opacity: .8;
}
.intro-parallax-glow {
  top: 38%;
  left: -130px;
  width: clamp(220px, 28vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent), transparent 68%);
  filter: blur(8px);
  opacity: .85;
}
@media (max-width: 800px) {
  .intro-parallax-orbit { right: -220px; top: 4%; opacity: .55; }
  .intro-parallax-glow { left: -180px; top: 44%; opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-parallax { will-change: auto; }
}
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; align-items: start; }
.section-heading h2 { margin: 0; max-width: 700px; font-size: clamp(36px, 4.7vw, 60px); line-height: 1.1; letter-spacing: -.065em; }
.intro-copy { max-width: 580px; padding-top: 15px; }
.lead { color: var(--text); font: 600 clamp(19px, 2vw, 25px)/1.55 "DM Sans", sans-serif; letter-spacing: -.03em; }
.intro-copy > p:not(.lead), .contact-copy > p:not(.eyebrow):not(.lead) { color: var(--muted); line-height: 1.9; }
.text-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 14px; padding-bottom: 7px; border-bottom: 1px solid var(--accent); color: var(--text); font-size: 13px; font-weight: 700; }
.text-link span { color: var(--accent); font-size: 18px; }
.value-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 90px; padding-top: 28px; border-top: 1px solid var(--line); }
.value-item { display: flex; align-items: flex-start; gap: 16px; }
.value-number { color: var(--accent); font-size: 12px; font-weight: 700; }
.value-item h3 { margin: -5px 0 7px; font-size: 17px; letter-spacing: -.04em; }
.value-item p { margin: 0; color: var(--muted); font-size: 13px; }
.services-section { overflow: hidden; }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 52px; }
.section-intro { max-width: 340px; margin: 0 0 4px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.service-card { display: flex; flex-direction: column; min-height: 330px; padding: 25px 23px 23px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elevated); transition: transform .3s, border-color .3s, background .3s; }
.service-card:hover { transform: translateY(-7px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--surface); }
.service-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.service-index { color: var(--muted); font-size: 11px; font-weight: 700; }
.service-symbol { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); font-size: 25px; }
.service-card h3 { margin: 0 0 12px; font-size: 19px; line-height: 1.35; letter-spacing: -.045em; }
.service-card p { margin-bottom: 24px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.card-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text); font-size: 11px; font-weight: 700; }
.card-link span { color: var(--accent); font-size: 16px; transition: transform .2s; }
.card-link:hover span { transform: translate(3px,-3px); }
.manifesto-section { min-height: 600px; display: flex; align-items: center; overflow: hidden; background: #181a20; color: #fff; }
.manifesto-image, .manifesto-overlay { position: absolute; inset: 0; }
.manifesto-image img { width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.manifesto-overlay { background: linear-gradient(90deg, rgba(12,14,18,.96) 0%, rgba(12,14,18,.78) 48%, rgba(12,14,18,.2) 100%), linear-gradient(0deg, rgba(12,14,18,.35), transparent); }
.manifesto-content { position: relative; z-index: 1; }
.manifesto-content h2 { max-width: 780px; margin: 0 0 24px; font-size: clamp(42px, 6vw, 76px); line-height: 1.08; letter-spacing: -.07em; }
.manifesto-content h2 span { color: var(--accent); }
.manifesto-content > p:not(.eyebrow) { max-width: 480px; margin-bottom: 30px; color: rgba(255,255,255,.72); }
.work-section { background: var(--bg-elevated); }
.work-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 38px 24px; }
.work-card-large { grid-row: span 2; }
.work-image { position: relative; display: block; overflow: hidden; aspect-ratio: 1.28; border-radius: var(--radius-lg); background: var(--surface); }
.work-card-large .work-image { aspect-ratio: .92; }
.work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s; filter: saturate(.78); }
.work-image:hover img { transform: scale(1.055); filter: saturate(1); }
.work-arrow { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 21px; transition: transform .25s; }
.work-image:hover .work-arrow { transform: rotate(45deg); }
.work-meta { display: flex; justify-content: space-between; gap: 16px; margin: 17px 0 10px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.work-card h3 { margin: 0; font-size: clamp(19px, 2vw, 25px); line-height: 1.35; letter-spacing: -.045em; }
.work-disclaimer { margin: 38px 0 0; color: var(--muted); font-size: 11px; }
.contact-section { overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 10%; }
.contact-copy h2 { margin: 0 0 25px; font-size: clamp(42px, 5.5vw, 70px); line-height: 1.08; letter-spacing: -.07em; }
.contact-copy .lead { max-width: 510px; margin-bottom: 28px; }
.contact-email { display: inline-flex; align-items: center; gap: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--accent); font: 700 clamp(17px, 2vw, 23px) "DM Sans", sans-serif; }
.contact-email span { color: var(--accent); }
.contact-note { margin-top: 12px; color: var(--muted); font-size: 12px; }
.contact-panel { position: relative; overflow: hidden; min-height: 390px; padding: 42px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(140deg, var(--surface), var(--bg-elevated)); box-shadow: var(--shadow); }
.contact-panel .eyebrow { position: relative; z-index: 1; }
.contact-panel h3 { position: relative; z-index: 1; max-width: 360px; margin: 24px 0 14px; font-size: clamp(25px, 3vw, 36px); line-height: 1.25; letter-spacing: -.055em; }
.contact-panel > p:not(.eyebrow) { position: relative; z-index: 1; max-width: 350px; color: var(--muted); font-size: 14px; }
.contact-panel .button { position: relative; z-index: 1; margin-top: 12px; }
.contact-panel-mark { position: absolute; top: -80px; right: -25px; color: color-mix(in srgb, var(--accent) 12%, transparent); font-size: 250px; line-height: 1; }
.contact-panel-decoration { position: absolute; right: -80px; bottom: -140px; width: 290px; height: 290px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 50%; box-shadow: 0 0 0 35px color-mix(in srgb, var(--accent) 4%, transparent), 0 0 0 70px color-mix(in srgb, var(--accent) 3%, transparent); }
/* Keep the footer behind the page content. The main element itself must
   stay transparent so its bottom padding can act as the footer reveal area. */
.modern-content > main {
  position: relative;
  z-index: 1;
  padding-bottom: var(--footer-reveal-height, 520px);
  /* The reveal spacer must not block interaction with the pinned footer. */
  pointer-events: none;
}
/* Opaque section surfaces mask the footer during the scroll, including the
   hero and sections that intentionally had no explicit background before. */
.modern-content > main > .hero,
.modern-content > main > .story-intro,
.modern-content > main > .story-feature,
.modern-content > main > .services-section,
.modern-content > main > .story-work {
  background-color: var(--bg);
}
.modern-content > main > .hero-ticker {
  background-color: var(--surface);
}
.modern-content > main > * {
  pointer-events: auto;
}
.site-footer {
  position: sticky;
  bottom: 0;
  z-index: 0;
  margin-top: calc(-1 * var(--footer-reveal-height, 520px));
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background-color: var(--bg-elevated);
}
.site-footer::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .46;
  background-image: linear-gradient(
    125deg,
    #e40000 0%,
    #ff3d00 22%,
    #f00078 46%,
    #7438ff 72%,
    #087cff 100%
  );
  background-size: 400% 400%;
  animation: footer-gradient 50s linear infinite alternate;
}

/* Keep the colour vivid in light mode while preserving readable dark text. */
html[data-theme="light"] .site-footer::before {
  opacity: .24;
  background-image: linear-gradient(
    125deg,
    #ff1744 0%,
    #ff4d00 24%,
    #e60073 49%,
    #7138e8 74%,
    #087cff 100%
  );
}
.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(80px, calc(6vw + 36px), 120px) clamp(24px, 5vw, 88px) 22px;
}

/* As the CTA moves away, individual footer content blocks gently zoom into place.
   The footer surface itself stays stationary and keeps its original dimensions. */
@supports (animation-timeline: view()) {
  .modern-content {
    timeline-scope: --footer-cta-reveal;
  }
  .modern-content .story-cta {
    view-timeline-name: --footer-cta-reveal;
    view-timeline-axis: block;
  }
  .site-footer .footer-connect {
    animation: footer-block-zoom-in linear both;
    animation-timeline: --footer-cta-reveal;
    animation-range: exit 0% exit 100%;
    transform-origin: center bottom;
  }
}
@keyframes footer-block-zoom-in {
  from { transform: scale(.94); }
  to { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer .footer-connect {
    animation: none;
    transform: none;
  }
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(130px, .55fr) minmax(260px, .9fr);
  align-items: start;
  gap: clamp(32px, 5vw, 88px);
  padding-bottom: clamp(44px, 6vw, 78px);
}
.footer-intro { min-width: 0; }
.footer-brand { margin-bottom: 25px; }
.footer-intro > p {
  max-width: 290px;
  margin: 0 0 28px;
  color: var(--text);
  font: 600 clamp(20px, 2.1vw, 28px)/1.4 "DM Sans", sans-serif;
  letter-spacing: -.045em;
}
.footer-location {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.footer-location > span {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent);
}
.footer-label {
  display: block;
  margin: 7px 0 22px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .19em;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  transition: color .2s, transform .2s;
}
.footer-nav a span {
  color: var(--accent);
  font-size: 12px;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity .2s, transform .2s;
}
.footer-nav a:hover { color: var(--accent); transform: translateX(3px); }
.footer-nav a:hover span { opacity: 1; transform: translate(0, 0); }
.footer-connect {
  min-width: 0;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 58%, transparent);
}
.footer-connect .footer-label { margin-top: 0; }
.footer-connect h2 {
  margin: 0 0 28px;
  color: var(--text);
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.065em;
}
.footer-connect h2 span { color: var(--accent); }
.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 99px;
  color: var(--accent-ink) !important;
  background: var(--accent);
  font-size: 12px;
  font-weight: 700;
  transition: background .2s, transform .2s;
}
.footer-cta span { font-size: 17px; }
.footer-cta:hover { background: var(--accent-strong); transform: translateY(-2px); }
.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.footer-bottom > * { min-width: 0; }
.footer-bottom > :nth-child(2) { text-align: center; }
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.back-top span { color: var(--accent); font-size: 16px; transition: transform .2s; }
.back-top:hover span { transform: translateY(-3px); }
.reveal { opacity: 1; transform: none; }
/* Keep content readable by default; GSAP applies reveal motion only when it initializes successfully. */
.modern-content :focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (max-width: 1080px) {
  .nav-panel { gap: 16px; }
  .nav-links { gap: 0; }
  .nav-link { padding-inline: 10px; }
  .hero-grid { gap: 40px; }
  .hero-visual { min-height: 420px; }
  .floating-card-top { left: -6%; }
  .floating-card-bottom { right: -3%; }
  .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .service-card { min-height: 290px; }
}
@media (max-width: 800px) {
  .container { width: min(var(--container), calc(100% - 36px)); }
  .section { padding: 82px 0; }
  .navbar { min-height: 76px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg-elevated); cursor: pointer; }
  .menu-toggle span { display: block; width: 17px; height: 1.5px; border-radius: 4px; background: var(--text); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-panel { position: fixed; top: 76px; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 22px; max-height: calc(100svh - 76px); padding: 20px 24px 30px; overflow: auto; border-bottom: 1px solid var(--line); background: var(--bg-elevated); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .2s, visibility .2s, transform .2s; }
  .nav-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 5px; }
  .nav-link { min-height: 50px; padding: 0 16px; font-size: 15px; }
  .nav-actions { justify-content: space-between; }
  .hero { min-height: auto; padding-top: 132px; padding-bottom: 105px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-copy { max-width: 660px; }
  .hero h1 { max-width: 650px; font-size: clamp(46px, 10vw, 74px); }
  .hero-visual { min-height: 440px; margin: 0 10px; }
  .hero-image-wrap { width: min(78%, 420px); aspect-ratio: 1.04; border-radius: 42% 42% 24px 24px; }
  .orbit-one { width: 460px; height: 460px; right: 0; top: -1%; }
  .orbit-two { width: 550px; height: 550px; right: -10%; top: -12%; }
  .floating-card-top { left: 0; top: 13%; }
  .floating-card-bottom { right: 0; bottom: 10%; }
  .scroll-cue { bottom: 22px; }
  .intro-grid, .contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .intro-copy { padding-top: 0; }
  .value-strip { margin-top: 55px; }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 35px; }
  .section-intro { max-width: 560px; }
  .manifesto-section { min-height: 550px; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-card-large { grid-row: auto; grid-column: 1 / -1; }
  .work-card-large .work-image { aspect-ratio: 1.35; }
  .contact-panel { max-width: 600px; }
  .footer-inner { padding: 84px 28px 20px; }
  .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: 38px 28px; padding-bottom: 44px; }
  .footer-connect { grid-column: 1 / -1; }
  .footer-connect h2 { font-size: clamp(34px, 6vw, 48px); }
  .footer-bottom { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; }
  .footer-bottom > :nth-child(2) { grid-column: 1; grid-row: 2; text-align: left; }
  .footer-bottom .back-top { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
@media (max-width: 520px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 68px 0; }
  .brand-mark { width: 33px; height: 33px; }
  .brand-name { font-size: 20px; }
  .hero { padding-top: 120px; padding-bottom: 90px; }
  .hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero-description { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-note { margin-top: 30px; align-items: flex-start; font-size: 10px; }
  .hero-visual { min-height: 350px; margin-inline: 0; }
  .hero-image-wrap { width: 80%; }
  .floating-card { min-width: 165px; gap: 8px; padding: 10px 12px; border-radius: 15px; }
  .floating-card-top { left: -4px; }
  .floating-card-bottom { right: -4px; }
  .floating-icon { width: 31px; height: 31px; border-radius: 11px; }
  .status-pulse { margin-inline: 8px; }
  .orbit-one { width: 350px; height: 350px; right: -3%; }
  .orbit-two { width: 410px; height: 410px; right: -12%; }
  .scroll-cue { left: 16px; font-size: 9px; }
  .value-strip { grid-template-columns: 1fr; gap: 24px; margin-top: 42px; }
  .section-heading h2 { font-size: clamp(35px, 10vw, 48px); }
  .service-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { min-height: 260px; padding: 23px; }
  .service-card-top { margin-bottom: 28px; }
  .manifesto-section { min-height: 560px; }
  .manifesto-overlay { background: linear-gradient(90deg, rgba(12,14,18,.92), rgba(12,14,18,.55)), linear-gradient(0deg, rgba(12,14,18,.45), transparent); }
  .manifesto-content h2 { font-size: clamp(40px, 11vw, 55px); }
  .work-grid { grid-template-columns: 1fr; gap: 30px; }
  .work-card-large { grid-column: auto; }
  .work-card-large .work-image, .work-image { aspect-ratio: 1.12; }
  .work-meta { flex-direction: column; gap: 4px; }
  .contact-panel { min-height: 360px; padding: 30px 25px; }
  .footer-inner { padding: 74px 20px 18px; }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-bottom: 35px; }
  .footer-intro > p { max-width: 320px; font-size: 23px; }
  .footer-brand { margin-bottom: 20px; }
  .footer-label { margin-bottom: 16px; }
  .footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
  .footer-connect { grid-column: auto; padding: 24px 20px; }
  .footer-connect h2 { font-size: clamp(32px, 9vw, 42px); }
  .footer-bottom { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 9px 12px; font-size: 9px; }
  .footer-bottom > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .footer-bottom .back-top { grid-column: 2; grid-row: 1; align-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-motion .reveal { opacity: 1; transform: none; }
}

/* The original legacy header remains outside the redesigned content wrapper. */
.modern-content { background: var(--bg); color: var(--text); font-family: "DM Sans", sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.modern-content .anchor-alias { display: block; position: relative; top: -24px; visibility: hidden; }

/* Match the original header's logo to the Dibacii wordmark used in the footer. */
#header .header-logo.brand { display: inline-flex; align-items: center; gap: 11px; width: auto; height: 100px; padding: 20px 30px; box-sizing: border-box; vertical-align: top; color: var(--text); text-decoration: none; white-space: nowrap; }
#header .header-logo .brand-mark { width: 36px; height: 36px; display: flex; align-items: flex-end; gap: 3px; padding: 7px; border-radius: 12px; background: var(--accent); transform: rotate(-5deg); flex: 0 0 auto; }
#header .header-logo .brand-mark span { display: block; width: 5px; border-radius: 4px; background: var(--accent-ink); transform: skew(-18deg); }
#header .header-logo .brand-mark span:nth-child(1) { height: 11px; }
#header .header-logo .brand-mark span:nth-child(2) { height: 19px; }
#header .header-logo .brand-mark span:nth-child(3) { height: 14px; }
#header .header-logo .brand-name { display: block; font: 800 22px/1 "DM Sans", sans-serif; letter-spacing: -.07em; color: var(--text); }
#header .header-logo .brand-name > span { color: var(--accent); }
#header .header-logo .brand-name small { display: block; margin-top: 5px; font: 700 8px/1 "DM Sans", sans-serif; letter-spacing: .25em; color: var(--muted); }
@media (max-width: 767px) {
  #header .header-logo .brand-mark { width: 33px; height: 33px; }
  #header .header-logo .brand-name { font-size: 20px; }
}


/* Keep the preserved legacy header in sync with the site's system-driven theme. */
#header,
#header .header-body,
#header .header-body-fixed,
#header .navbar-default,
#header .navbar-default.light {
  color: var(--text);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
#header .navbar-default,
#header .navbar-default.light {
  border-color: var(--line);
}
#header .navbar-default.light .navbar-nav > li > a,
#header .navbar-default .navbar-nav > li > a,
#header .navbar-default.light .navbar-toggle,
#header .navbar-default .navbar-toggle {
  color: var(--text);
}
#header .navbar-default.light .navbar-nav > li > a:hover,
#header .navbar-default.light .navbar-nav > li > a:focus,
#header .navbar-default .navbar-nav > li > a:hover,
#header .navbar-default .navbar-nav > li > a:focus {
  color: var(--accent);
}
#header .navbar-default.light .navbar-nav > li .bg-icon,
#header .navbar-default.light .navbar-nav > li .rotated-title,
#header .navbar-default .navbar-nav > li .bg-icon,
#header .navbar-default .navbar-nav > li .rotated-title {
  color: var(--muted);
}#header .navbar-default.light .navbar-toggle .icon-bar,
#header .navbar-default .navbar-toggle .icon-bar {
  background-color: var(--text);
}
#header .navbar-default.light .navbar-toggle {
  border-color: var(--line);
}
#header .navbar-default.light .navbar-toggle:hover,
#header .navbar-default.light .navbar-toggle:focus {
  background-color: var(--surface);
}
#header .navbar-default.light .navbar-collapse,
#header .navbar-default.light .navbar-form {
  border-color: var(--line);
}
#header .header-logo.brand { background: transparent; }


/* Floating light/dark theme switcher */
.theme-switcher {
  position: fixed;
  z-index: 1800;
  left: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  color: var(--text);
  box-shadow: 0 8px 28px rgba(0,0,0,.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.theme-switcher:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.theme-switcher:active { transform: scale(.94); }
.theme-switcher:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.theme-switcher-icon { display: block; font: 400 25px/1 sans-serif; transition: transform .35s ease; }
.theme-switcher:hover .theme-switcher-icon { transform: rotate(24deg); }
@media (max-width: 520px) { .theme-switcher { left: 16px; bottom: 16px; width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .theme-switcher, .theme-switcher-icon { transition: none; } }


/* Theme-aware treatment for the preserved image-based legacy navigation. */
html[data-theme="dark"] #header,
html[data-theme="dark"] #header .header-body,
html[data-theme="dark"] #header .header-body-fixed,
html[data-theme="dark"] #header.header-top-fixed .header-body,
html[data-theme="dark"] #header.header-all-time-top-fixed .header-body,
html[data-theme="dark"] #header .navbar-default,
html[data-theme="dark"] #header .navbar-default.light,
html[data-theme="dark"] #header.header-top-fixed .header-body .navbar-default.light,
html[data-theme="dark"] #header.header-all-time-top-fixed .header-body .navbar-default.light {
  background: transparent !important;
  color: var(--text);
  border-color: var(--line) !important;
}
html[data-theme="light"] #header,
html[data-theme="light"] #header .header-body,
html[data-theme="light"] #header .header-body-fixed,
html[data-theme="light"] #header.header-top-fixed .header-body,
html[data-theme="light"] #header.header-all-time-top-fixed .header-body,
html[data-theme="light"] #header .navbar-default,
html[data-theme="light"] #header .navbar-default.light,
html[data-theme="light"] #header.header-top-fixed .header-body .navbar-default.light,
html[data-theme="light"] #header.header-all-time-top-fixed .header-body .navbar-default.light {
  background: transparent !important;
  color: var(--text);
  border-color: var(--line) !important;
}

/* Darken the legacy photographic navigation panels in dark mode without dimming their labels. */
html[data-theme="dark"] #header .navbar-default.light .navbar-nav > li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(9,11,16,.76), rgba(9,11,16,.48));
  transition: background .25s ease;
}
html[data-theme="dark"] #header .navbar-default.light .navbar-nav > li > .bg-icon,
html[data-theme="dark"] #header .navbar-default.light .navbar-nav > li > .rotated-title,
html[data-theme="dark"] #header .navbar-default.light .navbar-nav > li > a {
  z-index: 1;
}
html[data-theme="dark"] #header .navbar-default.light .navbar-nav > li .bg-icon,
html[data-theme="dark"] #header .navbar-default.light .navbar-nav > li .bg-icon i,
html[data-theme="dark"] #header .navbar-default.light .navbar-nav > li .rotated-title {
  color: rgba(255,255,255,.7) !important;
}
html[data-theme="dark"] #header .navbar-default.light .navbar-nav > li > a,
html[data-theme="dark"] #header.header-top-fixed .header-body .navbar-default.light .navbar-nav > li > a,
html[data-theme="dark"] #header.header-all-time-top-fixed .header-body .navbar-default.light .navbar-nav > li > a {
  color: var(--text) !important;
}
html[data-theme="dark"] #header .navbar-default.light .navbar-nav > li:hover::before {
  background: linear-gradient(145deg, rgba(9,11,16,.54), rgba(9,11,16,.28));
}
html[data-theme="dark"] #header .navbar-default.light .navbar-toggle,
html[data-theme="dark"] #header .navbar-default.light .navbar-toggle:hover,
html[data-theme="dark"] #header .navbar-default.light .navbar-toggle:focus {
  background: var(--surface) !important;
  border-color: var(--line) !important;
}
html[data-theme="dark"] #header .navbar-default.light .navbar-toggle .icon-bar {
  background-color: var(--text) !important;
}
html[data-theme="light"] #header .navbar-default.light .navbar-nav > li .bg-icon,
html[data-theme="light"] #header .navbar-default.light .navbar-nav > li .bg-icon i {
  color: var(--text) !important;
}
html[data-theme="light"] #header .navbar-default.light .navbar-nav > li .rotated-title {
  color: var(--muted) !important;
}
html[data-theme="light"] #header .navbar-default.light .navbar-nav > li > a,
html[data-theme="light"] #header.header-top-fixed .header-body .navbar-default.light .navbar-nav > li > a,
html[data-theme="light"] #header.header-all-time-top-fixed .header-body .navbar-default.light .navbar-nav > li > a {
  color: var(--text) !important;
}
html[data-theme="light"] #header .navbar-default.light .navbar-toggle,
html[data-theme="light"] #header .navbar-default.light .navbar-toggle:hover,
html[data-theme="light"] #header .navbar-default.light .navbar-toggle:focus {
  background: var(--surface) !important;
  border-color: var(--line) !important;
}
html[data-theme="light"] #header .navbar-default.light .navbar-toggle .icon-bar {
  background-color: var(--text) !important;
}
#header .navbar-default.light .navbar-collapse,
#header .navbar-default.light .navbar-form {
  border-color: var(--line) !important;
}


/* Fresh, section-relevant photography for the original expandable header panels. */
#header .navbar-default.light .navbar-nav > li.home {
  background-image: url("https://images.unsplash.com/photo-1558655146-d09347e92766?auto=format&fit=crop&w=1400&q=85") !important;
}
#header .navbar-default.light .navbar-nav > li.about {
  background-image: url("https://images.unsplash.com/photo-1523726491678-bf852e717f6a?auto=format&fit=crop&w=1400&q=85") !important;
}
#header .navbar-default.light .navbar-nav > li.service {
  background-image: url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1400&q=85") !important;
}
#header .navbar-default.light .navbar-nav > li.work {
  background-image: url("https://images.unsplash.com/photo-1559028012-481c04fa702d?auto=format&fit=crop&w=1400&q=85") !important;
}
#header .navbar-default.light .navbar-nav > li.contact {
  background-image: url("https://images.unsplash.com/photo-1557683316-973673baf926?auto=format&fit=crop&w=1400&q=85") !important;
}
#header .navbar-default.light .navbar-nav > li.home,
#header .navbar-default.light .navbar-nav > li.about,
#header .navbar-default.light .navbar-nav > li.service,
#header .navbar-default.light .navbar-nav > li.work,
#header .navbar-default.light .navbar-nav > li.contact {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  isolation: isolate;
}
html[data-theme="light"] #header .navbar-default.light .navbar-nav > li.home::before,
html[data-theme="light"] #header .navbar-default.light .navbar-nav > li.about::before,
html[data-theme="light"] #header .navbar-default.light .navbar-nav > li.service::before,
html[data-theme="light"] #header .navbar-default.light .navbar-nav > li.work::before,
html[data-theme="light"] #header .navbar-default.light .navbar-nav > li.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255,253,250,.66), rgba(255,253,250,.3));
  transition: background .25s ease;
}
html[data-theme="light"] #header .navbar-default.light .navbar-nav > li:hover::before {
  background: linear-gradient(145deg, rgba(255,253,250,.48), rgba(255,253,250,.18));
}


/* Refined navigation panels: consistent high contrast, restrained accent, and clear hierarchy. */
#header .navbar-default.light .navbar-nav > li.home::before,
#header .navbar-default.light .navbar-nav > li.about::before,
#header .navbar-default.light .navbar-nav > li.service::before,
#header .navbar-default.light .navbar-nav > li.work::before,
#header .navbar-default.light .navbar-nav > li.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 14, 22, .48) 0%, rgba(10, 14, 22, .76) 100%),
    linear-gradient(135deg, rgba(12, 18, 30, .18), rgba(12, 18, 30, .36));
  transition: background .3s ease, box-shadow .3s ease;
}
#header .navbar-default.light .navbar-nav > li > .bg-icon,
#header .navbar-default.light .navbar-nav > li > .rotated-title,
#header .navbar-default.light .navbar-nav > li > a {
  z-index: 1;
  color: #fff !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .24);
}
#header .navbar-default.light .navbar-nav > li .bg-icon,
#header .navbar-default.light .navbar-nav > li .bg-icon i {
  color: rgba(255, 255, 255, .7) !important;
}
#header .navbar-default.light .navbar-nav > li .rotated-title {
  color: rgba(255, 255, 255, .82) !important;
}
#header .navbar-default.light .navbar-nav > li:hover::before {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, .28) 0%, rgba(10, 14, 22, .64) 100%),
    linear-gradient(135deg, rgba(228, 0, 0, .18), rgba(12, 18, 30, .16));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
#header .navbar-default.light .navbar-nav > li:hover > a,
#header .navbar-default.light .navbar-nav > li.current > a,
#header .navbar-default.light .navbar-nav > li:has(> a.current) > a {
  color: #fff !important;
}
@media (prefers-reduced-motion: reduce) {
  #header .navbar-default.light .navbar-nav > li::before { transition: none; }
}


/* Carry the Airtel-red accent through the preserved legacy header explicitly. */
#header .header-logo.brand .brand-mark {
  background: #e40000 !important;
}
#header .header-logo.brand .brand-mark span {
  background: #ffffff !important;
}
#header .header-logo.brand .brand-name > span {
  color: #e40000 !important;
}
#header .navbar-default.light .navbar-nav > li:hover::before {
  background:
    linear-gradient(180deg, rgba(10, 14, 22, .28) 0%, rgba(10, 14, 22, .64) 100%),
    linear-gradient(135deg, rgba(228, 0, 0, .28), rgba(12, 18, 30, .16)) !important;
  box-shadow: inset 0 0 0 1px rgba(228, 0, 0, .72) !important;
}
#header .navbar-default.light .navbar-nav > li > a:hover,
#header .navbar-default.light .navbar-nav > li > a:focus {
  color: #e40000 !important;
}
#header .navbar-default.light .navbar-toggle:hover,
#header .navbar-default.light .navbar-toggle:focus {
  border-color: #e40000 !important;
}


/* Video backgrounds that preserve the legacy expandable navigation layout. */
#header .navbar-default.light .navbar-nav > li {
  position: relative;
}
#header .navbar-default.light .navbar-nav > li > .nav-panel-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  background: #15171d;
  filter: saturate(.78);
  transform: scale(1.02);
}
/* Keep the existing overlay above the video, without changing the absolute
   positioning of the original number, rotated title, or navigation link. */
#header .navbar-default.light .navbar-nav > li::before {
  z-index: 1;
}
#header .navbar-default.light .navbar-nav > li > .bg-icon,
#header .navbar-default.light .navbar-nav > li > .rotated-title,
#header .navbar-default.light .navbar-nav > li > a {
  z-index: 2;
}
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  #header .navbar-default.light .navbar-nav > li > .nav-panel-video {
    display: none;
  }
}


/* The legacy singlePageNav plugin marks the active anchor with .current.
   Keep its text styling, but never paint a persistent active-tab background. */
#header .navbar-default .navbar-nav a.current,
#header .navbar-default .navbar-nav a.current:hover,
#header .navbar-default .navbar-nav a.current:focus {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}


/* Keep the legacy navigation and manifesto section aligned with the active theme.
   These overrides intentionally come after the legacy panel treatments above. */
html[data-theme="light"] #header .navbar-default.light .navbar-nav > li::before {
  background: linear-gradient(145deg, rgba(255,253,250,.82), rgba(255,253,250,.58)) !important;
  box-shadow: none !important;
}
html[data-theme="light"] #header .navbar-default.light .navbar-nav > li:hover::before {
  background: linear-gradient(145deg, rgba(255,253,250,.68), rgba(255,253,250,.38)), linear-gradient(135deg, rgba(228,0,0,.12), transparent) !important;
  box-shadow: inset 0 0 0 1px rgba(228,0,0,.4) !important;
}
html[data-theme="light"] #header .navbar-default.light .navbar-nav > li > a,
html[data-theme="light"] #header .navbar-default.light .navbar-nav > li > .bg-icon,
html[data-theme="light"] #header .navbar-default.light .navbar-nav > li > .bg-icon i,
html[data-theme="light"] #header .navbar-default.light .navbar-nav > li > .rotated-title {
  color: #1c1d22 !important;
  text-shadow: none !important;
}
html[data-theme="light"] #header .navbar-default.light .navbar-nav > li:hover > a,
html[data-theme="light"] #header .navbar-default.light .navbar-nav > li > a:hover,
html[data-theme="light"] #header .navbar-default.light .navbar-nav > li > a:focus {
  color: #c90000 !important;
}
html[data-theme="light"] .manifesto-section {
  background: var(--bg-elevated);
  color: var(--text);
}
html[data-theme="light"] .manifesto-overlay {
  background: linear-gradient(90deg, rgba(247,245,241,.96) 0%, rgba(247,245,241,.84) 48%, rgba(247,245,241,.36) 100%), linear-gradient(0deg, rgba(247,245,241,.28), transparent);
}
html[data-theme="light"] .manifesto-image img {
  opacity: .32;
}
html[data-theme="light"] .manifesto-content > p:not(.eyebrow) {
  color: var(--muted);
}


/* Expandable copy for each numbered curtain leaf. Copy remains hidden until its leaf opens. */
#header .navbar-default .navbar-nav#navbar-full > li {
  isolation: isolate;
}
#header .navbar-default .navbar-nav#navbar-full > li .nav-leaf-copy {
  position: absolute;
  z-index: 2;
  left: clamp(82px, 8vw, 132px);
  right: clamp(20px, 3vw, 48px);
  bottom: clamp(22px, 7%, 58px);
  max-width: 390px;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 12px, 0);
  transition: opacity .42s ease, transform .42s ease, visibility 0s linear .42s;
  pointer-events: none;
}
#header .navbar-default .navbar-nav#navbar-full > li .nav-leaf-copy .nav-leaf-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: rgba(255,255,255,.76);
  font: 700 9px/1.4 "DM Sans", sans-serif;
  letter-spacing: .22em;
}
#header .navbar-default .navbar-nav#navbar-full > li .nav-leaf-copy p {
  margin: 0;
  color: #fff;
  font: 500 clamp(15px, 1.2vw, 19px)/1.55 "DM Sans", sans-serif;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
@keyframes navLeafCopyFadeIn {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
#header .navbar-default .navbar-nav#navbar-full > li:hover .nav-leaf-copy,
#header .navbar-default .navbar-nav#navbar-full > li:focus-within .nav-leaf-copy {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  animation: navLeafCopyFadeIn .42s ease both;
  transition: opacity .42s ease, transform .42s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  #header .navbar-default .navbar-nav#navbar-full > li .nav-leaf-copy {
    transition: none;
    transform: none;
  }
}
@media (max-width: 767px) {
  #header .navbar-default .navbar-nav#navbar-full > li .nav-leaf-copy {
    left: 72px;
    right: 16px;
    bottom: 22px;
    max-width: none;
  }
  #header .navbar-default .navbar-nav#navbar-full > li .nav-leaf-copy p {
    font-size: 14px;
  }
}


/* Keep expanded-leaf editorial content out of the compact sticky navbar state. */
#header.header-top-fixed .navbar-nav#navbar-full > li .nav-leaf-copy,
#header.header-all-time-top-fixed .navbar-nav#navbar-full > li .nav-leaf-copy,
#header.header-top-fixed .navbar-nav#navbar-full > li.service .nav-leaf-services,
#header.header-all-time-top-fixed .navbar-nav#navbar-full > li.service .nav-leaf-services {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Material 3-inspired service tiles inside the expanded Services leaf. */
#header .navbar-default .navbar-nav#navbar-full > li.service .nav-leaf-services {
  position: absolute;
  z-index: 3;
  top: 47%;
  left: clamp(82px, 8vw, 132px);
  right: clamp(20px, 3vw, 48px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, calc(-50% + 12px), 0);
  transition: opacity .38s ease, transform .38s cubic-bezier(.2,.75,.25,1), visibility 0s linear .38s;
  pointer-events: none;
}
#header .navbar-default .navbar-nav#navbar-full > li.service:hover .nav-leaf-services,
#header .navbar-default .navbar-nav#navbar-full > li.service:focus-within .nav-leaf-services {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, -50%, 0);
  transition: opacity .38s ease, transform .38s cubic-bezier(.2,.75,.25,1), visibility 0s;
}
#header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  min-height: 86px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(38,41,49,.94), rgba(28,30,37,.88));
  color: #f7f5f2;
  text-align: left;
  font: 650 clamp(13px, .98vw, 15px)/1.35 "DM Sans", sans-serif;
  letter-spacing: -.02em;
  text-shadow: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 2px 5px rgba(0,0,0,.12), 0 10px 24px rgba(0,0,0,.12);
  transition: border-color .24s ease, background .24s ease, transform .24s ease, box-shadow .24s ease;
}
#header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at 0% 0%, rgba(228,0,0,.22), transparent 68%);
  transition: opacity .24s ease;
}
#header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.075);
  color: #ff7777;
  transition: background .24s ease, border-color .24s ease, color .24s ease, transform .24s ease;
}
#header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-label {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
}
#header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-label small {
  display: block;  margin-top: 4px;
  color: rgba(247,245,242,.64);
  font: 500 .88em/1.35 "DM Sans", sans-serif;
  letter-spacing: 0;
}
#header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-arrow {
  position: relative;
  z-index: 1;
  margin-left: auto;
  align-self: center;
  color: rgba(247,245,242,.58);
  font: 500 17px/1 "DM Sans", sans-serif;
  opacity: .7;
  transform: translate(-2px, 2px);
  transition: opacity .24s ease, transform .24s ease, color .24s ease;
}
#header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category:hover,
#header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category:focus-visible {
  border-color: rgba(255,119,119,.55);
  background: linear-gradient(145deg, rgba(52,43,48,.98), rgba(34,33,41,.96));
  box-shadow: 0 4px 8px rgba(0,0,0,.14), 0 16px 32px rgba(0,0,0,.2);
  transform: translateY(-3px);
}
#header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category:hover::before,
#header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category:focus-visible::before { opacity: 1; }
#header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category:hover .nav-service-icon,
#header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category:focus-visible .nav-service-icon {
  border-color: #e40000;
  background: #e40000;
  color: #fff;
  transform: scale(1.04);
}
#header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category:hover .nav-service-arrow,
#header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category:focus-visible .nav-service-arrow {
  opacity: 1;
  transform: translate(0,0);
  color: #fff;
}

/* Subtle staggered entrance keeps the six tiles feeling responsive, not flashy. */
@keyframes navServiceTileEnter {
  0% { opacity: 0; transform: translate3d(0, 12px, 0) scale(.985); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes navServiceIconPop {
  0% { opacity: .35; transform: translate3d(0, 4px, 0) scale(.88); }
  70% { opacity: 1; transform: translate3d(0, -1px, 0) scale(1.06); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
#header .navbar-default .navbar-nav#navbar-full > li.service:hover .nav-service-category,
#header .navbar-default .navbar-nav#navbar-full > li.service:focus-within .nav-service-category {
  animation: navServiceTileEnter .38s cubic-bezier(.2,.75,.25,1) both;
}
#header .navbar-default .navbar-nav#navbar-full > li.service:hover .nav-service-category:nth-child(2),
#header .navbar-default .navbar-nav#navbar-full > li.service:focus-within .nav-service-category:nth-child(2) { animation-delay: .045s; }
#header .navbar-default .navbar-nav#navbar-full > li.service:hover .nav-service-category:nth-child(3),
#header .navbar-default .navbar-nav#navbar-full > li.service:focus-within .nav-service-category:nth-child(3) { animation-delay: .09s; }
#header .navbar-default .navbar-nav#navbar-full > li.service:hover .nav-service-category:nth-child(4),
#header .navbar-default .navbar-nav#navbar-full > li.service:focus-within .nav-service-category:nth-child(4) { animation-delay: .135s; }
#header .navbar-default .navbar-nav#navbar-full > li.service:hover .nav-service-category:nth-child(5),
#header .navbar-default .navbar-nav#navbar-full > li.service:focus-within .nav-service-category:nth-child(5) { animation-delay: .18s; }
#header .navbar-default .navbar-nav#navbar-full > li.service:hover .nav-service-category:nth-child(6),
#header .navbar-default .navbar-nav#navbar-full > li.service:focus-within .nav-service-category:nth-child(6) { animation-delay: .225s; }
#header .navbar-default .navbar-nav#navbar-full > li.service:hover .nav-service-icon,
#header .navbar-default .navbar-nav#navbar-full > li.service:focus-within .nav-service-icon {
  animation: navServiceIconPop .42s cubic-bezier(.2,.75,.25,1) both;
}
#header .navbar-default .navbar-nav#navbar-full > li.service:hover .nav-service-category:nth-child(2) .nav-service-icon,
#header .navbar-default .navbar-nav#navbar-full > li.service:focus-within .nav-service-category:nth-child(2) .nav-service-icon { animation-delay: .045s; }
#header .navbar-default .navbar-nav#navbar-full > li.service:hover .nav-service-category:nth-child(3) .nav-service-icon,
#header .navbar-default .navbar-nav#navbar-full > li.service:focus-within .nav-service-category:nth-child(3) .nav-service-icon { animation-delay: .09s; }
#header .navbar-default .navbar-nav#navbar-full > li.service:hover .nav-service-category:nth-child(4) .nav-service-icon,
#header .navbar-default .navbar-nav#navbar-full > li.service:focus-within .nav-service-category:nth-child(4) .nav-service-icon { animation-delay: .135s; }
#header .navbar-default .navbar-nav#navbar-full > li.service:hover .nav-service-category:nth-child(5) .nav-service-icon,
#header .navbar-default .navbar-nav#navbar-full > li.service:focus-within .nav-service-category:nth-child(5) .nav-service-icon { animation-delay: .18s; }
#header .navbar-default .navbar-nav#navbar-full > li.service:hover .nav-service-category:nth-child(6) .nav-service-icon,
#header .navbar-default .navbar-nav#navbar-full > li.service:focus-within .nav-service-category:nth-child(6) .nav-service-icon { animation-delay: .225s; }

/* Light theme uses elevated neutral surfaces and dark type; keep the brand red as the accent. */
html[data-theme="light"] #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category {
  border-color: rgba(38, 42, 51, .12);
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(246,246,249,.96));
  color: #20232b;
  box-shadow: 0 1px 2px rgba(24,28,38,.05), 0 8px 22px rgba(24,28,38,.09);
  text-shadow: none;
}
html[data-theme="light"] #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category::before {
  background: radial-gradient(circle at 0% 0%, rgba(228,0,0,.09), transparent 68%);
}
html[data-theme="light"] #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-icon {
  border-color: rgba(228,0,0,.14);
  background: rgba(228,0,0,.07);
  color: #c90000;
}
html[data-theme="light"] #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-label small {
  color: #666b76;
}
html[data-theme="light"] #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-arrow {
  color: #777c87;
}
html[data-theme="light"] #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category:hover,
html[data-theme="light"] #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category:focus-visible {
  border-color: rgba(201,0,0,.34);
  background: linear-gradient(145deg, #fff, #fff7f7);
  box-shadow: 0 3px 7px rgba(24,28,38,.06), 0 14px 28px rgba(24,28,38,.12);
}
html[data-theme="light"] #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category:hover .nav-service-icon,
html[data-theme="light"] #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category:focus-visible .nav-service-icon {
  border-color: #c90000;
  background: #c90000;
  color: #fff;
}
html[data-theme="light"] #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category:hover .nav-service-arrow,
html[data-theme="light"] #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category:focus-visible .nav-service-arrow {
  color: #c90000;
}
@media (max-width: 767px) {
  #header .navbar-default .navbar-nav#navbar-full > li.service .nav-leaf-services {
    left: 72px;
    right: 14px;
    gap: 8px;
    top: 45%;
  }
  #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category {
    gap: 8px;
    min-height: 68px;
    padding: 10px 9px;
    border-radius: 17px;
    font-size: 11px;
  }
  #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }
  #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-icon svg {
    width: 18px;
    height: 18px;
  }
  #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-label small { margin-top: 3px; }
  #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-arrow { display: none; }
}
@media (max-width: 380px) {
  #header .navbar-default .navbar-nav#navbar-full > li.service .nav-leaf-services {
    left: 65px;
    right: 9px;
    gap: 6px;
  }
  #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category {
    gap: 5px;
    padding: 8px 6px;
    font-size: 10px;
    min-height: 64px;
  }
  #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #header .navbar-default .navbar-nav#navbar-full > li.service .nav-leaf-services,
  #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category,
  #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-icon,
  #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-arrow {
    transition: none;
    transform: none;
  }
  #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-category,
  #header .navbar-default .navbar-nav#navbar-full > li.service .nav-service-icon {
    animation: none !important;
  }
}


/* Scroll-story crossfades: sections gently enter and leave as the page scrolls. */
@media (prefers-reduced-motion: no-preference) {
  .modern-content main > section.scroll-story-section {
    will-change: opacity;
  }
}


/* Split the homepage hero into two equal-width panels, with copy centered vertically on the left. */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
}
.hero-left,
.hero-right {
  min-width: 0;
  width: 100%;
}
.hero-left {
  align-self: center;
  padding: clamp(28px, 5vw, 84px);
  text-align: left;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
}
.modern-content .hero-left h1 {
  color: var(--text);
  transition: color .25s ease;
}
/* Reserve a stable three-line area for the rotating phrase so longer slides
   don't change the heading's height or shift the hero copy vertically. */
.hero-typed {
  display: block;
  height: 3.12em;
  color: var(--accent);
  font-weight: 400;
}
.hero-typed.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: .82em;
  margin-left: .12em;
  vertical-align: -.04em;
  background: currentColor;
  animation: hero-caret-blink .8s steps(2, start) infinite;
}
@keyframes hero-caret-blink {
  to { visibility: hidden; }
}
.hero-eyebrow span {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.modern-content .hero-left h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 5.7vw, 82px);
  line-height: 1.04;
  font-weight: 750;
  letter-spacing: -.075em;
  text-wrap: balance;
}
.hero-left h1 span {
  color: var(--accent);
}
.hero-right {
  align-self: stretch;
}
@media (max-width: 767px) {
  .hero-split {
    grid-template-columns: minmax(0, 1fr);
    min-height: 100%;
  }
  .hero-left {
    padding: 36px 24px;
  }
  .modern-content .hero-left h1 {
    font-size: clamp(40px, 10vw, 58px);
  }
  .hero-right {
    display: none;
  }
}

/* Match the homepage hero to the full-height navigation leaves on desktop. */
@media (min-width: 768px) {
  .modern-content {
    min-height: 101vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding-top: 0;
  }

  .modern-content > main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
  }

  .modern-content main > section.hero#home {
    flex: 0 0 101vh;
    height: 101vh;
    min-height: 101vh;
    padding-block: 0;
    margin-top: 0;
    margin-bottom: 0;
  }

  .modern-content main > section.hero#home .hero-split {
    height: 100%;
    min-height: 100%;
  }

  .modern-content > .site-footer {
    flex: 0 0 auto;
  }
}


/* Homepage services section — first content section after the hero. */
.modern-content main > .services-section {
  position: relative;
  isolation: isolate;
  padding-block: clamp(88px, 10vw, 140px);
  background:
    radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 38%),
    var(--bg-elevated);
}
.services-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .24;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 78%, transparent);
}
.services-section .section-heading-row {
  align-items: flex-end;
  margin-bottom: clamp(34px, 5vw, 58px);
}
.services-section .section-heading h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(40px, 5.1vw, 68px);
  line-height: 1.04;
  letter-spacing: -.075em;
  text-wrap: balance;
}
.services-section .hero-eyebrow {
  margin-bottom: 24px;
}
.services-section .section-intro {
  max-width: 370px;
  font-size: 15px;
}
.services-section .service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.services-section .service-card {
  min-height: 310px;
  padding: clamp(22px, 2.5vw, 30px);
  background: color-mix(in srgb, var(--bg) 52%, var(--bg-elevated));
}
.services-section .service-card:hover {
  box-shadow: 0 18px 45px color-mix(in srgb, var(--accent) 7%, transparent);
}
.services-section .service-card-top {
  margin-bottom: 34px;
}
.services-section .service-symbol {
  width: 48px;
  height: 48px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 16px;
  font-size: 24px;
}
.services-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.services-footnote > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}
.services-footnote .button {
  flex-shrink: 0;
}
@media (max-width: 1080px) {
  .services-section .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services-section .service-card {
    min-height: 285px;
  }
}
@media (max-width: 800px) {
  .services-section .section-heading-row {
    margin-bottom: 32px;
  }
  .services-section .section-intro {
    max-width: 560px;
  }
  .services-footnote {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 520px) {
  .services-section .service-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .services-section .service-card {
    min-height: 0;
    padding: 23px;
  }
  .services-section .service-card-top {
    margin-bottom: 25px;
  }
  .services-footnote .button {
    width: 100%;
    gap: 10px;
    padding-inline: 16px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .services-section .service-card,
  .services-section .card-link span {
    transition: none;
  }
}


/* Storytelling landing-page sections */
.modern-content .story-intro,
.modern-content .story-feature,
.modern-content .story-process,
.modern-content .story-work,
.modern-content .story-cta { overflow: hidden; }
/* Sticky storytelling needs a visible overflow ancestor to remain pinned. */
.modern-content .story-feature { overflow: visible; }
.modern-content .story-intro { padding-top: clamp(84px, 12vw, 164px); padding-bottom: clamp(72px, 10vw, 130px); }
.story-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.story-index { display: flex; align-items: center; gap: 13px; align-self: start; padding-top: 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.story-index > span:first-child { color: var(--accent); font-size: 14px; }
.story-index-line { width: 30px; height: 1px; background: var(--line); }
.story-intro-copy { max-width: 920px; }
.story-intro-copy h2, .story-feature-copy h2, .story-process-heading h2, .story-work-heading h2 { margin: 18px 0 25px; font-size: clamp(38px, 6vw, 76px); line-height: .99; letter-spacing: -.075em; font-weight: 700; }
.story-intro-copy h2 em { color: var(--muted); font-weight: 500; }
.story-lead { max-width: 730px; color: var(--muted); font-size: clamp(17px, 1.8vw, 22px); line-height: 1.8; }
.story-text-link { display: inline-flex; gap: 22px; align-items: center; margin-top: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.story-text-link span { color: var(--accent); transition: transform .2s ease; }
.story-text-link:hover span { transform: translate(3px, 3px); }
.modern-content .story-feature { padding-top: 40px; padding-bottom: clamp(90px, 12vw, 150px); }
.story-feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); gap: clamp(38px, 8vw, 120px); align-items: center; }
.story-image { position: sticky; top: 112px; align-self: start; min-height: 560px; border-radius: 5px 120px 5px 5px; overflow: hidden; background: var(--surface); }
.story-image::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.68)); pointer-events: none; }
.story-image img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; filter: saturate(.76); }
.story-image-note { position: absolute; z-index: 1; left: 26px; right: 26px; bottom: 25px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #fff; font-size: 11px; letter-spacing: .02em; }
.story-note-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.story-image-number { position: absolute; z-index: 1; top: 22px; left: 24px; color: #fff; font-size: 11px; letter-spacing: .16em; }
.story-feature-copy h2 { font-size: clamp(38px, 4.8vw, 62px); }
.story-feature-copy > p:not(.hero-eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.9; }
.story-principle { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--line); }
.story-principle:first-of-type { margin-top: 28px; }
.story-principle > span { color: var(--accent); font-size: 11px; letter-spacing: .1em; padding-top: 3px; }
.story-principle strong, .story-principle small { display: block; }
.story-principle strong { font-size: 14px; font-weight: 700; }
.story-principle small { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.modern-content .story-process { padding-top: clamp(78px, 10vw, 130px); padding-bottom: clamp(80px, 10vw, 130px); background: var(--bg-elevated); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-process-heading, .story-work-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 58px; }
.story-process-heading h2, .story-work-heading h2 { margin-bottom: 0; }
.story-process-heading > p, .story-work-heading > p { max-width: 380px; margin: 0 0 5px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.story-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-step { position: relative; min-height: 310px; padding: 27px 30px 30px 0; }
.story-step + .story-step { padding-left: 30px; border-left: 1px solid var(--line); }
.story-step-number { color: var(--muted); font-size: 11px; letter-spacing: .13em; }
.story-step-mark { display: grid; place-items: center; width: 46px; height: 46px; margin: 35px 0 25px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 50%; color: var(--accent); font-size: 21px; }
.story-step h3 { margin: 0 0 12px; font-size: 25px; letter-spacing: -.04em; }
.story-step p { max-width: 310px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.story-step-caption { display: block; margin-top: 26px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.modern-content .story-work { padding-top: clamp(84px, 11vw, 140px); padding-bottom: clamp(75px, 9vw, 110px); }
.story-work-heading { margin-bottom: 48px; }
.story-work-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.story-work-card { position: relative; min-height: 390px; overflow: hidden; background: var(--surface); }
.story-work-card-large { min-height: 510px; }
.story-work-card::after { content: ""; position: absolute; inset: 25% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.story-work-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.story-work-card:hover img { transform: scale(1.045); }
.story-work-overlay { position: absolute; z-index: 1; left: clamp(22px, 3vw, 38px); right: 24px; bottom: 28px; color: #fff; }
.story-work-overlay > span { font-size: 9px; font-weight: 700; letter-spacing: .16em; color: rgba(255,255,255,.72); }
.story-work-overlay h3 { max-width: 500px; margin: 12px 0 8px; font-size: clamp(25px, 3.4vw, 43px); line-height: 1.05; letter-spacing: -.055em; }
.story-work-overlay p { max-width: 400px; margin: 0; color: rgba(255,255,255,.76); font-size: 12px; line-height: 1.7; }
.story-work-note { display: flex; gap: 12px; align-items: center; margin: 24px 0 0; color: var(--muted); font-size: 12px; }
.story-work-note span { color: var(--accent); }
.modern-content .story-cta { position: relative; top: 60px; box-shadow: 0 -60px 0 0 var(--bg); z-index: 1; padding-top: clamp(75px, 10vw, 130px); padding-bottom: clamp(85px, 12vw, 155px); border-top: 1px solid var(--line); border-radius: 0 0 36px 36px; background: var(--bg); background-clip: padding-box; }.story-cta-inner { position: relative; isolation: isolate; text-align: center; }
.story-cta-inner > :not(.story-cta-orbit) { position: relative; z-index: 1; }
.story-cta-inner h2 { margin: 22px 0; font-size: clamp(42px, 7vw, 88px); line-height: .98; letter-spacing: -.08em; }
.story-cta-inner h2 span { color: var(--muted); }
.story-cta-inner > p:not(.hero-eyebrow) { max-width: 560px; margin: 0 auto 30px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.story-cta-button { margin: 0 auto; }
.story-cta-footnote { display: block; margin-top: 28px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.story-cta-orbit { position: absolute; z-index: -1; left: 50%; top: 46%; width: min(70vw, 650px); aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.story-cta-orbit-two { width: min(52vw, 470px); border-color: color-mix(in srgb, var(--accent) 18%, transparent); }
@media (max-width: 800px) {
  .story-intro-grid { grid-template-columns: 1fr; gap: 22px; }
  .story-index { padding-top: 0; }
  .story-image { position: relative; top: auto; }
  .story-feature-grid { grid-template-columns: 1fr; gap: 38px; }
  .story-image, .story-image img { min-height: 400px; }
  .story-feature-copy { max-width: 680px; }
  .story-process-heading, .story-work-heading { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 34px; }
  .story-process-heading > p, .story-work-heading > p { max-width: 600px; }
  .story-steps { grid-template-columns: 1fr; }
  .story-step, .story-step + .story-step { min-height: 0; padding: 25px 0; border-left: 0; }
  .story-step + .story-step { border-top: 1px solid var(--line); }
  .story-step-mark { margin: 22px 0 17px; }
  .story-step-caption { margin-top: 18px; }
  .story-work-grid { grid-template-columns: 1fr; }
  .story-work-card, .story-work-card-large { min-height: 420px; }
}
@media (max-width: 520px) {
  .story-intro-copy h2, .story-feature-copy h2, .story-process-heading h2, .story-work-heading h2 { font-size: clamp(36px, 10vw, 48px); }
  .story-image, .story-image img { min-height: 340px; }
  .story-work-card, .story-work-card-large { min-height: 350px; }
  .story-work-note { align-items: flex-start; line-height: 1.7; }
  .story-cta-inner h2 { font-size: clamp(40px, 11vw, 58px); }
}
@media (prefers-reduced-motion: reduce) {
  .story-text-link span, .story-work-card img { transition: none; }
}

/* Seamless brand ticker immediately after the hero, inspired by Vogue's marquee. */
.hero-ticker {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 18px 0;
}
.hero-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: hero-ticker-marquee 32s linear infinite;
  will-change: transform;
}
.hero-ticker-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
  padding-right: clamp(22px, 3vw, 42px);
  white-space: nowrap;
}
.hero-ticker-group > span {
  color: var(--text);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.hero-ticker-group > b {
  color: var(--accent);
  font-size: 17px;
  font-weight: 500;
}
.hero-ticker:hover .hero-ticker-track { animation-play-state: paused; }
@keyframes hero-ticker-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ticker-track { animation: none; width: 100%; justify-content: center; }
  .hero-ticker-group { display: none; flex-wrap: wrap; justify-content: center; white-space: normal; padding: 0 18px; }
  .hero-ticker-group:first-child { display: flex; }
}



/* Keep the hero's right panel clean; move its animated orb into THE WHY section. */
@media (min-width: 768px) {
  .modern-content main > section.hero#home .hero-right {
    display: block;
  }

  .modern-content .story-intro {
    position: relative;
    isolation: isolate;
  }

  .modern-content .story-intro::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -22%;
    right: -11%;
    width: min(38vw, 520px);
    aspect-ratio: 1;
    border-radius: 44% 56% 61% 39% / 42% 39% 61% 58%;
    background:
      radial-gradient(circle at 34% 28%, rgba(255,255,255,.56), transparent 9%),
      radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 82%, white), transparent 34%),
      radial-gradient(circle at 68% 70%, color-mix(in srgb, var(--accent) 56%, #5b4bff), transparent 46%),
      radial-gradient(circle at 48% 48%, color-mix(in srgb, var(--accent) 28%, var(--bg-elevated)), var(--bg-elevated) 72%);
    box-shadow: inset -24px -28px 70px rgba(0,0,0,.08), 0 35px 100px color-mix(in srgb, var(--accent) 6%, transparent);
    filter: saturate(.72);
    opacity: .30;
    transform: translate3d(0,0,0) rotate(-12deg) scale(.94);
    transform-origin: center;
    will-change: transform, opacity;
    animation: home-hero-orbit 7s ease-in-out infinite alternate;
    pointer-events: none;
  }
}

@keyframes home-hero-orbit {
  0% { transform: translate3d(0, 0, 0) rotate(-12deg) scale(.94); opacity: .20; }
  50% { transform: translate3d(-20px, 18px, 0) rotate(-5deg) scale(1.02); opacity: .34; }
  100% { transform: translate3d(14px, -16px, 0) rotate(7deg) scale(.98); opacity: .27; }
}

@media (max-width: 767px) {
  .modern-content .story-intro::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .modern-content .story-intro::before { animation: none; }
}

/* Give the legacy navbar a translucent, blurred surface once it becomes sticky. */
#header.header-top-fixed,
#header.header-all-time-top-fixed {
  background: var(--nav-bg) !important;
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}
#header.header-top-fixed .header-body,
#header.header-all-time-top-fixed .header-body,
#header.header-top-fixed .header-body-fixed,
#header.header-all-time-top-fixed .header-body-fixed {
  background: transparent !important;
}



/* Video-backed navigation leaves need consistently light foregrounds in both themes. */
#header .navbar-default .navbar-nav#navbar-full > li > a,
#header .navbar-default .navbar-nav#navbar-full > li > a:hover,
#header .navbar-default .navbar-nav#navbar-full > li > a:focus,
#header .navbar-default .navbar-nav#navbar-full > li > a.current,
#header .navbar-default .navbar-nav#navbar-full > li > .bg-icon,
#header .navbar-default .navbar-nav#navbar-full > li > .bg-icon i,
#header .navbar-default .navbar-nav#navbar-full > li > .rotated-title,
#header .navbar-default .navbar-nav#navbar-full > li:hover > a,
#header .navbar-default .navbar-nav#navbar-full > li:focus-within > a,
html[data-theme="light"] #header .navbar-default.light .navbar-nav#navbar-full > li > a,
html[data-theme="light"] #header .navbar-default.light .navbar-nav#navbar-full > li > a:hover,
html[data-theme="light"] #header .navbar-default.light .navbar-nav#navbar-full > li > a:focus,
html[data-theme="light"] #header .navbar-default.light .navbar-nav#navbar-full > li > a.current,
html[data-theme="light"] #header .navbar-default.light .navbar-nav#navbar-full > li > .bg-icon,
html[data-theme="light"] #header .navbar-default.light .navbar-nav#navbar-full > li > .bg-icon i,
html[data-theme="light"] #header .navbar-default.light .navbar-nav#navbar-full > li > .rotated-title,
html[data-theme="light"] #header .navbar-default.light .navbar-nav#navbar-full > li:hover > a,
html[data-theme="light"] #header .navbar-default.light .navbar-nav#navbar-full > li:focus-within > a {
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55) !important;
}

/* Keep the revealed editorial copy readable over the moving leaf videos too. */
#header .navbar-default .navbar-nav#navbar-full > li .nav-leaf-copy,
#header .navbar-default .navbar-nav#navbar-full > li .nav-leaf-copy .nav-leaf-eyebrow,
#header .navbar-default .navbar-nav#navbar-full > li .nav-leaf-copy p {
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}


/* Compact outline icons in the video-backed navigation leaves. */
#header .navbar-default .navbar-nav#navbar-full > li > .bg-icon {
  display: block;
  line-height: 1;
}
#header .navbar-default .navbar-nav#navbar-full > li > .bg-icon .nav-leaf-icon {
  display: block;
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  color: #fff;
  stroke: currentColor;
  stroke-width: 1.7;
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, .45));
}


/* Keep the larger outline icons right-aligned in the compact sticky navigation leaves. */
#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li > .bg-icon,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li > .bg-icon {
  top: 50% !important;
  left: auto !important;
  right: 30px !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
}
#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li > .bg-icon .nav-leaf-icon,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li > .bg-icon .nav-leaf-icon {
  margin: 0;
}

/* Make compact sticky navigation labels larger and clearer over the moving video leaves. */
#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li > .rotated-title,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li > .rotated-title,
#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li > a,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li > a {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .12em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .78), 0 0 2px rgba(0, 0, 0, .55) !important;
}

/* Smoothly emphasize the label while its sticky navigation leaf is open. */
#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li > .rotated-title,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li > .rotated-title {
  transition: font-size .32s cubic-bezier(.2, .7, .2, 1);
}

#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li:hover > .rotated-title,
#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li:focus-within > .rotated-title,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li:hover > .rotated-title,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li:focus-within > .rotated-title {
  font-size: 16px !important;
}


/* Sticky leaf active-state emphasis: keep the change obvious and animate both visible labels. */
#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li > .rotated-title,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li > .rotated-title,
#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li > a,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li > a {
  display: inline-block;
  font-size: 12px !important;
  transform-origin: center center;
  transition: font-size .35s cubic-bezier(.2, .7, .2, 1), text-shadow .35s ease, letter-spacing .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1) !important;
}
#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li:hover > .rotated-title,
#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li:focus-within > .rotated-title,
#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li:hover > a,
#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li:focus-within > a,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li:hover > .rotated-title,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li:focus-within > .rotated-title,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li:hover > a,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li:focus-within > a {
  font-size: 16px !important;
  letter-spacing: .15em !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .95), 0 0 5px rgba(255, 255, 255, .28) !important;
  transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
  #header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li > .rotated-title,
  #header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li > .rotated-title,
  #header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li > a,
  #header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li > a { transition: none !important; }
}

/* Prevent duplicate sticky-leaf text: the rotated title is the single visible label.
   Keep the anchor in place as the clickable navigation target, but suppress its text. */
#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li > a,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li > a {
  font-size: 0 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  transform: none !important;
}

/* Definitive sticky-leaf label fix: use the actual link as the only visible label.
   The decorative rotated title is hidden while sticky, avoiding two copies of each word. */
#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li > .rotated-title,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li > .rotated-title {
  display: none !important;
}

#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li > a,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li > a {
  display: inline-block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .78), 0 0 2px rgba(0, 0, 0, .55) !important;
  transform-origin: center center;
  transition: font-size .35s cubic-bezier(.2, .7, .2, 1),
              text-shadow .35s ease,
              letter-spacing .35s ease,
              transform .35s cubic-bezier(.2, .7, .2, 1) !important;
}

#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li:hover > a,
#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li:focus-within > a,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li:hover > a,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li:focus-within > a {
  font-size: 16px !important;
  letter-spacing: .15em !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .95), 0 0 5px rgba(255, 255, 255, .28) !important;
  transform: scale(1.04);
}

/* Play one short icon animation whenever a sticky navigation leaf is opened. */
@keyframes sticky-leaf-icon-open {
  0%   { transform: translateY(0) scale(1) rotate(0deg); }
  35%  { transform: translateY(-5px) scale(1.12) rotate(-8deg); }
  70%  { transform: translateY(1px) scale(.96) rotate(4deg); }
  100% { transform: translateY(0) scale(1) rotate(0deg); }
}

#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li > .bg-icon .nav-leaf-icon,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li > .bg-icon .nav-leaf-icon {
  transform-origin: center;
}

#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li:hover > .bg-icon .nav-leaf-icon,
#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li:focus-within > .bg-icon .nav-leaf-icon,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li:hover > .bg-icon .nav-leaf-icon,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li:focus-within > .bg-icon .nav-leaf-icon {
  animation: sticky-leaf-icon-open .72s cubic-bezier(.2, .7, .2, 1) 1 both;
}

@media (prefers-reduced-motion: reduce) {
  #header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li:hover > .bg-icon .nav-leaf-icon,
  #header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li:focus-within > .bg-icon .nav-leaf-icon,
  #header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li:hover > .bg-icon .nav-leaf-icon,
  #header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li:focus-within > .bg-icon .nav-leaf-icon {
    animation: none !important;
  }
}

/* When a sticky leaf opens, let the label's letter spacing tighten smoothly. */
@keyframes sticky-leaf-label-open {
  0% {
    letter-spacing: .30em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .95), 0 0 7px rgba(255, 255, 255, .32);
  }
  65% {
    letter-spacing: .11em;
  }
  100% {
    letter-spacing: .15em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .95), 0 0 5px rgba(255, 255, 255, .28);
  }
}

#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li:hover > a,
#header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li:focus-within > a,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li:hover > a,
#header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li:focus-within > a {
  animation: sticky-leaf-label-open .55s cubic-bezier(.2, .7, .2, 1) 1 both;
}

@media (prefers-reduced-motion: reduce) {
  #header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li:hover > a,
  #header.header-top-fixed .navbar-default .navbar-nav#navbar-full > li:focus-within > a,
  #header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li:hover > a,
  #header.header-all-time-top-fixed .navbar-default .navbar-nav#navbar-full > li:focus-within > a {
    animation: none !important;
  }
}

/* Keep THE WHY contrast adjustments limited to dark theme. */
html[data-theme="dark"] .modern-content .story-intro .story-intro-copy h2 {
  color: #fff;
}
html[data-theme="dark"] .modern-content .story-intro .story-intro-copy h2 em {
  color: var(--accent);
  font-style: normal;
  text-shadow: 0 2px 18px rgba(228,0,0,.22);
}
html[data-theme="dark"] .modern-content .story-intro .story-lead,
html[data-theme="dark"] .modern-content .story-intro .hero-eyebrow,
html[data-theme="dark"] .modern-content .story-intro .story-index {
  color: rgba(255,255,255,.74);
}
html[data-theme="dark"] .modern-content .story-intro .story-index > span:first-child,
html[data-theme="dark"] .modern-content .story-intro .story-text-link span,
html[data-theme="dark"] .modern-content .story-intro .text-gradient,
html[data-theme="dark"] .modern-content .story-intro .hero-eyebrow > span,
html[data-theme="light"] .modern-content .story-intro .story-intro-copy h2 em,
html[data-theme="light"] .modern-content .story-intro .story-index > span:first-child,
html[data-theme="light"] .modern-content .story-intro .story-text-link span,
html[data-theme="light"] .modern-content .story-intro .text-gradient,
html[data-theme="light"] .modern-content .story-intro .hero-eyebrow > span {
  color: var(--accent);
}
html[data-theme="light"] .modern-content .story-intro .story-intro-copy h2 {
  color: var(--text);
}
html[data-theme="light"] .modern-content .story-intro .story-intro-copy h2 em {
  font-style: normal;
  text-shadow: none;
}
html[data-theme="light"] .modern-content .story-intro .story-lead,
html[data-theme="light"] .modern-content .story-intro .hero-eyebrow,
html[data-theme="light"] .modern-content .story-intro .story-index {
  color: var(--muted);
}

/* Theme-aware translucent background for the sticky navbar only. */
html[data-theme="dark"] #header.header-top-fixed .header-body,
html[data-theme="dark"] #header.header-all-time-top-fixed .header-body {
  background-color: rgba(0, 0, 0, .50) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
html[data-theme="light"] #header.header-top-fixed .header-body,
html[data-theme="light"] #header.header-all-time-top-fixed .header-body {
  background-color: rgba(255, 255, 255, .75) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
html[data-theme="dark"] #header.header-top-fixed .header-body .navbar-default,
html[data-theme="dark"] #header.header-all-time-top-fixed .header-body .navbar-default,
html[data-theme="light"] #header.header-top-fixed .header-body .navbar-default,
html[data-theme="light"] #header.header-all-time-top-fixed .header-body .navbar-default {
  background: transparent !important;
}

/* Align the Understand Before You Build copy with its image and respect theme colors. */
.modern-content .story-feature-grid {
  align-items: start;
}
.modern-content .story-feature-copy {
  align-self: start;
  min-width: 0;
  padding-top: 8px;
}
.modern-content .story-feature-copy .hero-eyebrow {
  color: var(--muted);
}
.modern-content .story-feature-copy h2 {
  color: var(--text);
  text-wrap: balance;
}
.modern-content .story-feature-copy h2 .text-gradient {
  color: var(--accent);
}
.modern-content .story-feature-copy > p:not(.hero-eyebrow) {
  color: var(--muted);
}
.modern-content .story-feature-copy .story-principle strong {
  color: var(--text);
}
.modern-content .story-feature-copy .story-principle small {
  color: var(--muted);
}


/* Consistent editorial chapter markers for the storytelling landing page. */
.modern-content .story-index {
  display: flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.modern-content .story-index > span:first-child {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.modern-content .story-index-line {
  flex: 0 0 30px;
  width: 30px;
  height: 1px;
  background: var(--line);
}
.modern-content .story-cta-inner > .story-index {
  justify-content: center;
  margin-right: auto;
  margin-left: auto;
}
@media (max-width: 520px) {
  .modern-content .story-index {
    gap: 9px;
    font-size: 9px;
    letter-spacing: .12em;
  }
  .modern-content .story-index-line {
    flex-basis: 22px;
    width: 22px;
  }
}


/* Consistent heading hierarchy: bold main text, regular-weight highlighted phrase. */
.modern-content .hero h1,
.modern-content .story-intro-copy h2,
.modern-content .story-feature-copy h2,
.modern-content .story-process-heading h2,
.modern-content .story-work-heading h2,
.modern-content .story-cta-inner h2,
.modern-content .services-section .section-heading h2,
.modern-content .service-card h3 {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  letter-spacing: -.075em;
  text-wrap: balance;
}
.modern-content .hero .hero-typed,
.modern-content .story-intro-copy h2 em,
.modern-content .story-intro-copy h2 .text-gradient,
.modern-content .story-feature-copy h2 em,
.modern-content .story-feature-copy h2 .text-gradient,
.modern-content .story-process-heading h2 em,
.modern-content .story-process-heading h2 .text-gradient,
.modern-content .story-work-heading h2 em,
.modern-content .story-work-heading h2 .text-gradient,
.modern-content .story-cta-inner h2 em,
.modern-content .story-cta-inner h2 .text-gradient,
.modern-content .services-section .section-heading h2 em,
.modern-content .services-section .section-heading h2 .text-gradient {
  font-weight: 400;
}
.modern-content .story-intro-copy h2,
.modern-content .story-feature-copy h2,
.modern-content .story-process-heading h2,
.modern-content .story-work-heading h2 {
  font-size: clamp(40px, 5.1vw, 68px);
  line-height: 1.04;
}
.modern-content .story-intro-copy h2 em {
  font-style: normal;
  font-weight: 400;
}
.modern-content .story-cta-inner h2 {
  line-height: 1.04;
}
.modern-content .story-intro-copy,
.modern-content .story-feature-copy,
.modern-content .story-process-heading,
.modern-content .story-work-heading,
.modern-content .story-cta-inner {
  min-width: 0;
  overflow-wrap: anywhere;
}
.modern-content .story-lead,
.modern-content .story-feature-copy > p:not(.hero-eyebrow),
.modern-content .story-process-heading > p,
.modern-content .story-work-heading > p,
.modern-content .story-cta-inner > p:not(.hero-eyebrow) {
  overflow-wrap: break-word;
}
@media (max-width: 520px) {
  .modern-content .story-intro-copy h2,
  .modern-content .story-feature-copy h2,
  .modern-content .story-process-heading h2,
  .modern-content .story-work-heading h2 {
    font-size: clamp(35px, 10vw, 48px);
    line-height: 1.06;
    letter-spacing: -.065em;
  }
  .modern-content .story-cta-inner h2 {
    font-size: clamp(38px, 10.5vw, 56px);
    line-height: 1.04;
    letter-spacing: -.065em;
  }
}


/* Final theme-contrast pass: keep all normal landing-page copy tied to the
   active theme tokens. Image overlays and the full-screen navigation remain
   intentionally white because they sit on darkened media. */
.modern-content,
.modern-content main {
  color: var(--text);
}
.modern-content main > section:not(.manifesto-section) h1,
.modern-content main > section:not(.manifesto-section) h2,
.modern-content main > section:not(.manifesto-section) h3,
.modern-content .story-intro-copy h2,
.modern-content .story-feature-copy h2,
.modern-content .story-process-heading h2,
.modern-content .story-work-heading h2,
.modern-content .story-cta-inner h2,
.modern-content .services-section .section-heading h2,
.modern-content .service-card h3,
.modern-content .work-card h3,
.modern-content .contact-copy h2,
.modern-content .contact-panel h3 {
  color: var(--text);
}
.modern-content .hero-eyebrow,
.modern-content .story-index,
.modern-content .story-lead,
.modern-content .story-feature-copy > p:not(.hero-eyebrow),
.modern-content .story-process-heading > p,
.modern-content .story-work-heading > p,
.modern-content .story-step p,
.modern-content .story-step-number,
.modern-content .story-work-note,
.modern-content .story-cta-inner > p:not(.hero-eyebrow),
.modern-content .section-intro,
.modern-content .service-card p,
.modern-content .work-meta,
.modern-content .work-disclaimer,
.modern-content .contact-note,
.modern-content .contact-panel > p:not(.eyebrow) {
  color: var(--muted);
}
html[data-theme="light"] .modern-content .story-intro .story-intro-copy h2,
html[data-theme="light"] .modern-content .story-feature-copy h2,
html[data-theme="light"] .modern-content .story-process-heading h2,
html[data-theme="light"] .modern-content .story-work-heading h2,
html[data-theme="light"] .modern-content .story-cta-inner h2,
html[data-theme="light"] .modern-content .services-section .section-heading h2,
html[data-theme="light"] .modern-content .service-card h3,
html[data-theme="light"] .modern-content .contact-copy h2,
html[data-theme="light"] .modern-content .contact-panel h3 {
  color: var(--text);
}


/* Footer multicolor gradient animation. */
@keyframes footer-gradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}



/* Use the exported Slider Revolution module without restyling its internal layers. */
.modern-content .story-cta {
  padding: 0;
  overflow: hidden;
}
.modern-content .story-cta .rs-p-wp-fix {
  display: none;
}


/* Remove the legacy contact-section photograph behind the native Reach Us slider. */
.modern-content #contact {
  background-image: none !important;
  /* Keep the CTA solid; border-radius clips only the lower corners to reveal the footer beneath. */
  background-color: var(--bg) !important;
  background-attachment: initial !important;
}


/* Restore the CTA's original Slider Revolution layout; retain only its theme-aware edge. */
.modern-content .story-cta {
  border-top: 1px solid var(--line);
}
