/* ============================================================
   BASE & CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Dark theme (default) */
  --bg: #000000;
  --bg-elevated: #111111;
  --bg-card: #1c1c1e;
  --bg-card-hover: #242426;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;
  --accent: #2997ff;
  --accent-hover: #5ac8fa;
  --accent-subtle: rgba(41, 151, 255, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --nav-bg: rgba(0, 0, 0, 0.75);
  --tag-bg: rgba(41, 151, 255, 0.12);
  --tag-text: #5ac8fa;
  --gradient-hero: radial-gradient(
    ellipse 70% 50% at 20% 40%,
    rgba(41, 151, 255, 0.1) 0%,
    transparent 60%
  );
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

body.light {
  --bg: #ffffff;
  --bg-elevated: #f5f5f7;
  --bg-card: #f5f5f7;
  --bg-card-hover: #e8e8ed;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #a1a1a6;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-subtle: rgba(0, 113, 227, 0.08);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --nav-bg: rgba(255, 255, 255, 0.75);
  --tag-bg: rgba(0, 113, 227, 0.08);
  --tag-text: #0071e3;
  --gradient-hero: radial-gradient(
    ellipse 70% 50% at 20% 40%,
    rgba(0, 113, 227, 0.06) 0%,
    transparent 60%
  );
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.08);
  color-scheme: light;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
.text-display {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.text-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.text-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.text-body {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.text-caption {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

.container--wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

section {
  padding: 64px 0;
}

/* Section headers */
.section-header {
  margin-bottom: 48px;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* Extend behind iPhone notch/Dynamic Island via safe-area-inset-top */
  height: calc(60px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.nav__inner {
  width: 100%;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__logo {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  transition: color 0.2s ease;
  flex-shrink: 0;
  margin-right: 0;
}

.nav__logo span {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease;
  cursor: pointer;
}

.nav__link:hover {
  color: var(--text-primary);
  background: var(--border);
}

.nav__link.active {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.nav__controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

/* Mobile-only extras (lang + theme) inside hamburger - hidden on desktop */
.nav__mobile-extras {
  display: none;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-tertiary);
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-btn.active {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.lang-btn:hover:not(.active) {
  color: var(--text-secondary);
}

.lang-sep {
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
  width: 32px;
  height: 32px;
}

.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--border);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.icon-sun {
  display: none;
}
.icon-moon {
  display: block;
}

body.light .icon-sun {
  display: block;
}
body.light .icon-moon {
  display: none;
}

.nav__mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 6px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: calc(60px + env(safe-area-inset-top, 0px));
}

.hero__bg {
  position: absolute;
  inset: 0;
  transition: background 0.5s ease;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: auto;
  animation: fadeInUp 0.5s ease both;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-subtle);
  border: 1px solid rgba(41, 151, 255, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 32px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
}

body.light .hero__badge {
  border-color: rgba(0, 113, 227, 0.2);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.25);
}

.hero__name {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.hero__stack {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

.hero__tagline {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 48px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Hero two-column layout ── */
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 0 96px;
  align-items: center;
  width: 100%;
}

/* ── Portrait: circle + cutout ── */
.hero__portrait {
  --hero-circle-size: 400px;
  --hero-circle-radius: 200px;
  --hero-circle-translate-x: calc(-50% - 15px);
  --hero-circle-translate-y: calc(-50% + 55px);
  --hero-cutout-width: 945px;
  --hero-cutout-height: 630px;
  --hero-cutout-origin-x: 457px;
  --hero-cutout-origin-y: 370px;
  --hero-cutout-translate-x: -472px;
  --hero-cutout-translate-y: -315px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 540px;
}

/* Circle: clipped background */
.hero__circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--hero-circle-size);
  height: var(--hero-circle-size);
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.45);
  z-index: 1;
  animation: heroCircleIn 0.5s ease 0.1s both;
}

.hero__circle-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 74% centers the chair horizontally (chair at x≈900/1536 in original,
     displayed at x=352/600, need crop_left=152px → 152/200=76%) */
  object-position: 22% 50%;
  display: block;
  user-select: none;
}

/* Cutout: both layers share the same motion.
   Inner layer is clipped to the circle.
   Breakout layer only keeps the allowed top/left overflow. */
.hero__cutout-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  height: var(--hero-cutout-height);
  width: var(--hero-cutout-width);
  max-width: none;
  z-index: 2;
  user-select: none;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.4));
  transform-origin: var(--hero-cutout-origin-x) var(--hero-cutout-origin-y);
  animation: heroCutoutIn 0.5s ease 0.1s both;
}

.hero__cutout-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__cutout-layer--inner {
  z-index: 1;
  -webkit-mask-image: radial-gradient(
    circle var(--hero-circle-radius) at var(--hero-cutout-origin-x)
      var(--hero-cutout-origin-y),
    #000 99.2%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle var(--hero-circle-radius) at var(--hero-cutout-origin-x)
      var(--hero-cutout-origin-y),
    #000 99.2%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.hero__cutout-layer--breakout {
  z-index: 2;

  /* Breakout = outside circle AND upper direction only.
     Conic: 0deg=top, 90deg=right, 180deg=bottom, 270deg=left.
     Black 250→360→0→90 = upper-left → top → upper-right (head, shoulders).
     Shirt (~130°) and laptop-right (~110°) fall in transparent 90→250° → hidden. */
  -webkit-mask-image: conic-gradient(
    from 180deg at var(--hero-cutout-origin-x) var(--hero-cutout-origin-y),
    #000 0deg 283deg,
    transparent 0deg 43deg
  );
  -webkit-mask-composite: source-in;

  mask-image: conic-gradient(
    from 180deg at var(--hero-cutout-origin-x) var(--hero-cutout-origin-y),
    #000 0deg 283deg,
    transparent 0deg 43deg
  );
  mask-composite: intersect;
}
.hero__cutout {
  max-width: none;
  position: relative;
  width: 100%;
  height: 100%;
  user-select: none;
}

/* Light theme */
body.light .hero__circle {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn--secondary:hover {
  background: var(--bg-card-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--ghost:hover {
  background: var(--accent-subtle);
}

/* ============================================================
   POSITIONING CARDS
   ============================================================ */
.positioning {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.positioning__title {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 48px;
}

.positioning__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.positioning__card {
  background: var(--bg-card);
  padding: 36px 28px;
  transition: background 0.25s ease;
}

.positioning__card:hover {
  background: var(--bg-card-hover);
}

.positioning__card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: 12px;
  color: var(--accent);
  margin-bottom: 16px;
}

.positioning__card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.positioning__card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============================================================
   NUMBERS
   ============================================================ */
.numbers {
  padding: 52px 0;
}

.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  text-align: center;
}

.numbers__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.numbers__value {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 2px;
}

.numbers__value-main {
  display: inline-block;
}

.numbers__value-suffix {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.15em;
}

.numbers__label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */
.experience {
  border-top: 1px solid var(--border);
}

.timeline {
  position: relative;
  padding-left: 0;
}

.timeline-item {
  position: relative;
  padding: 0 0 56px 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.timeline-item__meta {
  text-align: right;
  padding-top: 4px;
}

.timeline-item__period {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.timeline-item__company {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-item__body {
  border-left: 1px solid var(--border);
  padding-left: 40px;
  position: relative;
}

.timeline-item__body::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--accent);
}

.timeline-item__role {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.timeline-item__summary {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.timeline-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--tag-bg);
  color: var(--tag-text);
  letter-spacing: 0.01em;
  border: 1px solid rgba(41, 151, 255, 0.15);
  white-space: nowrap;
}

body.light .tag {
  border-color: rgba(0, 113, 227, 0.12);
}

.timeline-item__toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  margin-top: 4px;
}

.timeline-item__toggle:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

.timeline-item__toggle[aria-expanded='true'] {
  background: var(--accent-subtle);
  border-color: var(--accent);
}

.toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.75rem;
}

.timeline-item__details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.4s ease;
  opacity: 0;
}

.timeline-item__details.open {
  max-height: 600px;
  opacity: 1;
}

.timeline-item__details.open ~ .timeline-item__toggle .toggle-icon {
  transform: rotate(180deg);
}

.timeline-item__bullets {
  padding: 20px 0 0 0;
}

.timeline-item__bullets li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-item__bullets li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skills__group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  transition: background 0.25s ease;
}

.skills__group:hover {
  background: var(--bg-card-hover);
}

.skills__group-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

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

.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--accent-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.skill-tag--primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}

