:root {
    --ink: #17152b;
    --ink-soft: #32304a;
    --paper: #fbf7f0;
    --paper-2: #f3ede5;
    --violet: #6f5bd3;
    --violet-dark: #4d3ca5;
    --gold: #e0a83d;
    --pink: #d8739a;
    --blue: #5f8fbe;
    --green: #7d9c8b;
    --line: rgba(23, 21, 43, .12);
    --shadow: 0 24px 70px rgba(35, 28, 62, .11);
    --radius: 30px;
    --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 8%, rgba(216,115,154,.09), transparent 24rem),
        radial-gradient(circle at 87% 15%, rgba(95,143,190,.10), transparent 26rem),
        var(--paper);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    opacity: .32;
    background-image: radial-gradient(rgba(23,21,43,.22) .6px, transparent .6px);
    background-size: 19px 19px;
    mask-image: linear-gradient(to bottom, #000, transparent 62%);
}

a { color: inherit; }
.rich-copy a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.section-pad {
    width: min(var(--max), calc(100% - 56px));
    margin-inline: auto;
}

.site-header {
    width: min(var(--max), calc(100% - 56px));
    margin: 20px auto 0;
    min-height: 74px;
    padding: 12px 16px 12px 18px;
    border: 1px solid rgba(23,21,43,.08);
    border-radius: 24px;
    background: rgba(251,247,240,.78);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 14px;
    z-index: 20;
    box-shadow: 0 14px 50px rgba(23,21,43,.06);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    font-weight: 760;
    letter-spacing: -.03em;
}

.brand-monogram {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--paper);
    background: var(--ink);
    font-size: .92rem;
    position: relative;
}
.brand-monogram::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    position: absolute;
    right: 6px;
    top: 6px;
}
.brand-name { font-size: 1.02rem; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    text-decoration: none;
    font-size: .9rem;
    font-weight: 650;
    padding: 11px 14px;
    border-radius: 13px;
    color: var(--ink-soft);
    transition: .2s ease;
}
.main-nav a:hover { background: rgba(111,91,211,.09); color: var(--violet-dark); }
.menu-toggle { display: none; }

.hero {
    min-height: 760px;
    display: grid;
    grid-template-columns: 1.06fr .94fr;
    gap: 70px;
    align-items: center;
    padding-top: 92px;
    padding-bottom: 106px;
}
.hero-copy { max-width: 710px; }
.hero-kicker, .section-label {
    margin: 0 0 18px;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 830;
    color: var(--violet-dark);
}
.hero h1 {
    margin: 0;
    max-width: 800px;
    font-size: clamp(3rem, 5.5vw, 5.75rem);
    line-height: .97;
    letter-spacing: -.065em;
    font-weight: 850;
}
.hero-text {
    margin: 28px 0 0;
    max-width: 660px;
    font-size: clamp(1.08rem, 1.6vw, 1.33rem);
    line-height: 1.7;
    color: var(--ink-soft);
}
.hero-text > :first-child { margin-top: 0; }
.hero-text > :last-child { margin-bottom: 0; }
.hero-text p { margin: 0 0 .9em; }
.hero-text h3, .hero-text h4 { margin: 1.2em 0 .45em; color: var(--ink); line-height: 1.25; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 15px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 760;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--ink); box-shadow: 0 12px 28px rgba(23,21,43,.16); }
.button-primary:hover { box-shadow: 0 17px 36px rgba(23,21,43,.22); }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.45); }
.button-light { background: var(--paper); color: var(--ink); }

