:root {
  color-scheme: light;
  --brand-brown: #582707;
  --brand-light-brown: #972d07;
  --brand-red-brown: #ff4b3e;
  --brand-orange-brown: #ffb20f;
  --brand-yellow-brown: #ffe548;
  --cds-green-60: #198038;
  --cds-red-60: #da1e28;
  --cds-gray-100: #161616;
  --cds-gray-90: #262626;
  --cds-gray-80: #393939;
  --cds-gray-70: #525252;
  --cds-gray-60: #6f6f6f;
  --cds-gray-50: #8d8d8d;
  --cds-gray-30: #c6c6c6;
  --cds-gray-20: #e0e0e0;
  --cds-gray-10: #f4f4f4;
  --cds-white: #ffffff;
  --background: var(--cds-white);
  --layer: var(--cds-gray-10);
  --layer-hover: #e8e8e8;
  --border: var(--cds-gray-20);
  --text-primary: var(--cds-gray-100);
  --text-secondary: var(--cds-gray-60);
  --text-inverse: var(--cds-white);
  --focus: var(--brand-red-brown);
  --accent: var(--brand-light-brown);
  --page-padding: clamp(20px, 5vw, 64px);
  --content-max: 1184px;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

code {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 0 var(--page-padding);
  color: var(--text-inverse);
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.88), rgba(22, 22, 22, 0));
}

.guide-header {
  position: sticky;
  background: var(--cds-gray-100);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  text-decoration: none;
  font-weight: 600;
}

.brand-mark {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-right: 12px;
}

.brand-mark span {
  display: block;
  width: 12px;
  height: 12px;
}

.brand-mark span:nth-child(1) {
  background: var(--brand-brown);
}

.brand-mark span:nth-child(2) {
  background: var(--brand-light-brown);
}

.brand-mark span:nth-child(3) {
  background: var(--brand-red-brown);
}

.brand-mark span:nth-child(4) {
  background: var(--brand-orange-brown);
}

.brand-wordmark {
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: stretch;
  min-height: 64px;
  font-size: 0.875rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: var(--brand-orange-brown);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-overlay,
.hero-content {
  grid-area: 1 / 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 92vh;
  object-fit: cover;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(22, 22, 22, 0.92) 0%, rgba(22, 22, 22, 0.66) 42%, rgba(22, 22, 22, 0.18) 76%),
    linear-gradient(180deg, rgba(22, 22, 22, 0.22), rgba(22, 22, 22, 0.46));
}

.hero-content {
  z-index: 2;
  align-self: center;
  width: min(760px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 96px);
  padding-top: 64px;
  color: var(--text-inverse);
}

.kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-light-brown);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.hero .kicker {
  margin-left: 5px;
  color: var(--brand-yellow-brown);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.25rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.36;
}

.hero-actions,
.contact-section,
.component-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  align-items: center;
}

.hero-actions {
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  text-decoration: none;
  font-weight: 400;
  line-height: 1.15;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.button.primary {
  background: var(--brand-yellow-brown);
  color: var(--brand-brown);
}

.button.primary:hover {
  background: var(--brand-orange-brown);
  color: var(--cds-gray-100);
}

.button.secondary {
  border: none;
  color: var(--text-inverse);
  background: #393939;
}

.button.secondary:hover {
  background: #525252;
}

.button.tertiary {
  color: var(--brand-light-brown);
  background: transparent;
}

.button.tertiary:hover {
  background: #fff6cc;
}

.text-link {
  color: var(--brand-light-brown);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.section,
.section-band,
.contact-section,
.guide-section {
  padding: clamp(64px, 9vw, 112px) var(--page-padding);
}

.section-band,
.guide-band {
  background: var(--layer);
}

.content-grid,
.section-heading,
.service-grid,
.case-grid,
.contact-section,
.site-footer,
.guide-hero,
.guide-section-heading,
.swatch-grid,
.type-specimen,
.component-row,
.sample-form {
  max-width: var(--content-max);
  margin-right: auto;
  margin-left: auto;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(280px, 0.72fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.content-grid p:last-child,
.contact-copy p,
.service-card p,
.case-card p,
.guide-hero p,
.type-specimen p {
  color: var(--text-secondary);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  min-height: 232px;
  padding: 24px;
  background: var(--background);
}

.service-card:hover {
  background: var(--layer);
}

.card-label {
  margin-bottom: 42px;
  color: var(--accent);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--border);
}

.case-card {
  min-height: 248px;
  padding: 24px;
  background: var(--background);
}

.case-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  margin-bottom: 28px;
}

.case-logo img {
  display: block;
  width: auto;
  height: 80px;
  max-width: min(220px, 100%);
  object-fit: contain;
}

.case-card:nth-child(3) .case-logo img {
  max-width: 80px;
}

.case-card .card-label {
  margin-bottom: 18px;
}

.case-card p {
  color: var(--text-secondary);
}

.case-card:hover {
  background: var(--layer);
}

.contact-section {
  justify-content: space-between;
  gap: 28px;
}

.contact-copy {
  max-width: 690px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--page-padding);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.site-footer a {
  text-decoration: none;
}

.guide-page {
  background: var(--background);
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.72fr);
  gap: clamp(32px, 6vw, 96px);
  padding: 112px var(--page-padding) 72px;
}

.guide-hero h1 {
  color: var(--text-primary);
}

.guide-section {
  border-top: 1px solid var(--border);
}

.guide-section-heading {
  margin-bottom: 36px;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.swatch {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 16px;
  background: var(--background);
}

.swatch span {
  display: block;
  height: 76px;
  border: 1px solid var(--border);
}

.swatch strong {
  font-weight: 500;
}

.swatch code {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.type-specimen {
  display: grid;
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}

.type-specimen > div {
  padding: 24px;
  background: var(--background);
}

.type-label {
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.display-sample {
  max-width: 780px;
  color: var(--text-primary) !important;
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  font-weight: 400;
  line-height: 0.98;
}

.logo-specimen {
  max-width: var(--content-max);
  margin-right: auto;
  margin-left: auto;
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--cds-gray-100);
  color: var(--text-inverse);
}

.brand-demo {
  width: fit-content;
}

.sample-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}

.sample-form label {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--background);
}

.sample-form label.full {
  grid-column: 1 / -1;
}

.sample-form span {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

input,
select,
textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--cds-gray-80);
  border-radius: 0;
  background: var(--layer);
  color: var(--text-primary);
  font: inherit;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  padding: 14px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  background: var(--layer-hover);
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    min-height: 96px;
  }

  .guide-header {
    position: sticky;
  }

  .brand-wordmark {
    max-width: 190px;
    line-height: 1.1;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .hero-image {
    min-height: 88vh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(22, 22, 22, 0.9), rgba(22, 22, 22, 0.46)),
      linear-gradient(180deg, rgba(22, 22, 22, 0.2), rgba(22, 22, 22, 0.56));
  }

  .hero-content {
    width: calc(100% - 40px);
    margin: 0 auto;
    padding-top: 96px;
  }

  h1 {
    font-size: 3.45rem;
  }

  .content-grid,
  .service-grid,
  .case-grid,
  .guide-hero,
  .swatch-grid,
  .sample-form {
    grid-template-columns: 1fr;
  }

  .service-card,
  .case-card {
    min-height: auto;
  }

  .sample-form label.full {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.9rem;
  }

  .button {
    width: 100%;
  }
}
