/* ============================================================
   TYCHOR CONSULTING ENTERPRISES
   Design system — warm ivory / deep navy / brass gold
   Type: Fraunces (display) · Inter (text/UI)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --paper: #f5f2ea;
  --paper-2: #fbf9f4;
  --tint: #edeade;
  --white: #ffffff;

  --ink: #0e1526;
  --body: #465062;
  --muted: #6b7487;

  --deep: #0a101f;
  --deep-2: #0d1730;
  --deep-3: #111e3e;

  --gold: #c4a15a;
  --gold-bright: #d9bc80;
  --gold-ink: #8a6b2e;
  --gold-soft: rgba(196, 161, 90, 0.14);

  --line: rgba(14, 21, 38, 0.12);
  --line-soft: rgba(14, 21, 38, 0.07);
  --dk-text: #ede9de;
  --dk-body: #a6afc2;
  --dk-line: rgba(237, 233, 222, 0.12);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --sec: clamp(4.5rem, 9vw, 7.75rem);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c4a15a' d='M12 2l2.3 7.7L22 12l-7.7 2.3L12 22l-2.3-7.7L2 12l7.7-2.3z'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@view-transition {
  navigation: auto;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--gold);
  color: var(--deep);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  font-size: 0.85rem;
  transition: top 0.2s var(--ease);
}

.skip-link:focus-visible {
  top: 12px;
}

main {
  animation: page-in 0.7s var(--ease-out) both;
}

@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- Layout utilities ---------- */
.container {
  width: min(100% - 44px, 1200px);
  margin-inline: auto;
}

.section {
  padding-block: var(--sec);
  position: relative;
}

.section--tint {
  background: linear-gradient(180deg, var(--paper) 0%, var(--tint) 14%, var(--tint) 86%, var(--paper) 100%);
}

.section--dark {
  background:
    radial-gradient(1100px 520px at 18% -10%, rgba(30, 51, 99, 0.55), transparent 68%),
    radial-gradient(900px 480px at 88% 112%, rgba(196, 161, 90, 0.12), transparent 66%),
    var(--deep);
  color: var(--dk-body);
}

.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(237, 233, 222, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 233, 222, 0.035) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}

.section--dark > .container {
  position: relative;
  z-index: 1;
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.eyebrow::before {
  content: "";
  width: 11px;
  height: 11px;
  flex: none;
  background: var(--star) center / contain no-repeat;
}

.section--dark .eyebrow,
.hero .eyebrow,
.cta-panel .eyebrow,
.info-card .eyebrow {
  color: var(--gold);
}

.title-xl,
.title-lg,
.title-md {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.title-xl {
  font-size: clamp(2.7rem, 5.6vw, 4.6rem);
  line-height: 1.04;
}

.title-lg {
  font-size: clamp(2.05rem, 3.7vw, 3.1rem);
}

.title-md {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.title-xl em,
.title-lg em,
.title-md em {
  font-style: inherit;
  font-weight: inherit;
  color: inherit;
}

.section--dark .title-xl,
.section--dark .title-lg,
.section--dark .title-md {
  color: var(--dk-text);
}

.section--dark .title-xl em,
.section--dark .title-lg em,
.section--dark .title-md em {
  color: inherit;
}

.lead {
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.75;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.75rem, 5.5vw, 4.5rem);
}

.section-head .eyebrow {
  margin-bottom: 1.1rem;
}

.section-head .lead {
  margin-top: 1.25rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

/* ---------- Star divider ---------- */
.star-divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--gold);
  font-size: 0.8rem;
}

.star-divider::before,
.star-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--line));
}

.star-divider::after {
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
  transition: transform 0.35s var(--ease);
}

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

.btn--primary {
  background: var(--ink);
  color: var(--paper-2);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -14px rgba(14, 21, 38, 0.5);
  background: var(--deep-3);
}

.btn--gold {
  background: linear-gradient(150deg, var(--gold-bright), #b28c42);
  color: #171208;
  box-shadow: 0 10px 26px -14px rgba(196, 161, 90, 0.75);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -14px rgba(196, 161, 90, 0.6);
  filter: brightness(1.05);
}

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

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: var(--gold-soft);
}

