/* =========================================================
   Chitigh Poudel — Portfolio
   Plain CSS, no build step.
   ========================================================= */

:root {
  --white: #ffffff;
  --off: #f4f4f2;
  --dark: #1c1d20;
  --darker: #141517;
  --grey: #999d9e;
  --line: rgba(28, 29, 32, 0.15);
  --line-dark: rgba(255, 255, 255, 0.2);
  --blue: #455ce9;
  --blue-dark: #334bd3;

  --gutter: clamp(16px, 5vw, 80px);
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --fs-hero: clamp(44px, 11.5vw, 210px);
  --fs-xl: clamp(40px, 7vw, 110px);
  --fs-lg: clamp(26px, 3.2vw, 44px);
  --fs-md: clamp(18px, 1.5vw, 22px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading, body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.container { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); }
.center { display: flex; justify-content: center; }
.label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 28px;
}
.label--dim { color: rgba(255, 255, 255, 0.45); margin-bottom: 10px; }

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0;
  z-index: 100;
  background: var(--darker);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.9s var(--ease);
}
/* curved bottom edge that shows while the loader slides up */
.loader::after {
  content: "";
  position: absolute; left: -10%; right: -10%; top: 100%;
  height: 0;
  background: var(--darker);
  border-radius: 0 0 50% 50%;
  transition: height 0.9s var(--ease);
}
.loader.is-done { transform: translateY(-100%); pointer-events: none; }
.loader.is-done::after { height: 22vh; }
.loader.is-gone { display: none; }
.loader__word {
  color: var(--white);
  font-size: clamp(38px, 5vw, 58px);
  display: flex; align-items: center; gap: 14px;
  opacity: 0; transform: translateY(20px);
  animation: loaderIn 0.8s var(--ease-out) 0.15s forwards;
}
.loader__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--white); }
@keyframes loaderIn { to { opacity: 1; transform: none; } }

/* ---------- Nav ---------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px var(--gutter);
  color: var(--white);
}
.logo { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.logo__copy { display: inline-block; transition: transform 0.6s var(--ease); }
.logo__mask { overflow: hidden; display: inline-flex; width: var(--logo-w, 8.4em); white-space: nowrap; }
.logo__slide { display: inline-flex; gap: 0.3em; transition: transform 0.6s var(--ease); }
.logo:hover .logo__copy { transform: rotate(360deg); }
.logo:hover .logo__slide { transform: translateX(calc(-1 * var(--logo-shift, 4.1em))); }

.nav__links { display: flex; gap: 8px; }
.nav__link { position: relative; padding: 12px 14px; display: inline-block; }
.nav__link::after {
  content: "";
  position: absolute; left: 50%; bottom: 2px;
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s var(--ease);
}
.nav__link:hover::after { transform: translateX(-50%) scale(1); }
.nav__link span { display: inline-block; }

/* ---------- Floating menu button ---------- */
.menu-btn {
  position: fixed; top: 24px; right: var(--gutter);
  z-index: 60;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transform: scale(0);
  transition: transform 0.4s var(--ease), background 0.3s;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}
.menu-btn.is-visible, body.menu-open .menu-btn { transform: scale(1); }
.menu-btn:hover { background: var(--blue); }
.menu-btn__inner { display: flex; flex-direction: column; gap: 8px; width: 26px; pointer-events: none; }
.menu-btn__bar { height: 1.5px; background: var(--white); transition: transform 0.4s var(--ease); }
body.menu-open .menu-btn { background: var(--blue); }
body.menu-open .menu-btn__bar:first-child { transform: translateY(4.75px) rotate(45deg); }
body.menu-open .menu-btn__bar:last-child { transform: translateY(-4.75px) rotate(-45deg); }

