@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&display=swap');

/* =========================
   RESET / BASE
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #050505;
  color: #f5f5f5;
  font-family: Arial, Helvetica, sans-serif;
}


/* =========================
   HEADER
========================= */
.site-header {
  height: 90px;
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #050505;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: #f5f5f5;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}

nav a:hover {
  color: #c1121f;
}


/* =========================
   MOBILE NAV — HAMBURGER
========================= */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #f5f5f5;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* =========================
   MOBILE NAV — OVERLAY
========================= */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: #050505;
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.mobile-nav-links a {
  color: #f5f5f5;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 4px;
  transition: color 0.2s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus {
  color: #c1121f;
  outline: none;
}

body.nav-open {
  overflow: hidden;
}

.logo {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
}

.logo span {
  color: #c1121f;
}


/* =========================
   EYEBROW / LABELS
========================= */
.eyebrow {
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  color: #c1121f;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 52px;
  font-weight: 900;
  line-height: .95;
  margin-bottom: 24px;
}

.section-title span {
  color: #c1121f;
}


/* =========================
   PAGE HERO
========================= */
.page-hero {
  padding: 100px 60px 80px;
  border-bottom: 1px solid #222;
}

.page-hero h1 {
  font-size: 90px;
  line-height: .9;
  font-weight: 900;
  margin-bottom: 30px;
}

.page-hero h1 span {
  color: #c1121f;
}

.hero-position {
  font-size: 18px;
  color: #aaa;
  font-weight: 400;
  letter-spacing: .3px;
  margin-bottom: 12px;
  max-width: 620px;
  line-height: 1.5;
}

.hero-location {
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  font-size: 12px;
  color: #555;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* =========================
   NOTICE / CONTENTS BAR
========================= */
.notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 60px;
  background: #080808;
  border-bottom: 1px solid #1a1a1a;
  position: sticky;
  top: 90px;
  z-index: 5;
}

.notice-label {
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  font-size: 11px;
  color: #c1121f;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 2px;
}

.notice-bar p {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
}

.contents-links a {
  color: #ccc;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.contents-links a:hover {
  color: #c1121f;
  border-bottom-color: #c1121f;
}

.contents-sep {
  color: #333;
  margin: 0 6px;
}


/* =========================
   PART SECTION (Part I / II divider)
========================= */
.part-section {
  padding: 100px 60px 40px;
  border-bottom: 1px solid #222;
  scroll-margin-top: 140px;
}

.part-section--alt {
  background: #070707;
}

.part-intro {
  font-size: 17px;
  color: #aaa;
  line-height: 1.7;
  max-width: 680px;
}

.inline-link {
  color: #c1121f;
  text-decoration: none;
  border-bottom: 1px solid #2a0508;
  transition: border-color .15s ease;
}

.inline-link:hover {
  border-bottom-color: #c1121f;
}


/* =========================
   CLAUSES SECTION (each subsection)
========================= */
.clauses-section {
  padding: 70px 60px;
  border-bottom: 1px solid #222;
}

.subsection-title {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.5px;
  margin-bottom: 16px;
}

.subsection-title span {
  color: #c1121f;
}

.subsection-body {
  font-size: 14px;
  color: #888;
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: 36px;
}


/* =========================
   CLAUSE GRID / STACK / BLOCK
========================= */
.clause-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 36px;
}

.clause-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 36px;
}

.clause-block {
  padding: 36px;
  background: #070707;
  border: 1px solid #1a1a1a;
  position: relative;
  display: flex;
  flex-direction: column;
}

.clause-block--wide {
  grid-column: 1 / -1;
}

.clause-index {
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  font-size: 11px;
  color: #333;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.clause-label {
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  font-size: 12px;
  color: #c1121f;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 18px;
}

.clause-body {
  font-size: 14.5px;
  color: #ccc;
  line-height: 1.75;
}


/* =========================
   COMMIT COLUMNS (mutual deliverables, image usage)
========================= */
.commit-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 36px;
}

.commit-col {
  padding: 40px;
  background: #070707;
  border: 1px solid #1a1a1a;
}

.commit-label {
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1a1a1a;
}

.commit-col--mine .commit-label {
  color: #c1121f;
}

.commit-col--yours .commit-label {
  color: #ccc;
}

.commit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.commit-list li {
  font-size: 14.5px;
  color: #ccc;
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
}

.commit-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  font-weight: 700;
}

.commit-col--mine .commit-list li::before {
  color: #c1121f;
}

.commit-col--yours .commit-list li::before {
  color: #444;
}

.commit-sublabel {
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  font-size: 11px;
  color: #555;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 22px 0 14px;
}

.usage-lead {
  font-size: 14.5px;
  color: #ccc;
  line-height: 1.75;
  margin-bottom: 6px;
}


/* =========================
   USAGE NOTE (callout)
========================= */
.usage-note {
  margin-top: 36px;
  padding: 24px 28px;
  background: #0a0202;
  border: 1px solid #2a0508;
  border-left: 3px solid #c1121f;
}

.usage-note p {
  font-size: 14px;
  color: #ccc;
  line-height: 1.8;
}

.usage-note strong {
  color: #f5f5f5;
  font-weight: 700;
}


/* =========================
   INQUIRY CTA
========================= */
.inquiry-section {
  padding: 100px 60px;
  border-bottom: 1px solid #222;
}

