/* ================================================================
   PERLA PAINT - PROFESSIONAL ART DIRECTION
   Final shared layer. The door experience keeps its own typography.
   ================================================================ */

:root {
    --art-paper: #f3f1ed;
    --art-paper-soft: #faf9f6;
    --art-ink: #201c1d;
    --art-muted: #68635f;
    --art-rule: rgba(56, 10, 20, 0.15);
    --art-wine: #3a0a14;
    --art-wine-deep: #24060d;
    --art-gold: #b3966d;
    --art-gutter: clamp(24px, 4.4vw, 72px);
    --art-section: clamp(76px, 8vw, 116px);
    --art-h1: clamp(42px, 4.6vw, 66px);
    --art-h2: clamp(30px, 3vw, 44px);
    --art-h3: clamp(20px, 1.7vw, 26px);
    --art-body: clamp(15px, 1.05vw, 17px);
}

html {
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    color: var(--art-ink);
    background: var(--art-paper);
    font-family: var(--font-body);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.page-title,
.section-title,
.home-section-title,
.project-card h2,
.form-head span {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: -0.035em;
}

.home-hero-title,
.door-caption strong,
.portal-world .section-title {
    font-family: var(--font-display);
}

p {
    text-wrap: pretty;
}

.container,
.container-wide {
    width: min(1380px, calc(100% - (var(--art-gutter) * 2)));
}

.container {
    max-width: 1220px;
}

/* Content is never allowed to depend on JavaScript for readability. */
main > section:not(.home-hero) .reveal,
.corp-reveal,
.service-reveal,
[data-motion-section] [data-motion-item] {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
}

.section-label,
.page-kicker,
.production-section-head > span,
.production-visual-head span,
.control-note > span,
.production-cta-inner > span {
    margin-bottom: 18px;
    color: var(--art-gold);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-label {
    gap: 12px;
}

.section-label::before {
    width: 24px;
    opacity: 0.75;
}

/* Header and commands */
.site-header {
    background: rgba(58, 10, 20, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: none;
}

.site-header.is-scrolled {
    color: var(--art-wine);
    background: rgba(250, 249, 246, 0.98);
    border-bottom-color: var(--art-rule);
    backdrop-filter: none;
}

.main-nav a {
    padding-inline: 11px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.btn {
    min-height: 50px;
    padding: 0 26px;
    border-radius: 10px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-gold {
    box-shadow: 0 10px 24px rgba(45, 10, 18, 0.11);
}

.btn-primary:hover,
.btn-gold:hover {
    box-shadow: 0 13px 30px rgba(45, 10, 18, 0.15);
}

.btn-gold:hover {
    color: #fff;
    background: var(--art-wine);
    border-color: var(--art-wine);
}

/* Shared page canvas */
.corporate-page,
.services-page,
.production-page,
.projects-page,
.contact-page,
.project-detail-page,
.corp-profile,
.corp-facts,
.corp-method,
.corp-policy,
.services-palette-section,
.services-application-board,
.production-flow,
.production-control,
.projects-cover,
.projects-portfolio,
.contact-hero,
.contact-flow,
.project-detail-content,
.project-gallery {
    background-color: var(--art-paper) !important;
    background-image: none !important;
}

.corp-cover,
.services-cover,
.production-hero,
.project-detail-hero,
.home-services-editorial,
.home-quiet-cta,
.services-surface-lab,
.services-final,
.corp-atelier,
.corp-final,
.production-visual-process {
    background-color: var(--art-wine) !important;
    background-image: none !important;
}

.corp-cover h1,
.services-cover h1,
.production-hero h1,
.project-detail-hero h1,
.projects-heading h1,
.contact-panel h1 {
    font-size: var(--art-h1) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.045em !important;
}

.home-section-title,
.corp-atelier-copy h2,
.corp-policy-head h2,
.corp-final-inner h2,
.service-selected-card h2,
.application-board-title h2,
.surface-lab-copy h2,
.services-final h2,
.production-section-head h2,
.production-visual-head h2,
.control-note h2,
.production-cta-inner h2,
.project-gallery-head h2 {
    font-size: var(--art-h2) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.035em !important;
}

.corp-cover-text p,
.corp-paper p,
.corp-atelier-copy p,
.services-cover-text p,
.selected-card-main p,
.application-board-title p,
.surface-lab-copy > p,
.production-hero-copy p,
.production-section-head p,
.production-visual-head p,
.control-note p,
.project-detail-hero p,
.projects-heading p,
.contact-panel p {
    font-size: var(--art-body) !important;
    line-height: 1.78 !important;
}

/* Images: calm fixed ratios and no layout shifts */
.materials-visual figure,
.selected-card-media,
.surface-lab-art,
.atelier-frame,
.production-recipe,
.production-process-media figure,
.contact-image,
.project-card-visual,
.project-detail-visual,
.gallery-tile {
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: none;
}

.materials-visual img,
.selected-card-media img,
.surface-lab-art img,
.atelier-frame img,
.production-recipe img,
.production-process-media img,
.contact-image img,
.project-card-visual img,
.project-detail-visual img,
.gallery-tile img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover img,
.service-selected-card:hover img,
.materials-visual figure:hover img {
    transform: scale(1.012);
}

/* Home after the door */
.home-materials,
.home-method {
    padding-block: var(--art-section);
    background: var(--art-paper-soft);
}

.home-materials::before,
.home-materials::after,
.home-method::before,
.home-services-editorial::before,
.home-quiet-cta::before,
.home-quiet-cta::after {
    content: none !important;
}

.materials-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
    gap: clamp(54px, 7vw, 104px);
}

.materials-visual {
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.68fr);
    gap: 12px;
    min-height: clamp(500px, 48vw, 660px);
}

.materials-visual figure::after {
    height: 28%;
    background: linear-gradient(to top, rgba(26, 8, 13, 0.6), transparent);
}

.materials-content p,
.quiet-cta-inner p {
    color: var(--art-muted);
    font-size: var(--art-body);
    line-height: 1.8;
}

.materials-list {
    margin-top: 32px;
    border-top: 1px solid var(--art-rule);
}

.materials-list div {
    grid-template-columns: 130px 1fr;
    padding: 20px 0;
    border-bottom: 1px solid var(--art-rule);
}

.materials-list strong {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}

.home-section-head {
    display: block;
    max-width: 760px;
    margin-bottom: 46px;
}

.home-method .home-section-title {
    max-width: 720px;
}

.method-rows {
    border-top: 1px solid var(--art-rule);
}

.method-row {
    grid-template-columns: 120px minmax(240px, 0.72fr) minmax(0, 1fr);
    gap: clamp(26px, 4vw, 58px);
    padding: 28px 0;
    border-bottom: 1px solid var(--art-rule);
}

.method-row strong {
    font-family: var(--font-body);
    font-size: var(--art-h3);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.home-services-editorial {
    padding-block: var(--art-section);
}

.services-editorial-grid {
    grid-template-columns: minmax(260px, 0.46fr) minmax(0, 1fr);
    gap: clamp(52px, 8vw, 120px);
}

.service-editorial-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.14);
}

.service-editorial-item {
    display: block;
    padding: 0 22px 26px;
    border: 0;
    background: var(--art-wine);
}

.service-editorial-item figure {
    width: calc(100% + 44px);
    aspect-ratio: 4 / 3;
    margin: 0 -22px 24px;
    overflow: hidden;
}

.service-editorial-item strong {
    display: block;
    margin-bottom: 12px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.service-editorial-item p {
    color: rgba(255, 255, 255, 0.67);
    font-size: 14px;
}

.home-quiet-cta {
    padding-block: 0;
    overflow: hidden;
}

.quiet-cta-inner {
    display: grid;
    grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1fr);
    max-width: none;
    height: clamp(500px, 36vw, 590px);
}

.home-quiet-cta .home-section-title {
    max-width: 620px;
    font-size: var(--art-h2) !important;
}

.quiet-cta-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(68px, 7vw, 100px) clamp(44px, 6vw, 92px) clamp(68px, 7vw, 100px) 0;
}

.quiet-cta-copy .section-label {
    color: var(--art-gold);
}

.quiet-cta-copy p {
    max-width: 50ch;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.72);
}