/* ---------- Side menu ---------- */
.menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: 55;
  width: min(480px, 100%);
  background: var(--dark);
  color: var(--white);
  transform: translateX(calc(100% + 120px));
  transition: transform 0.8s var(--ease);
}
body.menu-open .menu { transform: none; }
.menu__curve {
  position: absolute; top: -5%; bottom: -5%; right: calc(100% - 1px);
  width: 110px;
  background: var(--dark);
  border-radius: 100% 0 0 100% / 50% 0 0 50%;
  transition: width 0.8s var(--ease);
}
body.menu-open .menu__curve { width: 0; }
.menu__body { height: 100%; padding: 120px 64px 48px; display: flex; flex-direction: column; overflow-y: auto; }
.menu__label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); padding-bottom: 20px; border-bottom: 1px solid var(--line-dark); margin-bottom: 32px; }
.menu__list { margin-bottom: auto; padding-bottom: 48px; }
.menu__link {
  display: flex; align-items: center; gap: 18px;
  font-size: clamp(40px, 5vw, 56px); line-height: 1.3;
  transform: translateX(80px); opacity: 0;
  transition: transform 0.8s var(--ease), opacity 0.5s;
}
.menu__link::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--white);
  transform: scale(0); transition: transform 0.3s var(--ease);
}
.menu__link:hover::before { transform: scale(1); }
body.menu-open .menu__link { transform: none; opacity: 1; }
body.menu-open .menu__list li:nth-child(2) .menu__link { transition-delay: 0.05s; }
body.menu-open .menu__list li:nth-child(3) .menu__link { transition-delay: 0.1s; }
body.menu-open .menu__list li:nth-child(4) .menu__link { transition-delay: 0.15s; }
.menu__socials { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.menu__socials a:hover { color: var(--grey); }
.menu-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s;
}
body.menu-open .menu-overlay { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: #999d9e;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(69, 92, 233, 0.45), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(28, 29, 32, 0.7), transparent 60%),
    linear-gradient(160deg, #3a3d44 0%, #1c1d20 100%);
}
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero__chart { position: absolute; inset: 15% 0 30% 0; width: 100%; height: 55%; opacity: 0.35; }
.hero__chart polyline {
  fill: none; stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 3000; stroke-dashoffset: 3000;
  animation: draw 3.2s var(--ease-out) 1.6s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__location {
  position: absolute; left: 0; top: 42%;
  z-index: 2;
  display: flex; align-items: center; gap: 32px;
  padding: 22px 22px 22px 48px;
  background: var(--dark);
  border-radius: 0 100px 100px 0;
  font-size: 17px; line-height: 1.3;
}
.hero__globe {
  width: 64px; height: 64px; border-radius: 50%;
  background: #999d9e;
  display: flex; align-items: center; justify-content: center;
}
.hero__globe svg { width: 30px; height: 30px; fill: none; stroke: var(--white); stroke-width: 1.2; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotateY(360deg); } }

.hero__role {
  position: absolute; right: var(--gutter); top: 40%;
  z-index: 2;
  font-size: clamp(22px, 2.3vw, 32px); line-height: 1.25;
}
.hero__arrow { width: 18px; height: 18px; margin-bottom: 36px; fill: none; stroke: var(--white); stroke-width: 1.4; }

.hero__name {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 3vh;
  z-index: 2;
  white-space: nowrap;
  font-size: var(--fs-hero); line-height: 1; font-weight: 400;
  letter-spacing: -0.02em;
}

/* ---------- Intro ---------- */
.intro { padding: clamp(100px, 14vw, 200px) 0 clamp(80px, 10vw, 140px); }
.intro__grid { display: grid; grid-template-columns: 1fr 280px; gap: clamp(32px, 8vw, 140px); align-items: start; max-width: 1300px; }
.intro__lead { font-size: var(--fs-lg); line-height: 1.3; }
.intro__side { position: relative; font-size: 16px; line-height: 1.6; color: #45474b; }
.intro__side .round-btn { position: absolute; top: 200px; left: 30px; }

/* Word-by-word reveal */
.reveal-lines .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.reveal-lines .word > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease-out); }
.reveal-lines.in-view .word > span { transform: none; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.round-btn, .circle-btn, .pill-btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center;
}
.round-btn { width: 180px; height: 180px; border-radius: 50%; background: var(--dark); color: var(--white); }
.circle-btn { width: 190px; height: 190px; border-radius: 50%; background: var(--blue); color: var(--white); }
.pill-btn { padding: 26px 56px; border-radius: 100px; border: 1px solid var(--line); }
.pill-btn--dark { border-color: var(--line-dark); color: var(--white); }

.round-btn__fill, .circle-btn__fill, .pill-btn__fill {
  position: absolute; z-index: -1;
  left: 50%; top: 100%;
  width: 160%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue);
  transform: translate(-50%, 0);
  transition: top 0.55s var(--ease);
}
.circle-btn__fill { background: var(--blue-dark); }
.pill-btn:hover { color: var(--white); border-color: var(--blue); }
.round-btn:hover .round-btn__fill,
.circle-btn:hover .circle-btn__fill,
.pill-btn:hover .pill-btn__fill { top: -30%; }
.round-btn__text, .circle-btn__text, .pill-btn__text { display: inline-block; pointer-events: none; }

