/* ==========================================================================
   kubotatakaomi.com — site.css
   ミニマル・エディトリアル(ダーク基調)デザインシステム
   構成: リセット / トークン / ベース / レイアウト / コンポーネント / モーション
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. リセット
   -------------------------------------------------------------------------- */

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

img,
svg,
video,
iframe {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* --------------------------------------------------------------------------
   2. デザイントークン
   -------------------------------------------------------------------------- */

:root {
    color-scheme: dark;

    /* カラー — 「炭色の紙」 */
    --bg: #121110;
    --bg-2: #1a1917;
    --surface: #201e1c;
    --ink: #f0ebe2;
    --ink-2: rgba(240, 235, 226, 0.62);
    --ink-3: rgba(240, 235, 226, 0.4);
    --line: rgba(240, 235, 226, 0.14);
    --line-strong: rgba(240, 235, 226, 0.34);
    --accent: #c2a184;
    --focus-ring: 0 0 0 3px rgba(194, 161, 132, 0.4);
    --error: #e5837b;
    --error-bg: rgba(229, 131, 123, 0.1);

    /* タイポグラフィ */
    --font-serif: "Cormorant Garamond", "Shippori Mincho", serif;
    --font-sans: "Noto Sans JP", system-ui, sans-serif;
    --fs-100: 0.75rem;
    --fs-200: 0.8125rem;
    --fs-300: 0.875rem;
    --fs-400: 1rem;
    --fs-500: 1.125rem;
    --fs-600: 1.375rem;
    --fs-700: clamp(1.4rem, 2.4vw, 1.8rem);
    --fs-800: clamp(1.6rem, 3vw, 2.2rem);
    --fs-900: clamp(2.6rem, 7vw, 4.2rem);
    --ls-wide: 0.16em;
    --ls-serif: 0.04em;

    /* スペーシング(8pxベース) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 40px;
    --space-5: 56px;
    --space-6: 72px;
    --space-8: 104px;
    --space-12: 144px;
    --space-16: 208px;

    /* レイアウト */
    --nav-h: 64px;
    --container-max: 1160px;

    /* モーション */
    --dur: 0.4s;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   3. ベース
   -------------------------------------------------------------------------- */

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--fs-400);
    font-weight: 400;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
}

/* dialog表示中は背面のスクロールを固定 */
body:has(dialog[open]) {
    overflow: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: var(--ls-serif);
}

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

p a,
.underline-link {
    text-decoration: underline;
    text-underline-offset: 0.3em;
    text-decoration-color: var(--line-strong);
    transition: text-decoration-color var(--dur) var(--ease);
}

p a:hover,
.underline-link:hover {
    text-decoration-color: var(--accent);
}

::selection {
    background: rgba(194, 161, 132, 0.3);
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 2px;
}

.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 48px);
}

.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;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--bg);
    font-size: var(--fs-300);
    transform: translateY(-200%);
    transition: transform 0.2s var(--ease);
}

.skip-link:focus {
    transform: translateY(0);
}

/* 小型大文字ラベル(エディトリアルの共通装飾) */
.eyebrow {
    font-size: var(--fs-100);
    font-weight: 500;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   4. ナビゲーション
   -------------------------------------------------------------------------- */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    border-bottom: 1px solid transparent;
    transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.site-nav.navbar-scrolled {
    background: rgba(18, 17, 16, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--line);
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.nav-brand {
    font-family: var(--font-serif);
    font-size: var(--fs-500);
    letter-spacing: var(--ls-serif);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 36px);
}

.nav-links a {
    display: block;
    padding: 6px 2px;
    font-size: var(--fs-100);
    font-weight: 500;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--ink-2);
    transition: color var(--dur) var(--ease);
}

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

