:root {
    --washi: #f3efe4;
    --washi-deep: #e8e2d1;
    --paper: #fbf9f3;
    --ink: #1f2a1a;
    --ink-dim: #4f5a47;
    --ink-muted: #8a917f;
    --matcha: #5b7a2e;
    --matcha-deep: #2f4a1f;
    --matcha-night: #1d2b15;
    --matcha-light: #dfe7c4;
    --clay: #a8573b;
    --line: rgba(31, 42, 26, 0.12);
    --tea-ceremonial: #6f9a2e;
    --tea-premium: #87983c;
    --tea-culinary: #8c8a45;
    --radius: 4px;
    --font-serif: "Shippori Mincho", "Times New Roman", serif;
    --font-sans: "Zen Kaku Gothic New", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

body {
    font-family: var(--font-sans);
    background: var(--washi);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo,
.footer-brand,
.section-num,
.ritual-kanji,
.summary-price,
.tasting-price {
    font-family: var(--font-serif);
    font-weight: 500;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--matcha);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--matcha-deep);
    background: var(--matcha-deep);
    color: var(--paper);
    padding: 14px 26px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover {
    background: var(--matcha);
    border-color: var(--matcha);
}

.btn:active {
    transform: translateY(1px);
}

.btn-ghost {
    background: transparent;
    color: var(--matcha-deep);
}

.btn-ghost:hover {
    background: var(--matcha-deep);
    color: var(--paper);
}

.btn-small {
    padding: 9px 18px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 3px;
}

/* Sticky top */
.site-top-sticky {
    position: sticky;
    top: 0;
    z-index: 200;
}

.demo-ribbon {
    background: var(--matcha-night);
    color: var(--matcha-light);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    text-align: center;
    border-bottom: 3px solid var(--clay);
}

.demo-ribbon-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--clay);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 999px;
    white-space: nowrap;
}

.demo-ribbon-credit {
    color: #e6d9a8;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.header {
    background: rgba(243, 239, 228, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    position: relative;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.logo {
    font-size: 24px;
    letter-spacing: 0.3em;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.logo-kanji {
    font-size: 0.8em;
    letter-spacing: 0;
    color: var(--paper);
    background: var(--matcha);
    width: 1.6em;
    height: 1.6em;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
}

.menu {
    display: flex;
    gap: 32px;
    font-size: 15px;
    font-weight: 500;
}

.menu a {
    position: relative;
    padding: 4px 0;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--matcha);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}

.menu a:hover::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-menu {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--ink);
    padding: 4px 6px;
}

.side-menu {
    display: none;
}

/* Hero */
.hero {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 30%, rgba(111, 154, 46, 0.12), transparent 45%),
        var(--washi);
}

.hero-vertical {
    position: absolute;
    left: 2%;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: var(--font-serif);
    font-size: clamp(120px, 16vw, 220px);
    line-height: 1;
    color: var(--matcha);
    opacity: 0.07;
    pointer-events: none;
    user-select: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 48px;
    align-items: center;
    position: relative;
}

.hero h1 {
    font-size: clamp(38px, 4.8vw, 62px);
    line-height: 1.12;
    margin: 18px 0 22px;
    letter-spacing: -0.01em;
}

.hero h1 em {
    font-style: normal;
    color: var(--matcha);
    border-bottom: 3px solid var(--matcha-light);
}

.hero-sub {
    font-size: 18px;
    color: var(--ink-dim);
    max-width: 480px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 32px 0 44px;
}

.hero-facts {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--line);
    max-width: 520px;
}

.hero-facts div {
    flex: 1;
    padding: 18px 16px 0 0;
}

.hero-facts div + div {
    padding-left: 16px;
    border-left: 1px solid var(--line);
}

.hero-facts dt {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--matcha-deep);
}

.hero-facts dd {
    font-size: 13px;
    color: var(--ink-muted);
}

.hero-art {
    position: relative;
    max-width: 440px;
    justify-self: center;
    width: 100%;
}

.chawan {
    width: 100%;
    display: block;
}

.hero-disc {
    fill: var(--washi-deep);
}

.chasen {
    position: absolute;
    width: 22%;
    right: -2%;
    bottom: 6%;
    transform: rotate(18deg);
    filter: drop-shadow(0 8px 12px rgba(31, 42, 26, 0.18));
}

