/* ============================================================
   XSD MGMT, LLC — "Drafting Table" design system
   Warm ink background, chartreuse accent, Bodoni Moda display,
   graph-paper grids, ruler ticks, specimen cards
   ============================================================ */

:root {
  --bg: #0c0b08;
  --bg2: #100f0b;
  --panel: #161410;
  --panel-hi: #1c1913;
  --edge: #2e2a1e;
  --edge-soft: #1e1b14;
  --lime: #d9f45c;
  --lime-hi: #ecff94;
  --lime-deep: #8a9c3a;
  --cream: #efe9da;
  --txt: #f2eee2;
  --sub: #b4ad9b;
  --dim: #6f6858;
  --disp: "Bodoni Moda", Georgia, serif;
  --body-f: "Manrope", "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", "Consolas", monospace;
  --head-h: 78px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--sub);
  font-family: var(--body-f);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: var(--bg); }

a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--lime-hi); }

h1, h2, h3, h4 {
  font-family: var(--disp);
  color: var(--txt);
  font-weight: 700;
  line-height: 1.08;
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 44px; }

.k-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3.4px;
  text-transform: uppercase;
  color: var(--lime);
}

/* ---------------- Header ---------------- */

.atelier-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--head-h);
  z-index: 300;
  background: var(--bg);
  border-bottom: 1px solid var(--edge-soft);
}

.atelier-head .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.xlogo { display: flex; align-items: baseline; gap: 14px; }

.xlogo .xmark {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 26px;
  color: var(--txt);
  letter-spacing: 0.5px;
  position: relative;
}

.xlogo .xmark::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 4px;
  background: var(--lime);
  z-index: -1;
}

.xlogo .xsub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 3.4px;
  text-transform: uppercase;
  color: var(--dim);
}

.xnav { display: flex; align-items: center; gap: 2px; }

.xnav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--sub);
  padding: 10px 15px;
  transition: color .2s;
}

.xnav a:hover { color: var(--txt); }
.xnav a.active { color: var(--lime); }

.xnav .xcta {
  color: var(--bg) !important;
  background: var(--lime);
  font-weight: 700;
  margin-left: 12px;
  padding: 12px 22px;
}

.xnav .xcta:hover { background: var(--lime-hi); }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--edge);
  color: var(--txt);
  width: 44px; height: 44px;
  font-size: 18px;
  cursor: pointer;
}

.m-nav {
  display: none;
  position: fixed;
  top: var(--head-h);
  left: 0; right: 0;
  z-index: 290;
  background: var(--bg2);
  border-bottom: 1px solid var(--edge);
  padding: 8px 24px 22px;
}

.m-nav.open { display: block; }

.m-nav a {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sub);
  padding: 14px 0;
  border-bottom: 1px solid var(--edge-soft);
}
.m-nav a.active { color: var(--lime); }

main { padding-top: var(--head-h); }

/* ---------------- Hero — drafting sheet ---------------- */

.hero {
  position: relative;
  border-bottom: 1px solid var(--edge-soft);
  background:
    linear-gradient(var(--edge-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--edge-soft) 1px, transparent 1px),
    linear-gradient(var(--edge) 1px, transparent 1px),
    linear-gradient(90deg, var(--edge) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 160px 160px, 160px 160px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1000px 560px at 60% 40%, var(--bg) 20%, transparent 90%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 110px 0 90px;
}

/* ruler ticks on the left edge */
.hero-inner::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 18px;
  background:
    repeating-linear-gradient(to bottom, var(--edge) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(to bottom, var(--dim) 0 1px, transparent 1px 80px);
  background-size: 10px 100%, 18px 100%;
  background-repeat: repeat-y;
  opacity: .7;
}

.hero .x-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.hero .x-eyebrow::before {
  content: "";
  width: 40px; height: 1px;
  background: var(--lime);
}

.hero h1 {
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 700;
  letter-spacing: -1px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--lime);
}

.hero .hero-sub {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  margin-top: 44px;
  align-items: start;
}

.hero .lede { font-size: 17px; max-width: 560px; }

.hero-cta { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}

.btn-fill { background: var(--lime); color: var(--bg); }
.btn-fill:hover { background: var(--lime-hi); color: var(--bg); }
.btn-line { border: 1px solid var(--edge); color: var(--txt); }
.btn-line:hover { border-color: var(--lime); color: var(--lime); }

/* swatch palette card */
.swatches {
  border: 1px solid var(--edge);
  background: var(--panel);
}

.swatches .sw-head {
  padding: 16px 24px;
  border-bottom: 1px solid var(--edge);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  justify-content: space-between;
}

.swatches .sw-body { display: grid; grid-template-columns: repeat(4, 1fr); }

