/*
 * Public theme stylesheet.
 * Beginner note: theme.json gives WordPress the design tokens, and this file shapes the public pages.
 */

:root {
    --dbt-bg: #f8f0e8;
    --dbt-surface: #fffaf4;
    --dbt-surface-muted: #efe0d2;
    --dbt-ink: #34241f;
    --dbt-text: #4b3931;
    --dbt-muted: #846f63;
    --dbt-line: #d7bda9;
    --dbt-accent: #8a3f4f;
    --dbt-accent-strong: #67303d;
    --dbt-warm: #c1835f;
    --dbt-secondary: #73836e;
    --dbt-header-bg: #fff8f0;
    --dbt-header-text: #34241f;
    --dbt-button-text: #fffaf0;
    --dbt-surface-ink: #2f2923;
    --dbt-surface-text: #6c6258;
    --dbt-radius: 4px;
    --dbt-shadow: none;
    --dbt-body-font: Arial, Helvetica, sans-serif;
    --dbt-heading-font: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--dbt-bg);
    color: var(--dbt-text);
    font-family: var(--dbt-body-font);
}

img,
model-viewer {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    gap: 22px;
    padding: 14px max(18px, calc((100vw - 1280px) / 2));
    border-bottom: 1px solid color-mix(in srgb, var(--dbt-line) 80%, transparent);
    background: color-mix(in srgb, var(--dbt-header-bg) 94%, transparent);
    color: var(--dbt-header-text);
    backdrop-filter: blur(12px);
}

.site-branding {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.dbt-mark {
    display: grid;
    width: 42px;
    height: 42px;
    margin: 0;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-family: var(--dbt-heading-font);
    font-weight: 800;
}

.site-logo,
.site-logo a,
.primary-nav a,
.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-logo {
    font-family: var(--dbt-heading-font);
    font-size: 1.35rem;
    font-weight: 700;
}

.primary-nav a {
    font-weight: 800;
}

.primary-nav a:hover,
.site-footer a:hover {
    color: var(--dbt-warm);
}

.primary-nav .sss-nav-cta a,
.primary-nav a.sss-nav-cta,
.wp-block-button__link,
button,
input[type="submit"],
.sss-button {
    border: 1px solid var(--dbt-accent);
    border-radius: var(--dbt-radius);
    background: var(--dbt-accent);
    color: var(--dbt-button-text);
    font-weight: 800;
    box-shadow: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.primary-nav .sss-nav-cta a,
.primary-nav a.sss-nav-cta {
    min-height: 38px;
    padding: 8px 14px;
    color: var(--dbt-button-text) !important;
}

.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover,
.sss-button:hover {
    border-color: var(--dbt-accent-strong);
    background: var(--dbt-accent-strong);
    transform: translateY(-1px);
}

.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
    border-color: var(--dbt-line);
    background: transparent;
    color: inherit;
}

.dbt-front-page,
.dbt-home {
    overflow: hidden;
}

.dbt-home {
    color: var(--dbt-text);
}

.dbt-hero,
.dbt-story,
.dbt-media,
.dbt-process,
.dbt-ideas,
.dbt-cta,
.dbt-soft-row,
.page-hero,
.page-grid,
.model-detail,
.empty-state {
    width: min(1180px, calc(100% - 36px));
    margin-inline: auto;
}

.dbt-hero,
.dbt-story,
.dbt-media,
.dbt-process,
.dbt-ideas,
.dbt-soft-row,
.page-hero,
.page-grid,
.model-detail,
.empty-state {
    padding-block: clamp(48px, 7vw, 88px);
}

.dbt-hero {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: max(20px, calc((100vw - 1180px) / 2));
    color: var(--dbt-text);
}

.dbt-hero-inner {
    display: grid;
    width: 100%;
    max-width: 1180px !important;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
    margin-inline: auto;
}

.dbt-hero-copy {
    max-width: 690px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--dbt-warm);
    font-size: 0.79rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.dbt-hero h1,
.page-hero h1 {
    margin: 0;
    color: inherit;
    font-family: var(--dbt-heading-font);
    font-size: clamp(2.6rem, 5.6vw, 4.8rem);
    line-height: 1.03;
}

.dbt-hero p:not(.eyebrow):not(.hero-note) {
    color: var(--dbt-muted);
    font-size: 1.05rem;
}

.dbt-story p:not(.eyebrow),
.dbt-media p,
.dbt-process p,
.dbt-ideas p,
.dbt-cta p,
.dbt-soft-row p,
.page-hero p {
    color: var(--dbt-surface-text);
    font-size: 1.05rem;
}

.hero-actions {
    margin-top: 26px;
}

.hero-note {
    max-width: 620px;
    margin-top: 18px;
    padding-left: 14px;
    border-left: 4px solid var(--dbt-secondary);
    color: var(--dbt-muted);
    font-weight: 800;
}

.dbt-hero-image {
    margin: 0;
}

.dbt-hero-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.dbt-hero-image figcaption {
    margin-top: 10px;
    color: var(--dbt-muted);
    font-size: 0.92rem;
}

.dbt-media {
    position: relative;
    overflow: hidden;
}

.dbt-media::before,
.dbt-media::after {
    /* Beginner note: these pseudo-elements stay empty unless a specific theme gives them a visible style. */
    content: "";
    position: absolute;
    pointer-events: none;
}

.dbt-media::before {
    width: 96px;
    height: 1px;
    top: 22px;
    left: 28px;
}

.dbt-media::after {
    width: 1px;
    height: 96px;
    right: 28px;
    bottom: 22px;
}

.dbt-media-head {
    max-width: 760px;
    margin-bottom: 26px;
}

.dbt-media-board {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: clamp(20px, 4vw, 46px);
    align-items: center;
}

.dbt-video-frame {
    position: relative;
    padding: clamp(16px, 3vw, 28px);
    border: 1px solid var(--dbt-line);
    background: color-mix(in srgb, var(--dbt-surface) 84%, #ffffff);
}

.dbt-video-native {
    margin: 0;
}

.dbt-video-native video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid color-mix(in srgb, var(--dbt-line) 70%, transparent);
    background: var(--dbt-surface-muted);
}

.dbt-video-native figcaption,
.dbt-photo-card figcaption {
    margin-top: 10px;
    color: var(--dbt-surface-text);
    font-size: 0.92rem;
    font-weight: 800;
}

.dbt-play-mark {
    position: absolute;
    top: clamp(34px, 5vw, 58px);
    left: clamp(34px, 5vw, 58px);
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid var(--dbt-line);
    border-radius: 50%;
    background: color-mix(in srgb, var(--dbt-surface) 78%, transparent);
}

.dbt-play-mark::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 17px solid var(--dbt-accent);
}

.dbt-video-copy {
    margin-bottom: 6px;
    font-weight: 800;
}

.dbt-edit-note {
    margin-bottom: 0;
    color: color-mix(in srgb, var(--dbt-surface-text) 82%, var(--dbt-accent));
    font-size: 0.88rem !important;
}

.dbt-photo-stack {
    display: grid;
    min-height: 520px;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, minmax(48px, 1fr));
    gap: 14px;
}

.dbt-photo-card {
    position: relative;
    margin: 0;
    padding: 10px 10px 28px;
    border: 1px solid var(--dbt-line);
    background: #fffdf7;
}

.dbt-photo-card::before {
    /* Beginner note: this faux tape makes replaceable photos feel mounted by hand. */
    content: "";
    position: absolute;
    width: 74px;
    height: 18px;
    top: -10px;
    left: 18px;
    background: color-mix(in srgb, var(--dbt-surface-muted) 78%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--dbt-line) 62%, transparent);
}

.dbt-photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
}

.dbt-photo-one {
    grid-column: 1 / 5;
    grid-row: 1 / 4;
    transform: rotate(-1.2deg);
}

