:root {
    --ink: #261716;
    --ink-soft: #3a2422;
    --linen: #f7eee9;
    --paper: #fff8f4;
    --sage: #7d6760;
    --teal: #6f1118;
    --rust: #a51f2b;
    --brass: #c79a48;
    --clay: #ead1c8;
    --line: rgba(94, 18, 24, 0.18);
    --muted: #735f5b;
    --danger: #9d2b22;
    --radius: 8px;
    --shadow: 0 22px 70px rgba(97, 29, 29, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f7eee9 0%, #fff8f4 42%, #f1ded7 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.68;
}

a {
    color: inherit;
}

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

p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.05;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: pretty;
}

h1 {
    max-width: 16.5ch;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 5.4vw, 5.7rem);
    font-weight: 700;
}

h2 {
    max-width: 18ch;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.05rem, 3.7vw, 3.55rem);
    font-weight: 700;
}

h3 {
    font-size: 1.24rem;
}

p {
    margin: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 14px clamp(18px, 5vw, 72px);
    background: rgba(255, 248, 244, 0.94);
    border-bottom: 1px solid rgba(94, 18, 24, 0.13);
    backdrop-filter: blur(16px);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1 1 auto;
    text-decoration: none;
}

.site-brand span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.site-brand-logo {
    width: clamp(98px, 12vw, 148px);
    height: 52px;
    flex: 0 0 auto;
    object-fit: contain;
    object-position: center;
}

.site-brand strong,
.site-brand small {
    display: block;
}

.site-brand strong {
    font-size: 1.02rem;
    font-weight: 850;
}

.site-brand small {
    max-width: none;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.28;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.site-nav a {
    padding: 10px 12px;
    color: #3a2422;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 760;
}

.site-nav a:hover {
    background: rgba(165, 31, 43, 0.12);
    color: #7e151f;
}

.nav-toggle {
    display: none;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    border-radius: var(--radius);
    font: inherit;
    font-weight: 750;
}

.atelier-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: calc(88vh - 76px);
    padding: clamp(64px, 8vw, 112px) clamp(18px, 6vw, 86px);
    color: var(--paper);
    background-color: #251514;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -14px;
    width: calc(100% + 28px);
    height: calc(100% + 28px);
    z-index: -2;
    max-width: none;
    object-fit: cover;
    object-position: center right;
    filter: brightness(0.74) saturate(1.08);
    transform: scale(1.01);
}

.atelier-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(24, 8, 9, 0.9) 0%, rgba(62, 16, 20, 0.72) 34%, rgba(62, 16, 20, 0.28) 62%, rgba(62, 16, 20, 0.12) 100%),
        linear-gradient(0deg, rgba(35, 11, 12, 0.24), rgba(35, 11, 12, 0.24));
}

.hero-copy {
    max-width: min(860px, 58vw);
    text-shadow: 0 2px 22px rgba(22, 8, 9, 0.46);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--brass);
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
}

.atelier-hero .eyebrow {
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
    line-height: 1.15;
    font-weight: 950;
}

.hero-copy p:not(.eyebrow) {
    max-width: 58ch;
    margin-top: 22px;
    color: rgba(255, 250, 241, 0.9);
    font-size: 1.18rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid var(--rust);
    background: var(--rust);
    color: #fffaf5;
    border-radius: var(--radius);
    text-decoration: none;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.button:hover {
    background: #7e151f;
    border-color: #7e151f;
}

.button-quiet {
    background: rgba(255, 250, 241, 0.08);
    border-color: rgba(255, 250, 241, 0.52);
}

.button-quiet:hover {
    background: rgba(255, 250, 241, 0.16);
    border-color: rgba(255, 250, 241, 0.78);
}

.intro-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    padding: 26px clamp(18px, 6vw, 86px);
    background: linear-gradient(90deg, #251514 0%, #5f151b 58%, #8d1d29 100%);
    color: var(--paper);
}

.intro-strip > p {
    max-width: 780px;
    color: rgba(255, 250, 241, 0.9);
    font-family: inherit;
    font-size: clamp(1.02rem, 1.2vw, 1.16rem);
    font-weight: 650;
    line-height: 1.62;
}

.intro-strip dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.intro-strip div {
    padding-left: 14px;
    border-left: 1px solid rgba(255, 250, 241, 0.26);
}

.intro-strip dt {
    color: var(--brass);
    font-size: 1.48rem;
    font-weight: 900;
}

.intro-strip dd {
    margin: 0;
    color: rgba(255, 250, 241, 0.78);
    font-size: 0.98rem;
}

.section,
.workshop-section,
.split-section,
.quality-band,
.contact-section {
    padding: clamp(54px, 8vw, 104px) clamp(18px, 6vw, 86px);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.92fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: end;
    margin-bottom: clamp(28px, 5vw, 56px);
}

.section-heading > p:not(.eyebrow) {
    max-width: 58ch;
    color: var(--muted);
    font-size: 1.16rem;
}

.inspiration-section .section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.inspiration-section .section-heading h2 {
    max-width: 22ch;
}

.inspiration-section .section-heading > p:not(.eyebrow) {
    max-width: 66ch;
}

.service-band {
    background: var(--paper);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-grid article {
    min-height: 250px;
    padding: 18px;
    background: #f9e7df;
    border: 1px solid rgba(165, 31, 43, 0.18);
    border-radius: var(--radius);
    overflow: hidden;
}

.service-image {
    margin: 0 0 20px;
    overflow: hidden;
    border-radius: calc(var(--radius) - 2px);
}

.service-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 280ms ease;
}

.service-grid article:hover .service-image img {
    transform: scale(1.035);
}

.service-grid span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
    background: var(--rust);
    color: var(--paper);
    border-radius: 50%;
    font-weight: 900;
}

