:root {
  --paper: #f7f0e6;
  --paper-deep: #eee4d5;
  --ink: #172a1e;
  --muted: #625f56;
  --sage: #5c6d52;
  --sage-2: #778468;
  --terracotta: #ad5f3e;
  --gold: #b89b69;
  --line: #dfd2c0;
  --white: #fffaf2;
  --shadow: 0 10px 30px rgba(76, 61, 38, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif; font-size: 14px;
}
body.dark {
  --paper: #222821; --paper-deep: #2d332b; --ink: #f1ebdf; --muted: #c0b9ab;
  --line: #4a4c43; --white: #2b3029; --sage: #98a68c; --sage-2: #7f8f72;
  --terracotta: #cf8562; --gold: #c5aa78;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site-header {
  width: calc(100% - 2px); height: 62px; padding: 0 3.7%;
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center;
  justify-content: space-between; background: rgba(247,240,230,.88);
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
body.dark .site-header { background: rgba(34,40,33,.88); }
.logo { display: flex; align-items: center; gap: 10px; font: 500 28px "Playfair Display", serif; }
.logo-icon { font-family: Georgia, serif; font-size: 23px; color: var(--gold); }
.nav { display: flex; gap: 37px; height: 100%; align-items: center; }
.nav a { height: 100%; display: grid; place-items: center; position: relative; font-size: 12px; }
.nav a::after { content:""; position:absolute; bottom:10px; width:0; height:1px; background:var(--sage); transition:.25s; }
.nav a:hover::after, .nav a.active::after { width: 20px; }
.header-actions { display:flex; align-items:center; gap:14px; }
.connect-btn, .btn-solid, .send-btn {
  background: var(--sage); color: #fff; border: 0; border-radius: 999px;
  transition: transform .25s, box-shadow .25s;
}
.connect-btn { padding: 10px 19px; font-size: 12px; }
.connect-btn:hover, .btn:hover, .send-btn:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(70,85,61,.18); }
.theme-btn, .menu-btn {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--ink); display:grid; place-items:center;
}
.menu-btn { display:none; border-radius:8px; }
.section-shell { width: min(1450px, 94vw); margin: auto; }

