:root {
  --bg: #f2eadc;
  --bg-alt: #e6efe8;
  --surface: rgba(255, 252, 247, 0.78);
  --surface-strong: rgba(18, 37, 31, 0.92);
  --text: #18302a;
  --muted: #5d6b64;
  --line: rgba(24, 48, 42, 0.12);
  --forest: #18302a;
  --forest-soft: #2e5548;
  --moss: #5f8a63;
  --gold: #b98035;
  --clay: #b65f35;
  --cream: #fffaf3;
  --white: #f8f8f3;
  --shadow: 0 22px 60px rgba(24, 48, 42, 0.12);
  --teal: #67cbb3;
  --teal-soft: rgba(103, 203, 179, 0.22);
  --amber-soft: rgba(217, 156, 86, 0.2);
  --cursor-x: 50%;
  --cursor-y: 50%;
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1220px;
  --heading-font: "Georgia", "Times New Roman", serif;
  --body-font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--body-font);
  background:
    radial-gradient(circle at top left, rgba(185, 128, 53, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(95, 138, 99, 0.14), transparent 32%),
    linear-gradient(180deg, #f5eddc 0%, #f2efe7 48%, #edf3ed 100%);
}

body.modal-open {
  overflow: hidden;
}

body.is-booting {
  overflow: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 85%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at var(--cursor-x) var(--cursor-y),
      rgba(103, 203, 179, 0.24) 0%,
      rgba(103, 203, 179, 0.12) 10%,
      transparent 24%
    ),
    radial-gradient(
      circle at calc(var(--cursor-x) + 10%) calc(var(--cursor-y) - 8%),
      rgba(217, 156, 86, 0.16) 0%,
      transparent 18%
    );
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
  transition: opacity 240ms ease;
}

::selection {
  background: rgba(103, 203, 179, 0.28);
}

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

button,
select {
  font: inherit;
}

input,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 56px;
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.is-booting .page-shell {
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: auto;
}

.brand-loader {
  display: none;
}

body.is-loaded .brand-loader {
  display: none;
}

.site-header {
  position: sticky;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(24, 48, 42, 0.08);
  z-index: 30;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(103, 203, 179, 0.22), transparent);
  transform: translateX(-100%);
  animation: headerScan 9s linear infinite;
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--clay), var(--gold));
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 26px;
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--clay);
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

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

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(24, 48, 42, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 24px rgba(24, 48, 42, 0.06);
}

.language-picker span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.language-picker select {
  min-width: 92px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.thanks-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--clay), #d38a46);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(182, 95, 53, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(182, 95, 53, 0.28);
}

.button-secondary {
  background: linear-gradient(135deg, var(--forest), var(--forest-soft));
  box-shadow: 0 14px 24px rgba(24, 48, 42, 0.2);
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-wide {
  width: 100%;
}

.glass-card,
.glass-dark,
.page-hero,
.site-footer {
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.glass-card,
.page-hero,
.site-footer {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.16)),
    var(--surface);
}

.glass-dark {
  background:
    linear-gradient(135deg, rgba(103, 203, 179, 0.08), transparent 42%, rgba(217, 156, 86, 0.08)),
    linear-gradient(180deg, rgba(18, 37, 31, 0.98) 0%, rgba(34, 67, 59, 0.94) 100%);
  color: var(--white);
}

.glass-card,
.glass-dark,
.page-hero,
.site-header,
.site-footer,
.gallery-card-button {
  position: relative;
  overflow: hidden;
}

:where(.glass-card, .glass-dark, .page-hero, .site-header, .site-footer, .gallery-card-button) > * {
  position: relative;
  z-index: 1;
}

