:root {
    --bg: #f7f3ec;
    --bg-soft: #eef2f8;
    --bg-tint: #fcf7ef;
    --surface: #ffffff;
    --surface-soft: #fbfcfe;
    --surface-contrast: linear-gradient(180deg, #ffffff 0%, #faf5eb 100%);
    --surface-dark: linear-gradient(180deg, #1b2d4d 0%, #162442 100%);
    --line: #d9e0ea;
    --line-strong: #bcc7d6;
    --text: #22324e;
    --text-soft: #66748c;
    --heading: #162543;
    --primary: #1f3153;
    --primary-strong: #162543;
    --primary-soft: rgba(31, 49, 83, 0.08);
    --accent: #e3c57c;
    --accent-strong: #c59b53;
    --accent-soft: rgba(227, 197, 124, 0.18);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --shadow-lg: 0 28px 64px rgba(22, 37, 67, 0.12);
    --shadow-md: 0 16px 34px rgba(22, 37, 67, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fcfaf6 0%, #f3f5fa 100%);
}

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

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

button,
input,
textarea {
    font: inherit;
}

.site-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.site-background__glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.22;
}

.site-background__glow--one {
    width: 24rem;
    height: 24rem;
    top: -8rem;
    left: -7rem;
    background: rgba(227, 197, 124, 0.2);
}

.site-background__glow--two {
    width: 20rem;
    height: 20rem;
    top: 2rem;
    right: -4rem;
    background: rgba(31, 49, 83, 0.12);
}

.site-background__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 78%);
}

.shell {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-main {
    position: relative;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(188, 199, 214, 0.7);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: rgba(197, 155, 83, 0.16);
    box-shadow: 0 12px 30px rgba(22, 37, 67, 0.07);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 84px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.95rem;
}

.brand__mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    border: 1px solid rgba(227, 197, 124, 0.26);
    background: linear-gradient(180deg, #1f3153 0%, #162543 100%);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.brand__mark::before,
.brand__mark::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
}

.brand__mark::before {
    top: 15px;
}

.brand__mark::after {
    bottom: 15px;
}

.brand__mark span {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid var(--accent);
    border-radius: 4px;
    transform: rotate(45deg);
}

.brand__copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand__name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--heading);
}

.brand__tag {
    font-size: 0.86rem;
    color: var(--text-soft);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.site-nav__link {
    position: relative;
    padding: 0.3rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-soft);
    transition: color 0.2s ease;
}

.site-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.15rem;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: var(--heading);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
    transform: scaleX(1);
}

.site-nav__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 0.35rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    color: var(--heading);
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.78rem 1.16rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.94rem;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
    cursor: pointer;
}

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

.button--primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(22, 37, 67, 0.16);
}

.button--primary:hover {
    box-shadow: 0 18px 34px rgba(22, 37, 67, 0.2);
}

.button--secondary {
    background: rgba(227, 197, 124, 0.16);
    border-color: rgba(197, 155, 83, 0.24);
    color: var(--primary);
}

.button--secondary:hover {
    background: rgba(227, 197, 124, 0.24);
    border-color: rgba(197, 155, 83, 0.32);
}

.button--ghost {
    background: #ffffff;
    border-color: var(--line);
    color: var(--heading);
}

.button--ghost:hover {
    border-color: rgba(197, 155, 83, 0.28);
    background: #fcfaf5;
}

.eyebrow {
    margin: 0 0 0.9rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.hero-section {
    padding: 5.4rem 0 4.5rem;
}

.hero-section__grid,
.content-split,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.4rem;
    align-items: stretch;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    color: var(--heading);
    font-size: clamp(2.8rem, 6vw, 4.9rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-copy__lead,
.page-hero p,
.section-heading p,
.story-card p,
.feature-card p,
.service-card p,
.profile-card p,
.value-card p,
.metric-card p,
.process-card p,
.insight-card p,
.cta-band__surface p,
.contact-card p,
.contact-form-card__intro,
.contact-form__footer p,
.legal-card p,
.legal-card li,
.check-list li {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.75;
}

.hero-actions,
.site-footer__actions,
.cta-band__actions,
.contact-form__footer {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hero-proof span,
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.62rem 0.88rem;
    border-radius: 999px;
    border: 1px solid rgba(197, 155, 83, 0.24);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-soft);
    font-size: 0.84rem;
}

.status-pill {
    background: rgba(227, 197, 124, 0.14);
    color: var(--primary);
    align-self: flex-start;
    flex-shrink: 0;
    white-space: nowrap;
}

.surface-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-md);
}

.surface-card--contrast {
    background: var(--surface-contrast);
}

.surface-card--muted {
    background: var(--surface-soft);
    box-shadow: none;
}

.hero-panel__card,
.story-card,
.service-card,
.feature-card,
.metric-card,
.profile-card,
.value-card,
.process-card,
.insight-card,
.contact-card,
.contact-form-card,
.legal-card,
.product-card {
    padding: 1.6rem;
}

