:root {
    --bg: #fdf8f2;
    --bg-alt: #fff6ee;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --text: #231b16;
    --muted: #6c6057;
    --line: rgba(81, 58, 39, 0.12);
    --accent: #f47b20;
    --accent-deep: #d85e06;
    --accent-soft: rgba(244, 123, 32, 0.14);
    --rose: #ff8ca8;
    --rose-soft: rgba(255, 140, 168, 0.16);
    --sky: #82c9ff;
    --sky-soft: rgba(130, 201, 255, 0.18);
    --mint: #7fd0a6;
    --mint-soft: rgba(127, 208, 166, 0.16);
    --violet: #b7a0ff;
    --violet-soft: rgba(183, 160, 255, 0.16);
    --shadow: 0 24px 70px rgba(79, 49, 23, 0.1);
    --radius: 28px;
    --max-width: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Plus Jakarta Sans", sans-serif;
    background:
        radial-gradient(circle at 0% 0%, rgba(244, 123, 32, 0.13), transparent 24%),
        radial-gradient(circle at 100% 12%, rgba(130, 201, 255, 0.16), transparent 22%),
        radial-gradient(circle at 20% 100%, rgba(255, 140, 168, 0.14), transparent 26%),
        linear-gradient(180deg, #fffaf4 0%, #f8f2ea 100%);
    opacity: 0;
    transition: opacity 420ms ease;
}

body.is-ready {
    opacity: 1;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)),
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.5), transparent 36%);
    opacity: 0.55;
}

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

p,
h1,
h2,
h3,
h4 {
    margin-top: 0;
}

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

button,
input,
textarea {
    font: inherit;
}

code {
    padding: 0.12rem 0.36rem;
    border-radius: 8px;
    background: rgba(35, 27, 22, 0.06);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.92em;
}

.hidden {
    display: none !important;
}

.page {
    min-height: 100vh;
}

.shell {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
}

.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(16px);
    opacity: 0.7;
    animation: drift 16s ease-in-out infinite alternate;
}

.orb.one {
    top: 7%;
    left: -5%;
    width: 18rem;
    height: 18rem;
    background: radial-gradient(circle, rgba(244, 123, 32, 0.26), transparent 68%);
}

.orb.two {
    top: 18%;
    right: 4%;
    width: 16rem;
    height: 16rem;
    background: radial-gradient(circle, rgba(130, 201, 255, 0.3), transparent 70%);
    animation-delay: 1.8s;
}

.orb.three {
    bottom: 8%;
    left: 20%;
    width: 14rem;
    height: 14rem;
    background: radial-gradient(circle, rgba(255, 140, 168, 0.22), transparent 68%);
    animation-delay: 3.2s;
}

.orb.four {
    bottom: 12%;
    right: -2%;
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, rgba(127, 208, 166, 0.22), transparent 68%);
    animation-delay: 4.1s;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(255, 249, 242, 0.76);
    border-bottom: 1px solid rgba(81, 58, 39, 0.08);
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: grid;
    gap: 0.14rem;
}

.brand-mark,
.eyebrow,
.section-kicker,
.tiny-note,
.tag {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-mark {
    color: var(--accent-deep);
    font-weight: 800;
}

.brand-name {
    font-size: 1rem;
    font-weight: 600;
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.site-nav a {
    padding: 0.72rem 1rem;
    border-radius: 999px;
    color: var(--muted);
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--text);
    background: rgba(35, 27, 22, 0.06);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(81, 58, 39, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(79, 49, 23, 0.1);
}

.hero,
.page-hero,
.portal-stage {
    padding: 4.8rem 0 2rem;
}

.hero-grid,
.page-hero-grid,
.contact-grid,
.dashboard-grid,
.portal-grid,
.portal-layout,
.split-grid,
.cards-grid,
.summary-grid,
.page-links-grid,
.gallery-grid,
.social-grid,
.journey-grid {
    display: grid;
    gap: 1rem;
}

.hero-grid,
.page-hero-grid,
.contact-grid,
.dashboard-grid,
.portal-grid,
.portal-layout,
.split-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.92fr);
    align-items: stretch;
}

.cards-grid,
.summary-grid,
.page-links-grid,
.social-grid,
.journey-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.eyebrow,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(81, 58, 39, 0.08);
    color: var(--accent-deep);
    font-weight: 700;
}

.eyebrow::before,
.tag::before,
.project-meta span::before,
.signal-list li::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 0.22rem rgba(244, 123, 32, 0.12);
}

.display {
    margin: 1rem 0 1rem;
    font-family: "Fraunces", serif;
    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: 0.93;
    letter-spacing: -0.05em;
}

.display-accent {
    color: var(--accent);
}

.lede,
.section-copy,
.copy,
.muted,
.form-note,
.field-help,
.footer-note,
.card p,
.info-card p,
.project-card p,
.journey-card p,
.dashboard-panel p,
.shop-panel p,
.auth-card p,
.social-card p {
    color: var(--muted);
}

.cta-row,
.form-actions,
.inline-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.button,
.mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button {
    min-height: 3.25rem;
    padding: 0.9rem 1.35rem;
}