.service-grid h3 {
    margin-bottom: 12px;
    font-size: 1.28rem;
}

.service-grid p {
    color: #705955;
    font-size: 1.08rem;
}

.workshop-section {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 0.7fr);
    gap: clamp(28px, 6vw, 86px);
    align-items: center;
    background: #f2dfd8;
    border-top: 1px solid rgba(94, 18, 24, 0.12);
    border-bottom: 1px solid rgba(94, 18, 24, 0.12);
}

.workshop-section figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.workshop-section img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.workshop-copy {
    display: grid;
    gap: 18px;
    max-width: 620px;
}

.workshop-copy p:not(.eyebrow) {
    color: #604d49;
    font-size: 1.16rem;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.62fr) minmax(360px, 1.08fr);
    gap: clamp(28px, 6vw, 90px);
    align-items: center;
    background: #ead3cb;
}

.split-copy {
    display: grid;
    gap: 16px;
    align-content: center;
}

.material-panel {
    display: grid;
    gap: 24px;
}

.split-visual {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.split-visual img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.text-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.85fr);
    gap: 24px;
    align-items: start;
}

.text-columns p {
    color: #604d49;
    font-size: 1.14rem;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 24px;
    color: #3a2422;
    font-size: 1.07rem;
    font-weight: 750;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 10px;
    height: 10px;
    background: var(--rust);
    border-radius: 50%;
}

.process-section {
    background: var(--linen);
}

.process-list {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.process-list li {
    counter-increment: step;
    min-height: 190px;
    padding: 24px;
    background: var(--paper);
}

.process-list li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 28px;
    color: var(--rust);
    font-weight: 950;
}

.process-list strong,
.process-list span {
    display: block;
}

.process-list strong {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.process-list span {
    color: var(--muted);
    font-size: 1.04rem;
}

.quality-band {
    display: grid;
    grid-template-columns: minmax(0, 0.58fr) minmax(360px, 1fr);
    gap: clamp(28px, 6vw, 90px);
    align-items: stretch;
    background: linear-gradient(135deg, #2a1414 0%, #6f1118 54%, #a51f2b 100%);
    color: var(--paper);
}

.quality-copy {
    display: grid;
    gap: 18px;
    align-content: center;
}

.quality-copy p:not(.eyebrow),
.window-solutions p {
    max-width: 780px;
    color: rgba(255, 250, 241, 0.82);
    font-size: 1.16rem;
}

.window-feature {
    display: grid;
    gap: 18px;
}

.window-figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 250, 241, 0.22);
    border-radius: var(--radius);
    box-shadow: 0 26px 60px rgba(26, 9, 10, 0.28);
}

.window-figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.window-solutions {
    display: grid;
    gap: 22px;
}

.window-solutions ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.window-solutions li {
    padding: 15px 16px;
    background: rgba(255, 250, 241, 0.1);
    border: 1px solid rgba(255, 250, 241, 0.22);
    border-radius: var(--radius);
    color: var(--paper);
    font-size: 1.04rem;
    font-weight: 800;
}

.partner-section {
    background: var(--paper);
}

.inspiration-section {
    background: var(--paper);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 16px;
}

.photo-card {
    position: relative;
    min-height: 260px;
    margin: 0;
    overflow: hidden;
    background: #2a1414;
    border-radius: var(--radius);
    box-shadow: 0 18px 46px rgba(78, 24, 24, 0.14);
}

.photo-card-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 536px;
}

.photo-card-wide {
    grid-column: span 2;
}

.photo-card img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 320ms ease, filter 320ms ease;
}

.photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(42, 20, 20, 0) 46%, rgba(42, 20, 20, 0.7) 100%);
    pointer-events: none;
}

.photo-card:hover img {
    filter: saturate(1.06);
    transform: scale(1.035);
}

.photo-card figcaption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 1;
    color: var(--paper);
    font-size: 1.05rem;
    font-weight: 880;
    text-shadow: 0 2px 14px rgba(22, 8, 9, 0.55);
}

