@font-face { font-family: "Melodrama"; src: url("fonts/melodrama-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Melodrama"; src: url("fonts/melodrama-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Melodrama"; src: url("fonts/melodrama-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #15120e;
  --cream: #f3e9d6;
  --cream-dim: rgba(243, 233, 214, .62);
  --amber: #f0a531;
  --amber-deep: #c9821c;
  --skin: #d9a273;
  --bg: #24433c;

  --sans: "Big Shoulders", "Arial Narrow", system-ui, sans-serif;
  --serif: "Melodrama", "Didot", Georgia, serif;
  --frame: #0b0a09;
  --inset: 12px;
  --radius: 26px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--frame);
  color: var(--cream);
  font: 500 21px/1.35 var(--sans);
  font-optical-sizing: auto;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; border-radius: 4px; }
h2 { font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -.01em; }

/* Page colour lives on a fixed layer so every chapter can fade into the next. */
#bg { position: fixed; inset: 0; z-index: -2; background: var(--bg); transition: background-color .9s ease; }
.grain {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .6s steps(3) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: var(--inset); left: var(--inset); right: var(--inset); z-index: 44;
  display: flex; align-items: center; gap: 16px;
  padding: 20px calc(var(--gutter) - var(--inset));
  font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
}
.topbar::before {
  content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent);
}
.logo { font-size: 24px; text-decoration: none; letter-spacing: -.02em; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px; border: 2px solid rgba(243, 233, 214, .35); border-radius: 99px;
  font-size: 14px; font-weight: 600;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: #8ee07a; animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(142, 224, 122, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(142, 224, 122, 0); } }
.nav { margin-left: auto; display: flex; gap: clamp(14px, 3vw, 32px); font-size: 17px; }
.nav a { text-decoration: none; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- chapter timeline ---------- */
.timeline {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(var(--inset) + 14px); z-index: 44; height: 40px;
  font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .04em;
  text-shadow: 0 1px 6px rgba(21, 18, 14, .5);
}
.ticks {
  position: absolute; left: 0; right: 0; bottom: 0; height: 9px;
  background: repeating-linear-gradient(90deg, rgba(243, 233, 214, .45) 0 1px, transparent 1px 12px);
}
.timeline button {
  text-transform: inherit; letter-spacing: inherit;
  position: absolute; bottom: 14px; transform: translateX(-50%); white-space: nowrap;
  background: none; border: 0; padding: 2px 4px; opacity: .55; transition: opacity .2s;
}
.timeline button:hover, .timeline button.on { opacity: 1; }
.timeline button:first-of-type { transform: none; }
.timeline button:first-of-type::after { left: 4px; }
.timeline button:last-of-type { transform: translateX(-100%); }
.timeline button:last-of-type::after { left: auto; right: 4px; }
.timeline button::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 1px; height: 13px; background: currentColor; }
.needle { position: absolute; bottom: 0; left: 0; width: 3px; height: 20px; border-radius: 2px; background: var(--amber); }

/* ---------- 1. hello ---------- */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.hero-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; }
.hero-hi {
  margin: max(88px, 12vh) 0 .2em; font: 700 clamp(22px, 2.4vw, 32px)/1 var(--sans); letter-spacing: .02em; color: var(--amber);
}
.hero-name {
  display: flex; justify-content: center;
  font-family: var(--serif); font-size: clamp(140px, 30vw, 460px); line-height: .8; font-weight: 400; letter-spacing: .01em;
  color: var(--cream);
}
.hero-name span { display: inline-block; will-change: transform; }
.hero-name .l { overflow: hidden; padding: .1em .015em .04em; margin: -.1em -.015em -.04em; }
.avatar-wrap {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; width: min(64vh, 82vw);
}
.hero-flash { position: absolute; inset: 0; z-index: 3; opacity: 0; pointer-events: none; }
.avatar { display: block; width: 100%; height: auto; overflow: visible; }
.hero-intro {
  position: absolute; left: var(--gutter); bottom: 96px; max-width: 290px;
  font-size: 19px; line-height: 1.35; font-weight: 500;
}
.scroll-hint {
  position: absolute; right: var(--gutter); bottom: 96px; max-width: 170px; text-align: right;
  font: 600 18px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--cream-dim);
}
.scroll-hint::after { content: ""; display: block; width: 2px; height: 34px; margin: 10px 0 0 auto; background: var(--cream-dim); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* the character */
.avatar path, .avatar rect, .avatar circle, .avatar ellipse { stroke: var(--ink); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.a-hoodie { fill: var(--amber); }
.a-hood { fill: var(--amber-deep); }
.a-skin { fill: var(--skin); }
.a-hair, .a-ink, .a-lens, .a-cups circle { fill: var(--ink); }
.avatar .a-cup-in { fill: var(--amber); stroke-width: 4; }
.a-line { fill: none; }
.avatar .a-band { fill: none; stroke-width: 14; }
.avatar .a-sunset { fill: var(--amber); stroke: none; opacity: .55; }
.avatar .a-glint { fill: var(--cream); stroke: none; opacity: .6; animation: glint 4.5s ease-in-out infinite; }
@keyframes glint { 0%, 70% { transform: skewX(-24deg) translateX(0); } 85%, 100% { transform: skewX(-24deg) translateX(230px); } }
.a-head { transform-box: view-box; transform-origin: 200px 320px; transition: transform .5s ease-out; }
.a-brows { animation: brows 6s ease-in-out infinite; }
@keyframes brows { 0%, 88%, 100% { transform: translateY(0); } 92%, 96% { transform: translateY(-7px); } }
.a-arm { transform-box: view-box; transform-origin: 96px 440px; animation: wave 2.6s ease-in-out infinite; }
@keyframes wave { 0%, 40%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-12deg); } 20% { transform: rotate(6deg); } }

