/* ==================================================
   TOKENS
   ================================================== */
:root {
    --bg: #0a0a0a;
    --bg-raised: #100f0d;
    --bg-panel: #0d0c0a;
    --ink: #f0eeea;
    --ink-dim: #d4cfc8;
    --body: #b3ada5;
    --muted: #8a857d;
    --faint: #6b6760;
    --line: #1f1d1b;
    --line-soft: rgba(255, 255, 255, 0.04);
    --gold: #c9a84b;
    --gold-deep: #7a6530;
    --gold-glow: rgba(201, 168, 75, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--ink);
    font-family: 'Lexend Deca', 'Segoe UI', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    cursor: default;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    opacity: 0.03;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-family: 'Syne', 'Arial Black', sans-serif;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    color: var(--ink);
}

a {
    color: inherit;
}

:focus-visible {
    outline: 1px solid var(--gold);
    outline-offset: 3px;
}

/* ==================================================
   SCROLL PROGRESS + OMURGA (spine)
   ================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--gold);
    z-index: 1100;
    transition: width 0.05s linear;
}

.spine {
    position: fixed;
    top: 90px;
    bottom: 90px;
    left: 28px;
    width: 1px;
    background: var(--line);
    z-index: 5;
    display: none;
}

.spine-line {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold), var(--gold-deep));
    transform: scaleY(0);
    transform-origin: top;
}

@media (min-width: 1150px) {
    .spine {
        display: block;
    }
}

/* ------------- NAVBAR ------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.nav-logo {
    font-family: 'Syne', 'Arial Black', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s;
    flex-shrink: 0;
}

.nav-logo:hover {
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
    margin: 0 auto;
}

.nav-link {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--ink);
}

.nav-link.active {
    color: var(--ink);
    border-bottom-color: var(--ink-dim);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--faint);
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: statusPulse 2.4s infinite ease-in-out;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@media (max-width: 900px) {
    .nav-status { display: none; }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--ink);
    transition: all 0.3s ease;
}

/* ------------- HERO ------------- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(4rem, 20vw, 14rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: var(--ink);
    text-transform: lowercase;
}

.hero-line {
    width: 4rem;
    height: 2px;
    background-color: var(--gold);
    margin: 0 auto 1.5rem auto;
    transition: width 0.3s ease;
}

.hero-line:hover {
    width: 8rem;
}

.hero-sub {
    font-family: 'Syne', 'Arial Black', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: var(--ink-dim);
    max-width: 600px;
    margin: 0 auto;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: lowercase;
    color: var(--faint);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(-5px); }
    100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
}

/* ------------- MANIFESTO ------------- */
.manifesto-section {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.manifesto-content {
    max-width: 800px;
    margin: 0 auto;
}

.manifesto-text {
    font-size: 1.15rem;
    color: var(--ink-dim);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.manifesto-text:last-of-type {
    margin-bottom: 2rem;
}

.manifesto-line {
    width: 2rem;
    height: 1px;
    background-color: var(--gold);
    margin: 0 auto;
    opacity: 0.5;
}

/* ------------- GENEL BÖLÜMLER ------------- */
.section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    opacity: 0;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-transform: lowercase;
}

.section-badge {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    color: var(--faint);
    border: 1px solid #2a2825;
    padding: 0.15rem 0.8rem;
    border-radius: 2px;
    opacity: 0.7;
}

.section-desc {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--body);
    font-weight: 300;
    letter-spacing: 0.03em;
    max-width: 700px;
    margin-bottom: 2.5rem;
}

/* ------------- HAKKIMDA ------------- */
.identity-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.identity-text p {
    font-size: 1.05rem;
    color: var(--ink-dim);
    line-height: 1.85;
    margin-bottom: 1.3rem;
    max-width: 62ch;
}

.identity-text p:last-child {
    margin-bottom: 0;
}

.identity-focus-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--faint);
    margin-bottom: 1.2rem;
}

