:root {
    --black: #080807;
    --charcoal: #151515;
    --charcoal-2: #20201e;
    --stone: #e7dfd0;
    --paper: #f6f1e7;
    --warm-paper: #fbf8f0;
    --muted: rgba(255, 255, 255, .66);
    --muted-light: #bfb7a8;
    --gold: #d4a43d;
    --gold-2: #f2cf78;
    --gold-dark: #8c641e;
    --line: rgba(255, 255, 255, .14);
    --line-dark: rgba(255, 255, 255, .13);
    --warn: #a33b2f;
    --white: #ffffff;
    --shadow: 0 20px 50px rgba(13, 12, 10, .16);
    --shadow-strong: 0 28px 70px rgba(0, 0, 0, .28);
    --body-text: rgba(255, 255, 255, .88);
    --body-bg:
        linear-gradient(90deg, rgba(8, 8, 7, .96), rgba(8, 8, 7, .86)),
        linear-gradient(0deg, rgba(0, 0, 0, .38), transparent 36rem),
        url("../images/profitrem-hero.101d32bbcb86.png") center top / cover fixed;
    --header-bg: rgba(8, 8, 7, .88);
    --header-border: rgba(255, 255, 255, .08);
    --header-text: var(--white);
    --nav-text: rgba(255, 255, 255, .76);
    --text-strong: var(--white);
    --text-soft: rgba(255, 255, 255, .7);
    --surface-bg: rgba(18, 18, 17, .82);
    --surface-bg-strong: rgba(25, 24, 22, .94);
    --surface-border: rgba(255, 255, 255, .13);
    --input-bg: rgba(255, 255, 255, .075);
    --input-text: rgba(255, 255, 255, .9);
    --input-border: rgba(255, 255, 255, .18);
    --input-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    --table-row-hover: rgba(212, 164, 61, .1);
    --chip-text: var(--gold-2);
    --chip-bg: rgba(212, 164, 61, .13);
    --hero-bg: var(--black);
    --hero-image-opacity: .48;
    --hero-overlay:
        linear-gradient(90deg, rgba(8, 8, 7, .92), rgba(8, 8, 7, .6) 46%, rgba(8, 8, 7, .22)),
        linear-gradient(0deg, rgba(8, 8, 7, .85), transparent 48%);
    --hero-copy: rgba(255, 255, 255, .78);
    --hero-panel-bg: linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045));
    --hero-panel-border: var(--line-dark);
    --hero-panel-text: var(--white);
    --hero-heading: var(--white);
    --card-bg: var(--surface-bg);
    --form-bg: var(--surface-bg-strong);
    --table-bg: rgba(16, 16, 15, .92);
    --secondary-button-text: var(--white);
    --secondary-button-bg: rgba(255, 255, 255, .08);
    --secondary-button-border: rgba(255, 255, 255, .24);
}

:root[data-theme="dark"] {
    color-scheme: dark;
}

:root[data-theme="light"] {
    color-scheme: light;
    --body-text: #211f1c;
    --muted: #736d62;
    --body-bg:
        linear-gradient(90deg, rgba(248, 243, 232, .92), rgba(248, 243, 232, .76)),
        linear-gradient(0deg, rgba(255, 255, 255, .48), rgba(255, 255, 255, .12)),
        url("../images/profitrem-hero.101d32bbcb86.png") center top / cover fixed;
    --header-bg: rgba(246, 241, 231, .86);
    --header-border: rgba(27, 24, 20, .1);
    --header-text: #1b1814;
    --nav-text: rgba(27, 24, 20, .7);
    --text-strong: #171512;
    --text-soft: #5f584d;
    --surface-bg: rgba(255, 255, 255, .72);
    --surface-bg-strong: rgba(255, 255, 255, .86);
    --surface-border: rgba(27, 24, 20, .13);
    --input-bg: rgba(255, 255, 255, .92);
    --input-text: var(--charcoal);
    --input-border: rgba(25, 23, 20, .18);
    --input-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
    --table-row-hover: rgba(212, 164, 61, .08);
    --chip-text: var(--gold-dark);
    --chip-bg: rgba(212, 164, 61, .12);
    --hero-bg: #eee6d9;
    --hero-image-opacity: .22;
    --hero-overlay:
        linear-gradient(90deg, rgba(246, 241, 231, .94), rgba(246, 241, 231, .78) 48%, rgba(246, 241, 231, .54)),
        linear-gradient(0deg, rgba(246, 241, 231, .96), transparent 60%);
    --hero-copy: #514b42;
    --hero-panel-bg: linear-gradient(145deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .48));
    --hero-panel-border: rgba(27, 24, 20, .13);
    --hero-panel-text: #211f1c;
    --hero-heading: #171512;
    --card-bg: var(--surface-bg);
    --form-bg: var(--surface-bg-strong);
    --table-bg: rgba(255, 255, 255, .82);
    --secondary-button-text: #211f1c;
    --secondary-button-bg: rgba(255, 255, 255, .52);
    --secondary-button-border: rgba(27, 24, 20, .16);
    --shadow: 0 22px 50px rgba(54, 43, 24, .13);
    --shadow-strong: 0 26px 70px rgba(54, 43, 24, .2);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--body-text);
    background: var(--body-bg);
    font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.62;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image:
        linear-gradient(120deg, rgba(255, 255, 255, .35), transparent 28%),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, .025) 0 1px, transparent 1px 5px);
    mix-blend-mode: multiply;
}

:root[data-theme="light"] body::before {
    opacity: .22;
    background-image:
        linear-gradient(120deg, rgba(255, 255, 255, .28), transparent 30%),
        url("../images/profitrem-logo-header.f00b48f980b2.png"),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, .024) 0 1px, transparent 1px 5px);
    background-repeat: no-repeat, no-repeat, repeat;
    background-position: left top, right 8vw top 160px, left top;
    background-size: auto, min(42vw, 520px), auto;
    mix-blend-mode: multiply;
}