@media (max-width: 600px) {
    .nav-brand {
        display: none;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: clamp(10px, 4vw, 28px);
    }

    /* 320pxでも4リンクが一列に収まるよう詰める */
    .nav-links a {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */

.hero {
    padding-block: calc(var(--nav-h) + clamp(64px, 12vh, 128px)) clamp(64px, 10vh, 112px);
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
}

.hero-text:focus {
    outline: none;
    box-shadow: none;
}

.hero-kicker {
    font-size: var(--fs-200);
    font-weight: 500;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: var(--space-3);
}

.hero-name {
    font-size: var(--fs-900);
    font-weight: 500;
    line-height: 1.15;
}

.hero-name-en {
    font-family: var(--font-serif);
    font-size: var(--fs-700);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-top: var(--space-1);
}

.hero-rule {
    border: none;
    border-top: 1px solid var(--line);
    width: 72px;
    margin-block: var(--space-4) var(--space-3);
}

.hero-social {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.hero-social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-100);
    font-weight: 500;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--ink-2);
    transition: color var(--dur) var(--ease);
}

.hero-social a:hover {
    color: var(--ink);
}

/* profile.webpは円形の透過画像なので枠なしで円だけを見せる */
.hero-media {
    justify-self: end;
    width: min(100%, 340px);
}

/* profile.webpは円形にクロップされた透過画像のため、切らずに1:1で収める */
.hero-media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* モバイルは写真を小さめに中央へ置き、テキストも中央揃えの対称構図にする */
@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .hero-media {
        justify-self: center;
        width: min(56vw, 220px);
        order: -1;
    }

    .hero-text {
        text-align: center;
    }

    .hero-rule {
        margin-inline: auto;
    }

    .hero-social {
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   6. セクション共通
   -------------------------------------------------------------------------- */

.section {
    padding-block: clamp(72px, 12vw, var(--space-12));
}

.section-head {
    margin-bottom: clamp(40px, 6vw, var(--space-6));
}

.section-label {
    font-size: var(--fs-100);
    font-weight: 500;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: var(--space-1);
}

.section-title {
    font-size: var(--fs-800);
    font-weight: 500;
}

.section-lede {
    color: var(--ink-2);
    font-size: var(--fs-300);
    margin-top: var(--space-2);
}

/* --------------------------------------------------------------------------
   7. ボタン
   -------------------------------------------------------------------------- */

.btn-hairline {
    display: inline-block;
    padding: 12px 36px;
    border: 1px solid var(--line-strong);
    font-size: var(--fs-100);
    font-weight: 500;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--ink-2);
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

.btn-solid {
    display: inline-block;
    padding: 14px 48px;
    background: var(--ink);
    border: 1px solid var(--ink);
    color: var(--bg);
    font-size: var(--fs-200);
    font-weight: 500;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    transition: opacity var(--dur) var(--ease);
}

.btn-solid:hover {
    opacity: 0.85;
}

.btn-solid:disabled {
    opacity: 0.5;
    cursor: default;
}

/* --------------------------------------------------------------------------
   8. Portfolio グリッド
   -------------------------------------------------------------------------- */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px);
    /* 各カードを自然な高さにして、行内でサムネイル天端を揃える
       (stretchだと<button>が中身を中央寄せしタイトル行数差で画像がずれる) */
    align-items: start;
}

/* モバイルでも2列を維持する */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        gap: var(--space-3) var(--space-2);
    }

    .portfolio-title {
        font-size: var(--fs-100);
    }

    .portfolio-year {
        font-size: var(--fs-200);
    }
}

.portfolio-link {
    display: block;
    width: 100%;
    text-align: left;
    color: inherit;
}

.portfolio-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-2);
}

.portfolio-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--dur) var(--ease), transform 0.6s var(--ease);
}

.portfolio-media img.loaded {
    opacity: 1;
}

.portfolio-link:hover .portfolio-media img {
    transform: scale(1.03);
}

/* 常設キャプション(雑誌のキャプション様式) */
.portfolio-caption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-2);
    padding-top: 12px;
}

.portfolio-title {
    font-size: var(--fs-200);
    line-height: 1.6;
    color: var(--ink-2);
    transition: color var(--dur) var(--ease);
}

.portfolio-link:hover .portfolio-title {
    color: var(--ink);
}

.portfolio-year {
    font-family: var(--font-serif);
    font-size: var(--fs-300);
    letter-spacing: var(--ls-serif);
    color: var(--ink-3);
    flex-shrink: 0;
}