.partner-logo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.partner-logo-card {
    display: flex;
    min-height: 128px;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 3vw, 34px);
    background: linear-gradient(180deg, #fffdf8 0%, #f7eee7 100%);
    border: 1px solid rgba(58, 36, 34, 0.12);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(78, 24, 24, 0.09);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.partner-logo-card:hover {
    border-color: rgba(165, 31, 43, 0.3);
    box-shadow: 0 24px 54px rgba(78, 24, 24, 0.13);
    transform: translateY(-2px);
}

.partner-logo-card img {
    display: block;
    width: min(100%, 320px);
    max-height: 88px;
    object-fit: contain;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.74fr) minmax(320px, 1fr);
    gap: clamp(28px, 6vw, 86px);
    background: var(--paper);
}

.contact-copy {
    max-width: 520px;
}

.contact-copy > p:not(.eyebrow) {
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.14rem;
}

address {
    margin-top: 28px;
    color: #4d3835;
    font-size: 1.08rem;
    font-style: normal;
}

.contact-form {
    display: grid;
    gap: 15px;
    padding: clamp(20px, 4vw, 32px);
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

label {
    display: grid;
    gap: 7px;
    color: #3a2422;
    font-size: 1.02rem;
    font-weight: 780;
}

input,
textarea,
select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid rgba(94, 18, 24, 0.22);
    border-radius: var(--radius);
    background: #fffdf8;
    color: var(--ink);
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(165, 31, 43, 0.18);
    border-color: var(--rust);
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #674f4a;
    font-size: 1rem;
    font-weight: 650;
}

.check-row input {
    width: 18px;
    min-height: 18px;
    margin-top: 4px;
}

.honeypot {
    position: absolute;
    left: -10000px;
}

.page-hero {
    display: grid;
    align-items: center;
    min-height: 54vh;
    padding: clamp(48px, 8vw, 90px) clamp(18px, 6vw, 86px);
    background: linear-gradient(135deg, #251514, #6f1118);
    color: var(--paper);
}

.page-hero.compact {
    min-height: 42vh;
}

.intro-band {
    padding: 30px clamp(18px, 6vw, 86px);
    background: #ead3cb;
}

.intro-band p {
    max-width: 860px;
    color: #604d49;
    font-size: 1.16rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: clamp(38px, 7vw, 82px) clamp(18px, 6vw, 86px);
}

.content-block {
    padding: 26px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.content-block h2 {
    max-width: none;
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 1.34rem;
}

.content-block p {
    color: #604d49;
    font-size: 1.06rem;
}

.legal-grid {
    background: var(--linen);
}

.site-flash {
    margin: 16px clamp(18px, 6vw, 86px) 0;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-weight: 760;
}

.contact-form .site-flash {
    margin: 0 0 4px;
}

.site-flash-success {
    background: #f3e3dd;
    color: #6f1118;
}

.site-flash-error {
    background: #f7ded8;
    color: var(--danger);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    padding: 32px clamp(18px, 6vw, 86px);
    background: var(--ink);
    color: var(--paper);
}

.site-footer p {
    margin-top: 6px;
    color: rgba(255, 250, 241, 0.68);
    font-size: 1rem;
}

.site-footer nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.system-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.system-message {
    max-width: 780px;
    padding: 28px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

@media (max-width: 980px) {
    .site-header {
        align-items: flex-start;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
    }

    .site-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        display: none;
        padding: 12px 18px 18px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
    }

    .site-nav.is-open {
        display: grid;
        justify-content: stretch;
    }

    .site-nav a {
        border-radius: var(--radius);
    }

    .section-heading,
    .intro-strip,
    .workshop-section,
    .split-section,
    .text-columns,
    .quality-band,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .process-list,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .partner-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-card-large,
    .photo-card-wide {
        grid-column: span 2;
    }

    .process-list li {
        min-height: 150px;
    }
}

@media (max-width: 620px) {
    .site-brand small {
        font-size: 0.78rem;
    }

    .site-brand {
        gap: 10px;
    }

    .site-brand-logo {
        width: 92px;
        height: 42px;
    }

    h1 {
        max-width: 12.5ch;
        font-size: clamp(2.45rem, 10.5vw, 3.15rem);
    }

    h2 {
        max-width: 100%;
        font-size: clamp(2rem, 9vw, 2.75rem);
    }

    .atelier-hero {
        min-height: 78vh;
        padding-top: 46px;
    }

    .atelier-hero .hero-copy {
        max-width: 100%;
    }

    .hero-bg {
        object-position: 68% center;
        filter: brightness(0.68) saturate(1.08);
    }

    .atelier-hero::after {
        background: linear-gradient(0deg, rgba(37, 13, 14, 0.86), rgba(82, 18, 24, 0.48));
    }

    .intro-strip dl {
        grid-template-columns: 1fr;
    }

    .window-solutions ul {
        grid-template-columns: 1fr;
    }

    .photo-grid,
    .text-columns,
    .partner-logo-grid {
        grid-template-columns: 1fr;
    }

    .partner-logo-card {
        min-height: 112px;
    }

    .photo-card,
    .photo-card-large,
    .photo-card-wide {
        grid-column: auto;
        grid-row: auto;
        min-height: 260px;
    }

    .service-grid article,
    .content-block,
    .contact-form {
        padding: 20px;
    }

    .site-footer {
        display: grid;
    }
}