.dbt-photo-two {
    grid-column: 3 / 7;
    grid-row: 3 / 7;
    transform: rotate(1.5deg);
}

.dbt-photo-three {
    grid-column: 1 / 4;
    grid-row: 4 / 7;
    transform: rotate(-0.6deg);
}

.dbt-media-compact {
    margin-block: 24px;
}

.dbt-media-compact .dbt-media-board {
    grid-template-columns: 1fr;
}

.dbt-media-compact .dbt-photo-stack {
    min-height: 340px;
}

.wp-block-video,
.wp-block-gallery {
    /* Beginner note: these rules make manually added videos and photo galleries match the theme frames. */
    border-color: var(--dbt-line);
}

.wp-block-gallery {
    gap: 14px;
}

.wp-block-gallery .wp-block-image {
    border: 1px solid var(--dbt-line);
    background: var(--dbt-surface);
    padding: 8px;
}

.dbt-story,
.dbt-media,
.dbt-process,
.dbt-ideas,
.dbt-cta,
.dbt-soft-row,
.page-hero,
.page-grid,
.model-detail,
.empty-state,
.dbt-page-note,
.sss-form,
.sss-contact-details,
.sss-empty-state,
.sss-model-card,
.wp-block-details,
.wp-block-query .wp-block-post {
    border: 1px solid var(--dbt-line);
    border-radius: var(--dbt-radius);
    background: var(--dbt-surface);
    box-shadow: var(--dbt-shadow);
}

.dbt-story,
.dbt-media,
.dbt-process,
.dbt-ideas,
.dbt-cta,
.dbt-soft-row,
.page-hero,
.page-grid,
.model-detail,
.empty-state,
.dbt-page-note {
    padding: clamp(24px, 4vw, 42px);
}

.dbt-story h2,
.dbt-media h2,
.dbt-process h2,
.dbt-ideas h2,
.dbt-cta h2,
.dbt-soft-row h2,
.page-hero h1,
.page-hero h2 {
    margin-top: 0;
    color: var(--dbt-surface-ink);
    font-family: var(--dbt-heading-font);
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    line-height: 1.12;
}

.dbt-step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.dbt-step {
    padding: 22px;
    border: 1px solid var(--dbt-line);
    background: color-mix(in srgb, var(--dbt-surface) 82%, var(--dbt-bg));
}

.dbt-step-number {
    display: grid;
    width: 38px;
    height: 38px;
    /* Beginner note: fixed number badges keep all three process steps aligned. */
    margin: 0 0 14px;
    place-items: center;
    border: 1px solid var(--dbt-accent);
    color: var(--dbt-accent);
    font-weight: 900;
}

.dbt-ideas {
    background: color-mix(in srgb, var(--dbt-surface) 78%, var(--dbt-surface-muted));
}

.dbt-cta {
    margin-block: clamp(42px, 6vw, 76px);
}

.dbt-two-column {
    gap: 24px;
}

.dbt-page-note {
    margin-bottom: 24px;
}

.dbt-process-list {
    padding-left: 1.35rem;
}

.dbt-process-list li {
    margin-bottom: 12px;
}

.wp-block-details {
    margin-bottom: 12px;
    padding: 18px 20px;
}

.wp-block-details summary {
    cursor: pointer;
    font-weight: 900;
}

.sss-form-section,
.sss-model-gallery-wrap {
    width: min(1180px, calc(100% - 36px));
}

.sss-form,
.sss-contact-details,
.sss-empty-state {
    padding: clamp(20px, 4vw, 34px);
}

.sss-form input,
.sss-form select,
.sss-form textarea {
    border-color: var(--dbt-line);
    border-radius: var(--dbt-radius);
    background: color-mix(in srgb, var(--dbt-surface) 88%, #ffffff);
    color: var(--dbt-text);
}

.sss-form input:focus,
.sss-form select:focus,
.sss-form textarea:focus {
    border-color: var(--dbt-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dbt-accent) 18%, transparent);
}

.sss-model-card {
    overflow: hidden;
}

.sss-model-viewer {
    background: var(--dbt-surface-muted);
}

.site-footer {
    margin-top: 60px;
    padding: 34px clamp(18px, 5vw, 72px);
    border-top: 1px solid var(--dbt-line);
    background: var(--dbt-header-bg);
    color: var(--dbt-header-text);
}

.site-footer-inner {
    width: min(1180px, 100%);
    margin-inline: auto;
    gap: 18px;
}

.dbt-home-atelierlicht {
    /* Beginner note: this wallpaper uses only vertical bands, so it feels soft instead of technical. */
    background:
        linear-gradient(180deg, rgba(255, 250, 244, 0.28), rgba(248, 240, 232, 0.16)),
        repeating-linear-gradient(
            90deg,
            rgba(255, 250, 244, 0.52) 0 72px,
            rgba(246, 236, 227, 0.48) 72px 144px,
            rgba(250, 243, 236, 0.44) 144px 216px,
            rgba(239, 224, 210, 0.30) 216px 288px
        ),
        var(--dbt-bg);
}

.site-header {
    /* Beginner note: the thicker border gives the sticky header a clearer edge. */
    border-bottom-width: 2px;
}

.wp-site-blocks > main.dbt-front-page {
    /* Beginner note: WordPress adds space between header and main blocks; this keeps that gap tiny. */
    margin-block-start: 2px;
}

.dbt-home-atelierlicht .dbt-hero {
    position: relative;
    box-sizing: border-box;
    /* Beginner note: the hero has no outer frame; only the paper and photo inside it are framed. */
    /* Beginner note: the main block starts 2px below the header, while this padding lowers the hero panels inside that area. */
    padding-block: clamp(32px, 4.5vw, 52px) clamp(28px, 5vw, 58px);
}

.dbt-home-atelierlicht .dbt-hero::after {
    content: "";
    position: absolute;
    width: min(520px, 44vw);
    height: 78%;
    top: 8%;
    right: max(18px, calc((100vw - 1220px) / 2));
    border-left: 1px solid color-mix(in srgb, var(--dbt-line) 56%, transparent);
    border-right: 1px solid color-mix(in srgb, var(--dbt-line) 28%, transparent);
    background:
        /* Beginner note: this adds a very light curtain effect on top of the wallpaper. */
        repeating-linear-gradient(90deg, rgba(255, 250, 244, 0.58) 0 42px, rgba(255, 250, 244, 0.22) 42px 84px);
    opacity: 0.7;
    pointer-events: none;
}

.dbt-home-atelierlicht .dbt-hero-inner {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 0.96fr) minmax(300px, 0.84fr);
    gap: clamp(18px, 4vw, 54px);
    align-items: end;
    border: 0;
    background: transparent;
}

.dbt-home-atelierlicht .dbt-hero-copy {
    position: relative;
    max-width: 650px;
    /* Beginner note: this padding creates the feeling of a keepsake paper sheet around the text. */
    padding: clamp(24px, 3.4vw, 44px);
    border: 1px solid color-mix(in srgb, var(--dbt-line) 78%, transparent);
    background: color-mix(in srgb, var(--dbt-surface) 82%, transparent);
    box-shadow:
        0 28px 80px rgba(91, 52, 42, 0.12),
        inset 0 0 0 10px rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
}

