/* simulai.tech - evolved-minimal portfolio with art-deco finish */

:root {
    --deep-navy: #0f1428;
    --metallic-silver: #8a9ab8;
    --deco-gold: #c4a868;
    --watercolor-teal: #4a8a88;
    --muted-rose: #9a6a6a;
    --ice-white: #e4e8f0;
    --steel-blue: #2a3a54;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--deep-navy);
    color: var(--metallic-silver);
    font-family: "Source Sans 3", system-ui, sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.75;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.mono {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
}

/* ============== ORGANIC BLOBS ============== */

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

.blob {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, rgba(74, 138, 136, 0.18), rgba(42, 58, 84, 0.32) 60%, transparent 80%);
    opacity: 0.55;
    filter: blur(20px);
    will-change: transform, border-radius;
}

.blob--1 {
    width: 480px; height: 480px;
    top: 8%; left: -10%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-morph-a 28s ease-in-out infinite, blob-drift-a 60s ease-in-out infinite;
}

.blob--2 {
    width: 360px; height: 360px;
    top: 38%; right: -8%;
    background: radial-gradient(circle at 30% 30%, rgba(196, 168, 104, 0.14), rgba(15, 20, 40, 0.5) 60%, transparent 80%);
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
    animation: blob-morph-b 32s ease-in-out infinite, blob-drift-b 70s ease-in-out infinite;
}

.blob--3 {
    width: 420px; height: 420px;
    top: 70%; left: 10%;
    background: radial-gradient(circle at 30% 30%, rgba(154, 106, 106, 0.14), rgba(15, 20, 40, 0.5) 60%, transparent 80%);
    border-radius: 50% 50% 70% 30% / 30% 60% 40% 70%;
    animation: blob-morph-a 36s ease-in-out infinite reverse, blob-drift-a 80s ease-in-out infinite reverse;
}

.blob--4 {
    width: 320px; height: 320px;
    top: 90%; right: 14%;
    border-radius: 40% 60% 60% 40% / 70% 40% 60% 30%;
    animation: blob-morph-b 30s ease-in-out infinite reverse, blob-drift-b 65s ease-in-out infinite reverse;
}

@keyframes blob-morph-a {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50%      { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}
@keyframes blob-morph-b {
    0%, 100% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; }
    50%      { border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%; }
}
@keyframes blob-drift-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, -30px) scale(1.06); }
}
@keyframes blob-drift-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-30px, 40px) scale(1.04); }
}

/* ============== HERO ============== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 6vw;
    z-index: 2;
    overflow: hidden;
}

.hero__wash {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(74, 138, 136, 0.18) 0%, transparent 55%);
    opacity: 0;
    animation: wash-in 1200ms ease-out 2200ms forwards;
    pointer-events: none;
}

@keyframes wash-in {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

.hero__deco {
    position: absolute;
    width: 80px;
    height: 200px;
    top: 50%;
    transform: translateY(-50%);
}

.hero__deco--left  { left: clamp(20px, 6vw, 100px); }
.hero__deco--right { right: clamp(20px, 6vw, 100px); }

.hero__deco .dline {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: draw-stroke 900ms ease-out forwards;
}

.hero__deco .dline:nth-child(1) { animation-delay: 500ms; }
.hero__deco .dline:nth-child(2) { animation-delay: 600ms; }
.hero__deco .dline:nth-child(3) { animation-delay: 700ms; }
.hero__deco .dline:nth-child(4) { animation-delay: 850ms; }
.hero__deco .dline:nth-child(5) { animation-delay: 1000ms; }
.hero__deco .dline:nth-child(6) { animation-delay: 1100ms; }

@keyframes draw-stroke {
    0%   { stroke-dashoffset: 800; }
    100% { stroke-dashoffset: 0; }
}

.hero__content {
    position: relative;
    max-width: 880px;
    z-index: 2;
}

.hero__eyebrow {
    color: var(--deco-gold);
    margin-bottom: 28px;
    opacity: 0;
    animation: fade-in 800ms ease-out 1000ms forwards;
}

.hero__title {
    font-family: "Poiret One", "Josefin Sans", sans-serif;
    font-weight: 400;
    font-size: clamp(42px, 8vw, 110px);
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--ice-white);
    margin-bottom: 28px;
    background: linear-gradient(110deg,
        var(--ice-white) 0%,
        var(--metallic-silver) 35%,
        var(--ice-white) 50%,
        var(--metallic-silver) 65%,
        var(--ice-white) 100%);
    background-size: 250% auto;
    background-position: -100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fade-in 800ms ease-out 1400ms forwards, shimmer 4s ease-in-out 2200ms infinite;
}

.hero__title-dot { color: var(--deco-gold); -webkit-text-fill-color: var(--deco-gold); }

@keyframes shimmer {
    0%   { background-position: -100% 0; }
    50%  { background-position: 200% 0; }
    100% { background-position: -100% 0; }
}

.hero__lede {
    color: var(--metallic-silver);
    max-width: 560px;
    margin: 0 auto 32px;
    opacity: 0;
    animation: fade-in 800ms ease-out 2400ms forwards;
}

.hero__line {
    width: 1px;
    height: 40px;
    background: var(--deco-gold);
    margin: 0 auto 18px;
    opacity: 0;
    animation: line-grow 600ms ease-out 2800ms forwards;
    transform-origin: top;
    transform: scaleY(0);
}

@keyframes line-grow {
    0%   { opacity: 0; transform: scaleY(0); }
    100% { opacity: 1; transform: scaleY(1); }
}

.hero__byline {
    color: var(--deco-gold);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 11px;
    opacity: 0;
    animation: fade-in 800ms ease-out 3000ms forwards;
}

@keyframes fade-in {
    0%   { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============== SECTION SHARED ============== */