.focus-list {
    list-style: none;
}

.focus-list li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.95rem;
    color: var(--ink-dim);
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
    letter-spacing: 0.02em;
}

.focus-list li:last-child {
    border-bottom: none;
}

.focus-mark {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--muted);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .identity-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ------------- STACK ------------- */
.stack-rows {
    border-top: 1px solid var(--line);
}

.stack-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--line);
}

.stack-row-label {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink-dim);
    letter-spacing: 0.03em;
    padding-top: 0.15rem;
}

.stack-row-text {
    font-size: 0.95rem;
    color: var(--body);
    line-height: 1.7;
    max-width: 60ch;
}

@media (max-width: 640px) {
    .stack-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* ------------- DEV / EDITORIAL FLOW ------------- */
.dev-section {
    overflow: hidden;
}

.dev-heading {
    margin-bottom: 0;
}

.dev-composition {
    display: grid;
    grid-template-columns: minmax(190px, .72fr) minmax(0, 1.8fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: start;
    margin-top: 1.75rem;
}

.dev-lead {
    position: sticky;
    top: 9rem;
    margin: .4rem 0 0;
    max-width: 20rem;
    line-height: 1.75;
}

.dev-flow {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: .2rem;
}

.dev-item {
    --offset: 0%;
    width: calc(100% - var(--offset));
    margin-left: var(--offset);
    display: grid;
    grid-template-columns: clamp(2.7rem, 5vw, 4.5rem) minmax(9rem, .8fr) minmax(12rem, 1.25fr);
    align-items: baseline;
    gap: clamp(1rem, 2.5vw, 2.2rem);
    padding: clamp(1.3rem, 2.4vw, 2.2rem) 0;
    border-top: 1px solid var(--line);
    transition: transform .35s cubic-bezier(.2,.75,.25,1), border-color .35s ease;
}

.dev-item:last-child {
    border-bottom: 1px solid var(--line);
}

.dev-item:nth-child(2) { --offset: 9%; }
.dev-item:nth-child(3) { --offset: 21%; }
.dev-item:nth-child(4) { --offset: 6%; }

.dev-item:hover {
    transform: translateX(10px);
    border-color: var(--ink-dim);
}

.dev-index {
    font-family: 'Lexend Deca', sans-serif;
    font-size: .66rem;
    letter-spacing: .12em;
    color: var(--faint);
    font-variant-numeric: tabular-nums;
}

.card-label {
    font-family: 'Syne', 'Arial Black', sans-serif;
    font-weight: 800;
    font-size: clamp(1.15rem, 2.1vw, 1.75rem);
    letter-spacing: .015em;
    text-transform: lowercase;
    color: var(--ink);
    line-height: 1;
}

.card-desc {
    font-size: .9rem;
    color: var(--muted);
    letter-spacing: .02em;
    font-weight: 300;
    line-height: 1.55;
}

/* ------------- SSS ------------- */
.faq-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--ink-dim);
    font-family: 'Lexend Deca', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.02em;
    padding: 1.3rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--gold);
}

