:root {
  --bg: #090c0a;
  --bg-soft: #0d120f;
  --surface: #111713;
  --surface-2: #161d18;
  --text: #f1f5ef;
  --muted: #98a398;
  --line: rgba(240, 255, 238, .13);
  --line-strong: rgba(240, 255, 238, .28);
  --accent: #91E48B;
  --accent-2: #21AABE;
  --shadow: 0 30px 80px rgba(0, 0, 0, .35);
  --radius: 18px;
  --header-h: 82px;
  --container: min(1240px, calc(100vw - 48px));
}

[data-theme="light"] {
  --bg: #eef2e9;
  --bg-soft: #e4eade;
  --surface: #f8faf4;
  --surface-2: #e8eee2;
  --text: #121713;
  --muted: #5e695f;
  --line: rgba(18, 23, 19, .13);
  --line-strong: rgba(18, 23, 19, .26);
  --accent: #91E48B;
  --accent-2: #21AABE;
  --shadow: 0 30px 80px rgba(45, 55, 44, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}
body.menu-open { overflow: hidden; }
::selection { background: var(--accent); color: #091006; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link { position: fixed; left: 20px; top: -60px; z-index: 999; padding: 12px 16px; background: var(--accent); color: #081006; border-radius: 10px; font-weight: 800; transition: top .2s; }
.skip-link:focus { top: 16px; }
.page-noise { position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
.cursor-glow { position: fixed; width: 430px; height: 430px; left: 0; top: 0; pointer-events: none; z-index: -1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 13%, transparent), transparent 66%); transform: translate(-50%, -50%); opacity: .7; }

.site-header { width: var(--container); height: var(--header-h); position: fixed; top: 16px; left: 50%; z-index: 80; transform: translateX(-50%); padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid transparent; border-radius: 18px; transition: background .3s, border-color .3s, box-shadow .3s, top .3s; }
.site-header.is-scrolled { top: 10px; background: color-mix(in srgb, var(--bg) 77%, transparent); border-color: var(--line); backdrop-filter: blur(18px); box-shadow: 0 16px 50px rgba(0,0,0,.15); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: #0a1008; font-weight: 950; }
.brand-text { font-size: 1rem; }
.desktop-nav { display: flex; gap: 34px; }
.desktop-nav a { position: relative; color: var(--muted); font-size: .94rem; font-weight: 650; transition: color .2s; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--accent); transition: right .25s; }
.desktop-nav a:hover { color: var(--text); }
.desktop-nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle, .menu-toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: color-mix(in srgb, var(--surface) 58%, transparent); cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.theme-toggle:hover, .menu-toggle:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface); }
.theme-toggle svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .moon { display: block; }
.menu-toggle { display: none; position: relative; }
.menu-toggle span { position: absolute; width: 17px; height: 1.5px; background: currentColor; transition: transform .25s, top .25s; }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 24px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.mobile-menu { display: none; }

.section { width: var(--container); margin-inline: auto; padding: 120px 0; }
.hero { min-height: 100svh; padding-top: 155px; padding-bottom: 80px; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 90px); align-items: center; position: relative; }
.hero::before { content: ""; position: absolute; width: 65vw; height: 65vw; right: -34vw; top: -25vw; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 90px color-mix(in srgb, var(--line) 25%, transparent), 0 0 0 180px color-mix(in srgb, var(--line) 12%, transparent); z-index: -2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .84rem; font-weight: 750; text-transform: uppercase; letter-spacing: .095em; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 15%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 0%, transparent); } }
.hero h1 { margin: 26px 0 28px; max-width: 800px; font-size: clamp(3.5rem, 6.4vw, 7rem); line-height: .89; letter-spacing: -.072em; font-weight: 900; }
.hero h1 span { color: var(--accent); }
.hero-lead { max-width: 680px; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.button { min-height: 54px; padding: 0 22px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-weight: 800; border: 1px solid var(--line); transition: transform .22s, box-shadow .22s, background .22s, border-color .22s; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--accent); color: #081006; border-color: var(--accent); box-shadow: 0 12px 32px color-mix(in srgb, var(--accent) 17%, transparent); }
.button-primary:hover { box-shadow: 0 18px 42px color-mix(in srgb, var(--accent) 25%, transparent); }
.button-secondary { background: color-mix(in srgb, var(--surface) 65%, transparent); backdrop-filter: blur(8px); }
.button-secondary:hover { border-color: var(--line-strong); background: var(--surface); }
.hero-meta { display: flex; gap: clamp(26px, 4vw, 56px); margin-top: 52px; padding-top: 25px; border-top: 1px solid var(--line); }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-size: clamp(1.6rem, 2.4vw, 2.4rem); line-height: 1; letter-spacing: -.05em; }
.hero-meta span { margin-top: 8px; color: var(--muted); font-size: .82rem; }

