:root {
  --bg: #f7f6f2;
  --panel: #ece8df;
  --panel-2: #fdfcf8;
  --text: #141414;
  --muted: rgba(20, 20, 20, 0.68);
  --line: rgba(20, 20, 20, 0.12);
  --gold: #c6a75e;
  --gold-soft: rgba(198, 167, 94, 0.3);
  --shadow: 0 18px 42px rgba(20, 20, 20, 0.06);
  --shadow-strong: 0 24px 58px rgba(20, 20, 20, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --card-pad-lg: 38px;
  --card-pad-md: 34px;
  --card-pad-sm: 28px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Inter", sans-serif;
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  transform: translate3d(0, calc(var(--bg-parallax, 0px) * -1), 0);
  background-image:
    linear-gradient(to right, rgba(20, 20, 20, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 20, 20, 0.03) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.08));
}

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.page-frame {
  position: fixed;
  inset: 16px;
  border: 1px solid rgba(20, 20, 20, 0.07);
  pointer-events: none;
  z-index: 2;
}

.site-shell {
  width: min(calc(100% - 52px), var(--max));
  margin: 0 auto;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.is-ready .site-shell {
  opacity: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 18px;
  background: rgba(247, 246, 242, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 20, 20, 0.05);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 72px;
  height: 46px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.wordmark,
h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
}

.wordmark {
  font-size: 1.7rem;
  letter-spacing: 0.02em;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.88rem;
  color: var(--muted);
  align-items: center;
}

.topnav a {
  position: relative;
  padding-bottom: 8px;
  transition: color 0.35s ease;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
}

.topnav a.is-active {
  color: var(--text);
}

.topnav a:hover::after,
.topnav a:focus-visible::after,
.topnav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 999px;
  background: rgba(253, 252, 248, 0.94);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle-lines {
  display: inline-grid;
  gap: 4px;
}

.nav-toggle-lines span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  list-style: none;
  cursor: pointer;
  transition: color 0.35s ease;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -2px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.nav-dropdown summary::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.nav-dropdown:hover summary,
.nav-dropdown[open] summary,
.nav-dropdown summary:focus-visible {
  color: var(--text);
}

.nav-dropdown.is-active summary {
  color: var(--text);
}

.nav-dropdown:hover summary::before,
.nav-dropdown[open] summary::before,
.nav-dropdown summary:focus-visible::before,
.nav-dropdown.is-active summary::before {
  transform: scaleX(1);
}

.nav-dropdown[open] summary::after {
  transform: rotate(225deg);
  margin-top: 3px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 320px;
  padding: 14px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 18px;
  background: rgba(253, 252, 248, 0.96);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
  display: grid;
  gap: 4px;
  z-index: 35;
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--text);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: rgba(20, 20, 20, 0.04);
  transform: translateX(2px);
}

.section {
  position: relative;
  padding: 104px 0;
}

.section::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -36px;
  height: 84px;
  background: radial-gradient(circle at center, rgba(76, 34, 106, 0.14), rgba(198, 167, 94, 0.13), transparent 70%);
  filter: blur(34px);
  pointer-events: none;
  z-index: -1;
}

.section-panel::before {
  content: "";
  position: absolute;
  inset: 24px 12px;
  border: 1px solid rgba(20, 20, 20, 0.06);
  border-radius: 34px;
  background: var(--panel);
  z-index: -1;
}

.section-panel > .section-head,
.section-panel > .hero-tags,
.section-panel > .problem-grid,
.section-panel > .services-grid,
.section-panel > .outputs-grid,
.section-panel > .system-track,
.section-panel > .split-layout,
.section-panel > .cta-shell {
  padding-left: 34px;
  padding-right: 34px;
}

.section-panel > .cta-shell {
  margin: 18px 34px 10px;
  padding-left: var(--card-pad-lg);
  padding-right: var(--card-pad-lg);
}

.section-label,
.micro {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.divider {
  width: 108px;
  height: 1px;
  margin-bottom: 18px;
  background: var(--gold);
}

.section-head {
  max-width: 860px;
  margin-bottom: 42px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0.01em;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 7vw, 6rem);
  line-height: 0.94;
}