a {
    color: inherit;
}

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

button,
a,
input,
select,
textarea {
    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}

:focus-visible {
    outline: 3px solid rgba(212, 164, 61, .45);
    outline-offset: 3px;
}

.site-header,
.site-footer,
.section,
.page-header,
.hero,
.toolbar,
.form-layout,
.metric-grid,
.detail-layout,
.article-layout,
.article-body {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0;
    border-bottom: 1px solid var(--header-border);
    color: var(--header-text);
}

.site-header::before {
    content: "";
    position: fixed;
    inset: 0 0 auto 0;
    height: 82px;
    z-index: -1;
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

.brand,
.main-nav,
.header-actions,
.hero-actions,
.toolbar,
.table-actions,
.admin-actions,
.tag-row,
.quick-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.brand {
    font-weight: 800;
    text-decoration: none;
}

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

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--line-dark), 0 12px 28px rgba(212, 164, 61, .25);
}

.brand-text {
    display: grid;
    line-height: 1.05;
}

.brand-text strong {
    font-size: 1.16rem;
    letter-spacing: 0;
}

.brand-text small {
    color: var(--gold-2);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.main-nav a,
.admin-link,
.link-button {
    position: relative;
    color: var(--nav-text);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 700;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--gold), var(--gold-2));
    transition: transform .2s ease;
}

.account-chip {
    align-items: center;
    border: 1px solid var(--header-border);
    border-radius: 999px;
    color: var(--header-text);
    display: inline-flex;
    font-size: .82rem;
    font-weight: 800;
    gap: 8px;
    max-width: 190px;
    min-height: 38px;
    padding: 4px 10px 4px 4px;
    text-decoration: none;
}

.account-chip span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-chip:hover {
    border-color: rgba(212, 164, 61, .64);
    color: var(--header-text);
    transform: translateY(-1px);
}

.account-chip.compact {
    max-width: 120px;
}

.account-avatar {
    align-items: center;
    aspect-ratio: 1;
    background: var(--gold);
    border-radius: 50%;
    color: #14100a;
    display: inline-flex;
    flex: 0 0 30px;
    font-size: .8rem;
    justify-content: center;
    overflow: hidden;
    width: 30px;
}

.account-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.main-nav a:hover,
.admin-link:hover,
.link-button:hover {
    color: var(--header-text);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.language-form select,
input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--input-text);
    padding: 11px 13px;
    font: inherit;
    box-shadow: var(--input-shadow);
}

input::placeholder,
textarea::placeholder {
    color: color-mix(in srgb, var(--input-text) 58%, transparent);
}

input:hover,
select:hover,
textarea:hover {
    border-color: rgba(212, 164, 61, .62);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 164, 61, .15);
    outline: none;
}

input[type="checkbox"] {
    width: 20px;
    min-height: 20px;
    accent-color: var(--gold);
    box-shadow: none;
}

input[type="file"] {
    min-height: auto;
    padding: 10px;
}

.language-form select {
    width: auto;
    min-height: 38px;
    color: var(--header-text);
    border-color: var(--header-border);
    background: rgba(255, 255, 255, .08);
    padding: 6px 28px 6px 10px;
}

:root[data-theme="light"] .language-form select {
    background: rgba(255, 255, 255, .62);
}

:root[data-theme="dark"] .language-form select option {
    background: var(--charcoal);
    color: var(--white);
}

:root[data-theme="dark"] select,
:root[data-theme="dark"] select option {
    background-color: var(--charcoal);
    color: var(--white);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid var(--header-border);
    border-radius: 999px;
    padding: 5px 10px 5px 6px;
    color: var(--header-text);
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
}

:root[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, .62);
}

