:root {
  --dark: #101e32;
  --light-muted: #d4dce6;
  --paper: #f7f7f3;
  --panel: #eaeef0;
  --section-space: clamp(40px, 6.4vw, 96px);
  --cnc-header-height: 73px;
  scroll-padding-block-start: var(--cnc-header-height);
}

h1, h2 { font-family: inherit; }
h2 {
  font-size: clamp(2.25rem, 4.8vw, 4.6rem);
  font-weight: 750;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: pretty;
}

body { background: var(--dark); }
main, .site-footer { background: var(--paper); }
.site-header { min-height: var(--cnc-header-height); color: var(--paper); }
.site-header nav a { text-decoration-color: var(--orange); }
.skip-link { position: fixed; z-index: 3; }

.cnc-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  background: var(--dark);
  box-shadow: inset 0 -1px rgb(255 255 255 / .15);
}
.cnc-header-inner {
  position: relative;
  gap: clamp(20px, 4vw, 56px);
}
.cnc-header .wordmark {
  display: grid;
  gap: 3px;
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.1;
  white-space: nowrap;
}
.cnc-tagline {
  color: var(--light-muted);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 0;
}
.cnc-menu, .cnc-menu nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}
.cnc-menu { flex: 1; }
.cnc-menu a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; text-decoration: none; }
.cnc-menu a[aria-current="page"], .cnc-menu a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.cnc-section-nav { margin-inline-start: auto; }
.cnc-section-nav a { color: var(--light-muted); }
.cnc-section-nav a[href="#checklist"] { color: var(--paper); }
.cnc-header a.cnc-request {
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  background: var(--orange);
  color: var(--dark);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.cnc-header a.cnc-request:hover { background: var(--paper); }
.cnc-header a.cnc-request:focus-visible { outline-color: var(--paper); }
.cnc-mobile-request { display: none; }
.cnc-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / .3);
  background: var(--dark);
  color: var(--paper);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.cnc-menu-icon { position: relative; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px currentColor, 0 5px currentColor; }
.cnc-menu-toggle[aria-expanded="true"] .cnc-menu-icon { box-shadow: none; transform: rotate(45deg); }
.cnc-menu-toggle[aria-expanded="true"] .cnc-menu-icon::after { content: ""; position: absolute; inset: 0; background: currentColor; transform: rotate(90deg); }

@media (max-width: 900px) {
  .cnc-header:has(.cnc-menu-toggle[hidden]) { position: relative; }
  .cnc-header-inner { flex-wrap: wrap; gap: 0 8px; }
  .cnc-mobile-request {
    display: inline-flex;
    margin-inline-start: auto;
  }
  .cnc-menu .cnc-desktop-request { display: none; }
  .cnc-menu { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 6px; }
  .cnc-menu-toggle:not([hidden]) + .cnc-menu {
    position: absolute;
    z-index: 2;
    inset: 100% 0 auto;
    padding: 8px 16px 12px;
    max-block-size: calc(100dvh - var(--cnc-header-height));
    overflow: auto;
    border: 1px solid rgb(255 255 255 / .3);
    background: var(--dark);
  }
  .cnc-menu nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .cnc-section-nav { margin-inline-start: 0; padding-block-start: 6px; border-block-start: 1px solid rgb(255 255 255 / .2); }
}

@media (max-width: 360px) {
  .cnc-menu-toggle { min-width: 44px; justify-content: center; }
  .cnc-menu-label { display: none; }
}

.hero {
  background: var(--dark);
  color: var(--paper);
  border-color: rgb(255 255 255 / .2);
  padding-block: clamp(34px, 5.6vw, 84px);
}
.hero-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 74px);
}
.hero h1 {
  font-size: clamp(3.2rem, 7.2vw, 7rem);
  font-weight: 780;
  line-height: .91;
  letter-spacing: -.055em;
}
.hero h1 span { max-inline-size: 10ch; }
.hero h1 em {
  margin-top: .6em;
  color: var(--light-muted);
  font-size: clamp(1.25rem, 2.65vw, 2rem);
  font-style: normal;
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -.015em;
}
.hero-copy {
  max-width: 48ch;
  color: var(--light-muted);
  font-size: clamp(1.075rem, 1.45vw, 1.275rem);
  line-height: 1.5;
}
.hero-actions { margin-top: clamp(20px, 2.5vw, 36px); }
.hero .button-orange { border-color: var(--orange); }
.hero .button-orange:hover { color: var(--dark); background: var(--paper); border-color: var(--paper); }
.hero .button-orange:focus-visible { outline-color: var(--paper); }
.hero-material-link { color: var(--paper); }
.hero-material-link:hover { text-decoration-color: var(--orange); }

.hero-visual { min-width: 0; margin: 0; }
.hero-image {
  --cut: clamp(28px, 4.3vw, 62px);
  position: relative;
  background: var(--orange);
}
.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  object-position: 46% 50%;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.hero-visual figcaption { margin-top: 10px; color: var(--light-muted); font-size: .875rem; line-height: 1.35; }

.spec-strip { background: var(--panel); }
.spec-list { padding-block: 21px; }
.spec-list dd { line-height: 1.25; }
.spec-list > div:nth-child(2) dd { font-variant-numeric: tabular-nums; }

