@font-face {
  font-family: Barlow;
  src: url("fonts/barlow-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("fonts/barlow-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --ink: #151510;
  --paper: #f4f0e7;
  --muted: #55554a;
  --line: #c7c5b9;
  --yellow: #f9cc07;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --pad: clamp(1.25rem, 4.2vw, 4rem);
  --max: 76rem;
  font: 100%/1.5 Barlow, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ol, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a, button, input { touch-action: manipulation; }
:focus-visible { outline: 3px solid #2772b2; outline-offset: 4px; }
.mast :focus-visible, .hero :focus-visible, .result :focus-visible,
.study:focus-visible, footer :focus-visible { outline-color: var(--yellow); }
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - 2 * var(--pad)), var(--max)); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 3;
  top: 0;
  left: var(--pad);
  transform: translateY(-140%);
  padding: .75rem 1rem;
  color: var(--ink);
  background: var(--yellow);
}
.skip:focus { transform: translateY(.5rem); }
.mast, footer { background: var(--ink); color: var(--paper); }
.mast { border-bottom: 1px solid #42423a; }
.mast-inner, .mast nav, .brand, .footer-inner { display: flex; align-items: center; }
.mast-inner { justify-content: space-between; min-height: 4.4rem; gap: 1.25rem; }
.brand { gap: .6rem; min-height: 44px; }
.brand img { width: 2.5rem; height: auto; }
.brand strong { font: 700 1.85rem/1 var(--display); }
.brand > span {
  padding-left: .8rem;
  margin-left: .2rem;
  border-left: 1px solid #56564b;
  font-size: .7rem;
  line-height: 1.12;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.mast nav { gap: clamp(.8rem, 3vw, 2.5rem); }
.mast nav a, .footer-inner a { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; }
.mast nav a { font-weight: 600; }
.mast nav a:hover, footer a:hover { color: var(--yellow); }
.nav-quote { color: var(--yellow); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  background: var(--ink);
  color: var(--paper);
}
.hero-copy {
  align-self: center;
  padding: clamp(4rem, 6.5vw, 7rem) clamp(2rem, 4vw, 4.75rem);
  padding-left: max(var(--pad), calc((100vw - var(--max)) / 2));
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.35;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; flex: none; width: 2rem; height: 3px; background: currentColor; }
.hero .eyebrow { color: var(--yellow); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; }
h1 {
  margin-top: .8rem;
  font-size: clamp(5rem, 8.7vw, 8.8rem);
  line-height: .97;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
h1 span { color: var(--yellow); }
.hero-lead {
  max-width: 28rem;
  margin-top: 1.65rem;
  color: #dedbd0;
  font-size: clamp(1.1rem, 1.45vw, 1.3rem);
  line-height: 1.45;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; align-items: center; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 48px;
  max-width: 100%;
  padding: .8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}
.button span, .study-action span, .nav-quote span { font: 1.2em/1 system-ui, sans-serif; }
.button.yellow { background: var(--yellow); color: var(--ink); }
.button.yellow:hover { background: #ffdd4b; }
.button.solid { background: var(--ink); color: white; }
.button.solid:hover { background: #38392e; }
.text-link { text-decoration: underline; text-underline-offset: .28em; text-decoration-thickness: 1px; }
.hero .text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.hero .text-link:hover { color: var(--yellow); }
.hero-photo { position: relative; overflow: hidden; min-height: 24rem; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.hero-photo figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .65rem 1.1rem;
  background: var(--ink);
  font-size: .9rem;
}
.hero-photo figcaption span { color: var(--yellow); font-weight: 600; }
.section { padding-block: clamp(3.25rem, 6.5vw, 6.5rem); }
h2 { font-size: clamp(2.45rem, 4.3vw, 4.25rem); line-height: .98; letter-spacing: -.023em; }
h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: -.007em; }
.eyebrow + h2 { margin-top: 1rem; }
.columns, .estimate-heading { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.2rem, 8vw, 8.25rem); }
.section-intro h2 { max-width: 13ch; }
.section-intro > h2 + p, .estimate-heading > p { max-width: 55ch; font-size: 1.125rem; color: var(--muted); }
.section-intro > h2 + p { margin-top: 1.25rem; }
.road-brief { margin-top: 2rem; padding-left: 1rem; border-left: 3px solid var(--yellow); }
.road-brief p { margin-top: .4rem; max-width: 44ch; color: var(--muted); }
.road-brief a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-weight: 600; }
.stages { list-style: none; padding: 0; counter-reset: tahap; }
.stages li {
  counter-increment: tahap;
  position: relative;
  padding: 1.15rem 0 1.3rem 3.6rem;
  border-top: 1px solid var(--line);
}
.stages li:first-child { border-top-color: var(--ink); }
.stages li:last-child { border-bottom: 1px solid var(--line); }
.stages li::before {
  content: counter(tahap, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.38rem;
  font: 600 .9rem/1 Barlow, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #59594b;
}
.stages p { max-width: 61ch; margin-top: .5rem; color: var(--muted); }
.estimate { background: #e3e2d6; border-block: 1px solid var(--line); }
.estimate-heading { align-items: end; }
.estimate-heading h2 { max-width: 15ch; }
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  margin-top: 2rem;
  background: #fbf9f2;
}
.calculator, .manual, .result { min-width: 0; padding: clamp(1.25rem, 3.3vw, 3rem); }
.calculator:not([hidden]) + .manual, .calculator[hidden] ~ .result .estimate-value { display: none; }
.manual p { margin-top: 1rem; max-width: 45ch; }
.kind { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .dimensions label { font-weight: 600; }
legend { padding: 0; margin-bottom: .6rem; }
.choices { display: flex; flex-wrap: wrap; gap: .65rem; }
.choices label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: .55rem 1.15rem;
  border: 1px solid #949587;
  border-radius: 2px;
  cursor: pointer;
}
.choices label:has(:checked) { background: #fff2ad; border-color: #655103; }
.choices input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--ink); }
.dimensions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.dimensions label { display: grid; align-content: start; gap: .35rem; min-width: 0; }
.dimensions .full { grid-column: 1 / -1; }
.dimensions input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: .55rem .75rem;
  border: 1px solid #949587;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.dimensions input::placeholder { color: #68685e; opacity: 1; }
.hint { margin: .8rem 0 1.25rem; color: var(--muted); font-size: .94rem; }
.result { display: flex; flex-direction: column; gap: 1.6rem; background: var(--ink); color: var(--paper); }
.result h3 { font-size: 1.45rem; }
.result p { color: #d7d5c7; margin-top: .55rem; }
.reading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; color: var(--yellow); font-family: var(--display); }
.reading strong { min-width: 0; font-size: clamp(2.7rem, 4vw, 4.25rem); line-height: 1.05; margin-top: .45rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.reading span { font-size: 1.6rem; }
.estimate-value { padding-bottom: 1.3rem; border-bottom: 1px solid #515148; }
.result .button { margin-top: 1.1rem; }
.assumptions { margin-top: 1.05rem; max-width: 86ch; color: #505145; font-size: 1rem; }
.study-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.15rem, 3vw, 2.6rem); margin-top: 1.8rem; }
.study { display: flex; flex-direction: column; background: var(--ink); color: var(--paper); }
.study img { width: 100%; height: auto; aspect-ratio: 2.6; object-fit: cover; }
.study-copy { flex: auto; display: flex; flex-direction: column; align-items: start; padding: clamp(1.2rem, 2.3vw, 2rem); }
.study p { margin: .55rem 0 1.3rem; color: #d7d5c7; max-width: 48ch; }
.study-action { display: inline-flex; gap: 1rem; align-items: center; margin-top: auto; font-weight: 600; color: var(--yellow); }
.study:hover .study-action { text-decoration: underline; text-underline-offset: .3em; }
.study:focus-visible { outline-color: #2772b2; }
.footer-inner { min-height: 5rem; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; padding-block: 1rem; }
.footer-inner > span { font-weight: 600; }

@media (max-width: 55rem) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
  .hero-copy { padding-block: 3.5rem; }
  .columns, .estimate-heading { gap: 2.2rem; }
  .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 45rem) {
  .mast-inner { min-height: 3.75rem; }
  .brand > span, .nav-scope { display: none !important; }
  .hero, .columns, .estimate-heading, .calc-grid, .study-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 2.7rem var(--pad) 2rem; }
  h1 { font-size: clamp(4.5rem, 16vw, 6rem); }
  .hero-lead { margin-top: 1rem; }
  .hero-actions { margin-top: 1.3rem; }
  .hero-photo { min-height: 0; aspect-ratio: 2.35; }
  .hero-photo figcaption { padding: .4rem var(--pad); }
  .section-intro h2, .estimate-heading h2 { max-width: 16ch; }
  .estimate-heading { gap: 1rem; }
  .section-intro > p:last-child { margin-top: .85rem; }
  .stages li { padding-left: 2.4rem; }
  .calc-grid { margin-top: 1.35rem; }
  .study-grid { gap: 1.5rem; }
}
@media (max-width: 24rem) {
  .mast nav .home-link { display: none; }
  .hero-actions { align-items: start; flex-direction: column; gap: .25rem; }
  .dimensions { gap: .8rem; }
}
@media (forced-colors: active) {
  .button, .study { border: 1px solid ButtonText; }
}
