/* ==========================================================================
   TAX IT LEGAL ADVISORS — KEY VISUAL DESIGN SYSTEM
   Palette: #ff6c39 (Orange) | #f7f3ec (Cream) | #1c1c1c (Ink) |
            #86a878 (Sage)   | #5a42a8 (Purple)
   Fonts:   Safiro Medium (Display/Headings) + Space Grotesk (Body/UI)
   ========================================================================== */

@font-face {
  font-family: "Safiro";
  src: url("../assets/fonts/safiro-medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/spacegrotesk-light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/spacegrotesk-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/spacegrotesk-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/spacegrotesk-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/spacegrotesk-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #ff6c39;
  --cream: #f7f3ec;
  --ink: #1c1c1c;
  --sage: #86a878;
  --purple: #5a42a8;
  --purple-deep: #46328a;
  --ink-soft: #2a2a2a;
  --border-dark: rgba(28, 28, 28, 0.14);
  --border-light: rgba(247, 243, 236, 0.18);

  --font-display: "Safiro", "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-sharp: cubic-bezier(0.76, 0, 0.24, 1);
  --header-h: 78px;
}

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

html {
  scroll-behavior: auto;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

/* ==========================================================================
   CUSTOM CURSOR & SCROLL PROGRESS
   ========================================================================== */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0);
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

.cursor__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  mix-blend-mode: normal;
  border: 2px solid var(--cream);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: width 0.28s var(--ease-expo), height 0.28s var(--ease-expo), background 0.25s ease;
}

.cursor.is-hover .cursor__dot {
  width: 44px;
  height: 44px;
  background: rgba(90, 66, 168, 0.28);
  border-color: var(--purple);
  backdrop-filter: blur(2px);
}

.cursor__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cursor.has-label .cursor__label {
  opacity: 1;
  transform: translateX(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}

.scroll-progress__bar {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--orange), var(--purple), var(--sage));
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--cream);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: opacity 0.55s var(--ease-expo), visibility 0.55s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__shard {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.preloader__shard--purple {
  background: var(--purple);
  clip-path: polygon(62% 0, 100% 0, 100% 62%, 78% 42%, 88% 18%);
  transition: transform 0.8s var(--ease-sharp);
}

.preloader__shard--orange {
  background: var(--orange);
  clip-path: polygon(0 64%, 26% 84%, 14% 100%, 0 100%);
  transition: transform 0.8s var(--ease-sharp);
}

.preloader.is-done .preloader__shard--purple {
  transform: translate(35%, -35%);
}

.preloader.is-done .preloader__shard--orange {
  transform: translate(-35%, 35%);
}

.preloader__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preloader__logo {
  width: clamp(160px, 24vw, 240px);
  height: auto;
}

.preloader__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink);
  font-weight: 500;
}

.preloader__percent {
  font-family: var(--font-display);
  color: var(--purple);
  font-size: 15px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(247, 243, 236, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
}

.site-header.is-dark-mode {
  background: rgba(28, 28, 28, 0.82);
  color: var(--cream);
  border-bottom: 1px solid var(--border-light);
}

.site-header.is-orange-mode {
  background: rgba(255, 108, 57, 0.9);
  color: var(--cream);
  border-bottom: 1px solid rgba(247, 243, 236, 0.25);
}

.site-header.is-sage-mode {
  background: rgba(134, 168, 120, 0.9);
  color: var(--ink);
  border-bottom: 1px solid rgba(28, 28, 28, 0.14);
}

.site-header.is-purple-mode {
  background: rgba(90, 66, 168, 0.9);
  color: var(--cream);
  border-bottom: 1px solid rgba(247, 243, 236, 0.22);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
}

.brand-logo {
  height: 32px;
  width: auto;
  transition: opacity 0.25s ease;
}

.brand-logo--light {
  position: absolute;
  left: 0;
  opacity: 0;
}

.site-header.is-dark-mode .brand-logo--default,
.site-header.is-orange-mode .brand-logo--default,
.site-header.is-purple-mode .brand-logo--default {
  opacity: 0;
}

.site-header.is-dark-mode .brand-logo--light,
.site-header.is-orange-mode .brand-logo--light,
.site-header.is-purple-mode .brand-logo--light {
  opacity: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 0;
  transition: opacity 0.25s ease;
}

.nav-link::before {
  content: attr(data-index) " ";
  font-size: 10px;
  opacity: 0.55;
  margin-right: 3px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-expo);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header.is-orange-mode .nav-link::after {
  background: var(--purple);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-expo);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (max-width: 960px) {
  .main-nav,
  .btn--header {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  visibility: hidden;
}

.mobile-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-drawer__bg {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease-expo);
}

.mobile-drawer.is-open .mobile-drawer__bg {
  transform: translateY(0);
}

.mobile-drawer__content {
  position: relative;
  height: 100%;
  padding: calc(var(--header-h) + 32px) 28px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--cream);
  opacity: 0;
  transition: opacity 0.35s ease 0.15s;
}