/* ---------- Work list ---------- */
.work { padding-bottom: clamp(80px, 10vw, 140px); position: relative; }
.work .container { max-width: 1300px; }
.work-list { border-bottom: 1px solid var(--line); margin-bottom: 80px; }
.work-item { border-top: 1px solid var(--line); }
.work-item__row {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(36px, 4.6vw, 64px) clamp(8px, 5vw, 90px);
  text-align: left;
  transition: opacity 0.4s;
}
.work-item__title {
  display: inline-block;
  font-size: var(--fs-xl); line-height: 1; letter-spacing: -0.02em;
  transition: transform 0.4s var(--ease-out);
}
.work-item__tag { display: inline-block; font-size: 16px; white-space: nowrap; transition: transform 0.4s var(--ease-out); }
.work-list:hover .work-item__row { opacity: 0.3; }
.work-list .work-item__row:hover { opacity: 1; }
.work-item__row:hover .work-item__title { transform: translateX(-10px); }
.work-item__row:hover .work-item__tag { transform: translateX(10px); }

.preview, .preview-cursor {
  position: fixed; left: 0; top: 0; z-index: 30;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s var(--ease-out);
}
.preview { width: 400px; height: 350px; overflow: hidden; }
.preview.is-active, .preview-cursor.is-active { transform: translate(-50%, -50%) scale(1); }
.preview__slider { height: 100%; transition: transform 0.5s var(--ease); }
.preview__slide {
  height: 100%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 36px;
}
.preview-cursor {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; z-index: 31;
}