.dbt-home-atelierlicht .dbt-hero-copy::before {
    content: "";
    position: absolute;
    width: 118px;
    /* Beginner note: the taller tape makes the torn edge easier to see. */
    height: 34px;
    top: -18px;
    left: clamp(24px, 4vw, 48px);
    border: 1px solid color-mix(in srgb, var(--dbt-line) 54%, transparent);
    background: color-mix(in srgb, #fffaf4 76%, transparent);
    transform: rotate(-2deg);
}

.dbt-home-atelierlicht .dbt-hero h1 {
    max-width: 13.5ch;
    color: #2f211d;
    /* Beginner note: the heading stays large, but not so large that it hides the appointment buttons. */
    font-size: clamp(2.55rem, 4.7vw, 4.1rem);
    line-height: 1;
}

.dbt-home-atelierlicht .dbt-hero p:not(.eyebrow):not(.hero-note) {
    max-width: 35rem;
    color: #765f55;
}

.dbt-home-atelierlicht .hero-note {
    border-left-color: var(--dbt-warm);
    background: color-mix(in srgb, var(--dbt-surface-muted) 42%, transparent);
    padding: 12px 14px;
}

.dbt-home-atelierlicht .dbt-hero-image {
    position: relative;
    align-self: center;
    padding: clamp(14px, 2vw, 22px) clamp(14px, 2vw, 22px) clamp(34px, 4vw, 52px);
    border: 1px solid var(--dbt-line);
    background: #fffdf8;
    box-shadow: 0 30px 70px rgba(78, 48, 39, 0.14);
    transform: rotate(1.4deg) translateY(14px);
}

.dbt-home-atelierlicht .dbt-hero-image::before,
.dbt-home-atelierlicht .dbt-hero-image::after {
    content: "";
    position: absolute;
    width: 96px;
    /* Beginner note: all photo tape pieces use the same taller strip height. */
    height: 32px;
    border: 1px solid color-mix(in srgb, var(--dbt-line) 50%, transparent);
    background: color-mix(in srgb, var(--dbt-surface-muted) 70%, #ffffff);
}

.dbt-home-atelierlicht .dbt-hero-image::before {
    top: -17px;
    left: 28px;
    /* Beginner note: this top photo tape uses one matching translucent color instead of the striped tape texture. */
    border: 2px solid #ccc3c3;
    background: color-mix(in srgb, var(--dbt-line) 70%, transparent);
    transform: rotate(-6deg);
}

.dbt-home-atelierlicht .dbt-hero-image::after {
    right: 28px;
    bottom: -17px;
    transform: rotate(5deg);
}

.dbt-home-atelierlicht .dbt-photo-card::before {
    /* Beginner note: the gallery tape is a little taller than before, but still smaller than the hero tape. */
    height: 26px;
    top: -14px;
}

.dbt-home-atelierlicht .dbt-hero-copy::before,
.dbt-home-atelierlicht .dbt-hero-image::before,
.dbt-home-atelierlicht .dbt-hero-image::after,
.dbt-home-atelierlicht .dbt-photo-card::before {
    /* Beginner note: the zig-zag clip path makes the long top and bottom tape edges look torn. */
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(250, 247, 242, 0.18) 48%, rgba(232, 224, 216, 0.08)),
        /* Beginner note: these two almost-white stripe colors keep the tape visible without making it loud. */
        repeating-linear-gradient(90deg, #fffdf9 0 7px, #f4eee7 7px 14px),
        #fbf7f1;
    clip-path: polygon(
        0 10%,
        5% 0,
        10% 10%,
        15% 0,
        20% 10%,
        25% 0,
        30% 10%,
        35% 0,
        40% 10%,
        45% 0,
        50% 10%,
        55% 0,
        60% 10%,
        65% 0,
        70% 10%,
        75% 0,
        80% 10%,
        85% 0,
        90% 10%,
        95% 0,
        100% 10%,
        100% 90%,
        95% 100%,
        90% 90%,
        85% 100%,
        80% 90%,
        75% 100%,
        70% 90%,
        65% 100%,
        60% 90%,
        55% 100%,
        50% 90%,
        45% 100%,
        40% 90%,
        35% 100%,
        30% 90%,
        25% 100%,
        20% 90%,
        15% 100%,
        10% 90%,
        5% 100%,
        0 90%
    );
}

.dbt-home-atelierlicht .dbt-hero-copy::before,
.dbt-home-atelierlicht .dbt-hero-image::before,
.dbt-home-atelierlicht .dbt-hero-image::after,
.dbt-home-atelierlicht .dbt-photo-card::before {
    /* Beginner note: this repeat comes after the shared tape texture, so all visible tape pieces keep the requested single color. */
    border: 2px solid #ccc3c3;
    /* Beginner note: this fill is mostly white and still 30% transparent, so the tape stays calm. */
    background: color-mix(in srgb, color-mix(in srgb, #fffdf9 86%, var(--dbt-line)) 70%, transparent);
}

.dbt-home-atelierlicht .dbt-hero-image img {
    aspect-ratio: 5 / 4;
    filter: saturate(0.95) contrast(0.98);
}

.dbt-home-atelierlicht .dbt-hero-image figcaption {
    text-align: center;
    font-family: var(--dbt-heading-font);
    font-style: italic;
}

.dbt-home-atelierlicht .dbt-story {
    /* Beginner note: this readable width makes the first story panel feel intentionally quieter than the work sections. */
    width: min(960px, calc(100% - 36px));
    max-width: 960px;
    margin-inline: auto;
    margin-top: -18px;
    border: 0;
    border-left: 1px solid var(--dbt-line);
    border-right: 1px solid var(--dbt-line);
    background: color-mix(in srgb, var(--dbt-surface) 76%, transparent);
    box-shadow: 0 24px 70px rgba(91, 52, 42, 0.08);
    text-align: center;
}

.dbt-home-atelierlicht .dbt-media,
.dbt-home-atelierlicht .dbt-process,
.dbt-home-atelierlicht .dbt-ideas,
.dbt-home-atelierlicht .dbt-soft-row,
.dbt-home-atelierlicht .dbt-cta {
    /* Beginner note: these main work sections share one invisible layout width, so variation feels designed. */
    box-sizing: border-box;
    width: min(1160px, calc(100% - 36px));
    max-width: 1160px;
    margin-inline: auto;
}

.dbt-home-atelierlicht .dbt-media {
    border: 0;
    background: color-mix(in srgb, var(--dbt-surface) 64%, transparent);
    box-shadow: 0 28px 80px rgba(91, 52, 42, 0.1);
}

.dbt-home-atelierlicht .dbt-media::before {
    width: 1px;
    height: calc(100% - 52px);
    top: 26px;
    left: 34px;
}

.dbt-home-atelierlicht .dbt-media::after {
    width: calc(100% - 68px);
    height: 1px;
    right: 34px;
    bottom: 28px;
}

.dbt-home-atelierlicht .dbt-video-frame {
    border-width: 1px;
    background: color-mix(in srgb, var(--dbt-surface) 86%, transparent);
    box-shadow: inset 0 0 0 9px rgba(255, 255, 255, 0.22);
}

.dbt-home-atelierlicht .dbt-photo-stack {
    min-height: 560px;
    transform: translateY(26px);
}

.dbt-home-atelierlicht .dbt-photo-card {
    box-shadow: 0 18px 42px rgba(91, 52, 42, 0.12);
}

.dbt-home-atelierlicht .dbt-process {
    border: 0;
    background: transparent;
}

.dbt-home-atelierlicht .dbt-step-grid {
    /* Beginner note: this makes the three step panels use the same row height. */
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.dbt-home-atelierlicht .dbt-step {
    /* Beginner note: flex keeps the text inside every step panel starting at the top. */
    display: flex;
    margin-block-start: 0;
    height: 100%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    border: 0;
    border-top: 1px solid var(--dbt-line);
    background: color-mix(in srgb, var(--dbt-surface) 72%, transparent);
    box-shadow: 0 18px 44px rgba(91, 52, 42, 0.08);
}

.dbt-home-atelierlicht .dbt-step > :not(.dbt-step-number) {
    /* Beginner note: only the text blocks fill the card width; the number badge stays a small square. */
    width: 100%;
}

.dbt-home-atelierlicht .dbt-step-number {
    /* Beginner note: a fixed width and height makes every number border the same square size. */
    width: 38px;
    height: 38px;
    min-width: 38px;
    align-self: flex-start;
    box-sizing: border-box;
    margin-inline: 0 auto;
}

.dbt-home-atelierlicht .dbt-ideas,
.dbt-home-atelierlicht .dbt-soft-row {
    border: 0;
    background: color-mix(in srgb, var(--dbt-surface) 76%, transparent);
    box-shadow: 0 22px 60px rgba(91, 52, 42, 0.08);
}

.dbt-home-atelierlicht .dbt-cta {
    border: 1px solid color-mix(in srgb, var(--dbt-line) 76%, transparent);
    background: var(--dbt-surface);
    box-shadow: 0 20px 56px rgba(91, 52, 42, 0.1);
}

@media (max-width: 900px) {
    .dbt-home-atelierlicht .dbt-hero {
        overflow: hidden;
        /* Beginner note: mobile also keeps the header gap small, then lowers the hero panels with inner padding. */
        padding-block: 30px 44px;
    }

    .dbt-home-atelierlicht .dbt-hero::after {
        width: 58%;
        height: 48%;
        top: 16%;
        right: -10%;
        opacity: 0.36;
    }

    .dbt-home-atelierlicht .dbt-hero-inner {
        /* Beginner note: mobile screens need one column, otherwise the text becomes too narrow. */
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: start;
    }

    .dbt-home-atelierlicht .dbt-hero-copy {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        max-width: calc(100vw - 36px);
        padding: 28px 24px;
    }

    .dbt-home-atelierlicht .dbt-hero h1 {
        max-width: 100%;
        font-size: clamp(2.2rem, 11vw, 2.85rem);
        line-height: 1.02;
    }

    .dbt-home-atelierlicht .dbt-hero p:not(.eyebrow):not(.hero-note),
    .dbt-home-atelierlicht .hero-actions {
        max-width: 100%;
    }

    .dbt-home-atelierlicht .hero-actions .wp-block-button,
    .dbt-home-atelierlicht .hero-actions .wp-block-button__link {
        width: 100%;
    }

    .dbt-home-atelierlicht .dbt-hero-image {
        /* Beginner note: border-box includes the frame padding inside the mobile width. */
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        max-width: calc(100vw - 36px);
        transform: rotate(0.8deg);
    }

    .dbt-home-atelierlicht .dbt-photo-stack {
        min-height: 430px;
        transform: none;
    }
}

@media (max-width: 540px) {
    .dbt-home-atelierlicht .dbt-hero-copy {
        padding: 26px 22px;
    }

    .dbt-home-atelierlicht .dbt-hero h1 {
        font-size: clamp(2rem, 9.6vw, 2.45rem);
    }

    .dbt-home-atelierlicht .dbt-hero-image {
        padding: 12px 12px 34px;
        transform: none;
    }

    .dbt-home-atelierlicht .dbt-media::before,
    .dbt-home-atelierlicht .dbt-media::after {
        display: none;
    }

    .dbt-home-atelierlicht .dbt-photo-stack {
        min-height: 360px;
    }
}

@media (max-width: 900px) {
    .site-header {
        gap: 12px;
        padding: 12px 18px;
        padding-right: 72px;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }

    .site-branding {
        min-width: 0;
        max-width: calc(100vw - 116px);
        flex: 1 1 auto;
    }

    .site-logo {
        display: block;
        max-width: 100%;
        overflow: hidden;
        font-size: clamp(1.05rem, 5vw, 1.35rem);
        line-height: 1.1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .primary-nav {
        position: absolute;
        top: 12px;
        right: 18px;
        width: 42px;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .primary-nav .wp-block-navigation__container {
        display: none !important;
    }

    .primary-nav .wp-block-navigation__responsive-container-open {
        display: inline-flex !important;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        border: 1px solid currentColor;
        color: var(--dbt-header-text);
        background: transparent;
    }

    .primary-nav .wp-block-navigation__responsive-container-open svg {
        width: 24px;
        height: 24px;
        fill: currentColor;
    }

    .dbt-hero-inner,
    .dbt-media-board,
    .dbt-step-grid,
    .sss-model-grid,
    .sss-contact-layout {
        grid-template-columns: 1fr;
    }

    .dbt-hero {
        padding-inline: 18px;
    }

    .dbt-hero h1,
    .page-hero h1 {
        font-size: clamp(2.25rem, 12vw, 3.55rem);
    }

    .hero-actions,
    .hero-actions .wp-block-button,
    .hero-actions .wp-block-button__link,
    .dbt-cta .wp-block-buttons,
    .dbt-cta .wp-block-button,
    .dbt-cta .wp-block-button__link {
        width: 100%;
    }

    .dbt-photo-stack {
        min-height: 0;
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .dbt-photo-one,
    .dbt-photo-two,
    .dbt-photo-three {
        grid-column: auto;
        grid-row: auto;
        transform: none;
    }
}

@media (max-width: 620px) {
    .dbt-hero,
    .dbt-story,
    .dbt-media,
    .dbt-process,
    .dbt-ideas,
    .dbt-cta,
    .dbt-soft-row,
    .page-hero,
    .page-grid,
    .model-detail,
    .empty-state,
    .sss-form-section,
    .sss-model-gallery-wrap {
        width: calc(100% - 28px);
    }

    .dbt-hero {
        width: 100%;
    }

    h1,
    h2,
    h3,
    p,
    dd,
    .site-logo {
        overflow-wrap: anywhere;
    }
}

/*
 * Front-page reference layout.
 * Beginner note: these rules come last, so they safely override the earlier starter layout.
 */

:root {
    --dbt-bg: #fbf4ec;
    --dbt-paper: #fffaf3;
    --dbt-paper-soft: #f5e9db;
    --dbt-ink: #33231e;
    --dbt-text: #5b463c;
    --dbt-muted: #8a7467;
    --dbt-line: #ddc9b7;
    --dbt-accent: #95495a;
    --dbt-accent-strong: #783848;
    --dbt-olive: #7d8466;
    --dbt-shadow: 0 24px 62px rgba(76, 45, 34, 0.13);
}

body {
    background:
        linear-gradient(180deg, rgba(255, 252, 247, 0.64), rgba(248, 238, 228, 0.48)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.32) 0 88px, rgba(238, 223, 209, 0.28) 88px 176px),
        var(--dbt-bg);
    line-height: 1.55;
}

.site-header {
    min-height: 68px;
    padding: 0 max(24px, calc((100vw - 1280px) / 2));
    border-bottom: 1px solid rgba(122, 86, 68, 0.18);
    background: rgba(255, 250, 243, 0.94);
    box-shadow: 0 8px 28px rgba(79, 50, 39, 0.06);
}

.dbt-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--dbt-ink);
    font-family: var(--dbt-heading-font);
    font-size: clamp(1.35rem, 2vw, 1.78rem);
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.dbt-brand-mark {
    position: relative;
    display: inline-grid;
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #c7a98f;
    border-radius: 50%;
}

.dbt-brand-mark::before,
.dbt-brand-mark::after {
    /* Beginner note: these two small lines create a simple handmade mark without needing a separate logo file. */
    content: "";
    position: absolute;
    border: 1px solid #c7a98f;
    border-radius: 50%;
}

.dbt-brand-mark::before {
    width: 13px;
    height: 20px;
    transform: rotate(-18deg);
}

.dbt-brand-mark::after {
    width: 18px;
    height: 10px;
    transform: rotate(34deg);
}

.primary-nav .wp-block-navigation__container {
    gap: clamp(20px, 2.5vw, 38px);
}

.primary-nav a {
    color: #4e3b33;
    font-size: 0.92rem;
    font-weight: 600;
}

.primary-nav .sss-nav-cta a {
    min-height: 46px;
    padding: 12px 25px;
    border-color: var(--dbt-accent);
    border-radius: 2px;
    background: var(--dbt-accent);
    color: #fff8f0 !important;
}

.dbt-front-page {
    background: transparent;
}

.dbt-home-atelierlicht {
    color: var(--dbt-text);
    background:
        radial-gradient(circle at 16% 6%, rgba(255, 255, 255, 0.82), transparent 26%),
        linear-gradient(180deg, rgba(255, 250, 244, 0.72), rgba(250, 241, 232, 0.86));
}

.dbt-home-atelierlicht .dbt-hero,
.dbt-home-atelierlicht .dbt-story,
.dbt-home-atelierlicht .dbt-process,
.dbt-home-atelierlicht .dbt-memories,
.dbt-home-atelierlicht .dbt-atelier,
.dbt-home-atelierlicht .dbt-care {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.dbt-home-atelierlicht .dbt-hero {
    position: relative;
    padding: clamp(46px, 5.6vw, 84px) max(24px, calc((100vw - 1280px) / 2)) clamp(42px, 5vw, 70px);
    overflow: hidden;
}

.dbt-home-atelierlicht .dbt-hero::after,
.dbt-home-atelierlicht .dbt-hero-copy::before {
    display: none;
}

.dbt-home-atelierlicht .dbt-hero-inner {
    position: relative;
    display: grid;
    max-width: 1280px !important;
    grid-template-columns: minmax(420px, 0.88fr) minmax(520px, 1.12fr);
    gap: clamp(48px, 6vw, 100px);
    align-items: center;
    margin: 0 auto;
}

.dbt-home-atelierlicht .dbt-hero-copy {
    max-width: 610px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--dbt-accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.dbt-home-atelierlicht .dbt-hero h1 {
    max-width: 13ch;
    color: var(--dbt-ink);
    font-size: clamp(3.55rem, 5.35vw, 5.8rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.98;
}

.dbt-home-atelierlicht .dbt-hero h1 em {
    /* Beginner note: only the chosen word is italic, while the heading keeps the same size and color. */
    color: inherit;
    font-family: inherit;
    font-style: italic;
    font-weight: inherit;
}

.dbt-home-atelierlicht .dbt-hero-copy > p:not(.eyebrow) {
    max-width: 35rem;
    margin-top: 28px;
    color: #665047;
    font-size: 1.04rem;
}

.dbt-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 26px;
    align-items: center;
    margin-top: 34px;
}

.dbt-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border: 1px solid var(--dbt-accent);
    border-radius: 2px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.dbt-button-primary {
    background: var(--dbt-accent);
    color: #fff9f0;
}

.dbt-button-outline {
    background: rgba(255, 250, 243, 0.46);
    color: var(--dbt-ink);
}

.dbt-button:hover {
    border-color: var(--dbt-accent-strong);
    background: var(--dbt-accent-strong);
    color: #fff9f0;
    transform: translateY(-1px);
}

.dbt-proof-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: clamp(42px, 5vw, 70px);
}

.dbt-feature {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.dbt-feature p {
    margin: 0;
    color: var(--dbt-muted);
    font-size: 0.78rem;
    line-height: 1.3;
}

.dbt-feature strong,
.dbt-feature span:not(.dbt-feature-icon) {
    display: block;
}

.dbt-feature strong {
    color: var(--dbt-ink);
    font-family: var(--dbt-heading-font);
    font-size: 0.92rem;
    font-weight: 600;
}

.dbt-feature-icon,
.dbt-care-icon {
    position: relative;
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #c6aa91;
    border-radius: 50%;
    color: #9c8068;
}

.dbt-feature-icon::before,
.dbt-feature-icon::after,
.dbt-care-icon::before,
.dbt-care-icon::after {
    content: "";
    position: absolute;
    border-color: currentColor;
}

.dbt-feature-personal .dbt-feature-icon::before {
    width: 9px;
    height: 9px;
    top: 7px;
    border: 1px solid;
    border-radius: 50%;
}

.dbt-feature-personal .dbt-feature-icon::after {
    width: 16px;
    height: 8px;
    bottom: 7px;
    border: 1px solid;
    border-top: 0;
    border-radius: 0 0 12px 12px;
}

.dbt-feature-payment .dbt-feature-icon::before {
    width: 14px;
    height: 15px;
    border: 1px solid;
    border-radius: 3px;
}

.dbt-feature-payment .dbt-feature-icon::after {
    width: 8px;
    height: 1px;
    background: currentColor;
}

.dbt-feature-made .dbt-feature-icon::before {
    width: 13px;
    height: 13px;
    border: 1px solid;
    border-radius: 50%;
}

.dbt-feature-made .dbt-feature-icon::after {
    width: 1px;
    height: 17px;
    background: currentColor;
}

.dbt-hero-visual {
    position: relative;
    min-height: clamp(390px, 38vw, 540px);
}

.dbt-paper-photo {
    position: relative;
    margin: 0;
    padding: 12px 12px 34px;
    border: 1px solid rgba(172, 139, 112, 0.44);
    background: #fffdf8;
    box-shadow: var(--dbt-shadow);
}

.dbt-paper-photo::before {
    /* Beginner note: this fake tape is only decoration; it makes the image look pinned to paper. */
    content: "";
    position: absolute;
    width: 118px;
    height: 34px;
    top: -18px;
    left: 50%;
    border: 1px solid rgba(178, 157, 131, 0.34);
    background: rgba(230, 213, 190, 0.58);
    transform: translateX(-50%) rotate(-3deg);
    clip-path: polygon(0 10%, 7% 0, 14% 10%, 21% 0, 28% 10%, 35% 0, 42% 10%, 49% 0, 56% 10%, 63% 0, 70% 10%, 77% 0, 84% 10%, 91% 0, 100% 10%, 100% 90%, 91% 100%, 84% 90%, 77% 100%, 70% 90%, 63% 100%, 56% 90%, 49% 100%, 42% 90%, 35% 100%, 28% 90%, 21% 100%, 14% 90%, 7% 100%, 0 90%);
}

.dbt-paper-photo img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.dbt-paper-photo figcaption {
    margin-top: 14px;
    color: #806a5c;
    font-family: "Segoe Print", "Bradley Hand ITC", var(--dbt-heading-font);
    font-size: 0.92rem;
    line-height: 1.35;
}

.dbt-hero-photo-main {
    width: min(600px, 78%);
    margin: 0 0 0 20px;
    transform: rotate(0.4deg);
}

.dbt-hero-photo-main img {
    aspect-ratio: 4 / 3;
}

.dbt-hero-photo-small {
    position: absolute;
    right: 0;
    bottom: 20px;
    z-index: 2;
    width: min(315px, 42%);
    transform: rotate(-4deg);
}

.dbt-hero-photo-small img {
    aspect-ratio: 1 / 1.08;
}

.dbt-story {
    padding: clamp(58px, 7vw, 86px) 24px;
    border-top: 1px solid rgba(172, 139, 112, 0.28) !important;
    border-bottom: 1px solid rgba(172, 139, 112, 0.28) !important;
    background: rgba(255, 250, 243, 0.72) !important;
    text-align: center;
}

.dbt-section-knot {
    width: 64px;
    height: 14px;
    margin: 0 auto 10px;
    border-top: 1px solid #c7a98f;
    border-bottom: 1px solid transparent;
}

.dbt-section-knot::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    margin: -5px auto 0;
    border: 1px solid #c7a98f;
    border-radius: 50%;
    background: var(--dbt-bg);
}

.dbt-story h2,
.dbt-memories h2,
.dbt-atelier h2,
.dbt-care h2,
.dbt-final-cta h2 {
    margin: 0;
    color: var(--dbt-ink);
    font-family: var(--dbt-heading-font);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 400;
    line-height: 1.12;
}

.dbt-story p:not(.eyebrow) {
    max-width: 760px;
    margin: 16px auto 0;
    color: var(--dbt-muted);
}

.dbt-process {
    padding: clamp(58px, 7vw, 90px) max(24px, calc((100vw - 1280px) / 2));
    background: rgba(250, 241, 231, 0.52) !important;
    text-align: center;
}

.dbt-process-grid {
    display: grid;
    max-width: 1180px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 5vw, 86px);
    margin: 22px auto 0;
    text-align: left;
}

.dbt-process-step {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.dbt-process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    width: clamp(28px, 3.5vw, 56px);
    height: 1px;
    top: 32px;
    right: calc(clamp(-62px, -3vw, -24px));
    background: #b99d86;
}

.dbt-process-step:not(:last-child)::before {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    top: 29px;
    right: calc(clamp(-62px, -3vw, -24px));
    border-top: 1px solid #b99d86;
    border-right: 1px solid #b99d86;
    transform: rotate(45deg);
}

.dbt-process-number {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--dbt-accent-strong);
    border-radius: 50%;
    color: var(--dbt-accent-strong);
    font-family: var(--dbt-heading-font);
    font-size: 1.15rem;
}

.dbt-process-copy h3,
.dbt-memory-card h3,
.dbt-care-item h3 {
    margin: 0 0 8px;
    color: var(--dbt-ink);
    font-family: var(--dbt-heading-font);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.2;
}

.dbt-process-copy p {
    margin: 0;
    color: var(--dbt-muted);
    font-size: 0.9rem;
}

.dbt-process-symbol {
    position: relative;
    display: block;
    width: 28px;
    height: 28px;
    margin-top: 20px;
    color: #a1846b;
}

.dbt-process-symbol::before,
.dbt-process-symbol::after {
    content: "";
    position: absolute;
    border-color: currentColor;
}

.dbt-symbol-calendar::before {
    width: 22px;
    height: 20px;
    border: 1px solid;
}

.dbt-symbol-calendar::after {
    width: 22px;
    height: 5px;
    top: 5px;
    border-top: 1px solid;
    border-bottom: 1px solid;
}

.dbt-symbol-door::before {
    width: 21px;
    height: 27px;
    border: 1px solid;
    border-radius: 11px 11px 0 0;
}

.dbt-symbol-door::after {
    width: 1px;
    height: 18px;
    left: 10px;
    bottom: 0;
    background: currentColor;
}

.dbt-symbol-gift::before {
    width: 24px;
    height: 18px;
    top: 7px;
    border: 1px solid;
}

.dbt-symbol-gift::after {
    width: 24px;
    height: 1px;
    top: 14px;
    background: currentColor;
    box-shadow: 11px -7px 0 -5px currentColor;
}

.dbt-memories {
    padding: clamp(58px, 7vw, 90px) max(24px, calc((100vw - 1180px) / 2));
    border-top: 1px solid rgba(172, 139, 112, 0.25) !important;
    background: rgba(255, 251, 246, 0.66) !important;
    text-align: center;
}

.dbt-memory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px;
    margin-top: 36px;
    text-align: left;
}

.dbt-memory-card {
    overflow: hidden;
    border: 1px solid rgba(172, 139, 112, 0.38);
    background: rgba(255, 251, 246, 0.92);
    box-shadow: 0 18px 48px rgba(76, 45, 34, 0.08);
}

.dbt-memory-card-media {
    margin: 0;
}

.dbt-memory-card-media img {
    display: block;
    width: 100%;
    aspect-ratio: 1.42 / 1;
    object-fit: cover;
}

.dbt-memory-card-copy {
    padding: 20px 24px 24px;
}

.dbt-memory-card p {
    margin: 0 0 18px;
    color: var(--dbt-muted);
    font-size: 0.92rem;
}

.dbt-memory-card a {
    color: var(--dbt-accent);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

.dbt-atelier {
    display: grid;
    grid-template-columns: minmax(320px, 0.8fr) minmax(460px, 1.2fr);
    gap: clamp(44px, 6vw, 92px);
    align-items: center;
    padding: clamp(70px, 8vw, 108px) max(24px, calc((100vw - 1180px) / 2));
    border-top: 1px solid rgba(172, 139, 112, 0.25) !important;
    background: rgba(250, 241, 231, 0.5) !important;
}

.dbt-atelier-copy {
    max-width: 460px;
}

.dbt-atelier-copy > p:not(.eyebrow) {
    margin: 22px 0 0;
    color: var(--dbt-muted);
}

.dbt-check-list {
    display: grid;
    gap: 11px;
    margin: 26px 0 30px;
    padding: 0;
    color: var(--dbt-muted);
    list-style: none;
}

.dbt-check-list li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.dbt-check-list span {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 1px solid #c0a186;
    border-radius: 50%;
}

.dbt-check-list span::before {
    content: "";
    width: 7px;
    height: 4px;
    border-bottom: 1px solid #9d7c61;
    border-left: 1px solid #9d7c61;
    transform: rotate(-45deg);
}

.dbt-atelier-visual {
    position: relative;
}

.dbt-atelier-photo {
    padding: 14px;
}

.dbt-atelier-photo img {
    aspect-ratio: 1.48 / 1;
}

.dbt-hand-note {
    position: absolute;
    right: -18px;
    bottom: -34px;
    width: min(290px, 48%);
    padding: 24px 28px;
    border: 1px solid rgba(172, 139, 112, 0.42);
    background: #fffaf1;
    box-shadow: 0 18px 42px rgba(76, 45, 34, 0.14);
    transform: rotate(-2deg);
}

.dbt-hand-note::before {
    content: "";
    position: absolute;
    width: 112px;
    height: 30px;
    top: -16px;
    left: 34px;
    background: rgba(230, 213, 190, 0.62);
    transform: rotate(5deg);
}

.dbt-hand-note p {
    margin: 0;
    color: #745c4e;
    font-family: "Segoe Print", "Bradley Hand ITC", var(--dbt-heading-font);
}

.dbt-care {
    padding: clamp(60px, 7vw, 92px) max(24px, calc((100vw - 1180px) / 2));
    background: rgba(255, 251, 246, 0.74) !important;
    text-align: center;
}

.dbt-care-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
    gap: clamp(36px, 6vw, 80px);
    align-items: center;
    margin-top: 34px;
    text-align: left;
}

.dbt-quote {
    margin: 0;
    padding: 34px 38px;
    background: #f6ead9;
    color: #6d584c;
    box-shadow: 0 16px 44px rgba(76, 45, 34, 0.08);
}

.dbt-quote p {
    position: relative;
    margin: 0 0 18px;
    padding-left: 34px;
    font-family: var(--dbt-heading-font);
    font-size: 1.06rem;
    font-style: italic;
}

.dbt-quote p::before {
    content: "“";
    position: absolute;
    top: -14px;
    left: 0;
    color: var(--dbt-ink);
    font-size: 3.4rem;
    line-height: 1;
}

.dbt-quote cite {
    display: block;
    color: #7a6255;
    font-size: 0.9rem;
    font-style: normal;
}

.dbt-care-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.dbt-care-item p {
    margin: 0;
    color: var(--dbt-muted);
    font-size: 0.9rem;
}

.dbt-care-icon {
    margin-bottom: 14px;
}

.dbt-care-personal .dbt-care-icon::before {
    width: 14px;
    height: 14px;
    border: 1px solid;
    border-radius: 50%;
}

.dbt-care-handmade .dbt-care-icon::before {
    width: 18px;
    height: 18px;
    border: 1px solid;
    border-radius: 50%;
}

.dbt-care-handmade .dbt-care-icon::after {
    width: 18px;
    height: 1px;
    background: currentColor;
    transform: rotate(-45deg);
}

.dbt-care-payment .dbt-care-icon::before {
    width: 16px;
    height: 17px;
    border: 1px solid;
    border-radius: 2px;
}

.dbt-care-payment .dbt-care-icon::after {
    width: 8px;
    height: 1px;
    background: currentColor;
}

.dbt-final-cta {
    min-height: 360px;
    padding: 0 max(24px, calc((100vw - 1280px) / 2));
    color: #fff7ed;
    background:
        linear-gradient(90deg, rgba(53, 34, 25, 0.06) 0 38%, rgba(69, 48, 37, 0.86) 54%, rgba(69, 48, 37, 0.9) 100%),
        url("../img/dierbaar-cta-hands.jpg") center / cover no-repeat;
}

.dbt-final-cta-inner {
    display: grid;
    min-height: 360px;
    max-width: 1280px;
    grid-template-columns: 1.05fr 0.9fr 0.58fr;
    gap: 48px;
    align-items: center;
    margin: 0 auto;
}

.dbt-final-cta h2 {
    color: #fff8ee;
    font-size: clamp(2.2rem, 4vw, 4.1rem);
}

.dbt-final-copy p {
    max-width: 520px;
    color: rgba(255, 247, 237, 0.86);
}

.dbt-final-note {
    max-width: 240px;
    margin: 0;
    color: rgba(255, 247, 237, 0.9);
    font-family: "Segoe Print", "Bradley Hand ITC", var(--dbt-heading-font);
    font-size: 1.08rem;
    transform: rotate(-4deg);
}

.site-footer {
    margin-top: 0;
    padding: 48px max(24px, calc((100vw - 1180px) / 2)) 0;
    border-top: 1px solid rgba(172, 139, 112, 0.34);
    background: rgba(255, 250, 243, 0.9);
    color: #594338;
}

.site-footer-inner {
    display: grid;
    width: 100%;
    max-width: 1180px;
    grid-template-columns: minmax(230px, 1.25fr) repeat(3, minmax(130px, 0.75fr)) minmax(190px, 0.8fr);
    gap: clamp(28px, 4vw, 60px);
    align-items: start;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--dbt-accent);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer p,
.site-footer address,
.site-footer a {
    color: #665047;
    font-size: 0.9rem;
    font-style: normal;
}

.site-footer a {
    display: block;
    text-decoration: none;
}

.dbt-footer-brand p {
    max-width: 250px;
    margin: 22px 0;
}

.dbt-socials {
    display: flex;
    gap: 14px;
}

.dbt-socials a {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(102, 80, 71, 0.28);
    border-radius: 50%;
    font-size: 0.68rem;
}

.dbt-footer-nav {
    display: grid;
    gap: 8px;
}

.dbt-footer-polaroid {
    position: relative;
    margin: -12px 0 0;
    padding: 10px 10px 28px;
    background: #fffdf8;
    box-shadow: 0 15px 34px rgba(76, 45, 34, 0.16);
    transform: rotate(1.8deg);
}

.dbt-footer-polaroid::before {
    content: "";
    position: absolute;
    width: 96px;
    height: 28px;
    top: -15px;
    left: 48px;
    background: rgba(230, 213, 190, 0.62);
    transform: rotate(-3deg);
}

.dbt-footer-polaroid img {
    display: block;
    width: 100%;
    aspect-ratio: 1.25 / 0.82;
    object-fit: cover;
}

.dbt-footer-polaroid figcaption {
    margin-top: 10px;
    color: #745c4e;
    font-family: "Segoe Print", "Bradley Hand ITC", var(--dbt-heading-font);
    font-size: 0.9rem;
}

.dbt-footer-bottom {
    display: flex;
    max-width: 1180px;
    gap: 18px;
    justify-content: center;
    margin: 40px auto 0;
    padding: 18px 0;
    border-top: 1px solid rgba(172, 139, 112, 0.28);
}

.dbt-footer-bottom p {
    margin: 0;
    color: #90776a;
    font-size: 0.82rem;
}

@media (max-width: 1100px) {
    .dbt-home-atelierlicht .dbt-hero-inner,
    .dbt-atelier,
    .dbt-care-grid,
    .dbt-final-cta-inner {
        grid-template-columns: 1fr;
    }

    .dbt-home-atelierlicht .dbt-hero h1 {
        max-width: 13ch;
        font-size: clamp(3.5rem, 8vw, 5.2rem);
    }

    .dbt-hero-visual {
        min-height: 520px;
    }

    .dbt-final-cta {
        background:
            linear-gradient(180deg, rgba(53, 34, 25, 0.3), rgba(69, 48, 37, 0.88)),
            url("../img/dierbaar-cta-hands.jpg") 26% center / cover no-repeat;
    }

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

@media (max-width: 900px) {
    .site-header {
        min-height: 64px;
        padding: 12px 72px 12px 18px;
    }

    .dbt-brand {
        font-size: clamp(1.16rem, 5vw, 1.42rem);
    }

    .dbt-brand-mark {
        width: 32px;
        height: 32px;
    }

    .dbt-home-atelierlicht .dbt-hero {
        padding: 44px 18px 54px;
    }

    .dbt-proof-strip,
    .dbt-process-grid,
    .dbt-memory-grid,
    .dbt-care-items {
        grid-template-columns: 1fr;
    }

    .dbt-process-step:not(:last-child)::before,
    .dbt-process-step:not(:last-child)::after {
        display: none;
    }

    .dbt-memory-grid {
        gap: 24px;
    }

    .dbt-atelier,
    .dbt-care,
    .dbt-memories,
    .dbt-process {
        padding-inline: 18px;
    }

    .dbt-hand-note {
        position: relative;
        right: auto;
        bottom: auto;
        width: auto;
        margin: -14px 18px 0 auto;
    }
}

@media (max-width: 620px) {
    .dbt-home-atelierlicht .dbt-hero-inner,
    .dbt-home-atelierlicht .dbt-hero-copy {
        min-width: 0;
        max-width: 100%;
    }

    .dbt-home-atelierlicht .dbt-hero h1 {
        max-width: 100%;
        font-size: clamp(2.35rem, 10.6vw, 3rem);
        line-height: 1.02;
        overflow-wrap: normal;
    }

    .dbt-home-actions,
    .dbt-button {
        width: 100%;
    }

    .dbt-hero-visual {
        min-height: 0;
    }

    .dbt-hero-photo-main,
    .dbt-hero-photo-small {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin: 0;
        transform: none;
    }

    .dbt-hero-photo-small {
        margin-top: 20px;
    }

    .dbt-story,
    .dbt-process,
    .dbt-memories,
    .dbt-atelier,
    .dbt-care {
        padding-block: 46px;
    }

    .dbt-paper-photo {
        padding: 10px 10px 26px;
    }

    .dbt-care-grid {
        gap: 26px;
    }

    .dbt-quote {
        padding: 28px 24px;
    }

    .dbt-final-cta {
        padding: 42px 18px;
    }

    .dbt-final-cta-inner {
        min-height: 0;
        gap: 28px;
    }

    .dbt-final-note {
        transform: none;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
    }

    .dbt-footer-bottom {
        flex-direction: column;
        align-items: center;
    }
}

/*
 * Subtle nostalgic paper discoloration.
 * Beginner note: these transparent gradients add a light yellowed-paper feeling without changing the real content.
 */

.dbt-home-atelierlicht {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 10% 8%, rgba(211, 172, 104, 0.09), transparent 34%),
        radial-gradient(ellipse at 90% 14%, rgba(196, 151, 83, 0.065), transparent 30%),
        radial-gradient(ellipse at 22% 54%, rgba(214, 178, 112, 0.06), transparent 36%),
        radial-gradient(ellipse at 86% 74%, rgba(191, 147, 85, 0.07), transparent 34%),
        linear-gradient(180deg, rgba(255, 249, 238, 0.8), rgba(247, 235, 219, 0.72));
}

.dbt-home-atelierlicht::before {
    /* Beginner note: this is a page-wide paper stain layer; pointer-events keeps it from blocking clicks. */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 14% 18%, rgba(154, 112, 64, 0.032), transparent 23%),
        radial-gradient(ellipse at 80% 31%, rgba(161, 121, 73, 0.03), transparent 25%),
        radial-gradient(ellipse at 8% 68%, rgba(153, 113, 69, 0.03), transparent 22%),
        radial-gradient(ellipse at 76% 90%, rgba(178, 132, 73, 0.034), transparent 24%);
    mix-blend-mode: multiply;
}

.dbt-home-atelierlicht > * {
    position: relative;
    z-index: 1;
}

.dbt-home-atelierlicht .dbt-hero {
    background:
        radial-gradient(ellipse at 7% 38%, rgba(205, 164, 96, 0.075), transparent 31%),
        radial-gradient(ellipse at 70% 28%, rgba(220, 185, 126, 0.055), transparent 34%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.5), rgba(250, 240, 226, 0.34));
    box-shadow: inset 0 -46px 70px rgba(174, 132, 78, 0.055);
}

.dbt-home-atelierlicht .dbt-story,
.dbt-home-atelierlicht .dbt-process,
.dbt-home-atelierlicht .dbt-memories,
.dbt-home-atelierlicht .dbt-atelier,
.dbt-home-atelierlicht .dbt-care {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 12% 30%, rgba(207, 166, 102, 0.075), transparent 36%),
        radial-gradient(ellipse at 88% 74%, rgba(201, 156, 91, 0.06), transparent 32%),
        linear-gradient(180deg, rgba(255, 250, 241, 0.77), rgba(248, 235, 218, 0.68)) !important;
    box-shadow:
        inset 0 34px 58px rgba(169, 127, 74, 0.055),
        inset 0 -34px 58px rgba(169, 127, 74, 0.052);
}

.dbt-home-atelierlicht .dbt-story::before,
.dbt-home-atelierlicht .dbt-process::before,
.dbt-home-atelierlicht .dbt-memories::before,
.dbt-home-atelierlicht .dbt-atelier::before,
.dbt-home-atelierlicht .dbt-care::before {
    /* Beginner note: the section stain is intentionally faint, so it reads as age instead of decoration. */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 18% 12%, rgba(129, 93, 53, 0.024), transparent 22%),
        radial-gradient(ellipse at 76% 24%, rgba(153, 109, 59, 0.022), transparent 24%),
        radial-gradient(ellipse at 44% 88%, rgba(163, 119, 70, 0.024), transparent 26%);
    mix-blend-mode: multiply;
}

