@font-face {
  font-family: "Overused Grotesk";
  src: url("assets/fonts/OverusedGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Overused Grotesk";
  src: url("assets/fonts/OverusedGrotesk-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --black: #000;
  --ink: #111;
  --paper: #eee;
  --accent: #de6536;
  --grey: #808080;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(17, 17, 17, 0.14);
  --card: #1a1a1a;

  --f-body: "Poppins", system-ui, sans-serif;
  --f-display: "Inter", system-ui, sans-serif;
  --f-grotesk: "Overused Grotesk", "Poppins", sans-serif;
  --f-round: "Sulphur Point", "Poppins", sans-serif;

  --gutter: clamp(16px, 2.8vw, 40px);
  --radius: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--black);
  color: #fff;
  font: 400 16px/1.8 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 16px; border-radius: 99px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font: 400 13px/1 var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey);
}
.display {
  font: 600 clamp(56px, 8.9vw, 128px)/1 var(--f-display);
  letter-spacing: -0.047em;
}
.display span { display: block; }
.accent { color: var(--accent); }
.dim { color: rgba(255, 255, 255, 0.4); }
.lead { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.6; letter-spacing: -0.01em; }
.lead--dark { color: var(--ink); font-size: clamp(20px, 1.7vw, 24px); line-height: 1.3; }
.lead--center { text-align: center; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 12px; vertical-align: middle; }
.dot--dark { background: var(--ink); width: 6px; height: 6px; margin-right: 8px; }
.dot--light { background: rgba(255,255,255,.5); width: 6px; height: 6px; margin-right: 8px; }

