/*******************************
PERFECTIONIST PAINTER — SITE REDESIGN
Implements the "Editorial Trade" direction from the Claude Design
handoff: Instrument Serif + Archivo, vermillion on warm paper,
hairline rules, hard edges.

Covers every page: index, about, projects, reviews, contact.
No Bootstrap, no jQuery, no build step. site.js only powers the
mobile nav toggle.
*******************************/

:root {
    /* Ink + paper */
    --ink: #191713;
    --ink-soft: #2A2621;
    --paper: #F5F1E8;
    --paper-warm: #E9E2D2;
    --paper-deep: #EFE9DB;

    /* Accent. --flame is the brand vermillion, used for display type,
       rules and marks. --flame-deep is the solid-fill variant that
       clears 4.5:1 against white for button labels. */
    --flame: #D9481C;
    --flame-deep: #C33F14;

    /* Text */
    --muted: #5B554A;
    --muted-dark: #9E978A;

    /* Rules */
    --rule: #191713;
    --rule-soft: rgba(25, 23, 19, 0.18);
    --rule-dark: rgba(245, 241, 232, 0.18);

    /* Rhythm */
    --gutter: clamp(20px, 0.77rem + 2.48vw, 48px);
    --frame: 1440px;
    --band: clamp(56px, 2rem + 3.8vw, 88px);

    /* Type scale */
    --display-1: clamp(44px, 2.32rem + 3.81vw, 92px);
    --display-2: clamp(34px, 2.13rem + 1.52vw, 56px);
    --display-3: clamp(34px, 1.76rem + 3.05vw, 72px);
    --quote: clamp(21px, 1.04rem + 1.62vw, 40px);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p,
figure,
blockquote {
    margin: 0;
}

.serif {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
}

em.flame,
.flame {
    color: var(--flame);
    font-style: italic;
}

:focus-visible {
    outline: 2.5px solid var(--flame-deep);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--ink);
    color: var(--paper);
    padding: 14px 22px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.skip-link:focus {
    left: 0;
}

/*******************************
LAYOUT PRIMITIVES

.band  — full frame width, no padding. Child cells carry their own
         padding so hairline rules meet the frame edge.
.section — padded content well.
*******************************/

.band {
    max-width: var(--frame);
    margin-inline: auto;
}

.section {
    max-width: var(--frame);
    margin-inline: auto;
    padding: var(--band) var(--gutter);
}

.section-tight {
    padding-top: 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    flex-wrap: wrap;
}

.section-head h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: var(--display-2);
    line-height: 1;
}

.section-label {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--muted);
    text-transform: uppercase;
}

a.section-label {
    color: var(--ink);
    font-weight: 700;
    border-bottom: 2px solid var(--flame);
    padding-bottom: 3px;
}