.hero-object {
    min-height: 520px;
    position: relative;
    display: grid;
    place-items: center;
}
.idea-core {
    width: 250px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    color: white;
    background: linear-gradient(145deg, #201d3c, #4d3ca5);
    box-shadow: 0 30px 90px rgba(77,60,165,.27);
    z-index: 4;
}
.idea-core .core-small { font-size: .85rem; opacity: .7; }
.idea-core strong { font-size: 2.1rem; color: var(--gold); line-height: 1; }
.idea-core span:last-child { font-size: 1.2rem; font-weight: 800; line-height: 1.16; }
.orbit {
    position: absolute;
    border: 1px solid rgba(77,60,165,.25);
    border-radius: 50%;
    animation: spin 24s linear infinite;
}
.orbit span {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    top: 50%;
    right: -7px;
    background: var(--gold);
    box-shadow: 0 0 0 7px rgba(224,168,61,.11);
}
.orbit-a { width: 340px; height: 340px; }
.orbit-b { width: 430px; height: 430px; animation-direction: reverse; animation-duration: 31s; transform: rotate(18deg); }
.orbit-b span { background: var(--pink); }
.orbit-c { width: 515px; height: 515px; animation-duration: 39s; transform: rotate(-22deg); }
.orbit-c span { background: var(--blue); }
.float-tag {
    position: absolute;
    z-index: 5;
    padding: 9px 13px;
    border: 1px solid rgba(23,21,43,.09);
    border-radius: 999px;
    background: rgba(255,255,255,.84);
    box-shadow: 0 10px 28px rgba(23,21,43,.08);
    backdrop-filter: blur(10px);
    font-size: .78rem;
    font-weight: 780;
    animation: bob 4s ease-in-out infinite;
}
.tag-one { top: 13%; left: 8%; }
.tag-two { top: 25%; right: 4%; animation-delay: -.9s; }
.tag-three { bottom: 17%; right: 7%; animation-delay: -1.7s; }
.tag-four { bottom: 12%; left: 7%; animation-delay: -2.5s; }

.manifesto {
    margin-top: 15px;
    padding-top: 85px;
    padding-bottom: 85px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.manifesto-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.manifesto-side { display: grid; align-content: start; gap: 38px; }
.manifesto h2, .section-head h2 {
    margin: 0;
    font-size: clamp(2.15rem, 3.4vw, 3.65rem);
    line-height: 1.04;
    letter-spacing: -.05em;
}
.manifesto-copy {
    max-width: 760px;
    font-size: clamp(1.05rem, 1.35vw, 1.18rem);
    line-height: 1.78;
    color: var(--ink-soft);
}
.manifesto-copy > :first-child { margin-top: 0; }
.manifesto-copy > :last-child { margin-bottom: 0; }
.manifesto-copy p { margin: 0 0 1.15em; }
.manifesto-copy h3 {
    margin: 1.8em 0 .65em;
    color: var(--ink);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.2;
    letter-spacing: -.035em;
}
.manifesto-copy h4 {
    margin: 1.5em 0 .55em;
    color: var(--ink);
    font-size: 1.18rem;
    line-height: 1.25;
}
.manifesto-copy ul, .manifesto-copy ol { margin: .7em 0 1.2em; padding-left: 1.4em; }
.manifesto-photo {
    width: min(100%, 390px);
    aspect-ratio: 4 / 5;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(23,21,43,.11);
    border-radius: 30px;
    background: rgba(255,255,255,.56);
    box-shadow: 0 22px 55px rgba(23,21,43,.10);
}
.manifesto-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
}

.craft, .projects { padding-top: 130px; }
.section-head {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 48px;
}
.section-head > p {
    margin: 0 0 5px;
    font-size: 1.02rem;
    color: var(--ink-soft);
    line-height: 1.7;
}
.craft-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.craft-card {
    min-height: 330px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.48);
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.craft-card:hover { transform: translateY(-5px); border-color: rgba(111,91,211,.32); box-shadow: var(--shadow); }
.craft-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -55px;
    bottom: -65px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(111,91,211,.14), transparent 68%);
}
.craft-index { font-size: .77rem; letter-spacing: .1em; font-weight: 850; color: var(--violet-dark); }
.craft-card h3 { margin: 84px 0 13px; font-size: 2rem; letter-spacing: -.035em; }
.craft-card p { margin: 0; max-width: 490px; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.72; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.project-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255,255,255,.62);
    box-shadow: 0 10px 30px rgba(23,21,43,.04);
    transition: transform .24s ease, box-shadow .24s ease;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-featured { grid-column: span 2; }