.cta-title {
  font-size: 72px;
  font-weight: 900;
  line-height: .9;
  margin-bottom: 28px;
}

.cta-title span {
  color: #c1121f;
}

.cta-body {
  font-size: 16px;
  color: #888;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
}


/* =========================
   SUBMIT BUTTON (matches site)
========================= */
.submit-btn {
  display: inline-block;
  padding: 16px 30px;
  background: #c1121f;
  color: #f5f5f5;
  border: none;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
}

.submit-btn:visited {
  color: #f5f5f5;
}

.submit-btn:hover {
  background: #e11928;
  color: #f5f5f5;
}


/* =========================
   FOOTER
========================= */
.footer {
  padding: 40px;
  text-align: center;
  color: #777;
  border-top: 1px solid #222;
  display: flex;
  justify-content: center;
  gap: 16px;
  font-weight: 800;
  letter-spacing: 2px;
}

.footer-logo {
  color: #777;
}

.footer a {
  color: #777;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 2px;
}

.footer a:hover {
  color: #c1121f;
}


/* =========================
   POLICY SELECTOR (mirrors contact page inquiry-cards)
========================= */
.inquiry-select {
  padding: 50px 60px;
  border-bottom: 1px solid #222;
}

.field-label {
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
  display: block;
}

.inquiry-type-label {
  margin-bottom: 16px;
}

.inquiry-type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.inquiry-card-wrap {
  display: block;
  cursor: pointer;
}

.inquiry-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  margin: 0;
}

.inquiry-card {
  padding: 22px;
  border: 1px solid #222;
  background: #070707;
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
  height: 100%;
}

.inquiry-card-wrap:hover .inquiry-card {
  border-color: #333;
  background: #090909;
}

.inquiry-card-wrap:focus-within .inquiry-card {
  outline: 2px solid #c1121f;
  outline-offset: 2px;
}

.inquiry-radio:checked + .inquiry-card {
  border-color: #c1121f;
  border-width: 2px;
  background: rgba(193, 18, 31, 0.07);
}

.inquiry-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.inquiry-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f5f5f5;
}

.inquiry-card-status {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #c1121f;
  white-space: nowrap;
  padding-top: 2px;
  flex-shrink: 0;
}

.inquiry-card-status--selective {
  color: #555;
}

.inquiry-card-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  font-family: Arial, Helvetica, sans-serif;
}

.inquiry-card-selected {
  display: none;
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #c1121f;
}

.inquiry-radio:checked + .inquiry-card .inquiry-card-selected {
  display: block;
}

.select-hint {
  margin-top: 18px;
  font-size: 12px;
  color: #555;
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* =========================
   POLICY GROUPS — toggle visibility
========================= */
.policy-section-group {
  display: block;
}

.hidden {
  display: none !important;
}


/* =========================
   CRITICAL — red bold inline highlights
========================= */
.critical {
  color: #c1121f;
  font-weight: 700;
}


/* =========================
   MOBILE
========================= */
@media (max-width: 800px) {

  .site-header {
    padding: 0 24px;
  }

  nav { display: none; }
  .nav-toggle { display: flex; }

  .page-hero {
    padding: 60px 28px 60px;
  }

  .page-hero h1 {
    font-size: 52px;
  }

  .notice-bar {
    padding: 18px 28px;
    flex-direction: column;
    gap: 8px;
    top: 90px;
  }

  .contents-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .contents-sep {
    display: none;
  }

  .inquiry-select {
    padding: 40px 28px;
  }

  .inquiry-type-cards {
    grid-template-columns: 1fr;
  }

  .part-section {
    padding: 60px 28px 32px;
    scroll-margin-top: 160px;
  }

  .clauses-section,
  .inquiry-section {
    padding: 50px 28px;
  }

  .section-title {
    font-size: 38px;
  }

  .subsection-title {
    font-size: 26px;
  }

  .clause-grid,
  .commit-columns {
    grid-template-columns: 1fr;
  }

  .clause-block {
    padding: 28px;
  }

  .commit-col {
    padding: 28px;
  }

  .cta-title {
    font-size: 48px;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

}


/* =========================
   UNIFIED ENTRY-NAV + FOOTER (matches the gallery template)
   Appended late so cascade overrides any older .footer rules on this page.
========================= */
.entry-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px;
  border-bottom: 1px solid #1a1a1a;
  gap: 20px;
}

.nav-btn {
  display: inline-block;
  padding: 14px 22px;
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #ccc;
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.nav-btn:hover {
  background: #150505;
  border-color: #c1121f;
  color: #f5f5f5;
}

.nav-btn.primary {
  border-color: #c1121f;
  color: #f5f5f5;
}

.nav-btn.primary:hover {
  background: #c1121f;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 50px;
  background: #030303;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-inner {
  display: contents;          /* legacy wrapper: render its children as direct flex items of .footer */
}

.footer-logo {
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  font-size: 12px;
  letter-spacing: 3px;
  color: #555;
  text-transform: uppercase;
}

.footer a {
  color: #777;
  text-decoration: none;
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.15s;
}

.footer a:hover { color: #c1121f; }

.social-link { color: #c1121f !important; }
.social-link:hover { color: #f5f5f5 !important; }

@media (max-width: 800px) {
  .entry-nav {
    padding: 40px 28px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .nav-btn { text-align: center; }
  .footer { padding: 24px 28px; }
}