a.section-label:hover {
    color: var(--flame-deep);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.eyebrow::before {
    content: "";
    width: 36px;
    height: 1.5px;
    background: var(--flame);
    flex: none;
}

.stars {
    color: var(--flame);
    letter-spacing: 3px;
    font-size: 14px;
}

/*******************************
BUTTONS
*******************************/

.btn {
    display: inline-block;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    padding: 17px 36px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-ink {
    background: var(--ink);
    color: var(--paper);
}

.btn-ink:hover {
    background: var(--flame-deep);
    color: #FFFFFF;
}

.btn-outline {
    border-color: var(--ink);
    color: var(--ink);
    padding: 15.5px 34px;
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn-flame {
    background: var(--flame-deep);
    color: #FFFFFF;
}

.btn-flame:hover {
    background: var(--paper);
    color: var(--ink);
}

.btn-sm {
    padding: 12px 24px;
    font-size: 12.5px;
}

/*******************************
TOP BAR
*******************************/

.topbar {
    background: var(--ink);
    color: var(--paper);
}

.topbar-inner {
    max-width: var(--frame);
    margin-inline: auto;
    padding: 9px var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.topbar a {
    color: var(--paper);
}

.topbar a:hover {
    color: var(--flame);
}

.topbar-area {
    color: var(--muted-dark);
}

/*******************************
MASTHEAD
*******************************/

.masthead {
    max-width: var(--frame);
    margin-inline: auto;
    padding: 18px var(--gutter);
    border-bottom: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand svg {
    flex: none;
    width: 40px;
    height: 40px;
}

.brand-name {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

.mainnav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mainnav a:not(.btn):hover {
    color: var(--flame-deep);
}

.mainnav a[aria-current="page"] {
    border-bottom: 2px solid var(--flame);
    padding-bottom: 3px;
}

.mainnav a.btn[aria-current="page"] {
    border-bottom-width: 1.5px;
    border-bottom-color: var(--ink);
    padding-bottom: 15.5px;
    background: var(--ink);
    color: var(--paper);
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 12px 2px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.masthead[data-open="true"] .nav-toggle span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.masthead[data-open="true"] .nav-toggle span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

/*******************************
HERO
*******************************/

.hero {
    max-width: var(--frame);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    border-bottom: 1px solid var(--rule);
}

.hero-copy {
    padding: clamp(40px, 2rem + 3vw, 80px) clamp(24px, 1.5rem + 2.2vw, 56px) clamp(36px, 2rem + 2.6vw, 72px) var(--gutter);
    border-right: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: var(--display-1);
    line-height: 1;
    letter-spacing: -0.015em;
    margin-top: 28px;
    text-wrap: balance;
}

.hero-lede {
    font-size: clamp(15.5px, 0.93rem + 0.14vw, 17px);
    line-height: 1.7;
    color: var(--muted);
    max-width: 520px;
    margin-top: 26px;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 38px;
    flex-wrap: wrap;
}

.hero-proof {
    display: flex;
    align-items: baseline;
    gap: clamp(14px, 1rem + 1vw, 28px);
    flex-wrap: wrap;
    margin-top: clamp(28px, 1.5rem + 1.6vw, 48px);
    border-top: 1px solid var(--rule-soft);
    padding-top: 20px;
}

.hero-score {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(24px, 1.2rem + 0.6vw, 30px);
}

.hero-proof-note {
    font-size: 13px;
    color: var(--muted);
}

.hero-figure {
    background: var(--paper-warm);
    display: flex;
    flex-direction: column;
}

.hero-figure img {
    width: 100%;
    flex: 1;
    object-fit: contain;
    object-position: bottom;
    padding: 32px 32px 0;
}

.hero-figure figcaption {
    border-top: 1px solid var(--rule);
    padding: 12px clamp(18px, 1rem + 0.7vw, 24px);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/*******************************
TICKER
*******************************/

.ticker {
    background: var(--ink);
    color: var(--paper);
    padding: 13px 0;
    overflow: hidden;
    font-size: clamp(11px, 0.66rem + 0.19vw, 13px);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: marquee 46s linear infinite;
}

.ticker-track span {
    white-space: nowrap;
    /* Matches the word-space that follows each mark inside a span, so the
       seam between repeats is spaced like every other gap. */
    padding-right: 0.25em;
}

.ticker-track b {
    color: var(--flame);
    font-weight: 400;
    padding: 0 18px;
}

@keyframes marquee {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

/*******************************
PRINCIPLES
*******************************/

.principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--rule);
}

.principle {
    padding: clamp(26px, 1.4rem + 1.6vw, 40px) var(--gutter);
    border-right: 1px solid var(--rule);
}

.principle:last-child {
    border-right: 0;
}

.principle-num {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(24px, 1.2rem + 0.6vw, 30px);
    color: var(--flame);
    line-height: 1;
}

.principle-title {
    font-size: clamp(13.5px, 0.8rem + 0.15vw, 15px);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 12px;
}

.principle p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--muted);
    margin-top: 8px;
}

/*******************************
SERVICES
*******************************/

.services {
    margin-top: 44px;
    border-top: 1px solid var(--rule);
}

.service-row {
    display: grid;
    grid-template-columns: 110px 280px 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 34px 0;
    border-bottom: 1px solid var(--rule);
    transition: background-color 0.15s ease;
}

.service-row:hover {
    background: var(--paper-deep);
}

.service-num {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(28px, 1.4rem + 0.9vw, 40px);
    color: var(--flame);
    line-height: 1;
}

.service-name {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(26px, 1.3rem + 0.85vw, 36px);
    line-height: 1.1;
}

.service-desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 560px;
}

.service-arrow {
    width: 48px;
    height: 48px;
    border: 1.5px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.service-row:hover .service-arrow {
    background: var(--flame-deep);
    border-color: var(--flame-deep);
    color: #FFFFFF;
}

/*******************************
WORK GRID
*******************************/

.workgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 40px;
    background: var(--ink);
    border: 1px solid var(--rule);
}

.workgrid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--paper-warm);
}

/*******************************
PULL QUOTE
*******************************/

.pullquote {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: clamp(48px, 2.5rem + 3.4vw, 88px) var(--gutter);
    text-align: center;
}

.pullquote-mark {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(72px, 3rem + 4.6vw, 120px);
    line-height: 0.4;
    color: var(--flame);
}

.pullquote blockquote {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: var(--quote);
    line-height: 1.35;
    max-width: 1000px;
    margin-inline: auto;
    text-wrap: balance;
}

.pullquote-cite {
    margin-top: 24px;
    font-size: clamp(11px, 0.64rem + 0.19vw, 13px);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-style: normal;
}

/*******************************
REVIEW STRIP (3-up on home)
*******************************/

.reviewstrip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--rule);
}

