:root {
    --ivory: #fbf8f3;
    --cream: #f4ede3;
    --sand: #e8ddcd;
    --wood: #a5734b;
    --wood-deep: #7a5233;
    --wood-light: #d9b48f;
    --ink: #2a2521;
    --ink-soft: #625950;
    --line: rgba(42, 37, 33, 0.12);
    --serif: "Playfair Display", Georgia, serif;
    --brand: "Cinzel", "Trajan Pro", Georgia, serif;
    --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
    --gutter: clamp(16px, 4vw, 48px);
    --header-h: 84px;
    --radius: 18px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

h1, h2, h3 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

h1:focus {
    outline: none;
}

p {
    margin: 0;
}

[id] {
    scroll-margin-top: var(--header-h);
}

.container {
    width: min(1240px, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    display: flex;
    align-items: center;
    height: var(--header-h);
    transition: background-color 0.4s, box-shadow 0.4s, color 0.4s;
}

.site-header.is-solid {
    background: rgba(251, 248, 243, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
}

.site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
    width: calc(100% - 2 * var(--gutter));
    max-width: 1560px;
    margin-inline: auto;
}

.brand {
    justify-self: start;
    display: block;
    line-height: 0;
}

.brand__logo {
    display: block;
    width: 172px;
    aspect-ratio: 736 / 176;
    background: currentColor;
    -webkit-mask: url("media/brand/logo-h.png") center / contain no-repeat;
    mask: url("media/brand/logo-h.png") center / contain no-repeat;
}

.site-nav {
    display: flex;
    gap: clamp(24px, 3vw, 44px);
}

.site-nav a {
    position: relative;
    padding: 6px 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    color: var(--ink-soft);
    transition: color 0.2s;
}

.site-nav a::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease);
}

.site-nav a:hover {
    color: var(--ink);
}

.site-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-cta {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c99b6d, var(--wood));
    color: var(--ivory);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(122, 82, 51, 0.28);
    transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.header-cta span {
    font-size: 0.95rem;
    letter-spacing: 0;
    transition: transform 0.25s var(--ease);
}

.header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(122, 82, 51, 0.38);
}

.header-cta:hover span {
    transform: translateX(3px);
}

.on-film .site-header:not(.is-solid) {
    color: var(--ivory);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.on-film .site-header:not(.is-solid) .site-nav a {
    color: rgba(251, 248, 243, 0.85);
}

.on-film .site-header:not(.is-solid) .site-nav a:hover {
    color: var(--ivory);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: 500 1rem/1 var(--sans);
    text-decoration: none;
    transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}

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

.btn--dark {
    background: var(--ink);
    color: var(--ivory);
}

.btn--dark:hover {
    background: var(--wood-deep);
}

.btn--ghost {
    border-color: rgba(42, 37, 33, 0.28);
    background: rgba(255, 255, 255, 0.35);
    color: var(--ink);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.btn--ghost:hover {
    border-color: var(--ink);
}

.btn--light {
    background: var(--ivory);
    color: var(--ink);
}

.btn--light:hover {
    background: #fff;
}

.btn--outline-light {
    border-color: rgba(251, 248, 243, 0.5);
    color: var(--ivory);
}

.btn--outline-light:hover {
    border-color: var(--ivory);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--wood-deep);
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.intro__title {
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
}

.intro__title em {
    font-style: italic;
    color: var(--wood-deep);
}

.intro__lead {
    max-width: 440px;
    margin-top: 22px;
    font-size: 1.08rem;
    color: var(--ink-soft);
}

.intro__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.film {
    position: relative;
    display: block;
    height: 1400vh;
    background: #0d0b0a;
}

.film__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background: #0d0b0a url("media/film/stills/k1-lg.webp") center / cover no-repeat;
    color: var(--ivory);
}

.film__canvas,
.film__shade,
.film__dim {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.film__canvas {
    display: block;
}

.film__bg {
    position: absolute;
    top: -80px;
    left: -80px;
    width: calc(100% + 160px);
    height: calc(100% + 160px);
    display: none;
    filter: blur(32px) brightness(0.92) saturate(1.25);
    pointer-events: none;
}

.film.is-band .film__bg {
    display: block;
}

.film__shade {
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0) 16%),
        radial-gradient(ellipse 125% 95% at 50% 45%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.28) 100%),
        linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 26%);
}

.film__dim {
    background: rgba(0, 0, 0, 0.45);
    opacity: var(--dim, 0);
}

.film__intro,
.film__cta {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-content: center;
    justify-items: center;
    padding: 0 24px;
    text-align: center;
    opacity: 0;
    transform: translateY(var(--y, 0));
}