.theme-toggle:hover {
    border-color: rgba(212, 164, 61, .64);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.theme-toggle:active {
    transform: translateY(0) scale(.98);
}

.theme-toggle-track {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    padding: 3px;
    background: rgba(0, 0, 0, .34);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.theme-toggle-knob {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    box-shadow: 0 3px 10px rgba(0, 0, 0, .28);
    transition: transform .2s ease;
}

:root[data-theme="light"] .theme-toggle-knob {
    transform: translateX(18px);
}

textarea {
    min-height: 144px;
    resize: vertical;
}

.inline-form {
    margin: 0;
}

.link-button {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.link-button.danger {
    color: #d3695c;
}

.table-actions a,
.table-actions .link-button {
    color: var(--chip-text);
    font-weight: 800;
}

.table-actions a:hover,
.table-actions .link-button:hover {
    color: var(--gold-2);
}

:root[data-theme="light"] .table-actions a:hover,
:root[data-theme="light"] .table-actions .link-button:hover {
    color: var(--gold-dark);
}

.hero {
    position: relative;
    min-height: min(680px, calc(72svh - 32px));
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .52fr);
    gap: 28px;
    align-items: start;
    padding: 42px 0 28px;
    color: var(--hero-heading);
}

.brand-hero {
    width: 100%;
    padding-inline: max(16px, calc((100vw - 1180px) / 2));
    overflow: hidden;
    background: var(--hero-bg);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: var(--hero-image-opacity);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
}

.hero-copy,
.hero-panel {
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 760px;
    padding: 18px 0 18px;
}

.hero h1,
.page-header h1 {
    margin: 0;
    max-width: 900px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.65rem, 6.6vw, 5.55rem);
    font-weight: 700;
    line-height: .92;
}

.hero h1 {
    font-size: clamp(2.25rem, 5.2vw, 4.45rem);
}

.home-advice-rotator {
    padding-top: 30px;
}

.home-advice-rotator .section-heading {
    margin-bottom: 16px;
}

.home-advice-rotator .section-heading h2 {
    font-size: clamp(1.65rem, 3.4vw, 2.65rem);
}

.home-advice-rotator .advice-stage {
    min-height: 176px;
}

.home-advice-rotator .advice-card {
    padding: 22px;
}

.home-advice-rotator .advice-card h3 {
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

.hero p,
.page-header p,
.section-heading p,
.detail-copy p {
    color: var(--muted);
    max-width: 740px;
}

.hero p {
    color: var(--hero-copy);
    font-size: 1rem;
}

.rich-text {
    color: var(--text-soft);
    max-width: 740px;
}

.rich-text > *:first-child {
    margin-top: 0;
}

.rich-text > *:last-child {
    margin-bottom: 0;
}

.rich-text p,
.rich-text ul {
    margin: 0 0 14px;
}

.rich-text h1,
.rich-text h2,
.rich-text h3 {
    margin: 20px 0 10px;
    color: var(--text-strong);
    font-family: "Cormorant Garamond", Georgia, serif;
    line-height: 1.05;
}

.rich-text h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.rich-text h2 {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.rich-text h3 {
    font-size: 1.35rem;
}

.rich-text ul {
    padding-left: 1.25rem;
}

.rich-text li + li {
    margin-top: 6px;
}

.rich-text code {
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--surface-bg);
    color: var(--gold-2);
}

.rich-text.compact h1,
.rich-text.compact h2 {
    font-size: 1.45rem;
}

.rich-text.compact h3 {
    font-size: 1.2rem;
}

.hero-panel,
.info-panel,
.service-grid article,
.service-list article,
.service-tile-button,
.work-card,
.metric-grid article,
.metric-grid .metric-tile,
.material-card,
.process-grid article {
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

.glass-panel {
    padding: 26px;
    color: var(--hero-panel-text);
    border-color: var(--hero-panel-border);
    background: var(--hero-panel-bg);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-strong);
}

.hero-panel span,
.metric-grid span,
.eyebrow {
    display: block;
    margin: 0 0 8px;
    color: var(--gold-dark);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.eyebrow.gold,
.hero-panel span {
    color: var(--gold-2);
}

:root[data-theme="light"] .hero-panel span {
    color: var(--gold-dark);
}

.hero-panel strong {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.9rem;
    line-height: 1.05;
}

.mini-stat {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line-dark);
}

:root[data-theme="light"] .mini-stat {
    border-top-color: rgba(27, 24, 20, .13);
}

.mini-stat strong {
    color: var(--gold-2);
    font-family: "Manrope", sans-serif;
    font-size: 2.25rem;
}

.mini-stat span {
    color: var(--hero-copy);
    letter-spacing: 0;
    text-transform: none;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    padding: 12px 18px;
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.button::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
    transition: transform .42s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:hover::after {
    transform: translateX(120%);
}

.button:active {
    transform: translateY(0) scale(.985);
}

.button.primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #15110a;
    box-shadow: 0 12px 28px rgba(212, 164, 61, .28);
}

.button.secondary {
    color: var(--secondary-button-text);
    border-color: var(--secondary-button-border);
    background: var(--secondary-button-bg);
}

.button.compact {
    min-height: 0;
    padding: 6px 10px;
    font-size: .78rem;
}

.cookie-consent {
    position: fixed;
    right: 16px;
    bottom: max(150px, calc(env(safe-area-inset-bottom) + 150px));
    z-index: 40;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    width: min(760px, calc(100% - 32px));
    padding: 18px;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: var(--body-text);
    background: var(--surface-bg-strong);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(18px);
}

.cookie-consent h2,
.cookie-settings-panel h2,
.legal-section h2 {
    margin-top: 0;
    color: var(--text-strong);
}

.cookie-consent h2 {
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.cookie-consent p {
    margin: 0 0 8px;
    color: var(--text-soft);
    font-size: .92rem;
}

.cookie-consent a,
.privacy-note a,
.footer-links a {
    color: var(--gold-2);
    font-weight: 800;
}

.cookie-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-actions form {
    margin: 0;
}

.maintenance-banner {
    position: relative;
    z-index: 25;
    width: min(1180px, calc(100% - 32px));
    margin: 16px auto 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border: 1px solid rgba(212, 164, 61, .42);
    border-radius: 8px;
    color: var(--text-strong);
    background: var(--surface-bg-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.maintenance-banner h2,
.maintenance-banner p {
    margin: 0;
}

.maintenance-banner h2 {
    color: var(--gold-2);
    font-size: 1rem;
    line-height: 1.25;
}

:root[data-theme="light"] .maintenance-banner h2 {
    color: var(--gold-dark);
}

.maintenance-banner p {
    color: var(--text-strong);
    font-size: .94rem;
    line-height: 1.45;
}

.section,
.page-header {
    padding: 68px 0;
}

.page-header.compact {
    padding-bottom: 24px;
}

.maintenance-page {
    min-height: 48vh;
}

.service-detail-header--with-tiles {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, 520px);
    gap: 36px;
    align-items: start;
}

.service-detail-intro {
    min-width: 0;
}

.page-header {
    position: relative;
}

.page-header h1 {
    color: var(--text-strong);
    font-size: clamp(2.2rem, 4.8vw, 4.25rem);
}

.page-header.image-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    gap: 38px;
    align-items: center;
}

.page-header.image-header img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.page-header.services-compact-header {
    padding-top: 44px;
    padding-bottom: 22px;
}

.page-header.services-compact-header h1 {
    font-size: clamp(1.9rem, 3.6vw, 3.35rem);
}

.page-header.services-compact-header p {
    margin-bottom: 0;
}

.page-header.services-compact-header img {
    max-height: 260px;
}

.page-header.split {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
}

.muted {
    padding-inline: 0;
}

.intro-band,
.material-strip,
.craft-note {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(280px, .6fr);
    gap: 34px;
    align-items: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.intro-band h2,
.section-heading h2,
.detail-copy h1,
.surface-section h2,
.craft-note p {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    line-height: .98;
}

.error-page {
    min-height: min(680px, calc(100svh - 82px));
    display: grid;
    grid-template-columns: minmax(160px, .32fr) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.error-code {
    color: var(--gold-2);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(5.4rem, 16vw, 12rem);
    font-weight: 700;
    line-height: .8;
    text-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

:root[data-theme="light"] .error-code {
    color: var(--gold-dark);
}

.error-copy {
    max-width: 760px;
}

.error-copy h1 {
    margin: 0;
    color: var(--text-strong);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.35rem, 5vw, 4.6rem);
    line-height: .94;
}

.error-copy p {
    max-width: 680px;
    color: var(--text-soft);
}

.section-heading {
    margin-bottom: 28px;
}

.service-grid,
.portfolio-grid,
.metric-grid,
.form-grid,
.two-column,
.process-grid {
    display: grid;
    gap: 18px;
}

.service-grid,
.portfolio-grid,
.metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.two-column,
.form-layout,
.detail-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
}

.form-layout,
.detail-layout {
    display: grid;
    gap: 32px;
    align-items: start;
    padding: 24px 0 72px;
}

.form-layout.single {
    grid-template-columns: minmax(0, 560px);
}

.service-card,
.service-list article,
.metric-grid article,
.metric-grid .metric-tile,
.info-panel,
.process-grid article {
    padding: 24px;
}

.service-card,
.work-card,
.metric-grid .metric-tile,
.process-grid article {
    transform: translateY(0);
}

.service-card:hover,
.work-card:hover,
.process-grid article:hover,
.metric-grid article:hover,
.metric-grid .metric-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 164, 61, .55);
    box-shadow: var(--shadow);
}

.service-card h3,
.service-list h2,
.service-tile-button strong,
.process-grid h3 {
    margin: 0 0 10px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.75rem;
    line-height: 1;
}

.service-number {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: var(--charcoal);
    color: var(--gold-2);
    font-weight: 800;
    font-size: .8rem;
}

.service-list {
    display: grid;
    gap: 16px;
}

.service-scope-section {
    align-items: start;
    padding-top: 24px;
}

.service-scope-section--tiles-only {
    display: grid;
    justify-content: end;
}

.service-scope-section--tiles-only .service-list {
    width: min(100%, 640px);
}

.service-description {
    min-width: 0;
}

.service-subsection-flow {
    display: grid;
}

.service-subsection-stack {
    display: grid;
    gap: 18px;
}

.service-subsection {
    padding: 24px;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    background: var(--surface-bg);
    box-shadow: var(--shadow);
}

.service-subsection[hidden] {
    display: none;
}

.service-subsection h2 {
    margin: 0 0 12px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1;
}

.service-subsection .service-number {
    margin-bottom: 16px;
}

.service-subsection-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.service-list article,
.service-tile-button {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.service-list article .service-number,
.service-tile-button .service-number {
    margin-bottom: 0;
}

.service-tile-button {
    width: 100%;
    padding: 24px;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-strong);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.service-tile-button:hover,
.service-tile-button:focus-visible {
    transform: translateY(-5px);
    border-color: rgba(212, 164, 61, .55);
    box-shadow: var(--shadow);
}

.service-tile-button strong {
    display: block;
    margin-bottom: 0;
}

.service-tile-dialog-image {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 8px;
}

.service-tile-dialog {
    width: min(640px, calc(100vw - 32px));
    padding: 0;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: var(--text-strong);
    background: var(--card-bg);
    box-shadow: var(--shadow-strong);
}

.service-tile-dialog::backdrop {
    background: rgba(8, 8, 7, .72);
}

.dialog-panel {
    display: grid;
    gap: 18px;
    padding: 26px;
}

.dialog-header {
    display: flex;
    gap: 16px;
    align-items: start;
    justify-content: space-between;
}

.dialog-header h2 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.dialog-panel p {
    margin: 0;
    color: var(--text-soft);
}

.icon-button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    color: var(--text-strong);
    background: var(--surface-bg);
    cursor: pointer;
}

.material-strip {
    color: var(--text-strong);
    background:
        linear-gradient(135deg, rgba(8, 8, 7, .93), rgba(32, 32, 30, .9)),
        radial-gradient(circle at 70% 40%, rgba(212, 164, 61, .35), transparent 24rem);
    width: 100%;
    padding-inline: max(16px, calc((100vw - 1180px) / 2));
}

:root[data-theme="light"] .material-strip {
    color: var(--text-strong);
    background:
        linear-gradient(135deg, rgba(246, 241, 231, .9), rgba(255, 255, 255, .74)),
        url("../images/profitrem-hero.101d32bbcb86.png") center / cover;
}

.material-chip-group,
.material-card {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.material-strip > div:first-child {
    min-width: 0;
}

.material-strip h2 {
    margin: 0 0 12px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
}

.material-strip p:not(.eyebrow) {
    max-width: 720px;
    color: var(--text-soft);
}

.material-strip span,
.material-strip a,
.material-card span,
.material-card a,
.area-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(212, 164, 61, .38);
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--chip-bg);
    color: var(--chip-text);
    font-weight: 800;
}

.material-strip a,
.material-card a {
    text-decoration: none;
}

.material-strip a:hover,
.material-card a:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 164, 61, .72);
    background: rgba(212, 164, 61, .2);
    color: var(--gold-2);
}

