/* =========================================================
   PORTFOLIO STYLESHEET
   Theme: "Field Notes" — a working educator's notebook,
   rendered as a modern site. Grid-paper texture, chalk-drawn
   underline as the signature motif, brass/teal accents.
   ========================================================= */

/* ---------- Fonts ----------
   Loaded via <link rel="preload"/stylesheet"> in <head> for best
   performance (parallel discovery instead of a render-blocking @import). */

/* ---------- Design Tokens ---------- */
:root{
  /* paper + ink */
  --paper: #f6f5f0;
  --paper-2: #efeee6;
  --ink-900: #16233f;
  --ink-700: #33456b;
  --ink-500: #5a6b8c;
  --line: #d9d5c6;

  /* accents */
  --gold: #b9872f;
  --gold-soft: #e7cd93;
  --teal: #2e6b5e;
  --teal-soft: #cfe3dd;

  /* semantic */
  --bg: var(--paper);
  --bg-elev: #ffffff;
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --border: var(--line);
  --accent: var(--gold);
  --accent-2: var(--teal);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px -12px rgba(22,35,63,0.18);
  --shadow-tight: 0 2px 10px -4px rgba(22,35,63,0.15);

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Work Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1160px;
  --nav-h: 76px;
}

/* Chalkboard dark mode */
html[data-theme="dark"]{
  --bg: #16201c;
  --bg-elev: #1c2721;
  --text: #f1efe4;
  --text-muted: #a9b6ad;
  --border: #33443c;
  --paper-2: #1c2721;
  --accent: #e2b95a;
  --accent-2: #7fbfa8;
  --shadow-soft: 0 10px 30px -10px rgba(0,0,0,0.5);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .35s ease;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor:pointer; }
ul{ list-style:none; margin:0; padding:0; }

::selection{ background: var(--gold-soft); color: var(--ink-900); }

/* ---------- Focus visibility (a11y) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2.5px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Grid-paper texture (signature backdrop) ---------- */
.grid-paper{
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
  position:absolute; inset:0; pointer-events:none;
}

.container{ max-width: var(--maxw); margin:0 auto; padding: 0 24px; }
.section{ position: relative; padding: 108px 0; overflow:clip; }
.section-alt{ background: var(--bg-elev); }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content:"";
  width:22px; height:1px; background: var(--accent-2);
  display:inline-block;
}