.reviewstrip .review {
    padding: clamp(28px, 1.5rem + 2vw, 48px) var(--gutter);
    border-right: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}

.reviewstrip .review:last-child {
    border-right: 0;
}

.review blockquote {
    font-size: 15px;
    line-height: 1.75;
    flex: 1;
}

.review figcaption {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/*******************************
CTA BAND
*******************************/

.cta {
    background: var(--ink);
    color: var(--paper);
}

.cta-inner {
    max-width: var(--frame);
    margin-inline: auto;
    padding: clamp(56px, 2.6rem + 4vw, 96px) var(--gutter);
    text-align: center;
}

.cta h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: var(--display-3);
    line-height: 1.05;
    text-wrap: balance;
}

.cta p {
    font-size: clamp(14px, 0.85rem + 0.19vw, 16px);
    color: rgba(245, 241, 232, 0.72);
    margin-top: 18px;
}

.cta .btn {
    margin-top: 34px;
}

.cta-contact {
    margin-top: 30px;
    font-size: 13px;
    letter-spacing: 0.06em;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 32px;
}

.cta-contact a {
    color: var(--muted-dark);
    border-bottom: 1px solid var(--rule-dark);
    padding-bottom: 2px;
}

.cta-contact a:hover {
    color: var(--paper);
    border-bottom-color: var(--flame);
}

/*******************************
FOOTER
*******************************/

.sitefoot {
    max-width: var(--frame);
    margin-inline: auto;
    padding: 26px var(--gutter);
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px 32px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--muted);
}

.sitefoot .brand-name {
    font-size: 17px;
    color: var(--ink);
}

.sitefoot svg {
    width: 26px;
    height: 26px;
    flex: none;
}

.footnav {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footnav a:hover {
    color: var(--flame-deep);
}

/*******************************
INTERIOR PAGE HEADER
*******************************/

.page-head {
    max-width: var(--frame);
    margin-inline: auto;
    padding: clamp(40px, 2rem + 2.6vw, 72px) var(--gutter) clamp(32px, 2rem + 1.6vw, 56px);
    border-bottom: 1px solid var(--rule);
}

.page-head h1 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: var(--display-3);
    line-height: 1.02;
    letter-spacing: -0.015em;
    margin-top: 24px;
    text-wrap: balance;
}

.page-lede {
    font-size: clamp(15.5px, 0.93rem + 0.14vw, 17px);
    line-height: 1.7;
    color: var(--muted);
    max-width: 620px;
    margin-top: 22px;
    text-wrap: pretty;
}