.hero {
  min-height: 346px; display:grid; grid-template-columns: 38% 47% 15%;
  position:relative; overflow:hidden; border-bottom: 1px solid var(--line);
}
.hero-copy { padding: 26px 0 20px 1.5%; z-index:2; }
.kicker { margin:0 0 5px; font-size:12px; letter-spacing:.02em; }
.hero h1 { margin:0; font:600 clamp(68px, 6.5vw, 90px)/.95 "Playfair Display", serif; letter-spacing:-.055em; }
.hero h2 { margin:3px 0 12px; font:500 clamp(22px, 2.15vw, 30px)/1.2 "Playfair Display", serif; color:var(--terracotta); }
.hero-text { margin:0; color:var(--muted); line-height:1.55; font-size:12px; }
.hero-actions { display:flex; gap:22px; margin:17px 0; }
.btn { display:inline-flex; align-items:center; gap:9px; padding:10px 19px; font-size:11px; border-radius:999px; }
.btn-outline { border:1px solid var(--line); }
.socials { display:flex; gap:18px; color:var(--muted); align-items:center; font-size:15px; }
.socials a { transition: .2s; }
.socials a:hover { color:var(--sage); transform:translateY(-2px); }
.hero-gallery { position:relative; overflow:hidden; background:linear-gradient(135deg,#d5c29d,#f4eadd 58%,#dfd2bb); }
.gallery-glow { position:absolute; width:100%; height:100%; background:radial-gradient(circle at 50% 60%,rgba(255,255,255,.8),transparent 50%); }
.gallery-arch { position:absolute; left:18%; bottom:0; width:64%; height:110%; border-radius:48% 48% 0 0; padding:15px 15px 0; background:#c4ac7e; }
.arch-2 { left:9%; width:82%; height:91%; bottom:0; background:#7e8870; padding:13px 13px 0; }
.arch-3 { left:10%; width:80%; height:91%; background:#e9e1d3; padding:11px 11px 0; }
.gallery-room {
  position:relative; height:100%; overflow:hidden; border-radius:45% 45% 0 0;
  background:linear-gradient(90deg,#c4bcab,#f8f3e9 49%,#d2cab8);
}
.gallery-room::before, .gallery-room::after {
  content:""; position:absolute; top:25%; width:10%; height:23%;
  border:4px solid #9a7947; background:linear-gradient(135deg,#4b5747,#c6a46a);
}
.gallery-room::before { left:8%; } .gallery-room::after { right:8%; }
.gallery-painting { position:absolute; top:31%; width:8%; height:20%; border:3px solid #9a7947; background:linear-gradient(135deg,#4d5c4b,#b08e5a); z-index:2; }
.painting-left { left:8%; } .painting-right { right:8%; }
.gallery-bench { position:absolute; left:4%; bottom:25%; width:22%; height:5%; background:#9c8159; box-shadow:0 6px 0 #6e5940; }
.gallery-statue { position:absolute; left:50%; bottom:25%; transform:translateX(-50%); width:30px; height:75px; z-index:4; }
.gallery-statue .head { position:absolute; left:50%; top:0; transform:translateX(-50%); width:20px; height:20px; border-radius:50%; background:#eee9dd; }
.gallery-statue .body { position:absolute; left:50%; top:16px; transform:translateX(-50%); width:27px; height:57px; border-radius:45% 45% 10% 10%; background:#f1ece1; }
.gallery-light { position:absolute; width:35%; height:55%; left:32%; top:10%; background:rgba(255,255,255,.55); filter:blur(14px); }
.gallery-floor { position:absolute; bottom:0; left:-20%; width:140%; height:30%; background:repeating-linear-gradient(90deg,rgba(255,255,255,.35) 0 2px,transparent 2px 45px); transform:perspective(170px) rotateX(18deg); transform-origin:bottom; }
.gallery-plant { position:absolute; right:4%; bottom:23%; width:20%; height:35%; z-index:5; }
.gallery-plant b { position:absolute; bottom:0; left:37%; width:25%; height:20%; background:#b79b68; border-radius:8px 8px 15px 15px; }
.gallery-plant i { position:absolute; bottom:17%; left:48%; width:4px; height:68%; background:#776f53; transform-origin:bottom; }
.gallery-plant i:nth-child(1){transform:rotate(-30deg)} .gallery-plant i:nth-child(2){transform:rotate(-12deg)} .gallery-plant i:nth-child(3){transform:rotate(12deg)} .gallery-plant i:nth-child(4){transform:rotate(28deg)} .gallery-plant i:nth-child(5){transform:rotate(42deg)}
.quote { padding:50px 0 0 17%; display:flex; gap:18px; z-index:3; }
.quote-line { width:1px; height:197px; background:var(--gold); }
.quote-mark { display:block; color:var(--sage); font:60px/.7 "Playfair Display",serif; }
.quote p { font:35px/1.45 "Playfair Display",serif; margin:18px 0 18px; }
.quote small { font-size:20px; color:var(--muted); }
.hero-plant { position:absolute; right:-2%; bottom:-7%; width:150px; height:180px; opacity:.5; }
.hero-plant span { position:absolute; right:30px; bottom:0; width:4px; height:160px; background:#7d7153; transform:rotate(18deg); }
.hero-plant i { position:absolute; width:20px; height:55px; border-radius:100% 0; background:#7e8d62; transform-origin:bottom; }
.hero-plant i:nth-child(2){right:52px;top:50px;transform:rotate(-35deg)} .hero-plant i:nth-child(3){right:20px;top:25px;transform:rotate(28deg)} .hero-plant i:nth-child(4){right:75px;top:18px;transform:rotate(-50deg)} .hero-plant i:nth-child(5){right:0;top:80px;transform:rotate(42deg)} .hero-plant i:nth-child(6){right:60px;top:85px;transform:rotate(-25deg)}
.scroll-down { position:absolute; bottom:14px; left:34%; display:flex; flex-direction:column; align-items:center; gap:4px; font-size:9px; color:var(--muted); z-index:4; }
.mouse { width:14px; height:23px; border:1px solid var(--ink); border-radius:8px; display:block; position:relative; }
.mouse i { width:2px; height:5px; background:var(--ink); position:absolute; top:4px; left:5px; border-radius:2px; animation:scroll 1.4s infinite; }

.skills-panel {
  margin-top:0; border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow);
  background:rgba(255,250,242,.28); overflow:hidden;
}
.panel-heading { height:40px; padding:0 20px; display:flex; align-items:center; gap:10px; border-bottom:1px solid var(--line); }
.panel-heading h2 { margin:0; font:600 17px "Playfair Display",serif; }
.heading-accent { width:28px; height:1px; background:var(--gold); position:relative; }
.heading-accent::before { content:""; position:absolute; width:5px; height:5px; border-radius:50%; background:var(--gold); top:-2px; left:0; }
.panel-heading > a { margin-left:auto; border:1px solid var(--line); border-radius:999px; padding:6px 13px; font-size:9px; }
.skills-grid { display:grid; grid-template-columns:1.15fr 1.15fr .9fr .72fr 1.5fr 1.15fr; }
.skill-column { padding:13px 18px 15px; border-right:1px solid var(--line); min-width:0; }
.skill-column:last-child { border:0; }
.skill-head { display:flex; align-items:center; gap:9px; margin-bottom:10px; }
.skill-head h3 { font:600 11px "Playfair Display",serif; margin:0; white-space:nowrap; }
.skill-icon { width:27px; height:27px; border-radius:50%; display:grid; place-items:center; background:rgba(91,109,82,.13); color:var(--sage); font-size:12px; font-weight:600; flex:none; }
.pills, .project-pills { display:flex; flex-wrap:wrap; gap:6px; }
.pills span, .project-pills span {
  border:1px solid var(--line); border-radius:7px; padding:6px 10px; font-size:9px;
  background:rgba(255,255,255,.18); transition:transform .2s,background .2s;
}
.pills span:hover { transform:translateY(-2px); background:var(--white); }

.lower-grid { display:grid; grid-template-columns: 1fr 1.4fr 1.18fr; gap:10px; margin-top:8px; }
.info-card { border:1px solid var(--line); border-radius:10px; background:rgba(255,250,242,.25); overflow:hidden; }
.card-title { height:33px; padding:0 16px; display:flex; align-items:center; gap:8px; }
.card-title > span { width:5px; height:5px; border-radius:50%; background:var(--gold); }
.card-title h2 { font:600 12px "Playfair Display",serif; margin:0; }
.card-title a { margin-left:auto; font-size:9px; color:var(--sage); }
.about-card > p { font-size:10px; line-height:1.65; color:var(--muted); padding:3px 16px 11px; margin:0; }
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; padding:0 16px 12px; }
.stats div { min-height:60px; border:1px solid var(--line); border-radius:6px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.stats strong { font:500 15px "Playfair Display",serif; color:#87683a; }
.stats span { font-size:7px; color:var(--muted); margin-top:3px; }
.projects-card { padding-bottom:11px; }
.project-list { display:grid; grid-template-columns:1fr 1fr; gap:9px; padding:0 16px; }
.project { min-width:0; }
.project-image { height:92px; border:1px solid var(--line); border-radius:7px; overflow:hidden; display:grid; place-items:center; }
.secure-image { background:#ded5bf; } .pharma-image { background:#293127; }
.mock-browser { width:84%; height:75%; background:#f9f3e7; border-radius:5px; overflow:hidden; display:flex; position:relative; box-shadow:0 5px 10px rgba(0,0,0,.1); }
.dark-browser { background:#202720; }
.mock-top { height:9px; position:absolute; top:0; left:0; right:0; display:flex; gap:2px; align-items:center; padding-left:5px; border-bottom:1px solid #ddd1bd; }
.dark-browser .mock-top { border-color:#3d443b; }
.mock-top i { width:3px;height:3px;border-radius:50%;background:#a79e8c; }
.mock-sidebar { position:absolute; left:0; top:9px; bottom:0; width:20%; background:#eee5d5; }
.dark-browser .mock-sidebar { background:#303a30; }
.mock-screen { margin:19px 7px 5px 26%; display:flex; flex-direction:column; gap:5px; font-size:5px; color:#68725f; }
.dark-browser .mock-screen { color:#d9dfd2; }
.mock-screen span { height:5px; border-radius:2px; background:#c9d0c0; width:100%; }
.dark-browser .mock-screen span { background:#455146; }
.project h3 { font:600 12px "Playfair Display",serif; margin:7px 0 3px; }
.project p { font-size:8px; line-height:1.45; color:var(--muted); margin:0 0 6px; }
.project-pills { gap:4px; }
.project-pills span { padding:4px 7px; font-size:7px; border-radius:5px; }
.journey-card { padding-bottom:9px; }
.timeline { padding:7px 15px 4px; }
.timeline-item { display:grid; grid-template-columns:31px 39px 1fr; min-height:52px; align-items:start; position:relative; }
.timeline-icon { width:31px;height:31px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:10px;z-index:2; }
.timeline-icon.green{background:#5c6d52}.timeline-icon.orange{background:#ad6945}.timeline-icon.gold{background:#b9985c}.timeline-icon.olive{background:#7b8667}
.timeline-dash { width:38px; border-top:1px dashed #9d927e; margin-top:15px; }
.timeline-item > div:last-child { padding-left:4px; }
.timeline-item strong { display:block; font-size:9px; margin:0 0 3px; }
.timeline-item p { font-size:8px; line-height:1.4; color:var(--muted); margin:0; }
.contact-shell {
  margin-top:8px; display:grid; grid-template-columns:12% 29% 25% 34%; min-height:126px;
  border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:rgba(239,228,210,.35);
}
.contact-image { position:relative; overflow:hidden; background:linear-gradient(135deg,#dfcfb0,#f4e8d7); }
.contact-plant { position:absolute; left:20px; bottom:-5px; width:90px; height:110px; }
.contact-plant b { position:absolute; bottom:0; left:26px; width:42px; height:28px; background:#c6a77a; border-radius:50% 50% 35% 35%; }
.contact-plant i { position:absolute; bottom:20px; left:46px; width:3px; height:75px; background:#7c7659; transform-origin:bottom; }
.contact-plant i:nth-child(1){transform:rotate(-32deg)}.contact-plant i:nth-child(2){transform:rotate(-12deg)}.contact-plant i:nth-child(3){transform:rotate(16deg)}.contact-plant i:nth-child(4){transform:rotate(35deg)}
.contact-intro { padding:19px 20px; border-right:1px solid var(--line); }
.contact-intro h2 { font:500 18px "Playfair Display",serif; margin:3px 0 7px; }
.contact-intro > p:not(.kicker) { font-size:9px; color:var(--muted); line-height:1.5; }
.contact-intro .btn { padding:8px 13px; margin-top:2px; }
.contact-details { padding:20px 28px; border-right:1px solid var(--line); }
.contact-details h2 { font:600 14px "Playfair Display",serif; margin:0 0 12px; }
.contact-details a, .contact-details > span { display:flex; gap:11px; align-items:center; color:var(--muted); font-size:9px; margin:9px 0; }
.contact-form { padding:17px 20px; display:flex; flex-direction:column; gap:7px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.contact-form input, .contact-form textarea {
  border:1px solid var(--line); background:rgba(255,255,255,.2); border-radius:5px;
  padding:7px 9px; outline:none; color:var(--ink); font-size:8px; resize:none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color:var(--sage); }
.send-btn { border-radius:5px; padding:7px; font-size:8px; }
.form-note { font-size:8px; color:var(--sage); margin:0; min-height:9px; }
footer { min-height:27px; padding:0 4%; display:flex; justify-content:space-between; align-items:center; font-size:8px; color:var(--muted); }
footer b { color:var(--terracotta); }
.back-top { position:fixed; right:20px; bottom:20px; z-index:40; width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:var(--white);color:var(--ink);display:none; }
.back-top.show { display:grid; place-items:center; }

.reveal { opacity:0; transform:translateY(16px); transition:opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity:1; transform:none; }
.delay-1 { transition-delay:.1s; } .delay-2 { transition-delay:.2s; }
@keyframes scroll { 0%,100%{transform:translateY(0);opacity:1} 70%{transform:translateY(6px);opacity:.25} }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 40% 45% 15%; }
  .skills-grid { grid-template-columns:repeat(3,1fr); }
  .skill-column:nth-child(3) { border-right:0; }
  .skill-column:nth-child(n+4) { border-top:1px solid var(--line); }
  .lower-grid { grid-template-columns:1fr 1fr; }
  .journey-card { grid-column:1/-1; }
  .contact-shell { grid-template-columns:15% 35% 50%; }
  .contact-form { grid-column:2/-1; border-top:1px solid var(--line); }
  .contact-details { border-right:0; }
}
@media (max-width: 760px) {
  .site-header { padding:0 5%; }
  .nav { display:none; position:absolute; left:0; right:0; top:62px; height:auto; padding:12px 5%; background:var(--paper); border-bottom:1px solid var(--line); flex-direction:column; align-items:flex-start; gap:0; }
  .nav.open { display:flex; }
  .nav a { height:36px; width:100%; }
  .nav a::after { bottom:4px; left:0; transform:none; }
  .connect-btn { display:none; } .menu-btn { display:grid; }
  .hero { grid-template-columns:1fr; min-height:auto; }
  .hero-copy { padding:42px 6% 24px; }
  .hero-gallery { height:310px; }
  .quote { position:absolute; right:5%; top:15px; padding:0; transform:scale(.8); transform-origin:top right; }
  .quote-line { height:120px; }
  .hero-plant { display:none; }
  .scroll-down { left:50%; }
  .skills-grid { grid-template-columns:1fr 1fr; }
  .skill-column:nth-child(2n) { border-right:0; }
  .skill-column:nth-child(3) { border-right:1px solid var(--line); }
  .skill-column:nth-child(n+3) { border-top:1px solid var(--line); }
  .lower-grid { grid-template-columns:1fr; }
  .journey-card { grid-column:auto; }
  .contact-shell { grid-template-columns:1fr; }
  .contact-image { min-height:100px; }
  .contact-intro, .contact-details { border-right:0; border-bottom:1px solid var(--line); }
  .contact-form { grid-column:auto; }
}
@media (max-width: 500px) {
  .hero h1 { font-size:68px; }
  .hero h2 { font-size:25px; }
  .hero-text br { display:none; }
  .hero-actions { gap:8px; flex-direction:column; }
  .hero-actions .btn { justify-content:center; }
  .quote { display:none; }
  .skills-grid { grid-template-columns:1fr; }
  .skill-column { border-right:0 !important; border-top:1px solid var(--line); }
  .skill-column:first-child { border-top:0; }
  .stats { grid-template-columns:repeat(2,1fr); }
  .project-list { grid-template-columns:1fr; }
  .project-image { height:130px; }
  .form-row { grid-template-columns:1fr; }
  footer { flex-direction:column; justify-content:center; gap:5px; padding:10px; }
}
