:root {
  --bg: #09090b;
  --bg-soft: #111115;
  --card: rgba(20,20,25,.72);
  --card-solid: #151519;
  --text: #f5f5f7;
  --muted: #9b9ba8;
  --line: rgba(255,255,255,.10);
  --accent: #ff6a00;
  --accent-2: #ff9d3d;
  --purple: #9b6dff;
  --shadow: 0 30px 70px rgba(0,0,0,.35);
  --radius: 24px;
  --container: 1180px;
}

body.light {
  --bg: #f3f3f0;
  --bg-soft: #e9e9e5;
  --card: rgba(255,255,255,.72);
  --card-solid: #ffffff;
  --text: #121214;
  --muted: #686873;
  --line: rgba(18,18,20,.10);
  --shadow: 0 30px 70px rgba(20,20,30,.10);
}

* { box-sizing: border-box; }

a, button, input, textarea, select, [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button, a {
  touch-action: manipulation;
}

button {
  -webkit-appearance: none;
  appearance: none;
}

a:focus, button:focus { outline: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}
body.no-scroll { overflow: hidden; }
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' 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: 420px; height: 420px; border-radius: 50%;
  pointer-events: none; z-index: -1; opacity: .13;
  background: radial-gradient(circle, var(--accent) 0%, transparent 68%);
  transform: translate(-50%, -50%);
  transition: opacity .25s ease;
}

.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 2; }
.section-pad { padding: 120px 0; }
.glass { background: rgba(16,16,20,.76); backdrop-filter: blur(18px); border: 1px solid var(--line); }

.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: .3s ease;
}
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(18px); border-bottom-color: var(--line); }
.nav-wrap { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: .08em; min-width: 0; }
.brand-mark { color: var(--accent); font-size: 18px; }
.brand-name { font-size: 12px; line-height: 1.2; max-width: 240px; word-break: break-word; }
.desktop-nav { display: flex; gap: 30px; }
.desktop-nav a { font-size: 13px; color: var(--muted); transition: .2s ease; position: relative; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--text); }
.desktop-nav a::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 2px; background: var(--accent); transition: .2s ease; }
.desktop-nav a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.theme-toggle, .menu-toggle { width: 42px; height: 42px; border-radius: 50%; background: transparent; border: 1px solid var(--line); cursor: pointer; }
.menu-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { width: 17px; height: 1px; background: currentColor; transition: .25s ease; }
.menu-toggle.open span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle.open span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-menu { display: none; }

.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: 150px; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 1px; height: 100%; top: 0; left: 50%; background: linear-gradient(transparent, var(--line), transparent); opacity: .4; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 76px; align-items: center; }
.eyebrow, .section-kicker { font-size: 11px; letter-spacing: .18em; color: var(--muted); font-weight: 800; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.eyebrow span { width: 26px; height: 2px; background: var(--accent); }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; margin-top: 0; }
h1 { font-size: clamp(48px, 6vw, 82px); line-height: .98; letter-spacing: -.055em; margin-bottom: 26px; max-width: 790px; }
.gradient-text { background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: var(--muted); max-width: 670px; font-size: 17px; line-height: 1.75; }
.hero-lead strong { color: var(--text); }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn { min-height: 50px; padding: 0 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 30px rgba(255,106,0,.25); }
.btn-primary:hover { transform: translateY(-3px); }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost:hover { background: var(--card); }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 650px; flex-wrap: wrap; }
.stat { min-width: 140px; flex: 1 1 140px; }
.stat strong, .stat > span { font-family: "Space Grotesk", sans-serif; font-size: 28px; }
.stat > span { color: var(--accent); }
.stat small { display: block; color: var(--muted); margin-top: 5px; font-size: 11px; }