main {
  display: grid;
  gap: 32px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 22px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -8% -3% auto;
  height: 88%;
  border-radius: 42px;
  background:
    radial-gradient(circle at 18% 30%, rgba(103, 203, 179, 0.18), transparent 20%),
    radial-gradient(circle at 80% 20%, rgba(217, 156, 86, 0.18), transparent 16%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  filter: blur(10px);
  z-index: -1;
  animation: heroPulse 12s ease-in-out infinite alternate;
}

.hero-copy,
.hero-panel,
.page-hero {
  padding: 36px;
  border-radius: var(--radius-xl);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.hero-copy:hover,
.hero-panel:hover,
.page-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 34px 78px rgba(24, 48, 42, 0.16);
}

.hero-copy::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: auto -12% -36% 42%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 203, 179, 0.22) 0%, transparent 68%);
  filter: blur(10px);
  pointer-events: none;
  animation: haloFloat 10s ease-in-out infinite;
}

.hero-panel::before {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -26%;
  width: min(34vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, rgba(103, 203, 179, 0.24) 0 2px, transparent 2px 40px),
    conic-gradient(from 0deg, transparent 0 58%, rgba(103, 203, 179, 0.32) 66%, transparent 74%);
  opacity: 0.5;
  pointer-events: none;
  animation: radarSpin 18s linear infinite;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: 9%;
  bottom: 14%;
  width: min(17vw, 180px);
  aspect-ratio: 1;
  border: 1px solid rgba(103, 203, 179, 0.26);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(103, 203, 179, 0.06),
    0 0 0 48px rgba(103, 203, 179, 0.03);
  pointer-events: none;
  animation: radarPulse 6s ease-in-out infinite;
}

.signal-stage {
  display: none;
}

.eyebrow,
.panel-label,
.panel-tag {
  margin: 0 0 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.eyebrow,
.panel-tag {
  color: var(--clay);
}

.glass-dark .panel-label,
.glass-dark .panel-tag {
  color: rgba(248, 248, 243, 0.72);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.02;
  font-family: var(--heading-font);
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5rem);
}

h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h3 {
  font-size: 1.48rem;
}

h4 {
  font-size: 1.34rem;
}

p,
li {
  line-height: 1.75;
}

.hero-text,
.panel-copy,
.section-intro p,
.glass-card p,
.glass-dark p,
.page-hero p,
.site-footer span,
.contact-list {
  color: var(--muted);
}

.glass-dark p,
.glass-dark li {
  color: rgba(248, 248, 243, 0.84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 24px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span,
.panel-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(182, 95, 53, 0.1);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.metric-grid article,
.detail-grid article,
.result-grid article,
.stat-ribbon article {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.glass-dark .metric-grid article,
.glass-dark .result-grid article {
  background: rgba(255, 255, 255, 0.08);
}

.metric-grid strong,
.result-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.5rem;
}

.metric-grid span,
.detail-grid span,
.result-grid span,
.stat-ribbon span {
  font-size: 0.9rem;
}

.hero-notes,
.contact-list,
.bullet-output ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.ticker-band {
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 10px 0 4px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: drift 20s linear infinite;
}

.ticker-track span::after {
  content: "•";
  margin-left: 20px;
  color: rgba(24, 48, 42, 0.3);
}

.section {
  display: grid;
  gap: 24px;
}

.section-intro {
  display: grid;
  gap: 8px;
}

.lens-layout,
.quote-layout,
.scenario-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.lens-card,
.product-console,
.quote-form,
.quote-result,
.scenario-panel {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.view-toggle,
.scenario-switch,
.product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toggle-button,
.scenario-button,
.product-chip {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.toggle-button.is-active,
.scenario-button.is-active,
.product-chip.is-active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}

.highlight-box,
.product-panel {
  margin-top: 18px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
}

.bullet-output ul {
  margin-top: 14px;
}

.panel-tag {
  width: fit-content;
  margin-bottom: 14px;
}

.panel-tag,
.panel-label {
  font-weight: 700;
}

.product-panel h4 {
  margin-bottom: 18px;
}

.detail-grid,
.result-grid,
.stat-ribbon,
.module-grid,
.supply-grid,
.compliance-grid,
.deal-room-grid,
.contact-grid {
  display: grid;
  gap: 16px;
}

.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

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

.quote-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.quote-form select,
.intake-form input,
.intake-form select,
.intake-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.intake-form textarea {
  resize: vertical;
  min-height: 120px;
}

.quote-form .button {
  grid-column: 1 / -1;
}

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

.trace-step {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.trace-step span,
.process-rail span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(182, 95, 53, 0.12);
  color: var(--clay);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.page-hero {
  display: grid;
  gap: 14px;
}

.page-hero-split {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: stretch;
  gap: 24px;
}

.page-hero-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 20px;
  align-items: end;
}

.page-hero-visual,
.section-photo,
.hero-media-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 240px;
  background: rgba(24, 48, 42, 0.08);
  box-shadow: 0 18px 36px rgba(24, 48, 42, 0.12);
}

.page-hero-visual img,
.section-photo img,
.hero-media-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-visual::after,
.section-photo::after,
.hero-media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 20, 17, 0.04), rgba(11, 20, 17, 0.56));
  pointer-events: none;
}

