:root {
    --canvas: #fcfbf8;
    --paper: #f7f5f0;
    --text: #1b1b1a;
    --muted: #77736c;
    --line: rgba(27, 27, 26, 0.12);
    --form-error: #9c3f2f;
    --inverse: #1f1d1b;
    --inverse-text: #f7f5f0;
    --header-solid: rgba(248, 247, 243, 0.88);
    --page-gutter: 22px;
    --content-max: 1280px;
    --text-max: 38rem;
    --form-max: 860px;
    --faq-max: 800px;
    --section-space: clamp(5.5rem, 13vw, 8.25rem);
    --header-h: 72px;
    --sticky-h: 3.5rem;
    --col-gap: 1.75rem;
    --display: "Hiragino Mincho ProN", "Yu Mincho", "Hiragino Mincho Pro", "Noto Serif JP", serif;
    --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
    --motion-ui: 220ms ease;
    --motion-enter: 720ms ease;
    --enter-distance: 16px;
    --stagger: 100ms;
    --hero-zoom: 3.2s;
    --brand-speed: 17;
    --ease: var(--motion-ui);
    --hero-object-position-sp: 50% 50%;
    --hero-object-position-pc: 50% 38%;
    --admin-bar-offset: 0px;
}

@media (max-width: 899px) {
    body.home:not(.design-current) {
        --section-space: clamp(3.25rem, 8vw, 4.5rem);
    }
}

@media (min-width: 900px) {
    :root {
        --page-gutter: clamp(56px, 8vw, 120px);
        --section-space: clamp(7.5rem, 11vw, 10.5rem);
        --col-gap: 2.5rem;
    }
}

