/* =========================================================
   Tokens
   ========================================================= */
:root {
  --paper: #f3efe6;
  --paper-2: #ece6da;
  --tan: #e3dac8;
  --tan-2: #d9cfba;
  --card: #f8f5ee;
  --white: #fffdf8;
  --ink: #121826;
  --ink-2: #3b4252;
  --muted: #7b7f89;
  --line: rgba(18, 24, 38, .12);
  --line-2: rgba(18, 24, 38, .22);
  --accent: #a5591a;
  --ghost: rgba(18, 24, 38, .07);
  --shadow: 0 30px 60px -32px rgba(18, 24, 38, .35);
  --shadow-sm: 0 10px 30px -16px rgba(18, 24, 38, .3);
  --font: "Space Grotesk", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(18px, 5.4vw, 104px);
  --max: 1920px;
  color-scheme: light;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { font-family: var(--font); background: var(--paper); color: var(--ink); line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -.01em; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.035em; line-height: 1; }
h2 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 em { font-size: 1.08em; }
h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

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

/* buttons and links */
.button { display: inline-flex; align-items: center; gap: 28px; padding: 16px 26px; border-radius: 999px; font-weight: 500; font-size: .95rem; transition: transform .35s var(--ease), background .3s, box-shadow .3s; }
.button.primary { background: var(--ink); color: var(--paper); box-shadow: 0 14px 30px -14px rgba(18, 24, 38, .6); }
.button.primary:hover { background: #1f2940; }
.button span { transition: transform .3s var(--ease); }
.button:hover span { transform: translateX(4px); }
.text-link { position: relative; font-weight: 500; font-size: .95rem; padding: 6px 0; }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.text-link:hover::after { transform: scaleX(1); transform-origin: left; }
.link-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.link-pills a { font-size: .82rem; font-weight: 500; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.link-pills a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span { font-family: var(--mono); font-size: .64rem; letter-spacing: .02em; padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }
.local-time { font-family: var(--mono); font-size: .78em; color: var(--accent); }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* =========================================================
   Header
   ========================================================= */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform-origin: left; transform: scaleX(0); z-index: 80; }
.site-header { position: fixed; z-index: 60; top: 18px; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--max); padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; pointer-events: none; }
.site-header .monogram { justify-self: start; }
.header-cta { justify-self: end; display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 500; padding: 8px 0; transition: color .3s; }
.header-cta:hover { color: var(--accent); }
.site-header > * { pointer-events: auto; }
.monogram { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; white-space: nowrap; font-weight: 700; font-size: .92rem; letter-spacing: -.03em; transition: transform .4s var(--ease); }
.monogram span { color: #e39a5a; }
.monogram:hover { transform: rotate(-12deg) scale(1.05); }
.monogram.small { width: 40px; height: 40px; font-size: .8rem; }
.pill-nav { position: relative; display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: rgba(255, 253, 248, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px -14px rgba(18, 24, 38, .22); border: 1px solid rgba(255, 255, 255, .7); }
.pill-nav a { position: relative; z-index: 1; padding: 10px 17px; border-radius: 999px; font-size: .82rem; font-weight: 500; transition: color .35s; }
.pill-nav a.active { color: var(--paper); }
.pill-nav a:not(.active):hover { color: var(--accent); }
.nav-indicator { position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: var(--ink); opacity: 0; transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s; }
.menu-toggle { display: none; justify-self: end; grid-column: 3; padding: 12px 18px; border-radius: 999px; background: rgba(255, 253, 248, .9); box-shadow: var(--shadow-sm); font-weight: 500; font-size: .9rem; gap: 8px; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .pill-nav { position: fixed; top: 76px; left: var(--gutter); right: var(--gutter); flex-direction: column; border-radius: 22px; padding: 10px; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: .35s var(--ease); background: var(--white); }
  .site-header.nav-open .pill-nav { opacity: 1; transform: none; pointer-events: auto; }
  .pill-nav a { padding: 14px 16px; font-size: 1.05rem; }
  .pill-nav a.active { background: var(--ink); }
  .nav-indicator { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; max-width: var(--max); margin: 0 auto; min-height: max(100svh, 700px); padding: 100px var(--gutter) 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, .62fr); grid-template-rows: auto 1fr auto; column-gap: clamp(16px, 3vw, 56px); overflow-x: clip; }
.hero-name { position: absolute; top: clamp(96px, 12vh, 112px); left: 50%; transform: translateX(-50%); z-index: 0; font-size: min(16.4vw, 330px); font-weight: 700; line-height: .82; letter-spacing: -.06em; color: var(--ghost); white-space: nowrap; user-select: none; pointer-events: none; display: flex; }
.hero-name span { display: inline-block; }
.hero-topnote { grid-column: 3; grid-row: 1; justify-self: end; position: relative; z-index: 2; margin-top: 30px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(165, 89, 26, .5); } 100% { box-shadow: 0 0 0 10px rgba(165, 89, 26, 0); } }

.hero-avatar { grid-column: 2; grid-row: 1 / 3; align-self: end; justify-self: center; position: relative; z-index: 1; width: clamp(240px, 22vw, 420px); margin-bottom: 14px; display: flex; flex-direction: column; align-items: center; }
.avatar-img { width: 100%; height: auto; animation: float 5.5s ease-in-out infinite; filter: drop-shadow(0 22px 22px rgba(18, 24, 38, .18)); }
.avatar-shadow { width: 46%; height: 16px; margin-top: -14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(18, 24, 38, .22), transparent); animation: shadow 5.5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes shadow { 50% { transform: scaleX(.82); opacity: .6; } }
.hello-chip, .dock-hello { margin-top: 10px; padding: 8px 14px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); font-size: .74rem; font-weight: 500; transition: transform .3s var(--ease), background .3s, color .3s; }
.hello-chip:hover, .dock-hello:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.bubble { position: absolute; z-index: 5; width: max-content; max-width: 250px; padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: var(--white); box-shadow: var(--shadow); font-family: var(--serif); font-size: 1.12rem; line-height: 1.22; color: var(--ink); }
.bubble.show { animation: bubble-in .45s var(--ease) both; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(.94); } }
.hero-bubble { top: 6%; left: 78%; }

