/* ============================================================
   riron.xyz — Memphis Bold Shapes Stylesheet
   Colors: #ff6b9d #ffd93d #4ecdc4 #ff8a5c #2c003e #fef9ef #e0dcd4
   Fonts: Rubik (display), Karla (body), Pacifico (accent)
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --pink:   #ff6b9d;
    --yellow: #ffd93d;
    --teal:   #4ecdc4;
    --coral:  #ff8a5c;
    --violet: #2c003e;
    --cream:  #fef9ef;
    --ash:    #e0dcd4;

    --font-display: 'Rubik', sans-serif;
    --font-body:    'Karla', sans-serif;
    --font-accent:  'Pacifico', cursive;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--violet);
    background-color: var(--cream);
    background-image: radial-gradient(circle, var(--ash) 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    overflow-x: hidden;
    position: relative;
}

/* ---------- TYPOGRAPHY HELPERS ---------- */
.font-accent {
    font-family: var(--font-accent);
    font-weight: 400;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.15;
}

/* ---------- FLOATING SHAPES LAYER ---------- */
.floaters {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    pointer-events: none;
}

/* Circles */
.shape-circle {
    border-radius: 50%;
}

.shape-c1 {
    width: 340px;
    height: 340px;
    background: #ff6b9d;
    border: 3px solid #4ecdc4;
    top: 5%;
    left: -80px;
    opacity: 0.18;
    animation: drift1 22s ease-in-out infinite alternate;
}

.shape-c2 {
    width: 250px;
    height: 250px;
    background: #ffd93d;
    border: 3px solid #ff8a5c;
    top: 35%;
    right: -60px;
    opacity: 0.20;
    animation: drift2 18s ease-in-out infinite alternate;
}

.shape-c3 {
    width: 180px;
    height: 180px;
    background: #4ecdc4;
    border: 3px solid #ff6b9d;
    bottom: 15%;
    left: 10%;
    opacity: 0.22;
    animation: drift3 25s ease-in-out infinite alternate;
}

/* Triangles */
.shape-tri {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.shape-t1 {
    width: 280px;
    height: 280px;
    background: #ffd93d;
    top: 60%;
    right: 5%;
    opacity: 0.17;
    animation: drift4 20s ease-in-out infinite alternate;
}

.shape-t2 {
    width: 200px;
    height: 200px;
    background: #ff8a5c;
    top: 20%;
    left: 40%;
    opacity: 0.13;
    animation: drift1 28s ease-in-out infinite alternate;
}

.shape-t3 {
    width: 150px;
    height: 150px;
    background: #ff6b9d;
    bottom: 35%;
    right: 25%;
    opacity: 0.15;
    animation: drift2 16s ease-in-out infinite alternate;
}

/* Rectangles */
.shape-rect {
    border-radius: 4px;
}

.shape-r1 {
    width: 120px;
    height: 120px;
    background: #4ecdc4;
    border: 3px solid #2c003e;
    top: 45%;
    left: 5%;
    opacity: 0.18;
    transform: rotate(22deg);
    animation: drift3 19s ease-in-out infinite alternate;
}

.shape-r2 {
    width: 90px;
    height: 90px;
    background: #ff6b9d;
    border: 3px solid #ffd93d;
    bottom: 10%;
    right: 8%;
    opacity: 0.20;
    transform: rotate(-15deg);
    animation: drift4 23s ease-in-out infinite alternate;
}

/* Zigzag lines */
.shape-zz {
    width: 300px;
    height: 40px;
}

.shape-z1 {
    top: 70%;
    left: 30%;
    opacity: 0.25;
    animation: drift2 17s ease-in-out infinite alternate;
}

.shape-z2 {
    top: 12%;
    right: 10%;
    opacity: 0.22;
    animation: drift1 21s ease-in-out infinite alternate;
}

/* ---------- DRIFT ANIMATIONS ---------- */
@keyframes drift1 {
    from { transform: translate(0, 0) rotate(0deg); }
    to   { transform: translate(30px, -20px) rotate(10deg); }
}

@keyframes drift2 {
    from { transform: translate(0, 0) rotate(5deg); }
    to   { transform: translate(-25px, 18px) rotate(-8deg); }
}

@keyframes drift3 {
    from { transform: translate(0, 0) rotate(-3deg); }
    to   { transform: translate(20px, 25px) rotate(12deg); }
}

@keyframes drift4 {
    from { transform: translate(0, 0) rotate(0deg); }
    to   { transform: translate(-30px, -15px) rotate(-12deg); }
}

@media (prefers-reduced-motion: reduce) {
    .shape, .hs, .ms, .fs {
        animation: none !important;
    }
}

/* ---------- DIAGONAL BANNER ---------- */
.banner-wrap {
    overflow: visible;
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.diagonal-banner {
    display: inline-block;
    padding: 0.55rem 3.5rem;
    transform: rotate(-3deg);
    position: relative;
    left: -2rem;
}

.banner-pink   { background: var(--pink);   color: var(--cream); }
.banner-yellow { background: var(--yellow); color: var(--violet); }
.banner-teal   { background: var(--teal);   color: var(--violet); }
.banner-coral  { background: var(--coral);  color: var(--cream); }
.banner-violet { background: var(--violet); color: var(--cream); }

.banner-label {
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.section-title-wrap {
    margin-bottom: 3rem;
    overflow: hidden;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
    z-index: 1;
    overflow: hidden;
}

.hero-inner {
    max-width: 680px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--violet);
    margin-bottom: 1.5rem;
}

.hero-title-sub {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--pink);
    display: block;
}

.hero-desc {
    font-size: 1.2rem;
    max-width: 520px;
    color: var(--violet);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hs {
    position: absolute;
}

.hs-big-circle {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--yellow);
    border: 4px solid var(--coral);
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.35;
    animation: drift1 24s ease-in-out infinite alternate;
}

.hs-triangle {
    width: 320px;
    height: 320px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: var(--pink);
    right: 200px;
    bottom: 0;
    opacity: 0.25;
    animation: drift2 19s ease-in-out infinite alternate;
}

.hs-small-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--teal);
    border: 3px solid var(--violet);
    right: 80px;
    top: 80px;
    opacity: 0.30;
    animation: drift3 16s ease-in-out infinite alternate;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    padding: 0.85rem 2.2rem;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: 3px solid var(--violet);
    transition: transform 0.15s ease, background 0.15s ease;
    position: relative;
    z-index: 2;
}