h1,h2,h3,h4{ font-family: var(--font-display); color: var(--text); margin:0; }
.section-title{
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-sub{
  color: var(--text-muted);
  max-width: 58ch;
  font-size: 1.03rem;
  margin-bottom: 52px;
}

/* ---------- Signature: chalk underline ---------- */
.chalk-underline{ position:relative; display:inline-block; }
.chalk-underline svg{
  position:absolute; left:-2%; right:-2%; bottom:-0.14em; width:104%; height:0.5em;
  overflow:visible;
}
.chalk-underline path{
  stroke: var(--accent);
  stroke-width: 6;
  fill:none;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw-chalk 1.1s 0.5s cubic-bezier(.4,.2,.2,1) forwards;
}
@keyframes draw-chalk{ to{ stroke-dashoffset: 0; } }

/* ---------- Nav ---------- */
.navbar{
  position: fixed; top:0; left:0; right:0; z-index: 100;
  height: var(--nav-h);
  display:flex; align-items:center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.navbar.scrolled{ border-bottom-color: var(--border); box-shadow: var(--shadow-tight); }
.navbar .container{ display:flex; align-items:center; justify-content:space-between; width:100%; }
.brand{ font-family: var(--font-display); font-weight:600; font-size:1.25rem; letter-spacing:.01em; }
.brand span{ color: var(--accent); }

.nav-links{ display:flex; gap:30px; align-items:center; }
.nav-links a{
  font-size: 0.92rem; font-weight:500; color: var(--text-muted);
  position:relative; padding:6px 0; transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active{ color: var(--text); }
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:0; height:2px; width:0;
  background: var(--accent); transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }

.nav-actions{ display:flex; align-items:center; gap:14px; }
.icon-btn{
  width:40px; height:40px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--border); background: var(--bg-elev);
  color: var(--text); transition: transform .2s ease, border-color .2s ease;
}
.icon-btn:hover{ transform: translateY(-2px); border-color: var(--accent); }

.hamburger{ display:none; }

/* scroll progress */
.scroll-progress{
  position:fixed; top:0; left:0; height:3px; width:0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  z-index: 200;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding: 13px 26px; border-radius: 999px;
  font-weight:600; font-size:0.94rem; border:1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space:nowrap;
}
.btn-primary{ background: var(--ink-900); color: #f6f5f0; }
html[data-theme="dark"] .btn-primary{ background: var(--accent); color: #16201c; }
.btn-primary:hover{ transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.btn-outline{ border-color: var(--border); color: var(--text); background:transparent; }
.btn-outline:hover{ border-color: var(--accent-2); transform: translateY(-3px); }
.btn-ghost{ color: var(--accent-2); font-weight:600; }
.btn-ghost:hover{ text-decoration: underline; }
.btn-sm{ padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero{
  min-height: 100vh;
  display:flex; align-items:center;
  padding-top: var(--nav-h);
  position:relative;
}
.hero-grid{
  display:grid; grid-template-columns: 1.1fr 0.9fr; gap:56px; align-items:center;
  width:100%;
}
.hero-kicker{
  font-family: var(--font-mono); font-size:0.85rem; letter-spacing:0.12em;
  color: var(--accent-2); text-transform:uppercase; margin-bottom:18px;
  display:flex; align-items:center; gap:10px;
}
.hero-kicker .dot{ width:8px;height:8px;border-radius:50%; background: var(--accent-2); animation: pulse 2s infinite; }
@keyframes pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.35; } }

.hero h1{
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height:1.08; font-weight:600; margin-bottom:20px;
}
.hero-role{ font-size: clamp(1.15rem,2vw,1.4rem); color: var(--text-muted); margin-bottom:22px; font-family: var(--font-body); }
.hero-desc{ color: var(--text-muted); max-width:52ch; font-size:1.05rem; margin-bottom:36px; }
.hero-cta{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:44px; }

.hero-stats{ display:flex; gap:38px; flex-wrap:wrap; }
.stat b{
  display:block; font-family: var(--font-display); font-size:2rem; color: var(--text); font-weight:600;
}
.stat span{ font-size:0.85rem; color: var(--text-muted); }

.hero-photo-wrap{ position:relative; display:flex; justify-content:center; }
.hero-photo{
  width: 100%; max-width:400px; aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--teal-soft), var(--gold-soft));
  position:relative; overflow:hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}
.hero-photo .placeholder-mark{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-size: 5.5rem; color: var(--ink-900); opacity:0.28;
}
.hero-photo .grid-paper{ opacity:0.5; }
.margin-tag{
  position:absolute; background: var(--bg-elev); border:1px solid var(--border);
  padding:10px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-tight);
  font-family: var(--font-mono); font-size:0.78rem; color: var(--text-muted);
  display:flex; align-items:center; gap:8px;
}
.margin-tag svg{ width:16px; height:16px; color: var(--accent-2); }
.tag-1{ top:8%; left:-10%; }
.tag-2{ bottom:10%; right:-8%; }
@media (max-width: 900px){ .margin-tag{ display:none; } }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view{ opacity:1; transform:none; }
.reveal-delay-1{ transition-delay: .08s; }
.reveal-delay-2{ transition-delay: .16s; }
.reveal-delay-3{ transition-delay: .24s; }