.hero-copy { grid-column: 1; grid-row: 2; align-self: end; position: relative; z-index: 2; padding-bottom: 34px; padding-left: clamp(0px, 7vw - 40px, 140px); }
.hero h1 { font-size: clamp(2.6rem, 4.2vw, 4.6rem); font-weight: 600; letter-spacing: -.05em; line-height: .98; margin: 18px 0 26px; }
.hero h1 em { font-weight: 400; letter-spacing: -.02em; }
.hero h1 em { font-size: 1.1em; }
.hero .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero .line > span { display: block; }
.js .hero .line > span { transform: translateY(110%); }
.hero-tagline { color: var(--ink-2); font-size: 1.02rem; }
.hero-tagline strong { color: var(--ink); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 30px; }
.hero-aside { grid-column: 3; grid-row: 2; align-self: end; justify-self: end; position: relative; z-index: 2; margin-bottom: 40px; margin-right: clamp(0px, 7vw - 40px, 140px); display: flex; flex-direction: column; align-items: flex-end; gap: 14px; text-align: right; }
.aside-label { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; line-height: 2; color: var(--ink-2); }
.hero-aside p { font-size: .9rem; color: var(--ink-2); margin-bottom: 18px; }
.scroll-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 1.1rem; transition: background .3s, color .3s; animation: bob 2.4s ease-in-out infinite; }
.scroll-btn:hover { background: var(--ink); color: var(--paper); }
@keyframes bob { 50% { transform: translateY(5px); } }
.hero-bottom { grid-column: 1 / -1; grid-row: 3; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .62rem; letter-spacing: .15em; color: var(--ink-2); position: relative; z-index: 2; }