.page-hero-visual figcaption,
.section-photo figcaption,
.hero-media-card figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  gap: 4px;
  z-index: 1;
}

.page-hero-visual figcaption span,
.section-photo figcaption span,
.hero-media-card figcaption span {
  color: rgba(248, 248, 243, 0.74);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.page-hero-visual figcaption strong,
.section-photo figcaption strong,
.hero-media-card figcaption strong {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.3;
}

.hero-media-card {
  min-height: 232px;
  margin: 10px 0 18px;
}

.stat-ribbon {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.stat-ribbon strong {
  display: block;
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 1rem;
}

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

.module-grid article,
.supply-grid article,
.compliance-grid article,
.deal-room-grid article,
.contact-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

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

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

.process-rail article {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.deal-room-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scenario-layout {
  align-items: start;
}

.scenario-switch {
  align-content: start;
}

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

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

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

.intake-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-xl);
  order: 2;
  scroll-margin-top: 120px;
  transition: box-shadow 220ms ease, border-color 220ms ease, transform 220ms ease;
}

body[data-page="contact"] .intake-form,
body[data-page="contact"] .intake-summary,
body[data-page="contact"] .intake-tip-card {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.intake-form.is-targeted {
  border-color: rgba(103, 203, 179, 0.38);
  box-shadow: 0 0 0 4px rgba(103, 203, 179, 0.14), 0 28px 64px rgba(24, 48, 42, 0.16);
  transform: translateY(-2px);
}

#scenario-select {
  scroll-margin-top: 160px;
}

.form-block.is-targeted {
  border-color: rgba(103, 203, 179, 0.34);
  box-shadow: 0 0 0 4px rgba(103, 203, 179, 0.12), 0 20px 44px rgba(24, 48, 42, 0.1);
}

.form-start-banner {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(103, 203, 179, 0.1), rgba(217, 156, 86, 0.1)),
    rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(103, 203, 179, 0.22);
}

.form-start-banner h3,
.form-start-banner p {
  margin: 0;
}

.form-start-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-start-points span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--forest);
  font-weight: 700;
}

.form-block {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(24, 48, 42, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.42);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.form-block-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
}

.form-block-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(182, 95, 53, 0.16), rgba(185, 128, 53, 0.18));
  color: var(--clay);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.form-block-head p {
  margin: 8px 0 0;
}

.form-grid {
  display: grid;
  gap: 16px;
}

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

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

.intake-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.intake-form input[type="file"] {
  padding: 12px;
  background: rgba(255, 255, 255, 0.56);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice-group {
  display: grid;
  gap: 12px;
}

.field-title {
  margin: 0;
  font-weight: 700;
}

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

.choice-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.choice-grid label:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 203, 179, 0.28);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 30px rgba(24, 48, 42, 0.08);
}

.choice-grid input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.scenario-panels {
  display: grid;
}

.scenario-panel-block {
  display: none;
}

.scenario-panel-block.is-active {
  display: grid;
}

.form-helper {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.intake-sidebar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-content: start;
  order: 1;
}

.intake-summary,
.intake-tip-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  height: 100%;
}

.intake-summary {
  position: static;
}