.foam circle {
    animation: foam 4s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

.foam circle:nth-child(2n) {
    animation-delay: -2s;
}

@keyframes foam {
    50% {
        transform: scale(1.4);
        opacity: 0.4;
    }
}

/* Section heads */
.section-head {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    margin-bottom: 48px;
    max-width: 640px;
}

.section-num {
    font-size: 15px;
    color: var(--matcha);
    border: 1px solid currentColor;
    border-radius: 50%;
    min-width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-top: 4px;
}

.section-head h2 {
    font-size: clamp(30px, 3.6vw, 42px);
    line-height: 1.2;
    margin-bottom: 8px;
}

.section-head p {
    color: var(--ink-dim);
}

.section-head.on-dark h2 {
    color: var(--paper);
}

.section-head.on-dark p {
    color: var(--matcha-light);
    opacity: 0.8;
}

.section-head.on-dark .section-num {
    color: var(--matcha-light);
}

/* Builder */
.builder {
    padding: 100px 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.builder-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 56px;
    align-items: start;
}

.builder-preview {
    position: sticky;
    top: 150px;
    background: var(--washi);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
}

.cup {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto 16px;
}

.cup * {
    transition: fill 0.45s ease, y 0.45s ease, height 0.45s ease, opacity 0.35s ease;
}

.tea-fill {
    fill: var(--tea-ceremonial);
}

#layer-milk {
    fill: #f1ead6;
}

#layer-blend {
    opacity: 0.55;
}

.summary-name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
}

.summary-detail {
    font-size: 14px;
    color: var(--ink-muted);
    min-height: 2.6em;
}

.summary-price {
    font-size: 36px;
    color: var(--matcha-deep);
    margin: 6px 0 16px;
}

.builder-steps {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.step {
    border: none;
    transition: opacity 0.3s;
}

.step legend {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step legend span {
    font-family: var(--font-serif);
    color: var(--matcha);
    font-size: 18px;
}

.step.is-disabled .options {
    opacity: 0.35;
    pointer-events: none;
}

.step-note {
    font-size: 13px;
    color: var(--clay);
    margin-top: 10px;
}

.options {
    display: grid;
    gap: 10px;
}

.options-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

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

.option {
    position: relative;
    cursor: pointer;
}

.option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 14px 14px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.option-body strong {
    font-size: 15px;
}

.option-body small {
    font-size: 12.5px;
    color: var(--ink-muted);
    line-height: 1.4;
}

.option-body em {
    font-style: normal;
    font-size: 13px;
    color: var(--matcha);
    font-weight: 700;
    margin-top: auto;
    padding-top: 6px;
}

.option:hover .option-body {
    border-color: var(--matcha);
}

.option input:checked + .option-body {
    border-color: var(--matcha-deep);
    background: var(--matcha-light);
    box-shadow: inset 0 0 0 1px var(--matcha-deep);
}

.option input:focus-visible + .option-body {
    outline: 2px solid var(--clay);
    outline-offset: 2px;
}

.option input:disabled + .option-body {
    opacity: 0.35;
    cursor: not-allowed;
}

.swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: block;
    margin-bottom: 6px;
}

.swatch-ceremonial {
    background: var(--tea-ceremonial);
}

.swatch-premium {
    background: var(--tea-premium);
}

.swatch-culinary {
    background: var(--tea-culinary);
}

/* Slider */
.slider {
    width: 100%;
    appearance: none;
    height: 4px;
    background: linear-gradient(90deg, var(--matcha-light), var(--matcha));
    border-radius: 4px;
    margin: 12px 0 10px;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--matcha-deep);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--matcha-deep);
    cursor: pointer;
}

.slider-scale {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--ink-muted);
}

.slider-scale span.is-active {
    color: var(--matcha-deep);
    font-weight: 700;
}

/* Grades */
.grades {
    padding: 100px 0;
}

.grades-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--ink);
}

.grade {
    padding: 32px 28px 8px;
}

.grade + .grade {
    border-left: 1px solid var(--line);
}

.grade-swatch {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12);
}

.grade h3 {
    font-size: 26px;
}

.grade-jp {
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: 22px;
}

.tasting {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.tasting div {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.tasting dt {
    color: var(--ink-dim);
}

.tasting dd {
    height: 6px;
    background: var(--washi-deep);
    border-radius: 3px;
    overflow: hidden;
}

.tasting dd span {
    display: block;
    height: 100%;
    width: var(--v);
    background: var(--matcha);
    border-radius: 3px;
}

.grade-use {
    font-size: 14.5px;
    color: var(--ink-dim);
}

/* Ritual */
.ritual {
    padding: 100px 0;
    background: var(--matcha-night);
    color: var(--matcha-light);
}

.ritual-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    counter-reset: step;
}

.ritual-steps li {
    padding: 0 28px 0 0;
    position: relative;
}

.ritual-steps li + li {
    padding-left: 28px;
    border-left: 1px solid rgba(223, 231, 196, 0.15);
}

.ritual-kanji {
    font-size: 54px;
    line-height: 1;
    color: #a9c45a;
    display: block;
    margin-bottom: 18px;
}

.ritual-steps h3 {
    font-size: 22px;
    color: var(--paper);
    margin-bottom: 8px;
}

.ritual-steps p {
    font-size: 15px;
    opacity: 0.8;
}

/* Voices */
.voices {
    padding: 90px 0;
    background: var(--washi-deep);
}

.voices-inner {
    max-width: 820px;
    text-align: center;
}

.disclaimer {
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: 26px;
}

.quote-track {
    display: grid;
}

.quote {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.5s, transform 0.5s, visibility 0.5s;
}

.quote.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.demo-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--clay);
    border: 1px solid var(--clay);
    padding: 2px 10px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.quote blockquote {
    font-family: var(--font-serif);
    font-size: clamp(22px, 2.8vw, 32px);
    line-height: 1.45;
}

