@font-face { font-family: 'TWK Lausanne'; src: url('/fonts/TWKLausanne-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'TWK Lausanne'; src: url('/fonts/TWKLausanne-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

@view-transition { navigation: auto; }

:root {
  --canvas: #eef0f3;
  --tile: #ffffff;
  --ink: #15161a;
  --muted: #7b7f88;
  --hair: #e1e4e9;
  --blue: #3a5cf5;
  --gap: 14px;
  --r-tile: 26px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: 'TWK Lausanne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--canvas); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
::selection { color: #fff; background: var(--blue); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 50; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* ---------- Top bar ---------- */
.bar {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px;
}
.me { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.me-mark {
  width: 30px; height: 30px; border-radius: 10px;
  background: radial-gradient(120% 120% at 30% 20%, #6f8bff 0%, var(--blue) 45%, #1d2fb8 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.clock { color: var(--muted); font-variant-numeric: tabular-nums; }
.clock b { font-weight: 400; color: var(--ink); }

/* ---------- Work list ---------- */
.page { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.intro { padding: clamp(72px, 12vw, 168px) 4px clamp(40px, 5.5vw, 64px); }
.intro h1 { display: flex; align-items: center; gap: .26em; margin: 0; font-size: clamp(40px, 5.4vw, 72px); line-height: .95; font-weight: 500; letter-spacing: -.055em; }
.avatar {
  position: relative; flex: none; width: .92em; height: .92em; border-radius: 50%; overflow: hidden;
  background: #dfe3ea; box-shadow: inset 0 0 0 1px rgba(20,22,30,.06);
  display: grid; place-items: center; color: #a3a9b5;
}
.avatar svg { width: 46%; height: 46%; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro p { margin: 26px 0 0; max-width: 58ch; font-size: clamp(18px, 1.8vw, 23px); line-height: 1.45; color: var(--muted); letter-spacing: -.01em; }
.intro p strong { display: block; color: var(--ink); font-weight: 400; }

.work { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.row {
  position: relative; display: grid; align-items: center;
  grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  column-gap: clamp(18px, 2.6vw, 36px);
  min-height: clamp(116px, 13vw, 150px); padding: 20px clamp(24px, 3vw, 40px) 20px clamp(20px, 2.4vw, 28px);
  border-radius: 36px; overflow: hidden; isolation: isolate; text-align: left;
  background: var(--tile); color: var(--ink);
  transition: transform .9s var(--ease), box-shadow .9s var(--ease);
}
/* hover: a soft sheen sweeps across, the icon pops like an app opening, the title and chevron lean forward */
.row::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%);
  transform: translateX(-110%);
}
a.row:hover::after { transform: translateX(110%); transition: transform 1.6s cubic-bezier(.45, 0, .2, 1); }
a.row:hover { transform: scale(1.012); box-shadow: 0 24px 50px -28px rgba(20, 22, 30, .45); }
a.row:active { transform: scale(.992); }
.row-icon { width: clamp(60px, 6.4vw, 80px); aspect-ratio: 1; border-radius: 23%; overflow: hidden; transition: transform .9s cubic-bezier(.22, 1.2, .36, 1); }
a.row:hover .row-icon { transform: scale(1.16); }
.row-icon img { width: 100%; height: 100%; }
.row-title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; transition: transform .8s var(--ease); }
a.row:hover .row-title { transform: translateX(10px); }
.row-role { font-size: 15px; line-height: 1.35; opacity: .62; transition: opacity .8s var(--ease), transform .8s var(--ease); }
a.row:hover .row-role { opacity: .95; transform: translateX(6px); }
.row-stat strong { display: block; font-size: clamp(30px, 3.8vw, 52px); font-weight: 500; letter-spacing: -.06em; line-height: .9; }
.row-stat span { display: block; margin-top: 6px; font-size: 14px; opacity: .6; }
.row-go { display: grid; place-items: center; width: 28px; height: 28px; transition: transform .8s var(--ease); }
.row-go svg { width: 22px; height: 22px; }
a.row:hover .row-go { transform: translateX(8px); }
.chip { justify-self: start; display: inline-flex; align-items: center; gap: .5em; height: 34px; padding: 0 14px; border-radius: 99px; font-size: 14px; white-space: nowrap; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.r-quittr { background: #000; color: #fff; view-transition-name: quittr; }
.r-quittr .row-icon { view-transition-name: quittr-icon; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.r-vybes { background: #ece6ff; color: #2c2442; view-transition-name: vybes; }
.r-soar { background: #dcebff; color: #0d2a52; view-transition-name: soar; }
.r-vybes .chip { background: rgba(255,255,255,.7); color: #4a3b78; }
.r-soar .chip { background: rgba(255,255,255,.75); color: #1659e0; }
.r-soar .chip .dot { animation: live 2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(22,89,224,.5); } 80%, 100% { box-shadow: 0 0 0 7px rgba(22,89,224,0); } }
.r-vybes::after, .r-soar::after { background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); }
.v-icon { background: linear-gradient(145deg, #a78bff, #6d4dff); display: grid; place-items: center; view-transition-name: vybes-icon; }
.v-icon span { width: 46%; height: 46%; border-radius: 50%; border: 3px solid rgba(255,255,255,.92); border-right-color: transparent; transform: rotate(-30deg); }
.s-icon { background: linear-gradient(160deg, #3f8cff, #1659e0); display: grid; place-items: center; view-transition-name: soar-icon; }
.s-icon svg { width: 56%; height: 56%; }

.r-skel { background: transparent; border: 1px dashed #c9ced7; color: var(--muted); }
.r-skel::after { display: none; }
.sk {
  background: linear-gradient(100deg, #dde1e8 35%, #f1f3f6 50%, #dde1e8 65%);
  background-size: 300% 100%; animation: shimmer 2.2s ease-in-out infinite; border-radius: 99px;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.r-skel .row-icon { border-radius: 23%; }
.sk-lines { display: grid; gap: 10px; }
.sk-lines i { display: block; height: 14px; width: 170px; }
.sk-lines i + i { width: 100px; height: 11px; }
.r-skel .row-note { font-size: 15px; grid-column: 4 / 6; }

/* ---------- Footer ---------- */
.foot {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto; padding: 40px 4px 44px;
  display: flex; justify-content: space-between; gap: 16px;
  color: var(--muted); font-size: 13px;
}

/* ---------- Location: flag, city, live time ---------- */
.loc { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.flag {
  position: relative; flex: none; width: 24px; height: 16px; border-radius: 4px; overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.18), 0 2px 6px -2px rgba(1,33,105,.45);
  transform: rotate(-4deg); transition: transform .7s cubic-bezier(.22, 1.4, .36, 1);
}
.flag svg { display: block; width: 100%; height: 100%; }
/* soft fabric light across the flag, plus a gloss sweep on hover */
.flag::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,.28), transparent 40%, rgba(0,0,0,.12) 70%, rgba(255,255,255,.12));
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25);
  border-radius: inherit;
}
.flag::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%);
  transform: translateX(-120%);
}
.loc:hover .flag { transform: rotate(0deg) scale(1.12); }
.loc:hover .flag::after { transform: translateX(120%); transition: transform .9s ease; }
.loc-time { font-variant-numeric: tabular-nums; opacity: .7; }
.loc-time::before { content: '·'; margin-right: 9px; }

/* ---------- Contact ---------- */
.contact-tab {
  position: fixed; top: 18px; right: max(16px, calc((100vw - 1080px) / 2)); z-index: 40;
  display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px;
  border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(255,255,255,.78); color: var(--ink); font-size: 14px; font-weight: 500;
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: 0 0 0 1px rgba(20,22,30,.06), 0 10px 30px -14px rgba(20,22,30,.35);
  transition: transform .5s var(--ease), background .3s;
}
.contact-tab:hover { transform: translateY(-1px) scale(1.03); background: #fff; }
.contact-tab .dot { width: 7px; height: 7px; border-radius: 50%; background: #1fbf6a; animation: avail 2.2s ease-out infinite; }
@keyframes avail { 0% { box-shadow: 0 0 0 0 rgba(31,191,106,.5); } 80%, 100% { box-shadow: 0 0 0 7px rgba(31,191,106,0); } }
.site-foot [data-contact] { font-weight: 500; }

.contact {
  width: min(440px, calc(100% - 24px)); max-height: calc(100% - 24px); margin: auto; padding: 30px 28px 24px;
  border: 0; border-radius: 30px; background: #fff; color: #15161a;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.5);
  font-family: 'TWK Lausanne', -apple-system, BlinkMacSystemFont, sans-serif;
}
.contact[open] { animation: sheet-in .5s cubic-bezier(.2, .9, .25, 1); }
.contact::backdrop { background: rgba(12,13,18,.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade-in .4s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
.contact h2 { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -.045em; }
.contact-sub { margin: 8px 0 22px; color: #7b7f88; font-size: 15px; line-height: 1.45; }
.contact-x { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #f0f2f5; cursor: pointer; }
.contact-x svg { width: 16px; height: 16px; }
.contact-form { display: grid; gap: 10px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form label span { font-size: 13px; color: #7b7f88; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: #f2f4f7; color: inherit;
  font: inherit; font-size: 16px; resize: none; outline: none; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background .2s;
}
.contact-form input:focus, .contact-form textarea:focus { background: #fff; box-shadow: inset 0 0 0 1.5px #15161a; }
.contact-send {
  margin-top: 4px; height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 99px; background: #15161a; color: #fff; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: transform .4s var(--ease);
}
.contact-send svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.contact-send:hover svg { transform: translateX(4px); }
.contact-send:active { transform: scale(.98); }
.contact-links { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid #eceef2; display: grid; gap: 4px; }
.contact-links li { display: flex; align-items: center; gap: 8px; }
.contact-links a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 14px; transition: background .2s; }
.contact-links a:hover { background: #f4f5f8; }
.ci { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.ci svg { width: 19px; height: 19px; }
.ci-mail { background: #3a5cf5; }
.ci-x { background: #000; }
.ci-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.cl-text { min-width: 0; display: grid; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-text b { font-weight: 500; font-size: 13px; color: #7b7f88; }
.contact-copy { flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 99px; background: #f0f2f5; font-size: 13px; cursor: pointer; }

/* ---------- View transitions ---------- */
/* Page change: the tapped row glides and grows into the page over ~1s on a soft ease-in-out,
   its content cross-fades without stretching, and the rest of the page dissolves around it. */
::view-transition-group(*) { animation-duration: 1s; animation-timing-function: cubic-bezier(.65, 0, .2, 1); }
::view-transition-old(*), ::view-transition-new(*) { height: 100%; object-fit: cover; object-position: top left; }
::view-transition-old(quittr), ::view-transition-old(vybes), ::view-transition-old(soar) { animation: vt-fade-out .55s cubic-bezier(.4, 0, .2, 1) both; }
::view-transition-new(quittr), ::view-transition-new(vybes), ::view-transition-new(soar) { animation: vt-fade-in .7s cubic-bezier(.4, 0, .2, 1) .3s both; }
::view-transition-old(root) { animation: vt-page-out .5s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-page-in .7s cubic-bezier(0, 0, .2, 1) .35s both; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }
@keyframes vt-page-out { to { opacity: 0; transform: scale(.985); filter: blur(4px); } }
@keyframes vt-page-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .row { grid-template-columns: auto 1fr auto; grid-template-areas: "icon title go" "icon role go" "stat stat stat"; row-gap: 4px; border-radius: 28px; padding: 20px; min-height: 0; }
  .row-icon { grid-area: icon; margin-right: 2px; }
  .row-title { grid-area: title; align-self: end; }
  .row-role { grid-area: role; align-self: start; }
  .row-go { grid-area: go; }
  .row-stat, .row > .chip { grid-area: stat; margin-top: 16px; }
  .row-stat strong { font-size: 44px; }
  .r-skel .sk-lines { grid-area: title; align-self: center; }
  .r-skel .row-role { display: none; }
  .r-skel .row-note { grid-area: stat; margin-top: 14px; }
}
@media (max-width: 520px) {
  :root { --gap: 10px; }
  .bar, .page, .foot { width: calc(100% - 24px); }
  .foot { flex-direction: column; gap: 6px; }
  .intro { padding-top: 104px; }
  .contact-tab { top: 14px; right: 12px; height: 40px; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}