.swatches .chip {
  padding: 22px 16px 18px;
  border-right: 1px solid var(--edge-soft);
}

.swatches .chip:last-child { border-right: 0; }

.swatches .chip .sw {
  height: 46px;
  margin-bottom: 12px;
}

.swatches .chip:nth-child(1) .sw { background: var(--lime); }
.swatches .chip:nth-child(2) .sw { background: var(--cream); }
.swatches .chip:nth-child(3) .sw { background: var(--edge); }
.swatches .chip:nth-child(4) .sw { background: var(--bg); border: 1px solid var(--edge-soft); }

.swatches .chip span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 1.6px;
  color: var(--dim);
  display: block;
}

.swatches .chip b {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--sub);
}

/* ---------------- Sections ---------------- */

.section { padding: 100px 0; border-bottom: 1px solid var(--edge-soft); }

.sec-line {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.sec-line::before { content: ""; width: 34px; height: 2px; background: var(--lime); }
.sec-line::after { content: ""; flex: 1; height: 1px; background: var(--edge-soft); }

.sec-head { margin-bottom: 58px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 56px); }
.sec-head h2 em { font-style: italic; font-weight: 500; color: var(--lime); }
.sec-head .sub { margin-top: 18px; max-width: 620px; font-size: 16px; }

/* ---------------- Specimen cards ---------------- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.spec {
  border: 1px solid var(--edge);
  background: var(--panel);
  padding: 36px 32px;
  position: relative;
  transition: transform .25s, border-color .25s, background .25s;
}

.spec:hover { transform: translateY(-5px); border-color: var(--lime-deep); background: var(--panel-hi); }

.spec .no {
  font-family: var(--disp);
  font-style: italic;
  font-size: 44px;
  font-weight: 500;
  color: var(--edge);
  line-height: 1;
  transition: color .25s;
}

.spec:hover .no { color: var(--lime); }

.spec h3 { font-size: 23px; margin: 18px 0 12px; }
.spec p { font-size: 14px; }

.spec .spec-line {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--edge);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 2;
}

/* ---------------- Process — numbered register ---------------- */

.register { border-top: 1px solid var(--edge); }

.reg-row {
  display: grid;
  grid-template-columns: 120px 1.2fr 1.7fr;
  gap: 36px;
  padding: 34px 10px;
  border-bottom: 1px solid var(--edge-soft);
  align-items: baseline;
}

.reg-row .r-no {
  font-family: var(--disp);
  font-style: italic;
  font-size: 30px;
  color: var(--lime);
}

.reg-row h3 { font-size: 22px; }
.reg-row p { font-size: 14.5px; }

/* ---------------- Split ---------------- */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.duo h2 { font-size: clamp(30px, 3.8vw, 48px); }
.duo h2 em { font-style: italic; font-weight: 500; color: var(--lime); }
.duo > div > p { margin-top: 18px; font-size: 15.5px; }

/* Plate card */

.plate {
  border: 1px solid var(--edge);
  background: var(--panel);
  padding: 10px;
}

.plate .plate-inner {
  border: 1px dashed var(--edge);
  padding: 10px;
}

.plate .l-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 22px;
  border-bottom: 1px dashed var(--edge-soft);
  font-size: 14px;
}

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

.plate .l-row .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 4px;
  white-space: nowrap;
}

.plate .l-row .v { color: var(--txt); text-align: right; }

/* ---------------- Stats ---------------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat {
  border: 1px solid var(--edge);
  background: var(--bg2);
  padding: 40px 28px;
  position: relative;
}

.stat::before {
  content: "";
  position: absolute;
  top: 18px; right: 18px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--lime);
}

.stat .n {
  font-family: var(--disp);
  font-weight: 700;
  font-style: italic;
  font-size: 52px;
  color: var(--txt);
  line-height: 1;
}

.stat .n i { font-style: normal; color: var(--lime); }

.stat .c {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 16px;
}

/* ---------------- Quote ---------------- */

.quote-zone { padding: 100px 0; text-align: center; }

.quote-zone .qt {
  font-family: var(--disp);
  font-style: italic;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
  color: var(--txt);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.35;
}

.quote-zone cite {
  display: block;
  margin-top: 30px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--lime);
}

/* ---------------- CTA ---------------- */

