:root {
  --alu: #E3E5E2;        /* page: mill-finish aluminum */
  --sheet: #F2F3F0;      /* paper for the spec sheet */
  --graphite: #23282C;   /* text, plate */
  --plate: #2A2F33;
  --slate: #5A6168;      /* secondary text */
  --rule: #BEC3C0;
  --backlight: #FFB259;  /* only where light comes through */

  --wide: 'wdth' 125;
  --normal: 'wdth' 100;
  --narrow: 'wdth' 75;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--alu);
  color: var(--graphite);
  font-family: 'Archivo', system-ui, sans-serif;
  font-variation-settings: var(--normal);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }

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

:focus-visible {
  outline: 2px solid var(--graphite);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--backlight);
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--sheet);
  z-index: 10;
}
.skip:focus { left: 8px; }

/* Header */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 22px var(--gutter);
  color: #F2F3F0;
}
.wordmark {
  font-variation-settings: var(--wide);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.site-header nav { display: flex; gap: 28px; font-size: 0.95rem; }
.site-header nav a { text-decoration: none; opacity: 0.85; }
.site-header nav a:hover { opacity: 1; text-decoration: underline; }

/* Hero: the plate is the image */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  background: var(--plate);
  color: #F5F4F0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero::after {
  /* keeps the copy readable where the plate is brightest */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(35, 40, 44, 0.85) 0, rgba(35, 40, 44, 0) 110px),
    linear-gradient(90deg, rgba(35, 40, 44, 0.94) 0%, rgba(35, 40, 44, 0.8) 50%, rgba(35, 40, 44, 0) 82%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter) clamp(40px, 8vh, 88px);
  max-width: 820px;
}
.hero h1 {
  font-variation-settings: var(--wide);
  font-weight: 650;
  font-size: clamp(2.4rem, 6.2vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero-copy > p {
  margin-top: 24px;
  max-width: 34em;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: #D6D8D4;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.hero-mail { color: #F5F4F0; }

.button {
  display: inline-block;
  padding: 14px 22px;
  background: var(--backlight);
  color: var(--graphite);
  font-weight: 600;
  font-variation-settings: var(--normal);
  text-decoration: none;
  border-radius: 3px;
}
.button:hover { background: #FFC27A; }

/* Sections share one grid: heading in the left third, content to the right */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 128px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}
.section h2 {
  grid-column: 1 / span 4;
  font-variation-settings: var(--wide);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section + .section { border-top: 1px solid var(--rule); }

/* Services */

.service-list { grid-column: 6 / -1; margin: 0; }
.service-list > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.service-list > div:first-child { border-top: 0; padding-top: 4px; }
.service-list dt { font-weight: 600; font-variation-settings: var(--wide); }
.service-list dd { margin: 0; color: var(--slate); max-width: 36em; }

/* Interiors: the images get the full width */

.concept-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.concept-grid figure { margin: 0; }
.concept-wide { grid-column: 1 / -1; }
.concept-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  background: var(--plate);
}

/* Contact */

.contact-body { grid-column: 6 / -1; }
.contact-body ul { margin: 16px 0 32px; padding-left: 1.1em; color: var(--slate); }
.contact-body li { padding: 3px 0; }
.contact-mail {
  grid-column: 1 / -1;
  margin-top: clamp(24px, 5vw, 64px);
  font-variation-settings: var(--wide);
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-mail:hover { text-decoration: underline; text-decoration-thickness: 3px; }

/* Footer */

.site-footer {
  background: var(--plate);
  color: #D6D8D4;
  padding: 40px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  font-size: 0.95rem;
}
.footer-name { color: #F5F4F0; font-weight: 700; font-variation-settings: var(--wide); }
.footer-copy { margin-left: auto; }

/* Narrow screens */

@media (max-width: 900px) {
  .section h2,
  .service-list, .contact-body { grid-column: 1 / -1; }
  .section { gap: 24px; }
}
@media (max-width: 640px) {
  .site-header nav { display: none; }
  .hero::after { background: linear-gradient(0deg, rgba(35, 40, 44, 0.95) 0%, rgba(35, 40, 44, 0.75) 45%, rgba(35, 40, 44, 0.1) 100%); }
  .service-list > div { grid-template-columns: 1fr; gap: 6px; }
  .concept-grid { grid-template-columns: 1fr; }
  .footer-copy { margin-left: 0; width: 100%; }
}