:root[data-theme="light"] .material-strip a:hover,
:root[data-theme="light"] .material-card a:hover {
    color: var(--gold-dark);
}

.material-card {
    padding: 24px;
    align-content: start;
}

.material-card.compact {
    margin-top: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.surface-section p {
    color: var(--muted);
}

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

.process-grid article span {
    color: var(--gold-dark);
    font-weight: 900;
}

.work-card {
    overflow: hidden;
}

.work-card-media {
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.work-card-excerpt {
    display: -webkit-box;
    min-height: 4.9em;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.work-card > div:last-child {
    padding: 18px;
}

.work-card img,
.work-card-placeholder,
.detail-image,
.detail-placeholder,
.admin-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background:
        linear-gradient(135deg, rgba(8, 8, 7, .84), rgba(212, 164, 61, .32)),
        url("../images/profitrem-hero.101d32bbcb86.png") center / cover;
}

.work-card img {
    transition: transform .45s ease, filter .3s ease;
}

.work-card:hover img {
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.04);
}

.work-card-placeholder,
.detail-placeholder {
    display: grid;
    place-items: center;
    color: var(--gold-2);
    font-weight: 900;
}

.work-card h3 {
    margin: 0 0 8px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.65rem;
    line-height: 1;
}

.work-card h3 a {
    text-decoration: none;
}

.work-card h3 a:hover {
    color: var(--gold-dark);
}

.tag-row span,
.tag-row a,
.toolbar a {
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    padding: 6px 11px;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
}

.tag-row span,
.tag-row a {
    background: var(--chip-bg);
    color: var(--chip-text);
}

.tag-row a:hover,
.tag-row a.active {
    border-color: rgba(212, 164, 61, .62);
    background: rgba(212, 164, 61, .22);
    color: var(--gold-2);
    transform: translateY(-1px);
}

:root[data-theme="light"] .tag-row a:hover,
:root[data-theme="light"] .tag-row a.active {
    color: var(--gold-dark);
}

.tag-row.compact {
    gap: 6px;
}

.tag-row.compact span,
.tag-row.compact a {
    padding: 4px 8px;
    font-size: .78rem;
}

.material-overview-card {
    display: grid;
    align-content: start;
}

.material-overview-card > div {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.material-overview-card .button {
    justify-self: start;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 4px;
}

.choice-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    background: var(--surface-bg);
    cursor: pointer;
}

.choice-grid label:hover {
    border-color: rgba(212, 164, 61, .5);
    transform: translateY(-1px);
}

.filter-toolbar {
    align-items: stretch;
}

.filter-form {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.filter-form label {
    display: grid;
    gap: 6px;
    min-width: min(210px, 100%);
}

.filter-form label span {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.filter-form select {
    min-height: 42px;
}

.admin-preview {
    margin-top: 18px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.admin-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.admin-preview-grid .admin-preview {
    margin-top: 0;
}

.admin-preview-choice,
.selected-file-item {
    display: grid;
    gap: 8px;
}

.admin-preview-choice span,
.selected-file-item {
    align-items: center;
    color: var(--text-soft);
    font-size: .88rem;
    font-weight: 800;
}

.admin-preview-choice span {
    display: inline-flex;
    gap: 8px;
}

.selected-file-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.selected-file-item {
    grid-template-columns: minmax(0, 1fr) auto;
}

.selected-file-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toolbar {
    padding-bottom: 12px;
}

.label-toolbar {
    padding-top: 0;
}

.label-toolbar a {
    display: inline-flex;
    gap: 8px;
}

.label-toolbar a span {
    color: inherit;
    opacity: .72;
}

.toolbar a:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 164, 61, .62);
    color: var(--text-strong);
}

.toolbar a.active {
    background: var(--surface-bg-strong);
    border-color: rgba(212, 164, 61, .58);
    color: var(--gold-2);
}

.content-form {
    display: grid;
    gap: 14px;
    padding: 26px;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    background: var(--form-bg);
    box-shadow: var(--shadow);
}

.content-form.wide {
    gap: 18px;
}

.admin-action-groups {
    display: grid;
    gap: 14px;
}

.admin-action-groups details {
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    background: var(--surface-bg);
    box-shadow: var(--shadow);
}

.admin-action-groups summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    color: var(--text-strong);
    font-weight: 900;
    cursor: pointer;
}

.admin-action-groups summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(242, 207, 120, .6);
    border-radius: 999px;
    color: var(--gold-2);
    font-size: 1rem;
}