.hero-visual { min-width: 0; }
.portrait-card { position: relative; width: min(100%, 570px); margin-left: auto; padding: 12px; border-radius: 24px; background: linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 90%, transparent), color-mix(in srgb, var(--surface) 70%, transparent)); border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(1.3deg); }
.portrait-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 52%, transparent), transparent 36%, color-mix(in srgb, var(--accent-2) 25%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.portrait-topbar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 10px; }
.portrait-topbar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.portrait-topbar span:first-child { background: #ff6e66; }
.portrait-topbar span:nth-child(2) { background: #ffd15b; }
.portrait-topbar span:nth-child(3) { background: #7ce36f; }
.portrait-topbar small { margin-left: auto; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; }
.portrait-wrap { position: relative; overflow: hidden; border-radius: 17px; aspect-ratio: .94; background: #0d391e; }
.portrait-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; filter: saturate(.88) contrast(1.03); }
.portrait-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(5,10,7,.86) 100%), linear-gradient(115deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 40%); }
.portrait-caption { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; align-items: end; gap: 20px; color: #f4f7f0; }
.portrait-caption span { font-size: .78rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .12em; }
.portrait-caption strong { text-align: right; font-size: .92rem; }
.code-float { position: absolute; z-index: 5; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: 8px; background: color-mix(in srgb, var(--bg) 76%, transparent); backdrop-filter: blur(12px); box-shadow: 0 15px 35px rgba(0,0,0,.2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; color: var(--muted); transform: rotate(-1.3deg); }
.code-float span, .code-float b { color: var(--accent); }
.code-float-a { left: -32px; top: 19%; }
.code-float-b { right: -22px; bottom: 19%; }
.scroll-hint { position: absolute; bottom: 30px; left: 0; display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; transform: rotate(-90deg); transform-origin: left center; }
.scroll-hint i { width: 54px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); animation: scrollLine 2.2s infinite; }
@keyframes scrollLine { 55%,100% { transform: translateX(100%); } }

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-soft); }
.marquee-track { width: max-content; display: flex; align-items: center; gap: 35px; padding: 17px 0; animation: marquee 26s linear infinite; color: var(--muted); font-weight: 780; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.marquee-track i { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section-label { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.section-label span { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.about-grid { margin-top: 42px; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(50px, 8vw, 120px); align-items: start; }
.about-title h2, .section-heading h2, .contact h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 5.3rem); line-height: 1; letter-spacing: -.065em; }
.about-title em, .section-heading em, .contact em { color: var(--accent); font-style: normal; }
.about-copy { padding-top: 10px; }
.about-copy > p { margin: 0 0 20px; color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.22rem); }
.about-copy strong { color: var(--text); }
.availability { margin-top: 30px; padding: 20px; display: flex; gap: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.availability span { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 7px; }
.availability p { margin: 0; color: var(--muted); }
.availability strong { display: block; margin-bottom: 2px; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 78px; }
.skill-card { min-height: 330px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; transition: transform .3s, border-color .3s, background .3s; }
.skill-card:hover { transform: translateY(-7px); border-color: color-mix(in srgb, var(--accent) 36%, var(--line)); background: var(--surface-2); }
.skill-index { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--accent); font-family: ui-monospace, monospace; }
.skill-card h3 { margin: 60px 0 10px; font-size: 1.45rem; letter-spacing: -.03em; }
.skill-card p { margin: 0 0 24px; color: var(--muted); }
.tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: color-mix(in srgb, var(--bg) 32%, transparent); font-size: .74rem; font-weight: 700; }