/* ============================================================
   APPROACH
   ============================================================ */
.approach {
  padding: 72px 0;
}

.approach__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.approach__card {
  padding: 40px 32px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: background 0.25s ease;
}

.approach__card:hover {
  background: var(--bg-card-hover);
}

.approach__card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: 12px;
  color: var(--accent);
  margin-bottom: 20px;
}

.approach__card-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.approach__card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   LOOKING FOR (CTA BAND)
   ============================================================ */
.looking {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
  text-align: center;
}

.looking__content {
  max-width: 720px;
  margin: 0 auto;
}

.looking__title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.looking__roles {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.looking__roles .highlight {
  color: var(--accent);
}

.looking__roles .divider {
  color: var(--text-tertiary);
  font-weight: 300;
  margin: 0 8px;
}

.looking__desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 72px 0;
}

.contact__content {
  max-width: 720px;
}

.contact__subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 16px;
  margin-bottom: 48px;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 720px;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.contact__link:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.contact__link-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact__link-body {
  flex: 1;
}

.contact__link-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.contact__link-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact__link-arrow {
  color: var(--text-tertiary);
  font-size: 1rem;
}

.contact__link:hover .contact__link-arrow {
  color: var(--accent);
}

/* Download CV card spans full width (5th card in 2-col grid) */
.contact__link--cv {
  grid-column: 1 / -1;
  /* Reset button defaults so it looks identical to <a> links */
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.footer__built {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer__available {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.2);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* Portrait: circle grows from its own centre */
@keyframes heroCircleIn {
  from {
    transform: translate(
        var(--hero-circle-translate-x),
        var(--hero-circle-translate-y)
      )
      scale(0);
  }
  to {
    transform: translate(
        var(--hero-circle-translate-x),
        var(--hero-circle-translate-y)
      )
      scale(1);
  }
}

/* Cutout: grows from circle centre (controlled by transform-origin) */
@keyframes heroCutoutIn {
  from {
    transform: translate(
        var(--hero-cutout-translate-x),
        var(--hero-cutout-translate-y)
      )
      scale(0);
  }
  to {
    transform: translate(
        var(--hero-cutout-translate-x),
        var(--hero-cutout-translate-y)
      )
      scale(1.05);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet landscape / small desktop: 768–1024px */
@media (max-width: 1024px) {
  .approach__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet portrait: 600–900px */
@media (max-width: 900px) {
  /* Hero: single column, portrait shown above text */
  .hero__inner {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  /* Portrait moves above text via order */
  .hero__portrait {
    --hero-circle-size: 220px;
    --hero-circle-radius: 110px;
    --hero-circle-translate-x: calc(-50% - 8px);
    --hero-circle-translate-y: calc(-50% + 30px);
    --hero-cutout-width: 435px;
    --hero-cutout-height: 290px;
    --hero-cutout-origin-x: 209px;
    --hero-cutout-origin-y: 175px;
    --hero-cutout-translate-x: -217px;
    --hero-cutout-translate-y: -145px;
    order: -1;
    height: 280px;
    justify-content: center;
  }

  .positioning__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .numbers__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .approach__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-item__inner {
    grid-template-columns: 180px 1fr;
    gap: 28px;
  }
}

/* Mobile: < 640px */
@media (max-width: 640px) {
  section {
    padding: 48px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 48px;
  }

  .hero__content {
    text-align: center;
  }

  .hero__badge,
  .hero__stack,
  .hero__tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .nav__links {
    display: none;
    flex: 0;
  }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 16px clamp(20px, 5vw, 80px);
    gap: 20px;
  }

  .nav__mobile-btn {
    display: flex;
  }

  /* Hide language controls from top bar on mobile - they live in the hamburger menu */
  .nav__controls .lang-toggle {
    display: none;
  }

  /* Show mobile extras row inside the dropdown */
  .nav__mobile-extras {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 4px;
    margin-top: 4px;
  }

  /* Active lang button inside hamburger menu needs same styling */
  .nav__mobile-extras .lang-btn.active {
    color: var(--text-primary);
    background: var(--accent-subtle);
    border-color: var(--accent);
  }

  .hero__name {
    font-size: clamp(2.75rem, 12vw, 4.5rem);
  }

  .hero__title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .positioning__grid {
    grid-template-columns: 1fr;
  }

  .numbers__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .skills__grid {
    grid-template-columns: 1fr;
  }

  .approach__grid {
    grid-template-columns: 1fr;
  }

  .timeline-item__inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-item__meta {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .timeline-item__body {
    padding-left: 20px;
    border-left-width: 1px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__content {
    max-width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .looking__roles {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
  }

  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
}

/* Small mobile: < 400px */
@media (max-width: 400px) {
  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .numbers__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .numbers__value {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }
}

/* ============================================================
   EDITORIAL REFRESH
   ============================================================ */
:root {
  --bg: #171311;
  --bg-elevated: #1d1815;
  --bg-card: #231d19;
  --bg-card-hover: #2b241f;
  --text-primary: #f4ede3;
  --text-secondary: #c7b8a7;
  --text-tertiary: #938474;
  --accent: #d36e43;
  --accent-hover: #ee8255;
  --accent-subtle: rgba(211, 110, 67, 0.12);
  --border: rgba(244, 237, 227, 0.12);
  --border-strong: rgba(244, 237, 227, 0.2);
  --nav-bg: rgba(23, 19, 17, 0.92);
  --tag-bg: rgba(211, 110, 67, 0.08);
  --tag-text: #ffd2bf;
  --gradient-hero: radial-gradient(
      circle at 12% 18%,
      rgba(211, 110, 67, 0.22),
      transparent 34%
    ),
    radial-gradient(circle at 88% 16%, rgba(105, 87, 67, 0.16), transparent 28%);
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.25);
  --grid-line: rgba(244, 237, 227, 0.04);
  color-scheme: dark;
}

body.light {
  --bg: #f2ece2;
  --bg-elevated: #ece3d6;
  --bg-card: #f7f1e7;
  --bg-card-hover: #efe6d9;
  --text-primary: #1f1a16;
  --text-secondary: #5e5247;
  --text-tertiary: #8e7f71;
  --accent: #af4f2d;
  --accent-hover: #8b3e21;
  --accent-subtle: rgba(175, 79, 45, 0.08);
  --border: rgba(31, 26, 22, 0.12);
  --border-strong: rgba(31, 26, 22, 0.22);
  --nav-bg: rgba(242, 236, 226, 0.92);
  --tag-bg: rgba(175, 79, 45, 0.06);
  --tag-text: #8b3e21;
  --gradient-hero: radial-gradient(
      circle at 12% 18%,
      rgba(175, 79, 45, 0.16),
      transparent 36%
    ),
    radial-gradient(circle at 88% 16%, rgba(48, 84, 70, 0.1), transparent 28%);
  --shadow-card: 0 18px 44px rgba(67, 48, 29, 0.1);
  --grid-line: rgba(31, 26, 22, 0.04);
  color-scheme: light;
}

html {
  scroll-padding-top: 84px;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  line-height: 1.55;
  background: var(--gradient-hero),
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 95px,
      var(--grid-line) 95px,
      var(--grid-line) 96px
    ),
    var(--bg);
  background-attachment: fixed;
}

section {
  padding: 80px 0;
}

.container,
.container--wide {
  max-width: 1180px;
  padding: 0 clamp(24px, 5vw, 72px);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.section-label,
.positioning__title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 10ch;
}

.nav {
  position: sticky;
  height: auto;
  background: var(--nav-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.nav__inner {
  min-height: 66px;
  padding: 10px clamp(24px, 5vw, 72px);
  gap: 38px;
}

.nav__logo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav__links {
  justify-content: flex-start;
  gap: 50px;
}

.nav__link,
.lang-btn,
.theme-toggle,
.nav__mobile-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav__link {
  padding: 0;
  border-radius: 0;
}

.nav__link:hover,
.nav__link.active {
  color: var(--accent);
  background: transparent;
}

.nav__controls {
  gap: 10px;
}

.lang-toggle {
  gap: 6px;
}

.lang-btn,
.theme-toggle,
.nav__mobile-btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
}

.lang-btn {
  padding: 7px 8px;
}

.lang-btn.active {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: transparent;
}

.theme-toggle,
.nav__mobile-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav__mobile-btn {
  display: none;
}

.theme-toggle:hover,
.nav__mobile-btn:hover,
.lang-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero {
  min-height: auto;
  padding: 44px 0 68px;
  border-bottom: 0;
}

.hero__content {
  width: 100%;
  padding-top: 28px;
  /* border-top: 2px solid var(--accent); */
  animation: none;
  text-align: left;
}

.hero__badge {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 22px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  box-shadow: none;
  background: var(--accent);
}

.hero__name {
  max-width: 10ch;
  margin-bottom: 14px;
  font-size: clamp(3.3rem, 8vw, 6.4rem);
  line-height: 0.92;
}

.hero__title {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.hero__stack {
  margin: 22px 0 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero__tagline {
  max-width: 34rem;
  margin-bottom: 34px;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  line-height: 1.65;
}

.hero__actions {
  gap: 12px;
}

.hero__inner {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 390px);
  gap: 48px;
  align-items: end;
}

.hero__portrait {
  min-height: 0;
  height: 540px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.hero__portrait::before {
  content: none;
}

.hero__circle {
  top: 50%;
  left: 50%;
  width: var(--hero-circle-size);
  height: var(--hero-circle-size);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translate(
    var(--hero-circle-translate-x),
    var(--hero-circle-translate-y)
  );
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.45);
  animation: heroCircleIn 0.5s ease 0.1s both;
}

.hero__circle-bg {
  object-position: 22% 50%;
  filter: none;
}

.hero__cutout-wrap {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: var(--hero-cutout-width);
  height: var(--hero-cutout-height);
  transform: translate(
      var(--hero-cutout-translate-x),
      var(--hero-cutout-translate-y)
    )
    scale(1.05);
  transform-origin: var(--hero-cutout-origin-x) var(--hero-cutout-origin-y);
  animation: heroCutoutIn 0.5s ease 0.1s both;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.4));
}

.hero__cutout-layer--inner {
  -webkit-mask-image: radial-gradient(
    circle var(--hero-circle-radius) at var(--hero-cutout-origin-x)
      var(--hero-cutout-origin-y),
    #000 99.2%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle var(--hero-circle-radius) at var(--hero-cutout-origin-x)
      var(--hero-cutout-origin-y),
    #000 99.2%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero__cutout-layer--breakout {
  display: block;
  -webkit-mask-image: conic-gradient(
    from 180deg at var(--hero-cutout-origin-x) var(--hero-cutout-origin-y),
    #000 0deg 283deg,
    transparent 0deg 43deg
  );
  -webkit-mask-composite: source-in;
  mask-image: conic-gradient(
    from 180deg at var(--hero-cutout-origin-x) var(--hero-cutout-origin-y),
    #000 0deg 283deg,
    transparent 0deg 43deg
  );
  mask-composite: intersect;
}

.hero__cutout {
  object-fit: fill;
  object-position: 50% 50%;
}

.btn {
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn--primary {
  background: var(--accent);
  color: #fff5ef;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
}

.btn--secondary:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
}

.positioning,
.numbers,
.experience,
.skills,
.contact {
  background: transparent;
  border-bottom: 0;
}

.positioning {
  border-top: 0;
  padding-bottom: 42px;
}

.positioning__title {
  text-align: left;
  margin-bottom: 24px;
}

.positioning__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.positioning__card {
  padding: 0 0 28px;
  background: transparent;
  border-bottom: 1px solid var(--border);
}

.positioning__card:hover {
  background: transparent;
}

.positioning__card-icon {
  display: none;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.positioning__card-title {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.positioning__card-desc {
  max-width: 100%;
  font-size: 0.98rem;
  line-height: 1.6;
  letter-spacing: 0.8px;
}

.numbers {
  padding-top: 24px;
  padding-bottom: 0;
}

.numbers__grid {
  gap: 0;
  text-align: left;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.numbers__item {
  min-height: 160px;
  align-items: flex-start;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
}

.numbers__item:last-child {
  border-right: 0;
}

.numbers__value {
  margin-bottom: 12px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.numbers__label {
  max-width: 16ch;
  font-size: 1.25rem;
  line-height: 1.5;
}

.experience {
  border-top: 0;
  padding-top: 92px;
}

.timeline-item {
  opacity: 1;
  transform: none;
  transition: none;
  padding-bottom: 42px;
}

.timeline-item__inner {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
}

.timeline-item__meta {
  padding-top: 16px;
  text-align: left;
}

.timeline-item__period {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-item__company {
  font-size: 0.98rem;
}

.timeline-item__body {
  padding-top: 16px;
  padding-left: 0;
  border-top: 1px solid var(--border);
  border-left: 0;
}

.timeline-item:first-child .timeline-item__body {
  border-top: 0;
}

.timeline-item__body::before {
  display: none;
}

.timeline-item__role {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.timeline-item__summary {
  max-width: 52ch;
  margin-bottom: 16px;
  letter-spacing: 0.8px;
}

.timeline-item__tags {
  gap: 8px 10px;
  margin-bottom: 16px;
}

.tag,
.skill-tag {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text-secondary);
}

.tag {
  color: var(--accent);
  background: var(--tag-bg);
}

.skill-tag--primary {
  background: var(--accent-subtle);
  color: var(--accent);
  border-color: rgba(211, 110, 67, 0.25);
}

body.light .skill-tag--primary {
  border-color: rgba(175, 79, 45, 0.22);
}

.timeline-item__toggle {
  padding: 0;
  margin-top: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-item__toggle:hover,
.timeline-item__toggle[aria-expanded='true'] {
  background: transparent;
  border-color: transparent;
  color: var(--accent-hover);
}

.timeline-item__bullets {
  padding-top: 16px;
}

.timeline-item__bullets li {
  padding-left: 18px;
  font-size: 15px;
}

.skills {
  border-top: 0;
  padding-top: 0;
}

.skills__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.skills__group {
  padding: 22px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: 18px;
  background: transparent;
}

.skills__group:hover {
  background: transparent;
}

.skills__group-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  color: var(--text-primary);
  letter-spacing: 0.14em;
}

.contact {
  padding-top: 0;
}

.contact__content {
  max-width: 960px;
}

.contact__subtitle {
  max-width: 44ch;
  margin-bottom: 10px;
}

.contact__grid {
  max-width: none;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

.contact__link {
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.contact__link:hover {
  background: transparent;
  border-color: var(--border);
  color: var(--accent);
}

.contact__link-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-subtle);
}

.contact__link-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.contact__link-value {
  font-size: 1rem;
}

.contact__link-arrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.84rem;
}

.contact__link--cv {
  grid-column: auto;
}

.footer {
  padding: 24px 0 40px;
}

.footer__copy,
.footer__available {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
  background: var(--accent);
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__portrait {
    order: -1;
  }

  .positioning__grid,
  .skills__grid {
    grid-template-columns: 1fr;
  }

  .numbers__grid {
    grid-template-columns: repeat(2, 1fr);
    border-bottom: 0;
  }

  .numbers__item {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .numbers__item:nth-child(2n) {
    border-right: 0;
  }

  .numbers__item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .timeline-item__inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline-item__meta {
    padding-top: 0;
  }
}

@media (max-width: 900px) {
  .hero__portrait {
    min-height: 280px;
    height: 280px;
  }
}

@media (max-width: 640px) {
  section {
    padding: 56px 0;
  }

  .nav__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav__links.open {
    top: 66px;
    padding: 16px 20px;
    gap: 16px;
    background: var(--bg-card);
  }

  .nav__mobile-btn {
    display: inline-flex;
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 56px;
  }

  .hero__content {
    padding-top: 20px;
    text-align: left;
  }

  .hero__badge,
  .hero__stack,
  .hero__tagline {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__name {
    font-size: clamp(2.7rem, 15vw, 4.5rem);
  }

  .hero__actions {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
  }

  .btn {
    width: auto;
  }

  .positioning__grid,
  .skills__grid,
  .numbers__grid {
    grid-template-columns: 1fr;
  }

  .numbers__grid {
    border-bottom: 0;
  }

  .numbers__item {
    min-height: auto;
    padding: 28px 24px 28px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .numbers__item:last-child {
    border-bottom: 0;
  }

  .timeline-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .contact__link {
    align-items: flex-start;
  }

  .footer__inner {
    gap: 12px;
  }
}
