:root {
  --paper: #f2f1ed;
  --surface: #fbfaf6;
  --ink: #101112;
  --muted: #5c5f60;
  --line: #101112;
  --accent: #ff5a1f;
  --mono: "IBM Plex Mono", "JetBrains Mono", "Space Mono", "Courier New", monospace;
  --sans: Inter, Arial, Helvetica, sans-serif;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--ink);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

button,
input,
textarea {
  font: inherit;
}

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

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--surface);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.status-strip {
  width: min(calc(100% - 32px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  border-bottom: 2px solid var(--line);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.055em;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 35px;
  height: 26px;
  border: 2px solid var(--line);
  display: inline-block;
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 5px;
  width: 20px;
  height: 12px;
  border-top: 2px solid var(--line);
  border-left: 2px solid var(--line);
  transform: skewY(-24deg);
}

.brand-mark i:first-child,
.brand-mark i:last-child {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--ink);
}

.brand-mark i:first-child {
  left: 10px;
}

.brand-mark i:last-child {
  right: 10px;
}

.status-badge,
.stamp {
  display: inline-block;
  border: 2px solid var(--accent);
  padding: 6px 9px;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.1;
  text-decoration: none;
}

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

.panel {
  position: relative;
  border: 3px solid var(--line);
  background: var(--surface);
}

.panel::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 28px;
  height: 28px;
  border-top: 3px solid var(--line);
  border-left: 3px solid var(--line);
  background: var(--paper);
}

.panel-code,
.eyebrow,
.section-number,
.technical-note,
.footer-label,
.log-meta,
.field label,
.field-help,
.consent-row,
.form-status,
.noscript-note {
  font-family: var(--mono);
}

.panel-code {
  padding: 9px 14px;
  border-bottom: 2px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 6vw;
  padding: clamp(34px, 6vw, 80px);
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

h1,
h2,
h3 {
  font-family: var(--mono);
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.65rem, 6.3vw, 6.7rem);
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  text-transform: uppercase;
}

.hero-copy {
  align-self: end;
  max-width: 540px;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.hero-copy p {
  margin-bottom: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  padding: 12px 17px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button-primary,
.button-submit {
  color: var(--surface);
  background: var(--ink);
}

.button:hover {
  color: var(--ink);
  background: var(--surface);
}

.text-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--line);
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-meta span {
  padding: 13px 16px;
  border-right: 1px solid var(--line);
}

.hero-meta span:last-child {
  border-right: 0;
}

.scope-section,
.services-section,
.process-section {
  margin-top: 72px;
}

.section-heading {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--line);
}

.section-number {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 2px solid var(--line);
  border-left: 2px solid var(--line);
}