.btn:hover {
    transform: translate(-3px, -3px);
}

.btn-primary {
    background: var(--pink);
    color: var(--cream);
}

.btn-primary:hover {
    background: var(--yellow);
    color: var(--violet);
}

.btn-secondary {
    background: var(--yellow);
    color: var(--violet);
}

.btn-secondary:hover {
    background: var(--teal);
    color: var(--violet);
}

/* ---------- ZIGZAG DIVIDERS ---------- */
.zz-divider {
    width: 100%;
    height: 40px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.zz-divider svg {
    width: 100%;
    height: 100%;
}

/* ---------- SECTION: IDEAS GRID ---------- */
.section-grid {
    position: relative;
    padding: 4rem 2rem 5rem;
    z-index: 1;
}

.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card spanning */
.card-span2 {
    grid-column: span 2;
}

.card {
    border: 3px solid var(--violet);
    border-radius: 6px;
    padding: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 6px 6px 0 var(--violet);
}

.card-violet {
    background: var(--violet);
    color: var(--cream);
}

.card-violet .card-tag {
    color: var(--yellow);
}

.card-teal {
    background: var(--teal);
    color: var(--violet);
}

.card-pink {
    background: var(--pink);
    color: var(--cream);
}

.card-coral {
    background: var(--coral);
    color: var(--cream);
}

.card-yellow {
    background: var(--yellow);
    color: var(--violet);
}

.card-inner {
    position: relative;
    z-index: 1;
}

.card-tag {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

.card-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    margin-bottom: 0.85rem;
}

.card-body {
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-icon {
    position: absolute;
    bottom: 1rem;
    right: 1.25rem;
    font-size: 2.5rem;
    opacity: 0.25;
}

/* ---------- SECTION: MANIFESTO ---------- */
.section-manifesto {
    position: relative;
    padding: 5rem 2rem;
    background: var(--violet);
    color: var(--cream);
    z-index: 1;
    overflow: hidden;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.manifesto-left {
    position: relative;
}

.manifesto-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ms {
    position: absolute;
}

.ms-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--pink);
    border: 3px solid var(--yellow);
    top: 40px;
    left: -40px;
    opacity: 0.35;
    animation: drift2 20s ease-in-out infinite alternate;
}

.ms-tri {
    width: 160px;
    height: 160px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: var(--teal);
    bottom: -20px;
    right: -20px;
    opacity: 0.30;
    animation: drift4 17s ease-in-out infinite alternate;
}

.pull-quote {
    font-size: 1.6rem;
    line-height: 1.4;
    color: var(--yellow);
    margin-bottom: 2rem;
    border-left: 4px solid var(--pink);
    padding-left: 1.25rem;
}

.manifesto-list {
    list-style: none;
    counter-reset: manifesto;
    margin-bottom: 2.5rem;
}

.manifesto-list li {
    counter-increment: manifesto;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.manifesto-list li::before {
    content: counter(manifesto, decimal-leading-zero);
    font-family: var(--font-accent);
    font-size: 1.2rem;
    color: var(--pink);
    min-width: 2.2rem;
}

/* ---------- SECTION: WORKS ---------- */
.section-works {
    position: relative;
    padding: 4rem 2rem 5rem;
    z-index: 1;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

.work-item {
    border: 3px solid var(--violet);
    border-radius: 6px;
    padding: 2rem 1.75rem;
    background: var(--cream);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.work-item:hover {
    transform: translate(-4px, -4px);
    box-shadow: 6px 6px 0 var(--violet);
}

.work-item--large {
    grid-column: span 2;
    background: var(--pink);
    color: var(--cream);
}

.work-item--large .work-number {
    color: var(--yellow);
}

.work-item--accent {
    background: var(--teal);
}

.work-number {
    font-size: 1.4rem;
    color: var(--pink);
    margin-bottom: 0.5rem;
}

.work-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
    color: inherit;
}

.work-item--large .work-title { color: var(--cream); }

.work-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.work-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--violet);
    color: var(--cream);
    border-radius: 99px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.work-item--large .work-tag {
    background: var(--cream);
    color: var(--violet);
}

/* ---------- SECTION: EXPAND ---------- */
.section-expand {
    position: relative;
    padding: 4rem 2rem 5rem;
    z-index: 1;
}

.expand-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.expand-item {
    border-top: 3px solid var(--violet);
}

.expand-item:last-child {
    border-bottom: 3px solid var(--violet);
}

.expand-trigger {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1.25rem 0.5rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--violet);
    text-align: left;
    transition: color 0.15s ease;
}

.expand-trigger:hover {
    color: var(--pink);
}

.expand-icon {
    font-size: 1.6rem;
    font-weight: 800;
    min-width: 1.6rem;
    text-align: center;
    transition: transform 0.25s ease;
    display: inline-block;
}

.expand-item[data-open="true"] .expand-icon {
    transform: rotate(45deg);
}

.expand-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 0.5rem;
}

