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

:root {
    --teal:      #2d6d7d;
    --teal-deep: #1e4f5e;
    --yellow:    #f5b900;
    --yellow-deep: #e0a800;
    --cream:     #fff3e0;
    --ink:       #1a1a1a;
    --white:     #ffffff;
    --muted:     rgba(255, 255, 255, 0.75);
    --red:       #e63932;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--teal);
    color: var(--white);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.back-link {
    position: fixed;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 0.45rem 0.9rem;
    background: var(--white);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0.85;
    transition: opacity 0.3s, transform 0.3s;
}
.back-link:hover { opacity: 1; transform: translateY(-2px); }

/* =========================================================
   LOADER — Bowl filling with noodles + steam
   ========================================================= */
.loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.loader__scene {
    position: relative;
    width: 240px;
    height: 240px;
}

.loader__bowl {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
}
#noodles {
    transform-origin: center;
    will-change: transform;
}

.loader__steam {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    pointer-events: none;
}
.loader__steam span {
    position: absolute;
    bottom: 0;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    filter: blur(3px);
    will-change: transform, opacity;
}

.loader__meta {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--muted);
    text-transform: uppercase;
}
.loader__counter {
    color: var(--yellow);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 3ch;
}

/* =========================================================
   RASA SECTION
   ========================================================= */
.rasa {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 720px;
    overflow: hidden;
    background: var(--teal);
}

.split {
    position: absolute;
    inset: 0;
    will-change: transform;
}
.split--teal { background: var(--teal); z-index: 1; }
.split--yellow {
    background: var(--yellow);
    clip-path: polygon(70% 0, 100% 0, 100% 100%, 45% 100%);
    z-index: 2;
}
.split__texture {
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image:
        repeating-linear-gradient(115deg, transparent 0, transparent 8px, rgba(0, 0, 0, 0.02) 8px, rgba(0, 0, 0, 0.02) 9px),
        repeating-linear-gradient(25deg, transparent 0, transparent 12px, rgba(255, 255, 255, 0.02) 12px, rgba(255, 255, 255, 0.02) 13px);
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* ---------- Top nav ---------- */
.topnav {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.25rem 2.5rem;
}

.topnav__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    will-change: transform;
}
.topnav__logo-mark { width: 30px; height: 30px; }
.topnav__logo-mark svg { width: 100%; height: 100%; display: block; }
.topnav__logo-text em { color: var(--yellow); font-style: normal; }

.topnav__links {
    margin: 0 auto;
    display: flex;
    gap: 2rem;
}
.topnav__links a {
    position: relative;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.3rem 0;
    will-change: transform;
}
.topnav__links a.is-active { color: var(--white); }
.topnav__links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%; height: 2px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.topnav__links a.is-active::after,
.topnav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.topnav__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.topnav__icon {
    position: relative;
    width: 36px; height: 36px;
    background: transparent;
    border: none;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    will-change: transform;
    transition: color 0.3s;
}
.topnav__icon:hover { color: var(--yellow); }
.topnav__icon svg { width: 20px; height: 20px; }

.topnav__badge {
    position: absolute;
    top: -2px; right: -2px;
    width: 16px; height: 16px;
    background: var(--red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ---------- Left pagination ---------- */
.pagination {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 54px;
    background: var(--yellow);
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 0;
    will-change: transform;
}
.pagination__bar {
    position: absolute;
    bottom: 3rem;
    width: 1.5px;
    height: 120px;
    background: var(--white);
}
.pagination__nums {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--white);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}
.pagination__nums span {
    cursor: pointer;
    padding: 0.1rem 0;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
    display: inline-block;
}
.pagination__nums span.is-active { opacity: 1; font-weight: 700; transform: scale(1.3); }
.pagination__nums span:hover { opacity: 1; }

/* ---------- Right social ---------- */
.social {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 54px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}
.social__icon {
    position: relative;
    width: 40px; height: 40px;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
    background: transparent;
    will-change: transform;
    transition: color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.social__icon svg {
    width: 20px; height: 20px;
    position: relative;
    z-index: 2;
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.social__icon:hover {
    color: var(--white);
    background: var(--teal-deep);
    box-shadow: 0 6px 16px rgba(30, 79, 94, 0.5),
                0 0 0 2px rgba(255, 255, 255, 0.35);
}
.social__icon:hover svg { transform: scale(1.1); }

/* ---------- Hero ---------- */
.hero {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    padding: 5rem 6rem;
    align-items: center;
    pointer-events: none;
}
.hero > * { pointer-events: auto; }

.hero__content {
    max-width: 520px;
    color: var(--white);
}

.hero__script {
    display: inline-block;
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--yellow);
    font-weight: 700;
    margin-bottom: 0.5rem;
    will-change: transform;
}

.hero__title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 1.5rem;
}
.hero__line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.04em;
}
.hero__char {
    display: inline-block;
    will-change: transform, color;
    transition: color 0.3s ease;
}
.hero__char.is-space { width: 0.25em; }