.admin-action-groups details[open] summary {
    border-bottom: 1px solid var(--surface-border);
}

.admin-action-groups details[open] summary::after {
    content: "-";
}

.admin-action-groups .admin-actions {
    padding: 18px 20px 20px;
}

.inline-form {
    margin: 0;
}

.translation-sync-status {
    display: grid;
    gap: 10px;
    margin: 0 20px 20px;
    padding-top: 16px;
    border-top: 1px solid var(--surface-border);
}

.translation-sync-status > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.translation-sync-status progress {
    width: 100%;
    height: 12px;
    accent-color: var(--gold-2);
}

.translation-sync-status p {
    margin: 0;
    color: var(--text-soft);
    font-size: .9rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: var(--text-strong);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.error-text {
    color: var(--warn) !important;
}

.image-prep-panel {
    display: grid;
    gap: 16px;
    padding-top: 8px;
}

.image-prep-panel[hidden] {
    display: none;
}

.section-heading.compact {
    margin-bottom: 0;
}

.section-heading.compact h2 {
    margin: 0;
    font-size: 2rem;
}

.image-prep-list {
    display: grid;
    gap: 14px;
}

.image-prep-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
    gap: 14px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    background: var(--surface-bg);
}

.crop-canvas-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--surface-border);
    background: #151515;
}

.crop-canvas-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 2px solid rgba(212, 164, 61, .82);
    box-shadow: inset 0 0 0 1px rgba(8, 8, 7, .4);
}

.crop-canvas-wrap canvas {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    cursor: move;
    touch-action: none;
}

.image-prep-controls {
    display: grid;
    gap: 12px;
}

.image-prep-controls strong {
    overflow-wrap: anywhere;
}