.summary-line {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.summary-line:first-of-type {
  margin-top: 8px;
}

.summary-line span {
  color: rgba(248, 248, 243, 0.72);
}

.summary-line strong {
  max-width: 60%;
  text-align: right;
  line-height: 1.55;
}

.summary-advice {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 248, 243, 0.84);
  line-height: 1.7;
}

.gallery-shell {
  padding: 26px;
  border-radius: var(--radius-xl);
}

.gallery-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-filter {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.gallery-filter.is-active {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--white);
}

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

.gallery-card {
  min-width: 0;
  perspective: 1600px;
}

.gallery-card-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 34px rgba(24, 48, 42, 0.08);
  cursor: pointer;
  text-align: left;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.gallery-card-button img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  transform: translateZ(0);
  transition: transform 220ms ease;
}

.gallery-card-button:hover img,
.gallery-card-button.is-tilting img {
  transform: scale(1.04);
}

.gallery-card-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px rgba(24, 48, 42, 0.14);
}

.gallery-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(24, 48, 42, 0.82);
  color: var(--white);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateZ(0);
  transition: transform 220ms ease;
}

.gallery-card-copy {
  display: grid;
  gap: 6px;
  padding: 16px 16px 18px;
  transform: translateZ(0);
  transition: transform 220ms ease;
}

.gallery-card-copy strong {
  font-size: 1rem;
}

.gallery-card-copy span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.gallery-card-button.is-tilting .gallery-card-copy,
.gallery-card-button.is-tilting .gallery-badge {
  transform: none;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(14, 28, 24, 0.76);
  backdrop-filter: blur(12px);
  z-index: 120;
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal-dialog {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  width: min(1120px, 100%);
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 250, 243, 0.94);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
}

.gallery-modal-dialog img {
  width: 100%;
  max-height: 76vh;
  border-radius: 22px;
  object-fit: cover;
  background: rgba(24, 48, 42, 0.06);
}

.gallery-modal-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px 10px 14px 6px;
}

.gallery-modal-copy p {
  margin: 0;
  color: var(--muted);
}

.gallery-modal-copy a {
  width: fit-content;
  margin-top: 8px;
  color: var(--clay);
  font-weight: 700;
}

.gallery-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--forest);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  margin-top: 28px;
  border-radius: 24px;
}

.site-footer strong {
  display: block;
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

body[data-page="home"] .site-nav a[href="/index.html"]::after,
body[data-page="catalog"] .site-nav a[href="/catalog.html"]::after,
body[data-page="investor"] .site-nav a[href="/investor.html"]::after,
body[data-page="contact"] .site-nav a[href="/contact.html"]::after {
  transform: scaleX(1);
}

body[data-page="home"] .site-nav a[href="/index.html"],
body[data-page="catalog"] .site-nav a[href="/catalog.html"],
body[data-page="investor"] .site-nav a[href="/investor.html"],
body[data-page="contact"] .site-nav a[href="/contact.html"] {
  font-weight: 700;
}

.fx-reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  filter: blur(12px);
  transition:
    opacity 760ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    filter 760ms ease var(--reveal-delay, 0ms);
}

.fx-reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.tilt-surface {
  transform:
    perspective(1400px)
    rotateX(var(--tilt-rotate-x, 0deg))
    rotateY(var(--tilt-rotate-y, 0deg))
    translateY(var(--tilt-lift, 0px));
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 220ms ease, border-color 220ms ease;
}

.tilt-surface > * {
  position: relative;
  z-index: 1;
}

.tilt-surface::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--shine-x, 24%) var(--shine-y, 18%), rgba(255, 255, 255, 0.34), transparent 18%),
    linear-gradient(135deg, rgba(103, 203, 179, 0.16), transparent 38%, transparent 68%, rgba(217, 156, 86, 0.16));
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.tilt-surface.is-tilting {
  border-color: rgba(103, 203, 179, 0.28);
  box-shadow: 0 34px 74px rgba(24, 48, 42, 0.18);
}

.tilt-surface.is-tilting::after {
  opacity: 1;
}