.dbt-home-atelierlicht .dbt-story::after,
.dbt-home-atelierlicht .dbt-process::after,
.dbt-home-atelierlicht .dbt-memories::after,
.dbt-home-atelierlicht .dbt-atelier::after,
.dbt-home-atelierlicht .dbt-care::after {
    /* Beginner note: this makes the paper look a bit more yellow where one section meets the next. */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(176, 132, 74, 0.066), transparent 70px),
        linear-gradient(0deg, rgba(176, 132, 74, 0.062), transparent 66px);
}

.dbt-home-atelierlicht .dbt-story > *,
.dbt-home-atelierlicht .dbt-process > *,
.dbt-home-atelierlicht .dbt-memories > *,
.dbt-home-atelierlicht .dbt-atelier > *,
.dbt-home-atelierlicht .dbt-care > * {
    position: relative;
    z-index: 1;
}

.site-footer {
    background:
        radial-gradient(ellipse at 9% 22%, rgba(201, 160, 96, 0.075), transparent 32%),
        radial-gradient(ellipse at 85% 18%, rgba(190, 145, 82, 0.06), transparent 34%),
        linear-gradient(180deg, rgba(255, 249, 239, 0.93), rgba(246, 233, 216, 0.82));
    box-shadow: inset 0 34px 54px rgba(169, 127, 74, 0.052);
}