.faq-question::after {
    content: '';
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-right: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
    transform: rotate(225deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    padding-bottom: 1.4rem;
    max-width: 65ch;
}

/* ------------- İLETİŞİM ------------- */
.contact-section {
    min-height: 40vh;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.contact-form {
    max-width: 640px;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--faint);
}

.form-field input,
.form-field select,
.form-field textarea {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 0.7rem 0.9rem;
    color: var(--ink);
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    transition: border-color 0.25s ease;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-field.error input,
.form-field.error textarea {
    border-color: #a8564a;
}

.form-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.form-submit {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--ink-dim);
    border-radius: 3px;
    padding: 0.75rem 1.6rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.form-submit:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.form-note {
    font-size: 0.78rem;
    color: var(--faint);
    max-width: 32ch;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-item {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.2rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-item:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ------------- FOOTER ------------- */
footer {
    padding: 4rem 0 3rem 0;
    opacity: 0.85;
}

.footer-line {
    width: 100%;
    height: 1px;
    background-color: var(--line);
    margin-bottom: 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: var(--ink-dim);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--faint);
}

.footer-heading {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--faint);
    margin-bottom: 0.8rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
    width: fit-content;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom p {
    font-family: 'Syne', 'Arial Black', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    color: var(--faint);
}

.footer-fine {
    font-family: 'Lexend Deca', sans-serif !important;
    letter-spacing: 0.03em !important;
    font-size: 0.75rem !important;
    color: var(--faint);
}

@media (max-width: 700px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
}

/* ------------- TOP BUTTON ------------- */
.top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(8px);
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease, color 0.2s ease;
    z-index: 999;
    font-family: 'Syne', sans-serif;
    font-weight: 400;
}

.top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-btn:hover {
    background: var(--gold);
    color: var(--bg);
}

/* ------------- RESPONSIVE ------------- */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        background: #0d0d0d;
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        padding: 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid #1a1816;
        margin: 0;
    }
    .nav-links.open {
        right: 0;
    }
    .nav-link {
        font-size: 1.2rem;
    }
    .manifesto-text {
        font-size: 1rem;
    }
    .dev-composition {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }
    .dev-lead {
        position: static;
        max-width: 32rem;
    }
    .dev-item {
        --offset: 0% !important;
        width: 100%;
        grid-template-columns: 2.8rem minmax(8rem, .75fr) 1fr;
    }
.section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.2rem;
    }
    .dev-item {
        grid-template-columns: 2.25rem 1fr;
        gap: .55rem 1rem;
        align-items: start;
    }
    .dev-item .card-desc {
        grid-column: 2;
    }
    .contact-links {
        flex-direction: column;
        gap: 1.2rem;
    }
    .hero-title {
        letter-spacing: -0.01em;
    }
}



/* ==================================================
   AMBIENT BACKGROUND — deneysel derinlik katmanı
   ================================================== */
body {
    overflow-x: hidden;
}

main,
.navbar,
.scroll-progress,
.spine,
.top-btn {
    position: relative;
    z-index: 2;
}

.navbar,
.scroll-progress,
.spine,
.top-btn {
    position: fixed;
}

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

.ambient-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(circle at 50% 38%, #000 0, rgba(0,0,0,.9) 35%, transparent 78%);
    mask-image: radial-gradient(circle at 50% 38%, #000 0, rgba(0,0,0,.9) 35%, transparent 78%);
}

.ambient-bg::after {
    content: '';
    position: absolute;
    width: 44vw;
    height: 44vw;
    min-width: 460px;
    min-height: 460px;
    left: 50%;
    top: 5vh;
    transform: translateX(-50%);
    border: 1px solid rgba(201,168,75,.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 80px rgba(201,168,75,.012),
        0 0 0 160px rgba(201,168,75,.008);
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .18;
    will-change: transform;
}

.ambient-orb-a {
    width: 34vw;
    height: 34vw;
    min-width: 360px;
    min-height: 360px;
    right: -9vw;
    top: 14vh;
    background: radial-gradient(circle, rgba(201,168,75,.42), rgba(201,168,75,0) 68%);
}

.ambient-orb-b {
    width: 42vw;
    height: 42vw;
    min-width: 420px;
    min-height: 420px;
    left: -16vw;
    top: 62vh;
    background: radial-gradient(circle, rgba(113,101,70,.26), rgba(113,101,70,0) 70%);
}

.ambient-ring {
    position: absolute;
    width: min(74vw, 980px);
    aspect-ratio: 1;
    left: 52%;
    top: 86vh;
    transform: translateX(-50%) rotate(-14deg);
    border-radius: 50%;
    border: 1px solid rgba(240,238,234,.045);
}

.ambient-ring::before,
.ambient-ring::after {
    content: '';
    position: absolute;
    inset: 11%;
    border: 1px dashed rgba(201,168,75,.055);
    border-radius: inherit;
}

.ambient-ring::after {
    inset: 27%;
    border-style: solid;
    border-color: rgba(240,238,234,.035);
}

.ambient-word {
    position: absolute;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    text-transform: lowercase;
    line-height: .8;
    letter-spacing: -.06em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(240,238,234,.035);
    opacity: .85;
    user-select: none;
    white-space: nowrap;
}

.ambient-word-a {
    font-size: clamp(8rem, 22vw, 22rem);
    right: -3vw;
    top: 122vh;
    transform: rotate(90deg);
    transform-origin: right top;
}

.ambient-word-b {
    font-size: clamp(7rem, 18vw, 18rem);
    left: -2vw;
    top: 225vh;
}

.hero::before {
    content: '';
    position: absolute;
    width: min(60vw, 850px);
    height: 1px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-11deg);
    background: linear-gradient(90deg, transparent, rgba(201,168,75,.18), transparent);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    width: min(42vw, 620px);
    aspect-ratio: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 50%;
    box-shadow: inset 0 0 80px rgba(201,168,75,.015);
    z-index: -1;
}

.section,
.hero,
footer {
    position: relative;
}

.section:nth-of-type(even)::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    right: 6vw;
    top: 50%;
    transform: translateY(-50%) rotate(22deg);
    border: 1px solid rgba(255,255,255,.03);
    background:
        linear-gradient(90deg, transparent 49.5%, rgba(201,168,75,.045) 50%, transparent 50.5%),
        linear-gradient(transparent 49.5%, rgba(201,168,75,.045) 50%, transparent 50.5%);
    opacity: .65;
    z-index: -1;
}