.quote figcaption {
    margin-top: 18px;
    font-size: 14px;
    color: var(--ink-dim);
}

.quote-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.quote-dots button {
    width: 28px;
    height: 4px;
    border: none;
    border-radius: 2px;
    background: rgba(31, 42, 26, 0.18);
    padding: 0;
    transition: background 0.3s, width 0.3s;
}

.quote-dots button.is-active {
    background: var(--matcha-deep);
    width: 44px;
}

/* Visit */
.visit {
    padding: 100px 0;
}

.visit-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

.visit-address {
    font-style: normal;
    display: flex;
    gap: 14px;
    font-size: 18px;
    margin-bottom: 26px;
}

.visit-address i {
    color: var(--clay);
    margin-top: 5px;
}

.hours {
    border-collapse: collapse;
    width: 100%;
    max-width: 380px;
    margin-bottom: 26px;
}

.hours th,
.hours td {
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 15px;
}

.hours th {
    text-align: left;
    font-weight: 500;
    color: var(--ink-dim);
}

.hours td {
    text-align: right;
}

.visit-email {
    font-weight: 700;
    color: var(--matcha-deep);
    border-bottom: 1px solid currentColor;
}

.tasting-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 4px solid var(--matcha);
    padding: 36px 32px;
    border-radius: var(--radius);
}

.tasting-card h3 {
    font-size: 30px;
    margin: 8px 0 10px;
}

.tasting-card p {
    color: var(--ink-dim);
    font-size: 15px;
}

.tasting-price {
    font-size: 40px;
    color: var(--matcha-deep) !important;
    margin: 18px 0 20px;
}

.tasting-price span {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--ink-muted);
}

/* Footer */
.footer {
    background: var(--matcha-night);
    color: var(--matcha-light);
    padding: 48px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.footer-brand {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.3em;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: var(--paper);
}

.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 14px;
}

.footer-credit {
    font-size: 13px;
    opacity: 0.75;
}

.footer-credit a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Demo modal */
.demo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(29, 43, 21, 0.55);
    display: grid;
    place-items: center;
    padding: 20px;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.demo-overlay.open {
    opacity: 1;
    visibility: visible;
}

.demo-modal {
    background: var(--paper);
    max-width: 420px;
    width: 100%;
    padding: 36px 32px 30px;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    border-top: 4px solid var(--clay);
}

.demo-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--ink-muted);
}

.demo-icon {
    font-size: 30px;
    color: var(--clay);
    margin-bottom: 12px;
}

.demo-modal h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.demo-modal p {
    color: var(--ink-dim);
    font-size: 15px;
    margin-bottom: 22px;
}

/* Responsive */
@media (max-width: 1000px) {
    .builder-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .builder-preview {
        position: static;
        display: grid;
        grid-template-columns: 140px 1fr;
        gap: 20px;
        text-align: left;
        align-items: center;
    }

    .cup {
        margin: 0;
    }

    .options-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ritual-steps {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }

    .ritual-steps li:nth-child(3) {
        padding-left: 0;
        border-left: none;
    }
}

@media (max-width: 860px) {
    html {
        scroll-padding-top: 190px;
    }

    .menu,
    .header-actions .tasting-btn {
        display: none;
    }

    .btn-menu {
        display: block;
    }

    .side-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .side-menu.open {
        max-height: 320px;
    }

    .side-menu a {
        padding: 14px 24px;
        border-top: 1px solid var(--line);
        font-weight: 500;
    }

    .hero {
        padding: 48px 0 70px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-art {
        max-width: 300px;
        order: -1;
    }

    .grades-row {
        grid-template-columns: 1fr;
    }

    .grade + .grade {
        border-left: none;
        border-top: 1px solid var(--line);
    }

    .grade {
        padding: 28px 0 20px;
    }

    .visit-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hours {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 16px;
    }

    .demo-ribbon-text {
        font-size: 12.5px;
    }

    .section-head {
        flex-direction: column;
        gap: 14px;
    }

    .builder,
    .grades,
    .ritual,
    .visit {
        padding: 70px 0;
    }

    .builder-preview {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 22px;
    }

    .cup {
        max-width: 150px;
        margin: 0 auto;
    }

    .options-3 {
        grid-template-columns: 1fr;
    }

    .options-3 .option-body {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .options-3 .swatch {
        margin: 0;
    }

    .options-3 .option-body em {
        margin: 0 0 0 auto;
        padding: 0;
    }

    .slider-scale {
        font-size: 11px;
    }

    .ritual-steps {
        grid-template-columns: 1fr;
    }

    .ritual-steps li,
    .ritual-steps li + li {
        padding: 0 0 0 0;
        border-left: none;
    }

    .hero-facts dt {
        font-size: 22px;
    }

    .tasting-card {
        padding: 28px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