.btn--ghost-light {
  border: 1px solid rgba(237, 233, 222, 0.32);
  color: var(--dk-text);
  background: rgba(237, 233, 222, 0.02);
}

.btn--ghost-light:hover {
  transform: translateY(-2px);
  border-color: rgba(237, 233, 222, 0.75);
  background: rgba(237, 233, 222, 0.08);
}

.btn--sm {
  padding: 11px 22px;
  font-size: 0.85rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
}

.text-link svg {
  width: 16px;
  height: 16px;
  color: var(--gold-ink);
  transition: transform 0.3s var(--ease);
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 1.5px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.text-link:hover::after {
  transform: scaleX(1);
}

.text-link:hover svg {
  transform: translateX(4px);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  color: var(--dk-text);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease);
}

.header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.header.is-solid {
  background: rgba(248, 245, 238, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  color: var(--ink);
  box-shadow: 0 12px 32px -24px rgba(14, 21, 38, 0.35);
}

.header.is-solid::after {
  opacity: 1;
}

body.menu-open .header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--dk-text);
  box-shadow: none;
}

body.menu-open .header::after {
  opacity: 0;
}

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

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

.brand-mark {
  width: 40px;
  height: 40px;
  color: var(--gold);
  flex: none;
  transition: transform 0.6s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(45deg);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  line-height: 1;
  color: currentColor;
}

.brand-text small {
  display: block;
  margin-top: 5px;
  font-family: var(--font-body);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.62;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.82;
  transition: opacity 0.3s;
  padding-block: 6px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: right 0.35s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  right: 0;
}

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

.burger {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid currentColor;
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.6px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.burger span:nth-child(1) {
  top: 16px;
}

.burger span:nth-child(2) {
  top: 24px;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  top: 20px;
  transform: rotate(-45deg);
}

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px 28px 40px;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(196, 161, 90, 0.14), transparent 65%),
    radial-gradient(800px 600px at 0% 100%, rgba(30, 51, 99, 0.5), transparent 70%),
    var(--deep);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}

.menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.45s var(--ease);
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.9rem);
  color: var(--dk-text);
  border-bottom: 1px solid var(--dk-line);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), color 0.3s;
}

.menu-nav a span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.menu-nav a:hover {
  color: var(--gold-bright);
}

.menu.is-open .menu-nav a {
  opacity: 1;
  transform: none;
}

.menu.is-open .menu-nav a:nth-child(1) { transition-delay: 0.08s; }
.menu.is-open .menu-nav a:nth-child(2) { transition-delay: 0.15s; }
.menu.is-open .menu-nav a:nth-child(3) { transition-delay: 0.22s; }
.menu.is-open .menu-nav a:nth-child(4) { transition-delay: 0.29s; }

.menu-meta {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  font-size: 0.92rem;
  color: var(--dk-body);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease) 0.38s, transform 0.55s var(--ease) 0.38s;
}

.menu.is-open .menu-meta {
  opacity: 1;
  transform: none;
}

.menu-meta a:hover {
  color: var(--gold-bright);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 150px 0 110px;
  background: var(--deep);
  color: var(--dk-body);
  overflow: hidden;
}

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

.hero-bg::before {
  content: "";
  position: absolute;
  width: 62vw;
  height: 62vw;
  min-width: 540px;
  min-height: 540px;
  right: -16vw;
  top: -24vw;
  background: radial-gradient(closest-side, rgba(196, 161, 90, 0.2), transparent 72%);
  animation: drift 14s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  width: 58vw;
  height: 58vw;
  min-width: 500px;
  min-height: 500px;
  left: -20vw;
  bottom: -28vw;
  background: radial-gradient(closest-side, rgba(34, 58, 110, 0.55), transparent 72%);
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-3%, 4%, 0) scale(1.06);
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(237, 233, 222, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 233, 222, 0.04) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 32% 24%, #000 24%, transparent 74%);
  mask-image: radial-gradient(ellipse 80% 90% at 32% 24%, #000 24%, transparent 74%);
}