@media (max-width: 768px) {
    .ambient-bg::before { background-size: 48px 48px; opacity: .14; }
    .ambient-word { opacity: .55; }
    .ambient-word-a { right: -16vw; }
    .ambient-word-b { left: -10vw; }
    .section:nth-of-type(even)::after { width: 140px; height: 140px; right: -55px; }
}

@media (prefers-reduced-motion: reduce) {
    .ambient-orb,
    .ambient-ring,
    .ambient-word { transform: none !important; }
}

/* ------------- REDUCED MOTION ------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==================================================
   OCEAN / SEA-GLASS THEME — experimental fresh pass
   ================================================== */
html[data-theme="ocean"] {
    --bg: #e9fbf8;
    --bg-raised: rgba(255, 255, 255, 0.58);
    --bg-panel: rgba(239, 253, 251, 0.72);
    --ink: #082f33;
    --ink-dim: #174c50;
    --body: #356d70;
    --muted: #5f8f91;
    --faint: #7ca8a8;
    --line: rgba(8, 70, 75, 0.12);
    --line-soft: rgba(8, 70, 75, 0.06);
    --gold: #11aeb6;
    --gold-deep: #087985;
    --gold-glow: rgba(27, 196, 192, 0.18);
    --ocean-blue: #4ba9e8;
    --ocean-mint: #68e0c2;
    --foam: #f8fffe;
}

html[data-theme="ocean"] body {
    background:
        radial-gradient(circle at 70% 4%, rgba(85, 205, 222, .18), transparent 28rem),
        linear-gradient(180deg, #f4fffd 0%, #e9fbf8 46%, #e1f6f3 100%);
    color: var(--ink);
    overflow-x: hidden;
}

html[data-theme="ocean"] body::before {
    opacity: .012;
    mix-blend-mode: multiply;
}

html[data-theme="ocean"] body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(255,255,255,.58), transparent 38%, rgba(91,210,216,.08) 68%, transparent);
}

html[data-theme="ocean"] .navbar {
    background: rgba(239, 253, 251, 0.68);
    border-bottom-color: rgba(8, 70, 75, .08);
    box-shadow: 0 12px 40px rgba(15, 99, 105, .035);
}