/* ---------- About ---------- */
.about-grid{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap:64px; align-items:start; }
.about-photo{
  border-radius: var(--radius); overflow:hidden; position:relative;
  aspect-ratio: 3/4; background: var(--paper-2); border:1px solid var(--border);
  box-shadow: var(--shadow-tight);
}
.about-photo .placeholder-mark{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:4rem; opacity:.25; }
.value-list{ margin-top: 28px; display:grid; gap:18px; }
.value-item{ display:flex; gap:16px; align-items:flex-start; }
.value-icon{
  width:42px; height:42px; border-radius:12px; flex:none;
  display:flex; align-items:center; justify-content:center;
  background: var(--teal-soft); color: var(--teal);
}
html[data-theme="dark"] .value-icon{ background: rgba(127,191,168,.15); color: var(--accent-2); }
.value-item h4{ font-size:1rem; margin-bottom:4px; font-family: var(--font-body); font-weight:600; }
.value-item p{ margin:0; color: var(--text-muted); font-size:0.94rem; }

/* ---------- Skills ---------- */
.skills-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 44px 60px; }
.skill-row{ margin-bottom: 22px; }
.skill-row:last-child{ margin-bottom:0; }
.skill-head{ display:flex; justify-content:space-between; margin-bottom:8px; font-size:0.92rem; font-weight:600; }
.skill-head span.pct{ font-family: var(--font-mono); color: var(--text-muted); font-weight:400; }
.bar-track{ height:8px; border-radius:999px; background: var(--paper-2); border:1px solid var(--border); overflow:hidden; }
.bar-fill{
  height:100%; border-radius:999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  width:0%; transition: width 1.1s cubic-bezier(.3,.8,.3,1);
}
.tool-cards{ display:grid; grid-template-columns: repeat(3,1fr); gap:16px; margin-top:8px; }
.tool-card{
  padding:18px; border-radius: var(--radius-sm); background: var(--bg-elev);
  border:1px solid var(--border); text-align:center; transition: transform .2s ease, box-shadow .2s ease;
}
.tool-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-tight); }
.tool-card .tool-icon{ font-size:1.6rem; margin-bottom:8px; }
.tool-card span{ font-size:0.82rem; color: var(--text-muted); }

/* ---------- Timeline (Experience) ---------- */
.timeline{ position:relative; padding-left: 34px; }
.timeline::before{
  content:""; position:absolute; left:6px; top:6px; bottom:6px; width:2px;
  background: var(--border);
}
.tl-item{ position:relative; padding-bottom:46px; }
.tl-item:last-child{ padding-bottom:0; }
.tl-dot{
  position:absolute; left:-34px; top:4px; width:14px; height:14px; border-radius:50%;
  background: var(--bg-elev); border:3px solid var(--accent-2);
}
.tl-card{
  background: var(--bg-elev); border:1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow-tight);
}
.tl-meta{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:6px; }
.tl-duration{ font-family: var(--font-mono); font-size:0.8rem; color: var(--accent-2); background: var(--teal-soft); padding:4px 12px; border-radius:999px; }
html[data-theme="dark"] .tl-duration{ background: rgba(127,191,168,.15); }
.tl-card h3{ font-size:1.15rem; font-weight:600; }
.tl-org{ color: var(--text-muted); font-size:0.92rem; margin: 2px 0 14px; }
.tl-card ul{ display:grid; gap:8px; }
.tl-card ul li{ display:flex; gap:10px; font-size:0.93rem; color: var(--text-muted); }
.tl-card ul li::before{ content:"—"; color: var(--accent); flex:none; }

/* ---------- Education / Certifications ---------- */
.two-col{ display:grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.edu-card{ display:flex; gap:18px; padding: 20px 0; border-bottom:1px solid var(--border); }
.edu-card:last-child{ border-bottom:none; }
.edu-icon{ width:46px; height:46px; border-radius:12px; background: var(--gold-soft); color:var(--gold); display:flex; align-items:center; justify-content:center; flex:none; }
html[data-theme="dark"] .edu-icon{ background: rgba(226,185,90,.15); color: var(--accent); }
.edu-card h4{ font-family: var(--font-body); font-weight:600; font-size:1rem; margin-bottom:3px; }
.edu-card .edu-sub{ color: var(--text-muted); font-size:0.9rem; }
.edu-card .edu-year{ font-family: var(--font-mono); font-size:0.78rem; color: var(--accent-2); margin-top:4px; display:inline-block; }

.cert-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap:18px; }
.cert-card{
  background: var(--bg-elev); border:1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px; transition: transform .2s ease, box-shadow .2s ease;
}
.cert-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-tight); }
.cert-card .cert-year{ font-family: var(--font-mono); font-size:0.76rem; color: var(--accent-2); }
.cert-card h4{ font-family: var(--font-body); font-weight:600; font-size:0.98rem; margin: 6px 0 3px; }
.cert-card p{ margin:0; color: var(--text-muted); font-size:0.87rem; }

