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

/* ===== DARK MODE VARIABLES (default) ===== */
:root{
  --bg:#0e0b07;
  --bg2:#181410;
  --bg3:#221e18;
  --card:#2a2520;
  --border:#3d372e;
  --accent:#c8703a;
  --accent2:#e8a86a;
  --calligraphy:#e2a15f;
  --gold:#d4a843;
  --blue:#5b9bd5;
  --green:#6baa7a;
  --purple:#9b7fc8;
  --text:#f0ebe3;
  --text2:#a89880;
  --text3:#6b5e4e;
  --red:#d05555;
}

/* ===== LIGHT MODE VARIABLES ===== */
body.light{
  --bg:#f5f0e8;
  --bg2:#ffffff;
  --bg3:#ede8de;
  --card:#ffffff;
  --border:#d8cfc4;
  --accent:#c8703a;
  --accent2:#a85c2a;
  --calligraphy:#cb8040;
  --gold:#9a7420;
  --blue:#2563ab;
  --green:#3d7a4a;
  --purple:#6b4faa;
  --text:#1a1208;
  --text2:#4a3828;
  --text3:#8a7060;
  --red:#c03030;
}

body{font-family:'DM Sans',sans-serif;background:var(--bg);color:var(--text);min-height:100vh}

/* ===== SIDEBAR ===== */
.sidebar{position:fixed;left:0;top:0;width:325px;height:100vh;background:var(--bg2);border-right:1px solid var(--border);overflow-y:auto;z-index:100;display:flex;flex-direction:column}
.sidebar-header{padding:1rem 1.25rem 1rem;border-bottom:1px solid var(--border)}
.sidebar-logo-link{text-decoration:none;color:inherit;display:block;padding-top:.35rem;padding-bottom:.15rem}
.sidebar-logo-link:hover,
.sidebar-logo-link:focus-visible{outline:none}
.logo-fa{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  height:auto;
  min-height:48px;
}
.logo-image{
  display:block;
  width:110px;
  height:auto;
  max-width:none;
  object-fit:contain;
}
.logo-en{font-size:12px;color:var(--text3);text-align:center;letter-spacing:3px;text-transform:uppercase;line-height:1.2}
.sidebar-search{padding:.75rem 1rem;border-bottom:1px solid var(--border)}
.sidebar-search input{width:100%;background:var(--bg3);border:1px solid var(--border);border-radius:6px;padding:6px 10px;font-size:12px;color:var(--text);font-family:'DM Sans',sans-serif}
.sidebar-search input:focus{outline:none;border-color:var(--accent)}
.sidebar-search input::placeholder{color:var(--text3)}
.level-nav{padding:.75rem 1rem .6rem;border-bottom:1px solid var(--border)}
.level-nav-label{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:var(--text3);margin-bottom:.5rem}
.level-pill-wrap{display:flex;gap:6px;flex-wrap:wrap}
.level-pill{background:var(--bg3);border:1px solid var(--border);border-radius:999px;padding:4px 10px;font-size:12px;line-height:1;color:var(--text3);cursor:pointer;transition:all .2s;font-family:'DM Sans',sans-serif}
.level-pill:hover{border-color:var(--accent);color:var(--text)}
.level-pill.active{background:var(--accent);color:#fff;border-color:var(--accent)}
.section-group{padding:.5rem 0}
.section-group-label{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:var(--text3);padding:.5rem 1.25rem;font-weight:500}
.lesson-link{display:flex;align-items:center;gap:10px;padding:.5rem 1.25rem;cursor:pointer;transition:all .2s;font-size:13px;color:var(--text2);border-left:2px solid transparent}
.lesson-link:hover{color:var(--text);background:var(--bg3);border-left-color:var(--border)}
.lesson-link.active{color:var(--accent2);background:var(--bg3);border-left-color:var(--accent)}

/* lesson number badge — now .lnum */
.lnum{width:20px;height:20px;border-radius:4px;background:var(--bg3);font-size:12px;display:flex;align-items:center;justify-content:center;color:var(--text3);flex-shrink:0}
.lesson-link.active .lnum{background:var(--accent);color:#fff}

.empty-level{padding:1rem 1.25rem;color:var(--text3);font-size:12px;line-height:1.6}
.empty-level-title{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:var(--text2);margin-bottom:.5rem}
.empty-level code{font-size:12px}

/* ===== TAGS ===== */
.tag{font-size:12px;padding:2px 6px;border-radius:3px;font-weight:500;margin-left:auto;flex-shrink:0}
.tag-alpha{background:#2d1e0e;color:var(--accent)}
.tag-num{background:#2d2500;color:var(--gold)}
.tag-gram{background:#1d0e2d;color:var(--purple)}
.tag-conv{background:#0e1e2d;color:var(--blue)}
.tag-cult{background:#1a1d0e;color:var(--green)}

/* Light mode tag overrides */
body.light .tag-alpha{background:#f0e0d0;color:#a05020}
body.light .tag-num{background:#fff8d0;color:#8a6a10}
body.light .tag-gram{background:#f0e0f0;color:#5a3a8a}
body.light .tag-conv{background:#e0f0ff;color:#1a4a8a}
body.light .tag-cult{background:#e0f0e0;color:#2a5a2a}

/* Light mode tag overrides */
body.light .tag-alpha{background:#f0e0d0;color:#a05020}
body.light .tag-num{background:#fff8d0;color:#8a6a10}
body.light .tag-gram{background:#f0e0f0;color:#5a3a8a}
body.light .tag-conv{background:#e0f0ff;color:#1a4a8a}
body.light .tag-cult{background:#e0f0e0;color:#2a5a2a}

/* ===== TOPBAR ===== */
.main{margin-left:325px;min-height:100vh}
.topbar{position:sticky;top:0;background:var(--bg2);border-bottom:1px solid var(--border);padding:.75rem 2rem;display:flex;align-items:center;gap:1rem;z-index:50}
.topbar-title{font-family:'DM Sans',sans-serif;font-size:18px;color:var(--text)}
.topbar-badge{font-size:12px;padding:3px 10px;border-radius:20px;font-weight:500}

/* theme toggle button */
.theme-toggle{margin-left:auto;padding:6px 14px;border-radius:20px;font-size:12px;cursor:pointer;font-family:'DM Sans',sans-serif;border:1px solid var(--border);background:var(--bg3);color:var(--text2);transition:all .2s;display:flex;align-items:center;gap:5px}
.theme-toggle:hover{border-color:var(--accent);color:var(--accent)}

/* ===== CONTENT & TABS ===== */
.content{padding:2rem;max-width:800px}
.tabs{display:flex;gap:0;border-bottom:1px solid var(--border);margin-bottom:1.6rem}
.tab{padding:.6rem 1.25rem;font-size:13px;cursor:pointer;color:var(--text3);border-bottom:2px solid transparent;margin-bottom:-1px;transition:all .2s}
.tab:hover{color:var(--text2)}
.tab.active{color:var(--accent2);border-bottom-color:var(--accent)}
.section{display:none}
.section.active{display:block}

/* ===== INTRO CARD ===== */
.intro-card{background:var(--bg3);border:1px solid var(--border);border-radius:12px;padding:1.5rem;margin-bottom:2rem;border-left:3px solid var(--accent)}
.intro-card h2{font-family:'DM Sans',sans-serif;font-size:22px;font-weight:500;margin-bottom:.5rem;color:var(--accent2)}
.intro-card p{font-size:14px;color:var(--text2);line-height:1.7}

/* ===== LABEL ===== */
.label{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--text3);font-weight:500;margin-bottom:.75rem}

/* ===== ALPHABET LETTERS ===== */
.char-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:2rem}
.char-card{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:1rem;text-align:center;transition:border-color .2s}
.char-card:hover{border-color:var(--accent)}
.c-main{font-size:46px;line-height:1.2;margin-bottom:4px}
.c-name{font-size:12px;font-weight:500;margin-bottom:2px}
.c-roman{font-size:12px;color:var(--text3)}
.c-nc{font-size:12px;color:var(--accent);margin-top:3px}
.c-desc{font-size:12px;color:var(--text3);margin-top:6px;line-height:1.4}

/* forms table */
.forms-wrap{overflow-x:auto;margin-bottom:2rem}
table.forms{width:100%;border-collapse:collapse;font-size:13px}
table.forms th{text-align:left;padding:8px 12px;color:var(--text3);font-size:12px;font-weight:500;border-bottom:1px solid var(--border);white-space:nowrap}
table.forms td{padding:10px 12px;border-bottom:1px solid var(--border)}
table.forms td:first-child{color:var(--text2);font-size:12px}
.f-form{font-size:24px;line-height:1}
.nc-badge{font-size:12px;background:#2d1e0e;color:var(--accent);padding:2px 5px;border-radius:3px;display:inline-block}
.tip-row td{background:#1a1200;color:var(--gold);font-size:12px;padding:4px 12px 8px}
body.light .tip-row td{background:#fff8e0}
body.light .nc-badge{background:#ffe0cc}

/* vowels box */
.vowel-box{background:var(--bg3);border:1px solid var(--border);border-radius:8px;padding:1rem 1.25rem;margin-bottom:2rem;font-size:13px;color:var(--text2);line-height:1.7}
.vowel-box strong{color:var(--gold)}

/* ===== PHRASES (p-fa / p-ro / p-en) ===== */
.phrase-list{display:flex;flex-direction:column;gap:6px;margin-bottom:2rem}
.phrase-item{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:10px;padding:8px 12px;background:var(--card);border:1px solid var(--border);border-radius:6px;align-items:center;font-size:13px}
.p-fa{direction:rtl;text-align:right;font-size:17px;color:var(--accent2)}
.p-ro{color:var(--blue)}
.p-en{color:var(--text3)}

/* ===== NUMBERS ===== */
.num-box{background:var(--bg3);border:1px solid var(--border);border-radius:10px;padding:1.25rem;margin-bottom:2rem}
.num-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.num-card{background:var(--card);border:1px solid var(--border);border-radius:8px;padding:.75rem;text-align:center}
.nf{font-size:20px;color:var(--accent2);margin-bottom:3px}
.na{font-size:18px;color:var(--gold);margin-bottom:2px}
.nr{font-size:12px;color:var(--blue);margin-bottom:2px}
.nv{font-size:14px;font-weight:500;color:var(--text2)}
.num-rule{background:var(--card);border:1px solid var(--border);border-left:3px solid var(--gold);border-radius:8px;padding:.75rem 1rem;margin-bottom:.75rem;font-size:13px;color:var(--text2);line-height:1.7}
.num-rule strong{color:var(--gold)}

/* ===== GRAMMAR ===== */
.gram-box{background:var(--bg3);border:1px solid var(--border);border-radius:12px;padding:1.5rem;margin-bottom:2rem}
.gram-box h3{font-family:'DM Sans',sans-serif;font-size:18px;font-weight:500;color:var(--accent2);margin-bottom:1rem}
.gram-note{background:var(--card);border:1px solid var(--border);border-radius:8px;padding:.875rem 1rem;margin-bottom:1.25rem;font-size:13px;color:var(--text2);line-height:1.7}
.gram-note strong{color:var(--text)}
.stem-pill{background:#2d1e0e;color:var(--accent2);font-size:15px;padding:2px 8px;border-radius:4px}
body.light .stem-pill{background:#ffe0cc}
.conj-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:.75rem}
.conj-table{width:100%;border-collapse:collapse;font-size:13px}
.conj-table th{text-align:left;padding:6px 10px;font-size:12px;font-weight:500;color:var(--text3);border-bottom:1px solid var(--border)}
.conj-table td{padding:8px 10px;border-bottom:1px solid var(--border)}
.ct-pron{font-size:13px;color:var(--text);line-height:1.5}
.ct-fa{font-size:18px;color:var(--accent2)}
.ct-ro{font-size:12px;color:var(--blue);font-style:italic}

/* ===== DIALOGUE ===== */
.dialogue{background:var(--bg3);border:1px solid var(--border);border-radius:12px;padding:1.5rem;margin-bottom:2rem}
.dlg-meta{font-size:13px;color:var(--text3);margin-bottom:1rem;font-style:italic}
.dlg-line{display:flex;gap:12px;margin-bottom:1rem;align-items:flex-start}
.dlg-line.r{flex-direction:row-reverse}
.dlg-name{font-size:12px;font-weight:500;white-space:nowrap;margin-top:4px;min-width:50px}
.dlg-name.a{color:var(--accent)}
.dlg-name.b{color:var(--blue);text-align:right}
.dlg-bubble{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:10px 14px;max-width:440px}
.dlg-line.r .dlg-bubble{background:#1a1e2a;border-color:#2a3040}
body.light .dlg-line.r .dlg-bubble{background:#e8edf5;border-color:#c0cde0}
.dlg-fa{font-size:17px;direction:rtl;text-align:right;color:var(--text);margin-bottom:3px}
.dlg-ro{font-size:12px;color:var(--blue);margin-bottom:2px;font-style:italic}
.dlg-en{font-size:12px;color:var(--text3)}

/* ===== VOCAB (v-fa / v-ro / v-en) ===== */
.vsec-title{font-size:13px;font-weight:500;color:var(--accent2);margin:1.25rem 0 .5rem;padding-bottom:.4rem;border-bottom:1px solid var(--border)}
.vocab-list{display:flex;flex-direction:column;gap:8px;margin-bottom:1.5rem}
.vocab-item{display:flex;align-items:center;gap:12px;padding:10px 14px;background:var(--card);border:1px solid var(--border);border-radius:8px}
.v-fa{font-size:22px;min-width:90px;text-align:right;direction:rtl;color:var(--accent2)}
.v-ro{font-size:13px;color:var(--blue);font-weight:500}
.v-en{font-size:13px;color:var(--text2)}

/* ===== SENTENCES ===== */
.sent-list{display:flex;flex-direction:column;gap:10px;margin-bottom:2rem}
.sent-item{background:var(--card);border:1px solid var(--border);border-radius:8px;padding:12px 14px}
.s-fa{font-size:20px;direction:rtl;text-align:right;color:var(--text);margin-bottom:4px}
.s-ro{font-size:13px;color:var(--blue);margin-bottom:2px}
.s-en{font-size:13px;color:var(--text3)}

/* ===== CULTURE (cult-card / cult-hdr / cult-txt) ===== */
.cult-card{background:var(--bg3);border:1px solid var(--border);border-radius:12px;overflow:hidden;margin-bottom:1.5rem}
.cult-hdr{padding:1rem 1.25rem;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:10px;background:var(--card)}
.cult-hdr h3{font-size:15px;font-weight:500}
.cult-body{padding:1.25rem}
.cult-fa{font-size:22px;direction:rtl;text-align:right;color:var(--gold);margin-bottom:5px;line-height:1.5}
.cult-ro{font-size:13px;color:var(--text3);font-style:italic;margin-bottom:5px}
.cult-en{font-size:14px;font-weight:500;margin-bottom:10px;color:var(--text2)}
.cult-txt{font-size:13px;color:var(--text2);line-height:1.7}

/* ===== CITIES ===== */
.city-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:2rem}
.city-card{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:1.25rem}
.city-card h3{font-size:15px;font-weight:500;margin-bottom:3px;color:var(--accent2)}
.city-fa{font-size:20px;direction:rtl;color:var(--gold);margin-bottom:8px}
.city-card p{font-size:12px;color:var(--text2);line-height:1.6}
.city-sights{margin-top:8px;font-size:12px;color:var(--text3)}

/* ===== INFO BOXES ===== */
.info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:1.5rem}
.info-box{background:var(--card);border:1px solid var(--border);border-radius:8px;padding:1rem}
.info-box h4{font-size:12px;font-weight:500;color:var(--text3);margin-bottom:6px;text-transform:uppercase;letter-spacing:.05em}
.info-box p{font-size:13px;color:var(--text2);line-height:1.6}

/* ===== TIMELINE ===== */
.timeline{position:relative;padding-left:24px;margin-bottom:2rem}
.timeline::before{content:'';position:absolute;left:6px;top:0;bottom:0;width:1px;background:var(--border)}
.tl-item{position:relative;margin-bottom:1.5rem}
.tl-item::before{content:'';position:absolute;left:-20px;top:4px;width:8px;height:8px;border-radius:50%;background:var(--accent);border:2px solid var(--bg3)}
.tl-year{font-size:12px;font-weight:500;color:var(--accent);margin-bottom:3px}
.tl-title{font-size:14px;font-weight:500;margin-bottom:3px}
.tl-body{font-size:13px;color:var(--text2);line-height:1.6}
.tl-fa{font-size:16px;direction:rtl;color:var(--gold);margin-top:4px}

/* ===== WEATHER ===== */
.weather-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:2rem}
.wth-card{background:var(--card);border:1px solid var(--border);border-radius:8px;padding:.75rem;text-align:center}
.wth-season{font-size:12px;color:var(--text3);margin-bottom:4px}
.wth-temp{font-size:18px;font-weight:500;color:var(--accent2);margin-bottom:3px}
.wth-desc{font-size:12px;color:var(--text2);margin-top:3px;line-height:1.4}

/* ===== QUIZ ===== */
.quiz-progress{display:flex;gap:5px;margin-bottom:1.5rem}
.qp-dot{width:7px;height:7px;border-radius:50%;background:var(--border);transition:all .3s}
.qp-dot.done{background:var(--green)}
.qp-dot.cur{background:var(--accent)}
.quiz-card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:1.5rem;margin-bottom:1rem}
.q-num{font-size:12px;color:var(--text3);margin-bottom:.75rem}
.q-text{font-size:15px;font-weight:500;margin-bottom:.75rem;color:var(--text)}
.q-char{font-size:56px;text-align:center;padding:1rem 0;line-height:1;color:var(--accent2)}
.q-opts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:1rem}
.q-opt{padding:10px 14px;background:var(--bg3);border:1px solid var(--border);border-radius:8px;font-size:13px;cursor:pointer;color:var(--text2);text-align:center;transition:all .2s;font-family:'DM Sans',sans-serif}
.q-opt:hover{border-color:var(--accent);color:var(--text)}
.q-opt.ok{background:#0e2010;border-color:var(--green);color:var(--green)}
.q-opt.no{background:#2d0e0e;border-color:var(--red);color:var(--red)}
body.light .q-opt.ok{background:#e8f5e8}
body.light .q-opt.no{background:#fce8e8}
.q-fb{padding:10px 14px;border-radius:8px;font-size:13px;margin-top:.75rem;display:none}
.q-fb.show{display:block}
.q-fb.ok{background:#0e2010;color:var(--green)}
.q-fb.no{background:#2d0e0e;color:var(--red)}
body.light .q-fb.ok{background:#e8f5e8}
body.light .q-fb.no{background:#fce8e8}
.q-next{margin-top:1rem;text-align:right}

/* score board */
.score-board{text-align:center;padding:3rem 1rem}
.sc-big{font-size:56px;font-weight:300;color:var(--accent);font-family:'DM Sans',sans-serif}
.sc-lbl{font-size:14px;color:var(--text3);margin-bottom:1rem}
.sc-msg{font-size:14px;color:var(--text2);line-height:1.7;max-width:400px;margin:0 auto 2rem}

/* ===== BUTTONS ===== */
.btn{padding:8px 20px;border-radius:20px;font-size:13px;cursor:pointer;font-family:'DM Sans',sans-serif;transition:all .2s;border:none}
.btn-acc{background:var(--accent);color:#fff}
.btn-acc:hover{background:#a85c2a}
.btn-sec{background:transparent;border:1px solid var(--border);color:var(--text2)}
.btn-sec:hover{border-color:var(--accent);color:var(--accent)}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar{width:4px}
::-webkit-scrollbar-track{background:var(--bg)}
::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}

/* ===== MOBILE ===== */
@media(max-width:700px){
  .sidebar{width:100%;height:auto;position:relative;border-right:none;border-bottom:1px solid var(--border)}
  .main{margin-left:0}
  .char-grid{grid-template-columns:repeat(3,1fr)}
  .num-grid{grid-template-columns:repeat(3,1fr)}
  .city-grid,.info-grid,.weather-grid{grid-template-columns:1fr}
  .conj-grid{grid-template-columns:1fr}
  .q-opts{grid-template-columns:1fr}
  .phrase-item{grid-template-columns:1fr 1fr}
  .p-en{display:none}
}

/* ===== WELCOME & ABOUT PAGES ===== */

.pg-sidebar-divider{height:1px;background:var(--border);margin:.25rem 0}

/* Two-section sidebar labels */
.sidebar-section-heading{
  font-size:12px;letter-spacing:2px;text-transform:uppercase;
  color:var(--text2);font-weight:600;
  padding:.75rem 1.25rem .35rem;
  display:flex;align-items:center;gap:6px;
}
.sidebar-section-heading .ssh-dot{
  width:6px;height:6px;border-radius:50%;flex-shrink:0;
}
.ssh-dot-theory{background:var(--accent)}
.ssh-dot-practice{background:var(--blue)}

/* Hero */
.pg-hero{ text-align:center;padding:3.3rem 1rem 2.8rem;border-bottom:1px solid var(--border);margin-bottom:2.2rem}
.pg-calligraphy{font-family:'Playfair Display',serif;font-size:clamp(72px,12vw,120px);color:var(--accent);letter-spacing:12px;line-height:1;margin-bottom:1.5rem}
.pg-tagline{font-family:'Playfair Display',serif;font-size:clamp(18px,2.8vw,26px);font-weight:400;color:var(--text);margin-bottom:.75rem;line-height:1.4}
.pg-sub{font-size:15px;color:var(--text2);max-width:480px;margin:0 auto 1rem;line-height:1.7}

/* Proverb */
.pg-proverb-wrap{max-width:580px;margin:0 auto 4rem;text-align:center;padding:2.5rem 2rem;border:1px solid var(--border);border-radius:16px;background:var(--bg3)}
.pg-proverb-fa{font-family:'Playfair Display',serif;font-size:clamp(20px,4vw,28px);color:var(--gold);direction:rtl;line-height:1.6;margin-bottom:.75rem}
.pg-proverb-ro{font-size:14px;color:var(--blue);font-style:italic;margin-bottom:.5rem}
.pg-proverb-en{font-size:15px;font-weight:500;color:var(--text);margin-bottom:1rem}
.pg-proverb-note{font-size:13px;color:var(--text3);line-height:1.6;border-top:1px solid var(--border);padding-top:.75rem;margin-top:.25rem}

/* About hero */
.pg-about{max-width:680px}
.pg-about-hero{display:flex;gap:2rem;align-items:flex-start;margin-bottom:2.5rem}
.pg-photo-placeholder{width:110px;height:110px;border-radius:50%;border:2px dashed var(--border);flex-shrink:0;display:flex;align-items:center;justify-content:center;background:var(--bg3)}
.pg-photo-hint{font-size:12px;color:var(--text3);text-align:center;line-height:1.4}
/* When you have a real photo, replace the placeholder div with:
   <img src="photo.jpg" class="pg-photo-real" alt="Serene"> */
.pg-photo-real{width:110px;height:110px;border-radius:50%;object-fit:cover;border:2px solid var(--border);flex-shrink:0}
.pg-about-name{font-family:'DM Sans',sans-serif;font-size:26px;font-weight:500;color:var(--text);margin-bottom:4px}
.pg-about-role{font-size:13px;color:var(--accent);margin-bottom:.75rem;letter-spacing:.03em}
.pg-about-bio{font-size:14px;color:var(--text2);line-height:1.8}

/* About divider */
.pg-about-divider{height:1px;background:var(--border);margin-bottom:2.5rem}

/* About section */
.pg-about-h2{font-family:'DM Sans',sans-serif;font-size:20px;font-weight:500;color:var(--text);margin-bottom:1.25rem}
.pg-about-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:2.5rem}
.pg-about-card{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:1.25rem;transition:border-color .2s}
.pg-about-card:hover{border-color:var(--accent)}
.pg-about-card-icon{font-size:22px;margin-bottom:.5rem}
.pg-about-card-title{font-size:14px;font-weight:500;color:var(--text);margin-bottom:.4rem}
.pg-about-card-body{font-size:13px;color:var(--text2);line-height:1.6}

/* Personal note */
.pg-personal-note{background:var(--bg3);border:1px solid var(--border);border-left:3px solid var(--accent);border-radius:0 12px 12px 0;padding:1.5rem 1.75rem;position:relative;margin-bottom:3rem}
.pg-personal-note-quote{font-family:'Playfair Display',serif;font-size:64px;color:var(--accent);opacity:.2;line-height:1;position:absolute;top:.25rem;left:1rem}
.pg-personal-note p{font-size:14px;color:var(--text2);line-height:1.8;position:relative}

/* ===== WELCOME ENHANCEMENTS ===== */

/* Entrance animation */
.pg-fade-up{
  opacity:0;
  animation:pg-fade-up .65s ease forwards;
}
@keyframes pg-fade-up{
  from{opacity:0;transform:translateY(22px)}
  to  {opacity:1;transform:translateY(0)}
}

/* SVG calligraphy — draw-itself stroke animation */
.pg-calligraphy-svg{
  display:block;
  width:100%;
  max-width:520px;
  margin:0 auto 1.5rem;
  overflow:visible;
}
/* Each path uses pathLength="1" so dasharray/dashoffset values are normalised */
.pg-calligraphy-path{
  fill:transparent;
  stroke:var(--calligraphy);
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-dasharray:1;
  stroke-dashoffset:1;
  animation:
    draw-calligraphy 2.5s cubic-bezier(.4,0,.2,1) var(--draw-delay,0s)  forwards,
    fill-calligraphy 1.6s ease                     var(--fill-delay,3.6s) forwards;
}
@keyframes draw-calligraphy{
  to{stroke-dashoffset:0}
}
@keyframes fill-calligraphy{
  from{fill:transparent}
  to  {fill:var(--calligraphy)}
}


/* Mobile */
@media(max-width:600px){
  .pg-hero{padding:2.1rem 1rem 1.8rem}
  .pg-about-hero{flex-direction:column;align-items:center;text-align:center}
  .pg-about-grid{grid-template-columns:1fr}
}