.film__intro {
    background: radial-gradient(ellipse 60% 48% at 50% 52%, rgba(13, 11, 10, 0.5), rgba(13, 11, 10, 0) 78%);
}

.film__intro .eyebrow {
    gap: 16px;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    color: rgba(251, 248, 243, 0.92);
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}

.film__intro .eyebrow::before {
    width: 40px;
}

.film__intro .eyebrow::after {
    content: "";
    width: 40px;
    height: 1px;
    margin-left: -0.2em;
    background: currentColor;
}

.film__brand {
    font-family: var(--brand);
    font-size: clamp(3rem, 9vw, 7.6rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
}

.film__tagline {
    margin-top: 22px;
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    letter-spacing: 0.04em;
    color: rgba(251, 248, 243, 0.85);
}

.film__hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(251, 248, 243, 0.72);
    transform: translateX(-50%);
}

.film__hint::after {
    content: "";
    width: 1px;
    height: 44px;
    background: linear-gradient(rgba(251, 248, 243, 0.85), rgba(251, 248, 243, 0));
    transform-origin: top;
    animation: film-hint 2s var(--ease) infinite;
}

.film__cta {
    z-index: 6;
    gap: 22px;
}

.film__cta-brand {
    font-family: var(--brand);
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--wood-light);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.film__cta h2 {
    max-width: 16ch;
    margin-bottom: 8px;
    font-size: clamp(2.2rem, 5.4vw, 4.6rem);
    text-wrap: balance;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.film__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.film__progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
}

.film__progress span {
    display: block;
    height: 100%;
    background: var(--wood-light);
    transform: scaleX(var(--p, 0));
    transform-origin: left;
}

.film__loader {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: none;
    place-content: center;
    justify-items: center;
    gap: 20px;
    background: #0d0b0a;
    transition: opacity 1.1s var(--ease), visibility 1.1s;
}

.js .film__loader {
    display: grid;
    animation: film-loader-timeout 0s 12s forwards;
}

.film.is-ready .film__loader {
    opacity: 0;
    visibility: hidden;
}

.film__loader-brand {
    font-family: var(--brand);
    font-size: 1.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.film__loader-bar {
    position: relative;
    width: 180px;
    height: 1px;
    overflow: hidden;
    background: rgba(251, 248, 243, 0.2);
}

.film__loader-bar span {
    position: absolute;
    inset: 0;
    background: var(--ivory);
    transform: scaleX(var(--load, 0));
    transform-origin: left;
    transition: transform 0.3s;
}


@keyframes film-hint {
    0% { transform: scaleY(0); opacity: 1; }
    70% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

@keyframes film-loader-timeout {
    to { opacity: 0; visibility: hidden; }
}

.stage3d {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 640px;
    overflow: hidden;
    background: linear-gradient(180deg, #a9c4dd 0%, #cddbe6 38%, #ece6dc 78%, var(--ivory) 100%);
}

.stage3d__scene {
    position: absolute;
    inset: 0;
    display: block;
    background-position: 70% center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: background-color 0.6s;
}

.stage3d__scene canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    touch-action: pan-y;
    cursor: grab;
    transition: opacity 1s var(--ease);
}

.stage3d__scene.is-ready canvas {
    opacity: 1;
}

.stage3d__scene canvas.is-dragging {
    cursor: grabbing;
}

.stage3d__scene.is-blueprint {
    background-color: #f3eee5;
    background-image:
        linear-gradient(rgba(122, 82, 51, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 82, 51, 0.09) 1px, transparent 1px);
    background-position: 0 0;
    background-repeat: repeat;
    background-size: 36px 36px;
}

.stage3d__scene.is-fallback::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(251, 248, 243, 0.94) 0%, rgba(251, 248, 243, 0.6) 42%, rgba(251, 248, 243, 0) 72%);
}

.stage3d__scene.is-fallback .stage3d__toolbar {
    display: none;
}

.stage3d__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-top: var(--header-h);
    pointer-events: none;
}

.stage3d__content > :not(.intro__lead) {
    max-width: 540px;
}

.stage3d__content a {
    pointer-events: auto;
}

.stage3d__toolbar {
    position: absolute;
    right: 0;
    bottom: 28px;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    pointer-events: none;
}

.stage3d__toolbar > * {
    pointer-events: auto;
}