.cursor-aura,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 140;
  opacity: 0;
  transition:
    opacity 220ms ease,
    width 200ms ease,
    height 200ms ease,
    margin 200ms ease,
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}

.cursor-aura {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border: 1px solid rgba(24, 48, 42, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 203, 179, 0.16) 0%, rgba(103, 203, 179, 0.08) 40%, transparent 68%);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 34px rgba(103, 203, 179, 0.18);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 24px rgba(103, 203, 179, 0.5);
}

.cursor-aura.is-visible,
.cursor-dot.is-visible {
  opacity: 1;
}

.cursor-aura.is-active {
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-color: rgba(103, 203, 179, 0.34);
  background: radial-gradient(circle, rgba(103, 203, 179, 0.2) 0%, rgba(103, 203, 179, 0.1) 44%, transparent 72%);
  box-shadow: 0 0 40px rgba(103, 203, 179, 0.26);
}

.cursor-aura.is-pressed {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
}

.cursor-dot.is-active {
  background: var(--teal);
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-30%);
  }
}

@keyframes headerScan {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes heroPulse {
  from {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  to {
    transform: translateY(18px) scale(1.04);
    opacity: 1;
  }
}

@keyframes haloFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-12px, -16px, 0) scale(1.06);
  }
}

@keyframes radarSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes radarPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (pointer: coarse) {
  body::after {
    display: none;
  }
}

@media (max-width: 1120px) {
  .site-header,
  .hero,
  .page-hero-split,
  .section-head,
  .lens-layout,
  .quote-layout,
  .scenario-layout,
  .gallery-topbar,
  .module-grid,
  .supply-grid,
  .compliance-grid,
  .trace-grid,
  .deal-room-grid,
  .intake-layout,
  .contact-grid,
  .process-rail {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 28px;
  }

  .site-nav,
  .header-tools {
    flex-wrap: wrap;
    width: 100%;
  }

  .intake-sidebar {
    grid-template-columns: 1fr;
  }

  .quote-form,
  .stat-ribbon,
  .detail-grid,
  .result-grid,
  .choice-grid,
  .form-grid-2,
  .form-grid-3,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 14px;
  }

  .site-header {
    position: static;
    padding: 16px;
  }

  .brand {
    width: 100%;
  }

  .brand-copy span {
    white-space: normal;
  }

  .button,
  .button-secondary,
  .button-ghost {
    width: 100%;
  }

  .hero-copy,
  .hero-panel,
  .page-hero,
  .intake-form,
  .intake-summary,
  .intake-tip-card,
  .lens-card,
  .product-console,
  .quote-form,
  .quote-result,
  .scenario-panel,
  .module-grid article,
  .supply-grid article,
  .compliance-grid article,
  .trace-step,
  .deal-room-grid article,
  .contact-card,
  .process-rail article,
  .site-footer {
    padding: 22px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }

  h2 {
    max-width: 100%;
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .quote-form,
  .stat-ribbon,
  .detail-grid,
  .result-grid,
  .metric-grid,
  .choice-grid,
  .form-grid-2,
  .form-grid-3,
  .gallery-grid,
  .gallery-modal-dialog {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy::before,
  .page-hero::before {
    width: 220px;
    height: 220px;
    inset: auto -16% -28% 48%;
  }

  .hero-panel::before {
    width: 240px;
  }

  .hero-panel::after {
    width: 120px;
  }

  .gallery-modal {
    padding: 16px;
  }

  .page-hero-visual,
  .section-photo,
  .hero-media-card {
    min-height: 220px;
  }

  .gallery-modal-dialog img {
    max-height: 48vh;
  }

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

  .summary-line {
    flex-direction: column;
  }

  .summary-line strong {
    max-width: 100%;
    text-align: left;
  }
}

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

  .site-header::before,
  .hero::before,
  .hero-copy::before,
  .hero-panel::before,
  .hero-panel::after,
  .page-hero::before,
  .ticker-track,
  .cursor-aura,
  .cursor-dot {
    animation: none !important;
    transition: none !important;
  }

  .fx-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