.quiet-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.home-quiet-cta .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.38);
}

.home-quiet-cta .btn-outline:hover {
    color: var(--art-wine);
    border-color: #fff;
    background: #fff;
}

.quiet-cta-visual {
    position: relative;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.quiet-cta-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(36, 6, 13, 0.24), transparent 42%);
    pointer-events: none;
}

.quiet-cta-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.quiet-cta-visual figcaption {
    position: absolute;
    right: 28px;
    bottom: 24px;
    z-index: 1;
    display: flex;
    gap: 18px;
    padding: 12px 16px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(36, 6, 13, 0.62);
    backdrop-filter: blur(8px);
}

.quiet-cta-visual figcaption span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Corporate */
.corp-profile,
.corp-atelier,
.corp-method,
.corp-policy {
    padding-block: var(--art-section);
}

.corp-facts,
.corp-statement,
.corp-final {
    padding-block: clamp(68px, 7vw, 94px);
}

.corp-cover-card,
.corp-paper,
.policy-card,
.statement-box {
    border-radius: 0;
    box-shadow: none;
}

.corp-cover-card {
    padding: 4px 0 4px 22px;
    border: 0;
    border-left: 1px solid rgba(216, 197, 168, 0.56);
    background: transparent;
}

.corp-paper {
    padding: 0;
    border: 0;
    background: transparent;
}