.grain {
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Orbital artwork */
.orbits {
  position: absolute;
  top: 50%;
  right: clamp(-260px, -12vw, -80px);
  width: min(56vw, 760px);
  /* pull up by half the rendered width to center on top:50% */
  margin-top: max(-28vw, -380px);
  opacity: 0.95;
  pointer-events: none;
  will-change: transform;
}

.orbits .ring {
  fill: none;
  stroke: rgba(237, 233, 222, 0.1);
}

.orbits .ring--dash {
  stroke: rgba(196, 161, 90, 0.4);
  stroke-dasharray: 2 11;
  animation: spin 90s linear infinite;
  transform-origin: 320px 320px;
}

.orbits .rot {
  animation: spin 70s linear infinite;
  transform-origin: 320px 320px;
}

.orbits .rot--slow {
  animation-duration: 130s;
  animation-direction: reverse;
}

.orbits .north-star {
  animation: twinkle 5s ease-in-out infinite;
  transform-origin: 320px 84px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero .eyebrow {
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: rise-fade 0.9s var(--ease-out) 0.15s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(3rem, 7.4vw, 5.9rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--dk-text);
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero-title .line > span {
  display: inline-block;
  transform: translateY(112%);
  animation: rise 1.05s var(--ease-out) forwards;
}

.hero-title .line:nth-child(1) > span { animation-delay: 0.22s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.34s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.46s; }

.hero-title em {
  font-style: inherit;
  font-weight: inherit;
  color: inherit;
}

@keyframes rise {
  to {
    transform: translateY(0);
  }
}

@keyframes rise-fade {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-lead {
  max-width: 620px;
  margin-top: 2rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  opacity: 0;
  animation: rise-fade 0.9s var(--ease-out) 0.72s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 2.6rem;
  opacity: 0;
  animation: rise-fade 0.9s var(--ease-out) 0.88s forwards;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 3.2rem;
  font-size: 0.92rem;
  opacity: 0;
  animation: rise-fade 0.9s var(--ease-out) 1.05s forwards;
}

.hero-meta a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--dk-body);
  transition: color 0.3s;
}

.hero-meta a:hover {
  color: var(--gold-bright);
}

.hero-meta svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(237, 233, 222, 0.5);
  opacity: 0;
  animation: rise-fade 1s var(--ease-out) 1.4s forwards;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2.2s var(--ease) infinite;
  transform-origin: top;
}

@keyframes cue {
  0% {
    transform: scaleY(0);
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
  }
  55% {
    transform-origin: bottom;
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* Compact hero for inner pages */
.hero--sub {
  min-height: 0;
  padding: 172px 0 96px;
  align-items: flex-end;
}

.hero--sub .hero-title {
  font-size: clamp(2.5rem, 5vw, 4.1rem);
}

.hero--sub .orbits {
  opacity: 0.5;
  width: min(48vw, 620px);
  margin-top: max(-24vw, -310px);
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  border-block: 1px solid var(--dk-line);
  padding-block: 20px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-list {
  display: flex;
  align-items: center;
  flex: none;
}

.marquee-list li {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(237, 233, 222, 0.66);
  white-space: nowrap;
}

.marquee-list li::after {
  content: "";
  width: 11px;
  height: 11px;
  margin-inline: 34px;
  background: var(--star) center / contain no-repeat;
  opacity: 0.85;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Intro (home) ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.intro-grid .title-lg {
  max-width: 560px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-block: 0.4rem 1.9rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 2px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}

.check-list li::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--star) center / contain no-repeat;
}

/* ---------- Bento cards (home) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(1.75rem, 3vw, 2.4rem);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 161, 90, 0.45);
  box-shadow: 0 26px 54px -30px rgba(14, 21, 38, 0.36);
}

.card--w3 {
  grid-column: span 3;
}

.card--w2 {
  grid-column: span 2;
}

.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(196, 161, 90, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.glow:hover::after {
  opacity: 1;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gold-soft);
  border: 1px solid rgba(196, 161, 90, 0.28);
  color: var(--gold-ink);
  margin-bottom: 6px;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}

.card:hover .card-icon {
  background: var(--gold);
  color: var(--deep);
  transform: scale(1.06) rotate(-4deg);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 540;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.96rem;
  flex: 1;
}

.card .text-link {
  margin-top: 10px;
  font-size: 0.88rem;
  align-self: flex-start;
}

/* ---------- Pillars (home, dark) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.75rem, 6.5vw, 6.5rem);
  align-items: center;
}

.split .section-head {
  margin-bottom: 0;
}

.split .btn {
  margin-top: 2.2rem;
}

.pillars {
  counter-reset: pillar;
  border-top: 1px solid var(--dk-line);
}

.pillar {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 20px;
  padding: 28px 6px;
  border-bottom: 1px solid var(--dk-line);
  transition: background-color 0.4s var(--ease), padding-left 0.4s var(--ease);
}

.pillar:hover {
  background: rgba(237, 233, 222, 0.03);
  padding-left: 16px;
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 460;
  font-style: italic;
  color: var(--gold);
  line-height: 1.1;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 520;
  color: var(--dk-text);
  margin-bottom: 6px;
}

.pillar p {
  font-size: 0.95rem;
}

/* ---------- CTA panel ---------- */
.cta-wrap {
  padding-block: var(--sec);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(3.25rem, 7vw, 5.5rem) clamp(1.75rem, 5vw, 4rem);
  text-align: center;
  color: var(--dk-body);
  background:
    radial-gradient(760px 380px at 50% -18%, rgba(196, 161, 90, 0.22), transparent 68%),
    radial-gradient(700px 420px at 8% 118%, rgba(30, 51, 99, 0.6), transparent 66%),
    linear-gradient(150deg, var(--deep-2), var(--deep));
  border: 1px solid rgba(196, 161, 90, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: 0 48px 110px -48px rgba(10, 16, 31, 0.65);
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(237, 233, 222, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 233, 222, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 90% at 50% 0%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 90% at 50% 0%, #000 25%, transparent 80%);
  pointer-events: none;
}

.cta-panel > * {
  position: relative;
}

.cta-star {
  width: 36px;
  height: 36px;
  margin: 0 auto 1.6rem;
  color: var(--gold);
  animation: twinkle 5s ease-in-out infinite;
}

.cta-panel h2 {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--dk-text);
  max-width: 720px;
  margin-inline: auto;
}

.cta-panel h2 em {
  font-style: inherit;
  color: inherit;
}

.cta-panel p {
  max-width: 560px;
  margin: 1.1rem auto 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 2.4rem;
}

.cta-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  margin-top: 2.2rem;
  font-size: 0.92rem;
}

.cta-meta a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: color 0.3s;
}

.cta-meta a:hover {
  color: var(--gold-bright);
}

.cta-meta svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

/* ---------- Services page ---------- */
.svc-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.rail {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  padding-left: 18px;
}

.rail a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  border-left: 2px solid var(--line-soft);
  transition: color 0.3s, border-color 0.3s, background-color 0.3s, padding-left 0.3s var(--ease);
}

.rail a i {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-ink);
  opacity: 0.7;
}