.mobile-drawer.is-open .mobile-drawer__content {
  opacity: 1;
}

.mobile-drawer__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--sage);
}

.mobile-drawer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1.15;
}

.mobile-nav-link span {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--orange);
}

.mobile-drawer__footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: rgba(247, 243, 236, 0.78);
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

/* ==========================================================================
   SIDE FLOATING RAIL
   ========================================================================== */
.section-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rail-dot {
  width: 32px;
  height: 24px;
  background: transparent;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  opacity: 0.4;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.rail-dot span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.rail-dot::after {
  content: "";
  width: 8px;
  height: 2px;
  background: currentColor;
  transition: width 0.3s var(--ease-expo);
}

.rail-dot.is-active {
  opacity: 1;
}

.rail-dot.is-active::after {
  width: 18px;
  background: var(--orange);
}

body[data-active-theme="dark"] .section-rail,
body[data-active-theme="purple"] .section-rail {
  color: var(--cream);
}

@media (max-width: 1120px) {
  .section-rail {
    display: none;
  }
}

/* ==========================================================================
   BUTTONS & KEY VISUAL HIGHLIGHTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  border: 1.5px solid transparent;
  border-radius: 4px;
  transition: transform 0.3s var(--ease-expo), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn--pill {
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13.5px;
}

.btn--header {
  background: var(--ink);
  color: var(--cream);
}

.site-header.is-dark-mode .btn--header,
.site-header.is-purple-mode .btn--header {
  background: var(--orange);
  color: var(--cream);
}

.site-header.is-orange-mode .btn--header {
  background: var(--purple);
  color: var(--cream);
}

.btn--primary {
  background: var(--orange);
  color: var(--cream);
  box-shadow: 0 10px 26px rgba(255, 108, 57, 0.28);
}

.btn--primary:hover {
  background: var(--purple);
  box-shadow: 0 12px 30px rgba(90, 66, 168, 0.32);
}

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn__badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--purple);
  color: var(--cream);
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-expo);
}

.btn:hover .btn__arrow {
  transform: translate(2px, -2px);
}

/* Signature Key Visual Highlight Blocks */
.hl {
  display: inline-block;
  padding: 0 0.22em 0.04em;
  color: var(--cream);
  position: relative;
  z-index: 1;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hl--purple {
  background: var(--purple);
}

.hl--orange {
  background: var(--orange);
}

.hl--green {
  background: var(--sage);
  color: var(--ink);
}

.hl-underline {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
  text-decoration-color: var(--purple);
}

.text-purple {
  color: var(--purple);
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 48px;
}

.section-header--dark {
  border-bottom-color: var(--border-dark);
}

.section-index {
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.85;
}

.section-pill {
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  background: rgba(247, 243, 236, 0.12);
  border: 1px solid rgba(247, 243, 236, 0.22);
  text-transform: uppercase;
}

.section-pill--purple {
  background: var(--purple);
  color: var(--cream);
  border-color: var(--purple);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--cream);
}

.hero-shards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.shard {
  position: absolute;
}

.shard--purple-tr {
  top: 0;
  right: 0;
  width: clamp(260px, 42vw, 620px);
  height: clamp(200px, 38vh, 380px);
}

.shard--orange-bl {
  bottom: 48px;
  left: 0;
  width: clamp(180px, 26vw, 340px);
  height: clamp(160px, 28vh, 280px);
  opacity: 0.92;
}

.shard--sage-accent {
  top: 18%;
  left: 44%;
  width: 140px;
  height: 120px;
  opacity: 0.24;
}

.hero-floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.floater {
  position: absolute;
  width: clamp(52px, 6vw, 86px);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(28, 28, 28, 0.12));
  will-change: transform;
}