/*
 * Alternating paper tone.
 * Beginner note: this overrides the general paper layer so one section is aged and the next is mostly clean.
 */

.dbt-home-atelierlicht {
    background:
        linear-gradient(180deg, rgba(255, 250, 242, 0.84), rgba(247, 235, 219, 0.58));
}

.dbt-home-atelierlicht::before {
    display: none;
}

.dbt-home-atelierlicht .dbt-story,
.dbt-home-atelierlicht .dbt-process,
.dbt-home-atelierlicht .dbt-memories,
.dbt-home-atelierlicht .dbt-atelier,
.dbt-home-atelierlicht .dbt-care {
    background:
        linear-gradient(180deg, rgba(255, 251, 245, 0.82), rgba(250, 240, 226, 0.54)) !important;
    box-shadow: none;
}

.dbt-home-atelierlicht .dbt-story::before,
.dbt-home-atelierlicht .dbt-process::before,
.dbt-home-atelierlicht .dbt-memories::before,
.dbt-home-atelierlicht .dbt-atelier::before,
.dbt-home-atelierlicht .dbt-care::before {
    background: none;
}

.dbt-home-atelierlicht .dbt-story::after,
.dbt-home-atelierlicht .dbt-memories::after,
.dbt-home-atelierlicht .dbt-care::after {
    /* Beginner note: these cleaner sections only get yellowing at their top and bottom edges. */
    background:
        linear-gradient(180deg, rgba(175, 129, 70, 0.062), transparent 82px),
        linear-gradient(0deg, rgba(175, 129, 70, 0.058), transparent 78px);
}