.projects { padding-top: 90px; }
.section-heading { max-width: 960px; }
.section-heading h2 { margin-top: 36px; }
.section-heading > p { max-width: 650px; margin-top: 24px; color: var(--muted); font-size: 1.05rem; }
.project-featured { margin-top: 70px; padding: 14px; display: grid; grid-template-columns: 1.14fr .86fr; gap: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.project-visual { min-height: 540px; border-radius: 16px; overflow: hidden; position: relative; background: #0a1610; }
.mops-visual { background: radial-gradient(circle at 65% 25%, rgba(186,255,102,.22), transparent 32%), linear-gradient(135deg,#0a1710,#11271b); }
.scan-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(186,255,102,.08) 1px, transparent 1px), linear-gradient(90deg,rgba(186,255,102,.08) 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent); }
.scan-building { position: absolute; width: 62%; height: 68%; left: 19%; top: 15%; background: linear-gradient(145deg,#26342b,#131d17); clip-path: polygon(4% 14%,88% 0,100% 90%,18% 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.scan-building::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(100deg,transparent 0 34px,rgba(255,255,255,.055) 35px 36px), repeating-linear-gradient(5deg,transparent 0 48px,rgba(255,255,255,.045) 49px 50px); }
.crack { position: absolute; width: 3px; background: var(--accent); box-shadow: 0 0 12px var(--accent); transform-origin: top; }
.crack::after { content:""; position:absolute; width:3px; height:45px; background:inherit; left:-7px; bottom:-39px; transform:rotate(25deg); }
.c1 { height: 95px; left: 38%; top: 23%; transform: rotate(-14deg); }
.c2 { height: 70px; left: 64%; top: 49%; transform: rotate(23deg); }
.c3 { height: 55px; left: 33%; top: 64%; transform: rotate(7deg); }
.scan-box { position: absolute; border: 1px solid var(--accent); color: var(--accent); padding: 4px 7px; font-family: ui-monospace, monospace; font-size: .66rem; display: flex; gap: 8px; }
.scan-box small { color: rgba(255,255,255,.7); }
.scan-box.b1 { left: 29%; top: 20%; }
.scan-box.b2 { right: 16%; bottom: 23%; }
.drone-icon { position: absolute; top: 15%; right: 9%; font-size: 3.5rem; color: var(--accent); text-shadow: 0 0 25px color-mix(in srgb, var(--accent) 60%, transparent); animation: hoverDrone 3s ease-in-out infinite; }
@keyframes hoverDrone { 50% { transform: translateY(-10px) rotate(3deg); } }
.visual-console { position: absolute; left: 24px; right: 24px; bottom: 22px; padding: 14px 16px; display: flex; justify-content: space-between; border: 1px solid rgba(186,255,102,.25); border-radius: 12px; background: rgba(5,12,7,.68); backdrop-filter: blur(10px); font-family: ui-monospace, monospace; font-size: .73rem; }
.visual-console span { color: rgba(255,255,255,.62); }
.visual-console b { color: var(--accent); }
.project-info { padding: clamp(28px,4vw,54px); display: flex; flex-direction: column; }
.project-kicker, .project-card-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; }
.repo-stats { display: flex; gap: 11px; }
.repo-stats b { font-weight: 650; color: var(--muted); }
.project-info h3 { margin: 80px 0 18px; font-size: clamp(2rem,3vw,3.4rem); line-height: 1.05; letter-spacing: -.055em; }
.project-info p { margin: 0 0 28px; color: var(--muted); font-size: 1.02rem; }
.text-link { margin-top: 30px; display: inline-flex; gap: 10px; align-items: center; font-weight: 800; }
.text-link span { color: var(--accent); transition: transform .2s; }
.text-link:hover span { transform: translate(3px,-3px); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.project-card { min-height: 470px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); display: flex; flex-direction: column; overflow: hidden; position: relative; transition: transform .3s, border-color .3s, background .3s; }
.project-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--surface-2); }
.project-number { color: var(--accent); font-family: ui-monospace, monospace; }
.project-symbol, .circuit-symbol, .notes-symbol, .eco-symbol, .yasno-symbol, .drone-symbol { height: 150px; margin: 28px 0 24px; border-radius: 12px; background: var(--bg-soft); position: relative; overflow: hidden; border: 1px solid var(--line); }
.core-symbol { display: grid; place-items: center; font-size: 3rem; font-weight: 950; color: var(--accent); letter-spacing: -.08em; background-image: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 50%); }
.core-symbol::before, .core-symbol::after { content:""; position:absolute; width:70%; height:1px; background:var(--line-strong); }
.core-symbol::after { transform: rotate(90deg); }
.core-symbol span { font-size:.8rem; color:var(--muted); margin-left:7px; }
.circuit-symbol { background-image: linear-gradient(rgba(186,255,102,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(186,255,102,.055) 1px,transparent 1px); background-size:20px 20px; }
.circuit-symbol i { position:absolute; width:10px;height:10px;border-radius:50%;background:var(--accent);box-shadow:0 0 12px var(--accent); }
.circuit-symbol i:nth-child(1){left:12%;top:28%}.circuit-symbol i:nth-child(2){left:12%;bottom:25%}.circuit-symbol i:nth-child(3){right:12%;top:28%}.circuit-symbol i:nth-child(4){right:12%;bottom:25%}
.circuit-symbol b { position:absolute; padding:10px 16px; border:1px solid var(--line-strong); border-radius:10px; color:var(--muted); font-family:ui-monospace,monospace; font-size:.72rem; }
.circuit-symbol b:nth-of-type(1){left:32%;top:20%}.circuit-symbol b:nth-of-type(2){right:25%;bottom:18%}
.circuit-symbol::before { content:""; position:absolute; inset:27% 12%; border:1px solid color-mix(in srgb,var(--accent) 40%,transparent); transform:skewX(-23deg); }
.notes-symbol { padding:22px; font-family:ui-monospace,monospace; }
.notes-symbol span { color:var(--accent); font-size:.8rem; }
.notes-symbol i { display:block; width:75%; height:7px; margin-top:12px; border-radius:4px; background:var(--line-strong); }
.notes-symbol i:nth-child(3){width:55%}.notes-symbol i:nth-child(4){width:82%}.notes-symbol i:nth-child(5){width:40%}
.eco-symbol { display:flex; align-items:center; justify-content:center; gap:10px; }
.eco-symbol span { width:58px;height:58px;border-radius:50%;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--accent) 45%,var(--line));color:var(--accent);font-size:.72rem;font-weight:800; }
.eco-symbol i { position:absolute; width:120px;height:120px;border-radius:50%;border:1px dashed var(--line-strong); animation:spin 12s linear infinite; }
@keyframes spin { to{transform:rotate(360deg)} }
.yasno-symbol { display:flex; align-items:center; justify-content:center; gap:20px; }
.yasno-symbol strong { font-size:4.7rem; line-height:1; color:var(--accent); }
.yasno-symbol span { color:var(--muted); text-transform:uppercase; letter-spacing:.12em; font-size:.72rem; }
.drone-symbol { display:grid;place-items:center; }
.drone-symbol b { color:var(--accent);font-family:ui-monospace,monospace;border:1px solid var(--line-strong);padding:10px;border-radius:9px; }
.drone-symbol i { position:absolute;width:42px;height:42px;border:1px solid color-mix(in srgb,var(--accent) 50%,var(--line));border-radius:50%; }
.drone-symbol i:nth-child(1){left:20%;top:18%}.drone-symbol i:nth-child(2){right:20%;top:18%}.drone-symbol i:nth-child(3){left:20%;bottom:18%}.drone-symbol i:nth-child(4){right:20%;bottom:18%}
.drone-symbol::before,.drone-symbol::after{content:"";position:absolute;width:48%;height:1px;background:var(--line-strong)}
.drone-symbol::after{transform:rotate(90deg)}
.project-card h3 { margin: 0 0 10px; font-size: 1.65rem; letter-spacing: -.035em; }
.project-card p { margin: 0 0 20px; color: var(--muted); }
.project-card > a { margin-top: 24px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.project-card > a span { color: var(--accent); transition: transform .2s; }
.project-card > a:hover span { transform: translate(3px,-3px); }
.all-projects { margin-top: 14px; padding: 25px 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.all-projects p { margin: 0; color: var(--muted); }

.achievements { padding-top: 90px; }
.achievement-list { margin-top: 70px; border-top: 1px solid var(--line); }
.achievement { display: grid; grid-template-columns: 90px 1fr 46px; gap: 25px; align-items: center; padding: 27px 4px; border-bottom: 1px solid var(--line); transition: padding .25s, background .25s; }
.achievement:hover { padding-left: 16px; padding-right: 16px; background: var(--surface); }
.achievement-year { color: var(--accent); font-family: ui-monospace, monospace; font-size: .82rem; }
.achievement small { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 750; }
.achievement h3 { margin: 4px 0 0; font-size: clamp(1.1rem,2vw,1.55rem); letter-spacing: -.03em; }
.achievement > b { justify-self: end; color: var(--line-strong); font-size: 1.5rem; font-family: ui-monospace, monospace; }

.principles { padding-top: 80px; }
.principles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 45px; }
.principle { padding: 32px; min-height: 260px; border-top: 1px solid var(--line-strong); background: linear-gradient(180deg,color-mix(in srgb,var(--surface) 75%,transparent),transparent); }
.principle > span { color: var(--accent); font-family: ui-monospace,monospace; font-size:.78rem; }
.principle h3 { margin: 60px 0 12px; font-size:1.4rem; letter-spacing:-.03em; }
.principle p { margin:0;color:var(--muted); }

.contact { padding-bottom: 50px; }
.contact-card { padding: clamp(30px,6vw,80px); border: 1px solid color-mix(in srgb,var(--accent) 30%,var(--line)); border-radius: 24px; background: radial-gradient(circle at 85% 15%,color-mix(in srgb,var(--accent) 15%,transparent),transparent 35%),var(--surface); box-shadow: var(--shadow); }
.contact-card { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,8vw,110px); }
.contact-copy h2 { margin-top:35px; }
.contact-copy p { max-width:560px;margin-top:24px;color:var(--muted);font-size:1.05rem; }
.contact-actions { border-top:1px solid var(--line); }
.contact-link { display:grid;grid-template-columns:90px 1fr 24px;gap:15px;align-items:center;padding:20px 3px;border-bottom:1px solid var(--line);transition:padding .2s,color .2s; }
.contact-link:hover { padding-left:10px;color:var(--accent); }
.contact-link span { color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.09em; }
.contact-link strong { font-size:clamp(.9rem,1.4vw,1.08rem);overflow-wrap:anywhere; }
.contact-link b { justify-self:end; }
.print-button { grid-column:1/-1; margin-top:12px; padding:18px 20px; border:1px solid var(--line); border-radius:10px; background:transparent; cursor:pointer; display:flex;justify-content:space-between;font-weight:800; transition:background .2s,border-color .2s; }
.print-button:hover { background:var(--accent);color:#091006;border-color:var(--accent); }
footer { width:var(--container);margin:0 auto;padding:28px 0 42px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px;color:var(--muted);font-size:.84rem; }
footer .brand { color:var(--text); }
footer .brand-mark { width:30px;height:30px;border-radius:9px;font-size:.85rem; }
footer a:last-child { color:var(--text);font-weight:750; }
.noscript { position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:100;background:#d44;color:#fff;padding:10px 14px;border-radius:10px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s cubic-bezier(.2,.75,.25,1), transform .75s cubic-bezier(.2,.75,.25,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }



/* Updated identity and information sections */
.brand-logo-link { flex: 0 0 auto; }
.brand-logo { width: 178px; height: auto; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0,0,0,.22)); }
[data-theme="light"] .brand-logo { content: url("assets/frogeesoft-logo-light.png"); filter: none; }
.footer-logo .brand-logo { width: 142px; }
.desktop-nav { gap: 25px; }
.desktop-nav a { font-size: .88rem; white-space: nowrap; }