h2 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 3.8vw, 3.5rem);
  line-height: 1;
}

h3 {
  font-size: 1.66rem;
  line-height: 1.05;
}

.lead,
.issue-card p,
.service-card p,
.output-card p,
.firm-card p,
.side-line,
.hero-note,
.command-row span,
.check-list,
.track-step small,
.contact-strip {
  color: var(--muted);
}

.lead {
  margin: 24px 0 0;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.72;
}

.narrow {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-home {
  padding-top: 60px;
  padding-bottom: 88px;
}

.hero-subpage {
  padding-top: 52px;
  padding-bottom: 84px;
}

.hero-layout,
.split-layout,
.subpage-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.hero-home::before,
.hero-subpage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  transform: translate3d(var(--hero-shift-x, 0px), var(--hero-shift-y, 0px), 0);
  background:
    radial-gradient(circle at 18% 22%, rgba(44, 94, 86, 0.62), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(76, 34, 106, 0.58), transparent 28%),
    radial-gradient(circle at 62% 68%, rgba(198, 167, 94, 0.6), transparent 24%);
  filter: hue-rotate(var(--hero-hue, 0deg)) blur(32px);
}

.hero-copy {
  grid-column: 1 / span 6;
}

.hero-command,
.side-panel {
  grid-column: 7 / span 6;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: 22px;
  margin-bottom: 46px;
  position: relative;
  z-index: 3;
}

.section-head + .hero-tags {
  margin-top: 0;
}

.tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(20, 20, 20, 0.09);
  border-radius: 999px;
  background: rgba(253, 252, 248, 0.96);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tag[href]:hover,
.tag[href]:focus-visible {
  border-color: var(--gold);
  background: #fff;
}

.status-pill {
  border-color: var(--gold-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.button-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: var(--shadow-strong);
  background: #000;
}

.button-secondary {
  background: rgba(253, 252, 248, 0.9);
  border-color: rgba(20, 20, 20, 0.12);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--gold);
}

.hero-command,
.issue-card,
.service-card,
.output-card,
.firm-card,
.side-panel,
.cta-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 20, 0.09);
  border-radius: var(--radius-lg);
  background: rgba(253, 252, 248, 0.94);
  box-shadow: var(--shadow);
}

.hero-command,
.side-panel,
.cta-shell {
  padding: var(--card-pad-lg);
}

.issue-card,
.service-card,
.output-card,
.firm-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--card-pad-md);
}

.service-card h3,
.issue-card h3,
.output-card h3,
.firm-card h3 {
  margin-bottom: 18px;
}

.button,
.issue-card,
.service-card,
.output-card,
.firm-card,
.side-panel,
.hero-command,
.cta-shell {
  transform:
    translate3d(var(--magnetic-x, 0px), calc(var(--scroll-shift, 0px) + var(--magnetic-y, 0px)), 0)
    perspective(800px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    scale(var(--hover-scale, 1));
  transition:
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background-color 0.35s ease;
}

.hero-command::before,
.issue-card::before,
.service-card::before,
.output-card::before,
.firm-card::before,
.side-panel::before,
.cta-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(20, 20, 20, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 20, 20, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.2;
  pointer-events: none;
}

.hero-command::after,
.issue-card::after,
.service-card::after,
.output-card::after,
.firm-card::after,
.side-panel::after,
.cta-shell::after {
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  width: 56%;
  height: 2px;
  background: var(--gold);
  opacity: 0.95;
  box-shadow: 0 0 18px rgba(198, 167, 94, 0.4);
  transition: transform 0.48s ease;
}

.hero-command:hover::after,
.issue-card:hover::after,
.service-card:hover::after,
.output-card:hover::after,
.firm-card:hover::after,
.side-panel:hover::after,
.cta-shell:hover::after {
  transform: translateX(240%);
}

.hero-command-head,
.command-grid,
.command-chart,
.hero-note,
.contact-strip,
.track-step {
  position: relative;
  z-index: 1;
}

.hero-command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.command-grid {
  display: grid;
  gap: 14px;
}

.command-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 0 2px 14px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  font-size: 0.92rem;
}