.portfolio-more {
    text-align: center;
    margin-top: clamp(40px, 6vw, var(--space-6));
}

/* --------------------------------------------------------------------------
   9. Info 注記
   -------------------------------------------------------------------------- */

.site-note {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-block: var(--space-4);
    background: var(--bg-2);
}

.site-note p {
    text-align: center;
    font-size: var(--fs-300);
    color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   10. Works 索引(フィルモグラフィ)
   -------------------------------------------------------------------------- */

.works-table {
    border-top: 1px solid var(--line);
}

.works-table tr {
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: background-color var(--dur) var(--ease);
}

.works-table tr:hover,
.works-table tr:focus-visible {
    background: var(--bg-2);
}

.works-table tr:focus-visible {
    box-shadow: inset var(--focus-ring);
}

.works-table td {
    padding: 18px 16px;
    vertical-align: baseline;
}

.works-table td:first-child {
    padding-left: 8px;
}

.works-table td:last-child {
    padding-right: 8px;
}

.year-column {
    font-family: var(--font-serif);
    font-size: var(--fs-400);
    letter-spacing: var(--ls-serif);
    color: var(--ink-3);
    white-space: nowrap;
    width: 1%;
}

.category-column {
    white-space: nowrap;
    width: 1%;
}

.category-label {
    display: inline-block;
    font-size: var(--fs-100);
    font-weight: 500;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--ink-3);
}

.category-label + .category-label {
    margin-left: 10px;
}

.title-column {
    font-size: var(--fs-300);
    line-height: 1.7;
}

.description-text {
    color: var(--ink-3);
    font-size: var(--fs-200);
}

.role-column {
    text-align: right;
    font-size: var(--fs-200);
    color: var(--ink-2);
    white-space: nowrap;
    width: 1%;
}

@media (max-width: 640px) {
    .works-table td {
        padding: 14px 10px;
    }

    .role-column {
        display: none;
    }
}

.works-more {
    text-align: center;
    margin-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   11. Contact フォーム
   -------------------------------------------------------------------------- */

.contact-form {
    max-width: 640px;
}

.form-field {
    margin-bottom: var(--space-3);
}

.form-field label {
    display: block;
    font-size: var(--fs-100);
    font-weight: 500;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line-strong);
    padding: 10px 2px;
    font-size: var(--fs-400);
    line-height: 1.6;
    color: var(--ink);
    border-radius: 0;
    transition: border-color var(--dur) var(--ease);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
    box-shadow: none;
    border-bottom-color: var(--accent);
}

/* オートフィル時のダーク背景維持 */
.form-field input:-webkit-autofill,
.form-field textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
    -webkit-text-fill-color: var(--ink);
    caret-color: var(--ink);
}

.form-turnstile {
    margin-block: var(--space-3);
    min-height: 65px;
}

.form-status {
    font-size: var(--fs-300);
    color: var(--ink-2);
    margin-bottom: var(--space-2);
}

.form-status.is-error {
    color: var(--error);
}

/* --------------------------------------------------------------------------
   12. フッター
   -------------------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-2);
    padding-block: var(--space-6) var(--space-4);
    text-align: center;
}

.footer-location {
    font-size: var(--fs-100);
    font-weight: 500;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: var(--space-2);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-social a {
    font-family: var(--font-serif);
    font-size: var(--fs-400);
    letter-spacing: var(--ls-serif);
    color: var(--ink-2);
    transition: color var(--dur) var(--ease);
}

.footer-social a:hover {
    color: var(--ink);
}

.footer-rule {
    border: none;
    border-top: 1px solid var(--line);
    width: 72px;
    margin: 0 auto var(--space-3);
}

.footer-copyright {
    font-size: var(--fs-200);
    color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   13. スクロールトップ
   -------------------------------------------------------------------------- */

.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(18, 17, 16, 0.8);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--ink-2);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}

.scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   14. ダイアログ(作品モーダル / 送信結果)
   -------------------------------------------------------------------------- */

