:root {
    --bg: #f1ecdf;
    --bg-deep: #d9d1bc;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: rgba(255, 255, 255, 0.95);
    --surface-dark: rgba(18, 34, 28, 0.78);
    --text: #18231f;
    --muted: #56635b;
    --line: rgba(24, 35, 31, 0.14);
    --accent: #1f6a4f;
    --accent-soft: #2d8765;
    --accent-warm: #bf7b36;
    --accent-pale: #e6d7b7;
    --shadow: 0 24px 80px rgba(40, 54, 47, 0.14);
    --shadow-soft: 0 14px 34px rgba(40, 54, 47, 0.1);
    --radius-lg: 30px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --content-width: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 34%),
        radial-gradient(circle at top right, rgba(196, 220, 205, 0.72), transparent 30%),
        linear-gradient(145deg, var(--bg) 0%, #ebe4d1 52%, var(--bg-deep) 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 74px 74px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 88%);
    opacity: 0.4;
}

a {
    color: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(241, 236, 223, 0.84);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(100% - 32px, var(--content-width));
    margin: 0 auto;
    padding: 14px 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: 0;
    max-width: 100%;
}

.brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: var(--shadow-soft);
}

.brand-copy {
    min-width: 0;
    overflow: hidden;
}

.brand-name {
    display: block;
    font-size: clamp(0.96rem, 2.1vw, 1.15rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-tagline {
    margin: 4px 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--muted);
    max-width: 32ch;
}

.brand-tagline span {
    color: var(--accent);
    font-weight: 800;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.site-nav a,
.button {
    border-radius: 999px;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-nav a {
    padding: 11px 16px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: rgba(31, 106, 79, 0.1);
    color: var(--text);
}

.lang-switch {
    display: inline-flex;
    gap: 10px;
    flex-shrink: 0;
}

.lang-switch a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-soft);
    padding: 3px;
    transition: transform 180ms ease, border-color 180ms ease;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(31, 106, 79, 0.32);
}

.lang-switch a.is-active {
    border-color: rgba(31, 106, 79, 0.4);
}

.lang-switch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.menu-toggle {
    display: none;
    justify-self: end;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.74);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.detail-shell {
    width: min(100% - 32px, var(--content-width));
    margin: 0 auto;
    padding: 28px 0 46px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: var(--shadow);
    background:
        linear-gradient(180deg, rgba(20, 33, 28, 0.18), rgba(20, 33, 28, 0.72)),
        var(--hero-image, url("h.jpg")) center center / cover no-repeat;
    padding: clamp(32px, 7vw, 74px);
    color: #f9f6ef;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -28% auto;
    width: 290px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(191, 123, 54, 0.5), transparent 70%);
}

.detail-eyebrow {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-hero h1 {
    margin: 16px 0 0;
    font-family: "Fraunces", serif;
    letter-spacing: -0.03em;
    line-height: 1;
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    max-width: 14ch;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.detail-hero p {
    margin: 18px 0 0;
    max-width: 70ch;
    line-height: 1.75;
    color: rgba(249, 246, 239, 0.92);
}

.detail-section {
    margin-top: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: var(--shadow);
    background: linear-gradient(180deg, var(--surface-strong) 0%, rgba(255, 255, 255, 0.64) 100%);
    padding: clamp(24px, 4vw, 42px);
}

.detail-section h2 {
    margin: 0;
    font-family: "Fraunces", serif;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.detail-section h3 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.25;
}

.detail-section h2 + *,
.detail-section h3 + * {
    margin-top: 16px;
}

.section-stack {
    display: grid;
    gap: 26px;
}

.text-flow p {
    margin: 0;
    line-height: 1.85;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.text-flow p + p {
    margin-top: 14px;
}

.text-flow ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
}

.text-flow li {
    color: var(--muted);
    line-height: 1.75;
    overflow-wrap: anywhere;
}

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

.panel {
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(24, 35, 31, 0.08);
    box-shadow: var(--shadow-soft);
    padding: 22px;
}

.media-block {
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(24, 35, 31, 0.08);
    box-shadow: var(--shadow-soft);
    background: rgba(255, 255, 255, 0.88);
}

.media-block img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.media-block figcaption {
    padding: 14px 18px;
    color: var(--muted);
    line-height: 1.65;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    font-weight: 800;
}

.button-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    color: #f9f6ef;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--line);
    color: var(--text);
}

.button-ghost {
    background: transparent;
    border-color: rgba(31, 106, 79, 0.24);
    color: var(--accent);
}

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

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

.video-card {
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(24, 35, 31, 0.08);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 180px;
    height: auto;
    border: 0;
    display: block;
    background: #000;
}

.video-copy {
    padding: 18px;
}

.video-copy h3 {
    margin: 0;
    font-size: 1.24rem;
}

.video-copy p {
    margin: 12px 0 0;
    line-height: 1.75;
    color: var(--muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.product-card {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(24, 35, 31, 0.08);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: transform 180ms ease;
}

.product-card:hover,
.product-card:focus-visible {
    transform: translateY(-3px);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-card span {
    display: block;
    padding: 10px 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.site-footer {
    width: min(100% - 32px, var(--content-width));
    margin: 0 auto 32px;
    padding: 28px;
    border-radius: 28px;
    background: var(--surface-dark);
    color: rgba(249, 246, 239, 0.92);
    box-shadow: var(--shadow);
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

.site-footer p + p {
    margin-top: 8px;
}

.site-footer a {
    color: var(--accent-pale);
    text-decoration: none;
}

.reveal {
    opacity: 1;
    transform: none;
}

.has-js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 520ms ease, transform 520ms ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.has-js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .header-inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .panel-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 860px) {
    .header-inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        display: grid;
        gap: 6px;
        padding: 12px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .site-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav a {
        width: 100%;
        padding: 14px 16px;
        border-radius: 18px;
    }
}

@media (max-width: 760px) {
    .detail-shell,
    .site-footer,
    .header-inner {
        width: min(100% - 24px, var(--content-width));
    }

    .brand-tagline {
        display: none;
    }

    .brand img {
        width: 58px;
        height: 58px;
    }

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

    .has-js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 520px) {
    .header-inner {
        gap: 10px;
    }

    .brand-name {
        font-size: 0.94rem;
    }

    .menu-toggle {
        padding: 10px 13px;
    }

    .lang-switch a {
        width: 36px;
        height: 36px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .video-card iframe {
        min-height: 170px;
    }
}

@media (max-width: 430px) {
    .header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        align-items: start;
    }

    .brand {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .lang-switch {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .menu-toggle {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        margin-top: 6px;
    }
}

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

    .has-js .reveal,
    .product-card,
    .button,
    .site-nav a,
    .lang-switch a {
        transition: none;
    }
}