/* Preview mockups */
.mock { width: 100%; border-radius: 6px; font-size: 11px; }
.mock--chart { background: #26272b; color: #cfd1d3; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.mock__bar { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.mock__bar i { width: 7px; height: 7px; border-radius: 50%; background: #55575c; }
.mock__bar b { font-weight: 400; margin-left: 8px; color: #8b8e93; }
.mock__candles { width: 100%; height: 150px; display: block; }
.mock__stats { display: flex; justify-content: space-between; margin-top: 10px; color: #8b8e93; }
.mock__stats b { color: var(--white); font-weight: 500; }

.mock--code { background: rgba(255,255,255,0.1); color: var(--white); padding: 18px; }
.mock--code pre { margin: 0 0 14px; font: 12px/1.6 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre; overflow: hidden; }
.mock--code em { font-style: normal; color: #c8d0ff; }
.mock__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mock__tags span { border: 1px solid rgba(255,255,255,0.4); border-radius: 20px; padding: 3px 9px; }

.mock--ml { background: var(--white); padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.mock__title { font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.mock__bars div { position: relative; height: 22px; margin-bottom: 8px; }
.mock__bars div::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--blue); border-radius: 3px; opacity: 0.85; }
.mock__bars span { position: relative; line-height: 22px; padding-left: 8px; color: var(--white); font-family: ui-monospace, Menlo, monospace; }
.mock__foot { margin-top: 12px; color: var(--grey); }

.mock--kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock--kanban .col { background: #202125; border-radius: 6px; padding: 10px; min-height: 200px; }
.mock--kanban p { color: #8b8e93; margin-bottom: 10px; }
.mock--kanban i { display: block; height: 34px; border-radius: 4px; background: #2e3035; margin-bottom: 8px; }
.mock--kanban i.s { height: 22px; }
.mock--kanban i.a { background: var(--blue); }

/* ---------- Details / About ---------- */
.details { padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 10vw, 140px); background: var(--off); }
.details .container { max-width: 1300px; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-bottom: clamp(80px, 10vw, 140px); }
.service__num { display: block; font-size: 13px; color: var(--grey); padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.service h3 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 16px; }
.service p { color: #45474b; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); }
.timeline li { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline h4 { font-size: 20px; margin: 0 0 4px; font-weight: 400; }
.timeline p, .timeline span { color: #45474b; font-size: 15px; }
.timeline span { white-space: nowrap; }
.skills { margin: 0; }
.skills div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.skills div:last-child { border-bottom: 1px solid var(--line); }
.skills dt { color: var(--grey); font-size: 14px; }
.skills dd { margin: 0; font-size: 16px; }

/* ---------- Sliding rows ---------- */
.slides { padding: clamp(80px, 10vw, 140px) 0 60px; overflow: hidden; display: flex; flex-direction: column; gap: 3vw; background: var(--white); }
.slides__row { display: flex; gap: 3vw; width: 120vw; will-change: transform; }
.slides__row--a { margin-left: -5vw; }
.slides__row--b { margin-left: -15vw; }
.tile {
  flex: 1 0 0;
  aspect-ratio: 1.45;
  background: var(--bg); color: var(--fg, var(--dark));
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(16px, 2vw, 32px);
}
.tile b { font-size: clamp(26px, 3.4vw, 54px); font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.tile span { font-size: clamp(12px, 1vw, 15px); opacity: 0.75; max-width: 22ch; }

/* ---------- Curve into footer ---------- */
.curve { position: relative; height: 12vw; max-height: 180px; margin-top: -1px; background: var(--dark); }
.curve__shape {
  position: absolute; left: -10%; right: -10%; top: 0;
  height: 100%;
  background: var(--white);
  border-radius: 0 0 50% 50%;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
  transform-origin: top;
}

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--white); padding: clamp(60px, 8vw, 120px) 0 28px; }
.footer .container { max-width: 1300px; }
.footer__head h2 {
  font-size: var(--fs-xl); line-height: 1.05; letter-spacing: -0.02em;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px;
}
.footer__avatar {
  position: relative; overflow: hidden;
  width: clamp(64px, 7vw, 100px); aspect-ratio: 1; border-radius: 50%;
  background: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: clamp(20px, 2vw, 30px); letter-spacing: 0;
}
.footer__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.footer__line { position: relative; margin: clamp(60px, 7vw, 100px) 0 clamp(50px, 6vw, 90px); border-bottom: 1px solid var(--line-dark); }
.footer__line .circle-btn { position: absolute; right: 12%; top: 50%; transform: translateY(-50%); }
.footer__pills { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: clamp(100px, 12vw, 180px); }
.footer__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; font-size: 15px; }
.footer__meta { display: flex; gap: 48px; }
.footer__socials { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.footer__socials .label { width: 100%; }
.u-link { position: relative; }
.u-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.u-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Project drawer ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(20, 21, 23, 0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s;
}
.drawer.is-open { opacity: 1; pointer-events: auto; }
.drawer__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 88vh; overflow-y: auto;
  background: var(--white);
  border-radius: 28px 28px 0 0;
  padding: clamp(48px, 6vw, 90px) var(--gutter) clamp(40px, 5vw, 70px);
  transform: translateY(100%);
  transition: transform 0.7s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__panel > * { max-width: 1000px; margin-left: auto; margin-right: auto; }
.drawer__close {
  position: absolute; top: 24px; right: var(--gutter);
  width: 60px; height: 60px; border-radius: 50%; background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.drawer__close:hover { background: var(--blue); }
.drawer__close span { position: absolute; width: 22px; height: 1.5px; background: var(--white); transform: rotate(45deg); }
.drawer__close span + span { transform: rotate(-45deg); }
.drawer__kicker { margin-bottom: 16px; }
.drawer__title { font-size: var(--fs-xl); line-height: 1; letter-spacing: -0.02em; margin-bottom: 20px; }
.drawer__stack { color: var(--grey); margin-bottom: 40px; }
.drawer__points li { font-size: var(--fs-md); line-height: 1.5; padding: 22px 0 22px 34px; border-top: 1px solid var(--line); position: relative; }
.drawer__points li::before { content: ""; position: absolute; left: 4px; top: 36px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.drawer__points li:last-child { border-bottom: 1px solid var(--line); }
.drawer__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.drawer__actions:empty { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__side { display: flex; flex-direction: column; align-items: flex-end; gap: 40px; }
  .intro__side p { align-self: stretch; }
  .intro__side .round-btn { position: relative; top: auto; left: auto; }
  .services { grid-template-columns: 1fr; gap: 48px; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .menu-btn { transform: scale(1); width: 60px; height: 60px; top: 16px; }
  .menu__body { padding: 110px 32px 40px; }

  .hero__location { top: auto; bottom: calc(3vh + var(--fs-hero) + 24px); padding: 16px 16px 16px var(--gutter); gap: 20px; font-size: 15px; }
  .hero__globe { width: 48px; height: 48px; }
  .hero__role { top: 18%; left: var(--gutter); right: auto; }
  .hero__arrow { margin-bottom: 20px; }

  .work-item__row { flex-direction: column; align-items: flex-start; gap: 12px; padding: 36px 0; }
  .work-item__title { font-size: clamp(34px, 10vw, 48px); }
  .work-list:hover .work-item__row { opacity: 1; }
  .work-item__row:hover .work-item__title, .work-item__row:hover .work-item__tag { transform: none; }

  .pill-btn { padding: 20px 32px; }
  .footer__line .circle-btn { width: 140px; height: 140px; right: 0; }
  .footer__pills { flex-direction: column; align-items: stretch; }
  .footer__pills .pill-btn { justify-content: center; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; }

  .slides__row { width: 200vw; }
  .slides__row--b { margin-left: -60vw; }
  .tile { aspect-ratio: 1.2; }
  .timeline li { flex-direction: column; gap: 6px; }
  .skills div { grid-template-columns: 1fr; gap: 6px; }
}

/* No hover previews on touch devices */
@media (hover: none) {
  .preview, .preview-cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-lines .word > span { opacity: 1; transform: none; }
}