.case-options {
  gap: 4px;
  margin-bottom: 4px;
}
.case-options label {
  justify-self: stretch;
  padding: 11px clamp(12px, 2vw, 24px);
  border: 0;
  background: var(--panel);
  color: var(--navy);
}
.case-options label:hover { box-shadow: inset 0 -2px var(--navy); }
#case-single:checked ~ .case-options label[for="case-single"],
#case-series:checked ~ .case-options label[for="case-series"],
#case-repeat:checked ~ .case-options label[for="case-repeat"] { background: var(--orange); }
.case-example {
  grid-template-areas: "photo points";
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 58px);
  padding: clamp(16px, 3.1vw, 42px);
  background: var(--dark);
  color: var(--paper);
}
.case-photo { background: linear-gradient(var(--orange), var(--orange)) right top / 30px 30px no-repeat; }
.case-photo img {
  aspect-ratio: 3 / 2;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
}
.case-photo::after { display: none; }
.case-photo figcaption { color: var(--light-muted); }
.case-points { color: var(--paper); }
.case-points li + li { margin-top: .7em; }
.case-points li::marker { color: var(--orange); }
.case-points a { text-decoration-color: var(--orange); }

.materials {
  border-top: 0;
  padding: clamp(22px, 4vw, 56px);
  background: var(--panel);
}
.materials-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}
.material-sample {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(12px, 2vw, 25px);
  align-items: start;
  padding: clamp(14px, 2.1vw, 28px);
  background: var(--paper);
}
.material-sample img { grid-row: 1 / 3; aspect-ratio: 4 / 3; }
.material-sample h3 { margin-top: 0; }
.materials-notes {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  border-top: 0;
  padding-top: 0;
}
.materials-notes > p { max-width: none; }
.own-material {
  scroll-margin-block-start: 20px;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 8px clamp(18px, 3vw, 40px);
  padding: clamp(16px, 2.4vw, 32px);
  border-inline-start: 3px solid var(--orange);
  background: var(--paper);
}
.materials-notes .own-material h3 { margin-bottom: 0; }

.quote-process { grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); border-top: 0; }
.quote-process h2 { max-inline-size: none; }
.quote-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  border-top: 3px solid var(--orange);
  background: var(--panel);
}
.quote-steps li, .quote-steps li:last-child {
  padding: clamp(20px, 3vw, 40px);
  border-top: 0;
}
.quote-steps li + li { border-inline-start: 1px solid var(--line); }
.quote-steps li::before { content: none; }
.quote-step-marker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-end: 14px;
}
.quote-step-marker::before {
  content: counter(quote-step, decimal-leading-zero);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1;
}
.quote-step-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quote-steps p + p { margin-top: .75em; }
@media (min-width: 831px) {
  .quote-steps li {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    align-items: start;
  }
}
.about { background: var(--paper); color: var(--navy); }
.about-layout {
  grid-template: "title title" "portrait copy" / clamp(90px, 12vw, 142px) minmax(0, 1fr);
  gap: clamp(16px, 2.8vw, 38px);
  padding-block: 0 var(--section-space);
  align-items: start;
}
.about-layout h2 { max-inline-size: none; font-size: clamp(2rem, 3.2vw, 3.25rem); }
.about-layout h2::after { display: none; }
.about-layout p { color: var(--navy); }
.about-layout a:hover { color: var(--navy); text-decoration-color: var(--navy); }

.cnc-faq {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr);
  align-items: start;
  gap: var(--column-gap);
  padding-block: clamp(28px, 4vw, 56px) var(--section-space);
  border-block-start: 1px solid var(--line);
}
.cnc-faq h2 { font-size: clamp(2rem, 3.7vw, 3.5rem); }
.cnc-faq .request-questions { margin-block-start: 0; }
.cnc-faq .request-questions p { max-inline-size: 68ch; }

.request { background: var(--dark); color: var(--paper); border-color: var(--dark); }
.request-intro { padding-block-start: 0; }
.request-intro p { color: var(--light-muted); }
.request-panel { background: var(--paper); color: var(--navy); }
.site-footer { box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); }

@media (max-width: 830px) {
  .hero h1 { font-size: clamp(3rem, 7.9vw, 5rem); }
  .quote-steps { grid-template-columns: minmax(0, 1fr); }
  .quote-steps li + li { border-inline-start: 0; border-top: 1px solid var(--line); }
  .cnc-faq { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 680px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr); }
  .hero h1 span { max-inline-size: 12ch; }
  .hero-image img { aspect-ratio: 3 / 2; }
  .case-example { grid-template-areas: "photo" "points"; grid-template-columns: minmax(0, 1fr); }
  .case-photo { max-inline-size: none; }
  .materials-list, .own-material { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575px) {
  :root { --cnc-header-height: 64px; }
  .cnc-header .wordmark { font-size: 1rem; }
  .spec-list { padding-block: 16px; }
  .materials { padding: 0; background: var(--paper); }
  .own-material { background: var(--panel); }
  .material-sample {
    grid-template-columns: minmax(0, 28%) minmax(0, 1fr);
    background: var(--panel);
  }
  .about-layout { grid-template: "title" "portrait" "copy" / minmax(0, 1fr); }
  .about-portrait { max-width: 108px; }
}