.image-prep-controls label {
    display: grid;
    gap: 8px;
}

.image-prep-controls span {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.image-prep-controls input[type="range"] {
    padding: 0;
    accent-color: var(--gold);
    box-shadow: none;
}

.tile-editor {
    display: grid;
    gap: 14px;
    padding-top: 8px;
}

.tile-editor-list {
    display: grid;
    gap: 14px;
}

.tile-editor-item {
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    background: var(--surface-bg);
}

.tile-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tile-editor-header .service-number {
    margin-bottom: 0;
}

.tile-editor-language-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.service-subsection-editor-item .tile-editor-language-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tile-editor-language-grid label {
    display: grid;
    gap: 8px;
}

.tile-editor-language-grid span,
.subsection-action-grid span {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.subsection-action-grid,
.subsection-reference-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.subsection-action-grid label {
    display: grid;
    gap: 8px;
}

.service-tile-image-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 220px);
    gap: 12px;
    align-items: end;
}

.service-tile-image-editor label {
    display: grid;
    gap: 8px;
}

.service-tile-image-editor img {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 8px;
}

.choice-grid.compact {
    grid-template-columns: 1fr;
}

.field-row {
    display: grid;
    gap: 7px;
}

.required-note {
    margin: 0;
    color: var(--text-soft);
    font-size: .92rem;
}

.required-marker,
.required-note span {
    color: var(--gold-2);
    font-weight: 900;
}

.phone-field-row select {
    min-height: 42px;
}

.content-form label {
    font-weight: 800;
    font-size: .9rem;
}

.localization-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.localization-button {
    min-width: 48px;
}

.tile-editor-localization-toolbar {
    justify-content: flex-start;
    margin-top: -2px;
}

.localization-dialog {
    width: min(760px, calc(100vw - 32px));
    padding: 0;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: var(--text-strong);
    background: var(--card-bg);
    box-shadow: var(--shadow-strong);
}

.localization-dialog::backdrop {
    background: rgba(8, 8, 7, .72);
}

.localization-dialog-body {
    display: grid;
    gap: 14px;
}

.localization-dialog-body > div {
    display: grid;
    gap: 7px;
}

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

.form-grid .full {
    grid-column: 1 / -1;
}

.help-text,
.errorlist {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .88rem;
}

.errorlist {
    color: var(--warn);
}

.client-error {
    margin: 4px 0 0;
    color: var(--warn);
    font-size: .88rem;
    font-weight: 700;
}

.content-form [aria-invalid="true"] {
    border-color: var(--warn);
    box-shadow: 0 0 0 3px rgba(235, 127, 96, .18);
}

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

.check-list li {
    position: relative;
    padding-left: 26px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    box-shadow: 0 0 0 4px rgba(212, 164, 61, .13);
}

.estimate-panel {
    position: sticky;
    top: 104px;
}

.area-chip {
    display: inline-flex;
    margin-top: 14px;
    color: var(--gold-dark);
}

.messages {
    width: min(1180px, calc(100% - 32px));
    margin: 16px auto 0;
}

.message {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(212, 164, 61, .34);
    background: rgba(212, 164, 61, .14);
}

.metric-grid article strong,
.metric-grid .metric-tile strong {
    display: block;
    font-size: 2.4rem;
}

.metric-grid .metric-tile {
    color: inherit;
    text-decoration: none;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--table-bg);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow);
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--surface-border);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

tr:hover td {
    background: var(--table-row-hover);
}

.availability-section {
    display: grid;
    gap: 20px;
}

.availability-toolbar,
.availability-legend,
.availability-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.availability-toolbar h2 {
    margin: 0;
}

.availability-legend {
    justify-content: flex-start;
}

.availability-pill,
.availability-day span,
.availability-day small {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.2;
}

.availability-pill {
    padding: 6px 10px;
}

.availability-pill--available,
.availability-day--available span {
    color: #143d29;
    background: #bde9c8;
}

.availability-pill--tentative,
.availability-day--tentative span {
    color: #53380a;
    background: #f5d98a;
}

.availability-pill--unavailable,
.availability-day--unavailable span {
    color: #511f1a;
    background: #efb0a9;
}

.availability-calendar {
    display: grid;
    gap: 8px;
}

.availability-weekdays,
.availability-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.availability-weekdays span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.availability-day {
    min-height: 104px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    background: var(--card-bg);
}

.availability-day strong {
    font-size: 1.1rem;
}

.availability-day span {
    padding: 5px 8px;
}

.availability-day small {
    padding: 4px 7px;
    color: var(--muted);
    border: 1px solid var(--surface-border);
}

.availability-day--empty {
    opacity: .35;
    background: transparent;
    box-shadow: none;
}

.activity-click-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.activity-click-list li {
    padding-left: 4px;
}

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

.activity-click-list span {
    color: var(--muted);
    font-size: .82rem;
    overflow-wrap: anywhere;
}

.detail-layout {
    padding-top: 72px;
}

.work-sample-detail {
    width: min(940px, calc(100% - 32px));
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding-top: 42px;
}

.work-sample-detail .sample-gallery {
    position: static;
}

.work-sample-detail .detail-image,
.work-sample-detail .detail-placeholder {
    height: clamp(280px, 56vw, 620px);
    max-height: none;
}

.work-sample-detail .detail-copy {
    min-width: 0;
}

.work-sample-detail .detail-copy .rich-text {
    max-width: none;
}

.service-link-card {
    display: grid;
    align-content: start;
    position: relative;
    min-height: 190px;
    padding-right: 76px;
    border: 2px solid rgba(242, 207, 120, .78);
    color: inherit;
    background:
        linear-gradient(135deg, rgba(242, 207, 120, .16), rgba(255, 255, 255, .035)),
        var(--surface-bg);
    text-decoration: none;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .2);
}