.mini-button {
    min-height: 2.35rem;
    padding: 0.56rem 0.92rem;
}

.button:hover,
.mini-button:hover,
.social-link:hover,
.page-link-card:hover,
.card:hover,
.summary-card:hover,
.gallery-card:hover {
    transform: translateY(-3px);
}

.button-primary,
.mini-button.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, #ff9c55 100%);
    box-shadow: 0 16px 30px rgba(244, 123, 32, 0.22);
}

.button-ghost,
.mini-button.ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(81, 58, 39, 0.12);
}

.mini-button.danger {
    color: #c34b32;
    background: #fff1ec;
    border-color: rgba(195, 75, 50, 0.18);
}

.card,
.hero-card,
.profile-card,
.info-card,
.summary-card,
.project-card,
.journey-card,
.gallery-card,
.form-card,
.side-card,
.auth-card,
.shop-panel,
.dashboard-panel,
.social-card,
.page-link-card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(81, 58, 39, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card::before,
.hero-card::before,
.profile-card::before,
.info-card::before,
.summary-card::before,
.project-card::before,
.journey-card::before,
.gallery-card::before,
.form-card::before,
.side-card::before,
.social-card::before,
.page-link-card::before {
    content: "";
    position: absolute;
    inset: auto -30% -60% auto;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 123, 32, 0.12), transparent 70%);
}

.hero-card,
.profile-card,
.form-card,
.side-card,
.auth-card,
.shop-panel,
.dashboard-panel,
.social-card,
.page-link-card {
    padding: 1.45rem;
}

.summary-card,
.info-card,
.project-card,
.journey-card,
.gallery-card {
    padding: 1.25rem;
}

.profile-card::after {
    content: "";
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(130, 201, 255, 0.22), transparent 70%);
    animation: pulse 4.6s ease-in-out infinite;
}

.profile-visual {
    position: relative;
    min-height: 370px;
    display: grid;
    place-items: center;
}

.portrait-circle {
    width: min(24rem, 72vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.26), transparent 22%),
        linear-gradient(180deg, #302621 0%, #1a1410 100%);
    box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.08), 0 28px 60px rgba(48, 33, 18, 0.16);
    display: grid;
    place-items: center;
    animation: bob 6s ease-in-out infinite;
}

.portrait-initials {
    font-family: "Fraunces", serif;
    font-size: clamp(4.2rem, 12vw, 7.2rem);
    letter-spacing: -0.08em;
    color: rgba(255, 255, 255, 0.94);
}

.floating-note {
    position: absolute;
    padding: 0.9rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(81, 58, 39, 0.08);
    box-shadow: 0 20px 40px rgba(69, 39, 16, 0.12);
    animation: float 5s ease-in-out infinite;
}

.floating-note.one {
    top: 1rem;
    left: 0.3rem;
}

.floating-note.two {
    right: 0.5rem;
    bottom: 2rem;
    animation-delay: 1.4s;
}

.floating-note strong {
    display: block;
    font-size: 0.98rem;
}

.marquee {
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(81, 58, 39, 0.08);
    padding: 0.95rem 0;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    min-width: max-content;
    animation: slide 18s linear infinite;
    padding-inline: 1.2rem;
}

.marquee-track span {
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}

.detail-list,
.signal-list,
.stack-list,
.item-list,
.cart-list,
.feed-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.signal-list,
.item-list,
.cart-list,
.feed-list,
.social-links {
    display: grid;
    gap: 0.8rem;
}

.detail-list {
    display: grid;
    gap: 0.8rem;
}

.detail-list li,
.item-row,
.cart-row,
.request-card,
.feed-row,
.social-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(81, 58, 39, 0.08);
}

.section {
    padding: 2rem 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-kicker {
    color: var(--accent-deep);
    font-weight: 800;
    margin: 0 0 0.55rem;
}

.section-title {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.summary-number {
    display: block;
    margin-top: 0.8rem;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.summary-card:nth-child(2)::before,
.gallery-card:nth-child(2n)::before,
.page-link-card:nth-child(2n)::before {
    background: radial-gradient(circle, rgba(130, 201, 255, 0.14), transparent 70%);
}

.summary-card:nth-child(3)::before,
.gallery-card:nth-child(3n)::before,
.page-link-card:nth-child(3n)::before {
    background: radial-gradient(circle, rgba(255, 140, 168, 0.14), transparent 70%);
}

.project-list {
    display: grid;
    gap: 1rem;
}

.project-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
    margin: 1rem 0;
}

.project-meta span,
.signal-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    color: var(--muted);
}

.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.stack-list li {
    padding: 0.5rem 0.78rem;
    border-radius: 999px;
    background: rgba(244, 123, 32, 0.1);
    color: #a2531c;
    border: 1px solid rgba(244, 123, 32, 0.12);
}

.social-links {
    display: grid;
    gap: 0.8rem;
}

.social-link {
    color: var(--text);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.social-link strong {
    display: block;
    margin-bottom: 0.12rem;
}

.social-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--accent-deep);
    background: var(--accent-soft);
}

