:root {
  --ink: #f7f3e9;
  --muted: #aaa69d;
  --faint: #77736b;
  --black: #080909;
  --surface: #101111;
  --surface-2: #171716;
  --line: rgba(255, 255, 255, 0.1);
  --gold: #e6b74e;
  --gold-bright: #ffd977;
  --gold-dark: #9b6a17;
  --gold-wash: rgba(230, 183, 78, 0.12);
  --silver: #d9d9d7;
  --danger: #ef776f;
  --success: #7ed6a4;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 5%, rgba(230, 183, 78, 0.09), transparent 24rem),
    var(--black);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  color: #070707;
  background: var(--gold-bright);
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(8, 9, 9, 0.78);
  backdrop-filter: blur(18px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(8, 9, 9, 0.94);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.brand img,
.footer-brand img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 0 26px rgba(230, 183, 78, 0.11);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav a {
  padding: 8px 13px;
  color: var(--muted);
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 720;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta,
.button-primary,
.button-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 820;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta,
.button-primary {
  color: #0a0a09;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 12px 32px rgba(230, 183, 78, 0.18);
}

.nav-cta:hover,
.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(230, 183, 78, 0.28);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.button-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 183, 78, 0.45);
  background: var(--gold-wash);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  content: "";
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-panel {
  display: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 1px;
  content: "";
  background: currentColor;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 7.3vw, 6.3rem);
  font-weight: 860;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 4.6vw, 4.3rem);
  font-weight: 830;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

p {
  color: var(--muted);
}

.text-gold {
  color: var(--gold-bright);
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 72px 0 84px;
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(360px, 0.93fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 670px;
  margin-bottom: 32px;
  font-size: clamp(1.04rem, 1.6vw, 1.25rem);
}

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

.scope-note {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 20px;
  margin-top: 28px;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 690;
  letter-spacing: 0.03em;
}

.scope-note span::before {
  margin-right: 8px;
  color: var(--gold);
  content: "●";
  font-size: 0.54rem;
  vertical-align: 2px;
}

.terminal-frame {
  position: relative;
  min-height: 550px;
}

.hero-photo {
  width: 100%;
  height: 530px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  filter: saturate(0.72) contrast(1.08) brightness(0.72);
  box-shadow: var(--shadow);
}

.terminal-frame::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(8, 9, 9, 0.03), rgba(8, 9, 9, 0.62));
}

.market-card {
  position: absolute;
  z-index: 2;
  right: -24px;
  bottom: 28px;
  width: min(330px, 72%);
  padding: 23px;
  border: 1px solid rgba(255, 217, 119, 0.24);
  border-radius: 20px;
  background: rgba(13, 14, 14, 0.89);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(16px);
}

.market-card-top,
.market-row,
.section-heading-row,
.legal-meta,
.form-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.market-card-top {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
}

.live-dot::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(126, 214, 164, 0.1);
}

.market-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 750;
}

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

.market-row strong {
  color: var(--gold-bright);
  font-size: 0.76rem;
}

.status-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.status-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
}