/*******************************
PAGE: ABOUT
*******************************/

.about-grid {
    max-width: var(--frame);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    border-bottom: 1px solid var(--rule);
}

.about-portrait {
    background: var(--paper-warm);
    border-right: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
}

.about-portrait img {
    width: 100%;
    flex: 1;
    object-fit: cover;
    min-height: 320px;
}

.about-portrait figcaption {
    border-top: 1px solid var(--rule);
    padding: 12px clamp(18px, 1rem + 0.7vw, 24px);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.about-prose {
    padding: clamp(36px, 2rem + 2.4vw, 64px) var(--gutter);
}

.about-prose p {
    font-size: clamp(15.5px, 0.93rem + 0.14vw, 17px);
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 22px;
    text-wrap: pretty;
}

.about-prose p:last-child {
    margin-bottom: 0;
}

.about-prose p:first-of-type::first-letter {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 76px;
    line-height: 0.78;
    float: left;
    padding: 6px 14px 0 0;
    color: var(--flame);
}

.about-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--rule);
    max-width: var(--frame);
    margin-inline: auto;
}

.about-fact {
    padding: clamp(24px, 1.4rem + 1.4vw, 36px) var(--gutter);
    border-right: 1px solid var(--rule);
}

.about-fact:last-child {
    border-right: 0;
}

.about-fact-label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.about-fact-value {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(20px, 1.1rem + 0.5vw, 26px);
    line-height: 1.2;
    margin-top: 8px;
}

/*******************************
PAGE: PROJECTS
*******************************/

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--ink);
    border-bottom: 1px solid var(--rule);
    max-width: var(--frame);
    margin-inline: auto;
}

.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--paper-warm);
}

/*******************************
PAGE: REVIEWS
*******************************/

.reviews-list {
    max-width: var(--frame);
    margin-inline: auto;
    border-bottom: 1px solid var(--rule);
}

.review-entry {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    padding: clamp(30px, 1.8rem + 1.8vw, 48px) var(--gutter);
    border-bottom: 1px solid var(--rule-soft);
    margin: 0;
}

.review-entry:last-child {
    border-bottom: 0;
}

.review-entry-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-entry-name {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(24px, 1.3rem + 0.6vw, 30px);
    line-height: 1.1;
}

.review-entry-job {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.review-entry blockquote {
    font-size: clamp(15px, 0.9rem + 0.19vw, 16.5px);
    line-height: 1.8;
    color: var(--muted);
    text-wrap: pretty;
}

.reviews-outro {
    max-width: var(--frame);
    margin-inline: auto;
    padding: clamp(40px, 2.4rem + 2vw, 64px) var(--gutter);
    text-align: center;
    border-bottom: 1px solid var(--rule);
}

.reviews-outro p {
    font-size: clamp(15.5px, 0.93rem + 0.14vw, 17px);
    line-height: 1.7;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 26px;
}

/*******************************
PAGE: CONTACT
*******************************/

.contact-grid {
    max-width: var(--frame);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    border-bottom: 1px solid var(--rule);
}

.contact-form-cell {
    padding: clamp(32px, 2rem + 2.2vw, 56px) var(--gutter);
    border-right: 1px solid var(--rule);
}

.contact-form-cell h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: clamp(28px, 1.5rem + 1.2vw, 40px);
    line-height: 1.1;
}

.contact-form-note {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--muted);
    margin-top: 12px;
}

.contact-form {
    margin-top: 34px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.field label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.field input,
.field select,
.field textarea {
    font-family: inherit;
    font-size: 15.5px;
    color: var(--ink);
    background: transparent;
    border: 1.5px solid var(--rule-soft);
    border-radius: 0;
    padding: 13px 15px;
    width: 100%;
}

.field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--flame-deep);
}

.field-hp {
    position: absolute;
    left: -9999px;
}

.contact-submit {
    width: 100%;
    margin-top: 12px;
}

.contact-aside {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(32px, 2rem + 2.2vw, 56px) var(--gutter);
}

