*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --gold: #c9a84c;
    --gold-light: #e8d08a;
    --gold-dark: #7a5e1a;
    --twilight-deep: #0d1520;
    --twilight-mid: #162030;
    --twilight-surface: #1c2a3a;
    --twilight-card: #1a2535;
    --text-main: #22211f;
    --text-muted: #8a9ab0;
    --accent-blue: #4a7fa8;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Crimson Text', Georgia, serif;
    background: var(--twilight-deep);
    color: var(--text-main);
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}
/* HEADER */
header {
    position: fixed; top: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 60px;
    background: rgba(13,21,32,0.93);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201,168,76,0.18);
    z-index: 100;
}
.logo {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1rem; color: var(--gold); letter-spacing: 0.08em;
    text-decoration: none;
}
nav { display: flex; gap: 32px; align-items: center; }
nav a {
    font-family: 'Cinzel', serif; font-size: 0.72rem;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--text-muted); text-decoration: none; transition: color 0.3s;
    position: relative;
}
nav a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px; background: var(--gold); transition: width 0.3s;
}
nav a:hover { color: var(--gold); }
nav a:hover::after { width: 100%; }
nav a.active { color: var(--gold); }
/* SECTION BASICS */
.section-label {
    font-family: 'Cinzel', serif; font-size: 0.62rem;
    letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold);
    margin-bottom: 14px; display: flex; align-items: center; gap: 14px;
}
.section-label::after {
    content: ''; flex: 1; max-width: 50px; height: 1px; background: var(--gold-dark);
}
.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    color: var(--text-main); margin-bottom: 56px; font-weight: 600;
}
/* ORNAMENT */
.ornament { color: var(--gold-dark); opacity: 0.5; letter-spacing: 0.6em; }
/* FULL BG SECTION */
.bg-mid { background: var(--twilight-mid); width: 100%; }
.inner { max-width: 1200px; margin: 0 auto; padding: 110px 60px; }
/* FOOTER */
footer {
    border-top: 1px solid rgba(201,168,76,0.1);
    padding: 36px 60px;
    display: flex; justify-content: space-between; align-items: center;
}
footer p {
    font-family: 'Cinzel', serif; font-size: 0.62rem;
    letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted);
}
footer .footer-logo { font-family: 'Cinzel Decorative', serif; font-size: 0.9rem; color: var(--gold-dark); }
/* BUTTONS */
.btn-gold {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 36px;
    border: 1px solid var(--gold); color: var(--gold);
    font-family: 'Cinzel', serif; font-size: 0.7rem; letter-spacing: 0.2em;
    text-transform: uppercase; text-decoration: none; transition: all 0.35s;
    position: relative; overflow: hidden;
}
.btn-gold::before {
    content: ''; position: absolute; inset: 0;
    background: var(--gold); transform: translateX(-100%); transition: transform 0.35s; z-index: 0;
}
.btn-gold span { position: relative; z-index: 1; }
.btn-gold:hover { color: var(--twilight-deep); }
.btn-gold:hover::before { transform: translateX(0); }
.btn-outline {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 32px;
    border: 1px solid rgba(201,168,76,0.3); color: var(--text-muted);
    font-family: 'Cinzel', serif; font-size: 0.68rem; letter-spacing: 0.15em;
    text-transform: uppercase; text-decoration: none; transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
/* TECH TAG */
.tech-tag {
    font-family: 'Cinzel', serif; font-size: 0.6rem; letter-spacing: 0.1em;
    padding: 5px 12px;
    background: rgba(201,168,76,0.07); border: 1px solid rgba(201,168,76,0.22);
    color: var(--gold);
}
/* ANIMATIONS */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* RESPONSIVE */
@media (max-width: 900px) {
    header { padding: 16px 22px; }
    nav { gap: 18px; }
    .inner { padding: 80px 24px; }
    footer { flex-direction: column; gap: 14px; text-align: center; padding: 28px 22px; }
}

/* === Adventure-fantasy art direction refresh === */
:root {
    --gold: #c9a75b;
    --gold-light: #ead9a7;
    --gold-dark: #8f7136;
    --twilight-deep: #10271f;
    --twilight-mid: #17372b;
    --twilight-surface: #244a39;
    --twilight-card: #f1e6c8;
    --text-main: #f7efd9;
    --text-muted: #c8bea2;
    --accent-blue: #5fa89a;
    --parchment: #efe2bf;
    --parchment-light: #f8f1dc;
    --ink: #26382d;
    --moss: #607d50;
}
body {
    background: #10271f;
    background-image: radial-gradient(circle at 18% 8%, rgba(95,168,154,.08), transparent 25%), linear-gradient(180deg,#10271f,#17372b);
}
body::after {
    content:""; position:fixed; inset:0; pointer-events:none; z-index:9998; opacity:.18;
    background-image: radial-gradient(circle, rgba(234,217,167,.45) 0 1px, transparent 1.5px);
    background-size: 74px 74px;
    mask-image: linear-gradient(to bottom,transparent,black 25%,black 75%,transparent);
}
header { background:rgba(16,39,31,.91); border-bottom-color:rgba(201,167,91,.28); box-shadow:0 8px 30px rgba(5,18,13,.14); }
.logo { color:var(--gold-light); }
.bg-mid { background:#17372b; }
.section-label { color:var(--gold-light); }
.section-title { color:#f7efd9; text-shadow:0 2px 18px rgba(0,0,0,.12); }
.btn-gold { border-color:#d5b96d; color:#f4e6ba; border-radius:4px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.04); }
.btn-gold::before { background:#c9a75b; }
.btn-gold:hover { color:#173024; box-shadow:0 0 24px rgba(201,167,91,.2); }
.btn-outline { border-color:rgba(234,217,167,.42); color:#e5dbc1; border-radius:4px; }
.tech-tag,.skill-tag { border-radius:999px; }
footer { background:#0d211a; }

/* Hero: forest, old-map glow and subtle magical light */
.hero-mesh {
    background:
      radial-gradient(circle at 72% 32%, rgba(201,167,91,.18), transparent 19%),
      radial-gradient(ellipse 55% 55% at 12% 65%, rgba(73,116,75,.48), transparent 64%),
      radial-gradient(ellipse 50% 45% at 86% 75%, rgba(95,168,154,.14), transparent 62%),
      linear-gradient(145deg,#0b2119 0%,#17382b 48%,#10271f 100%) !important;
}
.hero-name span,.hero-eyebrow { color:#d7bb70 !important; }
.hero-name { text-shadow:0 3px 24px rgba(0,0,0,.24); }
.hero-divider { background:linear-gradient(90deg,transparent,#d7bb70,transparent) !important; }
.particle { background:#ead98c !important; box-shadow:0 0 7px rgba(234,217,140,.65); }

/* Parchment-like cards */
.project-row,.skill-block,.stat,.contact-link {
    border-color:rgba(201,167,91,.28) !important;
    box-shadow:0 12px 30px rgba(5,20,14,.12);
}
.project-row,.skill-block { border-radius:7px; overflow:hidden; }
.project-row:hover,.skill-block:hover { border-color:rgba(218,188,111,.65) !important; transform:translateY(-2px); box-shadow:0 16px 34px rgba(5,20,14,.2); }
.project-row,.skill-block { transition:border-color .3s,background .3s,transform .3s,box-shadow .3s !important; }
.about-frame { background:#214534 !important; border-color:rgba(218,188,111,.42) !important; box-shadow:0 18px 50px rgba(4,17,12,.2); }
.corner { border-color:#d7bb70 !important; }

/* Warm paper surfaces on project detail content where cards use the shared card token */
.project-thumb { background:#214534 !important; }

/* Botanical/map-like ornaments without external assets */
.section-label::before { content:'✦'; color:#c9a75b; font-size:.72rem; letter-spacing:0; }
.ornament { color:#c9a75b; }

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

/* === 2026 minimal orange / white redesign === */
:root{
  --gold:#f26a21;--gold-light:#ff8a45;--gold-dark:#c84b0d;
  --twilight-deep:#ffffff;--twilight-mid:#f7f7f5;--twilight-surface:#f1f1ee;--twilight-card:#ffffff;
  --text-main:#171717;--text-muted:#6f6f6f;--accent-blue:#f26a21;
  --parchment:#fff;--parchment-light:#fff;--ink:#171717;--moss:#f26a21;
}
html{background:#fff} body{background:#fff!important;background-image:none!important;color:#171717;font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.6}body::before,body::after{display:none!important}
header{position:sticky!important;top:0;padding:18px max(24px,calc((100vw - 1120px)/2))!important;background:rgba(255,255,255,.94)!important;border-bottom:1px solid #e8e8e8!important;box-shadow:none!important;backdrop-filter:blur(12px)}
.logo{font-family:Arial,Helvetica,sans-serif!important;font-weight:800!important;color:#f26a21!important}.logo,nav a{letter-spacing:.04em!important}nav a{font-family:Arial,Helvetica,sans-serif!important;font-size:.78rem!important;color:#555!important}nav a:hover,nav a.active{color:#f26a21!important}nav a::after{background:#f26a21!important}
.inner{max-width:1120px!important;padding:88px 24px!important}.bg-mid{background:#f7f7f5!important}
.section-label{font-family:Arial,Helvetica,sans-serif!important;color:#f26a21!important;letter-spacing:.12em!important;font-weight:700!important}.section-label::before,.section-label::after{display:none!important}.section-title{font-family:Arial,Helvetica,sans-serif!important;color:#171717!important;text-shadow:none!important;font-size:clamp(2rem,4vw,3.5rem)!important;letter-spacing:-.045em!important;margin-bottom:40px!important;font-weight:800!important}
.btn-gold,.btn-outline{font-family:Arial,Helvetica,sans-serif!important;border-radius:999px!important;letter-spacing:.03em!important;font-weight:700!important;padding:12px 22px!important}.btn-gold{background:#f26a21!important;border:1px solid #f26a21!important;color:#fff!important;box-shadow:none!important}.btn-gold::before{display:none!important}.btn-gold:hover{background:#d95516!important;color:#fff!important;transform:translateY(-1px)}.btn-outline{border:1px solid #d8d8d8!important;color:#333!important;background:#fff!important}.btn-outline:hover{border-color:#f26a21!important;color:#f26a21!important}
.tech-tag,.skill-tag{font-family:Arial,Helvetica,sans-serif!important;background:#fff4ed!important;border:0!important;color:#c84b0d!important;border-radius:999px!important;font-weight:600!important}
footer{background:#fff!important;border-top:1px solid #e8e8e8!important;padding:28px max(24px,calc((100vw - 1120px)/2))!important}footer p,footer .footer-logo{font-family:Arial,Helvetica,sans-serif!important;color:#777!important}
@media(max-width:700px){nav{gap:12px!important}nav a{font-size:.68rem!important}.inner{padding:64px 20px!important}}

/* === Soft grey background refinement === */
:root{--twilight-deep:#edf0f3;--twilight-mid:#e3e7eb;--twilight-surface:#dce1e6}
html{background:#edf0f3!important}
body{background:linear-gradient(135deg,#f1f3f5 0%,#edf0f3 48%,#e7ebef 100%)!important}
.bg-mid{background:#e3e7eb!important}
header{background:rgba(237,240,243,.94)!important;border-bottom-color:#d4d9de!important}
footer{background:#e3e7eb!important;border-top-color:#d4d9de!important}

/* === Uniform dark background === */
html, body, main, section, .bg-mid, footer {
    background: #1A1A1A !important;
}
header {
    background: rgba(26,26,26,.94) !important;
    border-bottom-color: #333 !important;
}

/* === Dark palette harmony === */
:root {
    --twilight-deep: #1A1A1A;
    --twilight-mid: #222222;
    --twilight-surface: #2B2B2B;
    --twilight-card: #242424;
    --text-main: #F4F0E8;
    --text-muted: #A9A39A;
    --gold: #F26A21;
    --gold-light: #FF9256;
    --gold-dark: #C84B0D;
}
body { color: #F4F0E8 !important; }
.bg-mid { background: #222222 !important; }
header { background: rgba(26,26,26,.94) !important; }
.section-title, .project-row-title, .skill-block h3,
.about-text p strong { color: #F4F0E8 !important; }
.about-text p, .project-row-desc, .contact-center p { color: #B8B2A9 !important; }
nav a { color: #B8B2A9 !important; }
nav a:hover, nav a.active { color: #FF9256 !important; }
.stat, .skill-block, .project-row, .contact-link {
    background: #242424 !important;
    border-color: #3A3A3A !important;
}
.stat:hover, .skill-block:hover, .project-row:hover, .contact-link:hover {
    border-color: #F26A21 !important;
}
.project-thumb { background: #2B2B2B !important; }
.btn-outline, .contact-link {
    background: transparent !important;
    border-color: #4A4A4A !important;
    color: #E4DED3 !important;
}
.btn-outline:hover, .contact-link:hover { color: #FF9256 !important; }
footer { background: #161616 !important; border-top-color: #333 !important; }
footer p, footer .footer-logo { color: #958F87 !important; }