html[data-theme="ocean"] .status-dot { box-shadow: 0 0 0 5px rgba(17, 174, 182, .08); }

html[data-theme="ocean"] .section,
html[data-theme="ocean"] .manifesto-section,
html[data-theme="ocean"] .stat-strip {
    border-top-color: rgba(8, 70, 75, .08);
}

html[data-theme="ocean"] .section-badge {
    border-color: rgba(8, 70, 75, .16);
    background: rgba(255,255,255,.26);
}

html[data-theme="ocean"] .dev-item { border-color: rgba(8, 70, 75, .12); }
html[data-theme="ocean"] .dev-item:hover { border-color: rgba(8, 70, 75, .34); }

html[data-theme="ocean"] .form-field input,
html[data-theme="ocean"] .form-field select,
html[data-theme="ocean"] .form-field textarea {
    background: rgba(255,255,255,.5);
    border-color: rgba(8, 70, 75, .13);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

html[data-theme="ocean"] .form-submit {
    border-color: rgba(8, 70, 75, .35);
    background: rgba(255,255,255,.22);
}

html[data-theme="ocean"] .top-btn {
    background: rgba(239, 253, 251, .76);
    box-shadow: 0 10px 32px rgba(15, 99, 105, .12);
}

html[data-theme="ocean"] .nav-links.open {
    background: rgba(233, 251, 248, .96);
    border-left-color: rgba(8, 70, 75, .1);
}

/* ambient canvas */
html[data-theme="ocean"] .ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

html[data-theme="ocean"] .ambient-bg::before {
    opacity: .22;
    background-image:
        linear-gradient(rgba(14, 120, 130, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 120, 130, .055) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 72%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 72%);
}

html[data-theme="ocean"] .ambient-bg::after {
    background:
        radial-gradient(circle at 12% 24%, rgba(73, 201, 193, .22), transparent 18rem),
        radial-gradient(circle at 83% 38%, rgba(79, 163, 226, .17), transparent 24rem),
        radial-gradient(circle at 46% 88%, rgba(89, 220, 195, .18), transparent 22rem);
    filter: blur(18px);
}

html[data-theme="ocean"] .ambient-orb {
    border: none;
    filter: blur(2px);
    opacity: .78;
}

html[data-theme="ocean"] .ambient-orb-a {
    width: 46vw;
    height: 46vw;
    min-width: 420px;
    min-height: 420px;
    top: -17vw;
    right: -11vw;
    background: radial-gradient(circle at 36% 36%, rgba(255,255,255,.9), rgba(90,210,217,.28) 35%, rgba(58,153,213,.08) 68%, transparent 72%);
}

html[data-theme="ocean"] .ambient-orb-b {
    width: 38vw;
    height: 38vw;
    min-width: 360px;
    min-height: 360px;
    left: -14vw;
    top: 58vh;
    background: radial-gradient(circle at 60% 42%, rgba(183,248,235,.56), rgba(72,191,190,.19) 42%, transparent 72%);
}

html[data-theme="ocean"] .ambient-ring {
    width: min(72vw, 920px);
    aspect-ratio: 1;
    right: -28vw;
    top: 112vh;
    border: 1px solid rgba(22, 126, 137, .12);
    box-shadow:
        0 0 0 70px rgba(22,126,137,.025),
        0 0 0 140px rgba(49,167,181,.018),
        0 0 90px rgba(66,184,190,.06);
}

html[data-theme="ocean"] .ambient-ring::before,
html[data-theme="ocean"] .ambient-ring::after { border-color: rgba(22, 126, 137, .08); }

html[data-theme="ocean"] .ambient-word {
    color: rgba(8, 70, 75, .035);
    letter-spacing: -.06em;
    text-shadow: 0 1px 0 rgba(255,255,255,.7);
}

/* broad water bands */
html[data-theme="ocean"] .ocean-wave {
    position: absolute;
    width: 145vw;
    height: 38vh;
    left: -20vw;
    border-radius: 50%;
    transform: rotate(-5deg);
    filter: blur(.2px);
}

html[data-theme="ocean"] .ocean-wave-a {
    top: 74vh;
    border-top: 1px solid rgba(33, 157, 167, .13);
    background: linear-gradient(180deg, rgba(69, 199, 198, .055), transparent 56%);
    box-shadow: inset 0 32px 70px rgba(90, 210, 205, .035);
}

html[data-theme="ocean"] .ocean-wave-b {
    top: 208vh;
    left: -34vw;
    transform: rotate(6deg);
    border-top: 1px solid rgba(50, 141, 196, .10);
    background: linear-gradient(180deg, rgba(80, 174, 211, .045), transparent 62%);
}

html[data-theme="ocean"] .ocean-glint {
    position: absolute;
    top: 17vh;
    left: 7vw;
    width: 32vw;
    height: 50vh;
    min-width: 280px;
    background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.55) 47%, rgba(255,255,255,.08) 55%, transparent 74%);
    filter: blur(20px);
    transform: skewX(-15deg) rotate(-8deg);
    opacity: .58;
}

