:root {
    --red: #800000;
    --red-dark: #5c0000;
    --ink: #1a1614;
    --muted: #5c564f;
    --paper: #f6f4f4;
    --white: #ffffff;
    --line: #e4e0e0;
    --sans: "Montserrat", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--sans);
    font-weight: 600;
    line-height: 1.25;
    color: var(--red);
    overflow-wrap: break-word;
}

a,
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none;
}

a {
    color: var(--red);
}

p {
    margin: 0 0 1rem;
}

address {
    font-style: normal;
}

::selection {
    background: var(--red);
    color: var(--white);
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -40px;
    background: var(--white);
    color: var(--ink);
    padding: 0.5rem 0.8rem;
    z-index: 100;
}

.skip-link:focus {
    top: 1rem;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
}

.narrow {
    max-width: 820px;
    text-align: center;
}

.kicker {
    margin: 0 0 0.7rem;
    color: var(--red);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.kicker-light {
    color: #f3d2d2;
}

.band-title {
    margin: 0 0 1.4rem;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--red);
}

.band-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 2px;
    margin-top: 0.7rem;
    background: var(--red);
}

.narrow .band-title::after {
    margin-left: auto;
    margin-right: auto;
}

.btn,
.quote-form button,
.wpcf7 input[type="submit"],
.wpforms-form button[type="submit"],
.search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.7rem 1.15rem;
    border: 1px solid var(--red);
    background: var(--red);
    color: var(--white);
    font: inherit;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-decoration: none;
    cursor: pointer;
}

.btn,
.btn-line,
.quote-form button,
.wpcf7 input[type="submit"],
.wpforms-form button[type="submit"],
.search-form button {
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.quote-form button:hover,
.wpcf7 input[type="submit"]:hover,
.search-form button:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
}