.corp-atelier {
    background: var(--art-wine);
}

.corp-atelier-visual {
    transform: none;
}

.atelier-frame,
.atelier-frame img {
    min-height: 0;
    aspect-ratio: 4 / 5;
}

.policy-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--art-rule);
}

.policy-card {
    min-height: 0;
    padding: 30px 30px 32px 0;
    border: 0;
    border-bottom: 1px solid var(--art-rule);
    background: transparent !important;
}

.policy-card + .policy-card {
    padding-left: 30px;
    border-left: 1px solid var(--art-rule);
}

.policy-card::before {
    content: none;
}

/* Services */
.services-palette-section,
.services-application-board,
.services-surface-lab {
    padding-block: var(--art-section);
}

.services-palette-grid {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: clamp(48px, 7vw, 96px);
}

.services-palette-menu {
    top: calc(var(--header-height) + 26px) !important;
    padding: 30px 26px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    color: #fff;
    background: var(--art-wine) !important;
    box-shadow: none;
}

.services-palette-menu::before,
.services-palette-menu::after,
.palette-swatches,
.palette-menu-swatches {
    display: none;
}

.services-palette-menu nav a {
    padding-block: 15px;
    border-top-color: rgba(255, 255, 255, 0.14);
}

.service-selected-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
    gap: 34px 42px;
    padding: 0 0 56px;
    border: 0;
    border-bottom: 1px solid var(--art-rule);
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
}

.service-selected-card + .service-selected-card {
    margin-top: 56px;
}

.selected-card-media,
.selected-card-media img {
    min-height: 0;
    aspect-ratio: 4 / 3;
}

.selected-card-main {
    align-self: center;
}