/* Pills / buttons */
.pill {
  translate: 0 0;
  display: inline-flex; align-items: center; gap: 16px;
  padding: 6px 6px 6px 20px; border-radius: 99px; border: 1px solid var(--line-dark);
  font-size: 16px; line-height: 1.8; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s, translate .5s var(--ease);
}
.pill__arrow {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.2) no-repeat center / 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.6'%3E%3Cpath d='M2 8h12M9 3l5 5-5 5'/%3E%3C/svg%3E");
  transition: transform .3s var(--ease);
}
.pill:hover .pill__arrow { transform: rotate(-45deg); }
.pill--ghost { background: rgba(0,0,0,.45); }
.pill--ghost:hover { border-color: rgba(255,255,255,.5); }
.pill--light { background: #fff; color: var(--ink); border-color: #fff; }
.pill--light .pill__arrow { background-color: var(--ink); }
.pill--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill--dark:hover { background: #000; }
button.pill--dark { padding: 14px 28px; font-size: 18px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 4px 16px; border: 1px solid var(--line-dark); border-radius: 99px; font-size: 14px; line-height: 1.7; }
.tags--light li { border-color: var(--line-light); color: #000; font-size: 12px; padding: 2px 12px; text-transform: uppercase; }

.chip { display: inline-flex; align-items: center; padding: 4px 14px; border-radius: 99px; border: 1px solid var(--line-light); font-size: 14px; line-height: 1.7; }
.chip--line span { margin-left: 6px; }
.chip--line:hover { background: var(--ink); color: #fff; }

/* Header */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; padding-inline: var(--gutter); pointer-events: none; transition: transform .6s var(--ease); }
.topbar.is-hidden { transform: translateY(-110%); }
.topbar__inner {
  pointer-events: auto;
  max-width: calc(1440px - 2 * var(--gutter)); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 68px; padding-inline: 28px;
  border: 1px solid var(--line-dark); border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(14px);
}
.topbar__loc { font-size: 15px; color: rgba(255,255,255,.55); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.brand img { width: 26px; height: auto; }
.menu-btn {
  justify-self: end; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--accent); background: #fff;
  display: grid; grid-template-columns: repeat(2, 5px); gap: 3px; place-content: center;
  transition: transform .4s var(--ease);
}
.menu-btn span { width: 5px; height: 5px; border-radius: 1px; border: 1.2px solid #111; }
.menu-btn[aria-expanded="true"] { transform: rotate(45deg); }

.menu {
  pointer-events: auto;
  position: absolute; right: var(--gutter); top: 80px;
  width: min(420px, calc(100vw - 2 * var(--gutter)));
  padding: 24px; border-radius: var(--radius);
  background: rgba(20, 20, 20, .92); backdrop-filter: blur(20px);
  border: 1px solid var(--line-dark);
  animation: drop .35s var(--ease);
}
.menu[hidden] { display: none; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.menu__title { font-size: 14px; color: var(--grey); margin-bottom: 12px; }
.menu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 24px; }
.menu__grid a, .menu__social a {
  display: block; padding: 8px 12px; border-radius: 12px; font-size: 14px; text-transform: uppercase; color: #eee;
}
.menu__grid a:hover, .menu__social a:hover { background: rgba(255,255,255,.08); }
.menu__social { display: flex; flex-wrap: wrap; gap: 4px; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .9; }
.hero::before { content: ""; position: absolute; left: 50%; top: 0; height: 900px; width: 1px; background: var(--line-dark); pointer-events: none; }
.hero__grid {
  min-height: 900px; padding-top: 140px; padding-bottom: 140px;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--gutter);
}
.hero__name { padding-left: clamp(0px, 5vw, 80px); }
.hero__hello { color: rgba(255,255,255,.45); margin-bottom: 20px; }
.hero__hello span { color: #fff; }
.hero__name .display { text-align: right; padding-right: clamp(0px, 3vw, 48px); }
.hero__photo { position: relative; justify-self: end; width: min(100%, 587px); aspect-ratio: 587 / 539; border-radius: 18px; overflow: hidden; }
.hero__photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; filter: grayscale(1); will-change: transform; }
.hero__social { position: absolute; right: 16px; bottom: 16px; display: grid; gap: 10px; }
.hero__social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.3); transition: background .3s, border-color .3s; }
.hero__social a:hover { background: var(--accent); border-color: var(--accent); }
.hero__social svg { width: 16px; height: 16px; fill: #fff; }

.hero__bar {
  position: absolute; left: 0; right: 0; top: 780px;
  display: flex; justify-content: space-between; align-items: center;
}
.hero__bar::before {
  content: ""; position: absolute; inset: -14px var(--gutter); z-index: -1;
  border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(0,0,0,.3);
}
.scroll-down { padding-left: 28px; color: rgba(255,255,255,.5); }
.scroll-down span { color: #fff; }
.hero__cta { display: flex; gap: 12px; padding-right: 12px; }
.hero__cta .pill--ghost { min-width: 340px; justify-content: space-between; }

/* Experience */
.experience { padding-top: 140px; padding-bottom: 100px; position: relative; }
.experience__intro { margin: 32px 0 80px auto; max-width: 600px; }
.experience__intro .lead { margin-bottom: 40px; }
.experience__intro .lead::first-line { color: #fff; }
.xp { display: flex; gap: 12px; }
.xp__card {
  position: relative; flex: 1 1 0; min-width: 0; min-height: 230px; padding: 28px;
  background: var(--card); border-radius: 18px; cursor: pointer;
  display: flex; flex-direction: column; gap: 12px;
  transition: flex-grow .9s var(--ease), background .3s;
  contain: layout paint;
}
.xp__role { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xp__card.is-active { flex-grow: 1.9; background: #202020; }
.xp__card:hover { background: #222; }
.xp__date { color: var(--grey); }
.xp__org { margin-top: -6px; color: rgba(255,255,255,.6); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp__desc { display: none; color: rgba(255,255,255,.75); font-size: 15px; line-height: 1.55; max-width: 34em; }
.xp__card.is-active .xp__desc { display: block; animation: fadeUp .6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.xp__role { font: 600 clamp(24px, 2.2vw, 32px)/1.25 var(--f-grotesk); letter-spacing: -0.01em; }
.xp__card .tags { margin-top: auto; opacity: 0; transform: translateY(8px); transition: .5s var(--ease); }
.xp__card.is-active .tags { opacity: 1; transform: none; }
.xp__num { position: absolute; right: 28px; bottom: 24px; color: rgba(255,255,255,.4); }
.xp__card.is-active .xp__num { color: var(--accent); }
.xp__progress { height: 3px; margin-top: 16px; background: var(--line-dark); border-radius: 3px; overflow: hidden; }
.xp__progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.xp__progress span.run { animation: progress linear forwards; }
@keyframes progress { to { width: 100%; } }

/* Marquee */
.marquee { background: var(--paper); color: var(--ink); overflow: hidden; padding: 28px 0; border-bottom: 1px solid var(--line-light); }
.marquee--reverse { border-top: 1px solid var(--line-light); }
.marquee__track { display: flex; align-items: center; gap: 48px; width: max-content; will-change: transform; }
.marquee__track > * { flex: none; }
.marquee span { font: 600 32px/1.25 var(--f-grotesk); text-transform: uppercase; letter-spacing: -0.01em; white-space: nowrap; }
.marquee img { width: 37px; height: auto; }

/* Light sections */
.light { background: var(--paper); color: var(--ink); }
.about { display: grid; grid-template-columns: 1fr 1fr; padding-top: 140px; padding-bottom: 180px; }
.about .lead { max-width: 440px; text-indent: 3em; }

.services { padding-bottom: 80px; }
.svc { border-top: 1px solid var(--line-light); padding: 24px 0 28px; cursor: default; }
.svc__num { margin-bottom: 40px; }
.svc__title { color: rgba(17,17,17,.3); transition: color .5s var(--ease); }
.svc.is-active .svc__title { color: var(--ink); }
.svc__wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.svc.is-active .svc__wrap { grid-template-rows: 1fr; }
.svc__body {
  min-height: 0; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .8s var(--ease);
}
.svc__body > :first-child { padding-top: 40px; }
.svc.is-active .svc__body { opacity: 1; transform: none; transition-delay: .1s; }
.svc__body .tags { margin-bottom: 16px; }
.svc__desc { max-width: 400px; color: var(--grey); font-size: 14px; line-height: 1.45; }
.svc__imgs { display: flex; gap: 6px; padding-top: 40px; }
.svc__imgs img { width: 210px; aspect-ratio: 5/3; object-fit: cover; border-radius: 12px; }
.services__cta { display: flex; justify-content: flex-end; padding-top: 32px; border-top: 1px solid var(--line-light); }

.approach { padding-top: 80px; padding-bottom: 120px; }
.approach__head { padding: 24px 24px 64px; text-align: center; }
.approach__head .eyebrow { margin-bottom: 24px; }
.approach__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 48px); position: relative; }
.circle { transition: transform 1s var(--ease); }
.circle--media:hover { transform: scale(1.02) rotate(-2deg); }
.circle--outline { position: relative; border-style: dashed !important; }
.circle--outline::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 1px solid rgba(17,17,17,.12); }
.circle--outline:hover { transform: rotate(4deg); }
.circle { aspect-ratio: 1; border-radius: 50%; overflow: hidden; width: 100%; max-width: 660px; justify-self: center; }
.circle--media { background: #000; }
.circle--media video { width: 100%; height: 100%; object-fit: cover; }
.circle--outline { border: 1px solid rgba(17,17,17,.25); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10%; }
.approach__big { font: 400 clamp(48px, 5.6vw, 80px)/0.8 var(--f-round); letter-spacing: -0.02em; margin: 28px 0 32px; }
.approach__small { color: rgba(17,17,17,.6); }

/* Portfolio */
.portfolio { background: #0b0b0b; }
.project { position: sticky; top: 0; display: block; overflow: hidden; }
.project__inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  min-height: 100vh; padding: 120px var(--gutter);
  transform-origin: 50% 0; will-change: transform;
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), #0b0b0b url("assets/img/project-bg.webp") center / cover;
  text-align: center;
}
.project__inner::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--dim, 0); pointer-events: none; }
.project + .project { box-shadow: 0 -30px 60px rgba(0,0,0,.6); }
.project__cta { margin-top: 8px; }
.project .tags { justify-content: center; }
.project:hover .project__cta .pill__arrow { transform: rotate(-45deg); }
.project__title { font-size: clamp(36px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.03em; font-weight: 400; }
.project__row { display: grid; grid-template-columns: 1fr minmax(0, 666px) 1fr; align-items: center; width: 100%; max-width: 1280px; gap: 24px; }
.project__row img { width: 100%; aspect-ratio: 666/410; object-fit: cover; border-radius: 16px; transition: transform .8s var(--ease); }
.project:hover .project__row img { transform: scale(1.025); }
.project__meta { font: 400 13px/1 var(--f-display); text-transform: uppercase; color: var(--grey); border-bottom: 1px solid var(--line-dark); padding-bottom: 14px; text-align: left; }
.project__meta:last-child { text-align: right; }

/* Awards */
.awards { background: var(--ink); padding: 100px 0 80px; }
.awards__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; margin-bottom: 60px; }
.awards__head .pill { justify-self: end; }
.awards__title .dim { padding-left: 1.1em; }
.table { border-top: 1px solid var(--line-dark); }
.table__row { position: relative; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line-dark); transition: padding .6s var(--ease); }
.table__row span:nth-child(2) { text-align: center; }
.table__row span:last-child { text-align: right; }
.table__row--head { font: 400 13px/1 var(--f-display); text-transform: uppercase; color: rgba(255,255,255,.4); border-bottom: 1px solid var(--line-dark); }
.table__row:not(.table__row--head) { font: 400 13px/1.3 var(--f-display); color: #bbb; overflow: hidden; isolation: isolate; }
.table__row:not(.table__row--head)::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.table__row:not(.table__row--head):hover { color: #fff; padding-inline: 24px; }
.table__row:not(.table__row--head):hover::before { transform: none; }
a.table__row span:last-child::after { content: " ↗"; display: inline-block; opacity: 0; transform: translateX(-8px); transition: .4s var(--ease); }
a.table__row:hover span:last-child::after { opacity: 1; transform: none; }
.table__name { font: 400 24px/1.25 var(--f-body); color: #fff; }

/* Skills */
.skills { padding: 60px 0 100px; }
.skills__box { padding: 24px 0 32px; text-align: center; }
.skills__list { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 48px; row-gap: 8px; max-width: 1040px; margin: 48px auto 40px; }
@property --fill { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
.skills__list li { --fill: 0%; font: 400 clamp(56px, 7vw, 100px)/1.1 var(--f-round); letter-spacing: -0.02em; cursor: default;
  background: linear-gradient(90deg, #fff var(--fill), rgba(255,255,255,.28) var(--fill)); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: --fill 1.6s var(--ease) calc(var(--i, 0) * .12s); }
.skills__list.is-in li { --fill: var(--p); }
.skills__list li:hover { --fill: 100%; transition-duration: .6s; transition-delay: 0s; }
.skills__list sup { -webkit-text-fill-color: rgba(255,255,255,.55); }
.skills__list sup { font: 400 clamp(16px, 1.7vw, 24px) var(--f-body); vertical-align: top; position: relative; top: .5em; margin-left: 2px; }
.skills__more { color: rgba(255,255,255,.6); }
.skills__more b { color: #fff; font-weight: 400; }

/* Contact */
.contact { padding-top: 120px; }
.contact__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 64px; }
.contact__title { font: 400 clamp(56px, 7vw, 100px)/1 var(--f-round); letter-spacing: -0.02em; margin-top: 16px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 28px; }
.field { display: grid; gap: 12px; font-size: 24px; line-height: 1.25; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  font: 400 14px/1.6 var(--f-body); color: var(--ink);
  border: 0; border-bottom: 1px solid var(--line-light); background: transparent;
  padding: 8px 0 14px; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field ::placeholder { color: #aaa; }
.form .pill { justify-self: start; }
.form__note { grid-column: 1 / -1; font-size: 14px; color: var(--grey); min-height: 1.5em; }

.connect { position: relative; overflow: hidden; padding-top: 60px; padding-bottom: 80px; display: grid; place-items: center; }
.connect::before { content: ""; position: absolute; inset: 0 var(--gutter) auto; height: 140px; border: 1px solid var(--line-light); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.connect__word { grid-area: 1 / 1; font: 400 clamp(120px, 20vw, 300px)/1 var(--f-body); letter-spacing: -0.04em; color: rgba(17,17,17,.08); white-space: nowrap; }
.connect__media { grid-area: 1 / 1; width: min(709px, 80vw); aspect-ratio: 709/350; border-radius: 999px; overflow: hidden; background: #000; }
.connect__media video { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.footer { background: var(--ink); padding: 72px 0 40px; }
.footer__top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px; padding-bottom: 72px; }
.footer__big { font: 400 clamp(32px, 3.9vw, 56px)/1.1 var(--f-grotesk); letter-spacing: -0.01em; }
.footer__mail:hover { color: var(--accent); }
.footer__cols { display: grid; grid-template-columns: repeat(3, max-content); gap: 0 clamp(48px, 7vw, 120px); margin-bottom: 72px; }
.footer__label { color: var(--grey); margin-bottom: 24px; }
.footer__cols li { margin-bottom: 8px; }
.footer__cols a { position: relative; }
.footer__cols a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.footer__cols a:hover::after { transform: scaleX(1); transform-origin: left; }
#clock { font-variant-numeric: tabular-nums; }
.footer__bottom { display: flex; justify-content: space-between; }

/* Reveal animations (only hide things when JS is running) */
.js .reveal { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line__in { display: block; }
.js .line__in { transform: translate3d(0, 105%, 0); transition: transform 1.2s var(--ease) calc(var(--i, 0) * .1s + .15s); }
.js-ready .hero__title .line__in, .is-in .line__in { transform: none; }
.m { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.m__in { display: inline-block; }
.js .m__in { transform: translate3d(0, 105%, 0); transition: transform 1s var(--ease) calc(var(--i, 0) * .06s); }
.js .is-in .m__in { transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease) calc(var(--i, 0) * .08s), transform .9s var(--ease) calc(var(--i, 0) * .08s); }
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-words .w { color: rgba(255,255,255,.25); transition: color .35s; }
.lead--dark.reveal-words .w { color: rgba(17,17,17,.2); }
.reveal-words .w.on { color: inherit; }

/* Responsive */
@media (max-width: 1024px) {
  .hero::before { display: none; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-top: 120px; padding-bottom: 40px; }
  .hero__name { padding-left: 0; }
  .hero__name .display { text-align: left; padding-right: 0; }
  .hero__photo { justify-self: stretch; width: 100%; }
  .hero__bar { position: relative; top: auto; padding-block: 14px; margin-top: 24px; }
  .hero__cta .pill--ghost { min-width: 0; }
  .experience { padding-top: 100px; }
  .xp { flex-direction: column; }
  .xp__card, .xp__card.is-active { flex: none; min-height: 0; }
  .xp__num { top: 28px; bottom: auto; }
  .xp__card .tags { opacity: 1; transform: none; }
  .about { grid-template-columns: 1fr; gap: 32px; padding-block: 100px; }
  .svc .svc__title { color: var(--ink); }
  .svc__wrap { grid-template-rows: 1fr; }
  .svc__body { opacity: 1; transform: none; grid-template-columns: 1fr; }
  .svc__body > :first-child, .svc__imgs { padding-top: 24px; }
  .svc__imgs img { width: 50%; }
  .approach__grid { grid-template-columns: 1fr; }
  .project__row { grid-template-columns: 1fr; }
  .project__meta { display: none; }
  .awards__head { grid-template-columns: 1fr; gap: 24px; }
  .awards__head .pill { justify-self: start; }
}
@media (max-width: 640px) {
  .topbar__loc { font-size: 0; }
  .topbar__loc .dot { margin: 0; }
  .topbar__inner { padding-inline: 16px; }
  .hero__bar { flex-direction: column; align-items: stretch; gap: 16px; }
  .scroll-down { display: none; }
  .hero__cta { flex-direction: column; padding: 0; }
  .hero__cta .pill { justify-content: space-between; }
  .hero__bar::before { display: none; }
  .table__row { grid-template-columns: 1fr 2fr; }
  .table__row span:last-child { display: none; }
  .table__row span:nth-child(2) { text-align: right; }
  .table__name { font-size: 18px; }
  .contact__head { flex-direction: column; gap: 24px; }
  .form { grid-template-columns: 1fr; }
  .field { font-size: 20px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .marquee span { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-stagger > *, .js .line__in, .js .m__in { opacity: 1; transform: none; }
}

/* Custom cursor label (desktop) */
[data-cursor] { cursor: none; }
@media (hover: none) { [data-cursor] { cursor: auto; } }

/* ===================== Homepage play ===================== */
/* greeting */
.hello { display: inline-block; min-width: 1ch; color: var(--accent); }
.hello::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* name letters */
.hero__title { cursor: default; user-select: none; }
.hero__title .ch { display: inline-block; transform-origin: 50% 80%; will-change: translate, scale; }
.hero__title .ch.flip { animation: flip .8s var(--ease); }
@keyframes flip { 0% { transform: rotateX(0); } 60% { transform: rotateX(380deg) translateY(-8px); } 100% { transform: rotateX(360deg); } }
.burst { position: fixed; z-index: 95; width: 34px; height: auto; margin: -9px 0 0 -17px; pointer-events: none; animation: burst 1.1s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes burst {
  0% { transform: translate(0, 0) rotate(0) scale(.4); opacity: 1; }
  60% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); opacity: 1; }
  100% { transform: translate(calc(var(--dx) * 1.2), calc(var(--dy) * .2 + 160px)) rotate(var(--r)) scale(.8); opacity: 0; }
}

/* portrait tilt */
.hero__tilt { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; transform-style: preserve-3d; will-change: transform; }
.hero__glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.28), rgba(255,255,255,0) 45%); opacity: 0; transition: opacity .4s; mix-blend-mode: soft-light; }
.is-tilting .hero__glare { opacity: 1; }

/* about dialogue */
.about { align-items: start; }
.talk { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: end; max-width: 640px; }
.talk__avatar { width: 92px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid var(--accent); animation: bobble 4s ease-in-out infinite; }
.talk__avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
@keyframes bobble { 50% { translate: 0 -6px; } }
.talk__box { position: relative; padding: 30px 28px 26px; border-radius: 24px 24px 24px 6px; background: var(--ink); color: #fff; cursor: pointer; min-height: 168px; }
.talk__name { position: absolute; top: 0; left: 22px; translate: 0 -50%; padding: 7px 16px; border-radius: 99px; background: var(--accent); font: 600 13px/1 var(--f-display); }
.talk__line { font: 400 clamp(18px, 1.6vw, 22px)/1.5 var(--f-body); min-height: 3em; }
.talk__line.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -0.12em; background: currentColor; animation: blink .8s steps(1) infinite; }
.talk__next { position: absolute; right: 18px; bottom: 14px; width: 28px; height: 28px; padding: 0; border: 0; background: none; }
.talk__next::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -30%; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid rgba(255,255,255,.75); animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { translate: -50% 10%; } }
.is-last .talk__next { display: none; }
.talk__choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; height: 0; overflow: hidden; }
.is-last .talk__choices { height: auto; }
.talk__choices a { padding: 10px 18px; border-radius: 99px; border: 1px solid rgba(255,255,255,.3); font-size: 15px; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease), background .3s, color .3s; }
.talk__choices a::before { content: "▸ "; color: var(--accent); }
.is-last .talk__choices a { opacity: 1; transform: none; }
.is-last .talk__choices a:nth-child(2) { transition-delay: .1s; }
.is-last .talk__choices a:nth-child(3) { transition-delay: .2s; }
.talk__choices a:hover { background: #fff; color: var(--ink); }

/* services cursor preview (desktop) */
.has-preview .svc__imgs { display: none; }
.has-preview .svc { cursor: none; }
.preview { position: fixed; left: 0; top: 0; z-index: 80; width: 300px; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; pointer-events: none; opacity: 0; scale: .6; transition: opacity .35s var(--ease), scale .5s var(--ease); box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.preview.is-on { opacity: 1; scale: 1; }
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease); }
.preview img + img { opacity: 0; }
.preview.is-alt img + img { opacity: 1; }

/* approach ring */
.circle--outline { overflow: visible; }
.approach { overflow-x: clip; }
.ring { position: absolute; inset: -4%; width: 108%; height: 108%; pointer-events: none; animation: spin 26s linear infinite; }
.ring text { font: 600 9px/1 var(--f-display); letter-spacing: .32em; fill: var(--accent); }
.circle--outline:hover .ring { animation-duration: 8s; }
@keyframes spin { to { rotate: 360deg; } }
.circle--media { transition: translate .6s var(--ease), transform 1s var(--ease); }

/* skills playground */
.play { position: relative; height: 320px; margin-top: 28px; border-radius: 28px; background: radial-gradient(120% 90% at 50% 100%, rgba(222,101,54,.18), rgba(222,101,54,0) 60%); overflow: hidden; }
.play__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 32px; }
.play__chips li { padding: 16px 28px; border-radius: 99px; border: 1px solid rgba(255,255,255,.3); background: #161616; color: #fff; font: 500 clamp(16px, 1.7vw, 24px)/1 var(--f-body); white-space: nowrap; user-select: none; }
.play__chips li.hot { background: var(--accent); border-color: var(--accent); }
.play.is-live .play__chips li { position: absolute; left: 0; top: 0; cursor: grab; touch-action: none; transform: translate3d(-999px, -999px, 0); }
.play.is-live .play__chips li.is-grabbed { cursor: grabbing; box-shadow: 0 16px 30px rgba(0,0,0,.4); }
.play__shake { position: absolute; right: 16px; top: 16px; padding: 8px 14px; border-radius: 99px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.4); color: #fff; font: 500 13px/1 var(--f-body); }
.play__shake:hover { background: #fff; color: #000; }

/* "Connect" letters */
[data-scatter] span { display: inline-block; transition: translate .5s var(--ease), rotate .5s var(--ease); }
.connect { pointer-events: auto; }

/* cursor: a solid inverting circle. invert + hue-rotate(180deg) flips light and dark but keeps hues,
   so black turns white while orange stays orange (a plain difference blend turns orange blue) */
.dot-cursor { position: fixed; left: 0; top: 0; z-index: 2147483000; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; -webkit-backdrop-filter: invert(1) hue-rotate(180deg); backdrop-filter: invert(1) hue-rotate(180deg); pointer-events: none; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .2s; }
.dot-cursor.is-big { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.dot-cursor.is-hidden { opacity: 0; }
/* the dot grows into a label circle */
.dot-cursor { display: grid; place-items: center; transition: width .16s cubic-bezier(.2,.9,.3,1), height .16s cubic-bezier(.2,.9,.3,1), margin .16s cubic-bezier(.2,.9,.3,1), opacity .12s, background-color .12s; }
.dot-cursor.is-label { transition-duration: .2s; }
.dot-cursor.is-xl { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.dot-cursor span { font: 500 13px/1 var(--f-body); letter-spacing: .02em; color: var(--cursor-fg, var(--theme-fg, #fff)); opacity: 0; scale: .6; transition: opacity .12s, scale .22s cubic-bezier(.2,.9,.3,1); white-space: nowrap; }
.dot-cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--cursor-bg, var(--theme-bg, var(--accent))); box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.dot-cursor.is-label span { opacity: 1; scale: 1; }
.dot-cursor.is-label.is-sm { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
.dot-cursor.is-label.is-sm span { font-size: 12px; }
.dot-cursor.is-label.is-wide { width: 104px; height: 104px; margin: -52px 0 0 -52px; }
.dot-cursor.is-off { opacity: 0; }
/* with the dot on, the system pointer hides everywhere except where you type */
.has-dot, .has-dot * { cursor: none !important; }
.has-dot :is(input, textarea, select, [contenteditable]) { cursor: text !important; }
.has-dot select { cursor: default !important; }

/* skill logos pop up on hover */
.skills__list li { position: relative; }
.skill-logo { position: absolute; left: 50%; top: -.78em; width: .82em; height: .82em; translate: -50% 0; border-radius: 28%; background: #1b1b1b; box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.12); scale: 0; rotate: -20deg; transition: scale .5s cubic-bezier(.34,1.56,.64,1), rotate .5s cubic-bezier(.34,1.56,.64,1); pointer-events: none; }
.skill-logo::before { content: ""; position: absolute; inset: 22%; background: var(--c); -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.skills__list li:hover .skill-logo { scale: 1; rotate: 8deg; }

@media (max-width: 1024px) {
  .talk { grid-template-columns: 1fr; }
  .talk__avatar { width: 72px; }
}
@media (max-width: 640px) {
  .play { height: 380px; }
  .play__chips li { padding: 11px 18px; font-size: 15px; }
}

/* ===================== Intro loader ===================== */
.loader { display: none; }
.intro .loader { display: block; position: fixed; inset: 0; z-index: 200; color: #fff; pointer-events: auto; }
.is-loading, .is-loading body { overflow: hidden; }
.loader__cols { position: absolute; inset: 0; display: flex; }
.loader__cols span { flex: 1; background: #000; margin-right: -1px; transition: transform 1s cubic-bezier(.77,0,.18,1); }
.loader.is-out .loader__cols span { transform: translateY(-101%); }
.loader.is-out .loader__cols span:nth-child(2) { transition-delay: .06s; }
.loader.is-out .loader__cols span:nth-child(3) { transition-delay: .12s; }
.loader.is-out .loader__cols span:nth-child(4) { transition-delay: .18s; }
.loader.is-out .loader__cols span:nth-child(5) { transition-delay: .24s; }
.loader__field { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .45s var(--ease); }
.loader.is-out .loader__field { opacity: 0; }
.loader__bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255,255,255,.08); }
.loader__bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--lp, 0)); }
.loader__center { position: absolute; left: 50%; top: 46%; width: 132px; height: 132px; translate: -50% -50%; display: grid; place-items: center; }
.loader__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.loader__ring circle { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 1.5; }
.loader__ring .loader__ring-val { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: calc(var(--lp, 0) * 100) 100; }
.loader__logo { width: 54px; height: auto; animation: logoIn 1s cubic-bezier(.34,1.56,.64,1) both, logoPulse 1.6s ease-in-out 1s infinite; }
@keyframes logoIn { from { opacity: 0; transform: scale(.3) rotate(-90deg); } }
@keyframes logoPulse { 50% { transform: scale(1.08); } }
.loader__name { position: absolute; left: 50%; top: calc(46% + 96px); translate: -50% 0; font: 600 14px/1 var(--f-display); letter-spacing: .5em; text-indent: .5em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.loader__meta { position: absolute; right: var(--gutter); bottom: 5vh; text-align: right; font: 500 13px/1.6 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.loader__center, .loader__name, .loader__meta, .loader__bar { transition: opacity .5s var(--ease), transform .7s var(--ease); }
.loader.is-out .loader__center, .loader.is-out .loader__name, .loader.is-out .loader__meta, .loader.is-out .loader__bar { opacity: 0; transform: translateY(-24px); }

/* hold the hero entrance until the loader has gone */
.is-loading .hero .reveal, .is-loading .hero .line__in { transition: none !important; }
.is-loading .hero .reveal { opacity: 0 !important; transform: translate3d(0, 32px, 0) !important; }
.is-loading .hero .line__in { transform: translate3d(0, 105%, 0) !important; }