/* ---------- 2. crafts ---------- */
.crafts-pin { position: relative; }
.craft { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 110px var(--gutter) 90px; overflow: hidden; }
.craft-word {
  position: absolute; top: 50%; left: 0; white-space: nowrap; pointer-events: none;
  font-size: clamp(130px, 26vw, 420px); font-weight: 900; line-height: 1;
  color: rgba(243, 233, 214, .14); transform: translateY(-50%) rotate(-6deg);
}
.craft-body { position: relative; display: grid; justify-items: center; gap: 28px; text-align: center; max-width: 640px; }
.craft-verb { font-size: clamp(54px, 8vw, 104px); }
.craft-verb em { font-style: normal; color: var(--accent, var(--amber)); }
.craft-line { font-size: clamp(18px, 2vw, 23px); max-width: 30em; }

.vis {
  width: min(380px, 80vw); aspect-ratio: 16 / 10; border-radius: 22px; padding: 22px;
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink); text-align: left; position: relative; overflow: hidden;
}
.vis-code i { display: block; height: 11px; border-radius: 6px; background: var(--ink); margin-bottom: 11px; transform-origin: left; }
.vis-code i:nth-child(3n+2) { background: var(--amber-deep); margin-left: 24px; }
.vis-code i:nth-child(4n) { background: rgba(21, 18, 14, .3); margin-left: 24px; }
.vis-code i.caret { width: 4px; height: 18px; border-radius: 1px; background: var(--ink); margin-left: 0; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.vis-flow { display: flex; align-items: center; justify-content: space-between; }
.vis-flow .node {
  position: relative; z-index: 1; width: 74px; height: 74px; border-radius: 18px; border: 3px solid var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 15px; background: #fff7e8;
}
.vis-flow .node.ai { background: var(--amber); border-radius: 50%; }
.vis-flow .wire { position: absolute; left: 60px; right: 60px; top: 50%; height: 3px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); }
.vis-flow .pulse { position: absolute; top: calc(50% - 7px); left: 60px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); animation: travel 2.2s linear infinite; }
.vis-flow .pulse + .pulse { animation-delay: -1.1s; }
@keyframes travel { from { left: 60px; } to { left: calc(100% - 74px); } }