.scope-item {
  min-height: 190px;
  padding: 24px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.scope-item dt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.scope-item dd {
  max-width: 540px;
  margin: 0;
}

.stamp-dark {
  border-color: var(--line);
}

.table-wrap {
  overflow-x: auto;
  border: 2px solid var(--line);
  background: var(--surface);
}

.service-table {
  width: 100%;
  border-collapse: collapse;
}

.service-table th,
.service-table td {
  padding: 17px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.service-table th:last-child,
.service-table td:last-child {
  border-right: 0;
}

.service-table tbody tr:last-child td {
  border-bottom: 0;
}

.service-table th {
  color: var(--surface);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.055em;
}

.service-table td:first-child,
.service-table td:nth-child(2) {
  font-family: var(--mono);
  font-weight: 700;
}

.service-table td:nth-child(2) {
  white-space: nowrap;
}

.technical-note {
  margin: 12px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border: 2px solid var(--line);
  list-style: none;
  background: var(--surface);
}

.process-list li {
  min-height: 215px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.process-list li:last-child {
  border-right: 0;
}

.process-number {
  display: block;
  margin-bottom: 38px;
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 800;
}

.process-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.request-section {
  margin-top: 80px;
  border: 5px solid var(--line);
  background: var(--surface);
}

.request-header {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 30px;
  padding: 28px 30px;
  color: var(--surface);
  background: var(--ink);
}

.request-header h2 {
  margin-top: 10px;
}

.request-header p {
  align-self: end;
  margin-bottom: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.inverse {
  color: var(--surface);
}

.request-form {
  padding: clamp(24px, 5vw, 56px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.field {
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.055em;
}

input,
textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 14px;
  color: var(--ink);
  background: #fff;
}

input {
  min-height: 52px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #737677;
  opacity: 1;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.67rem;
  text-align: right;
}

.consent-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  margin-top: 24px;
  font-size: 0.7rem;
}

.consent-row input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.submit-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 26px;
}

.button-submit {
  min-width: 240px;
}

.form-status,
.noscript-note {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
}

.log-section {
  margin-top: 56px;
  padding: 23px 0 0 28px;
  border-top: 2px solid var(--line);
  border-left: 8px solid var(--line);
}

.log-meta {
  margin-bottom: 15px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.045em;
}

.log-section blockquote {
  max-width: 940px;
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: clamp(1.15rem, 2.1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
}

.log-section cite {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 28px;
  padding: 36px max(16px, calc((100% - var(--max)) / 2));
  color: var(--surface);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.site-footer address {
  font-style: normal;
}

.site-footer a {
  color: inherit;
}

.footer-label {
  display: block;
  margin-bottom: 8px;
  color: #b9bcba;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
}

.copyright {
  display: block;
  margin-top: 8px;
}

.trademark-note {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding-top: 18px;
  border-top: 1px solid #5f6263;
  color: #b9bcba;
  font-size: 0.63rem;
}

.legal-shell {
  margin-top: 32px;
}

.legal-hero {
  padding-bottom: 42px;
}

.legal-hero .eyebrow,
.legal-hero h1,
.legal-hero > p:last-child {
  margin-right: clamp(24px, 6vw, 80px);
  margin-left: clamp(24px, 6vw, 80px);
}

.legal-hero .eyebrow {
  margin-top: 46px;
}

.legal-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5.6rem);
}

.legal-hero > p:last-child {
  max-width: 720px;
  margin-top: 26px;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: clamp(40px, 8vw, 110px);
  margin-top: 58px;
}

.legal-index {
  position: sticky;
  top: 24px;
  align-self: start;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.legal-index .footer-label {
  margin: 0;
  padding: 11px 0;
  color: var(--muted);
}

.legal-index a {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.legal-index a:hover {
  padding-left: 6px;
}

.legal-content section {
  margin-bottom: 48px;
  scroll-margin-top: 24px;
}

.legal-content h2 {
  margin: 8px 0 18px;
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
}

.legal-content p {
  max-width: 72ch;
}

.legal-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding-top: 25px;
  border-top: 3px solid var(--line);
}

@media (max-width: 900px) {
  .status-strip {
    grid-template-columns: 1fr auto;
  }

  .service-area {
    display: none;
  }

  .hero-grid,
  .request-header {
    grid-template-columns: 1fr;
  }

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

  .process-list {
    grid-template-columns: 1fr 1fr;
  }

  .process-list li:nth-child(2) {
    border-right: 0;
  }

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

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 640px) {
  body::before {
    height: 4px;
  }

  .status-strip {
    width: min(calc(100% - 20px), var(--max));
    min-height: 66px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
    font-size: 0.67rem;
  }

  .brand-mark {
    width: 29px;
    height: 23px;
  }

  .status-badge {
    max-width: 142px;
    padding: 5px 6px;
    font-size: 0.59rem;
    text-align: center;
  }

  .site-shell {
    width: min(calc(100% - 20px), var(--max));
    margin-top: 20px;
    margin-bottom: 48px;
  }

  .panel {
    border-width: 2px;
  }

  .panel::after {
    right: -2px;
    bottom: -2px;
    border-width: 2px 0 0 2px;
  }

  .hero-grid {
    gap: 32px;
    padding: 28px 20px 36px;
  }

  h1 {
    font-size: clamp(2.45rem, 14vw, 4.4rem);
  }

  .hero-actions,
  .submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .button-submit {
    width: 100%;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-meta span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-meta span:last-child {
    border-bottom: 0;
  }

  .scope-section,
  .services-section,
  .process-section {
    margin-top: 52px;
  }

  .section-heading {
    grid-template-columns: 58px 1fr;
    gap: 10px;
  }

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

  .scope-item {
    min-height: 0;
    padding: 20px;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .service-table,
  .service-table tbody,
  .service-table tr,
  .service-table td {
    display: block;
    width: 100%;
  }

  .service-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .service-table tr {
    margin-bottom: 12px;
    border: 2px solid var(--line);
    background: var(--surface);
  }

  .service-table td,
  .service-table td:last-child,
  .service-table tbody tr:last-child td {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 10px;
    padding: 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-table td:last-child {
    border-bottom: 0;
  }

  .service-table td::before {
    content: attr(data-label);
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li,
  .process-list li:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-list li:last-child {
    border-bottom: 0;
  }

  .process-number {
    margin-bottom: 18px;
  }

  .request-section {
    margin-top: 58px;
    border-width: 3px;
  }

  .request-header {
    padding: 24px 20px;
  }

  .request-form {
    padding: 24px 18px;
  }

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

  .field-wide {
    grid-column: auto;
  }

  .log-section {
    padding-left: 18px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .legal-hero .eyebrow,
  .legal-hero h1,
  .legal-hero > p:last-child {
    margin-right: 20px;
    margin-left: 20px;
  }

  .legal-hero h1 {
    font-size: 2.5rem;
  }

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

  .legal-index {
    position: static;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