@media (min-width: 960px) {
    :root {
        --header-h: 108px;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero__media img {
        animation: none !important;
    }

    .brand-rail__track,
    html.js .reveal.is-pending,
    html.js .reveal.is-in {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    html.js .reveal.is-pending {
        opacity: 1 !important;
    }
}

body {
    margin: 0;
    font-family: var(--display);
    color: var(--text);
    background: var(--canvas);
    line-height: 1.9;
    letter-spacing: 0.06em;
    font-size: 16px;
    font-weight: 400;
    padding-bottom: var(--sticky-h);
}

@media (min-width: 900px) {
    body {
        padding-bottom: 0;
    }
}

body.admin-bar {
    --admin-bar-offset: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        --admin-bar-offset: var(--wp-admin--admin-bar--height, 46px);
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px;
}

.hero a:focus-visible,
.hero button:focus-visible,
.floor--bleed a:focus-visible,
.section--idiamante a:focus-visible,
.section--idiamante button:focus-visible,
.site-footer a:focus-visible,
.site-header:not(.is-solid):not(.is-open) a:focus-visible,
.site-header:not(.is-solid):not(.is-open) button:focus-visible {
    outline-color: var(--inverse-text);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--paper);
    color: var(--text);
    padding: 0.5rem 1rem;
    z-index: 100;
}

.skip-link:focus {
    left: 0.5rem;
    top: 0.5rem;
}

.wrap {
    width: min(var(--content-max), calc(100% - (var(--page-gutter) * 2)));
    margin-inline: auto;
}

.measure {
    max-width: var(--text-max);
}

.eyebrow {
    font-family: var(--display);
    font-size: 11px;
    letter-spacing: 0.38em;
    line-height: 1.6;
    font-weight: 400;
    color: inherit;
    margin: 0 0 1.35rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.kicker {
    font-family: var(--display);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    color: var(--muted);
    margin: 0 0 1.1rem;
}

h1,
h2,
h3,
.statement,
.site-logo__name,
.idiamante__name,
.nap__name {
    font-family: var(--display);
    font-weight: 400;
}

h1,
h2,
h3 {
    line-height: 1.55;
    letter-spacing: 0.08em;
}

h1 {
    font-size: clamp(1.85rem, 2.4vw + 1rem, 2.65rem);
    line-height: 1.6;
    margin: 0 0 1.75rem;
}

h2 {
    font-size: clamp(1.5rem, 1.6vw + 0.9rem, 2.15rem);
    font-weight: 400;
    margin: 0 0 2.25rem;
}

h3 {
    font-size: clamp(1.05rem, 1.3vw, 1.25rem);
    margin: 0 0 1rem;
    letter-spacing: 0.1em;
}

.statement {
    font-size: clamp(1.7rem, 2.1vw + 0.85rem, 2.4rem);
    line-height: 1.65;
    letter-spacing: 0.08em;
    margin: 0;
}

p {
    margin: 0 0 1.35rem;
}

.lead {
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.phrase-nowrap {
    white-space: nowrap;
}

br.break-narrow {
    display: none;
}

@media (max-width: 899px) {
    br.break-narrow {
        display: unset;
    }
}

.section {
    padding: var(--section-space) 0;
}

.section-head {
    margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-head .eyebrow {
    margin-bottom: 1.1rem;
}

.section-head h2 {
    margin-bottom: 0;
}

.section-head--center {
    text-align: center;
    max-width: 40rem;
    margin-inline: auto;
    margin-bottom: clamp(3rem, 6vw, 4.75rem);
}

.section-head--center .eyebrow::after {
    content: "";
    display: block;
    width: 1px;
    height: 2.75rem;
    margin: 1.35rem auto 0;
    background: currentColor;
    opacity: 0.22;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 48px;
    padding: 0.8rem 2.1rem;
    text-decoration: none;
    border-radius: 0;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.22em;
    border: 1px solid var(--text);
    background: var(--text);
    color: var(--inverse-text);
    cursor: pointer;
    transition:
        background-color var(--motion-ui),
        color var(--motion-ui),
        border-color var(--motion-ui);
}

.hero .btn,
.floor--bleed .btn,
.section--idiamante .btn,
.site-footer .btn,
body.has-hero .site-header:not(.is-solid):not(.is-open) .btn {
    background: transparent;
    color: inherit;
    border-color: currentColor;
}

.btn::after {
    content: "→";
    font-family: var(--display);
    font-size: 0.95em;
    letter-spacing: 0;
    line-height: 1;
    display: inline-block;
    transition: transform var(--motion-ui);
}

.btn--ghost {
    background: transparent;
    color: inherit;
    border-color: currentColor;
}

.btn--header {
    padding-block: 0.7rem;
    padding-inline: 1.5rem;
    margin-left: 1.75rem;
    min-height: 48px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 2.25rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.875rem;
    letter-spacing: 0.16em;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.12em;
    min-height: 44px;
    transition: border-color var(--motion-ui);
}

.text-link::after {
    content: "→";
    font-family: var(--display);
    text-decoration: none;
    display: inline-block;
    transition: transform var(--motion-ui);
}

address {
    font-style: normal;
}

.visit-form,
.cta-sticky,
.nav-toggle,
.brand-rail__toggle,
input,
select,
textarea,
button {
    font-family: var(--sans);
}

html.js .reveal.is-pending {
    opacity: 0;
    transform: translateY(var(--enter-distance));
}

html.js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition:
        opacity var(--motion-enter),
        transform var(--motion-enter);
    transition-delay: var(--reveal-delay, 0ms);
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        background: transparent;
        color: var(--text);
    }

    .btn:hover::after,
    .text-link:hover::after {
        transform: translateX(4px);
    }

    .hero .btn:hover,
    .floor--bleed .btn:hover,
    .section--idiamante .btn:hover,
    .site-footer .btn:hover,
    body.has-hero .site-header:not(.is-solid):not(.is-open) .btn:hover {
        background: var(--inverse-text);
        color: var(--inverse);
        border-color: var(--inverse-text);
    }

    .hero .btn--ghost:hover,
    .floor--bleed .btn--ghost:hover,
    .section--idiamante .btn--ghost:hover,
    .site-footer .btn--ghost:hover {
        background: transparent;
        color: inherit;
        border-color: currentColor;
    }

    .media-zoom {
        overflow: hidden;
    }

    .media-zoom img {
        transition: transform 500ms ease;
    }

    a.media-zoom:hover img,
    a .media-zoom:hover img {
        transform: scale(1.02);
    }
}
