/* ---------- Shared base for terms & contact subpages ---------- */
:root {
  --ink: #0E1320;
  --ink-2: #1a1f2e;
  --ink-3: #242a3d;
  --paper: #F3EDE4;
  --paper-2: #E8DFD0;
  --paper-3: #DDD2BF;
  --signal: #EC5527;
  --signal-deep: #C53E15;
  --gold: #C89A4D;
  --line: #D4CCBE;
  --line-dark: rgba(255,255,255,.12);
  --muted: #6B6B6B;
  --muted-dark: rgba(243,237,228,.55);

  --f-display: 'Bricolage Grotesque', sans-serif;
  --f-serif: 'Fraunces', serif;
  --f-body: 'Manrope', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  --max: 1440px;
  --pad: clamp(20px, 4vw, 64px);
  --section-pad: clamp(64px, 9vw, 140px);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: 0; cursor: pointer; color: inherit; }
::selection { background: var(--signal); color: var(--paper); }

body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--signal);
  z-index: 1000;
  transition: width .08s linear;
}

.ribbon {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}
.ribbon-track {
  display: flex; gap: 64px;
  white-space: nowrap;
  animation: scroll-x 38s linear infinite;
  width: max-content;
}
.ribbon-track span { display: inline-flex; align-items: center; gap: 14px; }
.ribbon-track span i { color: var(--signal); font-size: 9px; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.nav {
  position: sticky; top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: center;
}
.brand {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.02em;
}
.brand .dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--signal); border-radius: 50%;
  margin: 0 4px 2px 4px;
}
.brand small {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .15em;
  color: var(--muted);
  text-transform: uppercase;
}
.nav-menu {
  display: flex;
  gap: 36px;
  justify-content: center;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
}
.nav-menu a {
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav-menu a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--signal);
  transition: width .25s ease;
}
.nav-menu a:hover { color: var(--signal); }
.nav-menu a:hover::after { width: 100%; }
.nav-menu a.active { color: var(--signal); }
.nav-menu a.active::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--signal); transform: translateY(-1px); }
.nav-cta i { font-size: 11px; transition: transform .2s ease; }
.nav-cta:hover i { transform: translateX(3px); }
.burger { display: none; font-size: 22px; color: var(--ink); }

.mobile-menu {
  position: fixed; inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 200;
  padding: 28px var(--pad);
  display: none;
  flex-direction: column;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.mobile-menu nav a {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -.02em;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu .close-btn { font-size: 26px; color: var(--paper); }

/* ---------- Page hero ---------- */
.page-hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 100px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.page-hero-left .crumbs {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}
.page-hero-left .crumbs a { transition: color .2s ease; }
.page-hero-left .crumbs a:hover { color: var(--signal); }
.page-hero-left .crumbs i { font-size: 9px; color: var(--signal); }
.page-hero h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 150px);
  line-height: .88;
  letter-spacing: -.04em;
  color: var(--ink);
}
.page-hero h1 .em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--signal);
}
.page-hero-sub {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink);
  max-width: 460px;
}
.page-hero-meta {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; gap: 36px; flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.page-hero-meta strong {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -.01em;
  text-transform: none;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 8vw, 100px) 0 32px;
  position: relative;
  overflow: hidden;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-big {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 130px);
  line-height: .9;
  letter-spacing: -.04em;
}
.footer-big .em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--signal);
}
.footer-right {
  display: flex; flex-direction: column; justify-content: end; gap: 26px;
}
.footer-right p {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.5;
  opacity: .85;
}
.footer-cta {
  display: inline-flex; align-items: center; gap: 12px;
  align-self: flex-start;
  background: var(--paper);
  color: var(--ink);
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all .25s ease;
}
.footer-cta:hover { background: var(--signal); color: var(--paper); transform: translateY(-2px); }
.footer-bottom {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.footer-bottom h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--paper);
  margin-bottom: 18px;
}
.footer-list { list-style: none; display: grid; gap: 10px; }
.footer-list a { transition: color .2s ease; }
.footer-list a:hover { color: var(--signal); }
.footer-socials {
  display: flex; gap: 12px;
  margin-top: 14px;
}
.footer-socials a {
  width: 38px; height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
  font-size: 13px;
  transition: all .25s ease;
}
.footer-socials a:hover { background: var(--signal); border-color: var(--signal); transform: translateY(-2px); }
.footer-base {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all .25s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--signal); transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(236,85,39,.4); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn i { font-size: 11px; }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }

.section-num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 14px;
}
.section-num strong { color: var(--signal); font-weight: 500; }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .4s; }

@media (max-width: 1100px) {
  .nav-menu { gap: 24px; font-size: 13px; }
  .footer-bottom { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-menu { display: none; }
  .burger { display: inline-flex; }
  .nav-inner { grid-template-columns: auto 1fr auto; gap: 16px; }
  .page-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { grid-template-columns: 1fr; gap: 32px; }
}