.rail a:hover {
  color: var(--ink);
  background: rgba(196, 161, 90, 0.07);
}

.rail a.is-active {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold-soft);
  padding-left: 24px;
}

.svc-list {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 6vw, 5.5rem);
}

.svc {
  scroll-margin-top: 140px;
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--line-soft);
}

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

.svc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 1.1rem;
}

.svc-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 420;
  font-size: clamp(2.6rem, 5vw, 3.9rem);
  line-height: 0.9;
  color: rgba(196, 161, 90, 0.34);
  flex: none;
}

.svc .card-icon {
  margin-bottom: 1.2rem;
}

.svc h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 520;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.svc > p {
  max-width: 640px;
  margin-bottom: 1.9rem;
}

.chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.chip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.chip::before {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: 0.34em;
  background: var(--star) center / contain no-repeat;
}

.chip:hover {
  border-color: rgba(196, 161, 90, 0.5);
  transform: translateX(4px);
  box-shadow: 0 10px 22px -16px rgba(14, 21, 38, 0.3);
}

/* ---------- Approach timeline ---------- */
.timeline {
  max-width: 720px;
  margin-inline: auto;
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding-bottom: 34px;
}

.step::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 54px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(rgba(196, 161, 90, 0.45), rgba(196, 161, 90, 0.08));
}

.step:last-child {
  padding-bottom: 0;
}

.step:last-child::before {
  display: none;
}

.step-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(196, 161, 90, 0.45);
  background: rgba(196, 161, 90, 0.08);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--gold);
  transition: background-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.step:hover .step-num {
  background: var(--gold);
  color: var(--deep);
  transform: scale(1.07);
}