.selected-card-main > span {
    color: var(--art-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.selected-card-notes {
    grid-column: 2;
    display: flex;
    gap: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--art-rule);
}

.selected-card-notes span {
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    color: var(--art-muted);
    font-size: 12px;
}

.application-board-grid {
    grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
    gap: clamp(56px, 8vw, 110px);
    align-items: start;
}

.application-board-title {
    position: sticky;
    top: calc(var(--header-height) + 34px);
}

.application-line,
.application-board article::before {
    display: none;
}

.application-board {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding-left: 0 !important;
    border-top: 1px solid var(--art-rule);
}

.application-board article {
    display: grid;
    grid-template-columns: minmax(170px, 0.38fr) minmax(0, 1fr);
    gap: 28px;
    width: 100%;
    min-height: 0 !important;
    padding: 25px 0;
    border-bottom: 1px solid var(--art-rule);
}

.application-board article strong {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.surface-lab-grid {
    grid-template-columns: minmax(360px, 0.96fr) minmax(0, 0.84fr);
    gap: clamp(54px, 6vw, 88px);
    align-items: center;
}

.surface-lab-art {
    width: 100%;
    height: auto;
    min-height: 0 !important;
    aspect-ratio: 4 / 3;
    transform: none !important;
}

.surface-lab-art img {
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    object-fit: cover;
}

.surface-lab-copy {
    min-width: 0;
}

.surface-lab-list > div {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.services-final-inner,
.corp-final-inner,
.production-cta-inner {
    padding: 0;
    border: 0;
    background: transparent !important;
    box-shadow: none;
}

/* Production */
.production-hero {
    padding-top: calc(var(--header-height) + 72px);
    padding-bottom: 76px;
}

.production-recipe {
    min-height: 0;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #251015;
}

.production-recipe::before,
.recipe-surface {
    display: none;
}

.recipe-card {
    left: 22px;
    right: 22px;
    bottom: 22px;
    padding: 18px 20px;
    background: rgba(250, 249, 246, 0.94);
}

.recipe-card strong {
    font-family: var(--font-body);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.production-flow,
.production-control,
.production-visual-process {
    padding-block: var(--art-section);
}

.production-section-head,
.production-visual-head {
    grid-template-columns: minmax(0, 0.75fr) minmax(300px, 0.42fr);
    align-items: end;
    margin-bottom: 42px;
}

.production-steps {
    border: 0;
    border-top: 1px solid var(--art-rule);
}

.production-step {
    min-height: 0;
    padding: 26px 24px 30px 0;
    border: 0;
    border-bottom: 1px solid var(--art-rule);
    background: transparent;
}

.production-step + .production-step {
    padding-left: 24px;
    border-left: 1px solid var(--art-rule);
}

.production-step h3 {
    font-size: 18px;
    font-weight: 600;
}

.production-visual-process {
    color: #fff;
}

.production-process-media {
    grid-template-columns: minmax(0, 1.52fr) minmax(260px, 0.62fr);
    min-height: clamp(460px, 50vw, 650px);
    gap: 12px;
}

.production-process-notes {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.production-process-notes li {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 26px 28px 0 0;
    border-right-color: rgba(255, 255, 255, 0.16);
}

.production-process-notes li + li {
    padding-left: 28px;
}

.production-process-notes p {
    color: rgba(255, 255, 255, 0.68);
}

.production-control-grid {
    grid-template-columns: minmax(300px, 0.65fr) minmax(0, 1fr);
    gap: clamp(48px, 7vw, 96px);
}

.control-note {
    padding: 34px 0 0;
    color: var(--art-wine);
    border-top: 1px solid var(--art-rule);
    background: transparent !important;
}

.control-note h2 {
    color: var(--art-wine);
}

.control-note p {
    color: var(--art-muted);
}

.control-cards {
    gap: 0;
}

.control-cards div {
    padding: 27px 26px 30px 0;
    border: 0;
    border-top: 1px solid var(--art-rule);
    background: transparent;
}

.control-cards div:nth-child(even) {
    padding-left: 26px;
    border-left: 1px solid var(--art-rule);
}

.production-cta {
    padding-block: clamp(72px, 8vw, 104px);
    color: #fff;
    background: var(--art-wine);
}

/* Projects */
.projects-cover {
    padding-top: calc(var(--header-height) + 62px);
    padding-bottom: 46px;
}

.projects-cover-grid {
    align-items: end;
}

.project-filters {
    gap: 26px;
    padding: 0;
    border: 0;
    background: transparent;
}

.project-filters button {
    min-height: 38px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    color: var(--art-muted);
    background: transparent;
    font-size: 13px;
}

.project-filters button.is-active {
    color: var(--art-wine);
    border-bottom-color: var(--art-gold);
    background: transparent;
}

.projects-portfolio {
    padding: 32px 0 var(--art-section);
}

.project-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 68px 32px;
}

.project-card {
    min-height: 0;
    border: 0;
    border-radius: 0;
    color: var(--art-ink);
    background: transparent;
    box-shadow: none;
}

.project-card-visual {
    min-height: 0;
    aspect-ratio: 16 / 10;
}

.project-card-chip {
    left: 16px;
    top: 16px;
    padding: 8px 10px;
    border-radius: 0;
    background: rgba(250, 249, 246, 0.93);
}

.project-card-body {
    padding: 22px 0 0;
}

.project-card-body h2 {
    font-size: var(--art-h3);
}

.project-card-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--art-rule);
}

.project-card-footer i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Project detail */
.project-detail-hero {
    padding-top: calc(var(--header-height) + 66px);
    padding-bottom: 68px;
}

.project-detail-hero-grid {
    align-items: center;
}

.project-detail-visual {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
}

.project-detail-tags span,
.gallery-tile figcaption,
.gallery-tile > span {
    border-radius: 0;
}

.project-detail-layout,
.project-gallery-head {
    gap: clamp(44px, 7vw, 90px);
}

.project-side {
    padding: 4px 0 4px 28px;
    border-left: 1px solid var(--art-rule);
    background: transparent;
}

.project-gallery-grid {
    gap: 12px;
}

.gallery-tile {
    border: 0;
}

/* Contact */
.contact-hero {
    padding-top: calc(var(--header-height) + 64px);
    padding-bottom: 72px;
}

.contact-hero-grid {
    grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.contact-side {
    grid-template-rows: auto auto;
}

.contact-image {
    aspect-ratio: 4 / 3;
}

.contact-image img {
    min-height: 0;
}

.contact-panel {
    min-height: 0;
    padding: 36px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: var(--art-wine) !important;
    box-shadow: none;
}

.contact-form {
    align-self: start;
    padding: 38px;
    border: 1px solid var(--art-rule);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.36);
    box-shadow: none;
}

.form-head {
    display: grid;
    grid-template-columns: minmax(190px, 0.62fr) minmax(240px, 1fr);
    gap: 28px;
    align-items: start;
    padding-bottom: 26px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--art-rule);
}

.form-head span {
    white-space: nowrap;
    font-size: clamp(28px, 2.35vw, 36px);
    line-height: 1.08;
}

.form-head p {
    max-width: 34ch;
    margin: 2px 0 0;
    color: var(--art-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    border-radius: 10px;
    border-color: var(--art-rule);
    background-color: rgba(255, 255, 255, 0.42);
}

.contact-flow-grid > div {
    padding: 28px 30px 30px 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* Footer */
.site-footer {
    color: #fff;
    background: var(--art-wine-deep);
}

.site-footer::before,
.site-footer::after {
    content: none;
}

.footer-shell {
    padding-top: clamp(58px, 6vw, 82px);
}

.footer-columns {
    padding-bottom: clamp(48px, 5vw, 68px);
}

.footer-reach {
    padding: 2px 0 2px 24px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 1100px) {
    .service-editorial-list {
        grid-template-columns: 1fr;
    }

    .service-editorial-item {
        display: grid;
        grid-template-columns: 190px minmax(180px, 0.55fr) minmax(0, 1fr);
        gap: 24px;
        align-items: center;
        padding: 0 24px 0 0;
    }

    .service-editorial-item figure {
        width: 190px;
        margin: 0;
    }

    .services-palette-grid,
    .application-board-grid,
    .surface-lab-grid,
    .production-control-grid {
        grid-template-columns: 1fr;
    }

    .services-palette-menu {
        position: relative !important;
        top: auto !important;
    }

    .application-board-title {
        position: relative;
        top: auto;
    }

    .services-palette-menu nav {
        display: flex;
        gap: 24px;
        overflow-x: auto;
    }

    .services-palette-menu nav a {
        flex: 0 0 auto;
        border-top: 0;
    }
}

@media (max-width: 820px) {
    :root {
        --art-gutter: 18px;
        --art-section: 72px;
        --art-h1: clamp(34px, 10.5vw, 46px);
        --art-h2: clamp(27px, 7.8vw, 36px);
    }

    .materials-grid,
    .home-section-head,
    .services-editorial-grid,
    .corp-atelier-grid,
    .production-hero-grid,
    .production-section-head,
    .production-visual-head,
    .project-detail-hero-grid,
    .project-detail-layout,
    .project-gallery-head,
    .contact-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 38px;
    }

    .quiet-cta-inner {
        grid-template-columns: 1fr;
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .quiet-cta-copy {
        padding: 60px var(--art-gutter) 68px;
    }

    .quiet-cta-visual {
        order: -1;
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .quiet-cta-visual figcaption {
        right: var(--art-gutter);
        bottom: var(--art-gutter);
    }

    .materials-visual {
        grid-template-columns: minmax(0, 1.3fr) minmax(120px, 0.7fr);
        min-height: 430px;
    }

    .method-row {
        grid-template-columns: 88px 1fr;
        gap: 12px 22px;
    }

    .method-row p {
        grid-column: 2;
    }

    .policy-list,
    .production-steps,
    .production-process-notes,
    .project-card-grid {
        grid-template-columns: 1fr;
    }

    .policy-card + .policy-card,
    .production-step + .production-step,
    .production-process-notes li + li {
        padding-left: 0;
        border-left: 0;
    }

    .service-selected-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .selected-card-notes {
        grid-column: 1;
        flex-wrap: wrap;
    }

    .production-process-media {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .production-process-media figure {
        aspect-ratio: 4 / 3;
    }

    .production-process-notes li {
        padding-bottom: 26px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .project-card-grid {
        gap: 48px;
    }

    .project-card-visual {
        aspect-ratio: 4 / 3;
    }

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

    .project-side {
        padding: 24px 0 0;
        border-left: 0;
        border-top: 1px solid var(--art-rule);
    }

    .footer-reach {
        padding: 22px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }
}

@media (max-width: 560px) {
    .btn {
        min-height: 46px;
    }

    .mobile-nav a {
        font-family: var(--font-body);
        font-size: clamp(24px, 7vw, 30px);
        font-weight: 600;
        letter-spacing: -0.02em;
    }

    .materials-visual {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .materials-visual-main {
        aspect-ratio: 4 / 3;
    }

    .materials-visual-detail {
        aspect-ratio: 4 / 5;
    }

    .materials-list div,
    .method-row,
    .application-board article {
        grid-template-columns: 1fr;
    }

    .method-row p {
        grid-column: 1;
    }

    .service-editorial-item {
        display: block;
        padding: 0 20px 24px;
    }

    .service-editorial-item figure {
        width: calc(100% + 40px);
        margin: 0 -20px 22px;
    }

    .services-palette-menu {
        padding: 26px 22px;
    }

    .services-palette-menu nav {
        display: grid;
        gap: 0;
        overflow: visible;
    }

    .services-palette-menu nav a {
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .selected-card-media,
    .selected-card-media img {
        aspect-ratio: 4 / 3;
    }

    .project-filters {
        gap: 20px;
        overflow-x: auto;
    }

    .contact-panel,
    .contact-form {
        padding: 26px;
    }

    .form-head {
        display: block;
    }

    .form-head p {
        margin-top: 10px;
    }
}

/* Shared applications navigation */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.main-nav .nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-chevron {
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    transition: transform 180ms ease;
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron {
    transform: translateY(3px) rotate(225deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    z-index: 20;
    display: grid;
    min-width: 170px;
    padding: 8px;
    color: var(--art-wine);
    background: rgba(250, 249, 246, 0.99);
    border: 1px solid var(--art-rule);
    box-shadow: 0 18px 44px rgba(28, 5, 10, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.main-nav .nav-dropdown-menu a {
    padding: 11px 13px;
    font-size: 11px;
    opacity: 0.72;
}

.main-nav .nav-dropdown-menu a::after {
    content: none;
}

.main-nav .nav-dropdown-menu a:hover,
.main-nav .nav-dropdown-menu a.is-active {
    color: var(--art-wine);
    background: rgba(74, 16, 29, 0.06);
    opacity: 1;
}

.mobile-nav-group {
    display: grid;
}

.mobile-subnav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid rgba(234, 233, 229, 0.12);
}

.mobile-nav .mobile-subnav a {
    counter-increment: none;
    min-height: 42px;
    padding: 10px 0 12px 44px !important;
    border: 0;
    color: rgba(234, 233, 229, 0.66);
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.12em !important;
}

.mobile-nav .mobile-subnav a::before,
.mobile-nav .mobile-subnav a::after {
    content: none;
}

.mobile-nav .mobile-subnav a:hover,
.mobile-nav .mobile-subnav a.is-active {
    color: var(--perla-gold-light);
}

@media (max-width: 1240px) {
    .main-nav a {
        padding-inline: 8px;
        font-size: 11px;
    }

    .header-inner {
        gap: 18px;
    }
}

@media (max-width: 560px) {
    .mobile-nav .mobile-subnav a {
        padding-left: 38px !important;
        font-size: 11px !important;
    }
}

/* Shared soft geometry: restrained radii and comfortable control spacing. */
.header-offer {
    padding-inline: 22px !important;
    border-radius: 10px !important;
}

.nav-dropdown-menu,
.footer-reach,
.service-card,
.project-card,
.projects-coming-media,
.applications-bridge-inner,
.services-palette-menu,
.texture-studio,
.contact-panel,
.contact-map,
.contact-form,
.recipe-card,
.control-cards > div {
    border-radius: 14px !important;
}

.service-card,
.projects-coming-media,
.texture-studio,
.contact-panel,
.contact-map,
.contact-form {
    box-shadow: 0 20px 56px rgba(45, 10, 18, 0.075) !important;
}

.materials-visual figure,
.selected-card-media,
.surface-lab-art,
.atelier-frame,
.production-recipe,
.production-process-media figure,
.contact-image,
.project-card-visual,
.project-detail-visual,
.gallery-tile,
.corp-cover-photo,
.corp-profile-image,
.corp-method-image,
.corp-statement-image,
.application-choice > img,
.surface-page-hero-media,
.surface-catalogue-sample,
.service-editorial-item figure,
.texture-hero-media,
.texture-consultation figure {
    overflow: hidden;
    border-radius: 12px !important;
}

.form-control,
.contact-form input,
.contact-form select,
.contact-form textarea,
.main-nav .nav-dropdown-menu a,
.texture-sample-image,
.texture-detail-swatch,
.project-card-chip,
.project-detail-tags span,
.gallery-tile figcaption,
.gallery-tile > span,
.selected-card-notes span {
    border-radius: 10px !important;
}

.form-control,
.contact-form input,
.contact-form select,
.contact-form textarea {
    padding-inline: 18px;
}

.nav-dropdown-menu {
    padding: 10px;
}

.main-nav .nav-dropdown-menu a {
    padding: 12px 14px;
}

.contact-panel {
    padding: clamp(34px, 3vw, 44px) !important;
}

.contact-map-head {
    padding: clamp(28px, 2.5vw, 38px) !important;
}

.texture-library {
    padding: clamp(24px, 2vw, 30px);
}

.projects-coming-media,
.application-choice > img,
.surface-page-hero-media,
.corp-cover-photo,
.corp-profile-image {
    box-shadow: 0 18px 48px rgba(45, 10, 18, 0.07);
}

@media (max-width: 860px) {
    .btn {
        min-height: 48px;
        padding-inline: 22px;
    }

    .service-selected-card {
        border-radius: 14px !important;
    }

    .contact-panel,
    .contact-form,
    .contact-map-head {
        padding: 26px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}