.floater--1 {
  top: 14%;
  right: 6%;
  transform: rotate(8deg);
}

.floater--2 {
  bottom: 18%;
  left: 47%;
  width: clamp(40px, 4.5vw, 64px);
  transform: rotate(-12deg);
}

.floater--3 {
  top: 62%;
  right: 3%;
  width: clamp(46px, 5vw, 72px);
  transform: rotate(10deg);
}

@media (max-width: 900px) {
  .hero-floaters,
  .shard--sage-accent {
    display: none;
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-block: 24px 48px;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding-block: 12px 36px;
  }
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.kicker-badge {
  background: var(--ink);
  color: var(--cream);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 5px 11px;
}

.kicker-meta {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--purple);
  font-weight: 600;
}

.hero-title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 5.6vw, 82px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.line-wrap {
  display: block;
  overflow: hidden;
  padding-bottom: 4px;
}

.line-inner {
  display: inline-block;
}

.hero-lead {
  margin: 0 0 32px;
  max-width: 58ch;
  font-size: clamp(16px, 1.35vw, 19px);
  color: rgba(28, 28, 28, 0.84);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  max-width: 560px;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1;
  color: var(--orange);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12.5px;
  line-height: 1.3;
  color: rgba(28, 28, 28, 0.72);
}

/* Hero Photo Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card-frame {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 4 / 4.8;
  will-change: transform;
}

.hero-photo-clip {
  width: 100%;
  height: 100%;
  clip-path: polygon(10% 0%, 100% 4%, 94% 88%, 68% 100%, 0% 92%, 4% 26%);
  overflow: hidden;
  background: var(--purple);
  box-shadow: 0 30px 60px rgba(28, 28, 28, 0.22);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.8s var(--ease-expo);
}

.hero-card-frame:hover .hero-photo {
  transform: scale(1.09);
}

.hero-floating-tag {
  position: absolute;
  background: var(--cream);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.hero-floating-tag--top {
  top: 18px;
  left: -18px;
  background: var(--orange);
  color: var(--cream);
  border-color: var(--ink);
  font-weight: 600;
}

.tag-code {
  font-family: var(--font-display);
  background: var(--purple);
  color: var(--cream);
  padding: 2px 7px;
  font-size: 12px;
}

.hero-floating-tag--bottom {
  bottom: 18px;
  right: -14px;
  max-width: 270px;
}

.tag-mini-logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}

.hero-floating-tag--bottom strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.hero-floating-tag--bottom small {
  font-size: 11px;
  opacity: 0.72;
}

@media (max-width: 640px) {
  .hero-floating-tag--top {
    left: 6px;
  }
  .hero-floating-tag--bottom {
    right: 6px;
  }
}

/* Marquee Band */
.marquee-band {
  position: relative;
  z-index: 3;
  background: var(--ink);
  color: var(--cream);
  padding-block: 14px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-track .sep {
  color: var(--orange);
  font-size: 10px;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   SECTION 01 — MANIFESTO (DARK)
   ========================================================================== */
.manifesto {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(80px, 11vw, 140px);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

@media (max-width: 960px) {
  .manifesto-grid {
    grid-template-columns: 1fr;
  }
}

.manifesto-statement {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.manifesto-cards-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pillar-card {
  background: var(--ink-soft);
  border: 1px solid rgba(247, 243, 236, 0.12);
  padding: 24px;
  position: relative;
  transition: transform 0.35s var(--ease-expo), border-color 0.3s ease;
}

.pillar-card:hover {
  transform: translateX(8px);
  border-color: var(--orange);
}

.pillar-card[data-accent="green"]:hover {
  border-color: var(--sage);
}

.pillar-card[data-accent="purple"]:hover {
  border-color: var(--purple);
}

.pillar-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--orange);
}

.pillar-card[data-accent="green"] .pillar-num {
  color: var(--sage);
}

.pillar-card[data-accent="purple"] .pillar-num {
  color: #a18cff;
}

.pillar-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.pillar-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
}

.pillar-card p {
  margin: 0;
  font-size: 14.5px;
  color: rgba(247, 243, 236, 0.76);
}

/* ==========================================================================
   SECTION 02 — PORTAFOLIO COLOR-SHIFTING SCROLL STAGE
   ========================================================================== */
.portfolio-stage {
  position: relative;
  padding-block: clamp(72px, 9vw, 120px) clamp(80px, 10vw, 130px);
  background: var(--cream);
  color: var(--ink);
  transition: background-color 0.65s var(--ease-expo), color 0.45s ease;
}

.portfolio-stage[data-bg-active="orange"] {
  background-color: var(--orange);
  color: var(--cream);
}

.portfolio-stage[data-bg-active="sage"] {
  background-color: var(--sage);
  color: var(--ink);
}

.portfolio-stage[data-bg-active="purple"] {
  background-color: var(--purple);
  color: var(--cream);
}

.portfolio-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  padding-bottom: 40px;
  border-bottom: 1px solid currentColor;
  margin-bottom: 56px;
}