.dbt-home-atelierlicht .dbt-hero {
    background:
        radial-gradient(ellipse at 7% 38%, rgba(205, 164, 96, 0.08), transparent 31%),
        radial-gradient(ellipse at 70% 28%, rgba(220, 185, 126, 0.058), transparent 34%),
        radial-gradient(ellipse at 92% 74%, rgba(190, 145, 82, 0.048), transparent 28%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.58), rgba(250, 240, 226, 0.42));
    box-shadow: inset 0 -46px 70px rgba(174, 132, 78, 0.055);
}

.dbt-home-atelierlicht .dbt-process,
.dbt-home-atelierlicht .dbt-atelier {
    background:
        radial-gradient(ellipse at 13% 24%, rgba(207, 166, 102, 0.08), transparent 36%),
        radial-gradient(ellipse at 82% 68%, rgba(201, 156, 91, 0.062), transparent 32%),
        linear-gradient(180deg, rgba(255, 250, 241, 0.78), rgba(248, 235, 218, 0.68)) !important;
    box-shadow:
        inset 0 34px 58px rgba(169, 127, 74, 0.052),
        inset 0 -34px 58px rgba(169, 127, 74, 0.05);
}

.dbt-home-atelierlicht .dbt-process::before,
.dbt-home-atelierlicht .dbt-atelier::before {
    /* Beginner note: these are the alternating aged sections, so they keep a soft inner paper stain. */
    background:
        radial-gradient(ellipse at 18% 12%, rgba(129, 93, 53, 0.025), transparent 22%),
        radial-gradient(ellipse at 76% 24%, rgba(153, 109, 59, 0.023), transparent 24%),
        radial-gradient(ellipse at 44% 88%, rgba(163, 119, 70, 0.025), transparent 26%);
}

.dbt-home-atelierlicht .dbt-process::after,
.dbt-home-atelierlicht .dbt-atelier::after {
    background:
        linear-gradient(180deg, rgba(176, 132, 74, 0.066), transparent 72px),
        linear-gradient(0deg, rgba(176, 132, 74, 0.062), transparent 68px);
}

.site-footer {
    background:
        linear-gradient(180deg, rgba(255, 250, 242, 0.92), rgba(247, 235, 219, 0.78));
    box-shadow: inset 0 28px 48px rgba(169, 127, 74, 0.048);
}
