:root {
  --paper: #f5f3eb;
  --white: #fffcf6;
  --ink: #242b23;
  --dark: #20291f;
  --muted: #515a4e;
  --line: #d7d9ca;
  --green: #e5e9da;
  --orange: #a43c21;
  --bright: #ffc3a4;
  --measure: 1240px;
  --header-height: 76px;
}

html { scroll-padding-top: var(--header-height); }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid #ffffff26;
}

.top { height: var(--header-height); }
.top .brand, .top nav > a { min-height: 44px; }
.top nav > a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; }
.top nav .button { gap: 11px; }
.brand-logo { width: 54px; height: auto; flex: none; border-radius: 0; }
.menu-lines { display: inline-block; width: 15px; height: 8px; border-block: 1.5px solid; }
.button { border-radius: 4px; min-height: 48px; }

.card button, .close { min-height: 44px; }
.close { min-width: 44px; }

.story-dialog {
  width: min(860px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  overflow: auto;
  padding: clamp(12px, 3vw, 24px);
  background: #20291f;
  color: #fffaf0;
  border: 1px solid #63715f;
  border-radius: 10px;
}
.story-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.story-dialog-header h2 { font: 700 clamp(18px, 2.7vw, 29px)/1.1 "Barlow Condensed", sans-serif; }
.story-dialog .close { background: #e5e9da; flex: none; }
.story-dialog video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 62svh;
  background: #131c14;
}
.story-dialog-media { overflow: hidden; border-radius: 6px; }
.story-dialog :focus-visible { outline-color: var(--bright); }
.story-dialog .film-transcript, .story-dialog .film-error { margin: 14px 0 0; color: #e0e7d7; font-size: .9rem; }

.process-content { padding-block: clamp(38px, 5.4vw, 76px); }
.process-content h2 { font-size: clamp(46px, 5.25vw, 75px); }
.process-content .steps { margin: 19px 0 0; padding: 0; }
.process-content .steps strong { font-size: 1.05rem; }
.process-content .steps span { max-width: 37ch; }
.steps.steps-detailed { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-detailed li { padding-left: 42px; }
.steps-detailed li + li { padding-left: 53px; }
.steps-detailed li + li::before { left: 11px; }
.booking-example { padding-block: clamp(52px, 6.5vw, 92px); }
.projects {
  background: var(--paper);
  color: var(--ink);
  padding-block: clamp(50px, 7vw, 100px);
}
.projects h2 { max-width: 13ch; }
.projects p { color: var(--muted); }
.projects .button { color: #fffaf0; background: var(--dark); }
.projects .button:hover { background: #3a4735; }
.assessment { background: #eeeadf; border: 1px solid #ded8c8; border-left: 3px solid #a43c21; padding: clamp(22px, 3.2vw, 36px); }
.assessment h3 { font: 700 clamp(26px, 3vw, 40px)/1.02 'Barlow Condensed', 'Arial Narrow', sans-serif; }
.assessment p { margin-top: 12px; }
.contact-footer {
  --muted: #d6ddce;
  --line: #65715f;
  color: #fffaf0;
  background: var(--dark);
}

.contact-footer :focus-visible { outline-color: var(--bright); }
.service-drawer { --drawer-gutter: clamp(17px, 4vw, 30px); padding-top: 0; padding-inline: var(--drawer-gutter); }
.drawer-tools {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 19px var(--drawer-gutter) 10px;
  margin-inline: calc(-1 * var(--drawer-gutter));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.drawer-tools .search-field { margin-block: 3px 8px; }
.service-drawer .catalog { scroll-margin-top: 195px; }
.service-drawer :is(.card button, .filters button) { scroll-margin-top: 195px; }
.service-drawer .filters button { min-height: 44px; }
.service-drawer .card { border-color: #dedfd3; }
.service-drawer .card:focus-within { border-color: #9ca58d; }

@media (min-width: 661px) and (max-width: 1000px) {
  .steps.steps-detailed { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .steps-detailed li:nth-child(odd) { border-left: 0; padding-left: 42px; }
  .steps-detailed li:nth-child(odd)::before { left: 0; }
}

@media (max-width: 660px) {
  .steps.steps-detailed { grid-template-columns: 1fr; }
  .steps-detailed li + li { padding-left: 42px; }
  .steps-detailed li + li::before { left: 0; }
}

@media (max-width: 720px) {
  :root { --header-height: 68px; }
  .top .button { min-height: 44px; }
  .top .brand-logo { width: 47px; }
  .process-content .steps li { padding-block: 13px; }
}

@media (max-width: 480px) {
  .service-drawer .filters { gap: 6px; }
  .service-drawer .filters button { padding-inline: 9px; font-size: .82rem; }
}

@media (max-width: 350px) {
  .top .brand { font-size: 13px; gap: 6px; }
  .top .brand > span { white-space: nowrap; }
  .top .brand-logo { width: 36px; }
  .top nav, .top nav .button { gap: 7px; }
  .top nav .button { padding-inline: 8px; }
}

@media (max-width: 660px) {
  .top nav > .how-link, .top nav > .quote-link { display: none; }
}