@media (max-width: 900px) {
  .portfolio-intro {
    grid-template-columns: 1fr;
  }
}

.portfolio-main-title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.portfolio-intro__right p {
  margin: 0 0 22px;
  font-size: 16px;
  opacity: 0.9;
}

.portfolio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.tab-btn:hover {
  transform: translateY(-2px);
}

.tab-btn.is-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* Practice Chapter Sticky Split */
.practice-chapter {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
  padding-block: 44px 72px;
  border-bottom: 1px dashed rgba(28, 28, 28, 0.25);
}

.portfolio-stage[data-bg-active="orange"] .practice-chapter,
.portfolio-stage[data-bg-active="purple"] .practice-chapter {
  border-bottom-color: rgba(247, 243, 236, 0.28);
}

.practice-chapter:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.practice-chapter.is-hidden {
  display: none;
}

@media (max-width: 960px) {
  .practice-chapter {
    grid-template-columns: 1fr;
    padding-block: 32px 48px;
  }
}

.chapter-sticky {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

@media (max-width: 960px) {
  .chapter-sticky {
    position: static;
  }
}

.chapter-number {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
  margin-bottom: 10px;
}

.chapter-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.06;
}

.chapter-desc {
  margin: 0 0 26px;
  font-size: 15.5px;
  opacity: 0.92;
  max-width: 44ch;
}

.chapter-visual-preview {
  position: relative;
  max-width: 390px;
}

.poly-photo-box {
  aspect-ratio: 4 / 3;
  clip-path: polygon(0 6%, 88% 0, 100% 72%, 78% 100%, 4% 94%);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.22);
}

.poly-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-expo);
}

.chapter-sticker {
  position: absolute;
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.chapter-sticker--1 {
  top: -16px;
  right: -12px;
  transform: rotate(10deg);
}

.chapter-sticker--2 {
  bottom: -16px;
  left: -14px;
  transform: rotate(-10deg);
}

/* Service Cards inside Chapter */
.chapter-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-card {
  position: relative;
  background: rgba(247, 243, 236, 0.96);
  color: var(--ink);
  padding: 24px 26px;
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  transition: transform 0.35s var(--ease-expo), box-shadow 0.35s var(--ease-expo), background 0.25s ease;
  text-align: left;
  width: 100%;
}

.service-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--ink);
  background: #ffffff;
}