.contact-aside h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: clamp(26px, 1.4rem + 1vw, 34px);
    line-height: 1.1;
}

.contact-aside-intro {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--muted-dark);
    margin-top: 12px;
}

.contact-detail {
    border-top: 1px solid var(--rule-dark);
    padding: 20px 0;
}

.contact-detail:first-of-type {
    margin-top: 30px;
}

.contact-detail-label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-dark);
    margin-bottom: 6px;
}

.contact-detail a,
.contact-detail span {
    font-size: 16px;
    line-height: 1.5;
    color: var(--paper);
    word-break: break-word;
}

.contact-detail a:hover {
    color: var(--flame);
}

/*******************************
MEDIA QUERIES
*******************************/

@media (max-width: 1080px) {

    .service-row {
        grid-template-columns: 70px 1fr auto;
        gap: 20px 24px;
    }

    .service-name {
        grid-column: 2;
    }

    .service-desc {
        grid-column: 2;
        grid-row: 2;
        margin-top: -8px;
    }

    .service-arrow {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-portrait,
    .contact-form-cell {
        border-right: 0;
        border-bottom: 1px solid var(--rule);
    }

    .about-portrait img {
        max-height: 460px;
    }

    .about-facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-fact:nth-child(2n) {
        border-right: 0;
    }

    .about-fact:nth-child(-n+2) {
        border-bottom: 1px solid var(--rule);
    }

    .review-entry {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 860px) {

    .masthead {
        padding: 14px var(--gutter);
    }

    .brand svg {
        width: 32px;
        height: 32px;
    }

    .brand-name {
        font-size: 19px;
    }

    .nav-toggle {
        display: flex;
    }

    .mainnav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-top: 1px solid var(--rule);
        margin-top: 14px;
    }

    .masthead[data-open="true"] .mainnav {
        display: flex;
    }

    .mainnav a:not(.btn) {
        padding: 16px 2px;
        border-bottom: 1px solid var(--rule-soft);
    }

    .mainnav a[aria-current="page"] {
        border-bottom: 1px solid var(--rule-soft);
        color: var(--flame-deep);
    }

    .mainnav .btn {
        margin: 18px 0 6px;
    }

    .mainnav a.btn[aria-current="page"] {
        padding-bottom: 15.5px;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: clamp(36px, 2rem + 2vw, 44px) var(--gutter);
        border-right: 0;
        border-bottom: 1px solid var(--rule);
    }

    .hero-figure img {
        padding: 20px 20px 0;
    }

    .hero-actions .btn {
        flex: 1 1 240px;
    }

    .principles,
    .reviewstrip {
        grid-template-columns: 1fr;
    }

    .principle,
    .reviewstrip .review {
        border-right: 0;
        border-bottom: 1px solid var(--rule-soft);
    }

    .principle:last-child,
    .reviewstrip .review:last-child {
        border-bottom: 0;
    }

    .workgrid,
    .gallery {
        grid-template-columns: 1fr 1fr;
    }

    .workgrid img,
    .gallery img {
        aspect-ratio: 1;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sitefoot {
        justify-content: center;
        text-align: center;
    }

    .footnav {
        justify-content: center;
    }
}

@media (max-width: 560px) {

    .topbar-inner {
        flex-direction: column;
        gap: 4px;
        text-align: center;
        font-size: 11px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .service-row {
        grid-template-columns: 56px 1fr;
        padding: 26px 0;
    }

    .service-arrow {
        display: none;
    }

    .about-facts {
        grid-template-columns: 1fr;
    }

    .about-fact {
        border-right: 0;
        border-bottom: 1px solid var(--rule);
    }

    .about-fact:last-child {
        border-bottom: 0;
    }

    .about-prose p:first-of-type::first-letter {
        font-size: 60px;
    }

    .hero-figure figcaption,
    .about-portrait figcaption {
        font-size: 10.5px;
    }
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .ticker-track {
        animation: none;
        transform: none;
    }

    * {
        transition-duration: 0.01ms !important;
    }
}
