:root {
  --navy-950: #0d1d2c;
  --navy-900: #12283b;
  --navy-800: #1d3a50;
  --graphite-700: #475762;
  --steel-300: #a9bbc7;
  --paper: #f0f2f4;
  --paper-bright: #fafbfc;
  --copper: #98512f;
  --copper-dark: #713a22;
  --line: rgba(18, 40, 59, 0.15);
  --line-strong: rgba(18, 40, 59, 0.42);
  --shell: 1180px;
  --gutter: 48px;
  --font-body: "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--paper);
  color: var(--navy-950);
  font-family: var(--font-body);
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
}

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

.skip-link {
  background: var(--navy-900);
  color: white;
  left: 16px;
  padding: 12px 18px;
  position: fixed;
  top: -100px;
  z-index: 80;
}

.skip-link:focus {
  top: 16px;
}

.drawing-grid {
  background-image:
    linear-gradient(rgba(18, 40, 59, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 40, 59, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  inset: 0;
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  pointer-events: none;
  position: fixed;
}

.shell {
  margin-inline: auto;
  max-width: var(--shell);
  position: relative;
  width: calc(100% - var(--gutter));
}

.site-header {
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 84px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  aspect-ratio: 1;
  display: block;
  flex: none;
  height: 72px;
  max-height: 72px;
  max-width: 72px;
  object-fit: contain;
  width: 72px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

nav a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  color: var(--copper-dark);
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  min-height: 640px;
  padding-block: 80px;
}

.hero-copy {
  border: 1px solid var(--line-strong);
  padding: clamp(34px, 5vw, 72px);
}

.eyebrow,
.panel-label,
.card-number,
dt {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--copper-dark);
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(48px, 6.3vw, 86px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 32px;
  max-width: 850px;
}

.hero-lead {
  color: var(--graphite-700);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  max-width: 760px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  text-decoration: none;
}

.button-primary {
  background: var(--navy-900);
  color: white;
}

.button-primary:hover {
  background: var(--navy-800);
}

.button-secondary {
  border-color: var(--navy-800);
}

.button-secondary:hover {
  background: var(--paper-bright);
}

.position-panel {
  background: var(--navy-900);
  color: white;
  padding: 48px 36px;
}

.panel-label {
  color: var(--steel-300);
  margin-bottom: 38px;
}

.position-path {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.position-path li {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  gap: 16px;
  grid-template-columns: 36px 1fr;
  line-height: 1.35;
  padding: 26px 0;
}

.position-path li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.position-path span {
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 12px;
}

.position-path .active {
  background: var(--copper);
  margin-inline: -36px;
  padding-inline: 36px;
}

.position-path .active span {
  color: white;
}

.services {
  padding-block: 96px 112px;
}

.section-heading {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
  margin-bottom: 46px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -6px;
}

h2 {
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 0;
}

.section-heading > p:last-child {
  color: var(--graphite-700);
  font-size: 17px;
  line-height: 1.65;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  background: color-mix(in srgb, var(--paper-bright) 78%, transparent);
  border: 1px solid var(--line-strong);
  min-height: 360px;
  padding: 34px;
}

.service-card + .service-card {
  border-left: 0;
}

.card-number {
  color: var(--copper-dark);
  margin-bottom: 44px;
}

.service-card h3 {
  font-size: 27px;
  line-height: 1.14;
  margin-bottom: 22px;
}

.service-card > p:not(.card-number) {
  color: var(--graphite-700);
  line-height: 1.6;
}

.service-note {
  border-top: 1px solid var(--line);
  font-size: 14px;
  margin-top: 24px;
  padding-top: 18px;
}

.contact-section {
  background: var(--navy-900);
  color: white;
  padding-block: 92px;
}

.contact-grid {
  display: grid;
  gap: 70px;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1.25fr);
}

.eyebrow-light {
  color: #e3ad88;
}

.contact-intro > p:not(.eyebrow) {
  color: #d5dfe6;
  font-size: 17px;
  line-height: 1.65;
  margin-top: 28px;
}

dl {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: 42px;
}

dt {
  color: var(--steel-300);
  margin-top: 22px;
}

dd {
  line-height: 1.5;
  margin: 7px 0 0;
}

dd a {
  text-decoration-color: #e3ad88;
  text-underline-offset: 4px;
}

form {
  background: var(--paper-bright);
  color: var(--navy-950);
  padding: 36px;
}

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

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

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

input,
select,
textarea {
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--navy-950);
  font: inherit;
  padding: 13px 14px;
  width: 100%;
}

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

.form-hint {
  color: var(--graphite-700);
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0 0;
}

.button-copper {
  background: var(--copper);
  color: white;
  width: 100%;
}

.button-copper:hover {
  background: var(--copper-dark);
}

.hp-field {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.site-footer {
  background: var(--navy-950);
  color: #c7d2d9;
}

.footer-inner {
  align-items: center;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  min-height: 96px;
}

.footer-inner p {
  margin: 0;
}

/* Keep the three-card row for desktop widths; stack before tablet card
   headings become too narrow to read as deliberate lines. */
@media (max-width: 1040px) {
  :root {
    --gutter: 32px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-block: 48px 72px;
  }

  .position-panel {
    padding: 36px 28px;
  }

  .position-path .active {
    margin-inline: -28px;
    padding-inline: 28px;
  }

  .section-heading,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .service-card {
    min-height: 0;
  }

  .service-card + .service-card {
    border-left: 1px solid var(--line-strong);
    border-top: 0;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 24px;
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-name {
    font-size: 13px;
    max-width: 150px;
  }

  .brand-mark {
    height: 56px;
    max-height: 56px;
    max-width: 56px;
    width: 56px;
  }

  nav {
    gap: 14px;
  }

  nav a {
    font-size: 12px;
  }

  .hero {
    min-height: 0;
    padding-block: 28px 56px;
  }

  .hero-copy {
    padding: 30px 24px;
  }

  h1 {
    font-size: clamp(43px, 13vw, 60px);
  }

  .button-row {
    display: grid;
  }

  .services,
  .contact-section {
    padding-block: 64px;
  }

  .section-heading {
    gap: 16px;
  }

  .service-card,
  form {
    padding: 26px 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
  }
}

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