html[data-theme="ocean"] .hero::before {
    content: '';
    position: absolute;
    width: min(72vw, 900px);
    height: min(72vw, 900px);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -49%);
    background: radial-gradient(circle, rgba(255,255,255,.54) 0 18%, rgba(89,205,207,.085) 45%, transparent 70%);
    z-index: -1;
}

html[data-theme="ocean"] .hero-line {
    background: linear-gradient(90deg, var(--ocean-mint), var(--ocean-blue));
    box-shadow: 0 0 24px rgba(17,174,182,.18);
}

html[data-theme="ocean"] .spine { background: rgba(8,70,75,.1); }
html[data-theme="ocean"] .spine-line { background: linear-gradient(to bottom, #65dac7, #3b9ad1); }
html[data-theme="ocean"] .scroll-progress { background: linear-gradient(90deg, #62dcca, #43a6df); }

html[data-theme="ocean"] ::selection {
    background: rgba(25, 176, 183, .22);
    color: #062a2e;
}

@media (max-width: 768px) {
    html[data-theme="ocean"] .ambient-bg::before { background-size: 54px 54px; opacity: .15; }
    html[data-theme="ocean"] .ambient-orb-a { right: -250px; top: -140px; }
    html[data-theme="ocean"] .ambient-orb-b { left: -220px; }
    html[data-theme="ocean"] .ocean-wave { width: 180vw; left: -40vw; }
    html[data-theme="ocean"] .ocean-glint { left: -14vw; opacity: .35; }
}


/* ==================================================
   THEME SWITCHER
   ================================================== */
html { color-scheme: dark; }
html[data-theme="ocean"] { color-scheme: light; }

body, .navbar, .section-badge, .form-field input, .form-field select,
.form-field textarea, .form-submit, .top-btn, .nav-links, .ambient-bg::before,
.ambient-bg::after, .ambient-orb, .ambient-ring, .ambient-word, .hero::before, .hero::after {
    transition: background-color .55s ease, background .55s ease, color .45s ease,
        border-color .45s ease, box-shadow .55s ease, opacity .45s ease, filter .55s ease;
}

.theme-toggle {
    position: relative;
    width: 54px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-raised);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 4px;
    top: 3px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 18px var(--gold-glow);
    transition: transform .45s cubic-bezier(.2,.8,.2,1), background .45s ease, box-shadow .45s ease;
}

.theme-toggle::after {
    content: '◐';
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-51%);
    font-size: 10px;
    color: var(--muted);
    line-height: 1;
}

html[data-theme="ocean"] .theme-toggle::before { transform: translateX(25px); }
html[data-theme="ocean"] .theme-toggle::after { left: 7px; right: auto; content: '≈'; }
html[data-theme="ocean"] .theme-toggle { background: rgba(255,255,255,.52); border-color: rgba(8,70,75,.16); }

html:not([data-theme="ocean"]) .ocean-wave,
html:not([data-theme="ocean"]) .ocean-glint { opacity: 0; }
html[data-theme="ocean"] .hero::after,
html[data-theme="ocean"] .section:nth-of-type(even)::after { opacity: .18; }

@media (max-width: 900px) {
    .theme-toggle { margin-left: auto; }
}

/* ==================================================
   INTERACTION STACK — navbar / controls must stay clickable
   ================================================== */
.ambient-bg {
    z-index: -10 !important;
    pointer-events: none !important;
}

main {
    position: relative;
    z-index: 1 !important;
}

.navbar {
    position: fixed;
    z-index: 10000 !important;
    pointer-events: auto !important;
    isolation: isolate;
}

.navbar .nav-container,
.navbar .nav-logo,
.navbar .nav-links,
.navbar .nav-link,
.navbar .nav-status,
.navbar .theme-toggle,
.navbar .nav-toggle {
    pointer-events: auto !important;
}

.scroll-progress {
    z-index: 10002 !important;
    pointer-events: none !important;
}

.spine {
    z-index: 20 !important;
    pointer-events: none !important;
}

.top-btn {
    position: fixed;
    z-index: 10001 !important;
    pointer-events: auto !important;
}

body::before,
.hero::before,
.hero::after,
.section::before,
.section::after,
.ambient-bg::before,
.ambient-bg::after,
.ambient-orb,
.ambient-ring,
.ambient-word,
.ocean-wave,
.ocean-glint {
    pointer-events: none !important;
}


/* Brand mark */
.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  line-height: 0;
  flex: 0 0 auto;
}
.nav-logo-img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 768px) {
  .nav-logo { width: 44px; height: 44px; }
  .nav-logo-img { width: 40px; height: 40px; }
}