@media (max-width: 1100px) and (min-width: 761px) {
  .hero { grid-template-columns: minmax(0, 1fr) auto; min-height: min(100svh, 820px); }
  .hero-topnote { grid-column: 2; }
  .hero-aside { display: none; }
  .hero-bubble { left: auto; right: 34%; top: -14%; max-width: 220px; border-radius: 18px 18px 4px 18px; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; padding-top: 84px; min-height: auto; }
  .hero-name { top: 92px; font-size: 19vw; }
  .hero-topnote { grid-column: 1; grid-row: 1; justify-self: start; margin-top: 8px; }
  .hero-avatar { grid-column: 1; grid-row: 2; justify-self: center; margin: 34px 0 0; width: min(64vw, 270px); }
  .hero-bubble { top: -6px; left: 58%; max-width: 190px; font-size: 1rem; }
  .hero-copy { grid-column: 1; grid-row: 3; padding: 28px 0 32px; }
  .hero-name { top: 92px; }
  .hero-aside { display: none; }
  .hero-bottom { grid-row: 4; flex-direction: column; gap: 6px; }
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-marker { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); margin-bottom: clamp(44px, 6vw, 72px); font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; color: var(--ink-2); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { max-width: 42ch; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) { .section-head { flex-direction: column; align-items: flex-start; gap: 18px; } }

/* =========================================================
   About + badge
   ========================================================= */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) minmax(0, .72fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.about-copy p { margin-top: 22px; max-width: 54ch; color: var(--ink-2); font-size: 1.02rem; }
.about-copy h2 { margin-bottom: 8px; }
.badge-col { display: flex; flex-direction: column; align-items: center; padding-top: 0; }
.badge-rig { --angle: -4deg; position: relative; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; transform: rotate(var(--angle)); touch-action: pan-y; cursor: grab; user-select: none; will-change: transform; }
.badge-rig.dragging { cursor: grabbing; }
.strap { width: 34px; height: 118px; background: linear-gradient(90deg, #0d121c, #1d2536 50%, #0d121c); border-radius: 3px 3px 0 0; display: flex; align-items: center; justify-content: center; }
.strap span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--mono); font-size: .5rem; letter-spacing: .22em; color: rgba(243, 239, 230, .78); }
.clip { width: 44px; height: 20px; margin-top: -2px; border-radius: 6px 6px 10px 10px; background: linear-gradient(180deg, #d8dbe0, #9aa1ab); box-shadow: 0 3px 6px rgba(0, 0, 0, .2); position: relative; z-index: 2; }
.badge { display: block; width: 252px; height: 344px; margin-top: -6px; perspective: 1200px; }
.badge-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.badge[aria-pressed="true"] .badge-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: 0 34px 50px -28px rgba(18, 24, 38, .55), 0 2px 0 rgba(255, 255, 255, .6) inset; }
.front { background: var(--white); }
.band { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; background: var(--ink); color: var(--paper); }
.band b { font-size: .8rem; letter-spacing: .06em; }
.band small { font-family: var(--mono); font-size: .48rem; letter-spacing: .16em; opacity: .7; }
.photo { width: 156px; height: 156px; margin-top: 22px; border-radius: 8px; overflow: hidden; background: #0f5a63; box-shadow: 0 0 0 4px var(--paper-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; pointer-events: none; }
.front strong { margin-top: 18px; font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; }
.role { margin-top: 4px; font-family: var(--mono); font-size: .52rem; letter-spacing: .16em; color: var(--muted); }
.barcode { width: 150px; height: 24px; margin-top: 14px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px); }
.badge-id { margin-top: 6px; font-family: var(--mono); font-size: .48rem; letter-spacing: .16em; color: var(--muted); }
.back { transform: rotateY(180deg); background: var(--ink); color: var(--paper); justify-content: center; gap: 16px; padding: 26px; }
.back .eyebrow { color: #e39a5a; }
.back strong { font-size: 1.9rem; font-weight: 500; line-height: 1.02; letter-spacing: -.03em; }
.badge-stats { display: flex; gap: 28px; }
.badge-stats b { display: flex; flex-direction: column; font-size: 2.1rem; font-weight: 500; line-height: 1; }
.badge-stats small { margin-top: 6px; font-family: var(--mono); font-size: .5rem; letter-spacing: .16em; color: rgba(243, 239, 230, .6); }
.back-line { font-family: var(--mono); font-size: .52rem; letter-spacing: .16em; }
.back > small { font-family: var(--serif); font-style: italic; font-size: 1rem; color: rgba(243, 239, 230, .75); }
.badge-hint { margin-top: 26px; font-size: .74rem; color: var(--muted); display: flex; gap: 10px; align-items: center; }

.facts { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.facts blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.12; margin-top: 18px; }
.facts-quote { display: flex; flex-direction: column; gap: 16px; }
.facts-quote blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.12; }
.facts-grid { display: grid; grid-template-columns: 1fr; }
.facts-grid > div { padding: 16px 0 18px; border-top: 1px solid var(--line-2); }
.facts-grid > div:last-child { border-bottom: 1px solid var(--line-2); }
.facts-grid dt { font-size: .72rem; color: var(--muted); margin-bottom: 6px; }
.facts-grid dd { font-size: .95rem; font-weight: 500; }
@media (max-width: 1200px) {
  .about-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .facts { grid-column: 1 / -1; margin-top: 24px; }
  .facts-grid { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .facts-grid > div:nth-last-child(2) { border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .badge-col { margin-top: 10px; }
}
@media (max-width: 480px) { .facts-grid { grid-template-columns: 1fr; } .facts-grid > div:nth-last-child(2) { border-bottom: 0; } }

/* =========================================================
   Skills + desktop monitor
   ========================================================= */
.skills-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 48px; align-items: center; }
.skills-copy p { margin-top: 22px; color: var(--ink-2); max-width: 40ch; }
.skills-copy h2 { margin-top: 18px; }
.skill-note { display: flex; align-items: flex-start; gap: 16px; margin-top: 36px; }
.skill-note svg { width: 56px; flex: none; color: var(--accent); margin-top: 6px; }
.skill-note p { margin: 0; font-size: .88rem; }
.skill-note strong { font-weight: 600; color: var(--ink); }
.also { margin-top: 44px; }
.also p { margin-top: 12px; font-size: .82rem; line-height: 1.9; color: var(--ink-2); }

.skills-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; min-width: 0; }
.filter-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.filter-chips button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .76rem; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.filter-chips button:hover { border-color: var(--ink); }
.filter-chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.monitor { width: 100%; max-width: 860px; display: flex; flex-direction: column; align-items: center; }
.monitor-bezel { width: 100%; padding: 12px; border-radius: 22px; background: linear-gradient(160deg, #1c2333, #0d111a); box-shadow: 0 50px 80px -40px rgba(18, 24, 38, .6), inset 0 1px 0 rgba(255, 255, 255, .08); }
.monitor-screen { position: relative; aspect-ratio: 16 / 10.4; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: radial-gradient(120% 90% at 85% 0%, #f1d9b0 0%, rgba(241, 217, 176, 0) 55%), radial-gradient(90% 80% at 0% 100%, #e8dcc6 0%, rgba(232, 220, 198, 0) 60%), #f5f0e6; }
.menubar { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px; font-size: .62rem; font-weight: 500; background: rgba(255, 253, 248, .6); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(18, 24, 38, .06); }
.menubar-left { display: flex; gap: 14px; align-items: center; }
.menubar-left b { color: var(--accent); font-size: .7rem; }
.menubar-left span { color: var(--ink-2); font-weight: 400; }
.menubar .local-time { font-size: .62rem; color: var(--ink); }
.desktop { flex: 1; padding: 16px 20px 0; display: flex; flex-direction: column; min-height: 0; }
.desktop-greeting { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.desktop-greeting span { font-family: var(--mono); font-size: .54rem; letter-spacing: .16em; color: var(--muted); }
.desktop-greeting strong { font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; }
.icon-grid { flex: 1; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px 4px; align-content: space-evenly; }
@media (min-width: 1400px) {
  .icon-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .icon-grid .app-icon { width: 50px; height: 50px; border-radius: 14px; font-size: 1.1rem; }
  .tech-app { font-size: .64rem; }
}
.tech-app { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 4px 2px; border-radius: 10px; font-size: .56rem; font-weight: 500; line-height: 1.15; text-align: center; color: var(--ink); transition: transform .35s var(--ease), opacity .35s, filter .35s, background .25s; }
.tech-app:hover { background: rgba(18, 24, 38, .06); transform: translateY(-3px); }
.tech-app:hover .app-icon { transform: scale(1.08); }
.tech-app.dim { opacity: .2; filter: grayscale(1); transform: scale(.92); pointer-events: none; }
.app-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: .95rem; background: var(--c, var(--ink)); box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .2), 0 6px 12px -6px rgba(18, 24, 38, .5); transition: transform .35s var(--ease); }
.fam-frontend { --c: #1e3a8a; } .fam-mobile { --c: #121826; } .fam-backend { --c: #6b4a2b; }
.fam-cloud { --c: #a5591a; } .fam-data { --c: #8a3b2a; } .fam-practice { --c: #3f5145; }
.dock { align-self: center; display: flex; gap: 8px; margin: 10px 0 10px; padding: 6px 10px; border-radius: 16px; background: rgba(255, 253, 248, .55); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 8px 20px -10px rgba(18, 24, 38, .35); }
.dock i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: .7rem; font-weight: 600; color: #fff; background: var(--c); transition: transform .3s var(--ease); }
.dock i:hover { transform: translateY(-6px) scale(1.15); }
.monitor-neck { width: 90px; height: 58px; background: linear-gradient(90deg, #b9b2a3, #d8d1c2 50%, #b9b2a3); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.monitor-foot { width: 210px; height: 12px; border-radius: 4px 4px 10px 10px; background: linear-gradient(180deg, #d8d1c2, #a8a091); box-shadow: 0 18px 24px -14px rgba(18, 24, 38, .5); }

.app-window { position: absolute; left: 50%; top: 52%; width: min(82%, 440px); transform: translate(-50%, -50%) scale(.9); opacity: 0; border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: 0 30px 60px -20px rgba(18, 24, 38, .45), 0 0 0 1px rgba(18, 24, 38, .08); transition: transform .35s var(--ease), opacity .3s; }
.app-window.open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.window-bar i, .win-close { width: 11px; height: 11px; border-radius: 50%; background: #d4cdbf; }
.win-close { background: #ec6a5e; }
.win-close:hover { box-shadow: 0 0 0 3px rgba(236, 106, 94, .3); }
.window-bar span { margin-left: auto; font-family: var(--mono); font-size: .58rem; color: var(--muted); }
.window-body { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px 20px 20px; }
.window-body .app-icon { width: 52px; height: 52px; font-size: 1.15rem; border-radius: 14px; }
.window-body h3 { font-size: 1.4rem; margin: 6px 0 8px; }
.window-body p { font-size: .82rem; color: var(--ink-2); line-height: 1.5; }
.win-meta { display: flex; gap: 16px; margin-top: 12px; font-family: var(--mono); font-size: .6rem; color: var(--accent); }

@media (max-width: 1024px) { .skills-layout { grid-template-columns: 1fr; } .skills-copy p { max-width: 60ch; } }
@media (max-width: 640px) {
  .monitor-screen { aspect-ratio: auto; }
  .icon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 4px; }
  .desktop-greeting { flex-direction: column; gap: 2px; }
  .menubar-left span { display: none; }
  .app-window { width: 90%; }
  .window-body { grid-template-columns: 1fr; }
}

/* =========================================================
   Work
   ========================================================= */
.project { position: relative; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--card); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-visual { position: relative; height: 300px; overflow: hidden; background: linear-gradient(180deg, var(--paper-2), var(--tan)); display: flex; justify-content: center; align-items: flex-end; }
.featured .project-visual { height: 400px; }
.project-top { position: absolute; top: 18px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: center; z-index: 3; }
.project-top .arrow { font-size: 1.2rem; transition: transform .4s var(--ease); }
.project:hover .project-top .arrow { transform: translate(3px, -3px); }
.orbit { position: absolute; width: 120%; height: 110%; top: 26%; left: -10%; border: 1px solid var(--line-2); border-radius: 50%; transform: rotate(-10deg); }
.orbit::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); top: 12%; left: 18%; animation: orbit-dot 12s linear infinite; offset-path: ellipse(50% 50% at 50% 50%); }
@keyframes orbit-dot { to { offset-distance: 100%; } }
.stamp { position: absolute; left: 6%; top: 40%; z-index: 2; font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; transform: rotate(-6deg); }
.stamp em { display: block; font-size: 1.8rem; letter-spacing: -.01em; color: var(--ink); }
.chip-label { position: absolute; left: 20px; bottom: 16px; z-index: 3; font-family: var(--mono); font-size: .52rem; letter-spacing: .16em; padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 253, 248, .6); }

/* phone mockup */
.mock-phone { position: relative; z-index: 2; width: 196px; height: 392px; padding: 8px; border-radius: 34px; background: #10141f; transform: translateY(80px) rotate(8deg); transition: transform .7s var(--ease); box-shadow: 0 30px 50px -20px rgba(18, 24, 38, .5); }
.project:hover .mock-phone { transform: translateY(54px) rotate(4deg); }
.mock-phone .screen { height: 100%; border-radius: 27px; background: #fbfaf7; padding: 12px 13px; display: flex; flex-direction: column; gap: 8px; font-size: .5rem; overflow: hidden; }
.mock-status { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .5rem; }
.mock-status i { width: 54px; height: 15px; border-radius: 10px; background: #10141f; }
.mock-status s { width: 18px; height: 6px; border-radius: 2px; background: #10141f; text-decoration: none; }

/* browser mockup */
.mock-browser { position: relative; z-index: 2; width: 82%; max-width: 560px; height: 250px; border-radius: 12px 12px 0 0; overflow: hidden; background: #fbfaf7; transform: translateY(30px); transition: transform .7s var(--ease); box-shadow: 0 30px 60px -24px rgba(18, 24, 38, .5); border: 1px solid rgba(18, 24, 38, .1); }
.featured .mock-browser { width: 70%; height: 320px; }
.project:hover .mock-browser { transform: translateY(14px); }
.browser-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d4cdbf; }
.browser-bar i:first-child { background: #ec6a5e; } .browser-bar i:nth-child(2) { background: #f4bf4f; } .browser-bar i:nth-child(3) { background: #61c554; }
.browser-bar span { flex: 1; margin: 0 30px 0 14px; padding: 3px 10px; border-radius: 6px; background: var(--white); font-family: var(--mono); font-size: .5rem; color: var(--muted); text-align: center; }
.browser-body { display: grid; grid-template-columns: 82px 1fr; height: calc(100% - 29px); }
.b-side { background: #f1ede4; padding: 12px 10px; display: flex; flex-direction: column; gap: 7px; }
.b-side b { font-size: .55rem; margin-bottom: 4px; }
.b-side i { height: 6px; border-radius: 3px; background: rgba(18, 24, 38, .12); }
.b-side i.on { background: var(--tile); opacity: .8; }
.b-main { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: .55rem; min-width: 0; }
.b-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.b-cards span { border-radius: 8px; padding: 8px; background: var(--paper-2); display: flex; flex-direction: column; gap: 3px; }
.b-cards b { font-size: .8rem; letter-spacing: -.02em; }
.b-cards small { font-size: .45rem; color: var(--muted); }

/* shared mock content */
.mock-label { font-family: var(--mono); font-size: .42rem; letter-spacing: .14em; color: var(--muted); }
.mock-title { font-size: .9rem; letter-spacing: -.02em; line-height: 1.05; }
.mock-sub { color: var(--muted); font-size: .5rem; }
.mock-tile { border-radius: 12px; padding: 10px 11px; background: var(--tile); color: #fff; display: flex; flex-direction: column; gap: 3px; }
.mock-tile span { font-family: var(--mono); font-size: .38rem; letter-spacing: .14em; opacity: .75; }
.mock-tile b { font-size: .78rem; letter-spacing: -.02em; line-height: 1.1; }
.mock-tile svg { width: 100%; height: 30px; margin-top: 2px; }
.mock-h { font-weight: 600; font-size: .6rem; margin-top: 2px; }
.mock-row { display: flex; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 9px; background: #f1ede4; }
.mock-row i { width: 16px; height: 16px; border-radius: 5px; background: var(--tile); opacity: .25; flex: none; }
.mock-row b { display: block; font-size: .52rem; }
.mock-row small { color: var(--muted); font-size: .42rem; }

.project-copy { padding: 26px 28px 30px; }
.project-title { display: flex; align-items: center; gap: 12px; }
.project-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: .95rem; flex: none; }
.project-title h3 { font-size: 1.55rem; }
.project-copy p { margin-top: 14px; color: var(--ink-2); font-size: .9rem; max-width: 72ch; }
.featured .project-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 48px; align-items: start; }
.featured .project-copy p { margin-top: 0; }
.featured .project-copy .tags { margin-top: 18px; grid-column: 1 / -1; }
.work-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.work-grid > .project { grid-column: span 3; }
.work-grid > .project:nth-child(n+3) { grid-column: span 2; }
.work-grid > .project:nth-child(n+3) .project-visual { height: 260px; }
.work-grid > .project:nth-child(n+3) .mock-browser { width: 88%; height: 210px; }
.work-grid .chip-label { display: none; }
.work-grid .mock-phone { width: 160px; height: 322px; padding: 7px; border-radius: 30px; transform: translateY(78px) rotate(6deg); }
.work-grid .mock-phone .screen { border-radius: 24px; }
.work-grid .project:hover .mock-phone { transform: translateY(66px) rotate(3deg); }
.work-grid > .project:nth-child(n+3) .mock-phone { width: 146px; height: 290px; transform: translateY(80px) rotate(6deg); }
.work-grid > .project:nth-child(n+3):hover .mock-phone { transform: translateY(68px) rotate(3deg); }
.work-grid .project:hover .mock-browser { transform: translateY(22px); }
.work-grid > .project:nth-child(n+3) .project-title h3 { font-size: 1.3rem; }
@media (max-width: 1024px) and (min-width: 861px) {
  .work-grid > .project, .work-grid > .project:nth-child(n+3) { grid-column: span 3; }
  .work-grid > .project:last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-grid > .project, .work-grid > .project:nth-child(n+3) { grid-column: auto; }
  .featured .project-copy { grid-template-columns: 1fr; }
  .featured .project-copy p { margin-top: 12px; }
  .featured .project-visual { height: 320px; }
  .featured .mock-browser { width: 88%; height: 260px; }
  .stamp { display: none; }
}
@media (max-width: 480px) { .browser-body { grid-template-columns: 1fr; } .b-side { display: none; } .project-copy { padding: 22px 20px 24px; } }

/* =========================================================
   Experience timeline
   ========================================================= */
.timeline { position: relative; }
.timeline-line { position: absolute; top: 10px; bottom: 10px; left: 230px; width: 1px; background: var(--line-2); }
.timeline-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: var(--accent); }
.tl-item { display: grid; grid-template-columns: 210px 40px minmax(0, 1fr); padding: 18px 0; }
.tl-when { padding-top: 22px; }
.tl-when small { font-size: .74rem; color: var(--ink-2); }
.tl-when b { display: block; margin-top: 6px; font-size: clamp(2.6rem, 4.6vw, 3.6rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.tl-dot { position: relative; }
.tl-dot::after { content: ""; position: absolute; top: 30px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--accent); transition: background .4s, transform .4s var(--ease); }
.tl-item.on .tl-dot::after { background: var(--accent); transform: scale(1.25); }
.tl-card { padding: 28px 32px 30px; border-radius: 22px; background: linear-gradient(135deg, var(--paper-2), #e7dfd0); border: 1px solid rgba(18, 24, 38, .06); transition: transform .5s var(--ease), box-shadow .5s; }
.tl-card:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.tl-card h3 { margin-top: 12px; font-size: 1.6rem; }
.tl-company { margin-top: 6px; font-size: .82rem; font-weight: 500; }
.tl-card p { margin-top: 16px; color: var(--ink-2); font-size: .9rem; max-width: 76ch; }
.edu-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.edu-card.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.edu-card.current .eyebrow { color: #e39a5a; display: inline-flex; align-items: center; gap: 8px; }
.edu-card.current p { color: rgba(243, 239, 230, .75); }
.edu-card h3 { font-size: 1.2rem; line-height: 1.15; }
.edu-card { padding: 28px 30px; border-radius: 22px; border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.edu-card p { color: var(--ink-2); font-size: .9rem; }
@media (max-width: 760px) {
  .timeline-line { left: 5px; }
  .tl-item { grid-template-columns: 1fr; padding: 14px 0 14px 28px; position: relative; }
  .tl-dot { position: absolute; left: 0; top: 0; width: 11px; height: 100%; }
  .tl-dot::after { top: 32px; left: 5.5px; }
  .tl-when { padding-top: 22px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; flex-direction: row-reverse; justify-content: flex-end; }
  .tl-when b { font-size: 2.4rem; margin: 0; }
  .tl-card { margin-top: 12px; padding: 22px; }
}

/* =========================================================
   Milestones
   ========================================================= */
.moments { background: var(--tan); margin: 0 clamp(0px, 1vw, 12px); border-radius: 36px; }
.moments .section-marker { border-color: rgba(18, 24, 38, .25); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 44px; }
.stat b { display: block; font-size: clamp(2.8rem, 5.4vw, 4.6rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.stat b.stat-text { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.03em; line-height: 1.05; padding-top: 6px; }
.stat > span { display: block; margin-top: 12px; font-size: .74rem; color: var(--ink-2); }
.moment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.moment { padding: 28px; border-radius: 22px; background: var(--paper); border: 1px solid rgba(18, 24, 38, .06); display: flex; flex-direction: column; gap: 14px; transition: transform .5s var(--ease), box-shadow .5s; }
.moment:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.moment-icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 12px; }
.moment-big { font-size: 2.4rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--accent); margin-bottom: 4px; }
.moment h3 { font-size: 1.35rem; }
.moment p { font-size: .84rem; color: var(--ink-2); }
@media (max-width: 860px) { .edu-row { grid-template-columns: 1fr; } .stats-row { grid-template-columns: 1fr 1fr; row-gap: 36px; } .moment-grid { grid-template-columns: 1fr; } .moments { border-radius: 28px; } }

/* =========================================================
   Contact
   ========================================================= */
.contact-head { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.contact-head h2 { font-size: clamp(2.8rem, 6.6vw, 5.6rem); }
.spark { width: clamp(44px, 6vw, 70px); color: var(--accent); flex: none; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; margin-top: 56px; }
.contact-lead { color: var(--ink-2); max-width: 42ch; }
.contact-email { display: inline-flex; gap: 10px; margin-top: 30px; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 500; letter-spacing: -.02em; transition: color .3s; }
.contact-email:hover { color: var(--accent); }
.contact-phone { display: block; margin-top: 12px; font-size: 1.1rem; }
.contact-place { margin-top: 8px; font-size: .8rem; color: var(--muted); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; align-content: start; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.contact-form label > span { font-size: .74rem; font-weight: 600; }
.contact-form small { font-weight: 400; color: var(--muted); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { font: inherit; font-size: .92rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 8px 0 12px; resize: vertical; transition: border-color .3s; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #a3a5ab; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .invalid { border-color: #c2410c; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-note { font-size: .74rem; color: var(--muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 480px) { .contact-form { grid-template-columns: 1fr; } }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { padding: 28px 0 36px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-2); font-size: .8rem; }
.to-top:hover { color: var(--accent); }

/* =========================================================
   Floating avatar guide
   ========================================================= */
.guide-dock { position: fixed; right: 20px; bottom: 20px; z-index: 55; width: 118px; height: 150px; border-radius: 26px; background: linear-gradient(170deg, var(--tan), var(--paper-2)); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 10px; opacity: 0; transform: translateY(30px) scale(.9); pointer-events: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.guide-dock.show { opacity: 1; transform: none; pointer-events: auto; }
.dock-img { position: absolute; left: 50%; bottom: 34px; width: 100px; height: auto; margin-left: -50px; animation: float 5.5s ease-in-out infinite; }
.dock-hello { position: relative; z-index: 2; margin: 0; font-size: .64rem; padding: 6px 10px; }
.dock-close { position: absolute; top: -8px; right: -8px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .9rem; line-height: 1; display: grid; place-items: center; }
.dock-bubble { right: 100%; bottom: 60%; margin-right: 12px; border-radius: 18px 18px 4px 18px; }
@media (max-width: 480px) { .guide-dock { right: 12px; bottom: 12px; transform-origin: bottom right; scale: .85; } .dock-bubble { max-width: 200px; font-size: 1rem; } }
