:root {
  --bg: #050505;
  --ink: #f5f2ec;
  --red: #e8412a;
  --grey: #8a8a8a;
  --card: #111111;
  --line: #222222;
  --green: #4ade80;
  --display: "Anton", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --script: "Caveat", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--red);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 2000;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--red);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
}

.dot-green {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}

.pulse {
  animation: dotPulse 2.4s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.38);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(74, 222, 128, 0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: var(--ink);
}

.btn-primary:hover {
  background: #f05038;
}

.btn-outline {
  border-color: #333333;
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-small {
  padding: 11px 14px;
  font-size: 0.58rem;
}

.site-header {
  position: fixed;
  top: 18px;
  right: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.pill-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  padding: 7px 10px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.8);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
}

.brand {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--bg);
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
}

.menu-links {
  display: flex;
  align-items: center;
  gap: 1px;
}

.menu-link {
  display: block;
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--grey);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.menu-link:hover {
  color: var(--ink);
}

.menu-link.active {
  background: var(--ink);
  color: var(--bg);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 110px 0 92px;
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  top: 50%;
  right: 8%;
  z-index: 0;
  width: min(70vw, 900px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(232, 65, 42, 0.2) 0%, rgba(232, 65, 42, 0.05) 40%, transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}

.hero-bg-text {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: 1;
  width: max-content;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(6rem, 26vw, 22rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.78;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  transform: translate(-50%, -50%) rotate(-3deg);
  color: transparent;
  background: linear-gradient(180deg, rgba(245, 242, 236, 0.16) 0%, rgba(232, 65, 42, 0.22) 52%, rgba(232, 65, 42, 0.03) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1.5px rgba(232, 65, 42, 0.3);
  filter: drop-shadow(0 24px 60px rgba(232, 65, 42, 0.12));
}

.hero-photo {
  position: absolute;
  right: clamp(0px, 4vw, 64px);
  bottom: clamp(20px, 3vh, 48px);
  z-index: 2;
  width: min(72vw, 1200px);
  pointer-events: none;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(232, 65, 42, 0.18), 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 70px rgba(232, 65, 42, 0.22);
  filter: grayscale(1) contrast(1.08);
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 520px;
}

.hello {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--script);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1;
  transform: rotate(-4deg);
  transform-origin: left center;
}

.squiggle {
  width: 72px;
  height: 18px;
  overflow: visible;
  color: var(--red);
}

.hero-name {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(4.2rem, 10vw, 9rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.82;
  text-transform: uppercase;
}

.hero-name > span {
  display: block;
}

.hero-name .accent,
.section-title .accent {
  color: var(--red);
}

.hero-role {
  margin: 0 0 22px;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(1.2rem, 3.2vw, 2.8rem);
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-desc {
  max-width: 380px;
  margin: 0 0 28px;
  color: var(--ink);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-location {
  color: var(--grey);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero-stats {
  position: absolute;
  top: 50%;
  right: clamp(20px, 4vw, 48px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 34px;
  text-align: right;
  transform: translateY(-50%);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero-stat-num {
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}

.hero-stat-label {
  color: var(--grey);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-bottom-pill {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.78);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section {
  position: relative;
  padding: clamp(76px, 10vw, 130px) 0;
  border-top: 1px solid #181818;
  scroll-margin-top: 100px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow .dot {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(232, 65, 42, 0.12);
}

.section-title {
  margin: 0 0 clamp(34px, 5vw, 58px);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.8rem, 6.5vw, 6.2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-transform: uppercase;
}

.section-title .line {
  display: block;
}

.about-text {
  max-width: 72ch;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.75;
  opacity: 0.85;
}

.academic-list {
  display: grid;
  gap: 14px;
}

.academic-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(20px, 2.5vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.card-kicker {
  margin-bottom: 8px;
  color: var(--grey);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.academic-card h3 {
  margin-bottom: 7px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.academic-card p {
  color: var(--grey);
  font-size: 0.9rem;
}

.academic-score {
  text-align: right;
}

.academic-score strong {
  display: block;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.academic-score span {
  display: block;
  color: var(--grey);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-align: right;
  text-transform: uppercase;
}

.key-subjects {
  max-width: 75ch;
  margin-top: 22px;
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.7;
}

.mono-label {
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.key-subjects .mono-label {
  margin-right: 6px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 34px;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -32px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(232, 65, 42, 0.12);
}

.timeline-date {
  margin-bottom: 6px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin-bottom: 7px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.timeline-item p {
  max-width: 70ch;
  color: var(--grey);
  font-size: 0.92rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: start;
}

.skill-groups {
  display: grid;
  gap: 26px;
}

.skill-group h3,
.langs h3 {
  margin-bottom: 12px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.35;
}

.chips-small li {
  padding: 7px 10px;
  font-size: 0.72rem;
}

.langs {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.lang-list {
  display: grid;
}

.lang-row {
  display: grid;
  grid-template-columns: 5.2rem minmax(80px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #1b1b1b;
}

.lang-row:last-child {
  border-bottom: 0;
}

.lang-name {
  font-size: 0.85rem;
}

.bars {
  display: flex;
  gap: 4px;
}

.bars i {
  height: 6px;
  flex: 1;
  border-radius: 2px;
  background: #2a2a2a;
}

.bars i.on {
  background: var(--red);
}

.bars.is-dim i.on {
  background: rgba(232, 65, 42, 0.45);
}

.lang-level {
  color: var(--grey);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}

.section-intro {
  max-width: 74ch;
  margin-top: -24px;
  margin-bottom: 30px;
  color: var(--grey);
  font-size: 0.96rem;
  line-height: 1.7;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cert-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.cert-card.featured {
  grid-column: 1 / -1;
  border-color: var(--red);
  padding: clamp(22px, 3vw, 32px);
}

.cert-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border: 1px solid #333333;
  border-radius: 50%;
  color: var(--red);
}

.cert-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.cert-card h3 {
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.cert-card.featured h3 {
  font-size: 1.16rem;
}

.cert-meta {
  margin-bottom: 7px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cert-card p:last-child {
  color: var(--grey);
  font-size: 0.85rem;
  line-height: 1.6;
}

.projects {
  display: grid;
  gap: 18px;
}

.project-card {
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.project-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tag {
  padding: 6px 10px;
  border: 1px solid #333333;
  border-radius: 999px;
  color: var(--grey);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge {
  padding: 7px 11px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-green {
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
  color: var(--green);
}

.badge-red {
  border: 1px solid rgba(232, 65, 42, 0.35);
  background: rgba(232, 65, 42, 0.08);
  color: var(--red);
}

.project-card h3 {
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.project-sub {
  display: block;
  margin-top: 8px;
  color: var(--grey);
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.project-card > p {
  color: var(--grey);
  font-size: 0.92rem;
  line-height: 1.7;
}

.project-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 22px 0;
}

.project-cols h4 {
  margin-bottom: 6px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-cols p {
  color: var(--grey);
  font-size: 0.86rem;
  line-height: 1.65;
}

.agents-stack {
  display: grid;
  gap: 18px;
}

.agent-card {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.agent-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.agent-tag {
  margin-bottom: 7px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.agent-title {
  margin-bottom: 7px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.agent-desc {
  max-width: 72ch;
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.6;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 7px 11px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.06);
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agent-demo {
  padding: clamp(14px, 2.5vw, 22px);
  border: 1px solid #1b1b1b;
  border-radius: 18px;
  background: #0a0a0a;
}

.demo-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.trade-summary {
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.9rem;
}

.sample-badge {
  padding: 5px 9px;
  border: 1px solid #333333;
  border-radius: 999px;
  color: var(--grey);
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  padding: 2px 2px 14px;
  overflow-y: auto;
  scrollbar-color: #333333 transparent;
  scrollbar-width: thin;
}

.chat-msg {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.chat-msg p {
  white-space: pre-wrap;
}

.chat-msg.bot {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  background: #151515;
  color: var(--ink);
}

.chat-msg.user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--red);
  color: var(--bg);
}

.chat-msg.is-typing {
  color: var(--grey);
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}

.suggestion {
  padding: 7px 10px;
  border: 1px solid #333333;
  border-radius: 999px;
  background: transparent;
  color: var(--grey);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.suggestion:hover {
  border-color: var(--red);
  color: var(--ink);
}

.chat-form {
  display: flex;
  gap: 8px;
}

.chat-form input {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111111;
  color: var(--ink);
  font-size: 0.85rem;
}

.chat-form input::placeholder {
  color: #666666;
}

.chat-form input:focus {
  border-color: var(--red);
  outline: none;
}

.agent-footnote {
  margin-top: 12px;
  color: var(--grey);
  font-size: 0.72rem;
  line-height: 1.5;
}

.agent-footnote a {
  color: var(--red);
}

.agent-footnote a:hover {
  text-decoration: underline;
}

.trade-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.trade-step {
  min-height: 78px;
  padding: 12px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f0f0f;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.step-num {
  display: block;
  margin-bottom: 6px;
  color: var(--grey);
  font-family: var(--mono);
  font-size: 0.54rem;
}

.step-name {
  display: block;
  color: var(--grey);
  font-size: 0.7rem;
  line-height: 1.35;
}

.trade-step.is-active {
  border-color: var(--red);
  background: rgba(232, 65, 42, 0.08);
}

.trade-step.is-active .step-num,
.trade-step.is-active .step-name {
  color: var(--ink);
}

.trade-step.is-done {
  border-color: rgba(74, 222, 128, 0.35);
}

.trade-step.is-done .step-num {
  color: var(--green);
}

.demo-output {
  min-height: 2.6em;
  padding: 12px 14px;
  border-left: 2px solid var(--red);
  border-radius: 0 8px 8px 0;
  background: #0f0f0f;
  color: var(--grey);
  font-size: 0.84rem;
  line-height: 1.6;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.recon-list {
  display: grid;
  gap: 6px;
}

.recon-row {
  display: grid;
  grid-template-columns: 0.7fr 1.15fr 1.15fr 0.9fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.79rem;
}

.recon-row.recon-head {
  padding-top: 0;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--grey);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.recon-row.is-match {
  border-color: rgba(74, 222, 128, 0.2);
  background: rgba(74, 222, 128, 0.05);
}

.recon-row.is-break {
  border-color: rgba(232, 65, 42, 0.22);
  background: rgba(232, 65, 42, 0.06);
}

.recon-cell {
  min-width: 0;
  color: var(--ink);
}

.cell-label {
  display: none;
}

.recon-status {
  text-align: right;
}

.status {
  color: var(--grey);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status.is-match {
  color: var(--green);
}

.status.is-break {
  color: var(--red);
}

.agents-note {
  margin-top: 18px;
  color: var(--grey);
  font-size: 0.76rem;
  line-height: 1.6;
}

.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  cursor: pointer;
}

.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  filter: none;
  opacity: 1;
  transform: scale(1.18);
  transform-origin: center top;
  transition: opacity 0.5s ease, transform 0.7s var(--ease);
}

.video-card:hover .video-thumb {
  opacity: 1;
  transform: scale(1.24);
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.18) 40%, rgba(232, 65, 42, 0.06) 100%);
  pointer-events: none;
}

.video-rec {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  color: var(--grey);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  transform: translate(-50%, -50%);
  animation: playPulse 2.6s ease-in-out infinite;
  transition: background 0.2s ease;
}

.video-play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid var(--bg);
}

.video-play:hover {
  background: #f05038;
}

@keyframes playPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 65, 42, 0.38);
  }
  50% {
    box-shadow: 0 0 0 18px rgba(232, 65, 42, 0);
  }
}

.video-meta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 32px);
}

.video-meta h3 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.video-meta p {
  max-width: 55ch;
  color: var(--grey);
  font-size: 0.88rem;
  line-height: 1.55;
}

.video-link {
  flex: none;
  padding: 12px 16px;
  border: 1px solid rgba(245, 242, 236, 0.45);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.45);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.video-link:hover {
  border-color: var(--red);
  color: var(--red);
}

.video-card iframe {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card.is-playing {
  cursor: default;
}

.lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lead-card {
  padding: clamp(20px, 2.5vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.lead-card h3 {
  margin-bottom: 9px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.lead-card h3 span {
  color: var(--grey);
  font-size: 0.84rem;
  font-weight: 400;
}

.lead-card p {
  color: var(--grey);
  font-size: 0.88rem;
  line-height: 1.7;
}

.contact-lede {
  max-width: 60ch;
  margin-top: -24px;
  margin-bottom: 34px;
  color: var(--grey);
  font-size: 1rem;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 20px;
}

.contact-email-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.contact-email {
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  letter-spacing: 0.01em;
  line-height: 1;
  word-break: break-word;
}

.contact-email:hover {
  color: #f05038;
}

.copy-btn {
  padding: 8px 12px;
  border: 1px solid #333333;
  border-radius: 999px;
  background: transparent;
  color: var(--grey);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copy-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.contact-list {
  border-top: 1px solid var(--line);
}

.contact-row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.contact-row dt {
  flex: none;
  color: var(--grey);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-row dd {
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

.contact-row a:hover {
  color: var(--red);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 2.5vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--grey);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b0b0b;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
  outline: none;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form .btn {
  justify-self: start;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid #181818;
}

.site-footer p {
  color: var(--grey);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

html.js .hero .anim {
  opacity: 0;
  animation: riseIn 0.8s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

html.js .hero-photo {
  opacity: 0;
  animation: fadeIn 1.1s ease 0.15s forwards;
}

html.js .hero-bg-text {
  opacity: 0;
  animation: bgTextIn 1.4s var(--ease) 0.1s forwards;
}

@keyframes bgTextIn {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) rotate(-3deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-3deg) scale(1);
  }
}

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .hero .anim,
  html.js .hero-photo,
  html.js .hero-bg-text,
  html.js .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  html.js .hero-bg-text {
    transform: translate(-50%, -50%) rotate(-3deg);
  }

  .pulse,
  .video-play {
    animation: none;
  }
}

@media (max-width: 1120px) {
  .menu-toggle {
    display: flex;
  }

  .pill-menu {
    width: min(100%, 440px);
    justify-content: space-between;
  }

  .menu-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    display: flex;
    width: min(90vw, 320px);
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #111111;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s var(--ease), visibility 0.2s;
  }

  .menu-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .menu-link {
    padding: 12px 14px;
    font-size: 0.68rem;
  }

  .hero-photo {
    right: 2vw;
    width: min(68vw, 950px);
  }

  .hero-copy {
    max-width: 480px;
  }
}

@media (max-width: 900px) {
  .hero {
    display: flex;
    min-height: 100svh;
    padding: 96px 0 96px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-glow {
    top: 10%;
    right: 50%;
    width: 110vw;
    transform: translateX(50%);
  }

  .hero-bg-text {
    top: 40%;
    font-size: clamp(5rem, 30vw, 13rem);
    -webkit-text-stroke-width: 1px;
  }

  .hero-photo {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(110vw, 680px);
    height: auto;
    margin: 0 auto;
    z-index: 2;
  }

  .hero-content {
    width: 100%;
    padding: 0 20px;
    margin-top: -18px;
    z-index: 3;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-name {
    font-size: clamp(3.5rem, 16vw, 6rem);
  }

  .hero-role {
    font-size: clamp(1.05rem, 4.5vw, 1.5rem);
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-stats {
    display: none;
  }

  .hero-bottom-pill {
    bottom: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .skills-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .video-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-height: 820px) and (min-width: 901px) {
  .hero {
    padding-top: 100px;
    padding-bottom: 78px;
  }

  .hero-name {
    font-size: clamp(3.4rem, 8vw, 6.6rem);
  }

  .hero-role {
    margin-bottom: 16px;
  }

  .hero-desc {
    margin-bottom: 20px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .section {
    padding: 72px 0;
  }

  .section-title {
    font-size: clamp(2.6rem, 12vw, 4.2rem);
  }

  .section-intro,
  .contact-lede {
    margin-top: -14px;
  }

  .academic-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .academic-score {
    text-align: left;
  }

  .academic-score span {
    text-align: left;
  }

  .lang-row {
    grid-template-columns: 4.5rem minmax(80px, 1fr);
  }

  .lang-level {
    grid-column: 2;
    margin-top: -6px;
    text-align: left;
  }

  .cert-grid,
  .lead-grid {
    grid-template-columns: 1fr;
  }

  .cert-card.featured {
    grid-column: auto;
  }

  .project-cols {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .trade-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-card {
    aspect-ratio: 4 / 5;
  }

  .video-play {
    width: 80px;
    height: 80px;
  }

  .video-play::before {
    margin-left: 5px;
    border-top-width: 13px;
    border-bottom-width: 13px;
    border-left-width: 20px;
  }

  .video-meta {
    gap: 14px;
    padding: 20px;
  }

  .video-meta h3 {
    font-size: 1.4rem;
  }

  .video-link {
    align-self: flex-start;
  }

  .recon-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    padding: 12px;
    border-color: var(--line);
  }

  .recon-row.recon-head {
    display: none;
  }

  .cell-label {
    display: block;
    margin-bottom: 2px;
    color: var(--grey);
    font-family: var(--mono);
    font-size: 0.49rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .recon-status {
    text-align: left;
  }

  .contact-row {
    flex-direction: column;
    gap: 4px;
  }

  .contact-row dd {
    text-align: left;
  }

  .chat-form {
    flex-direction: column;
  }

  .chat-form .btn {
    width: 100%;
  }

  .contact-form .btn {
    justify-self: stretch;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: clamp(3.1rem, 17vw, 4.4rem);
  }

  .hello {
    font-size: 1.6rem;
  }

  .squiggle {
    width: 58px;
  }

  .hero-location {
    font-size: 0.55rem;
  }

  .btn {
    padding: 12px 14px;
    font-size: 0.58rem;
  }

  .agent-title {
    font-size: 1.5rem;
  }

  .trade-steps {
    grid-template-columns: 1fr;
  }

  .contact-email {
    font-size: 1.45rem;
  }
}