.profile-overview { padding-bottom: 95px; }
.overview-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; margin-top: 62px; }
.overview-card { position: relative; min-height: 390px; padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.overview-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -115px; bottom: -125px; border: 1px solid color-mix(in srgb,var(--accent) 25%,var(--line)); border-radius: 50%; box-shadow: 0 0 0 34px color-mix(in srgb,var(--accent) 4%,transparent); pointer-events: none; }
.overview-kicker { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.overview-card h3 { max-width: 620px; margin: 58px 0 16px; font-size: clamp(1.75rem,2.5vw,2.65rem); line-height: 1.08; letter-spacing: -.045em; }
.overview-card > p { max-width: 620px; margin: 0; color: var(--muted); font-size: 1.02rem; }
.fact-line { position: absolute; left: 32px; bottom: 28px; display: flex; align-items: baseline; gap: 10px; }
.fact-line b { color: var(--accent); font-size: 3rem; line-height: 1; letter-spacing: -.06em; }
.fact-line span { color: var(--muted); font-weight: 750; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.overview-card-stack h3 { margin-bottom: 30px; }
.stack-groups { display: grid; gap: 17px; }
.stack-groups div { padding-top: 15px; border-top: 1px solid var(--line); }
.stack-groups small { color: var(--muted); font-family: ui-monospace,monospace; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.stack-groups p { margin: 6px 0 0; font-weight: 750; }
.overview-card-wide { grid-column: 1 / -1; min-height: auto; }
.overview-card-wide::after { width: 300px; height: 300px; }
.experience-list { margin-top: 42px; border-top: 1px solid var(--line); }
.experience-item { display: grid; grid-template-columns: 150px 1fr 190px; gap: 28px; align-items: start; padding: 27px 0; border-bottom: 1px solid var(--line); }
.experience-item > span { color: var(--accent); font-family: ui-monospace,monospace; font-size: .82rem; font-weight: 800; }
.experience-item h3 { margin: 0 0 7px; font-size: 1.35rem; }
.experience-item p { margin: 0; color: var(--muted); }
.experience-item > b { justify-self: end; color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; text-align: right; }

.team-card { margin-top: 72px; padding: 14px; display: grid; grid-template-columns: .78fr 1.22fr; gap: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.team-card-brand { min-height: 420px; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 14px; background: radial-gradient(circle at 55% 45%,color-mix(in srgb,var(--accent) 17%,transparent),transparent 42%),var(--bg-soft); overflow: hidden; position: relative; }
.team-card-brand::after { content: "S.I.T"; position: absolute; right: -8px; bottom: -46px; color: color-mix(in srgb,var(--accent) 10%,transparent); font-size: 10rem; line-height: 1; font-weight: 950; letter-spacing: -.1em; }
.team-card-brand img { position: relative; z-index: 1; width: min(100%,290px); height: auto; }
.team-card-brand > span { position: relative; z-index: 1; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; }
.team-card-copy { padding: clamp(28px,4vw,54px); display: flex; flex-direction: column; }
.team-card-copy h3 { margin: 0 0 18px; font-size: clamp(2.2rem,4vw,4.2rem); letter-spacing: -.06em; }
.team-card-copy p { margin: 0 0 15px; color: var(--muted); font-size: 1.02rem; }
.team-card-copy strong { color: var(--text); }
.team-directions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.team-directions span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: .72rem; font-weight: 750; }
.team-links { display: flex; flex-wrap: wrap; gap: 19px; margin-top: auto; padding-top: 30px; border-top: 1px solid var(--line); }
.team-links a { font-weight: 800; }
.team-links b { color: var(--accent); }

.market-symbol, .warehouse-symbol { height: 150px; margin: 28px 0 24px; border-radius: 12px; background: var(--bg-soft); position: relative; overflow: hidden; border: 1px solid var(--line); }
.market-symbol { background-image: linear-gradient(rgba(186,255,102,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(186,255,102,.055) 1px,transparent 1px); background-size: 22px 22px; }
.market-symbol i { position: absolute; width: 55px; height: 22px; border: 1px solid var(--line-strong); background: color-mix(in srgb,var(--surface-2) 78%,transparent); }
.market-symbol i:nth-of-type(1) { left: 10%; top: 18%; }
.market-symbol i:nth-of-type(2) { left: 35%; bottom: 18%; }
.market-symbol i:nth-of-type(3) { right: 10%; top: 24%; }
.market-symbol i:nth-of-type(4) { right: 16%; bottom: 16%; }
.market-route { position: absolute; left: 18%; top: 30%; width: 64%; height: 42%; border: 2px dashed var(--accent); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(12deg); }
.market-symbol b { position: absolute; left: 18px; bottom: 13px; color: var(--accent); font-family: ui-monospace,monospace; font-size: .72rem; }
.warehouse-map { position: absolute; inset: 14px; background-image: linear-gradient(rgba(186,255,102,.065) 1px,transparent 1px),linear-gradient(90deg,rgba(186,255,102,.065) 1px,transparent 1px); background-size: 25px 25px; border: 1px solid var(--line); }
.warehouse-map::after { content: ""; position: absolute; inset: 15% 10% 30% 30%; border: 2px dashed color-mix(in srgb,var(--accent) 70%,transparent); border-left-color: transparent; border-radius: 50%; transform: rotate(-9deg); }
.warehouse-robot { position: absolute; left: 21%; bottom: 24%; width: 64px; height: 40px; border: 1px solid var(--accent); border-radius: 7px; background: color-mix(in srgb,var(--accent) 14%,var(--surface)); box-shadow: 0 0 24px color-mix(in srgb,var(--accent) 18%,transparent); }
.warehouse-robot::before,.warehouse-robot::after { content: ""; position: absolute; bottom: -8px; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); }
.warehouse-robot::before { left: 7px; }.warehouse-robot::after { right: 7px; }
.warehouse-robot span { position: absolute; width: 22px; height: 14px; left: 20px; top: -15px; border: 1px solid var(--accent); border-radius: 4px 4px 0 0; }
.warehouse-symbol > b { position: absolute; right: 18px; top: 16px; padding: 7px 9px; color: var(--accent); border: 1px solid var(--line-strong); border-radius: 6px; font-family: ui-monospace,monospace; font-size: .72rem; }
.project-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.project-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.project-links a span { color: var(--accent); transition: transform .2s; }
.project-links a:hover span { transform: translate(3px,-3px); }

@media (min-width: 981px) {
  .site-header, .site-header.is-scrolled { top: 14px; padding-inline: 0; border-color: transparent; border-radius: 0; background: transparent; backdrop-filter: none; box-shadow: none; }
  .hero-visual { margin-top: -42px; }
}

@media (max-width: 980px) {
  :root { --container: min(100% - 32px, 860px); }
  .button { border-radius:14px; }
  .portrait-card { border-radius:34px; }
  .portrait-wrap { border-radius:24px; }
  .availability { border-radius:16px; }
  .skill-card { border-radius:28px; }
  .skill-index { border-radius:12px; }
  .project-featured { border-radius:34px; }
  .project-visual { border-radius:24px; }
  .project-card { border-radius:28px; }
  .project-symbol,.circuit-symbol,.notes-symbol,.eco-symbol,.yasno-symbol,.drone-symbol,.market-symbol,.warehouse-symbol { border-radius:18px; }
  .all-projects { border-radius:22px; }
  .contact-card { border-radius:36px; }
  .print-button { border-radius:14px; }
  .desktop-nav { display:none; }
  .menu-toggle { display:grid; }
  .mobile-menu { position:fixed;inset:0;z-index:70;padding:125px 28px 35px;background:color-mix(in srgb,var(--bg) 94%,transparent);backdrop-filter:blur(20px);display:flex;flex-direction:column;gap:8px;opacity:0;pointer-events:none;transform:translateY(-12px);transition:opacity .25s,transform .25s; }
  .mobile-menu.is-open { opacity:1;pointer-events:auto;transform:none; }
  .mobile-menu a { padding:15px 0;border-bottom:1px solid var(--line);font-size:clamp(2rem,9vw,4rem);font-weight:850;letter-spacing:-.05em; }
  .hero { grid-template-columns:1fr;padding-top:140px; }
  .hero-copy { order:1; }
  .hero-visual { order:2; }
  .portrait-card { margin:10px auto 0;width:min(100%,620px); }
  .scroll-hint { display:none; }
  .about-grid { grid-template-columns:1fr;gap:36px; }
  .overview-grid { grid-template-columns:1fr; }
  .overview-card-wide { grid-column:auto; }
  .experience-item { grid-template-columns:120px 1fr; }
  .experience-item > b { grid-column:2; justify-self:start; text-align:left; }
  .team-card { grid-template-columns:1fr; }
  .team-card-brand { min-height:320px; }
  .skills-grid { grid-template-columns:1fr; }
  .skill-card { min-height:260px; }
  .skill-card h3 { margin-top:35px; }
  .project-featured { grid-template-columns:1fr; }
  .project-visual { min-height:430px; }
  .project-info h3 { margin-top:55px; }
  .project-grid { grid-template-columns:1fr; }
  .principles-grid { grid-template-columns:1fr; }
  .contact-card { grid-template-columns:1fr; }
}

@media (max-width: 620px) {
  :root { --container: calc(100% - 22px); --header-h:68px; --radius:22px; }
  .site-header { top:8px;padding:0 10px; }
  .site-header.is-scrolled { top:6px; }
  .brand-text { display:none; }
  .brand-logo { width:142px; }
  .footer-logo .brand-logo { width:132px; }
  .section { padding:86px 0; }
  .hero { padding-top:120px;padding-bottom:65px; }
  .hero h1 { font-size:clamp(3.2rem,17vw,5rem); }
  .hero-lead { font-size:1rem; }
  .hero-actions { display:grid;grid-template-columns:1fr; }
  .hero-meta { justify-content:space-between;gap:10px; }
  .hero-meta strong { font-size:1.55rem; }
  .hero-meta span { font-size:.67rem; }
  .portrait-card { border-radius:26px;padding:9px; }
  .portrait-wrap { border-radius:19px; }
  .portrait-caption { left:15px;right:15px;bottom:15px; }
  .portrait-caption strong { font-size:.75rem; }
  .code-float { display:none; }
  .about-title h2,.section-heading h2,.contact h2 { font-size:clamp(2.6rem,13vw,4.2rem); }
  .skill-card,.project-card { padding:22px; }
  .skill-card { border-radius:22px; }
  .overview-card { min-height:340px;padding:24px 20px; }
  .overview-card h3 { margin-top:42px; }
  .fact-line { left:20px;bottom:22px; }
  .experience-item { grid-template-columns:1fr;gap:9px;padding:22px 0; }
  .experience-item > b { grid-column:auto; }
  .team-card { padding:8px;border-radius:26px; }
  .team-card-brand { min-height:250px;padding:24px;border-radius:20px; }
  .team-card-copy { padding:25px 17px 30px; }
  .project-featured { padding:8px;border-radius:26px; }
  .project-visual { min-height:340px;border-radius:20px; }
  .project-info { padding:25px 17px 30px; }
  .project-info h3 { margin-top:40px;font-size:2.2rem; }
  .visual-console { left:12px;right:12px;bottom:12px;font-size:.6rem; }
  .project-card { min-height:430px; }
  .all-projects { align-items:stretch;flex-direction:column; }
  .achievement { grid-template-columns:62px 1fr;gap:12px;padding:22px 2px; }
  .achievement > b { display:none; }
  .achievement h3 { font-size:1.08rem; }
  .principle { min-height:230px;padding:25px 20px; }
  .contact-card { padding:28px 20px;border-radius:26px; }
  .contact-link { grid-template-columns:68px 1fr 16px;gap:8px; }
  .contact-link strong { font-size:.82rem; }
  footer { flex-wrap:wrap; }
  footer p { order:3;width:100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important; }
  .reveal { opacity:1;transform:none; }
  .cursor-glow { display:none; }
}

@media print {
  :root { --bg:#fff;--surface:#fff;--surface-2:#fff;--text:#111;--muted:#444;--line:rgba(0,0,0,.18);--accent:#477b14; }
  body { background:#fff; }
  .site-header,.mobile-menu,.marquee,.scroll-hint,.cursor-glow,.page-noise,.hero-actions,.print-button,footer { display:none!important; }
  .section { width:100%;padding:28px 0;break-inside:avoid; }
  .hero { min-height:auto;grid-template-columns:1.2fr .8fr;padding-top:0; }
  .hero h1 { font-size:52px; }
  .portrait-card { transform:none;box-shadow:none; }
  .skills-grid,.principles-grid { grid-template-columns:repeat(3,1fr); }
  .project-featured { grid-template-columns:1fr 1fr; }
  .project-grid { grid-template-columns:1fr 1fr; }
  .project-card { min-height:0; }
  .contact-card { box-shadow:none; }
  .reveal { opacity:1;transform:none; }
  a { text-decoration:none; }
}


/* 2026-08 portfolio refresh */
.brand-logo-switch {
  position: relative;
  display: inline-grid;
  align-items: center;
  width: 178px;
  line-height: 0;
}
.brand-logo-switch img { grid-area: 1 / 1; width: 100%; height: auto; object-fit: contain; }
.brand-logo-light { display: none; }
[data-theme="light"] .brand-logo-dark { display: none; }
[data-theme="light"] .brand-logo-light { display: block; }
.team-card-brand .brand-logo-switch { width: min(100%, 290px); position: relative; z-index: 1; }
.footer-logo .brand-logo-switch { width: 154px; }

.hero-scroll-arrow {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: color .2s, transform .2s;
}
.hero-scroll-arrow:hover { color: var(--text); transform: translateX(-50%) translateY(3px); }
.hero-scroll-arrow svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; animation: arrowBounce 1.8s ease-in-out infinite; }
@keyframes arrowBounce { 50% { transform: translateY(5px); } }

.project-image-featured { display: block; background: var(--bg-soft); }
.project-image-featured img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.project-image-featured:hover img { transform: scale(1.025); }
.project-image-featured::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 54%, rgba(5, 12, 10, .38)); pointer-events: none; }
.project-image-badge { position: absolute; left: 18px; bottom: 18px; z-index: 2; padding: 8px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 5px; background: rgba(7,14,12,.72); color: #fff; backdrop-filter: blur(12px); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.featured-links { margin-top: 28px; }

.project-card { min-height: 560px; }
.project-card-media {
  position: relative;
  display: block;
  height: 218px;
  margin: 25px 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-soft);
}
.project-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .3s; }
.project-card-media:hover img { transform: scale(1.035); }
.project-card-media.media-contain img { object-fit: contain; }
.project-card-media.media-dark { background: #22313b; }
.project-card-media.media-light { background: #fff; }
.project-card .tags { margin-top: auto; }
.project-card .project-links { margin-top: 24px; }

@media (min-width: 981px) {
  .hero-visual { margin-top: -92px; }
  .portrait-card { border-radius: 12px; }
  .portrait-wrap { border-radius: 8px; }
  .button, .print-button { border-radius: 6px; }
  .overview-card, .skill-card, .team-card, .project-featured, .project-card, .all-projects, .contact-card { border-radius: 9px; }
  .team-card-brand, .project-visual { border-radius: 7px; }
  .team-directions span, .project-image-badge { border-radius: 4px; }
}

@media (max-width: 980px) {
  .brand-logo-switch { width: 178px; }
  .hero-scroll-arrow { display: none; }
  .project-card-media { height: clamp(220px, 50vw, 360px); border-radius: 18px; }
  .project-card { min-height: 0; }
}

@media (max-width: 620px) {
  .brand-logo-switch { width: 142px; }
  .footer-logo .brand-logo-switch { width: 132px; }
  .project-card-media { margin: 20px 0; border-radius: 16px; }
}

/* Color balance and final desktop positioning */
.section-label span,
.project-number { color: var(--accent-2); }
@media (min-width: 981px) {
  .hero-visual { margin-top: -64px; }
  .project-card-media { height: auto; aspect-ratio: 16 / 9; }
}