.status-item {
  min-height: 118px;
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.status-item:first-child {
  padding-left: 0;
}

.status-item:last-child {
  border-right: 0;
}

.status-item strong {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 1.05rem;
}

.status-item span {
  color: var(--faint);
  font-size: 0.79rem;
}

.section {
  padding: 112px 0;
}

.section-soft {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 58px;
}

.section-heading p:last-child {
  max-width: 650px;
  margin-bottom: 0;
}

.section-heading-row {
  align-items: flex-end;
  margin-bottom: 54px;
}

.section-heading-row .section-heading {
  margin-bottom: 0;
}

.section-index {
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.workspace-map {
  display: grid;
  grid-template-columns: 0.82fr 1.35fr 0.82fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.tool-rail {
  display: grid;
  align-content: stretch;
}

.tool-item {
  min-height: 146px;
  padding: 25px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.tool-item:last-child {
  border-bottom: 0;
}

.tool-rail:first-child .tool-item {
  border-right: 1px solid var(--line);
}

.tool-rail:last-child .tool-item {
  border-left: 1px solid var(--line);
}

.tool-number {
  display: block;
  margin-bottom: 24px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.tool-item h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.tool-item p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.map-core {
  position: relative;
  min-height: 438px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 46px;
  text-align: center;
  background:
    radial-gradient(circle, rgba(230, 183, 78, 0.2), transparent 34%),
    repeating-radial-gradient(circle, transparent 0 56px, rgba(255, 255, 255, 0.06) 57px 58px);
}

.map-core::before,
.map-core::after {
  position: absolute;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(230, 183, 78, 0.35), transparent);
}

.map-core::before {
  width: 100%;
  height: 1px;
}

.map-core::after {
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, rgba(230, 183, 78, 0.35), transparent);
}

.core-label {
  position: relative;
  z-index: 1;
  max-width: 290px;
}

.core-mark {
  width: 90px;
  height: 90px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  color: #0b0b0a;
  border: 8px solid rgba(230, 183, 78, 0.14);
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 1px rgba(255, 217, 119, 0.55), 0 0 54px rgba(230, 183, 78, 0.27);
  font-size: 1.4rem;
  font-weight: 900;
}

.core-label h3 {
  margin-bottom: 12px;
}

.core-label p {
  margin: 0;
  font-size: 0.9rem;
}

.practice-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(40px, 8vw, 120px);
}

.sticky-copy {
  position: sticky;
  top: 130px;
}

.flow-list {
  position: relative;
}

.flow-list::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 23px;
  width: 1px;
  content: "";
  background: linear-gradient(var(--gold), rgba(230, 183, 78, 0.08));
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding-bottom: 48px;
}

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

.step-dot {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid rgba(230, 183, 78, 0.32);
  border-radius: 50%;
  background: var(--black);
  font-size: 0.73rem;
  font-weight: 880;
}

.flow-step h3 {
  margin: 6px 0 10px;
  font-size: 1.24rem;
}

.flow-step p {
  margin: 0;
  font-size: 0.92rem;
}

.guard-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 6vw, 74px);
  border: 1px solid rgba(230, 183, 78, 0.19);
  border-radius: 30px;
  background:
    linear-gradient(110deg, rgba(230, 183, 78, 0.13), transparent 47%),
    var(--surface-2);
}

.guard-panel::after {
  position: absolute;
  top: -240px;
  right: -150px;
  width: 450px;
  height: 450px;
  content: "";
  border: 1px solid rgba(230, 183, 78, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgba(230, 183, 78, 0.025), 0 0 0 130px rgba(230, 183, 78, 0.018);
}

.guard-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 54px;
}

.guard-panel h2 {
  max-width: 720px;
}

.guard-metrics {
  display: grid;
  gap: 12px;
}

.guard-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.guard-metric strong {
  color: var(--success);
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.disclaimer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.disclaimer-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid rgba(230, 183, 78, 0.28);
  border-radius: 50%;
  font-weight: 900;
}

.disclaimer p {
  margin: 0;
  font-size: 0.82rem;
}

.cta-band {
  padding: 42px 0 110px;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 48px;
  border-block: 1px solid var(--line);
}

.cta-inner h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.site-footer {
  padding: 68px 0 30px;
  border-top: 1px solid var(--line);
  background: #050606;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  padding-bottom: 52px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.footer-intro {
  max-width: 500px;
  margin: 0;
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 30px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

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

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

.footer-bottom p {
  margin: 0;
  color: inherit;
}

/* Inner pages */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 84px;
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  position: absolute;
  top: -220px;
  right: -120px;
  width: 580px;
  height: 580px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(230, 183, 78, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 85px rgba(230, 183, 78, 0.018), 0 0 0 170px rgba(230, 183, 78, 0.012);
}

.page-hero h1 {
  max-width: 1000px;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
}

.page-hero .lead {
  max-width: 730px;
  margin-bottom: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.about-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(42px, 8vw, 110px);
}

.about-photo-wrap {
  position: relative;
}

.about-photo {
  width: 100%;
  min-height: 540px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 28px;
  filter: saturate(0.62) contrast(1.08) brightness(0.78);
  box-shadow: var(--shadow);
}

.photo-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: 260px;
  padding: 13px 16px;
  color: var(--silver);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: rgba(8, 9, 9, 0.84);
  font-size: 0.73rem;
  font-weight: 720;
  backdrop-filter: blur(10px);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.principle {
  min-height: 330px;
  padding: 38px;
  border-right: 1px solid var(--line);
}

.principle:last-child {
  border-right: 0;
}

.principle-mark {
  width: 48px;
  height: 48px;
  margin-bottom: 70px;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid rgba(230, 183, 78, 0.25);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 850;
}

.principle h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.principle p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.boundary-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(44px, 8vw, 100px);
}