.step-body {
  align-self: center;
}

.step-body h3 {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
  color: var(--dk-text);
}

/* ---------- Callout ---------- */
.callout {
  display: flex;
  gap: 22px;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 54px -40px rgba(14, 21, 38, 0.35);
}

.callout svg {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--gold-ink);
  margin-top: 3px;
}

.callout h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 8px;
}

.callout p {
  font-size: 0.98rem;
}

/* ---------- About page ---------- */
.chips-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips-cloud li {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease),
    color 0.35s var(--ease), transform 0.35s var(--ease);
}

.chips-cloud li:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-3px) rotate(-1deg);
}

.conclusion {
  margin-top: 2.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 480;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
}

.conclusion strong {
  color: var(--gold-ink);
  font-weight: 520;
}

.mission-statement {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.mission-statement .title-lg {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.22;
}

.mission-statement .lead {
  max-width: 640px;
  margin: 1.75rem auto 0;
}

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

.tile {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.tile::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--star) center / contain no-repeat;
}

.tile:hover {
  border-color: rgba(196, 161, 90, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -22px rgba(14, 21, 38, 0.32);
}

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

.value-card {
  position: relative;
  padding: 30px 28px;
  background: rgba(237, 233, 222, 0.03);
  border: 1px solid var(--dk-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), background-color 0.45s var(--ease);
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 161, 90, 0.45);
  background: rgba(237, 233, 222, 0.05);
}

.value-card .card-icon {
  background: rgba(196, 161, 90, 0.12);
  border-color: rgba(196, 161, 90, 0.3);
  color: var(--gold);
}

.value-card:hover .card-icon {
  background: var(--gold);
  color: var(--deep);
  transform: scale(1.06) rotate(-4deg);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 520;
  color: var(--dk-text);
  margin: 14px 0 8px;
}

.value-card p {
  font-size: 0.93rem;
}

.aud-card {
  padding: clamp(1.9rem, 3.5vw, 2.6rem);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 64px -44px rgba(14, 21, 38, 0.4);
}

.aud-card > p {
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.aud-card .chips {
  grid-template-columns: 1fr 1fr;
}

.aud-card .conclusion {
  margin-top: 1.9rem;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.info-card {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 3.5vw, 2.75rem);
  border-radius: var(--radius-lg);
  color: var(--dk-body);
  background:
    radial-gradient(560px 300px at 90% -10%, rgba(196, 161, 90, 0.2), transparent 68%),
    radial-gradient(500px 360px at 0% 110%, rgba(30, 51, 99, 0.55), transparent 70%),
    linear-gradient(160deg, var(--deep-2), var(--deep));
  border: 1px solid rgba(196, 161, 90, 0.26);
  box-shadow: 0 40px 90px -46px rgba(10, 16, 31, 0.6);
}

.info-card .grain {
  opacity: 0.12;
}

.info-card > * {
  position: relative;
}

.info-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 520;
  color: var(--dk-text);
  margin: 0.9rem 0 0.6rem;
}

.info-card > p {
  font-size: 0.95rem;
  margin-bottom: 1.9rem;
}

.info-rows {
  display: flex;
  flex-direction: column;
}

.info-row {
  display: flex;
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid var(--dk-line);
}

.info-row svg {
  flex: none;
  width: 19px;
  height: 19px;
  color: var(--gold);
  margin-top: 3px;
}

.info-row h3 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(237, 233, 222, 0.55);
  margin-bottom: 3px;
}

.info-row p,
.info-row a {
  font-size: 0.97rem;
  color: var(--dk-text);
  line-height: 1.55;
}

.info-row a:hover {
  color: var(--gold-bright);
}

.info-row .text-link {
  font-size: 0.85rem;
  color: var(--gold);
  margin-top: 8px;
}

.info-row .text-link svg {
  width: 14px;
  height: 14px;
  margin: 0;
}

/* Form */
.form-card {
  padding: clamp(1.9rem, 4vw, 3rem);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -52px rgba(14, 21, 38, 0.45);
}

.form-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 520;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form-card > p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.field label b {
  color: var(--gold-ink);
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  width: 100%;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 138px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(107, 116, 135, 0.55);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7487' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 44px;
  cursor: pointer;
}