.service-link-card::after {
    content: ">";
    position: absolute;
    right: 22px;
    bottom: 22px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(242, 207, 120, .72);
    border-radius: 999px;
    color: #15110a;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
}

.service-link-card:hover {
    border-color: var(--gold-2);
    box-shadow: 0 22px 54px rgba(212, 164, 61, .22);
}

.service-link-card h2 {
    margin: 0 0 10px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    line-height: 1;
}

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

.services-hub-section {
    padding-top: 30px;
}

.advice-rotator {
    display: grid;
    gap: 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.advice-stage {
    min-height: 230px;
}

.advice-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding: 30px;
    border: 1px solid rgba(242, 207, 120, .44);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(212, 164, 61, .16), rgba(255, 255, 255, .045)),
        var(--surface-bg);
    box-shadow: var(--shadow);
}

.advice-card[hidden] {
    display: none;
}

.advice-card h3 {
    margin: 8px 0 12px;
    color: var(--text-strong);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    line-height: 1;
}

.advice-card p {
    max-width: 780px;
    margin: 0;
    color: var(--text-soft);
}

.advice-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.advice-progress {
    overflow: hidden;
    height: 6px;
    border: 1px solid rgba(242, 207, 120, .36);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.advice-progress span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), var(--gold-2));
    transform: scaleX(0);
    transform-origin: left center;
}

.advice-progress span.running {
    animation: advice-progress 7s linear forwards;
}

:root[data-theme="light"] .advice-progress {
    background: rgba(27, 24, 20, .08);
}

@keyframes advice-progress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.advice-controls button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(242, 207, 120, .7);
    border-radius: 999px;
    color: #15110a;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    font-size: 1.25rem;
    font-weight: 900;
    cursor: pointer;
}

.advice-controls span {
    min-width: 64px;
    color: var(--text-strong);
    font-weight: 800;
    text-align: center;
}

.article-layout {
    padding-bottom: 72px;
}

.article-body {
    display: grid;
    max-width: 880px;
    gap: 24px;
}

.article-text {
    padding: 24px;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    background: var(--surface-bg);
    box-shadow: var(--shadow);
}

.article-text p:first-child,
.article-text .rich-text:first-child {
    margin-top: 0;
}

.article-text p:last-child,
.article-text .rich-text:last-child {
    margin-bottom: 0;
}

.sample-gallery {
    display: grid;
    gap: 14px;
}

.sample-gallery-stage {
    position: relative;
}