.hero__desc {
    font-size: 0.85rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2rem;
    max-width: 420px;
}

.hero__links {
    display: flex;
    gap: 2rem;
}
.hero__link {
    position: relative;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    will-change: transform;
}
.hero__link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 2px;
    background: var(--yellow);
    transform-origin: left;
}
.hero__link:hover::after {
    animation: underlineSlide 0.8s ease;
}
@keyframes underlineSlide {
    0%   { transform: scaleX(1); transform-origin: right; }
    50%  { transform: scaleX(0); transform-origin: right; }
    51%  { transform: scaleX(0); transform-origin: left; }
    100% { transform: scaleX(1); transform-origin: left; }
}
.hero__link--alt::after { background: var(--white); }

/* ---------- Plate ---------- */
.plate-stage {
    position: relative;
    justify-self: center;
    width: clamp(320px, 42vw, 560px);
    aspect-ratio: 1;
    max-width: 100%;
}
.plate {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #f5e7d4;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35),
                inset 0 0 0 8px rgba(255, 255, 255, 0.5),
                inset 0 0 0 9px rgba(0, 0, 0, 0.1);
    will-change: transform;
}
.plate.is-fallback {
    background: radial-gradient(circle at 30% 30%, #f5e7d4 40%, #e0c9a6 100%);
}
.plate.is-fallback::after {
    content: '';
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 40%, #ffd788 0%, #f9a03f 50%, #a55f2a 100%);
    box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.3);
}
.plate img {
    width: 100%; height: 100%;
    object-fit: cover;
    user-select: none;
    transition: transform 0.6s ease;
}
.plate:hover img { transform: scale(1.05) rotate(-3deg); }

.thumb-badge {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 64px; height: 64px;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(230, 57, 50, 0.4);
    will-change: transform;
    z-index: 4;
    cursor: pointer;
}
.thumb-badge svg { width: 28px; height: 28px; }

/* ---------- Price block ---------- */
.price-block {
    position: absolute;
    bottom: 3rem;
    right: 6rem;
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.price-block__price {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1;
    color: var(--white);
    display: inline-flex;
    align-items: flex-start;
    letter-spacing: -0.02em;
}
.price-block__price em {
    font-size: 0.6em;
    font-style: normal;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-right: 0.05em;
    margin-top: 0.1em;
}
.price-block__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    will-change: transform;
}
.price-block__btn::before {
    content: '';
    position: absolute;
    left: 28px; right: 0; bottom: 0;
    height: 2px;
    background: var(--white);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.price-block__btn:hover::before { transform: scaleX(1.1); }
.price-block__btn svg { width: 18px; height: 18px; }

/* ---------- Initial states ---------- */
[data-magnetic], [data-link], [data-fade], [data-title-line] .hero__char,
[data-script], [data-plate], [data-thumb], [data-price], [data-pagination],
[data-social], [data-social-ico] {
    opacity: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .hero { padding: 4rem 5rem 3rem; grid-template-columns: 1fr; gap: 1rem; }
    .topnav { padding: 1rem 4rem; }
    .hero__content { max-width: 100%; }
    .plate-stage { width: 300px; margin: 0 auto; }
    .price-block { right: 5rem; bottom: 2rem; }
    .topnav__links { display: none; }
}
@media (max-width: 760px) {
    .pagination { width: 40px; padding: 2rem 0; gap: 0.5rem; }
    .pagination__nums { font-size: 0.75rem; margin-top: 3rem; }
    .pagination__bar { height: 80px; bottom: 2rem; }
    .social { width: 40px; gap: 1rem; }
    .social__icon svg { width: 18px; height: 18px; }
    .topnav { padding: 0.75rem 2.75rem; }
    .hero { padding: 4rem 3rem; }
    .hero__script { font-size: 1.5rem; }
    .hero__title { font-size: clamp(1.5rem, 6vw, 2.5rem); }
    .hero__desc { font-size: 0.75rem; }
    .hero__links { gap: 1.25rem; flex-wrap: wrap; }
    .plate-stage { width: 250px; }
    .thumb-badge { width: 46px; height: 46px; top: 8%; right: 2%; }
    .price-block { right: 3rem; bottom: 1.5rem; }
    .price-block__price { font-size: 2.5rem; }
}
@media (max-width: 480px) {
    .split--yellow { clip-path: polygon(50% 20%, 100% 0, 100% 100%, 0 100%); }
    .pagination { display: none; }
    .social { background: rgba(0, 0, 0, 0.15); }
    .topnav { padding: 0.75rem 1rem; }
    .topnav__logo-text { font-size: 1rem; }
    .hero { padding: 3.5rem 2rem 5rem; }
    .hero__desc { max-width: 100%; }
    .plate-stage { width: 200px; }
    .price-block { right: 1rem; left: auto; bottom: 1rem; flex-direction: row; gap: 0.75rem; }
    .price-block__price { font-size: 2rem; }
}