.seg {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.seg label {
  all: unset;
  cursor: pointer;
}

.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.seg span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--body);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  transition: all 0.3s var(--ease);
}

.seg span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  transition: all 0.3s var(--ease);
}

.seg input:checked + span {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold-soft);
  font-weight: 600;
}

.seg input:checked + span::before {
  background: var(--gold);
  border-color: var(--gold);
}

.seg input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
}

.form-foot small {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.55;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 100;
  transform: translate(-50%, 24px);
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: min(92vw, 520px);
  padding: 16px 22px;
  background: var(--deep-2);
  border: 1px solid rgba(196, 161, 90, 0.4);
  border-radius: 14px;
  color: var(--dk-text);
  font-size: 0.92rem;
  line-height: 1.5;
  box-shadow: 0 26px 60px -20px rgba(10, 16, 31, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.toast svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--gold);
}

/* Contact strip */
.contact-strip {
  text-align: center;
  padding-bottom: var(--sec);
}

.contact-strip p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 480;
  color: var(--ink);
}

.contact-strip a {
  color: var(--gold-ink);
  font-style: italic;
  white-space: nowrap;
  transition: color 0.3s;
}

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

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: #070c18;
  color: var(--dk-body);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 161, 90, 0.5), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1fr;
  gap: clamp(2.25rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.75rem, 5vw, 4rem);
}

.footer .brand {
  color: var(--dk-text);
}

.footer-tag {
  margin-top: 1.3rem;
  max-width: 340px;
  font-size: 0.92rem;
  line-height: 1.8;
}

.footer-tag b {
  color: var(--gold);
  font-weight: 400;
  padding-inline: 7px;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(237, 233, 222, 0.5);
  margin-bottom: 1.15rem;
}

.footer-col a,
.footer-col p,
.footer-col span {
  display: block;
  font-size: 0.94rem;
  padding-block: 5px;
  line-height: 1.65;
}

.footer-col a {
  width: fit-content;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 26px;
  border-top: 1px solid var(--dk-line);
  font-size: 0.85rem;
}

.to-top {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--dk-line);
  color: var(--dk-text);
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease),
    color 0.35s var(--ease), transform 0.35s var(--ease);
}

.to-top svg {
  width: 18px;
  height: 18px;
}

.to-top:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--deep);
  transform: translateY(-3px);
}

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-stagger] > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

[data-stagger].is-in > * {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .card--w3,
  .card--w2 {
    grid-column: span 1;
  }

  .bento .card--w3:first-child {
    grid-column: span 2;
  }

  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .svc-layout {
    display: block;
  }

  .rail {
    position: sticky;
    top: 77px;
    z-index: 40;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 14px 4px;
    margin-bottom: 2.5rem;
    background: rgba(245, 242, 234, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
  }

  .rail::-webkit-scrollbar {
    display: none;
  }

  .rail-label {
    display: none;
  }

  .rail a {
    flex: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 18px;
    background: var(--paper-2);
  }

  .rail a.is-active {
    border-color: var(--gold);
    padding-left: 18px;
    color: var(--ink);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .burger {
    display: block;
  }

  .header-inner {
    height: 72px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid .title-lg {
    max-width: none;
  }

  .orbits {
    right: -34vw;
    width: 96vw;
    margin-top: -48vw;
    opacity: 0.32;
  }

  .hero--sub .orbits {
    opacity: 0.22;
  }
}

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

  .bento .card--w3:first-child {
    grid-column: span 1;
  }

  .chips {
    grid-template-columns: 1fr;
  }

  .aud-card .chips {
    grid-template-columns: 1fr;
  }

  .tiles {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
  }

  .header .btn {
    display: none;
  }

  .hero {
    padding-top: 128px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .scroll-cue {
    display: none;
  }

  .svc-head {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .form-foot {
    flex-direction: column-reverse;
    align-items: stretch;
    text-align: center;
  }

  .form-foot small {
    max-width: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  .hero-title .line > span,
  .hero .eyebrow,
  .hero-lead,
  .hero-actions,
  .hero-meta,
  .scroll-cue {
    opacity: 1;
    transform: none;
    animation: none;
  }

  [data-reveal],
  [data-stagger] > * {
    opacity: 1;
    transform: none;
  }
}