.service-card__code {
  font-family: var(--font-display);
  font-size: 20px;
  padding: 8px 12px;
  background: var(--purple);
  color: var(--cream);
  min-width: 72px;
  text-align: center;
}

.service-card[data-cat="patrimonial"] .service-card__code {
  background: var(--orange);
}

.service-card__body h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  line-height: 1.22;
}

.service-card__body p {
  margin: 0;
  font-size: 14px;
  color: rgba(28, 28, 28, 0.74);
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-size: 18px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s var(--ease-expo);
}

.service-card:hover .service-card__cta {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--cream);
  transform: rotate(45deg);
}

@media (max-width: 600px) {
  .service-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .service-card__code {
    width: fit-content;
  }
  .service-card__cta {
    justify-self: end;
  }
}

/* ==========================================================================
   SECTION 03 — DIAGNOSTIC SCENARIO MATCHER
   ========================================================================== */
.diagnostic {
  background: var(--cream);
  color: var(--ink);
  padding-block: clamp(80px, 10vw, 130px);
}

.diagnostic-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 960px) {
  .diagnostic-layout {
    grid-template-columns: 1fr;
  }
}

.diagnostic-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.08;
}

.diagnostic-sub {
  margin: 0 0 28px;
  color: rgba(28, 28, 28, 0.78);
  font-size: 16px;
}

.scenario-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scenario-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: transparent;
  border: 1.5px solid var(--ink);
  font-weight: 500;
  font-size: 15px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-expo), box-shadow 0.25s ease;
}

.scenario-btn:hover {
  transform: translateX(4px);
}

.scenario-btn.is-active {
  background: var(--purple);
  color: var(--cream);
  border-color: var(--purple);
  box-shadow: 6px 6px 0 var(--orange);
}

.scenario-btn__tag {
  font-family: var(--font-display);
  font-size: 13px;
  opacity: 0.75;
  flex-shrink: 0;
}

.diagnostic-result-card {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(26px, 3.5vw, 40px);
  border: 2px solid var(--ink);
  box-shadow: 12px 12px 0 var(--sage);
  position: relative;
}

.diag-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--cream);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  margin-bottom: 16px;
}

.diag-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.15;
}

.diag-summary {
  margin: 0 0 22px;
  color: rgba(247, 243, 236, 0.8);
  font-size: 15px;
}

.diag-recs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.diag-rec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(247, 243, 236, 0.08);
  border-left: 3px solid var(--sage);
  font-size: 14px;
}

.diag-rec-item strong {
  font-family: var(--font-display);
  color: var(--orange);
  font-size: 15px;
}

/* ==========================================================================
   SECTION 04 — METHODOLOGY
   ========================================================================== */
.methodology {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(80px, 10vw, 130px);
}

.method-head-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 52px;
}

@media (max-width: 900px) {
  .method-head-grid {
    grid-template-columns: 1fr;
  }
}

.method-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
}

.method-desc {
  margin: 0;
  font-size: 16px;
  color: rgba(247, 243, 236, 0.78);
}

.method-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1024px) {
  .method-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .method-steps-grid {
    grid-template-columns: 1fr;
  }
}

.method-step {
  background: var(--ink-soft);
  border: 1px solid var(--border-light);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.35s var(--ease-expo), border-color 0.3s ease;
}

.method-step:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
}

.method-step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.method-code {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--sage);
}

.method-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.method-step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
}

.method-step p {
  margin: 0;
  font-size: 14px;
  color: rgba(247, 243, 236, 0.75);
}

/* ==========================================================================
   SECTION 05 — CONTACT
   ========================================================================== */
.contact {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  padding-block: clamp(80px, 10vw, 130px);
  overflow: hidden;
}