dialog {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 0;
    margin: auto;
    max-width: min(920px, calc(100vw - 32px));
    max-height: min(90vh, 90dvh);
}

dialog::backdrop {
    background: rgba(10, 9, 8, 0.72);
}

/* 開閉フェード(対応ブラウザのみ。非対応は即時表示) */
dialog[open] {
    opacity: 1;
    transform: translateY(0);
}

dialog {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
        display var(--dur) allow-discrete, overlay var(--dur) allow-discrete;
}

@starting-style {
    dialog[open] {
        opacity: 0;
        transform: translateY(12px);
    }
}

.work-dialog {
    width: min(920px, calc(100vw - 32px));
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* 上スワイプで閉じる操作中は追従を優先しtransitionを切る */
.work-dialog.is-swiping {
    transition: none;
}

.dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--ink-2);
    background: rgba(18, 17, 16, 0.6);
    transition: color var(--dur) var(--ease);
}

.dialog-close:hover {
    color: var(--ink);
}

.dialog-body {
    padding: clamp(24px, 5vw, 48px);
}

.dialog-title {
    font-size: var(--fs-600);
    padding-right: 48px;
    margin-bottom: var(--space-3);
}

.dialog-category {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--fs-100);
    font-weight: 500;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 6px;
}

.dialog-caption {
    font-size: var(--fs-300);
    color: var(--ink-2);
    margin-top: var(--space-3);
}

.dialog-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-2);
    border-top: 1px solid var(--line);
    margin-top: var(--space-3);
    padding-top: var(--space-2);
}

.dialog-meta #modal_date {
    font-family: var(--font-serif);
    font-size: var(--fs-400);
    letter-spacing: var(--ls-serif);
    color: var(--ink-3);
}

.dialog-meta #modal_role {
    font-size: var(--fs-200);
    color: var(--ink-2);
}

/* メディア表示エリア */
.video-container,
.image-container,
.carousel-container {
    position: relative;
    background: var(--bg);
}

.video-container {
    aspect-ratio: 16 / 9;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.image-container img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}

.image-container img.loaded {
    opacity: 1;
}

/* 送信結果ダイアログ */
.result-dialog {
    width: min(440px, calc(100vw - 32px));
    padding: var(--space-4);
    text-align: center;
}

.result-dialog h3 {
    font-size: var(--fs-600);
    margin-bottom: var(--space-2);
}

.result-dialog h3.is-error {
    color: var(--error);
}

.result-dialog p {
    font-size: var(--fs-300);
    color: var(--ink-2);
    margin-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   15. カルーセル(scroll-snap)
   -------------------------------------------------------------------------- */

.snap-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.snap-carousel::-webkit-scrollbar {
    display: none;
}

.snap-carousel > * {
    flex: 0 0 100%;
    scroll-snap-align: center;
}

.snap-carousel img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding-block: var(--space-2);
    background: var(--surface);
}

.carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--ink-2);
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

.carousel-counter {
    font-family: var(--font-serif);
    font-size: var(--fs-300);
    letter-spacing: var(--ls-wide);
    color: var(--ink-3);
    min-width: 3.5em;
    text-align: center;
}

/* --------------------------------------------------------------------------
   16. ローディング / エラー
   -------------------------------------------------------------------------- */

.media-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--ink-3);
}

.loading-ring {
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-top-color: var(--ink-2);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: var(--fs-100);
    letter-spacing: var(--ls-wide);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.modal-error {
    padding: var(--space-2) var(--space-3);
    margin-top: var(--space-2);
    background: var(--error-bg);
    color: var(--error);
    font-size: var(--fs-300);
    text-align: center;
}

/* --------------------------------------------------------------------------
   17. モーション(スクロールリビール / reduced motion)
   -------------------------------------------------------------------------- */

/* 初期非表示は motion 許可環境でのみ適用(JS無効・reduce環境で内容が消えない) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    }

    .reveal.is-revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .snap-carousel {
        scroll-behavior: auto;
    }

    .loading-ring {
        display: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .loading-text {
        display: none;
    }
}