.section__num {
    color: var(--deco-gold);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 11px;
    margin-bottom: 18px;
    display: inline-block;
}

.section__title {
    font-family: "Poiret One", sans-serif;
    font-weight: 400;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: 0.04em;
    color: var(--ice-white);
    margin-bottom: 18px;
}

.section__sub {
    color: var(--metallic-silver);
    max-width: 56ch;
    font-size: clamp(15px, 1.4vw, 17px);
}

/* ============== ESSAY ============== */

.essay {
    position: relative;
    z-index: 2;
    padding: 12vh 6vw;
    background: linear-gradient(180deg, transparent, rgba(15, 20, 40, 0.6));
}

.essay__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.essay__small {
    color: var(--deco-gold);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 11px;
    margin-bottom: 22px;
}

.essay__heading {
    font-family: "Poiret One", sans-serif;
    font-weight: 400;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: var(--ice-white);
    margin-bottom: 28px;
}

.essay__body {
    color: var(--metallic-silver);
    margin-bottom: 18px;
    font-size: clamp(16px, 1.4vw, 18px);
}

.essay__body:last-child { margin-bottom: 0; }

/* ============== PORTFOLIO ============== */

.portfolio {
    position: relative;
    z-index: 2;
    padding: 12vh 4vw 12vh;
}

.portfolio__heading {
    max-width: 1200px;
    margin: 0 auto 64px;
    padding: 0 2vw;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2vw;
}

@media (max-width: 800px) {
    .portfolio__grid { grid-template-columns: 1fr; }
}

.card {
    background: var(--steel-blue);
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(196, 168, 104, 0.18);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 500ms ease,
                box-shadow 400ms ease,
                border-color 400ms ease;
}

.card.is-in {
    transform: translateY(0);
    opacity: 1;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(196, 168, 104, 0.08) 50%, transparent 70%);
    background-size: 250% 100%;
    background-position: -100% 0;
    pointer-events: none;
    transition: background-position 800ms ease;
}

.card:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    border-color: rgba(196, 168, 104, 0.4);
}

.card:hover::before {
    background-position: 200% 0;
}

.card__deco {
    height: 30px;
    margin-bottom: 24px;
    opacity: 0.85;
}

.card__deco svg {
    width: 100%;
    height: 100%;
}

.card.is-in .card__deco .dline {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: draw-stroke 900ms ease-out 200ms forwards;
}

.card__watercolor {
    position: absolute;
    top: 0; right: 0;
    width: 220px;
    height: 180px;
    pointer-events: none;
    opacity: 0.45;
    filter: blur(18px);
}

.card__watercolor--river {
    background: radial-gradient(ellipse at 60% 40%, var(--watercolor-teal), transparent 60%);
}
.card__watercolor--root {
    background: radial-gradient(ellipse at 70% 50%, var(--muted-rose), transparent 60%);
}
.card__watercolor--weather {
    background: radial-gradient(ellipse at 50% 50%, var(--metallic-silver), transparent 60%);
}
.card__watercolor--lattice {
    background: radial-gradient(ellipse at 70% 30%, var(--deco-gold), transparent 60%);
}

.card__num {
    color: var(--deco-gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
}

.card__title {
    font-family: "Poiret One", "Josefin Sans", sans-serif;
    font-weight: 400;
    font-size: clamp(26px, 2.6vw, 36px);
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: var(--ice-white);
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.card__desc {
    color: var(--metallic-silver);
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(196, 168, 104, 0.18);
}

.card__meta .mono {
    color: var(--metallic-silver);
    opacity: 0.8;
}

/* ============== SPEC ============== */

.spec {
    position: relative;
    z-index: 2;
    padding: 12vh 6vw;
    background: linear-gradient(180deg, transparent, rgba(42, 58, 84, 0.4));
}

.spec__heading {
    max-width: 720px;
    margin: 0 auto 56px;
}

.spec__grid {
    max-width: 720px;
    margin: 0 auto;
    border-top: 1px solid rgba(196, 168, 104, 0.25);
}

.spec__row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(196, 168, 104, 0.18);
    transition: background 300ms ease, padding-left 300ms ease;
}

.spec__row:hover {
    background: rgba(196, 168, 104, 0.04);
    padding-left: 8px;
}

@media (max-width: 600px) {
    .spec__row { grid-template-columns: 1fr; gap: 6px; }
}

.spec__key {
    color: var(--deco-gold);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.spec__val { color: var(--ice-white); }

/* ============== COLOPHON ============== */

.colophon {
    position: relative;
    z-index: 2;
    padding: 12vh 6vw 8vh;
    text-align: center;
    background: var(--deep-navy);
}

.colophon__inner {
    max-width: 600px;
    margin: 0 auto;
}

.colophon__deco {
    margin-bottom: 28px;
    height: 30px;
    opacity: 0.8;
}

.colophon__deco svg {
    width: 100%;
    max-width: 240px;
    height: 100%;
    margin: 0 auto;
    display: block;
}

.colophon__deco .dline {
    stroke-dasharray: 600;
    stroke-dashoffset: 0;
}

.colophon__title {
    font-family: "Poiret One", "Josefin Sans", sans-serif;
    font-weight: 400;
    font-size: clamp(28px, 4vw, 48px);
    color: var(--ice-white);
    margin-bottom: 18px;
    letter-spacing: 0.04em;
}

.colophon__body {
    color: var(--metallic-silver);
    margin-bottom: 28px;
    font-size: 15px;
}

.colophon__line {
    color: var(--deco-gold);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 11px;
}