.contact-bg-shard {
  position: absolute;
  top: 0;
  right: 0;
  width: min(46vw, 600px);
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.contact-bg-shard svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 960px) {
  .contact-bg-shard {
    opacity: 0.16;
    width: 100%;
  }
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-title {
  margin: 14px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.06;
}

.contact-lead {
  margin: 0 0 28px;
  font-size: 16px;
  color: rgba(28, 28, 28, 0.8);
  max-width: 46ch;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.25s var(--ease-expo), box-shadow 0.25s ease;
}

a.contact-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--orange);
}

.contact-card__icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.contact-card__label {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
}

.contact-card__value {
  font-size: 15.5px;
  font-weight: 600;
}

.contact-card__arrow {
  margin-left: auto;
  font-size: 18px;
}

/* Contact Form */
.contact-form {
  background: #ffffff;
  border: 2px solid var(--ink);
  box-shadow: 12px 12px 0 var(--orange);
  padding: clamp(24px, 3.5vw, 38px);
}

.form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-dark);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--purple);
}

.form-head__logo {
  height: 26px;
  width: auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-field label {
  font-size: 12.5px;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  border: 1.5px solid rgba(28, 28, 28, 0.25);
  background: var(--cream);
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: #ffffff;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn--submit {
  background: var(--ink);
  color: var(--cream);
  flex: 1;
  justify-content: center;
}

.btn--submit:hover {
  background: var(--orange);
}

.btn--email-alt {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  justify-content: center;
}

.btn--email-alt:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--cream);
}

.form-feedback {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 500;
  min-height: 20px;
}

.form-feedback.is-error {
  color: #c92a2a;
}

.form-feedback.is-success {
  color: #2b6e3f;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: 68px 34px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-light);
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 14px;
}

.footer-tagline {
  margin: 0 0 6px;
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 18px;
}

.footer-address {
  margin: 0;
  font-size: 13.5px;
  color: rgba(247, 243, 236, 0.68);
}

.footer-links-col h4 {
  margin: 0 0 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sage);
}

.footer-links-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
}

.footer-links-col a {
  opacity: 0.82;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-links-col a:hover {
  opacity: 1;
  color: var(--orange);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: rgba(247, 243, 236, 0.64);
}

.back-to-top {
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--cream);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.back-to-top:hover {
  background: var(--orange);
  border-color: var(--orange);
}

/* ==========================================================================
   SERVICE DETAIL MODAL
   ========================================================================== */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--ease-expo), visibility 0.35s;
}

.service-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.service-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, 0.78);
  backdrop-filter: blur(8px);
}

.service-modal__panel {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  max-height: 90svh;
  overflow-y: auto;
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 14px 14px 0 var(--orange);
  padding: clamp(22px, 4vw, 40px);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s var(--ease-expo);
}

.service-modal.is-open .service-modal__panel {
  transform: translateY(0) scale(1);
}

.service-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--cream);
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.service-modal__close:hover {
  background: var(--ink);
  color: var(--cream);
}

.service-modal__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: center;
}

@media (max-width: 760px) {
  .service-modal__grid {
    grid-template-columns: 1fr;
  }
}

.service-modal__visual {
  position: relative;
}

.service-modal__poly {
  aspect-ratio: 4 / 4.2;
  clip-path: polygon(0 8%, 92% 0, 100% 78%, 74% 100%, 0 92%);
  overflow: hidden;
  background: var(--purple);
}

.service-modal__poly img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-modal__icon {
  position: absolute;
  bottom: -12px;
  right: -10px;
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.service-modal__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.service-modal__code {
  font-family: var(--font-display);
  background: var(--purple);
  color: var(--cream);
  padding: 4px 10px;
  font-size: 15px;
}

.service-modal__category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.service-modal__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.12;
}

.service-modal__desc {
  margin: 0 0 20px;
  font-size: 15px;
  color: rgba(28, 28, 28, 0.82);
}

.service-modal__deliverables h4 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
}

.service-modal__deliverables ul {
  margin: 0 0 24px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

/* ==========================================================================
   ACCESSIBILITY: REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .preloader {
    display: none;
  }
}