.social-link small {
    color: var(--muted);
}

.page-link-card h3,
.social-card h3,
.summary-card h3,
.info-card h3,
.project-card h3,
.journey-card h3,
.gallery-card h3,
.form-card h3,
.side-card h3,
.auth-card h3,
.shop-panel h3,
.dashboard-panel h3 {
    margin-bottom: 0.7rem;
    font-size: 1.16rem;
}

.page-link-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.gallery-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.85)),
        radial-gradient(circle at top left, rgba(244, 123, 32, 0.2), transparent 40%),
        radial-gradient(circle at bottom right, rgba(130, 201, 255, 0.22), transparent 40%),
        var(--surface-strong);
}

.gallery-card.tall {
    min-height: 320px;
}

.shopping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.product-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(81, 58, 39, 0.08);
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(79, 49, 23, 0.14);
}

.product-media {
    aspect-ratio: 1 / 1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.75)),
        radial-gradient(circle at top left, rgba(130, 201, 255, 0.2), transparent 35%),
        #f9f4ee;
    overflow: hidden;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-body {
    padding: 1rem;
    display: grid;
    gap: 0.8rem;
}

.product-body h3 {
    margin-bottom: 0;
}

.product-meta-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.price {
    font-weight: 800;
    color: var(--accent-deep);
}

.source-link {
    font-size: 0.9rem;
    color: var(--accent-deep);
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.cart-shell {
    display: grid;
    gap: 1rem;
}

.cart-panel {
    display: grid;
    gap: 0.8rem;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(244, 123, 32, 0.1);
}

.qty-control button {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(79, 49, 23, 0.08);
}

.cart-total {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(244, 123, 32, 0.08);
    border: 1px solid rgba(244, 123, 32, 0.12);
}

.cart-total strong {
    display: block;
    font-size: 1.4rem;
    margin-top: 0.35rem;
}

.import-grid {
    display: grid;
    gap: 1rem;
}

.status-note {
    min-height: 1.4rem;
    color: var(--accent-deep);
    font-size: 0.95rem;
}

.two-col-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.contact-form {
    display: grid;
    gap: 0.9rem;
}

.field-group {
    display: grid;
    gap: 0.45rem;
}

.field-group label {
    font-size: 0.92rem;
    font-weight: 600;
}

.field-group input,
.field-group textarea {
    width: 100%;
    padding: 0.92rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(81, 58, 39, 0.12);
    background: rgba(255, 255, 255, 0.86);
    color: var(--text);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field-group input:focus,
.field-group textarea:focus {
    outline: none;
    border-color: rgba(244, 123, 32, 0.38);
    box-shadow: 0 0 0 0.18rem rgba(244, 123, 32, 0.12);
}

.form-status {
    min-height: 1.4rem;
    color: #a34c18;
}

.auth-card {
    max-width: 560px;
}

.pin-field {
    text-align: center;
    letter-spacing: 0.28em;
}

.portal-box {
    transition: opacity 320ms ease, transform 320ms ease;
}

.portal-box.hidden {
    opacity: 0;
    transform: translateY(10px);
}

.footer {
    padding: 2rem 0 3rem;
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(81, 58, 39, 0.1);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 520ms ease, transform 520ms ease;
}

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

.secret-panel {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    width: min(320px, calc(100vw - 2rem));
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(81, 58, 39, 0.12);
    box-shadow: 0 24px 60px rgba(79, 49, 23, 0.16);
    backdrop-filter: blur(16px);
}

.secret-panel.hidden {
    display: none !important;
}

.secret-panel h3 {
    margin-bottom: 0.45rem;
}

.secret-panel p {
    margin-bottom: 0.9rem;
    color: var(--muted);
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(0.96);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes drift {
    from {
        transform: translate3d(0, 0, 0) scale(0.96);
    }
    to {
        transform: translate3d(32px, -18px, 0) scale(1.08);
    }
}

@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-33%);
    }
}

@media (max-width: 960px) {
    .hero-grid,
    .page-hero-grid,
    .contact-grid,
    .dashboard-grid,
    .portal-grid,
    .portal-layout,
    .split-grid,
    .cards-grid,
    .summary-grid,
    .page-links-grid,
    .gallery-grid,
    .social-grid,
    .journey-grid {
        grid-template-columns: 1fr;
    }

    .header-bar,
    .section-head,
    .footer-bar,
    .project-top {
        flex-direction: column;
        align-items: start;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        width: 100%;
        padding-top: 0.4rem;
        justify-content: flex-start;
        gap: 0.55rem;
    }

    .site-header.nav-open .site-nav {
        display: flex;
    }
}

@media (max-width: 640px) {
    .hero,
    .page-hero,
    .portal-stage {
        padding-top: 3rem;
    }

    .display {
        font-size: clamp(2.8rem, 16vw, 4.4rem);
    }

    .button,
    .site-nav a {
        width: 100%;
    }

    .floating-note {
        position: static;
        animation: none;
    }

    .profile-visual {
        gap: 1rem;
    }

    .two-col-fields {
        grid-template-columns: 1fr;
    }
}
