:root{color-scheme:light;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
body{margin:0;font:14px system-ui,sans-serif}
img{max-width:100%}
[hidden]{display:none!important}

/* Layout: left-aligned editorial column; the work section is a tabbed browser window; experience is a dated timeline. */
:root {
  --bg: #F2F5F5;
  --surface: #FFFFFF;
  --fg: #10232A;
  --muted: #51666D;
  --line: #D5DEE0;
  --accent: #0A6B5A;
  --accent-ink: #FFFFFF;
  --accent-soft: #DDF0EA;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1A1E; --surface: #12262B; --fg: #E6F0EF; --muted: #9DB3B6;
    --line: #23393E; --accent: #5FD4B4; --accent-ink: #06201A; --accent-soft: #14342F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1A1E; --surface: #12262B; --fg: #E6F0EF; --muted: #9DB3B6;
  --line: #23393E; --accent: #5FD4B4; --accent-ink: #06201A; --accent-soft: #14342F;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  padding-block: 0 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 1080px; margin: 0 auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.1; }
p { margin: 0; }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}

/* Top bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.mono-badge {
  width: 36px; height: 36px; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: 0.02em;
}
nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
nav a { text-decoration: none; color: var(--muted); padding: 4px 0; }
nav a:hover { color: var(--fg); }
.theme-btn {
  font: inherit; font-size: 13px; font-family: var(--font-mono); background: transparent; color: var(--fg);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer;
}
.theme-btn:hover { border-color: var(--accent); }

/* Hero */
.hero { padding-block: 56px 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 28px 56px; align-items: start; }
.hero > * { grid-column: 1; min-width: 0; }
.hero > .hero-photo { grid-column: 2; grid-row: 1 / span 5; margin: 0; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.hero h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 800; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 62ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 12px 20px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
}
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost:hover { border-color: var(--accent); filter: none; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 22px; }
.fact { display: grid; gap: 2px; min-width: 0; }
.fact b { font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.fact span { font-size: 14px; color: var(--muted); }

/* Sections */
section { padding-block: 56px; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.sec-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 70ch; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -0.015em; }
.sec-head p { color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
.about-grid p + p { margin-top: 16px; }
.roles { display: grid; gap: 10px; align-content: start; }
.roles h3 { font-size: 18px; font-weight: 600; font-family: var(--font-body); }
.role-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.role-list li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-weight: 500; }

/* Work: browser window */
.browser { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.tabs { display: flex; gap: 2px; padding: 10px 10px 0; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab {
  font: inherit; font-family: var(--font-mono); font-size: 13px; color: var(--muted); background: transparent;
  border: 1px solid transparent; border-bottom: none; border-radius: 8px 8px 0 0; padding: 9px 16px; cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--fg); border-color: var(--line); position: relative; top: 1px; }
.urlbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.urlbar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.urlbar span { min-width: 0; overflow-wrap: anywhere; }
.panel { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); gap: 32px; padding: 28px; }
.panel h3 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.panel .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.tag { font-family: var(--font-mono); font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.panel p { color: var(--muted); }
.visit { display: inline-flex; gap: 6px; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.sketch { border: 1px dashed var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 10px; align-content: start; background: var(--bg); min-width: 0; }
.sk-nav { height: 10px; width: 55%; border-radius: 5px; background: var(--line); }
.sk-hero { height: 86px; border-radius: 8px; background: var(--accent-soft); display: grid; align-content: center; gap: 8px; padding: 0 16px; }
.sk-hero i { display: block; height: 9px; border-radius: 5px; background: var(--accent); opacity: 0.85; }
.sk-hero i:first-child { width: 60%; }
.sk-hero i:last-child { width: 36%; opacity: 0.45; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sk-grid b { height: 54px; border-radius: 6px; background: var(--line); display: block; }
.sketch small { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

.shotwrap { display: grid; gap: 8px; min-width: 0; align-content: start; }
.shotwrap small { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.shot { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); min-width: 0; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--surface); border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.shot-bar span { margin-left: 8px; flex: 1; min-width: 0; padding: 2px 8px; border-radius: 999px; background: var(--bg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-img { display: block; width: 100%; height: auto; }
.shot-body { padding: 12px; display: grid; gap: 10px; }
.m-nav { display: flex; align-items: center; gap: 8px; }
.m-nav .logo { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); flex: none; }
.m-nav .search { flex: 1; height: 14px; border-radius: 7px; background: var(--line); }
.m-nav .pill { width: 34px; height: 14px; border-radius: 7px; background: var(--accent-soft); }
.m-hero { border-radius: 8px; background: var(--accent-soft); padding: 16px; display: grid; gap: 7px; }
.m-hero i { display: block; height: 9px; border-radius: 5px; background: var(--accent); width: 62%; }
.m-hero i + i { width: 40%; opacity: 0.55; }
.m-hero .btns { display: flex; gap: 6px; margin-top: 4px; }
.m-hero em { display: block; width: 64px; height: 18px; border-radius: 5px; background: var(--accent); }
.m-hero em + em { background: transparent; border: 1px solid var(--accent); }
.m-hero.big { padding: 26px 16px; }
.m-chips { display: flex; gap: 6px; }
.m-chips u { height: 14px; width: 46px; border-radius: 7px; background: var(--line); }
.m-strip { display: flex; gap: 8px; }
.m-strip b { flex: 1; height: 22px; border-radius: 5px; background: var(--surface); border: 1px solid var(--line); }
.m-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 8px; }
.m-grid div { display: grid; gap: 5px; padding: 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.m-grid s { height: 44px; border-radius: 4px; background: var(--accent-soft); display: block; }
.m-grid.tall s { height: 70px; }
.m-grid.round s { height: 30px; width: 30px; border-radius: 50%; }
.m-grid i { height: 6px; border-radius: 3px; background: var(--line); display: block; }
.m-grid b { height: 8px; width: 50%; border-radius: 4px; background: var(--accent); display: block; }

/* WhatsApp contact */
.wa { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: grid; justify-items: end; gap: 12px; }
.wa-fab { display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; background: #1FA855; color: #FFFFFF; font: inherit; font-weight: 600; font-size: 15px; padding: 12px 18px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }
.wa-fab:hover { filter: brightness(1.08); }
.wa-fab svg { width: 24px; height: 24px; flex: none; }
.wa-card { width: min(300px, calc(100vw - 32px)); background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25); padding: 16px; display: grid; gap: 12px; }
.wa-head { display: flex; align-items: center; gap: 10px; }
.wa-head div { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.wa-head small { color: var(--muted); font-size: 13px; }
.wa-x { font: inherit; font-size: 22px; line-height: 1; background: transparent; color: var(--muted); border: none; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.wa-x:hover { color: var(--fg); }
.wa-msg { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.wa-go { display: block; text-align: center; text-decoration: none; background: #1FA855; color: #FFFFFF; font-weight: 600; padding: 11px; border-radius: 8px; }
.wa-go:hover { filter: brightness(1.08); }

/* Experience */
.timeline { display: grid; }
.job { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 32px; padding-block: 26px; border-top: 1px solid var(--line); }
.job:first-child { border-top: none; padding-top: 0; }
.job .when { font-family: var(--font-mono); font-size: 13.5px; color: var(--muted); padding-top: 5px; }
.job .when .now { color: var(--accent); font-weight: 500; }
.job h3 { font-size: 22px; font-weight: 800; }
.job .org { color: var(--accent); font-weight: 600; margin: 2px 0 10px; }
.job ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }

/* Skills */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 32px; }
.skill-grid h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--muted); letter-spacing: 0.04em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; font-size: 15px; font-weight: 500; }

/* Education, project */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.edu { display: grid; gap: 18px; }
.edu div { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--line); }
.edu b { font-family: var(--font-display); font-size: 19px; }
.edu span { color: var(--muted); font-size: 15px; }
.edu .mono { font-size: 13px; color: var(--accent); }
.project { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 26px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.project h3 { font-size: 24px; font-weight: 800; }
.project p { color: var(--muted); }
.feat { display: flex; flex-wrap: wrap; gap: 8px; }
.certs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.langs { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; }
.langs div { display: grid; }
.langs b { font-weight: 600; }
.langs span { font-size: 14px; color: var(--muted); }
.sub { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; margin-top: 28px; margin-bottom: 4px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.contact h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -0.02em; }
.contact .lede { color: var(--muted); margin-top: 14px; max-width: 46ch; }
.rows { display: grid; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.row:first-child { border-top: none; }
.row .k { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); width: 84px; flex: none; }
.row .v { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; font-weight: 500; user-select: all; }
.row a.v { text-decoration: none; user-select: auto; }
.row a.v:hover { color: var(--accent); }
.copy { font: inherit; font-size: 13px; font-family: var(--font-mono); background: transparent; color: var(--accent); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.copy:hover { border-color: var(--accent); }
footer { padding-top: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 800px) {
  body { font-size: 16px; }
  .about-grid, .two-col, .contact, .panel { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 20px; gap: 24px; }
  .job { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 32px 48px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero > .hero-photo { grid-column: 1; grid-row: auto; order: -1; width: 150px; }
  section { padding-block: 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ===== 3D icons, depth and motion ===== */
body { overflow-x: clip; }
.ico {
  --a: #34D3B3; --b: #0E8A73; --d: #07574A; --dep: 5px;
  position: relative; width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  border-radius: 14px; background: linear-gradient(150deg, var(--a), var(--b));
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), inset 0 -3px 5px rgba(0,0,0,.18), 0 var(--dep) 0 var(--d), 0 12px 16px -6px rgba(0,0,0,.38);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.ico::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 80% at 22% 0%, rgba(255,255,255,.5), transparent 55%); }
.ico svg { position: relative; z-index: 1; width: 54%; height: 54%; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 1px rgba(0,0,0,.35)); }
.ico.xs { width: 32px; height: 32px; border-radius: 10px; --dep: 3px; }
.ico.sm { width: 42px; height: 42px; border-radius: 12px; --dep: 4px; }
.ico.lg { width: 60px; height: 60px; border-radius: 18px; --dep: 6px; }
.h-teal { --a: #34D3B3; --b: #0E8A73; --d: #07574A; }
.h-blue { --a: #6AA5FF; --b: #2D62D6; --d: #1B3E8F; }
.h-amber { --a: #FFC857; --b: #E08A12; --d: #9A5A06; }
.h-coral { --a: #FF8A7A; --b: #DE4B3F; --d: #932B22; }
.h-violet { --a: #A592FF; --b: #6247DB; --d: #3E2B98; }
.ico:hover, .fact:hover .ico, .job:hover .ico, .row:hover .ico, .skill-grid > div:hover .ico, .role-list li:hover .ico, .project:hover .ico, .mq:hover .ico {
  transform: translateY(-4px) rotate(-6deg) scale(1.06);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), inset 0 -3px 5px rgba(0,0,0,.18), 0 calc(var(--dep) + 3px) 0 var(--d), 0 18px 20px -8px rgba(0,0,0,.42);
}

.mono-badge { background: linear-gradient(150deg, #34D3B3, #0E8A73); color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.3); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.5), 0 4px 0 #07574A, 0 10px 14px -6px rgba(0,0,0,.35); }

/* Buttons: pressable */
.btn { --edge: color-mix(in srgb, var(--accent) 55%, #000); box-shadow: 0 4px 0 var(--edge); transition: transform .15s, box-shadow .15s, filter .15s; }
.btn.ghost { --edge: var(--line); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--edge); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }

/* Hero photo stage */
.pstage { position: relative; perspective: 900px; }
.pstage::before { content: ""; position: absolute; inset: -14% -18%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 28%, transparent), transparent); animation: glow 6s ease-in-out infinite; }
.psway { transform-style: preserve-3d; animation: sway 9s ease-in-out infinite; }
.pcard { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .2s ease-out; }
.pcard::before { content: ""; position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(150deg, var(--accent), #2D62D6); opacity: .9; transform: translate3d(14px, 16px, -26px); }
.hero-photo img { position: relative; box-shadow: 0 24px 40px -18px rgba(0,0,0,.45); }
.ft { position: absolute; z-index: 2; animation: float 5s ease-in-out infinite; }
.ft .ico { width: var(--fs, 58px); height: var(--fs, 58px); border-radius: 18px; --dep: 6px; }
.ft.a { left: -30px; top: 9%; }
.ft.b { right: -28px; top: 24%; animation-delay: -1.2s; }
.ft.c { left: -22px; bottom: 20%; animation-delay: -2.4s; }
.ft.d { right: -32px; bottom: 7%; animation-delay: -3.6s; }

/* Headline accent word */
.hero h1 em { background: linear-gradient(90deg, var(--accent), #3F86F2, var(--accent)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite; }

/* Facts, roles, skills, jobs, contact */
.fact { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 0; align-items: center; }
.fact .ico { grid-row: 1 / span 2; }
.role-list li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
.cat { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cat h3 { margin: 0 !important; }
.skill-grid .cat + .chips { margin-top: 0; }
.job .when { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 0; }
.row .k { display: flex; align-items: center; gap: 10px; width: 128px; }
.project > .ico { margin-bottom: 4px; }
.chip { transition: transform .2s, box-shadow .2s, border-color .2s; }
.chip:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 3px 0 var(--accent), 0 10px 14px -8px rgba(0,0,0,.3); }

/* Tilt cards */
[data-tilt] { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .2s ease-out, box-shadow .25s; }
[data-tilt]:hover { box-shadow: 0 20px 32px -16px rgba(0,0,0,.38); }

/* Skills ticker */
.marquee { overflow: hidden; border-top: 1px solid var(--line); padding-block: 22px 26px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 14px; width: max-content; animation: scroll 44s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.mq { display: flex; align-items: center; gap: 10px; padding: 7px 18px 9px 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; }

/* WhatsApp button */
.wa-fab { position: relative; box-shadow: 0 4px 0 #11783A, 0 12px 20px rgba(0,0,0,.3); transition: transform .15s, box-shadow .15s, filter .15s; }
.wa-fab:active { transform: translateY(3px); box-shadow: 0 1px 0 #11783A; }
.wa-fab::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px; background: #1FA855; animation: ping 2.6s ease-out infinite; }
.wa-go { box-shadow: 0 3px 0 #11783A; }

.wa-card[hidden] { display: none; }

/* Scroll progress bar */
.progress { display: none; }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes popin { from { opacity: 0; transform: perspective(900px) rotateY(-28deg) translateX(40px) scale(.92); } }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 70px); } 50% { transform: translate3d(0, -12px, 70px); } }
@keyframes sway { 0%, 100% { transform: rotateY(-5deg) rotateX(1deg); } 50% { transform: rotateY(5deg) rotateX(-1deg); } }
@keyframes glow { 0%, 100% { opacity: .55; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes shine { to { background-position: 200% center; } }
@keyframes scroll { to { transform: translateX(calc(-50% - 7px)); } }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes reveal { from { opacity: 0; translate: 0 34px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-photo { animation: popin 1s cubic-bezier(.2, .8, .2, 1) both; }
.hero > :nth-child(n+2) { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero > :nth-child(2) { animation-delay: .05s; }
.hero > :nth-child(3) { animation-delay: .15s; }
.hero > :nth-child(4) { animation-delay: .25s; }
.hero > :nth-child(5) { animation-delay: .35s; }
.hero > :nth-child(6) { animation-delay: .45s; }

@supports (animation-timeline: view()) {
  .sec-head, .job, .skill-grid > div, .browser, .rows, .roles, .two-col > div, .about-grid > div > p {
    animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%;
  }
  .progress { display: block; position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; z-index: 40; background: linear-gradient(90deg, var(--accent), #3F86F2); transform-origin: 0 50%; animation: grow linear both; animation-timeline: scroll(root block); }
}

@media (max-width: 800px) {
  .hero > .hero-photo { width: 168px; }
  .ft .ico { --fs: 38px; border-radius: 12px; --dep: 4px; }
  .ft.a { left: -10px; } .ft.b { right: -12px; } .ft.c { left: -8px; } .ft.d { right: -12px; }
  .pcard::before { transform: translate3d(8px, 10px, -20px); }
  .job .when { flex-direction: row; align-items: center; }
  .row .k { width: 118px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Services, forms and inner pages ===== */
.ico.xl { width: 76px; height: 76px; border-radius: 22px; --dep: 7px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.svc { display: grid; gap: 10px; align-content: start; padding: 22px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; text-decoration: none; color: inherit; min-width: 0; }
.svc h3 { font-size: 22px; font-weight: 800; margin-top: 6px; }
.svc p { color: var(--muted); font-size: 15px; }
.svc .more { color: var(--accent); font-weight: 600; font-size: 15px; }
.svc:hover .more { text-decoration: underline; }
.svc:hover .ico { transform: translateY(-4px) rotate(-6deg) scale(1.06); }
.cform { margin-top: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 26px; display: grid; gap: 18px; }
.cform h3 { font-size: 24px; font-weight: 800; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fgrid label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; min-width: 0; }
.fgrid .full { grid-column: 1 / -1; }
.fgrid input, .fgrid select, .fgrid textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; min-width: 0; }
.fgrid textarea { resize: vertical; min-height: 120px; }
.fgrid input:focus-visible, .fgrid select:focus-visible, .fgrid textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.factions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn.wabtn { background: #1FA855; border-color: #1FA855; color: #fff; --edge: #11783A; }
.fnote { color: var(--muted); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.crumbs { font-family: var(--font-mono); font-size: 13px; color: var(--muted); padding-top: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.s-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; padding-block: 36px 60px; align-items: start; }
.s-hero h1 { font-size: clamp(34px, 5.6vw, 62px); font-weight: 800; letter-spacing: -0.02em; max-width: 18ch; }
.s-hero .lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 60ch; margin-top: 18px; }
.s-hero .cta-row { margin-top: 26px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.feat { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; min-width: 0; }
.feat > div { min-width: 0; }
.feat h3 { font-family: var(--font-body); font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.feat p { color: var(--muted); font-size: 15px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 14px; border-top: 2px solid var(--line); display: grid; gap: 4px; align-content: start; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 500; }
.steps b { font-family: var(--font-display); font-size: 20px; }
.steps span { color: var(--muted); font-size: 15px; }
details.faq { border-top: 1px solid var(--line); }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 18px 0; list-style-position: outside; }
details.faq p { color: var(--muted); padding-bottom: 18px; max-width: 70ch; }
.faq-list { max-width: 820px; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 32px; border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; }
.cta-band p { color: var(--muted); margin-top: 6px; }
.rel { display: flex; flex-wrap: wrap; gap: 12px; }
.rel a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 10px 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; text-decoration: none; font-weight: 600; }
.rel a:hover { border-color: var(--accent); }
@keyframes reveal { from { opacity: .3; translate: 0 34px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }
@media (max-width: 800px) {
  .s-hero {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .cform { padding: 20px; }
  .cta-band { padding: 24px; }
}