.btn-line {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.btn-line:hover {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
}

.btn-line-dark {
    color: var(--red);
    border-color: var(--red);
    background: transparent;
}

.btn-line-dark:hover {
    background: var(--red);
    color: var(--white);
}

.text-link {
    color: var(--red);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.4px;
    text-decoration: none;
    text-transform: uppercase;
}

.text-link:hover {
    text-decoration: none;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: transparent;
    transition: background 0.2s ease;
}

.site-header.is-stuck,
.site-header.is-open {
    background: var(--red);
}

.header-bar {
    display: flex;
    align-items: center;
    min-height: 96px;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo-img {
    height: 52px;
    width: auto;
}

.primary-nav {
    margin-left: auto;
}

.nav-list,
.footer-links {
    display: flex;
    gap: 1.35rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-list a:hover {
    opacity: 0.72;
}

.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list .current-menu-parent > a,
.nav-list .current-menu-ancestor > a,
.nav-list .current-menu-item > a:hover,
.nav-list .current_page_item > a:hover,
.nav-list .current-menu-parent > a:hover,
.nav-list .current-menu-ancestor > a:hover {
    opacity: 1;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.45em;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--white);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before {
    top: -7px;
}

.nav-toggle-bars::after {
    top: 7px;
}

.site-header.is-open .nav-toggle-bars {
    background: transparent;
}

.site-header.is-open .nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

.site-header.is-open .nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-line {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0 0 0.75rem;
}

.icon-line .icon {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
}

h2 .icon,
h3 .icon {
    margin-right: 0.35rem;
    vertical-align: -0.18em;
}

.hero {
    container-type: size;
    --o-x: 82%;
    --o-y: 50%;
    --o-left: 82cqw;
    --o-top: 50cqh;
    --o-w: min(30cqw, 380px);
    --o-h: calc(var(--o-w) * 376 / 328);
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-photo,
.hero-shade,
.hero-mark,
.page-hero .shade {
    position: absolute;
    inset: 0;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
}

.hero-shade {
    background: rgba(72, 0, 0, 0.78);
    pointer-events: none;
    -webkit-mask-image: linear-gradient(#fff, #fff), url("../images/hero-o-mask.png");
    mask-image: linear-gradient(#fff, #fff), url("../images/hero-o-mask.png");
    -webkit-mask-position: left 0 top 0, left calc(var(--o-left) - var(--o-w) / 2) top calc(var(--o-top) - var(--o-h) / 2);
    mask-position: left 0 top 0, left calc(var(--o-left) - var(--o-w) / 2) top calc(var(--o-top) - var(--o-h) / 2);
    -webkit-mask-size: 100% 100%, var(--o-w) var(--o-h);
    mask-size: 100% 100%, var(--o-w) var(--o-h);
    -webkit-mask-repeat: no-repeat, no-repeat;
    mask-repeat: no-repeat, no-repeat;
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}

.hero-mark {
    inset: auto;
    left: var(--o-x);
    top: var(--o-y);
    width: var(--o-w);
    height: var(--o-h);
    transform: translate(-50%, -50%);
    overflow: visible;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 7rem;
    padding-bottom: 4rem;
}

.hero-copy {
    max-width: 640px;
}

.hero h1,
.page-hero h1 {
    margin: 0 0 1rem;
    color: var(--white);
    font-weight: 700;
}

.hero h1 {
    font-size: 53px;
    line-height: 1.2;
    max-width: 14em;
}

.hero-lead {
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.cred {
    background: var(--white);
    padding: 2.6rem 0 2rem;
}

.cred-row {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 2rem 2.5rem;
    align-items: center;
}

.cred h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
}

.cred-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    margin: 0;
    padding: 0;
}

.cred-list li {
    padding: 0.2rem 1.1rem;
    border-left: 1px solid var(--red);
}

.cred-list strong {
    display: block;
    color: var(--red);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cred-list span {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.grades-note {
    margin: 1rem 0 0;
    text-align: right;
    font-size: 14px;
}

.services-band,
.values-band,
.contact-band {
    background: var(--paper);
    padding: 5rem 0;
}

.intro-band {
    background: var(--paper);
    padding: 4.5rem 0;
}

.work-band {
    background: var(--white);
    padding: 4.5rem 0;
}

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    margin-top: 3.2rem;
}

.feature-copy h3,
.split-copy h2,
.service-block h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-copy h3 {
    margin: 0 0 0.6rem;
    font-size: 26px;
    font-weight: 600;
}

.feature-copy p {
    margin: 0;
    color: #4a3a3a;
}

.feature-media {
    position: relative;
    display: block;
    color: var(--white);
    text-decoration: none;
    overflow: hidden;
}

.feature-media img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.feature-more {
    position: absolute;
    left: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 1.4rem;
    max-width: 78%;
    padding: 0.75rem 1rem;
    background: var(--red);
    color: var(--white);
    font-size: 15px;
}

.site-photos {
    margin-top: 3.5rem;
}

.photo-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 0.85rem;
    margin: 0;
    padding: 0;
}

.photo-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.photo-open img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.photo-caption {
    display: block;
    margin-top: 0.4rem;
    font-size: 13px;
    color: var(--muted);
}

.to-top {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 30;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.to-top.is-on {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top svg {
    width: 18px;
    height: 18px;
}

.photo-dialog {
    position: relative;
    width: min(920px, 92vw);
    max-width: 92vw;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--white);
}

.photo-dialog::backdrop {
    background: rgba(26, 22, 20, 0.86);
}

.photo-dialog img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    background: #111;
}

.photo-dialog p {
    margin: 0.65rem 0 0;
    color: var(--white);
}

.photo-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    border: 0;
    background: var(--red);
    color: var(--white);
    font: inherit;
    font-size: 13px;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
}

.feature-flip .feature-copy {
    order: 2;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.section-head .band-title {
    margin: 0;
}

.project-grid,
.scope-grid,
.contact-grid,
.contact-band-grid,
.footer-grid {
    display: grid;
    gap: 1.5rem;
}

.project-grid,
.scope-grid {
    grid-template-columns: 1fr 1fr;
}

.contact-grid,
.contact-band-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
}

.footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1.1fr;
    gap: 2.5rem;
}

.project-card {
    background: transparent;
}

.project-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.project-card-link:hover h3 {
    color: var(--red-dark);
}

.project-card-body {
    padding: 0.9rem 0 0;
}

.project-card h3 {
    margin: 0 0 0.35rem;
    font-size: 20px;
}

.media-frame {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #e8e4e4;
}

.media-frame img,
.project-card-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-link .media-frame {
    height: auto;
}

.project-value {
    margin: 0.25rem 0;
    font-weight: 600;
    color: var(--ink);
}

.project-ref,
.meta {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.project-card .kicker {
    margin-bottom: 0.35rem;
}

.values-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    align-items: start;
}

.values-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.values-list li {
    margin: 0;
    padding: 1.15rem 0;
    border-top: 1px solid #d9d0d0;
    color: var(--red);
    font-size: 20px;
    font-weight: 600;
}

.values-list li:last-child {
    border-bottom: 1px solid #d9d0d0;
}

.values-intro .media-frame {
    margin-top: 0.4rem;
}

.contact-band address {
    margin: 0 0 1rem;
}

.quote-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 1rem;
}

.field {
    margin: 0;
}

.field-wide,
.quote-form > button,
.quote-form > .notice {
    grid-column: 1 / -1;
}

.quote-form > button {
    justify-self: start;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 0.9rem;
    border: 1px solid #e3e3e3;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    border-radius: 0;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.hp {
    position: absolute;
    left: -9999px;
}

.notice {
    padding: 0.9rem 1rem;
    margin: 0 0 1rem;
    border: 1px solid var(--line);
    background: var(--white);
}

.notice.is-success {
    border-color: #1f6b3a;
    background: #f1f8f3;
}

.notice.is-error {
    border-color: var(--red);
    background: #fdf4f4;
}

.page-hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
}

.page-hero .shade {
    background: rgba(80, 0, 0, 0.62);
}

.page-hero .wrap {
    position: relative;
    z-index: 1;
    padding-top: 7.5rem;
    padding-bottom: 3.5rem;
}

.page-hero h1 {
    font-size: 53px;
    font-weight: 700;
}

.page-hero .kicker {
    color: var(--white);
}

.crumbs {
    margin: 0 0 0.55rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.crumbs a {
    color: var(--white);
    text-decoration: none;
}

.page-wrap {
    padding-top: 3.5rem;
    padding-bottom: 4.5rem;
}

.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.lead {
    max-width: 760px;
}

.entry-content > p,
.lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.entry-content > ul,
.entry-content > ol {
    margin-left: auto;
    margin-right: auto;
}

.entry-content h2 {
    margin: 2.4rem auto 0.9rem;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

.entry-content h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 2px;
    margin: 0.65rem auto 0;
    background: var(--red);
}

.entry-content .values-layout,
.entry-content .values-layout h2,
.entry-content .values-in-copy {
    max-width: none;
    text-align: left;
}

.entry-content .values-layout h2::after {
    margin-left: 0;
}

.values-in-copy {
    margin: 2.5rem 0 3rem;
}

.entry-content table {
    width: 100%;
    max-width: none;
    margin: 0.5rem 0 1.8rem;
    border-collapse: collapse;
    background: var(--white);
}

.entry-content th,
.entry-content td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.entry-content th {
    width: 34%;
    color: var(--muted);
    font-weight: 600;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.split.reverse .media-frame {
    order: 2;
}

.service-block {
    margin: 0 0 3.5rem;
    scroll-margin-top: 110px;
}

.service-block h2,
.split-copy h2 {
    margin: 0 0 0.7rem;
    font-size: 28px;
    text-transform: none;
    letter-spacing: 0;
    text-align: left;
}

.service-block h2::after,
.split-copy h2::after,
.contact-details h2::after,
.project-single h2::after {
    content: none;
}

.scope,
.scope.columns {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
}

.scope li {
    margin: 0.35rem 0;
}

.scope.columns {
    columns: 2;
    max-width: none;
}

.tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.8rem 0 0;
    padding: 0;
    list-style: none;
}

.tool-list li {
    border: 1px solid var(--line);
    background: var(--white);
    padding: 0.7rem 0.9rem;
    font-weight: 600;
    font-size: 0.92rem;
}

.contact-panel {
    padding: 0;
}

.contact-details h3 {
    margin: 1.2rem 0 0.3rem;
    color: var(--red);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-footer {
    background: #720000;
    color: var(--white);
    padding: 3.4rem 0 1.4rem;
}

.site-footer a {
    color: var(--white);
    text-decoration: none;
}

.site-footer a:hover {
    opacity: 0.75;
}

.site-footer h2 {
    margin: 0 0 0.8rem;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-footer h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 1px;
    margin-top: 0.45rem;
    background: rgba(255, 255, 255, 0.7);
}

.footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact .icon-line,
.footer-contact a {
    color: var(--white);
}

.footer-brand p,
.site-footer address,
.site-footer p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
}

.footer-logo {
    height: 58px;
    margin-bottom: 1rem;
}

.footer-base {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.footer-base p {
    margin: 0;
}

.footer-base strong {
    font-weight: 700;
}

.footer-widgets {
    margin-top: 1.5rem;
}

.news-item {
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--line);
}

.news-item h2 {
    margin: 0 0 0.3rem;
    font-size: 1.6rem;
    text-transform: none;
    letter-spacing: 0;
    text-align: left;
}

.news-item h2::after {
    content: none;
}

.news-item h2 a {
    color: inherit;
    text-decoration: none;
}

.project-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin: 0 0 1.5rem;
    background: var(--line);
    border: 1px solid var(--line);
}

.project-facts div {
    background: var(--white);
    padding: 1rem 1.1rem;
}

.project-facts dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-facts dd {
    margin: 0.25rem 0 0;
    font-size: 1.15rem;
    color: var(--ink);
}

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 520px;
    margin: 1rem auto 1.5rem;
}