/* ---------- Projects ---------- */
.project-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-card{
  border-radius: var(--radius); overflow:hidden; background: var(--bg-elev);
  border:1px solid var(--border); box-shadow: var(--shadow-tight);
  transition: transform .28s ease, box-shadow .28s ease;
  display:flex; flex-direction:column;
}
.project-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.project-thumb{
  aspect-ratio: 16/10; position:relative; overflow:hidden;
  background: linear-gradient(135deg, var(--teal-soft), var(--gold-soft));
}
.project-thumb .placeholder-mark{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-size:.85rem; color: var(--ink-700); opacity:.55; letter-spacing:.1em; text-transform:uppercase; }
.project-body{ padding: 22px; display:flex; flex-direction:column; gap:12px; flex:1; }
.project-body h3{ font-size:1.08rem; font-weight:600; font-family: var(--font-body); }
.project-body p{ margin:0; color: var(--text-muted); font-size:0.9rem; flex:1; }
.tech-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.tech-tag{ font-family: var(--font-mono); font-size:0.72rem; padding:4px 10px; border-radius:999px; background: var(--paper-2); color: var(--text-muted); border:1px solid var(--border); }
.project-links{ display:flex; gap:16px; margin-top:6px; }
.project-links a{ font-size:0.86rem; font-weight:600; color: var(--accent-2); display:flex; align-items:center; gap:6px; }
.project-links a:hover{ text-decoration:underline; }

/* ---------- Achievements ---------- */
.ach-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.ach-card{
  text-align:center; padding: 32px 20px; border-radius: var(--radius);
  background: var(--bg-elev); border:1px solid var(--border);
}
.ach-icon{ font-size:1.9rem; margin-bottom:14px; }
.ach-card b{ display:block; font-family: var(--font-display); font-size:1.9rem; margin-bottom:4px; }
.ach-card span{ font-size:0.85rem; color: var(--text-muted); }

/* ---------- Testimonials ---------- */
.testi-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
.testi-card{
  background: var(--bg-elev); border:1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-tight); display:flex; flex-direction:column; gap:18px;
}
.testi-quote{ color: var(--text); font-size:0.96rem; line-height:1.65; }
.testi-quote::before{ content:"“"; font-family: var(--font-display); font-size:2.2rem; color: var(--accent); line-height:0; display:block; margin-bottom:6px; }
.testi-person{ display:flex; align-items:center; gap:12px; }
.testi-avatar{ width:42px; height:42px; border-radius:50%; background: var(--teal-soft); display:flex; align-items:center; justify-content:center; font-weight:700; color: var(--teal); font-family: var(--font-display); }
html[data-theme="dark"] .testi-avatar{ background: rgba(127,191,168,.15); color: var(--accent-2); }
.testi-person h5{ margin:0; font-size:0.92rem; font-family: var(--font-body); }
.testi-person span{ font-size:0.8rem; color: var(--text-muted); }