.vis-chart { display: flex; align-items: flex-end; gap: 12px; }
.vis-chart i { flex: 1; border-radius: 8px 8px 3px 3px; background: var(--ink); transform-origin: bottom; }
.vis-chart i:last-child { background: var(--amber); border: 3px solid var(--ink); }

/* ---------- 3. beliefs ---------- */
.beliefs-pin { position: relative; }
.belief { min-height: 100svh; display: grid; place-items: center; padding: 110px var(--gutter) 90px; }
.belief p {
  max-width: 13.5em; text-align: center;
  font: 400 clamp(40px, 6.4vw, 96px)/1.04 var(--serif);
}
.belief .w { display: inline-block; }

/* ---------- 4. machine ---------- */
.machine-pin { position: relative; min-height: 100svh; padding: 120px var(--gutter) 90px; display: flex; flex-direction: column; overflow: hidden; }
.machine-copy { max-width: 560px; }
.machine-copy h2 { font-size: clamp(48px, 7vw, 96px); margin-bottom: 18px; }
.machine-copy p { font-size: 20px; max-width: 26em; color: var(--cream-dim); }
.line { position: relative; flex: 1; min-height: 240px; margin: 20px calc(var(--gutter) * -1) 0; }
.belt { position: absolute; left: 0; right: 0; bottom: 26%; height: 18px; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); background: rgba(21, 18, 14, .35); overflow: hidden; }
.belt span { position: absolute; top: 0; bottom: 0; left: -40px; right: -40px; background: repeating-linear-gradient(90deg, rgba(243, 233, 214, .35) 0 3px, transparent 3px 40px); }
.box {
  position: absolute; left: 50%; bottom: calc(26% - 16px); width: clamp(150px, 18vw, 220px); aspect-ratio: 1 / 1.05;
  transform: translateX(-50%); z-index: 2;
  background: var(--cream); color: var(--ink); border: 4px solid var(--ink); border-radius: 26px 26px 10px 10px;
  box-shadow: 8px 8px 0 var(--ink); display: grid; place-items: center;
}
.box::before, .box::after { content: ""; position: absolute; bottom: 14px; width: 16px; height: 38%; background: var(--ink); }
.box::before { left: -4px; border-radius: 0 8px 0 0; }
.box::after { right: -4px; border-radius: 8px 0 0 0; }
.box-top { position: absolute; top: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.box-top i { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--ink); transition: background .15s; }
.box.busy .box-top i:nth-child(1) { background: #8ee07a; }
.box.busy .box-top i:nth-child(2) { background: var(--amber); }
.gear { width: 46%; fill: var(--amber); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.gear circle { fill: var(--cream); }
.box-label { position: absolute; bottom: 12px; font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.item { position: absolute; left: 0; bottom: calc(26% + 18px); width: 54px; height: 54px; will-change: transform; z-index: 1; }
.item svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.item .done { opacity: 0; }
.item.is-done .raw { opacity: 0; }
.item.is-done .done { opacity: 1; }
.tally { font-weight: 600; font-size: 18px; text-align: center; }
.tally b { font-size: 1.6em; color: var(--amber); font-variant-numeric: tabular-nums; }

/* ---------- 5. work ---------- */
.work-pin { min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 110px 0 90px; }
.work-track { display: flex; gap: clamp(24px, 4vw, 56px); padding: 0 var(--gutter); align-items: center; will-change: transform; }
.work-intro { flex: 0 0 min(400px, 80vw); }
.work-intro h2 { font-size: clamp(64px, 9vw, 132px); margin-bottom: 22px; }
.work-intro p { font-size: 20px; color: var(--cream-dim); max-width: 18em; }
.card { flex: 0 0 min(520px, 82vw); text-decoration: none; display: block; }
.card-screen {
  position: relative; aspect-ratio: 4 / 3; border-radius: 22px; border: 3px solid var(--ink); overflow: hidden;
  background: var(--cream); color: var(--ink); box-shadow: 10px 10px 0 var(--ink);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), box-shadow .35s;
}
.card:hover .card-screen { transform: translate(-4px, -6px) rotate(-1deg); box-shadow: 14px 16px 0 var(--ink); }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 26px; }
.card h3 { font: 400 clamp(30px, 3.2vw, 44px)/1.05 var(--serif); }
.card-year { font-weight: 700; font-size: 15px; color: var(--cream-dim); }
.card p { margin-top: 8px; color: var(--cream-dim); max-width: 30em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags span { padding: 3px 12px; border-radius: 99px; border: 2px solid rgba(243, 233, 214, .35); font-size: 14px; font-weight: 600; }
.sample { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 3px 11px; border-radius: 99px; background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 700; }
.work-end { flex: 0 0 auto; font: 400 30px/1.15 var(--serif); color: var(--cream-dim); max-width: 230px; }

/* card illustrations */
.cv { position: absolute; inset: 0; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.cv-chat .b { max-width: 72%; padding: 12px 16px; border-radius: 18px 18px 18px 4px; border: 3px solid var(--ink); font-size: 15px; font-weight: 600; line-height: 1.3; background: #fff7e8; }
.cv-chat .b.me { align-self: flex-end; border-radius: 18px 18px 4px 18px; background: var(--amber); }
.cv-chat .score { margin-top: auto; display: flex; align-items: center; gap: 10px; font-weight: 800; }
.cv-chat .score i { flex: 1; height: 14px; border-radius: 8px; border: 3px solid var(--ink); background: linear-gradient(90deg, var(--ink) 82%, transparent 82%); }
.cv-doc { padding: 26px 20%; }
.cv-doc .sheet { flex: 1; border: 3px solid var(--ink); border-radius: 10px; background: #fff7e8; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.cv-doc .sheet i { height: 10px; border-radius: 5px; background: rgba(21, 18, 14, .25); }
.cv-doc .sheet i:nth-child(2n) { width: 80%; }
.cv-doc .sheet i.hl { background: var(--amber); outline: 3px solid var(--ink); outline-offset: 2px; width: 60%; }
.cv-chart .row { display: flex; gap: 10px; }
.cv-chart .kpi { flex: 1; border: 3px solid var(--ink); border-radius: 12px; padding: 8px 10px; font-weight: 800; font-size: 22px; line-height: 1.1; background: #fff7e8; }
.cv-chart .kpi small { display: block; font-size: 11px; font-weight: 600; opacity: .6; }
.cv-chart .bars { flex: 1; display: flex; align-items: flex-end; gap: 8px; }
.cv-chart .bars i { flex: 1; background: var(--ink); border-radius: 6px 6px 2px 2px; }
.cv-chart .bars i:nth-child(5n) { background: var(--amber); outline: 3px solid var(--ink); outline-offset: -3px; }

/* ---------- 6. about ---------- */
.about { padding: 140px var(--gutter) 120px; }
.about-inner { max-width: 1120px; margin: 0 auto; }
.about-lead { font-size: clamp(44px, 6.4vw, 92px); max-width: 13em; margin-bottom: 64px; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.about-text p { font-size: 21px; line-height: 1.5; max-width: 30em; }
.about-text p + p { margin-top: 18px; color: var(--cream-dim); }
.services { list-style: none; border-top: 2px solid rgba(243, 233, 214, .25); }
.services li { padding: 18px 0; border-bottom: 2px solid rgba(243, 233, 214, .25); }
.services b { display: block; font-size: 26px; font-weight: 700; }
.services span { color: var(--cream-dim); font-size: 16px; }
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 80px; }
.skills h3 { font: 400 30px var(--serif); color: var(--amber); margin-bottom: 10px; }
.skills ul { list-style: none; }
.skills li { font-size: 16px; padding: 3px 0; color: var(--cream-dim); }

/* ---------- 7. contact ---------- */
.contact { position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 120px var(--gutter) 0; text-align: center; }
.contact-inner { position: relative; z-index: 2; }
.contact h2 { font-size: clamp(48px, 7vw, 104px); max-width: 10em; margin: 0 auto 30px; }
.contact-row { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.email { font: 400 clamp(30px, 3.8vw, 50px) var(--serif); color: var(--amber); text-underline-offset: 6px; }
.copy { background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 99px; padding: 6px 18px; font-weight: 700; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.copy:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.links { margin-top: 18px; display: flex; gap: 26px; justify-content: center; font-weight: 700; font-size: 18px; }
.contact-avatar { position: relative; margin: auto auto 0; width: min(40vh, 66vw); padding-top: 24px; }

/* ---------- cinematic layer ---------- */

/* The rounded screen: everything outside it is painted in the frame colour. */
.frame {
  position: fixed; inset: var(--inset); z-index: 45; pointer-events: none; border-radius: var(--radius);
  box-shadow: 0 0 0 100vmax var(--frame), inset 0 0 140px rgba(0, 0, 0, .38), inset 0 0 0 1px rgba(243, 233, 214, .06);
}
#stars { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* Opening shot: a line of light, then the letterbox opens. */
.shutter { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.shutter i { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--frame); }
.shutter i:first-child { top: 0; transform-origin: top; }
.shutter i:last-child { bottom: 0; transform-origin: bottom; }
.shutter b { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--amber); box-shadow: 0 0 24px 4px rgba(240, 165, 49, .55); transform: scaleX(0); }
html:not(.motion) .shutter { display: none; }

/* Words that rise out of a mask. */
.m { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .02em .14em; margin: -.06em -.02em -.14em; }
.mi { display: inline-block; will-change: transform; }

/* Soft cursor (mouse only). */
.cursor { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; display: none; opacity: 0; transition: opacity .3s; }
.cursor.live { opacity: 1; }
.cursor i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.cursor b { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(243, 233, 214, .6); transition: transform .35s var(--ease-out), border-color .35s, background-color .35s; }
.cursor.hover b { transform: scale(1.7); border-color: var(--amber); background: rgba(240, 165, 49, .12); }
@media (pointer: fine) {
  html.motion .cursor { display: block; }
  html.motion, html.motion a, html.motion button { cursor: none; }
}

/* ---------- motion mode (set by main.js when GSAP is available) ---------- */
html.motion .crafts-pin, html.motion .beliefs-pin { height: 100vh; height: 100svh; overflow: hidden; }
html.motion .craft, html.motion .belief { position: absolute; inset: 0; min-height: 0; }
html.motion .machine-pin, html.motion .work-pin { height: 100vh; height: 100svh; min-height: 0; }

/* without GSAP the gallery scrolls sideways by itself */
html:not(.motion) .work-pin { overflow-x: auto; }
html:not(.motion) .timeline { display: none; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  :root { --inset: 6px; --radius: 16px; }
  body { font-size: 17px; }
  .status { display: none; }
  .nav { font-size: 16px; }
  .hero-hi { margin-top: 110px; }
  .avatar-wrap { width: min(58vh, 100vw); }
  .hero-name { font-size: 40vw; }
  .hero-intro { position: static; margin: 22px var(--gutter) 0; max-width: 22em; text-align: center; font-size: 17px; }
  .scroll-hint { display: none; }
  .timeline button { font-size: 0; padding: 6px; }
  .timeline button.on { font-size: 12px; }
  .about-cols { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr 1fr; }
  .item { width: 40px; height: 40px; }
  .cv { padding: 20px; }
  .cv-chat .b { font-size: 13px; }
}
@media (max-height: 640px) and (min-width: 761px) {
  .hero-intro, .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