.search-form input {
    flex: 1;
}

.pagination {
    margin-top: 1.5rem;
}

.pagination .nav-links {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    background: var(--white);
}

.pagination .current {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.edit-link {
    font-size: 0.8rem;
}

.site-main {
    min-height: 50vh;
}

h2, h3, [id] {
    scroll-margin-top: 110px;
}

@media (max-width: 1100px) and (min-width: 801px) {
    .hero-copy {
        max-width: 520px;
    }
}

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-flex;
    }

    .primary-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        margin: 0;
        padding: 0.4rem 1.5rem 1rem;
        background: var(--red);
    }

    .primary-nav.is-open {
        display: block;
        animation: menu-in 0.22s ease;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-list a {
        display: block;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 800px) {
    .header-bar {
        min-height: 68px;
    }

    .logo-img {
        height: 40px;
        max-width: 56vw;
    }

    .hero {
        align-items: flex-start;
        container-type: normal;
        height: auto;
        min-height: 0;
    }

    .hero-shade {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hero-mark {
        display: none;
    }

    .wrap {
        padding-left: max(1.75rem, env(safe-area-inset-left));
        padding-right: max(1.75rem, env(safe-area-inset-right));
    }

    .hero-content {
        padding-top: 6.25rem;
        padding-bottom: 2.25rem;
    }

    .hero-lead {
        display: none;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 32px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .page-hero {
        min-height: 280px;
    }

    .page-hero .wrap {
        padding-top: 6rem;
        padding-bottom: 2rem;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .grades-note {
        text-align: left;
    }

    .search-form {
        flex-direction: column;
    }

    .band-title,
    .cred h2,
    .entry-content h2 {
        font-size: 24px;
    }

    .cred-row,
    .feature,
    .project-grid,
    .scope-grid,
    .contact-grid,
    .contact-band-grid,
    .footer-grid,
    .values-layout,
    .project-facts,
    .split,
    .split.reverse {
        grid-template-columns: 1fr;
    }

    .feature-flip .feature-copy,
    .split.reverse .media-frame {
        order: 0;
    }

    .cred-list {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 0;
    }

    .quote-form {
        grid-template-columns: 1fr;
    }

    .scope.columns {
        columns: 1;
    }

    .entry-content table,
    .entry-content tbody,
    .entry-content tr,
    .entry-content th,
    .entry-content td {
        display: block;
        width: 100%;
    }

    .entry-content tr {
        padding: 0.7rem 0;
        border-bottom: 1px solid var(--line);
    }

    .entry-content th,
    .entry-content td {
        border: 0;
        padding: 0.15rem 0;
    }

    .feature-media img {
        height: 220px;
    }

    .photo-grid {
        grid-template-columns: 1fr 1fr;
    }

    .photo-open img {
        height: 160px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-content,
    .page-hero .wrap {
        animation: rise 0.6s ease both;
    }

    .feature-media img,
    .media-frame img {
        transition: transform 0.5s ease;
    }

    .feature-media:hover img,
    .project-card-link:hover img,
    .split:hover .media-frame img {
        transform: scale(1.04);
    }

    .reveal {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .reveal.is-in {
        opacity: 1;
        transform: none;
    }

    .photo-dialog[open] {
        animation: rise 0.22s ease;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes menu-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-content,
    .page-hero .wrap,
    .primary-nav.is-open,
    .photo-dialog[open] {
        animation: none;
    }

    .to-top,
    .btn,
    .btn-line,
    .feature-media img,
    .media-frame img {
        transition: none;
    }
}

@media print {
    .site-header,
    .site-footer,
    .hero-actions,
    .nav-toggle,
    .edit-link,
    .to-top {
        display: none !important;
    }

    .hero,
    .page-hero {
        min-height: 0;
        color: var(--ink);
        background: var(--white);
    }

    .hero-shade,
    .hero-photo,
    .hero-mark,
    .page-hero .shade {
        display: none !important;
    }

    .hero h1,
    .page-hero h1 {
        color: var(--ink);
    }
}