.boundary-list {
  border-top: 1px solid var(--line);
}

.boundary-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.boundary-item strong {
  color: var(--gold-bright);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.boundary-item p {
  margin: 0;
  font-size: 0.9rem;
}

/* Legal */
.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 70px;
}

.legal-nav {
  position: sticky;
  top: 112px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.legal-nav strong {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.77rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legal-nav a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
}

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

.legal-content {
  max-width: 800px;
}

.security-pledge {
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
  padding: 38px;
  border: 1px solid rgba(230, 183, 78, 0.25);
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(230, 183, 78, 0.14), rgba(230, 183, 78, 0.03));
}

.security-pledge::after {
  position: absolute;
  top: 20px;
  right: 28px;
  color: rgba(230, 183, 78, 0.16);
  content: "K";
  font-family: Georgia, serif;
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
}

.security-pledge h2 {
  position: relative;
  z-index: 1;
  max-width: 560px;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}

.security-pledge p {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin-bottom: 0;
}

.legal-section {
  padding: 0 0 50px;
  margin-bottom: 50px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 120px;
}

.legal-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.legal-section h2 {
  margin-bottom: 22px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.legal-section h3 {
  margin: 28px 0 10px;
  font-size: 1.14rem;
  letter-spacing: -0.01em;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 0.94rem;
}

.legal-section ul {
  margin: 18px 0 0;
  padding-left: 21px;
}

.legal-section li + li {
  margin-top: 8px;
}

.data-matrix {
  margin: 26px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.data-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  border-bottom: 1px solid var(--line);
}

.data-row:last-child {
  border-bottom: 0;
}

.data-row > div {
  padding: 15px 17px;
  color: var(--muted);
  border-right: 1px solid var(--line);
  font-size: 0.78rem;
}

.data-row > div:last-child {
  border-right: 0;
}

.data-row.head > div {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 800;
}

.rights-box {
  padding: 28px;
  border-left: 3px solid var(--gold);
  background: var(--gold-wash);
}

.rights-box p:last-child {
  margin-bottom: 0;
}

.legal-meta {
  margin-top: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.78rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(38px, 7vw, 90px);
}

.contact-form {
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

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

.field {
  margin-bottom: 21px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--silver);
  font-size: 0.79rem;
  font-weight: 780;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: #0d0e0e;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input,
.field select {
  height: 53px;
  padding: 0 15px;
}

.field textarea {
  min-height: 158px;
  padding: 13px 15px;
  resize: vertical;
}

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

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  min-height: 18px;
  margin: 5px 0 0;
  color: var(--danger);
  font-size: 0.73rem;
}

.file-input {
  padding: 13px 15px !important;
}

.file-input::file-selector-button {
  margin-right: 12px;
  padding: 5px 9px;
  color: var(--silver);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
}

.checkbox-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  margin: 3px 0 24px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--gold);
}

.checkbox-row label {
  color: var(--muted);
  font-size: 0.79rem;
}

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

.form-status-row {
  align-items: flex-start;
}

.form-status {
  min-height: 44px;
  margin: 0;
  color: var(--success);
  font-size: 0.78rem;
}

.contact-aside {
  padding-top: 15px;
}

