/* ============================================================
   Marshall Enterprise — v2 (Export Manifest theme)
   ============================================================ */
:root{
  --bg:        #F1EDE2;
  --panel:     #E8E3D5;
  --ink:       #1B1712;
  --muted:     #6E6858;
  --line:      #DAD3C0;
  --accent:    #C24B2C;
  --accent-ink:#FFF3EE;
  --dark:      #17140F;
  --dark-line: #37332A;

  --display: "Anton", "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", "Courier New", monospace;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1220px;
  --gutter: clamp(20px, 5vw, 64px);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img,svg{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family: var(--body); cursor:pointer; }

.wrap{ max-width:var(--container); margin:0 auto; padding-left:var(--gutter); padding-right:var(--gutter); }

/* ---------- Type ---------- */
h1,h2,h3{
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.001em;
  line-height: 0.92;
  margin:0;
  text-wrap: balance;
}
h1{ font-size: clamp(2.6rem, 6.6vw, 5.2rem); }
h2{ font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3{ font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p{ margin:0 0 1em; color: var(--muted); max-width: 62ch; }
p:last-child{ margin-bottom:0; }
.lede{ font-size: clamp(1.05rem,1.6vw,1.25rem); color: var(--ink); max-width: 48ch; }

.mono{ font-family: var(--mono); letter-spacing: 0.02em; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index:50;
  background: rgba(241,237,226,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px var(--gutter);
  max-width: var(--container); margin:0 auto;
  gap: 20px;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:600; font-size:1.15rem; }
.brand .mark{
  width:30px; height:30px;
  border: 1.5px solid var(--ink);
  position: relative;
  flex: none;
}
.brand .mark::after{
  content:"";
  position:absolute; top:6px; left:6px;
  width:11px; height:11px;
  border-left: 2.5px solid var(--accent);
  border-top: 2.5px solid var(--accent);
}
.nav-links{ display:flex; gap: clamp(18px,3vw,32px); font-size:0.82rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.nav-links a{ position:relative; padding: 4px 0; color: var(--muted); transition: color .15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"]{ color: var(--ink); }
.nav-links a[aria-current="page"]::after{ content:""; position:absolute; left:0; right:0; bottom:-3px; height:2px; background: var(--accent); }
.nav-right{ display:flex; align-items:center; gap:18px; }
.lang-switch{ display:flex; gap:6px; font-family: var(--mono); font-size:0.76rem; }
.lang-switch a{ padding:3px 7px; color: var(--muted); border:1px solid transparent; }
.lang-switch a[aria-current="true"]{ color: var(--ink); border-color: var(--line); }
.nav-cta{
  border:1px solid var(--ink); padding:10px 18px;
  font-family: var(--mono); font-size:0.78rem; text-transform:uppercase; letter-spacing:0.06em; font-weight:600;
  white-space:nowrap; transition: background .15s ease, color .15s ease;
}
.nav-cta:hover{ background: var(--ink); color: var(--bg); }

/* ---------- Sections ---------- */
section{ padding: clamp(48px,8vw,100px) 0; }
.section-tight{ padding-top: clamp(24px,4vw,40px); padding-bottom: clamp(24px,4vw,40px); }
.rule{ border:none; border-top:1px solid var(--line); margin:0; }

.eyebrow-row{ display:flex; align-items:center; gap:14px; margin-bottom: 26px; }
.index-num{
  font-family: var(--mono); font-size:0.8rem; color: var(--muted);
  border:1px solid var(--line); padding:4px 10px; flex:none;
}

.kicker{
  display:flex; align-items:center; gap:10px;
  font-family: var(--mono); font-size:0.82rem; text-transform:uppercase;
  letter-spacing:0.08em; color: var(--accent); font-weight:600; margin-bottom:22px;
}
.kicker::before{ content:""; width:22px; height:1.5px; background: var(--accent); display:inline-block; }

/* ---------- Hero ---------- */
.hero{ padding-top: clamp(40px,7vw,72px); display:grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px,5vw,64px); align-items:center; }
.hero-copy h1{ margin-bottom:22px; }
.hero-copy h1 .accent-line{ color: var(--accent); }
.hero-copy .lede{ margin-bottom: 32px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:8px; padding: 15px 24px;
  font-weight:600; font-size:0.9rem; font-family: var(--mono); text-transform:uppercase; letter-spacing:0.04em;
  border:1px solid var(--ink); transition: all .15s ease;
}
.btn-primary{ background: var(--ink); color: var(--bg); }
.btn-primary:hover{ background: var(--accent); border-color: var(--accent); color:#fff; }
.btn-ghost{ background:transparent; }
.btn-ghost:hover{ background: var(--ink); color: var(--bg); }

/* Export manifest card */
.manifest{
  background: var(--dark); color: #E9E4D8; padding: 30px 30px 34px; position:relative;
}
.manifest-head{ display:flex; justify-content:space-between; align-items:baseline; font-family: var(--mono); font-size:0.8rem; letter-spacing:0.05em; margin-bottom:14px; }
.manifest-head .route{ color: var(--accent); }
.manifest hr{ border:none; border-top:1px dashed var(--dark-line); margin: 0 0 18px; }
.manifest-row{ display:flex; justify-content:space-between; gap:16px; padding: 15px 0; border-top: 1px solid var(--dark-line); }
.manifest-row:first-of-type{ border-top:none; }
.manifest-row .k{ font-family: var(--mono); font-size:0.76rem; text-transform:uppercase; letter-spacing:0.05em; color:#8C8778; flex:none; padding-top:2px; }
.manifest-row .v{ font-weight:600; text-align:right; }
.badge{
  position:absolute; right:-14px; bottom:-14px;
  width:78px; height:78px; border-radius:50%;
  border: 1.5px solid var(--accent); background: var(--bg);
  display:flex; align-items:center; justify-content:center; text-align:center;
  font-family: var(--mono); font-size:0.62rem; text-transform:uppercase; letter-spacing:0.04em; color: var(--accent); font-weight:700;
  line-height:1.25;
}

/* Marquee */
.marquee-wrap{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); overflow:hidden; background: var(--panel); }
.marquee{ display:flex; white-space:nowrap; animation: scroll 32s linear infinite; width: max-content; }
.marquee span{ font-family: var(--mono); font-size:0.82rem; letter-spacing:0.05em; padding: 16px 0; }
.marquee .sep{ color: var(--accent); padding: 16px 22px; }
@keyframes scroll{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee{ animation:none; } }

/* ---------- Process module ---------- */
.process-module{ border:1px solid var(--line); display:grid; grid-template-columns: 1fr 1fr 1fr; }
.process-overview{ padding: 34px; border-right:1px solid var(--line); grid-row: 1 / 3; }
.process-overview h3{ margin: 14px 0 16px; }
.process-cell{ padding: 30px 32px; border-bottom:1px solid var(--line); }
.process-cell:nth-child(3), .process-cell:nth-child(4){ border-bottom:none; }
.process-cell:nth-child(3){ border-left:1px solid var(--line); }
.process-cell:nth-child(4){ }
.process-cell .num{ font-family: var(--mono); color: var(--accent); font-size:0.85rem; margin-bottom:10px; display:block; }
.process-cell h3{ margin-bottom:10px; }
.process-overview .num{ font-family: var(--mono); color: var(--accent); font-size:0.85rem; }

/* ---------- Split ---------- */
.split{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px,5vw,70px); align-items:start; }

/* ---------- CTA band ---------- */
.cta-band{ background: var(--dark); color:#EDE9DE; padding: clamp(56px,9vw,96px) 0; }
.cta-band h2{ color:#F5F2E9; }
.cta-band p{ color:#A29C8B; max-width:44ch; }
.cta-band .btn-primary{ background: var(--accent); border-color: var(--accent); color:#fff; }
.cta-band .btn-primary:hover{ background:#fff; color: var(--dark); border-color:#fff; }

/* ---------- Footer ---------- */
.site-footer{ padding: 48px 0 32px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:24px; margin-bottom:34px; padding-top: 44px; border-top:1px solid var(--line); }
.footer-grid h4{ font-family: var(--mono); font-size:0.74rem; text-transform:uppercase; letter-spacing:0.06em; color: var(--muted); margin:0 0 14px; font-weight:600; }
.footer-grid ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.footer-grid a{ color: var(--ink); font-size:0.94rem; opacity:0.75; }
.footer-grid a:hover{ opacity:1; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:22px; border-top:1px solid var(--line); font-size:0.8rem; color: var(--muted); flex-wrap:wrap; gap:10px; font-family: var(--mono); }

/* ---------- Forms ---------- */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap: 26px 30px; }
.field{ display:flex; flex-direction:column; gap:8px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-family: var(--mono); font-size:0.76rem; text-transform:uppercase; letter-spacing:0.05em; color: var(--muted); }
input,select,textarea{
  font-family: var(--body); font-size:1rem; padding: 10px 2px; border:none; border-bottom: 1px solid var(--ink);
  background: transparent; color: var(--ink); outline:none;
}
input::placeholder,textarea::placeholder{ color:#A8A18E; }
textarea{ resize: vertical; min-height:100px; }
input:focus,select:focus,textarea:focus{ border-bottom-color: var(--accent); }

.note-panel{ background: var(--panel); border:1px solid var(--line); padding: clamp(24px,3vw,34px); }
.note-panel .k1{ font-family: var(--mono); color: var(--accent); font-size:0.8rem; text-transform:uppercase; letter-spacing:0.05em; margin-bottom:10px; }
.note-item{ margin-top: 22px; }
.note-item:first-of-type{ margin-top: 26px; }
.note-item .label{ font-family: var(--mono); font-size:0.76rem; text-transform:uppercase; letter-spacing:0.05em; color: var(--muted); margin-bottom:5px; }
.form-note{ font-size:0.82rem; color: var(--muted); margin-top:20px; }

.contact-detail{ padding: 20px 0; border-top:1px solid var(--line); }
.contact-detail:last-child{ border-bottom:1px solid var(--line); }
.contact-detail .k{ font-family: var(--mono); font-size:0.76rem; text-transform:uppercase; letter-spacing:0.05em; color: var(--muted); margin-bottom:6px; }
.contact-detail .v{ font-size:1.05rem; font-weight:500; }

/* ---------- Page hero ---------- */
.page-hero{ padding-top: clamp(44px,7vw,76px); padding-bottom: clamp(24px,4vw,44px); }

.about-block{ padding: clamp(18px,3vw,26px) 0; }
.about-block + .about-block{ border-top:1px solid var(--line); }

.route-panel{ border:1px solid var(--line); background: var(--panel); padding: clamp(22px,4vw,34px); margin-top: 22px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .hero{ grid-template-columns:1fr; }
  .hero-art{ order:-1; max-width:420px; margin:0 auto; }
  .process-module{ grid-template-columns:1fr; }
  .process-overview{ border-right:none; border-bottom:1px solid var(--line); grid-row:auto; }
  .process-cell{ border-left:none !important; }
  .split{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; row-gap:26px; }
  .form-grid{ grid-template-columns:1fr; }
}
@media (max-width:640px){ .nav-links{ display:none; } }