.hero-visual { position: relative; min-height: 700px; display: grid; place-items: center; padding: 20px 0 30px; }
.hero-portrait-card {
  position: relative;
  width: min(100%, 440px);
  min-height: 590px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  justify-self: end;
  margin-top: 72px;
  margin-right: 14px;
  z-index: 3;
  transform-style: preserve-3d;
}
.portrait-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 96%, rgba(255,255,255,.06) 100%),
    linear-gradient(90deg, transparent 96%, rgba(255,255,255,.06) 100%);
  background-size: 32px 32px;
  opacity: .12;
  z-index: 1;
  pointer-events: none;
}
.hero-portrait-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,8,.08) 0%, rgba(5,5,8,.12) 42%, rgba(5,5,8,.82) 100%);
  z-index: 2;
}
.hero-portrait-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -45px;
  top: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,106,0,.34), transparent 68%);
  filter: blur(6px);
  z-index: 1;
}
.hero-portrait-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-portrait-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 28px 28px;
  z-index: 3;
}
.photo-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(7,7,10,.56);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  font-size: 10px;
  letter-spacing: .16em;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero-identity h3 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 10px;
}
.hero-identity p {
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.72;
  font-size: 14px;
  max-width: 94%;
}
.hero-identity h3, .hero-identity p { text-shadow: 0 8px 24px rgba(0,0,0,.35); }
.hero-info-card {
  position: absolute;
  right: -18px;
  top: 6px;
  width: min(100%, 250px);
  padding: 18px 18px 16px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  z-index: 4;
}
.hero-info-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  margin-bottom: 7px;
}
.hero-info-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.hero-info-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  pointer-events: none;
}
.code-card { width: min(100%, 520px); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); transform-style: preserve-3d; }
.hero-code-card {
  position: absolute;
  left: -88px;
  bottom: 34px;
  width: min(100%, 340px);
  z-index: 2;
  opacity: .96;
}
.hero-code-card pre { padding: 20px 20px 18px; font-size: 10px; }
.hero-code-card .status-line { height: 42px; }
.window-bar { height: 48px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; }
.dots { display: flex; gap: 7px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: #51515b; }
.window-title { font-size: 10px; color: #73737f; }
pre { margin: 0; padding: 30px; overflow: auto; color: #d9d9e1; font-size: 13px; line-height: 1.85; background: rgba(6,6,8,.62); }
.c-blue { color: #6ea8ff; }.c-green { color: #a5e075; }.c-purple { color: #b99cff; }
.status-line { height: 48px; display: flex; align-items: center; gap: 9px; padding: 0 18px; color: #8b8b98; font-size: 10px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #62d98b; box-shadow: 0 0 0 0 rgba(98,217,139,.45); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(98,217,139,0); } 100% { box-shadow: 0 0 0 0 rgba(98,217,139,0); } }
.floating-chip { position: absolute; padding: 12px 16px; border-radius: 14px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 800; font-size: 12px; animation: float 5s ease-in-out infinite; }
.chip-1 { top: 18px; right: 18px; color: #818cf8; z-index: 5; }.chip-2 { left: -6px; top: 120px; color: #f6d365; animation-delay: -1.2s; z-index: 5; }.chip-3 { right: 18px; bottom: 10px; color: #61dafb; animation-delay: -2.3s; z-index: 5; }
@keyframes float { 50% { transform: translateY(-12px) rotate(2deg); } }
.hero-orb, .cta-orb { position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.orb-a { width: 420px; height: 420px; right: -180px; top: 12%; background: radial-gradient(circle, rgba(155,109,255,.24), transparent 67%); }
.orb-b { width: 480px; height: 480px; left: -210px; bottom: -90px; background: radial-gradient(circle, rgba(255,106,0,.18), transparent 67%); }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 9px; letter-spacing: .18em; }
.scroll-hint i { width: 1px; height: 38px; background: linear-gradient(var(--accent), transparent); animation: scrollLine 1.8s ease-in-out infinite; }
@keyframes scrollLine { 50% { transform: scaleY(.45); transform-origin: top; } }

.split-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 110px; align-items: start; }
.section-heading h2 { font-size: clamp(38px, 5vw, 62px); line-height: 1.05; letter-spacing: -.04em; margin: 14px 0 0; }
.about { border-top: 1px solid var(--line); }
.about-copy .big-copy { font-size: clamp(24px, 2.7vw, 36px); line-height: 1.35; color: var(--text); margin-top: 0; }
.about-copy > p:not(.big-copy) { color: var(--muted); line-height: 1.8; max-width: 760px; }
.about-points { margin-top: 46px; border-top: 1px solid var(--line); }
.about-points > div { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.about-points span { color: var(--accent); font-size: 11px; font-weight: 800; }
.about-points p { margin: 0; color: var(--muted); }

.stack-section { background: var(--bg-soft); }
.inline-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 55px; }
.inline-heading > p { color: var(--muted); max-width: 480px; line-height: 1.7; margin: 0; }
.stack-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.stack-card { position: relative; min-height: 350px; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--card); overflow: hidden; transition: .3s ease; transform-style: preserve-3d; }
.stack-card:hover { transform: translateY(-6px); border-color: rgba(255,106,0,.35); }
.stack-num { position: absolute; right: 24px; top: 22px; color: var(--muted); font-size: 10px; }
.stack-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,106,0,.10); color: var(--accent); font-family: monospace; margin-bottom: 64px; border: 1px solid rgba(255,106,0,.16); }
.stack-card h3 { font-size: 24px; margin-bottom: 12px; }
.stack-card p { color: var(--muted); line-height: 1.7; font-size: 14px; }
.tag-list, .project-tech, .modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag-list span, .project-tech span, .modal-tags span { font-size: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

.projects-section { position: relative; overflow: hidden; }
.projects-bg-text { position: absolute; top: 80px; left: 50%; transform: translateX(-50%); font-size: min(17vw, 230px); font-family: "Space Grotesk", sans-serif; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--line); opacity: .4; white-space: nowrap; }
.project-filter { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-start; }
.filter-btn { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 9px 13px; font-size: 11px; cursor: pointer; }
.filter-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.project-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); transition: .35s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-card.hidden { display: none; }
.project-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.12fr .88fr; }
.project-featured .project-media { min-height: 500px; }
.project-media { min-height: 315px; padding: 40px; display: grid; place-items: center; overflow: hidden; position: relative; }
.project-body { padding: 28px; }
.project-featured .project-body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.project-meta span { font-size: 13px; font-weight: 800; }
.project-meta small { color: var(--muted); font-size: 10px; }
.project-body h3 { font-size: clamp(24px,3vw,35px); line-height: 1.12; margin: 18px 0 14px; }
.project-body p { color: var(--muted); line-height: 1.7; font-size: 14px; }
.project-open { margin-top: 28px; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 9px; background: transparent; display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; cursor: pointer; font-size: 12px; }
.project-open:hover { color: var(--accent); border-color: var(--accent); }
.media-alana { background: radial-gradient(circle at 20% 20%, #263b58, #10151e 65%); }
.media-foxmotors { background: radial-gradient(circle at 20% 20%, #582a22, #15100f 68%); }
.media-agende { background: radial-gradient(circle at 70% 20%, #243b51, #10151e 70%); }
.media-startfox { background: radial-gradient(circle at 30% 30%, #4d2d12, #13110f 70%); }
.mock-browser { width: min(94%, 640px); border-radius: 18px; background: #f4f5f7; box-shadow: 0 26px 55px rgba(0,0,0,.34); transform: rotate(-2deg); }
.mock-top { height: 38px; background: #e5e7eb; display: flex; gap: 6px; align-items: center; padding: 0 13px; border-radius: 18px 18px 0 0; }.mock-top i { width: 7px; height: 7px; border-radius: 50%; background: #b6bac1; }
.chat-ui { padding: 24px; color: #15171b; min-height: 330px; }.chat-head { display:flex; gap:10px; align-items:center; border-bottom:1px solid #e5e7eb; padding-bottom:14px; margin-bottom:25px;}.chat-head .avatar{width:38px;height:38px;border-radius:50%;background:#111827;color:#fff;display:grid;place-items:center;font-weight:800}.chat-head small{display:block;color:#8a8f98;font-size:9px}.bubble{width:72%;background:#e9f9ef;border-radius:14px 14px 14px 4px;padding:13px 15px;font-size:11px;margin:9px 0}.bubble.option{background:#fff;border:1px solid #e1e4e8;margin-left:auto;border-radius:12px;color:#555;width:54%}
.dashboard-mini { width: 90%; height: 220px; background: #15191f; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; display: grid; grid-template-columns: 62px 1fr; box-shadow: 0 22px 50px rgba(0,0,0,.38); transform: rotate(2deg); }.dash-side{background:#0c0f13;border-radius:18px 0 0 18px;display:flex;flex-direction:column;align-items:center;gap:18px;padding-top:20px}.dash-side b{color:#ff7b2d}.dash-side i{width:22px;height:5px;border-radius:8px;background:#2d333b}.dash-content{padding:23px;color:#fff}.dash-content>span{font-size:12px;font-weight:700}.metric-row{display:flex;gap:9px;margin:22px 0}.metric-row i{flex:1;height:48px;border-radius:9px;background:#222832}.chart{height:77px;border-radius:10px;background:linear-gradient(180deg,rgba(255,106,0,.28),rgba(255,106,0,.02));clip-path:polygon(0 82%,13% 58%,25% 69%,39% 36%,51% 49%,68% 16%,81% 38%,100% 6%,100% 100%,0 100%)}
.phone-mock{width:150px;height:290px;border:7px solid #101318;border-radius:31px;background:#fff;box-shadow:0 25px 55px rgba(0,0,0,.4);transform:rotate(-6deg);padding:8px}.phone-screen{height:100%;border-radius:20px;background:#f4f7fa;padding:22px 14px;color:#1b1d22}.phone-screen small{color:#88909a}.phone-screen strong{display:block;font-size:21px;margin:5px 0 25px}.calendar-bars{display:grid;gap:10px}.calendar-bars i{height:38px;background:#fff;border-radius:9px;box-shadow:0 4px 13px rgba(0,0,0,.05);border-left:4px solid #ff6a00}.calendar-bars i:nth-child(2){border-color:#617cff}.calendar-bars i:nth-child(3){border-color:#5dbb88}.calendar-bars i:nth-child(4){border-color:#aa6eff}
.brand-lockup { text-align:center; transform: rotate(-2deg); }.fox-symbol{font-size:68px;color:#ff6a00;font-family:"Space Grotesk";font-weight:800;line-height:1}.brand-lockup strong{display:block;letter-spacing:.18em;font-size:28px;margin-top:12px}.brand-lockup small{display:block;color:#96908d;margin-top:7px;letter-spacing:.16em;text-transform:uppercase;font-size:8px}

.experience { border-top: 1px solid var(--line); }
.sticky-heading { position: sticky; top: 120px; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 35px 0; border-bottom: 1px solid var(--line); }
.timeline-year { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.role-badge { color: var(--accent); font-size: 10px; letter-spacing: .12em; }
.timeline-item h3 { font-size: 25px; margin: 10px 0 10px; }
.timeline-item p { color: var(--muted); line-height: 1.75; margin: 0; }

.cta-section { position: relative; padding: 145px 0; overflow: hidden; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), var(--bg-soft)); }
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: clamp(48px, 7vw, 92px); letter-spacing: -.055em; line-height: .98; margin: 20px auto 26px; }
.cta-inner p { color: var(--muted); max-width: 680px; margin: 0 auto; line-height: 1.7; }
.cta-actions { display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.contact-note { display: block; color: var(--muted); margin-top: 22px; font-size: 10px; }
.cta-orb { width: 650px; height: 650px; left: 50%; top: 5%; transform: translateX(-50%); background: radial-gradient(circle, rgba(255,106,0,.14), transparent 67%); }
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--muted); font-size: 11px; }
.footer-inner .brand { color: var(--text); }
.back-top:hover { color: var(--accent); }

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: .25s ease; }
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.70); backdrop-filter: blur(8px); }
.modal-box { position: relative; width: min(640px,100%); border: 1px solid var(--line); background: var(--card-solid); border-radius: 26px; padding: 42px; box-shadow: var(--shadow); transform: translateY(15px) scale(.98); transition: .25s ease; }
.modal.open .modal-box { transform: translateY(0) scale(1); }
.modal-close { position:absolute;right:20px;top:16px;background:transparent;border:0;font-size:26px;cursor:pointer;color:var(--muted); }
.modal-box h2 { font-size: 38px; margin: 12px 0 14px; }.modal-box p{color:var(--muted);line-height:1.75;}
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); border-radius: 999px; padding: 11px 17px; font-size: 11px; z-index: 110; opacity: 0; visibility: hidden; transition: .25s ease; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.show { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .12s; }.reveal-delay-2 { transition-delay: .22s; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }.menu-toggle { display: flex; }
  .mobile-menu { position: fixed; top: 78px; left: 0; width: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 20px; flex-direction: column; gap: 8px; }
  .mobile-menu.open { display: flex; }.mobile-menu a { padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
  .hero-grid, .split-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero { padding-top: 130px; }.hero-visual { min-height: 760px; justify-items: center; width: 100%; }.hero::before { display: none; }
  .hero-portrait-card { justify-self: center; margin-top: 68px; margin-right: 0; }
  .hero-code-card { left: -8px; bottom: 18px; width: min(100%, 300px); }
  .hero-info-card { right: 12px; top: 0; bottom: auto; width: min(100%, 230px); }
  .brand-name { max-width: 220px; font-size: 11px; }
  .chip-2 { left: 12px; top: 110px; }
  .hero-stats { gap: 18px; }
  .stat { min-width: 150px; }
  .section-pad { padding: 90px 0; }.stack-grid { grid-template-columns: 1fr; }.stack-card { min-height: 280px; }.stack-icon { margin-bottom: 35px; }
  .inline-heading { align-items: flex-start; flex-direction: column; }
  .project-featured { grid-template-columns: 1fr; }.project-featured .project-media { min-height: 390px; }
  .sticky-heading { position: static; }.projects-bg-text { top: 170px; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section-pad { padding: 74px 0; }
  .nav-wrap { height: 68px; }.mobile-menu { top:68px; }
  h1 { font-size: clamp(43px, 13vw, 62px); }
  .hero { min-height: auto; padding-top: 118px; padding-bottom: 95px; }.hero-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; justify-content:stretch; margin-top:36px; }.stat strong,.stat>span{font-size:21px}.stat small{font-size:8px;line-height:1.35}.scroll-hint{display:none}
  .stat { min-width:0; width:100%; }
  .hero-visual { min-height: auto; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }.code-card { border-radius: 18px; }.floating-chip{display:none} pre { font-size: 10px; padding: 22px; }
  .hero-portrait-card { width: 100%; min-height: 450px; border-radius: 24px; margin-top: 0; }
  .hero-portrait-overlay { padding: 24px 22px 22px; }
  .hero-identity h3 { font-size: 28px; }
  .hero-identity p { font-size: 13px; max-width: 100%; }
  .hero-code-card { position: relative; left: 0; bottom: auto; width: 100%; margin-top: 0; order: 3; }
  .hero-info-card { position: relative; right: auto; top: auto; bottom: auto; width: 100%; padding: 15px 16px; order: 2; }
  .brand-name { max-width: 160px; font-size: 10px; letter-spacing: .04em; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .copy-email { width: 100%; }
  .section-heading h2 { font-size: 40px; }.about-copy .big-copy { font-size: 24px; }
  .project-filter { width:100%; justify-content:center; }
  .projects-grid { grid-template-columns: 1fr; }.project-featured { grid-column: auto; }.project-media,.project-featured .project-media{min-height:280px;padding:24px}.project-featured .project-body,.project-body{padding:24px}.project-meta{align-items:flex-start;flex-direction:column;gap:5px}
  .timeline-item { grid-template-columns: 1fr; gap: 12px; }.cta-section{padding:100px 0}.cta-inner h2{font-size:50px}.footer-inner{flex-direction:column;text-align:center}.modal-box{padding:32px 24px}.modal-box h2{font-size:30px}
  .cursor-glow { display:none; }
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none !important; }
  .btn-primary:hover, .btn-ghost:hover, .stack-card:hover, .project-card:hover, .project-open:hover, .back-top:hover {
    transform: none;
  }
  .btn-ghost:hover { background: transparent; }
  .stack-card:hover { border-color: var(--line); }
  .project-card:hover { box-shadow: none; }
  .project-open:hover, .back-top:hover { color: inherit; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:.001ms!important; animation-iteration-count:1!important; scroll-behavior:auto!important; transition-duration:.001ms!important; }
}


@media (max-width: 480px) {
  .brand-name { max-width: 132px; font-size: 9px; }
  .hero-portrait-card { min-height: 400px; }
  .photo-label { font-size: 9px; padding: 0 12px; }
  .hero-identity h3 { font-size: 24px; }
  .hero-lead { font-size: 15px; }
  .hero-stats { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
  .stat { min-width:0; }
  .stat strong, .stat > span { font-size:19px; }
  .stat small { font-size:7px; }
  .project-filter { justify-content:center; gap:6px; }
  .project-filter button { width:auto; flex:0 0 auto; }
  .mobile-menu a { padding: 14px 0; }
}