.contact-aside h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.contact-channel {
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.contact-channel:last-child {
  border-bottom: 0;
}

.contact-channel .channel-label {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-channel a,
.contact-channel strong {
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
}

.contact-channel p {
  margin: 5px 0 0;
  font-size: 0.79rem;
}

.support-note {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid rgba(230, 183, 78, 0.2);
  border-radius: 17px;
  background: var(--gold-wash);
}

.support-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.support-note p {
  margin: 0;
  font-size: 0.8rem;
}

/* H5 */
.h5-body {
  background: #080909;
}

.h5-brand {
  padding: 24px 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.h5-brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 10px;
}

.h5-hero {
  padding: 58px 0 54px;
}

.h5-hero h1 {
  font-size: clamp(3rem, 16vw, 5.2rem);
}

.h5-section {
  padding: 54px 0;
  border-top: 1px solid var(--line);
}

.h5-principle {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.h5-principle:last-child {
  border-bottom: 0;
}

.h5-principle span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.h5-principle h3 {
  margin: 28px 0 12px;
}

.h5-footer {
  padding: 32px 0;
  color: var(--faint);
  border-top: 1px solid var(--line);
  font-size: 0.73rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 980px) {
  .desktop-nav,
  .nav-wrap > .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-panel {
    position: fixed;
    inset: 82px 0 auto;
    height: calc(100vh - 82px);
    padding: 28px 20px;
    background: rgba(8, 9, 9, 0.98);
  }

  .mobile-panel.open {
    display: block;
  }

  .mobile-panel a {
    display: block;
    padding: 16px 2px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    font-size: 1.2rem;
    font-weight: 760;
    text-decoration: none;
  }

  .mobile-panel .nav-cta {
    margin-top: 26px;
    border: 0;
    color: #090909;
    text-align: center;
  }

  .hero-grid,
  .practice-flow,
  .guard-grid,
  .about-intro,
  .boundary-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    max-width: 760px;
  }

  .terminal-frame {
    min-height: 470px;
  }

  .hero-photo {
    height: 450px;
  }

  .market-card {
    right: 18px;
  }

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

  .status-item:nth-child(2) {
    border-right: 0;
  }

  .status-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .status-item:nth-child(3) {
    padding-left: 0;
  }

  .workspace-map {
    grid-template-columns: 1fr 1fr;
  }

  .map-core {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 360px;
    border-bottom: 1px solid var(--line);
  }

  .tool-rail:first-child .tool-item,
  .tool-rail:last-child .tool-item {
    border-right: 0;
    border-left: 0;
  }

  .tool-rail:first-child {
    border-right: 1px solid var(--line);
  }

  .sticky-copy {
    position: static;
  }

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

  .principle {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle:last-child {
    border-bottom: 0;
  }

  .principle-mark {
    margin-bottom: 44px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .legal-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
  }

  .legal-nav strong {
    width: 100%;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

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

  .nav-wrap {
    min-height: 74px;
  }

  .brand img,
  .footer-brand img {
    width: 46px;
    height: 46px;
  }

  .mobile-panel {
    inset: 74px 0 auto;
    height: calc(100vh - 74px);
  }

  .hero {
    padding: 58px 0 66px;
  }

  .hero::before {
    background-size: 54px 54px;
  }

  h1 {
    font-size: clamp(2.85rem, 14vw, 4.5rem);
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions a {
    width: 100%;
  }

  .terminal-frame {
    min-height: 390px;
  }

  .hero-photo {
    height: 370px;
    border-radius: 22px;
  }

  .terminal-frame::after {
    border-radius: 22px;
  }

  .market-card {
    right: 12px;
    bottom: -18px;
    width: calc(100% - 24px);
  }

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

  .status-item,
  .status-item:nth-child(3) {
    min-height: 96px;
    padding: 21px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-item:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 76px 0;
  }

  .section-heading,
  .section-heading-row {
    margin-bottom: 38px;
  }

  .section-heading-row {
    align-items: flex-start;
  }

  .workspace-map {
    grid-template-columns: 1fr;
  }

  .map-core {
    grid-column: auto;
    min-height: 320px;
    padding: 35px;
  }

  .tool-rail:first-child {
    border-right: 0;
  }

  .tool-item {
    min-height: auto;
  }

  .tool-number {
    margin-bottom: 14px;
  }

  .flow-step {
    gap: 17px;
  }

  .guard-panel {
    border-radius: 22px;
  }

  .cta-band {
    padding-bottom: 76px;
  }

  .cta-inner {
    display: block;
    padding: 34px 0;
  }

  .cta-inner h2 {
    margin-bottom: 28px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom p + p {
    margin-top: 8px;
  }

  .page-hero {
    padding: 78px 0 64px;
  }

  .about-photo {
    min-height: 380px;
  }

  .photo-caption {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }

  .principle {
    padding: 30px;
  }

  .boundary-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .legal-nav {
    display: none;
  }

  .security-pledge {
    padding: 28px;
  }

  .security-pledge::after {
    opacity: 0.55;
  }

  .data-matrix {
    border: 0;
    border-radius: 0;
  }

  .data-row {
    display: block;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .data-row.head {
    display: none;
  }

  .data-row > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .data-row > div:last-child {
    border-bottom: 0;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-status-row {
    display: block;
  }

  .form-status-row button {
    width: 100%;
  }

  .form-status {
    margin-top: 13px;
  }
}