.sample-gallery-stage .detail-image {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.gallery-image[hidden] {
    display: none;
}

.gallery-button {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    color: var(--white);
    background: rgba(8, 8, 7, .62);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.gallery-button.previous {
    left: 12px;
}

.gallery-button.next {
    right: 12px;
}

.gallery-button:hover {
    border-color: rgba(212, 164, 61, .72);
    background: rgba(8, 8, 7, .78);
}

.gallery-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gallery-dots button {
    width: 10px;
    height: 10px;
    min-height: 10px;
    padding: 0;
    border: 1px solid rgba(212, 164, 61, .6);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.gallery-dots button.active,
.gallery-dots button:hover {
    background: var(--gold-2);
    box-shadow: 0 0 0 4px rgba(212, 164, 61, .18);
}

.detail-copy .button.secondary,
.page-header .button.secondary,
.form-layout .button.secondary,
.admin-actions .button.secondary {
    color: var(--secondary-button-text);
    border-color: var(--secondary-button-border);
    background: var(--secondary-button-bg);
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 24px;
    padding: 38px 0 120px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

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

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.legal-content {
    display: grid;
    gap: 18px;
}

.legal-details-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 0;
}

.legal-details-list div {
    padding: 14px;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    background: var(--surface-bg);
}

.legal-details-list dt {
    color: var(--gold-2);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.legal-details-list dd {
    margin: 4px 0 0;
    color: var(--text-strong);
    overflow-wrap: anywhere;
}

.legal-section,
.cookie-settings-panel {
    padding: 22px;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    background: var(--surface-bg);
}

.legal-section p,
.cookie-settings-panel p,
.privacy-note {
    color: var(--text-soft);
}

.privacy-note {
    margin: 4px 0 16px;
    font-size: .92rem;
}

.quick-contact {
    grid-column: 1 / -1;
    width: 100%;
}

.quick-contact-dock {
    position: fixed;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 16px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: min(620px, calc(100% - 32px));
    margin-inline: auto;
    padding: 8px;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    background: var(--surface-bg-strong);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(18px);
}

.quick-contact-dock .quick-contact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.quick-contact-tile {
    display: grid;
    min-width: 0;
    align-content: center;
    justify-items: center;
    gap: 1px;
    padding: 8px 10px;
    border: 1px solid rgba(242, 207, 120, .64);
    border-radius: 8px;
    color: var(--text-strong);
    background:
        linear-gradient(135deg, rgba(242, 207, 120, .14), rgba(255, 255, 255, .04)),
        var(--surface-bg);
    text-decoration: none;
    text-align: center;
}

.quick-contact-icon {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    color: var(--gold-2);
}

.quick-contact-icon svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.quick-contact-tile > span:not(.quick-contact-icon) {
    color: var(--gold-2);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.quick-contact-tile strong {
    max-width: 100%;
    font-size: .78rem;
    overflow-wrap: anywhere;
}

.quick-contact-tile:hover {
    transform: translateY(-2px);
    border-color: var(--gold-2);
    box-shadow: 0 18px 42px rgba(212, 164, 61, .22);
}

:root[data-theme="light"] .quick-contact-tile > span:not(.quick-contact-icon),
:root[data-theme="light"] .quick-contact-icon {
    color: var(--gold-dark);
}

.quick-contact-toggle {
    min-height: 0;
    padding: 4px 10px;
    border: 0;
    border-radius: 999px;
    color: var(--text-soft);
    background: transparent;
    cursor: pointer;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.quick-contact-toggle:hover {
    color: var(--text-strong);
    background: var(--secondary-button-bg);
}

.quick-contact-chat {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid rgba(242, 207, 120, .78);
    border-radius: 999px;
    color: var(--text-strong);
    background:
        linear-gradient(135deg, rgba(242, 207, 120, .18), rgba(255, 255, 255, .05)),
        var(--surface-bg-strong);
    box-shadow: var(--shadow);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.quick-contact-chat:hover {
    transform: translateY(-2px);
    border-color: var(--gold-2);
    box-shadow: 0 18px 42px rgba(212, 164, 61, .22);
}

.quick-contact-chat-icon {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: var(--gold-2);
}

.quick-contact-chat-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.quick-contact-dock.minimized .quick-contact {
    display: none;
}

.quick-contact-dock.minimized {
    right: 16px;
    left: auto;
    width: auto;
    padding: 0;
    border-color: rgba(242, 207, 120, .72);
    background: transparent;
    box-shadow: none;
}

.quick-contact-dock.minimized {
    flex-direction: row;
    gap: 8px;
}

.quick-contact-dock.minimized .quick-contact-toggle {
    padding: 10px 16px;
    border: 2px solid rgba(242, 207, 120, .78);
    color: var(--text-strong);
    background:
        linear-gradient(135deg, rgba(242, 207, 120, .18), rgba(255, 255, 255, .05)),
        var(--surface-bg-strong);
    box-shadow: var(--shadow);
}

.quick-contact-dock.minimized .quick-contact-chat {
    display: inline-flex;
}

.about-editable-section {
    display: grid;
    gap: 24px;
}

.about-editable-section .button {
    justify-self: start;
}

.site-footer strong {
    color: var(--text-strong);
}

.footer-signature {
    color: var(--gold-dark);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.8rem;
    font-style: italic;
}

@media (max-width: 1020px) {
    .service-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .site-header,
    .hero,
    .page-header.split,
    .site-footer,
    .header-actions {
        align-items: flex-start;
    }

    .site-header,
    .site-footer {
        flex-direction: column;
        padding: 16px 0;
    }

    .site-footer {
        padding-bottom: 112px;
    }

    .cookie-consent {
        right: 8px;
        bottom: max(132px, calc(env(safe-area-inset-bottom) + 132px));
        grid-template-columns: 1fr;
        width: calc(100% - 16px);
        padding: 14px;
    }

    .cookie-actions {
        justify-content: flex-start;
    }

    .legal-details-list {
        grid-template-columns: 1fr;
    }

    .site-header {
        position: relative;
        color: var(--header-text);
        background: var(--header-bg);
        border-bottom-color: var(--header-border);
    }

    .site-header::before {
        display: none;
    }

    .main-nav,
    .header-actions {
        width: 100%;
    }

    .hero,
    .service-grid,
    .portfolio-grid,
    .metric-grid,
    .two-column,
    .form-layout,
    .detail-layout,
    .form-grid,
    .service-subsection-editor-item .tile-editor-language-grid,
    .subsection-action-grid,
    .subsection-reference-grid,
    .image-prep-item,
    .process-grid,
    .intro-band,
    .material-strip,
    .craft-note,
    .page-header.image-header {
        grid-template-columns: 1fr;
    }

    .service-detail-header--with-tiles {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-hub,
    .advice-card,
    .error-page {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 42px;
    }

    .home-advice-rotator {
        padding-top: 24px;
    }

    .home-advice-rotator .advice-stage {
        min-height: 210px;
    }

    .page-header.services-compact-header {
        padding-top: 34px;
    }

    .page-header.services-compact-header img {
        max-height: 180px;
    }

    .service-link-card {
        min-height: 170px;
    }

    .work-sample-detail .sample-gallery {
        position: static;
    }

    .hero-copy {
        padding-bottom: 0;
    }

    .page-header.split,
    .site-footer {
        display: flex;
        flex-direction: column;
    }

    .estimate-panel {
        position: static;
    }

    .availability-weekdays {
        display: none;
    }

    .availability-week {
        grid-template-columns: 1fr;
    }

    .availability-day {
        min-height: 74px;
    }

    .availability-day--empty {
        display: none;
    }

    .quick-contact-dock {
        right: 8px;
        bottom: max(8px, env(safe-area-inset-bottom));
        left: 8px;
        width: calc(100% - 16px);
        padding: 6px;
    }

    .quick-contact-dock.minimized {
        right: 8px;
        left: auto;
        width: auto;
        padding: 0;
    }

    .quick-contact-dock .quick-contact {
        gap: 5px;
    }

    .quick-contact-tile {
        padding: 6px 4px;
    }

    .quick-contact-tile strong {
        font-size: .7rem;
    }
}

.customer-account-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 28px 30px 48px;
}

.stacked-form.compact {
    display: grid;
    gap: 12px;
}

.stacked-form.compact p {
    display: grid;
    gap: 6px;
    margin: 0;
}

.customer-profile-image {
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
    width: 92px;
}

.profile-prompt {
    border-left: 3px solid var(--gold);
    color: var(--text);
    margin: 0 0 12px;
    padding: 8px 0 8px 12px;
}

.checkbox-row {
    align-items: center;
    display: flex;
    gap: 10px;
    line-height: 1.35;
}

.checkbox-row input {
    flex: 0 0 auto;
}

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

.customer-record-list li {
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    padding: 12px;
}

.customer-record-list span {
    color: var(--gold);
    font-weight: 700;
}

.customer-record-list small {
    color: var(--muted);
}

@media (max-width: 960px) {
    .customer-account-layout {
        grid-template-columns: 1fr;
        padding: 22px 16px 40px;
    }
}