.project-visual {
    min-height: 245px;
    height: 245px;
    position: relative;
    overflow: hidden;
    background: #ece5dc;
}
.project-featured .project-visual { height: 330px; }
.project-visual img { width: 100%; height: 100%; object-fit: cover; }
.project-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    background:
      radial-gradient(circle at 72% 26%, rgba(224,168,61,.42), transparent 19%),
      radial-gradient(circle at 24% 76%, rgba(216,115,154,.34), transparent 25%),
      linear-gradient(145deg, #282347, #6d5cca);
}
.project-placeholder span {
    font-size: 7.5rem;
    line-height: 1;
    font-weight: 900;
    color: rgba(255,255,255,.88);
    letter-spacing: -.08em;
}
.project-status {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
    font-size: .73rem;
    font-weight: 850;
    letter-spacing: .02em;
}
.status-live { color: #295b40; }
.status-progress { color: #6f5018; }
.status-idea { color: #594a99; }
.status-archived { color: #666; }
.project-content { padding: 27px 27px 25px; }
.project-category { margin: 0 0 7px !important; font-size: .73rem !important; font-weight: 850; text-transform: uppercase; letter-spacing: .11em; color: var(--violet-dark) !important; }
.project-content h3 { margin: 0 0 12px; font-size: 1.72rem; letter-spacing: -.035em; }
.project-content > p { margin: 0; color: var(--ink-soft); line-height: 1.66; }
.project-foot { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); }
.project-link { font-weight: 820; text-decoration: none; }
.project-link span { display: inline-block; transition: transform .2s ease; }
.project-link:hover span { transform: translate(3px,-3px); }
.project-muted { color: rgba(23,21,43,.52); font-size: .88rem; font-weight: 700; }
.empty-projects {
    padding: 70px 30px;
    border: 1px dashed rgba(23,21,43,.2);
    border-radius: var(--radius);
    text-align: center;
    background: rgba(255,255,255,.36);
}
.empty-projects span { font-size: 1.65rem; font-weight: 840; }
.empty-projects p { margin: 10px auto 0; color: var(--ink-soft); }

.contact { padding-top: 105px; padding-bottom: 72px; }
.contact-card {
    width: min(100%, 980px);
    margin-inline: auto;
    min-height: 0;
    border-radius: 32px;
    padding: clamp(34px, 4.2vw, 56px);
    background:
       radial-gradient(circle at 84% 20%, rgba(224,168,61,.25), transparent 28%),
       radial-gradient(circle at 14% 84%, rgba(216,115,154,.21), transparent 27%),
       var(--ink);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    box-shadow: 0 34px 90px rgba(23,21,43,.18);
}
.contact-card .section-label { color: #d8ccff; }
.contact-copy {
    margin: 0 0 34px;
    max-width: 920px;
    font-size: clamp(1.24rem, 1.65vw, 1.75rem);
    line-height: 1.38;
    letter-spacing: -.025em;
    font-weight: 730;
}
.contact-copy > :first-child { margin-top: 0; }
.contact-copy > :last-child { margin-bottom: 0; }
.contact-copy p { margin: 0 0 .8em; }
.contact-copy h3, .contact-copy h4 {
    margin: 1.1em 0 .5em;
    color: #f0e9ff;
    font-size: .72em;
    line-height: 1.2;
    letter-spacing: -.02em;
}
.contact-copy strong { color: #f2c86f; }
.contact-copy a { color: #f2c86f; text-underline-offset: 4px; }

.site-footer {
    padding-top: 20px;
    padding-bottom: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--line);
}
.site-footer > div:first-child { display: flex; align-items: baseline; gap: 14px; }
.site-footer strong { font-weight: 850; }
.site-footer span { color: rgba(23,21,43,.54); font-size: .88rem; }
.footer-links { display: flex; align-items: center; gap: 18px; }
.footer-links a { text-decoration: none; font-size: .87rem; font-weight: 700; }
.admin-entry { opacity: .18; font-size: 1.4rem !important; }
.admin-entry:hover { opacity: .6; }

.ambient { position: fixed; border-radius: 50%; filter: blur(1px); pointer-events: none; z-index: -3; }
.ambient-one { width: 360px; height: 360px; right: -210px; top: 38%; background: rgba(111,91,211,.06); }
.ambient-two { width: 300px; height: 300px; left: -200px; top: 68%; background: rgba(224,168,61,.08); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1000px) {
    .hero { grid-template-columns: 1fr; min-height: auto; gap: 20px; padding-top: 80px; }
    .hero-copy { max-width: 850px; }
    .hero-object { min-height: 500px; }
    .manifesto-grid, .section-head { grid-template-columns: 1fr; gap: 24px; }
    .manifesto-side { gap: 28px; }
    .manifesto-photo { width: min(100%, 360px); }
    .section-head > p { max-width: 650px; }
    .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .project-featured { grid-column: span 2; }
}

@media (max-width: 720px) {
    .section-pad, .site-header { width: min(100% - 28px, var(--max)); }
    .site-header { min-height: 64px; margin-top: 10px; top: 8px; padding: 9px 10px 9px 11px; }
    .brand-monogram { width: 40px; height: 40px; border-radius: 12px; }
    .brand-name { display: none; }
    .menu-toggle {
        display: inline-flex;
        background: transparent;
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 9px 11px;
        font-weight: 750;
        color: var(--ink);
    }
    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: var(--paper);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 13px 14px; }
    .hero { padding-top: 72px; padding-bottom: 70px; }
    .hero h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
    .hero-object { min-height: 410px; transform: scale(.82); margin: -18px -36px; }
    .manifesto { padding-top: 65px; padding-bottom: 65px; }
    .manifesto-photo { width: min(100%, 320px); border-radius: 24px; }
    .craft, .projects, .contact { padding-top: 90px; }
    .craft-grid, .project-grid { grid-template-columns: 1fr; }
    .project-featured { grid-column: auto; }
    .project-featured .project-visual { height: 245px; }
    .craft-card { min-height: 290px; padding: 28px; }
    .craft-card h3 { margin-top: 62px; }
    .contact-card { border-radius: 25px; min-height: 0; padding: 30px 26px; }
    .contact-copy { font-size: 1.25rem; line-height: 1.42; }
    .site-footer { align-items: flex-start; flex-direction: column; }
    .site-footer > div:first-child { flex-direction: column; gap: 3px; }
}