.command-row strong {
  max-width: 60%;
  text-align: right;
}

.command-chart {
  position: relative;
  height: 144px;
  margin: 28px 0 22px;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.chart-line {
  position: absolute;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(76, 34, 106, 0.12), var(--gold), rgba(44, 94, 86, 0.12), transparent);
  box-shadow: 0 0 18px rgba(198, 167, 94, 0.22);
  animation: scan 6s ease-in-out infinite;
}

.chart-line-a {
  top: 22%;
}

.chart-line-b {
  top: 50%;
  animation-delay: 0.8s;
}

.chart-line-c {
  top: 78%;
  animation-delay: 1.6s;
}

.hero-note,
.side-line {
  margin-top: 24px;
  font-size: 0.96rem;
  line-height: 1.65;
}

.problem-grid,
.services-grid,
.outputs-grid,
.firm-grid {
  display: grid;
  gap: 32px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.problem-grid,
.outputs-grid,
.firm-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card-index {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.issue-card,
.service-card,
.output-card,
.firm-card,
.side-panel {
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}

.issue-card,
.service-card,
.output-card,
.firm-card {
  height: 100%;
}

.issue-card:hover,
.service-card:hover,
.output-card:hover,
.firm-card:hover,
.side-panel:hover {
  --hover-scale: 1.022;
  border-color: rgba(20, 20, 20, 0.18);
  box-shadow: 0 30px 72px rgba(20, 20, 20, 0.14);
  background: #fff;
}

.issue-card p,
.service-card p,
.output-card p,
.firm-card p {
  margin: 16px 0 0;
  line-height: 1.68;
}

.issue-card .check-list,
.service-card .check-list,
.output-card .check-list {
  width: 100%;
  margin-top: 10px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  line-height: 1.65;
}

.service-card .check-list {
  margin-top: 4px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38rem;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
}

.service-line {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.system-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 34px 28px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(253, 252, 248, 0.92);
  box-shadow: var(--shadow);
}

.track-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 54px;
  height: 1px;
  background: var(--gold);
}

.track-step {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 0 18px;
}

.track-step span {
  display: inline-block;
  margin-bottom: 14px;
  padding: 0 12px;
  background: rgba(253, 252, 248, 0.98);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.track-step small {
  display: block;
  max-width: 18ch;
  margin: 0 auto;
  font-size: 0.92rem;
  line-height: 1.6;
}

.split-layout .section-head {
  grid-column: 1 / span 5;
  margin-bottom: 0;
}

.split-layout .side-panel {
  grid-column: 7 / span 6;
}

.firm-card {
  display: flex;
}

.card-link {
  display: inline-flex;
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.firm-card,
.card-link,
.contact-strip a {
  position: relative;
}

.firm-card .card-link::after,
.contact-strip a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.firm-card:hover .card-link::after,
.firm-card:focus-visible .card-link::after,
.contact-strip a:hover::after,
.contact-strip a:focus-visible::after {
  transform: scaleX(1);
}

.cta-shell {
  display: grid;
  row-gap: 18px;
  justify-items: center;
  text-align: center;
}

.cta-shell > * {
  position: relative;
  z-index: 1;
  margin-top: 0;
  margin-bottom: 0;
}

.cta-shell .divider {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.cta-shell h2,
.cta-shell .lead,
.cta-shell .contact-strip {
  margin-left: auto;
  margin-right: auto;
}

.cta-shell h2 {
  max-width: 12ch;
}

.cta-shell > .button,
.cta-shell > .contact-form {
  margin-top: 0;
}

.contact-strip + .button {
  margin-top: 0;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 26px;
  margin: 0;
  padding: 0 8px;
  font-size: 0.94rem;
}

.contact-strip a {
  color: var(--text);
}

.contact-form {
  width: min(100%, 760px);
  margin-top: 0;
  display: grid;
  gap: 18px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.field {
  display: grid;
  gap: 8px;
  text-align: left;
}

.field span,
.form-note,
.form-error {
  font-size: 0.9rem;
}

.field span {
  font-weight: 600;
  color: var(--text);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 16px;
  background: rgba(253, 252, 248, 0.98);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  padding: 14px 16px;
  resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(198, 167, 94, 0.8);
  box-shadow: 0 0 0 3px rgba(198, 167, 94, 0.12);
  background: #fff;
}

.field-full {
  width: 100%;
}

.form-note {
  margin: 0;
  color: var(--muted);
}

.form-error {
  margin: 0;
  color: #8f2f2f;
  font-weight: 600;
}

.contact-form .button {
  justify-self: center;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 72px, 0) scale(0.96);
  transition:
    opacity 720ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--stagger-delay, 0ms);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

.reveal-delay-3 {
  transition-delay: 0.36s;
}

.reveal-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.intro-item {
  opacity: 0;
  transform: translate3d(0, 42px, 0) scale(0.96);
  transition:
    opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--intro-delay, 0ms);
}

.intro-item.intro-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.headline-word-wrap {
  display: inline-flex;
  overflow: hidden;
  vertical-align: bottom;
}

.headline-word {
  display: inline-block;
  transform: translateY(125%);
  clip-path: inset(0 0 0 0);
  transition: transform 920ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--word-delay, 0ms);
}

.is-ready .headline-word {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 60;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(198, 167, 94, 0.45);
  transform: scaleX(0);
  transform-origin: left;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(247, 246, 242, 0.96);
  backdrop-filter: blur(18px);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.is-ready .site-loader {
  opacity: 0;
  visibility: hidden;
}

.site-loader-mark {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.site-loader-line {
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.site-loader-word {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
}

.keyboard-hint {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 45;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: rgba(253, 252, 248, 0.94);
  box-shadow: var(--shadow);
  transform: translate3d(0, 18px, 0);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.keyboard-hint.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.keyboard-hint strong {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.keyboard-hint span {
  font-size: 0.84rem;
  color: var(--muted);
}

.particle-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
}

.has-custom-cursor,
.has-custom-cursor a,
.has-custom-cursor button,
.has-custom-cursor .button,
.has-custom-cursor .issue-card,
.has-custom-cursor .service-card,
.has-custom-cursor .output-card,
.has-custom-cursor .firm-card,
.has-custom-cursor .side-panel,
.has-custom-cursor .hero-command {
  cursor: none;
}

.cursor-shell {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cursor-shell.is-visible {
  opacity: 1;
}

.cursor-dot,
.cursor-ring,
.cursor-pill {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
}

.cursor-dot {
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  background: rgba(198, 167, 94, 0.95);
  box-shadow: 0 0 34px rgba(198, 167, 94, 0.75);
}

.cursor-ring {
  width: 46px;
  height: 46px;
  margin-left: -23px;
  margin-top: -23px;
  border: 1.5px solid rgba(20, 20, 20, 0.3);
  border-radius: 50%;
  transition: transform 0.26s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cursor-shell.is-hovering .cursor-ring {
  background: rgba(198, 167, 94, 0.32);
  border-color: rgba(198, 167, 94, 0.95);
  box-shadow: 0 0 40px rgba(198, 167, 94, 0.45);
  transform: scale(1.9);
}

.cursor-shell.is-pressed .cursor-ring {
  transform: scale(1.1);
}

.cursor-pill {
  padding: 10px 14px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: rgba(253, 252, 248, 0.94);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cursor-pill.is-visible {
  opacity: 1;
}

.cursor-burst {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 69;
  pointer-events: none;
}

.cursor-burst span {
  position: absolute;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  border-radius: 50%;
  background: rgba(198, 167, 94, 0.92);
}

.section-enter {
  animation: sectionIn 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.section-exit {
  animation: sectionOut 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.is-cycled {
  border-color: rgba(198, 167, 94, 0.7);
  box-shadow: 0 0 0 1px rgba(198, 167, 94, 0.35), var(--shadow-strong);
}

.is-cycle-out {
  opacity: 0.82;
  transform:
    translate3d(var(--magnetic-x, 0px), calc(var(--scroll-shift, 0px) + var(--magnetic-y, 0px)), 0)
    perspective(800px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    scale(0.94);
}

@media (prefers-reduced-motion: no-preference) {
  @property --hero-hue {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
  }

  @keyframes scan {
    0%, 100% {
      opacity: 0.35;
      transform: scaleX(0.84);
    }
    50% {
      opacity: 1;
      transform: scaleX(1.08);
    }
  }

  @keyframes meshShift {
    from {
      --hero-hue: 0deg;
    }
    to {
      --hero-hue: 360deg;
    }
  }

  @keyframes sectionIn {
    from {
      opacity: 0.28;
      filter: blur(6px);
      transform: scale(0.93);
    }
    to {
      opacity: 1;
      filter: blur(0);
      transform: scale(1);
    }
  }

  @keyframes sectionOut {
    from {
      opacity: 1;
      filter: blur(0);
      transform: scale(1);
    }
    to {
      opacity: 0.24;
      filter: blur(6px);
      transform: scale(0.93);
    }
  }

  @keyframes burstParticle {
    from {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
    to {
      opacity: 0;
      transform: translate3d(var(--burst-x), var(--burst-y), 0) scale(0.08);
    }
  }

  .hero-home::before,
  .hero-subpage::before {
    animation: meshShift 14s linear infinite;
  }

  .cursor-burst span {
    animation: burstParticle 200ms ease-out forwards;
  }
}

@media (max-width: 1120px) {
  .hero-copy,
  .hero-command,
  .split-layout .section-head,
  .split-layout .side-panel,
  .subpage-grid .hero-copy,
  .subpage-grid .side-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .site-shell {
    width: min(calc(100% - 32px), var(--max));
  }

  .problem-grid,
  .outputs-grid,
  .firm-grid,
  .services-grid,
  .system-track,
  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .track-line {
    left: 28px;
    right: auto;
    top: 24px;
    bottom: 24px;
    width: 1px;
    height: auto;
  }

  .track-step {
    text-align: left;
    padding-left: 24px;
  }

  .track-step span {
    padding-left: 0;
  }

  h1,
  h2 {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .page-frame {
    inset: 8px;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .topnav {
    display: none;
    width: 100%;
    grid-column: 1 / -1;
    padding-top: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .topbar.nav-open .topnav {
    display: flex;
  }

  .topbar.nav-open .nav-toggle-lines span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }

  .topbar.nav-open .nav-toggle-lines span:nth-child(2) {
    opacity: 0;
  }

  .topbar.nav-open .nav-toggle-lines span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .topnav a,
  .nav-dropdown summary {
    width: 100%;
    padding: 12px 0;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 10px;
  }

  .section {
    padding: 82px 0;
  }

  .hero-home,
  .hero-subpage {
    padding-top: 42px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-command,
  .issue-card,
  .service-card,
  .output-card,
  .firm-card,
  .side-panel,
  .cta-shell {
    padding: var(--card-pad-sm);
  }

  .command-row {
    flex-direction: column;
  }

  .command-row strong {
    max-width: none;
    text-align: left;
  }

  .brand-logo {
    width: 62px;
    height: 40px;
  }

  .keyboard-hint {
    right: 16px;
    left: 16px;
    bottom: 16px;
  }

  .section-panel > .section-head,
  .section-panel > .hero-tags,
  .section-panel > .problem-grid,
  .section-panel > .services-grid,
  .section-panel > .outputs-grid,
  .section-panel > .system-track,
  .section-panel > .split-layout,
  .section-panel > .cta-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-panel > .cta-shell {
    margin: 14px 18px 8px;
    padding-left: var(--card-pad-sm);
    padding-right: var(--card-pad-sm);
  }

  .section-panel::before {
    inset: 14px 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3,
  .topnav a::after,
  .button,
  .issue-card,
  .service-card,
  .output-card,
  .firm-card,
  .side-panel,
  .hero-command::after,
  .issue-card::after,
  .service-card::after,
  .output-card::after,
  .firm-card::after,
  .side-panel::after,
  .cta-shell::after,
  .chart-line,
  .keyboard-hint,
  .headline-word,
  .intro-item {
    transition: none;
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .site-loader,
  .particle-field,
  .cursor-shell,
  .keyboard-hint {
    display: none;
  }

  .site-shell {
    opacity: 1;
  }
}