.mode-switch {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 6px 24px rgba(42, 37, 33, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.mode-switch button {
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font: 500 0.88rem/1 var(--sans);
    color: var(--ink-soft);
    cursor: pointer;
    transition: background-color 0.25s, color 0.25s;
}

.mode-switch button[aria-pressed="true"] {
    background: var(--ink);
    color: var(--ivory);
}

.stage3d__hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.section {
    padding-block: clamp(80px, 11vw, 150px);
}

.section__head {
    max-width: 640px;
    margin-bottom: clamp(40px, 6vw, 72px);
}

.section h2 {
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    text-wrap: balance;
}

.section__note {
    margin-top: 14px;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.styles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(20px, 3vw, 32px);
}

.style-card {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius);
    color: var(--ivory);
    box-shadow: 0 20px 50px -24px rgba(42, 37, 33, 0.45);
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.style-card:hover {
    box-shadow: 0 34px 70px -28px rgba(42, 37, 33, 0.55);
}

.style-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 1.2s var(--ease);
}

.style-card:hover img {
    transform: scale(1.1);
}

.style-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(28, 24, 21, 0.85) 0%, rgba(28, 24, 21, 0.15) 50%, rgba(28, 24, 21, 0) 72%);
}

.style-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 45%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.style-card:hover::after {
    opacity: 1;
}

.style-card__body {
    position: absolute;
    inset: auto 0 0;
    z-index: 3;
    padding: clamp(22px, 2.6vw, 34px);
}

.style-card__type {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--wood-light);
}

.style-card h3 {
    margin: 10px 0 8px;
    font-size: clamp(1.6rem, 2.2vw, 2rem);
}

.style-card p {
    color: rgba(251, 248, 243, 0.82);
}

.process {
    background: var(--cream);
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: clamp(24px, 3vw, 40px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.process__step {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.process__num {
    font-family: var(--serif);
    font-size: 2.6rem;
    line-height: 1;
    color: var(--wood);
}

.process__step h3 {
    margin: 16px 0 10px;
    font-size: 1.45rem;
}

.process__step p {
    color: var(--ink-soft);
}

.contact {
    background: var(--ink);
    color: var(--ivory);
}

.contact .eyebrow {
    color: var(--wood-light);
}

.contact__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: end;
    gap: 48px;
}

.contact__layout > div > p {
    max-width: 520px;
    margin-top: 20px;
    font-size: 1.15rem;
    color: rgba(251, 248, 243, 0.72);
}

.contact__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(251, 248, 243, 0.16);
}

.contact__list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(251, 248, 243, 0.16);
}

.contact__list span {
    font-size: 0.95rem;
    color: rgba(251, 248, 243, 0.6);
}

.contact__list a,
.contact__list p {
    font-weight: 500;
    text-align: right;
    text-decoration: none;
}

.contact__list a:hover {
    color: var(--wood-light);
}

.site-footer {
    background: #221e1b;
    font-size: 0.9rem;
    color: rgba(251, 248, 243, 0.55);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 26px;
}

.js .reveal {
    opacity: 0;
    translate: 0 28px;
    transition: opacity 0.9s var(--ease), translate 0.9s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.js .reveal.is-visible {
    opacity: 1;
    translate: 0 0;
}

@media (orientation: portrait) {
    .film__sticky {
        background-image: url("media/film/stills/k1-sm.webp");
    }
}

@media (max-width: 899px) {
    .stage3d::after {
        content: "";
        position: absolute;
        inset: auto 0 0;
        z-index: 1;
        height: 60%;
        background: linear-gradient(to top, var(--ivory) 32%, rgba(251, 248, 243, 0));
        pointer-events: none;
    }

    .stage3d__content {
        justify-content: flex-end;
        padding-bottom: 100px;
    }

    .stage3d__toolbar {
        bottom: 22px;
    }

    .stage3d__hint {
        display: none;
    }

    .stage3d__scene.is-fallback::after {
        background: none;
    }
}

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

@media (max-width: 1000px) {
    .site-header__inner {
        grid-template-columns: 1fr auto;
    }

    .site-nav {
        display: none;
    }
}

@media (max-width: 720px) {
    .brand__logo {
        width: 136px;
    }

    .header-cta {
        height: 40px;
        padding: 0 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 440px) {
    .site-header__inner {
        gap: 12px;
    }

    .brand__logo {
        width: 120px;
    }

    .header-cta {
        gap: 6px;
        padding: 0 14px;
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }
}

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

    .js .reveal {
        opacity: 1;
        translate: none;
        transition: none;
    }

    .style-card,
    .style-card img,
    .stage3d__scene canvas {
        transition: none;
    }

    .film__hint::after {
        animation: none;
    }

    .film__loader,
    .film__loader-bar span {
        transition: none;
    }
}