.story-card,
.contact-form-card {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.hero-panel__card {
    background: var(--surface-dark);
    border-color: rgba(227, 197, 124, 0.16);
    box-shadow: 0 28px 70px rgba(22, 37, 67, 0.2);
}

.hero-panel__header,
.hero-panel__footer-item,
.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.hero-panel__header {
    align-items: flex-start;
    flex-wrap: wrap;
}

.hero-panel__header > div {
    flex: 1 1 18rem;
    min-width: 0;
}

.hero-panel__header p,
.hero-panel__item span,
.hero-panel__footer-item span,
.feature-card__label,
.process-card__index,
.profile-card__role,
.contact-card span {
    display: inline-block;
    margin: 0 0 0.55rem;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.hero-panel__stack,
.stack-grid,
.footer-links,
.legal-card ul {
    display: grid;
    gap: 1rem;
}

.hero-panel__item {
    padding: 1rem 1.05rem;
    border: 1px solid rgba(227, 197, 124, 0.14);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
}

.hero-panel__item strong,
.hero-panel__footer-item strong,
.feature-card h3,
.service-card h2,
.metric-card h3,
.profile-card h3,
.process-card h3,
.section-heading h2,
.story-card h2,
.cta-band__surface h2,
.contact-form-card h2,
.legal-card h2,
.product-card h3,
.site-footer__brand h2 {
    margin: 0 0 0.55rem;
    font-family: "Space Grotesk", sans-serif;
    color: var(--heading);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-panel__card h2,
.hero-panel__card strong,
.hero-panel__card p {
    color: #ffffff;
}

.hero-panel__card .hero-panel__header p,
.hero-panel__card .hero-panel__item span,
.hero-panel__card .hero-panel__footer-item span {
    color: var(--accent);
}

.hero-panel__card .status-pill {
    background: rgba(227, 197, 124, 0.12);
    color: var(--accent);
    border-color: rgba(227, 197, 124, 0.18);
}

.hero-panel__card .hero-panel__item p,
.hero-panel__card .hero-panel__footer-item p {
    color: rgba(228, 235, 246, 0.78);
}

.story-card__detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.4rem;
}

.story-card__detail {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border: 1px solid rgba(197, 155, 83, 0.18);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #ffffff 0%, #faf5eb 100%);
}

.story-card__detail span {
    display: inline-block;
    margin: 0;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.story-card__detail strong {
    font-family: "Space Grotesk", sans-serif;
    color: var(--heading);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.hero-panel__footer {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.hero-panel__footer-item {
    align-items: flex-start;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(227, 197, 124, 0.14);
}

.hero-panel__footer-item span,
.process-card__index {
    color: var(--accent-strong);
}

.section-block {
    padding: 2.8rem 0 4.8rem;
}

.section-block--dark {
    background: linear-gradient(180deg, #203254 0%, #182744 100%);
}

.section-block--dark .eyebrow {
    color: var(--accent);
}

.section-block--dark .section-heading h2,
.section-block--dark .section-heading p {
    color: #ffffff;
}

.section-block--dark .section-heading p {
    color: rgba(228, 235, 246, 0.76);
}

.section-block--dark .surface-card:not(.product-card--featured) {
    background: rgba(255, 255, 255, 0.96);
}

.section-block--muted {
    background: linear-gradient(180deg, #fbf7ef 0%, #f4f6fa 100%);
}

.section-heading {
    max-width: 780px;
    margin-bottom: 1.6rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--heading);
}

.card-grid {
    display: grid;
    gap: 1.2rem;
}

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

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

.card-grid--products {
    grid-template-columns: minmax(0, 1.18fr) repeat(2, minmax(0, 0.91fr));
    align-items: stretch;
}

.feature-card__label,
.profile-card__role,
.contact-card span {
    color: var(--accent-strong);
}

.product-card {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    align-content: start;
    gap: 1rem;
    height: 100%;
}

.product-card--featured {
    position: relative;
    overflow: hidden;
    border-color: rgba(227, 197, 124, 0.22);
    background: linear-gradient(160deg, #27406a 0%, #1b2d4d 58%, #162543 100%);
    box-shadow: 0 32px 82px rgba(22, 37, 67, 0.24);
}

.product-card--featured::before {
    content: "";
    position: absolute;
    width: 14rem;
    height: 14rem;
    top: -6rem;
    right: -4rem;
    border-radius: 999px;
    background: rgba(227, 197, 124, 0.18);
    filter: blur(28px);
    pointer-events: none;
}

.product-card--featured h3,
.product-card--featured p,
.product-card--featured li {
    color: #ffffff;
}

.product-card--featured h3 {
    font-size: clamp(1.5rem, 2vw, 1.95rem);
}

.product-card--featured .feature-card__label {
    color: var(--accent);
}

.product-card .hero-actions {
    margin-top: auto;
}

.product-card--featured .check-list li::marker {
    color: var(--accent);
}

.product-card--featured .button--primary {
    background: var(--accent);
    color: var(--primary-strong);
    box-shadow: none;
}

.product-card--featured .button--ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(227, 197, 124, 0.22);
    color: #ffffff;
}

.product-card--featured .button--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(227, 197, 124, 0.34);
}

.check-list,
.legal-card ul {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.7rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.page-hero {
    padding: 4.4rem 0 2.1rem;
}

.page-hero__inner {
    padding-bottom: 0.4rem;
}

.page-hero__grid {
    display: grid;
    gap: 1.2rem;
    max-width: 840px;
}

.page-hero__aside {
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(197, 155, 83, 0.18);
    background: rgba(227, 197, 124, 0.12);
}

.profile-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(227, 197, 124, 0.18);
    color: var(--primary-strong);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.metric-card span,
.contact-card a,
.insight-card a,
.site-footer__legal a,
.footer-links a,
.legal-card a {
    color: var(--primary-strong);
}

.metric-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #faf5eb 100%);
}

.metric-card::before,
.value-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.25rem;
    bottom: 1.25rem;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(227, 197, 124, 0.2) 100%);
}

.value-card {
    position: relative;
    padding-left: 1.35rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.value-card p,
.metric-card p {
    margin: 0;
}

.cta-band {
    padding: 0 0 5rem;
}

.cta-band__surface {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 1.9rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(227, 197, 124, 0.2);
    background: linear-gradient(135deg, #1f3153 0%, #172745 100%);
    box-shadow: 0 28px 70px rgba(22, 37, 67, 0.18);
}

.cta-band__surface h2,
.cta-band__surface p,
.site-footer__grid h3,
.site-footer__brand h2 {
    color: #ffffff;
}

.cta-band__surface p {
    color: rgba(228, 235, 246, 0.76);
}

.cta-band__surface .eyebrow,
.site-footer .eyebrow {
    color: var(--accent);
}

.cta-band__surface .button--primary,
.site-footer__actions .button--primary {
    background: var(--accent);
    color: var(--primary-strong);
    box-shadow: none;
}

.cta-band__surface .button--ghost,
.site-footer__actions .button--ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(227, 197, 124, 0.2);
    color: #ffffff;
}

.site-footer {
    padding: 0 0 2.4rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.15fr repeat(3, minmax(0, 0.75fr));
    gap: 1.4rem;
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(227, 197, 124, 0.2);
    background: linear-gradient(135deg, #1f3153 0%, #172745 100%);
    box-shadow: 0 24px 60px rgba(22, 37, 67, 0.16);
}

.site-footer__grid h3 {
    margin: 0 0 1rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
}

.footer-links a,
.site-footer__bottom,
.site-footer__brand p {
    color: rgba(228, 235, 246, 0.76);
    line-height: 1.7;
}

.footer-links a:hover,
.site-footer__legal a:hover,
.contact-card a:hover,
.insight-card a:hover {
    color: var(--accent);
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0 0;
}

.site-footer__legal {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer__legal a {
    color: rgba(228, 235, 246, 0.76);
}

.contact-layout .stack-grid,
.contact-form-card {
    align-self: start;
}

.contact-card a {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

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

.form-group {
    display: grid;
    gap: 0.55rem;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--heading);
}

.form-control {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    background: #ffffff;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: rgba(197, 155, 83, 0.45);
    box-shadow: 0 0 0 4px rgba(227, 197, 124, 0.14);
}

.form-control::placeholder {
    color: #8a99ab;
}

.form-control.is-invalid {
    border-color: rgba(220, 38, 38, 0.45);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.form-control--textarea {
    min-height: 190px;
    resize: vertical;
}

.invalid-feedback {
    display: none;
    font-size: 0.85rem;
    color: #b42318;
}

.contact-form__footer {
    justify-content: space-between;
    align-items: center;
}

.contact-form__footer p {
    margin: 0;
    max-width: 28rem;
}

.legal-shell {
    max-width: 900px;
}

.legal-card h2 {
    font-size: 1.35rem;
}

@media (max-width: 1080px) {
    .site-nav {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 1rem;
        left: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-lg);
    }

    .nav-open .site-nav {
        display: flex;
    }

    .site-nav__actions {
        margin-left: 0;
        flex-direction: column;
        width: 100%;
    }

    .site-nav__actions .button {
        width: 100%;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .hero-section__grid,
    .content-split,
    .contact-layout,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .hero-section {
        padding-top: 3.8rem;
    }

    .section-block,
    .cta-band {
        padding-bottom: 3.4rem;
    }

    .card-grid--three,
    .card-grid--two,
    .card-grid--products,
    .story-card__detail-grid,
    .process-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .cta-band__surface,
    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__grid {
        padding: 1.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