.expand-body.is-open {
    max-height: 300px;
    padding: 0 0.5rem 1.5rem;
}

.expand-body p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--violet);
}

/* ---------- FOOTER ---------- */
.site-footer {
    position: relative;
    background: var(--violet);
    color: var(--cream);
    padding: 4rem 2rem 3rem;
    overflow: hidden;
    z-index: 1;
}

.footer-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.fs {
    position: absolute;
}

.fs-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--pink);
    opacity: 0.12;
    right: -80px;
    bottom: -60px;
}

.fs-tri {
    width: 200px;
    height: 200px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: var(--teal);
    opacity: 0.15;
    left: 10%;
    bottom: -30px;
}

.footer-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.footer-kanji {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--yellow);
}

.footer-domain {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--pink);
}

.footer-note {
    font-size: 1rem;
    color: var(--ash);
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--teal);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.footer-nav a:hover {
    color: var(--yellow);
}

.footer-sep {
    color: var(--ash);
    font-size: 0.65rem;
}

/* ---------- CONFETTI ---------- */
.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 9999;
    border-radius: 2px;
    animation: confetti-fly 0.6s ease-out forwards;
}

@keyframes confetti-fly {
    0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) rotate(var(--dr)); opacity: 0; }
}

/* ---------- RESPONSIVE: MOBILE ---------- */
@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
        padding: 5rem 1.25rem 3rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-shapes {
        display: none;
    }

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

    .card-span2 {
        grid-column: span 1;
    }

    .manifesto-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .manifesto-left {
        display: none;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .work-item--large {
        grid-column: span 1;
    }

    .diagonal-banner {
        transform: rotate(0deg);
        left: 0;
    }

    .floaters .shape {
        display: none;
    }

    .floaters .shape-c1,
    .floaters .shape-c2,
    .floaters .shape-t1 {
        display: block;
        width: 150px;
        height: 150px;
    }

    .section-grid,
    .section-works,
    .section-expand,
    .section-manifesto {
        padding: 3rem 1.25rem 4rem;
    }
}
