@font-face {
  font-family: "Barlow Condensed";
  src: url("/media/barlow-condensed.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/media/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f5f2eb;
  --ink: #171916;
  --muted: #54554e;
  --line: #d4cec3;
  --signal: #ff7953;
  --white: #fffcf5;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 "DM Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { min-width: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: .96; }
h1 { font-size: clamp(4.2rem, 8vw, 8.6rem); }
h2 { font-size: clamp(3.35rem, 6.45vw, 6.1rem); }
h3 { font-size: clamp(2rem, 3.35vw, 3.1rem); }
a { color: inherit; }
img { max-width: 100%; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
:focus-visible { outline: 3px solid #a22c0b; outline-offset: 4px; }
.shell { width: min(1270px, calc(100% - 112px)); margin-inline: auto; }
.section-pad { padding-block: clamp(62px, 8vw, 116px); }
.eyebrow {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.4;
  text-transform: uppercase;
}
.skip-link {
  position: absolute;
  z-index: 10;
  inset: 8px auto auto 8px;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--signal);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner, .footer-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  text-decoration: none;
  font: 700 1.57rem/.95 var(--display);
  letter-spacing: .045em;
}
.wordmark img { display: block; width: 32px; height: 36px; mix-blend-mode: multiply; }
.masthead nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 46px); }
.masthead nav a {
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.masthead nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 18px;
  border: 2px solid transparent;
  border-radius: 0;
  font-weight: 700;
  line-height: 1.28;
  text-align: center;
  text-decoration: none;
}
.button-black { color: var(--white); background: var(--ink); }
.button-black:hover { color: var(--ink); background: var(--white); border-color: var(--ink); }
.masthead-action { min-height: 42px; font-size: .9rem; }
.button-signal { color: var(--ink); background: var(--signal); }
.button-signal:hover { background: #ff9a7e; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #151615; color: var(--white); }
.hero-inner { min-height: clamp(535px, 52vw, 706px); display: grid; align-items: center; padding-block: 64px 74px; }
.hero-copy { position: relative; z-index: 1; width: fit-content; }
.hero-kicker { color: var(--signal); }
.hero h1 { margin: 14px 0 23px; letter-spacing: -.015em; }
.hero h1 em { color: var(--signal); font-style: normal; }
.hero-description { color: #f2eae0; max-width: 31ch; font-size: clamp(1rem, 1.5vw, 1.23rem); line-height: 1.5; }
.hero .button { margin-top: 28px; }
.hero :focus-visible, .walkthrough-hero :focus-visible { outline-color: var(--signal); }
.hero-image { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 59%; }
.hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #151615 0%, #151615e8 24%, #15161555 56%, transparent 83%);
}
.hero-caption {
  position: absolute;
  z-index: 1;
  right: clamp(20px, 4.35vw, 80px);
  bottom: 24px;
  padding: 5px 9px;
  color: var(--white);
  background: #171916;
  font-size: .82rem;
  font-weight: 700;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 15px clamp(28px, 5vw, 75px);
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.section-heading h2, .systems h2, .walk-promo h2, .company h2 { margin-top: 10px; }
.section-heading > p, .systems-intro, .company > div:first-child > p:last-child { max-width: 41ch; color: var(--muted); }
.work-grid { display: grid; grid-template-columns: 1.34fr 1fr; gap: clamp(18px, 3.5vw, 42px); }
.story { display: flex; flex-direction: column; min-width: 0; border-top: 5px solid var(--signal); }
.story figure { height: clamp(200px, 25vw, 350px); overflow: hidden; background: var(--ink); }
.story figure img { display: block; height: 100%; width: 100%; object-fit: cover; }
.story-secondary figure img { object-position: 50% 57%; }
.story-copy { flex: 1; padding: clamp(17px, 2.6vw, 32px); background: var(--white); border: 1px solid var(--line); border-top: 0; }
.story-copy h3 { margin: 9px 0 18px; }
.project-log > div { display: grid; grid-template-columns: minmax(115px, .6fr) 1fr; gap: 6px 12px; padding-block: 11px; border-top: 1px solid var(--line); }
.project-log dt { font-size: .9rem; font-weight: 700; line-height: 1.5; }
.project-log dd { color: var(--muted); font-size: .96rem; line-height: 1.5; }

.systems { background: #eae5da; border-top: 1px solid var(--line); }
.systems-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px clamp(32px, 7vw, 100px); }
.systems-intro { margin-top: 18px; }
.systems-list { border-top: 1px solid #bcb5a7; }
.systems-list article { display: grid; grid-template-columns: .87fr 1.13fr; gap: 9px 17px; align-items: first baseline; padding-block: 17px; border-bottom: 1px solid #bcb5a7; }
.systems-list h3 { font-size: clamp(1.65rem, 2.45vw, 2.45rem); }
.systems-list p { color: var(--muted); line-height: 1.48; }

.walk-promo { background: var(--signal); }
.walk-promo-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px clamp(35px, 7vw, 99px); align-items: center; }
.walk-promo h2 { max-width: 11ch; }
.walk-promo-inner > div:first-child > p:not(.eyebrow) { margin-top: 16px; max-width: 42ch; }
.walk-promo .button { margin-top: 22px; }
.field-sheet {
  min-width: 0;
  padding: clamp(22px, 4vw, 46px);
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.field-sheet h3 { margin-top: 8px; }
.field-sheet ul { margin: 19px 0 0; padding: 0; list-style: none; }
.field-sheet li { display: flex; align-items: baseline; gap: 11px; padding-block: 10px; border-top: 1px solid var(--line); }
.field-sheet li::before { content: ""; flex: 0 0 12px; height: 12px; border: 1px solid var(--ink); }

.company { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px clamp(30px, 7vw, 100px); align-items: center; }
.company > div:first-child > p:last-child { margin-top: 18px; }
.company-contact { align-self: stretch; display: grid; align-content: center; justify-items: start; gap: 9px; border-left: 1px solid var(--line); padding-left: 29px; }
.company-contact h3 { margin-bottom: 3px; }
.company-contact a { font-weight: 700; text-underline-offset: 4px; }
.company-contact address { color: var(--muted); font-style: normal; }
.site-footer { border-top: 1px solid #3d4038; background: var(--ink); color: var(--white); }
.footer-inner { min-height: 82px; font-size: .9rem; }
.footer-inner span { color: #d5cfc1; }
.site-footer :focus-visible { outline-color: var(--signal); }

.walkthrough-hero { background: var(--ink); color: var(--white); padding-block: clamp(42px, 6.5vw, 84px); }
.walkthrough-hero h1 { margin-block: 12px 17px; }
.walkthrough-hero p:last-child { max-width: 51ch; color: #f0eae0; font-size: 1.08rem; }
.walkthrough-layout {
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
  gap: clamp(19px, 4vw, 48px);
  align-items: start;
  padding-block: clamp(37px, 6vw, 82px);
}
.walkthrough-form, .walkthrough-results, .walkthrough-empty {
  min-width: 0;
  padding: clamp(19px, 3.25vw, 37px);
  border: 1px solid var(--line);
  border-top: 5px solid var(--signal);
  background: var(--white);
}
.walkthrough-empty { background: #eae5da; }
.walkthrough-layout h2, .walkthrough-layout h3 { font-size: clamp(2.25rem, 4vw, 3.75rem); }
.walkthrough-empty > p { margin-top: 13px; color: var(--muted); }
.field { display: grid; gap: 5px; margin-top: 16px; }
.field label { font-weight: 700; }
.field label span { color: var(--muted); font-size: .9rem; font-weight: 400; }
.field select, .field input {
  width: 100%;
  min-width: 0;
  border: 1px solid #777469;
  border-radius: 0;
  color: var(--ink);
  background-color: var(--white);
  padding: 9px 10px;
  min-height: 46px;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 49%, currentColor 51%), linear-gradient(135deg, currentColor 49%, transparent 51%);
  background-position: calc(100% - 16px) 53%, calc(100% - 11px) 53%;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  padding-right: 30px;
}
.walkthrough-form .button { margin-top: 19px; }
.walkthrough-note { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.walkthrough-results h3 { overflow-wrap: anywhere; }
.walk-summary { margin-top: 10px; color: var(--muted); }
.progress-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; font-size: .92rem; font-weight: 700; }
.progress-row progress { width: min(175px, 100%); height: 14px; accent-color: #ab3c1d; }
.walkthrough-list { display: grid; gap: 0; margin: 20px 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.walkthrough-task { border-bottom: 1px solid var(--line); }
.walkthrough-task label {
  display: flex;
  gap: 13px;
  align-items: start;
  padding: 11px 4px;
  cursor: pointer;
}
.walkthrough-task label:hover, .walkthrough-task label:has(input:checked) { background: #f3eadc; }
.walkthrough-task input { flex: 0 0 21px; width: 21px; height: 21px; margin: 3px 0 0; accent-color: var(--ink); cursor: pointer; }
.walkthrough-task strong, .walkthrough-task small { display: block; }
.walkthrough-task small { color: var(--muted); font-size: .93rem; }
.error-page main { padding-block: 70px; }
.error-page h1 { margin-block: 10px 24px; }

@media (max-width: 1100px) {
  .shell { width: calc(100% - 72px); }
  .hero-inner { min-height: 525px; }
  .hero h1 { font-size: clamp(4.8rem, 9vw, 7rem); }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .hero-inner { min-height: 473px; padding-block: 38px 68px; }
  .hero h1 { font-size: clamp(4rem, 10vw, 6rem); }
  .hero-image { width: 72%; }
  .hero-image::after { background: linear-gradient(90deg, #151615 0%, #151615e5 20%, #15161540 100%); }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .project-log > div { grid-template-columns: 1fr; }
  .systems-layout, .walk-promo-inner, .company, .walkthrough-layout { grid-template-columns: 1fr; }
  .company-contact { padding: 19px 0 0; border-top: 1px solid var(--line); border-left: 0; }
}
@media (max-width: 670px) {
  .masthead-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding-block: 11px; }
  .masthead nav { grid-column: 1 / -1; grid-row: 2; gap: 24px; }
  .masthead nav a { display: flex; align-items: center; min-height: 37px; }
  .masthead-action { padding-inline: 8px; font-size: .86rem; }
  .wordmark { font-size: 1.32rem; gap: 5px; }
  .wordmark img { width: 25px; height: 28px; }
}
@media (max-width: 525px) {
  .hero-inner { min-height: unset; padding-block: 37px 31px; }
  .hero h1 { font-size: clamp(2.65rem, 12.8vw, 4.25rem); margin-bottom: 18px; }
  .hero .button { margin-top: 23px; }
  .hero-image { position: relative; width: 100%; height: auto; aspect-ratio: 1.7; overflow: hidden; }
  .hero-image img { object-position: 50% 37%; }
  .hero-image::after { background: linear-gradient(0deg, #151615 0%, transparent 35%); }
  .hero-caption { right: 13px; bottom: 10px; font-size: .77rem; }
  .section-heading, .work-grid { grid-template-columns: 1fr; }
  .story figure { height: auto; aspect-ratio: 1.64; }
  .story-secondary figure img { object-position: 50% 61%; }
  .systems-list article { grid-template-columns: 1fr; }
  .footer-inner { align-items: start; min-height: 0; padding-block: 16px; }
  .footer-inner a { white-space: nowrap; }
  .walkthrough-hero h1 { font-size: clamp(3.55rem, 12vw, 5.2rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
