/* Local font fallbacks (self-hosted subsets from design source) */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/bricolage-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f4ebe0;
  --ink: #1b1a17;
  --muted: #3e3a33;
  --muted-2: #5c574f;
  --paper: #fffdf8;
  --accent: #ff5b2e;
  --yellow: #ffc92e;
  --teal: #2ec39a;
  --blue: #2f5bff;
  --lilac: #b98cff;
  --sky: #7cc4ff;
  --hi: var(--accent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: var(--ink);
}
a:hover {
  color: var(--blue);
}

.site {
  --hi: var(--accent);
  background-color: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.disp {
  font-family: "Bricolage Grotesque", sans-serif;
  font-optical-sizing: auto;
}
.mono {
  font-family: "JetBrains Mono", monospace;
}

.grid-bg {
  background-image:
    linear-gradient(rgba(27, 26, 23, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 26, 23, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* hero line reveal */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.line > span {
  display: inline-block;
  animation: rise 0.9s cubic-bezier(0.2, 0.9, 0.2, 1.2) both;
}
.l2 > span {
  animation-delay: 0.12s;
}
.l3 > span {
  animation-delay: 0.24s;
}
@keyframes rise {
  from {
    transform: translateY(110%) rotate(4deg);
  }
  to {
    transform: none;
  }
}
.mark {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.mark::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0.08em;
  height: 0.38em;
  background: var(--hi);
  z-index: -1;
  transform-origin: left;
  animation: swipe 0.7s 0.7s cubic-bezier(0.6, 0, 0.2, 1) both;
  border-radius: 4px;
}
@keyframes swipe {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.bob {
  animation: bob 4s ease-in-out infinite;
}
.bob2 {
  animation: bob 5s -1.5s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translateY(-10px) rotate(var(--r, 0deg));
  }
}
.spin {
  animation: spin 14s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.pop {
  animation: popin 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes popin {
  from {
    transform: scale(0) rotate(-20deg);
  }
  to {
    transform: scale(1) rotate(var(--r, 0deg));
  }
}

.wire {
  position: relative;
  width: 3px;
  height: 44px;
  margin-left: 40px;
  background: repeating-linear-gradient(#1b1a17 0 6px, transparent 6px 11px);
}
.wire i {
  position: absolute;
  left: -5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #1b1a17;
  box-sizing: border-box;
  animation: drop 1.6s ease-in infinite;
}
.wire i:nth-child(2) {
  animation-delay: 0.8s;
}
@keyframes drop {
  from {
    top: -6px;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  to {
    top: 38px;
    opacity: 0;
  }
}
.node {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.node:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #1b1a17 !important;
}
.pulse {
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(46, 195, 154, 0.55);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(46, 195, 154, 0);
  }
}

.caret {
  display: inline-block;
  width: 9px;
  height: 17px;
  vertical-align: -3px;
  background: #1b1a17;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.band {
  transform: rotate(-2deg);
  margin: 0 -40px;
}
.track {
  display: flex;
  gap: 40px;
  align-items: center;
  width: max-content;
  animation: slide 30s linear infinite;
}
.track.rev {
  animation-direction: reverse;
  animation-duration: 36s;
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}
.star {
  display: inline-block;
  animation: spin 6s linear infinite;
}

.btn {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 #1b1a17 !important;
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #1b1a17 !important;
}
.card {
  transition: transform 0.25s cubic-bezier(0.2, 1.2, 0.4, 1), box-shadow 0.25s ease;
}
.card:hover {
  transform: translate(-4px, -6px) rotate(-0.6deg);
  box-shadow: 12px 14px 0 #1b1a17 !important;
}
.card:hover .arrow {
  transform: translateX(6px);
}
.arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.chip {
  transition: transform 0.2s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.chip:hover {
  transform: rotate(-4deg) scale(1.08);
}
.num {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.rule:hover .num {
  transform: rotate(-12deg) scale(1.15);
}
.wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave 2.4s ease-in-out infinite;
}
@keyframes wave {
  0%,
  60%,
  100% {
    transform: rotate(0);
  }
  10%,
  30% {
    transform: rotate(14deg);
  }
  20%,
  40% {
    transform: rotate(-8deg);
  }
}

@supports (animation-timeline: view()) {
  .rv {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(48px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #2f5bff;
  outline-offset: 3px;
}

.still *,
.still *::after {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::after {
    animation: none !important;
  }
}

.hidden {
  display: none !important;
}

@media (max-width: 720px) {
  .hero-badge {
    right: 8px !important;
    top: -24px !important;
    width: 88px !important;
    height: 88px !important;
  }
  .hero-badge svg {
    width: 88px;
    height: 88px;
  }
  .cv-preview {
    display: none;
  }
}