/* Enhanced brand presence */
:root {
  --brand-halo: rgba(202, 168, 116, 0.16);
  --brand-ring: rgba(228, 205, 168, 0.16);
  --brand-surface: rgba(255, 255, 255, 0.025);
}

html[data-theme="ocean"] {
  --brand-halo: rgba(65, 190, 190, 0.18);
  --brand-ring: rgba(77, 184, 205, 0.18);
  --brand-surface: rgba(229, 252, 250, 0.24);
}

.nav-logo {
  position: relative;
  width: 62px;
  height: 62px;
  margin-left: -5px;
  border-radius: 18px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-ring);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.14),
    0 0 34px var(--brand-halo);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
  overflow: visible;
}

.nav-logo::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 50%, var(--brand-halo), transparent 68%);
  filter: blur(9px);
  opacity: 0.9;
  z-index: -1;
  pointer-events: none;
}

.nav-logo-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  transform: scale(1.08);
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.24));
  transition: transform 220ms ease, filter 220ms ease;
}

.nav-logo:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand-ring) 70%, var(--ink));
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.18),
    0 0 44px var(--brand-halo);
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.13);
}

@media (max-width: 768px) {
  .nav-logo {
    width: 52px;
    height: 52px;
    margin-left: -2px;
    border-radius: 15px;
  }
  .nav-logo-img {
    width: 49px;
    height: 49px;
  }
}

/* Dev flow collision guard — long labels never run into descriptions */
.dev-item {
    grid-template-columns: clamp(2.7rem, 5vw, 4.5rem) minmax(12.5rem, 1fr) minmax(13rem, 1.15fr);
}
.dev-item .card-label,
.dev-item .card-desc {
    min-width: 0;
}
.dev-item .card-label {
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .dev-item {
        grid-template-columns: 2.8rem minmax(11.5rem, .9fr) minmax(0, 1fr);
    }
}

@media (max-width: 620px) {
    .dev-item {
        grid-template-columns: 2.4rem 1fr;
        gap: .55rem 1rem;
        align-items: start;
    }
    .dev-item .card-desc {
        grid-column: 2;
    }
}
