 :root {
      --ink:       #0b0e1a;
      --deep:      #0f1423;
      --surface:   #141928;
      --card:      #1a2035;
      --border:    rgba(255,255,255,0.07);
      --border-h:  rgba(255,255,255,0.13);
      --gold:      #c9943a;
      --gold-lt:   #e8b96a;
      --gold-pale: rgba(245,223,168,0.08);
      --cream:     #f0e8d5;
      --muted:     #8a95b0;
      --teal:      #3abfb8;
      --r:         0.75rem;
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { background: var(--ink); color: var(--cream); font-family: 'Outfit', sans-serif; font-weight: 300; line-height: 1.7; overflow-x: hidden; }
    ::-webkit-scrollbar { width: 4px; }
    ::-webkit-scrollbar-track { background: var(--deep); }
    ::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
    a { color: inherit; }

    /* NAV */
    nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: 1.1rem 3rem; display: flex; align-items: center; justify-content: space-between; backdrop-filter: blur(20px); background: linear-gradient(to bottom,rgba(11,14,26,.95),rgba(11,14,26,0)); border-bottom: 1px solid transparent; transition: border-color .4s, background .4s; }
    nav.scrolled { border-color: var(--border); background: rgba(11,14,26,.96); }
    .nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 600; color: var(--gold-lt); letter-spacing: .04em; text-decoration: none; }
    .nav-logo span { color: var(--teal); }
    .nav-links { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
    .nav-links a { font-family: 'DM Mono', monospace; font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .3s; }
    .nav-links a:hover { color: var(--gold-lt); }
    .nav-cta a { color: var(--gold) !important; border: 1px solid var(--gold); padding: .28rem .8rem; border-radius: 2px; }
    .nav-cta a:hover { background: var(--gold) !important; color: var(--ink) !important; }

    /* STARFIELD */
    #starfield { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

    /* HERO */
    #hero { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 7rem 5rem 5rem; overflow: hidden; background: radial-gradient(ellipse 80% 60% at 30% 50%, #1a2555 0%, var(--ink) 70%); }
    #hero::before { content: ''; position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, black 0%, transparent 70%); }
    .hero-text { position: relative; z-index: 2; }
    .hero-eyebrow { font-family: 'DM Mono', monospace; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: 1.2rem; display: flex; align-items: center; gap: .8rem; }
    .hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--teal); }
    h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 300; line-height: 1.05; margin-bottom: .4rem; }
    h1 em { font-style: italic; color: var(--gold-lt); font-weight: 400; }
    .hero-subtitle { font-family: 'Cormorant Garamond', serif; font-size: clamp(1rem, 2vw, 1.35rem); font-style: italic; color: var(--muted); margin-bottom: 2rem; }
    .typewriter-wrap { display: flex; align-items: center; gap: .6rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
    .tw-prefix { font-family: 'DM Mono', monospace; font-size: .8rem; color: var(--gold); letter-spacing: .06em; }
    .tw-text { font-family: 'DM Mono', monospace; font-size: .95rem; color: var(--cream); border-right: 2px solid var(--gold); padding-right: 4px; white-space: nowrap; overflow: hidden; animation: blink .7s step-end infinite; }
    @keyframes blink { 50% { border-color: transparent; } }
    .hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
    .btn { padding: .72rem 1.7rem; border-radius: 2px; font-family: 'DM Mono', monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: none; transition: all .3s; display: inline-flex; align-items: center; gap: .4rem; }
    .btn-primary { background: var(--gold); color: var(--ink); font-weight: 500; }
    .btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); }
    .btn-outline { background: transparent; color: var(--cream); border: 1px solid var(--border-h); }
    .btn-outline:hover { border-color: var(--gold); color: var(--gold-lt); transform: translateY(-2px); }
    .btn-sm { padding: .46rem 1rem; font-size: .63rem; }

    /* PHOTO */
    .hero-photo { position: relative; z-index: 2; display: flex; justify-content: center; align-items: flex-end; }
    .photo-frame { position: relative; width: 400px; max-width: 90%; }
    .photo-frame::before { content: ''; position: absolute; top: -16px; right: -16px; width: 100%; height: 100%; border: 1px solid var(--gold); border-radius: 4px; opacity: .3; z-index: 0; }
    .photo-frame::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 32%; background: linear-gradient(to top, var(--ink), transparent); z-index: 2; }
    .photo-frame img { width: 100%; border-radius: 4px; position: relative; z-index: 1; display: block; }
    .hobby-pills { position: absolute; left: -72px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: .5rem; z-index: 5; }
    .pill { background: rgba(26,32,53,.85); border: 1px solid var(--border-h); padding: .36rem .85rem; border-radius: 100px; font-family: 'DM Mono', monospace; font-size: .62rem; letter-spacing: .08em; color: var(--muted); white-space: nowrap; backdrop-filter: blur(10px); animation: fpill 4s ease-in-out infinite; }
    .pill:nth-child(2){animation-delay:.5s}.pill:nth-child(3){animation-delay:1s}.pill:nth-child(4){animation-delay:1.5s}.pill:nth-child(5){animation-delay:2s}.pill:nth-child(6){animation-delay:2.5s}
    @keyframes fpill { 0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)} }
    .scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .4rem; font-family: 'DM Mono', monospace; font-size: .6rem; letter-spacing: .14em; color: var(--muted); }
    .sline { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--muted), transparent); animation: sl 1.6s ease-in-out infinite; }
    @keyframes sl { 0%,100%{opacity:.2}50%{opacity:1} }

    /* SECTIONS */
    section { padding: 7rem 5rem; }
    .section-label { font-family: 'DM Mono', monospace; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin-bottom: .8rem; display: flex; align-items: center; gap: .8rem; }
    .section-label::before { content: ''; width: 22px; height: 1px; background: var(--teal); }
    h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; line-height: 1.1; margin-bottom: 1rem; }
    h2 em { font-style: italic; color: var(--gold-lt); }
    .section-desc { color: var(--muted); max-width: 500px; font-size: .92rem; line-height: 1.8; }

    /* ABOUT */
    #about { background: var(--deep); display: grid; grid-template-columns: 1fr 1.15fr; gap: 5rem; align-items: start; }
    .about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2.5rem; }
    .stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 1.3rem 1.4rem; }
    .stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; font-weight: 300; color: var(--gold-lt); line-height: 1; margin-bottom: .2rem; }
    .stat-label { font-family: 'DM Mono', monospace; font-size: .61rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
    .about-text p { margin-bottom: 1.1rem; color: var(--muted); line-height: 1.8; font-size: .94rem; }
    .about-text strong { color: var(--cream); }
    .about-links { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
    .milestones { margin-top: 2.5rem; border-left: 1px solid var(--border-h); padding-left: 1.4rem; display: flex; flex-direction: column; gap: 1.1rem; }
    .ms { position: relative; }
    .ms::before { content: ''; position: absolute; left: -1.75rem; top: .45rem; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
    .ms-year { font-family: 'DM Mono', monospace; font-size: .61rem; letter-spacing: .1em; color: var(--gold); margin-bottom: .14rem; }
    .ms-text { font-size: .84rem; color: var(--muted); line-height: 1.55; }

    /* HOBBIES */
    #hobbies { background: var(--ink); }
    .hobbies-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2.8rem; flex-wrap: wrap; gap: 1rem; }
    .hobbies-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
    .hobby-card { background: var(--surface); padding: 2.1rem; position: relative; overflow: hidden; display: flex; flex-direction: column; transition: background .35s; }
    .hobby-card:hover { background: var(--card); }
    .hobby-card::before { content:''; position:absolute; inset:0; opacity:0; transition:opacity .4s; pointer-events:none; }
    .hobby-card:hover::before { opacity:1; }
    .hc-astro::before  { background: radial-gradient(circle at 0 0, #151f4a, transparent 65%); }
    .hc-photo::before  { background: radial-gradient(circle at 0 0, #0e2828, transparent 65%); }
    .hc-bird::before   { background: radial-gradient(circle at 0 0, #122010, transparent 65%); }
    .hc-read::before   { background: radial-gradient(circle at 0 0, #261a0c, transparent 65%); }
    .hc-hist::before   { background: radial-gradient(circle at 0 0, #2a1a0a, transparent 65%); }
    .hc-sites::before  { background: radial-gradient(circle at 0 0, #14103a, transparent 65%); }
    .hc-stamps::before { background: radial-gradient(circle at 0 0, #280f1c, transparent 65%); }
    .hc-gadget::before { background: radial-gradient(circle at 0 0, #091e30, transparent 65%); }
    .hc-design::before { background: radial-gradient(circle at 0 0, #2a1020, transparent 65%); }
    .hobby-icon { font-size: 2rem; margin-bottom: 1rem; display: block; position: relative; z-index: 1; transition: transform .3s; }
    .hobby-card:hover .hobby-icon { transform: scale(1.1); }
    .hobby-name { font-family: 'Cormorant Garamond', serif; font-size: 1.28rem; font-weight: 400; color: var(--cream); margin-bottom: .4rem; position: relative; z-index: 1; }
    .hobby-desc { font-size: .82rem; color: var(--muted); line-height: 1.65; position: relative; z-index: 1; flex: 1; }
    .hobby-affiliations { margin-top: .85rem; display: flex; flex-wrap: wrap; gap: .3rem; position: relative; z-index: 1; }
    .aff-badge { font-family: 'DM Mono', monospace; font-size: .57rem; letter-spacing: .06em; padding: .2rem .6rem; border-radius: 100px; border: 1px solid var(--border-h); color: var(--muted); background: rgba(255,255,255,.03); white-space: nowrap; }
    .aff-more { font-family: 'DM Mono', monospace; font-size: .57rem; letter-spacing: .06em; padding: .2rem .6rem; border-radius: 100px; border: 1px solid var(--gold); color: var(--gold); white-space: nowrap; }
    .hobby-footer { margin-top: 1.1rem; padding-top: .85rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
    .hobby-tag { font-family: 'DM Mono', monospace; font-size: .57rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); opacity: .5; }
    .hobby-link { font-family: 'DM Mono', monospace; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); text-decoration: none; opacity: 0; transition: opacity .3s; }
    .hobby-card:hover .hobby-link { opacity: 1; }
    .hobby-card.wide { grid-column: span 2; }

    /* AFFILIATIONS */
    #affiliations { background: var(--deep); }
    .aff-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem; }
    .aff-group { margin-bottom: 2rem; }
    .aff-group-label { font-family: 'DM Mono', monospace; font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: var(--teal); margin-bottom: .9rem; display: flex; align-items: center; gap: .6rem; }
    .aff-group-label::before { content: ''; width: 18px; height: 1px; background: var(--teal); }
    .aff-cards { display: flex; flex-wrap: wrap; gap: .7rem; }
    .aff-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: .85rem 1.15rem; display: flex; align-items: flex-start; gap: .75rem; min-width: 215px; flex: 0 1 auto; transition: border-color .3s, background .3s; }
    .aff-card:hover { border-color: var(--gold); background: var(--gold-pale); }
    .aff-flag { font-size: 1.2rem; flex-shrink: 0; margin-top: .08rem; }
    .aff-name { font-size: .83rem; color: var(--cream); line-height: 1.3; margin-bottom: .16rem; }
    .aff-role { font-family: 'DM Mono', monospace; font-size: .58rem; letter-spacing: .08em; color: var(--gold); text-transform: uppercase; }
    .aff-country { font-family: 'DM Mono', monospace; font-size: .57rem; color: var(--muted); margin-top: .08rem; }

    /* GALLERY */
    #gallery { background: var(--ink); }
    .gallery-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem; }
    .gallery-mosaic { display: grid; grid-template-columns: repeat(4,1fr); grid-template-rows: 190px 190px; gap: 1rem; }
    .gal-slot { border-radius: 6px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .4rem; border: 1px solid var(--border); transition: transform .3s, box-shadow .3s; cursor: pointer; }
    .gal-slot:hover { transform: scale(1.02); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
    .gal-slot:first-child { grid-row: span 2; }
    .gal-slot:nth-child(3) { grid-column: span 2; }
    .gal-icon { font-size: 2rem; opacity: .35; position: relative; z-index: 1; }
    .gal-label { font-family: 'DM Mono', monospace; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); opacity: .6; position: relative; z-index: 1; }
    .gal-slot:nth-child(1){background:linear-gradient(135deg,#080d1c,#1a2555);}
    .gal-slot:nth-child(2){background:linear-gradient(135deg,#081208,#1a3018);}
    .gal-slot:nth-child(3){background:linear-gradient(135deg,#1c1205,#3a2808);}
    .gal-slot:nth-child(4){background:linear-gradient(135deg,#12080c,#2a1020);}
    .gal-slot:nth-child(5){background:linear-gradient(135deg,#080c1c,#141535);}
    .gal-slot:nth-child(6){background:linear-gradient(135deg,#0a0f00,#1e2800);}
    .gal-coming { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(11,14,26,.6); font-family: 'DM Mono', monospace; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity .3s; }
    .gal-slot:hover .gal-coming { opacity: 1; }

    /* BLOG */
    #blog { background: var(--deep); }
    .blog-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem; }
    .blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
    .blog-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; text-decoration: none; display: block; transition: transform .3s, box-shadow .3s; }
    .blog-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,.55); }
    .blog-thumb { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; }
    .bt1{background:linear-gradient(135deg,#080d1c,#1a2555);}
    .bt2{background:linear-gradient(135deg,#081208,#1a3018);}
    .bt3{background:linear-gradient(135deg,#1c1205,#3a2808);}
    .blog-body { padding: 1.3rem; }
    .blog-cat { font-family: 'DM Mono', monospace; font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: .4rem; }
    .blog-title { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--cream); font-weight: 400; margin-bottom: .4rem; line-height: 1.3; }
    .blog-excerpt { font-size: .8rem; color: var(--muted); line-height: 1.6; }
    .blog-meta { display: flex; justify-content: space-between; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--border); font-family: 'DM Mono', monospace; font-size: .6rem; color: var(--muted); letter-spacing: .06em; }
    .blog-wp-note { text-align: center; margin-top: 2rem; font-family: 'DM Mono', monospace; font-size: .72rem; color: var(--muted); }
    .blog-wp-note a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201,148,58,.3); }
    .blog-wp-note a:hover { color: var(--gold-lt); }

    /* CONNECT */
    #connect { background: var(--ink); text-align: center; }
    #connect h2 { margin-bottom: .8rem; }
    .connect-sub { color: var(--muted); max-width: 460px; margin: 0 auto 2.8rem; font-size: .92rem; }
    .connect-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
    .connect-link { display: flex; align-items: center; gap: .55rem; padding: .85rem 1.6rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); font-family: 'DM Mono', monospace; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: all .3s; }
    .connect-link:hover { border-color: var(--gold); color: var(--gold-lt); background: var(--gold-pale); transform: translateY(-3px); }

    /* FOOTER */
    footer { background: var(--deep); border-top: 1px solid var(--border); padding: 2.2rem 5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
    .footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--gold-lt); font-weight: 600; }
    .footer-links { display: flex; gap: 1.5rem; list-style: none; }
    .footer-links a { font-family: 'DM Mono', monospace; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .3s; }
    .footer-links a:hover { color: var(--gold); }
    .footer-copy { font-family: 'DM Mono', monospace; font-size: .6rem; letter-spacing: .07em; color: var(--muted); opacity: .6; }

    /* REVEAL */
    .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
    .reveal.visible { opacity: 1; transform: none; }
    .d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }

    /* RESPONSIVE */
    @media(max-width:960px){
      nav{padding:1rem 1.5rem;} .nav-links{display:none;}
      #hero{grid-template-columns:1fr;padding:6rem 2rem 4rem;text-align:center;}
      .hero-photo{display:none;} .hero-eyebrow{justify-content:center;} .hero-cta{justify-content:center;}
      section{padding:5rem 1.5rem;} #about{grid-template-columns:1fr;gap:2.5rem;}
      .hobbies-grid{grid-template-columns:1fr 1fr;} .hobby-card.wide{grid-column:span 1;}
      .blog-grid{grid-template-columns:1fr;}
      .gallery-mosaic{grid-template-columns:1fr 1fr;grid-template-rows:auto;}
      .gal-slot:first-child{grid-row:span 1;} .gal-slot:nth-child(3){grid-column:span 1;}
      footer{flex-direction:column;text-align:center;padding:2rem;}
    }
    @media(max-width:580px){
      .hobbies-grid{grid-template-columns:1fr;}
      .aff-cards{flex-direction:column;}
    }