/* ---------- Blog ---------- */
.blog-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:28px; }
.blog-card{ background: var(--bg-elev); border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-tight); transition: transform .25s ease; }
.blog-card:hover{ transform: translateY(-5px); }
.blog-thumb{ aspect-ratio: 16/9; background: var(--paper-2); position:relative; }
.blog-thumb .placeholder-mark{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:1.6rem; opacity:.35; }
.blog-body{ padding:22px; }
.blog-meta{ font-family: var(--font-mono); font-size:0.74rem; color: var(--accent-2); margin-bottom:10px; text-transform:uppercase; letter-spacing:.06em; }
.blog-body h3{ font-family: var(--font-body); font-size:1.02rem; font-weight:600; margin-bottom:8px; }
.blog-body p{ margin:0 0 14px; color: var(--text-muted); font-size:0.88rem; }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1.2fr; gap:64px; }
.contact-info-item{ display:flex; gap:16px; align-items:flex-start; margin-bottom:26px; }
.contact-info-item .value-icon{ background: var(--gold-soft); color: var(--gold); }
html[data-theme="dark"] .contact-info-item .value-icon{ background: rgba(226,185,90,.15); color: var(--accent); }
.contact-info-item h4{ font-family: var(--font-body); font-size:0.95rem; margin-bottom:2px; font-weight:600; }
.contact-info-item p{ margin:0; color: var(--text-muted); font-size:0.9rem; }
.map-frame{ margin-top:20px; border-radius: var(--radius-sm); overflow:hidden; border:1px solid var(--border); aspect-ratio: 16/9; }

.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
.form-grid .full{ grid-column: 1 / -1; }
.field label{ display:block; font-size:0.85rem; font-weight:600; margin-bottom:8px; }
.field input, .field textarea{
  width:100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg-elev); color: var(--text);
  font-family: var(--font-body); font-size:0.94rem; transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus{ border-color: var(--accent-2); outline:none; }
.field textarea{ resize: vertical; min-height:120px; }
.form-note{ font-size:0.82rem; color: var(--text-muted); margin-top:14px; }

/* ---------- Footer ---------- */
.footer{ background: var(--ink-900); color: #e9e7dc; padding: 64px 0 28px; position:relative; }
html[data-theme="dark"] .footer{ background:#101815; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom: 48px; }
.footer h5{ font-family: var(--font-body); font-size:0.85rem; letter-spacing:.06em; text-transform:uppercase; color: #cbd0c6; margin-bottom:18px; }
.footer p{ color: #b7bdb1; font-size:0.9rem; max-width:32ch; }
.footer ul{ display:grid; gap:10px; }
.footer a{ color:#d7dbcf; font-size:0.9rem; transition:color .2s ease; }
.footer a:hover{ color: var(--gold-soft); }
.footer-socials{ display:flex; gap:12px; }
.footer-socials a{
  width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,0.18);
  display:flex; align-items:center; justify-content:center;
}
.footer-socials a:hover{ border-color: var(--gold-soft); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.12); padding-top:26px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; font-size:0.82rem; color:#9aa196; }

.to-top{
  position: fixed; right: 24px; bottom: 24px; width:48px; height:48px; border-radius:50%;
  background: var(--ink-900); color:#f6f5f0; display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-soft); opacity:0; pointer-events:none; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease; z-index: 90; border:none;
}
html[data-theme="dark"] .to-top{ background: var(--accent); color:#16201c; }
.to-top.show{ opacity:1; pointer-events:auto; transform:none; }

/* ---------- animated counter helper ---------- */
[data-counter]{ font-variant-numeric: tabular-nums; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero-grid, .about-grid, .two-col, .contact-grid{ grid-template-columns: 1fr; }
  .hero-photo-wrap{ order:-1; }
  .skills-grid{ grid-template-columns: 1fr; }
  .tool-cards{ grid-template-columns: repeat(2,1fr); }
  .project-grid, .testi-grid, .blog-grid{ grid-template-columns: repeat(2,1fr); }
  .ach-grid{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
  .nav-links{
    position: fixed; top: var(--nav-h); left:0; right:0; bottom:0;
    background: var(--bg); flex-direction:column; align-items:flex-start;
    padding: 32px 24px; gap:22px; transform: translateX(100%);
    transition: transform .3s ease; overflow-y:auto;
  }
  .nav-links.open{ transform:none; }
  .hamburger{ display:flex; width:40px; height:40px; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:50%; background:var(--bg-elev); }
  .section{ padding: 76px 0; }
  .project-grid, .testi-grid, .blog-grid, .ach-grid, .form-grid{ grid-template-columns: 1fr; }
  .form-grid .full{ grid-column: auto; }
  .footer-grid{ grid-template-columns: 1fr; gap:32px; }
  .hero-stats{ gap:26px; }
}