.cta-zone {
  padding: 110px 0;
  text-align: center;
  border-top: 1px solid var(--edge);
  background:
    linear-gradient(var(--edge-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--edge-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  position: relative;
}

.cta-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 300px at 50% 100%, #1a2010 0%, transparent 70%);
  pointer-events: none;
}

.cta-zone .inner { position: relative; }
.cta-zone .k-label { display: inline-block; margin-bottom: 24px; }
.cta-zone h2 { font-size: clamp(32px, 4.6vw, 60px); }
.cta-zone h2 em { font-style: italic; font-weight: 500; color: var(--lime); }
.cta-zone p { margin: 22px auto 42px; max-width: 560px; font-size: 16px; }

/* ---------------- Footer ---------------- */

.x-foot {
  border-top: 1px solid var(--edge);
  background: var(--bg2);
  padding: 72px 0 36px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--edge-soft);
}

.foot-grid h4 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 20px;
}

.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 11px; font-size: 14px; }
.foot-grid li a { color: var(--sub); }
.foot-grid li a:hover { color: var(--lime); }

.foot-desc { margin-top: 18px; font-size: 13.5px; max-width: 360px; color: var(--dim); }

.foot-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--dim);
}

.foot-bar a { color: var(--sub); }
.foot-bar a:hover { color: var(--lime); }

/* ---------------- Page hero ---------------- */

.page-hero {
  padding: 92px 0 68px;
  border-bottom: 1px solid var(--edge-soft);
  background:
    linear-gradient(var(--edge-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--edge-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 300px at 30% 0%, var(--bg) 40%, transparent 80%);
  pointer-events: none;
}

.page-hero .wrap { position: relative; }

.crumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 26px;
}

.crumb a { color: var(--lime); }

.page-hero h1 { font-size: clamp(38px, 5.4vw, 68px); }
.page-hero h1 em { font-style: italic; font-weight: 500; color: var(--lime); }
.page-hero .lede { margin-top: 24px; max-width: 640px; font-size: 17px; }

/* ---------------- Contact ---------------- */

.contact-cols {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 62px;
  padding: 84px 0;
}

.coord-card {
  border: 1px solid var(--edge);
  background: var(--panel);
  padding: 22px 28px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  align-items: start;
}

.coord-card .fld {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--lime);
  padding-top: 5px;
}

.coord-card .val {
  font-family: var(--disp);
  font-size: 20px;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.35;
}

.coord-card .val a { color: var(--txt); }
.coord-card .val a:hover { color: var(--lime); }

.coord-card .nt { grid-column: 2; font-size: 13px; color: var(--dim); }

.brief-form {
  border: 1px solid var(--edge);
  background: var(--panel);
  padding: 46px;
  position: relative;
}

.brief-form::before {
  content: "Design Brief · XSD";
  position: absolute;
  top: -1px; right: -1px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--bg);
  background: var(--lime);
  padding: 6px 12px;
}

.brief-form h2 { font-size: 28px; margin-bottom: 8px; }
.brief-form > p { font-size: 13px; color: var(--dim); margin-bottom: 30px; font-family: var(--mono); }

.f-field { margin-bottom: 20px; }

.f-field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 9px;
}

.f-field input,
.f-field select,
.f-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--edge);
  color: var(--txt);
  font-family: var(--body-f);
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s;
}

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

.f-field input:focus,
.f-field select:focus,
.f-field textarea:focus { border-color: var(--lime); }

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.f-note { font-size: 12px; color: var(--dim); margin-top: 16px; font-family: var(--mono); }

/* ---------------- Legal prose ---------------- */

.prose { max-width: 840px; padding: 76px 0 100px; }

.prose .policy-head {
  border: 1px solid var(--edge);
  border-left: 4px solid var(--lime);
  background: var(--panel);
  padding: 30px 34px;
  margin-bottom: 44px;
  font-size: 15.5px;
}

.prose .upd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid var(--lime-deep);
  padding: 7px 14px;
  margin-bottom: 26px;
}

.prose h2 {
  font-size: 26px;
  margin: 54px 0 18px;
  padding-top: 38px;
  border-top: 1px solid var(--edge-soft);
}

.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 44px; }
.prose h3 { font-size: 19px; margin: 30px 0 10px; }
.prose p { margin-bottom: 15px; font-size: 15.5px; }
.prose ul { margin: 0 0 15px 22px; font-size: 15.5px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--txt); }

/* ---------------- Reveal ---------------- */

.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1080px) {
  .xnav { display: none; }
  .burger { display: block; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .duo, .contact-cols { grid-template-columns: 1fr; gap: 48px; }
  .hero .hero-sub { grid-template-columns: 1fr; gap: 48px; }
  .reg-row { grid-template-columns: 70px 1fr; }
  .reg-row p { grid-column: 2; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0 26px; }
  .brief-form { padding: 32px 24px; }
  .f-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .spec-grid, .stat-grid { grid-template-columns: 1fr; }
  .swatches .sw-body { grid-template-columns: 1fr 1fr; }
}
