@import url('https://fonts.googleapis.com/css2?family=Courgette&display=swap');

:root {
  --bg: #08090d;
  --bg-soft: #0e1017;
  --surface: rgba(18, 20, 29, 0.78);
  --surface-solid: #12141d;
  --surface-strong: #191c28;
  --text: #f6f7fb;
  --text-soft: #a9adba;
  --text-muted: #747986;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #ff5c35;
  --accent-two: #ff2e88;
  --accent-three: #8d6cff;
  --lime: #c8ff63;
  --success: #69e4a6;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shell: min(1180px, calc(100vw - 40px));
  --header-height: 82px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[data-theme="light"] {
  --bg: #f4f3ef;
  --bg-soft: #eae8e1;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-solid: #ffffff;
  --surface-strong: #eeeae2;
  --text: #111217;
  --text-soft: #555967;
  --text-muted: #747784;
  --line: rgba(15, 16, 20, 0.1);
  --line-strong: rgba(15, 16, 20, 0.18);
  --shadow: 0 30px 80px rgba(64, 54, 38, 0.14);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 30px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 92, 53, 0.09), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(141, 108, 255, 0.08), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: white;
}
.brand-copy strong {
  font-family: "Sora", cursive;
  font-weight: 400;
  font-style: normal;

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

.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;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 120;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  left: 0;
  top: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 92, 53, 0.1), transparent 68%);
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 200;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-two), var(--accent-three));
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section-pad {
  padding-block: 120px;
  position: relative;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-color: var(--line);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
}

.header-shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(255, 92, 53, 0.18), rgba(141, 108, 255, 0.12));
  border-radius: 13px;
  font-family: "DM Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.brand-copy {
  display: grid;
  line-height: 1.25;
}

.brand-copy strong {
  font-size: 13px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  position: relative;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--text);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.menu-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.icon-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="dark"] .sun-icon,
html[data-theme="light"] .moon-icon {
  display: none;
}

.menu-toggle {
  display: none;
  position: relative;
}

.menu-toggle span:not(.sr-only) {
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: 0.3s var(--ease);
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:nth-child(2) {
  transform: translateY(4px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

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

.mobile-menu {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-small {
  min-height: 40px;
  padding-inline: 15px;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  box-shadow: 0 14px 32px rgba(255, 67, 89, 0.22);
}

.button-primary:hover {
  box-shadow: 0 18px 44px rgba(255, 67, 89, 0.3);
}

.button-secondary,
.button-ghost {
  border-color: var(--line);
  background: var(--surface);
  backdrop-filter: blur(10px);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.hero {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 78px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  align-items: center;
  gap: 70px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(105, 228, 166, 0.12), 0 0 18px rgba(105, 228, 166, 0.6);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.journey-intro h2,
.stack-copy h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(3.2rem, 6.2vw, 6.7rem);
  line-height: 0.98;
  letter-spacing: -0.072em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.4rem, 6.3vw, 6.9rem);
}

.text-gradient {
  display: block;
  padding-bottom: 0.08em;
  color: transparent;
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-two) 45%, var(--accent-three) 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-intro {
  max-width: 670px;
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 52px;
}

.hero-metrics div {
  display: grid;
  gap: 2px;
}

.hero-metrics strong {
  font-size: 24px;
  letter-spacing: -0.05em;
}

.hero-metrics span {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.orb-one {
  width: 430px;
  height: 430px;
  right: 6%;
  top: 9%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 92, 53, 0.21), rgba(255, 46, 136, 0.08) 48%, transparent 69%);
  animation: floatOrb 9s ease-in-out infinite;
}

.orb-two {
  width: 300px;
  height: 300px;
  left: -120px;
  bottom: 2%;
  background: radial-gradient(circle, rgba(141, 108, 255, 0.12), transparent 70%);
  animation: floatOrb 12s ease-in-out infinite reverse;
}

.hero-visual {
  position: relative;
  z-index: 1;
  perspective: 1200px;
}

.visual-frame {
  position: relative;
  min-height: 610px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px);
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
}

.visual-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(20, 22, 31, 0.96), rgba(10, 11, 16, 0.84));
}

html[data-theme="light"] .visual-frame::before {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(240, 237, 230, 0.9));
}

.visual-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 16px;
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.window-dots i:first-child {
  background: var(--accent);
}

.window-dots i:nth-child(2) {
  background: #ffca54;
}

.window-dots i:nth-child(3) {
  background: var(--success);
}

.visual-signal {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
}

.visual-signal i {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}

.profile-visual {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  padding: 16px 0 0;
}

.avatar-shell {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 92, 53, 0.21), transparent 35%), linear-gradient(140deg, rgba(255, 46, 136, 0.08), rgba(141, 108, 255, 0.08));
}

.avatar-grid {
  position: absolute;
  inset: 0;
  /* opacity: 0.26; */
  opacity: 1;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url('./assets/djeb.png'), linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  /* background-size: 28px 28px; */
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.avatar-shell>span {
  position: relative;
  z-index: 1;
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.09em;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-soft);
}

.avatar-shell>small {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.profile-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 10px;
}

.mono-label {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-info h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.profile-info>p:last-child {
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.7;
}

.terminal-card {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.18);
  font-family: "DM Mono", monospace;
}

html[data-theme="light"] .terminal-card {
  background: rgba(255, 255, 255, 0.38);
}

.terminal-card>div:first-child {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.terminal-prompt {
  color: var(--accent);
}

#typing-line {
  min-height: 30px;
  margin: 7px 0 18px;
  font-size: 18px;
  font-weight: 500;
}

#typing-line::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 17px;
  margin-left: 5px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 0.9s steps(1) infinite;
}

.terminal-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 8px;
  text-transform: uppercase;
}

.floating-chip {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid) 76%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  color: var(--text-soft);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  animation: chipFloat 5s ease-in-out infinite;
}

.chip-a {
  top: 20%;
  left: -42px;
}

.chip-b {
  top: 46%;
  right: -42px;
  animation-delay: -1.8s;
}

.chip-c {
  bottom: 14%;
  left: -30px;
  animation-delay: -3s;
}

.trust-line {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 34px;
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.trust-line>p {
  margin: 0;
  color: var(--text-muted);
  font-size: 10px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.trust-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.marquee-track span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.marquee-track i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.section-heading {
  display: grid;
  grid-template-columns: 2fr;
  width: 75%;
  gap: 20px;
  /* gap: 80px; */
  align-items: end;
  margin-bottom: 64px;
}

.section-heading h2,
.journey-intro h2,
.stack-copy h2,
.contact-panel h2 {
  font-size: clamp(2.65rem, 5.1vw, 5.3rem);
}

.section-heading>p {
  margin: 0 0 4px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.85;
}

.profile-bento {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.78fr;
  grid-template-areas: "main main quote" "main main location" "value value location";
  gap: 16px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface) 70%, transparent));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.07), transparent 34%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bento-card:hover::before {
  opacity: 1;
}

.card-index {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
  font-size: 9px;
}

.profile-main {
  grid-area: main;
  min-height: 490px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, rgba(255, 92, 53, 0.12), var(--surface) 48%);
}

.profile-main h3 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.profile-main p:not(.mono-label) {
  max-width: 710px;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.workflow-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
}

.workflow-line span {
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.workflow-line i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), var(--accent), var(--line));
}

.quote-card {
  grid-area: quote;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, rgba(141, 108, 255, 0.16), var(--surface));
}

.quote-card blockquote {
  margin: 20px 0 28px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.04em;
}

.quote-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 10px;
}
.location-card {
  position: relative;
  isolation: isolate;
  z-index: 0;
  grid-area: location;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  min-height: 400px;
  overflow: hidden;
}

/* Image toujours visible */
.location-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;

  background-image: url("https://instagram.frun6-1.fna.fbcdn.net/v/t51.82787-15/607415321_18073086911612963_8134570316402803063_n.heic?stp=dst-jpg_e35_tt6&_nc_cat=106&ig_cache_key=Mzc5OTMwOTU3OTQwMjkwMzU3MQ%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNBUk9VU0VMX0lURU0ueHBpZHMuMTQ0MC5zZHIucmVndWxhcl9waG90by5DMyJ9&_nc_ohc=GdbX2HWSnXkQ7kNvwHtc0Em&_nc_oc=Adrd-KW1Ir53vsULx-w3bO59Bs3vksiblDCSnU6pvzvcCAsDzZi0cGLYzysud3viMXY2arj5ZRvclm40SxBzxe2N&_nc_zt=23&_nc_ht=instagram.frun6-1.fna&_nc_gid=yd1sTjKy96L2z93d4Wl4aA&_nc_ss=7b689&oh=00_Af_XXajk2e1hN8u3JXdBrc2Kab78rZWtsTwY9DYC3Zc-4g&oe=6A415699");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  opacity: 1;
  transform: scale(1.01);
  transition:
    transform 0.6s var(--ease),
    filter 0.6s var(--ease);
}

/* Voile sombre pour garder le texte lisible */
.location-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    linear-gradient(
      180deg,
      rgba(8, 9, 13, 0.2) 0%,
      rgba(8, 9, 13, 0.4) 45%,
      rgba(8, 9, 13, 0.9) 100%
    );
  pointer-events: none;
}

/* Animation au survol, sans masquer l’image */
.location-card:hover::before {
  opacity: 1;
  transform: scale(1.07);
  filter: saturate(1.1) contrast(1.05);
}

.location-card > * {
  position: relative;
  z-index: 2;
}

.location-card h3,
.location-card p,
.location-card .mono-label {
  color: white;
}

.location-card h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.location-card p:not(.mono-label) {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 12px;
}

.location-radar {
  position: relative;
  align-self: center;
  width: 150px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-block: 14px 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.location-radar::before,
.location-radar::after,
.location-radar i {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.location-radar::before {
  inset: 24px;
}

.location-radar::after {
  inset: 50px;
}

.location-radar i:nth-child(1) {
  width: 1px;
  height: 100%;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
}

.location-radar i:nth-child(2) {
  width: 100%;
  height: 1px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.location-radar i:nth-child(3) {
  inset: 0;
  border: 0;
  background: conic-gradient(from 20deg, transparent 0 80%, rgba(200, 255, 99, 0.14));
  animation: radarSpin 5s linear infinite;
}

.location-radar span {
  position: relative;
  z-index: 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 7px rgba(200, 255, 99, 0.1), 0 0 24px rgba(200, 255, 99, 0.5);
}

.value-card {
  grid-area: value;
  min-height: 250px;
}

.clean-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.clean-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13px;
}

.clean-list span {
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 9px;
}

.expertise-section {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018), transparent);
}

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

.expertise-row {
  display: grid;
  grid-template-columns: 56px minmax(230px, 1fr) minmax(260px, 0.85fr) minmax(230px, 0.8fr);
  align-items: center;
  gap: 26px;
  padding: 30px 10px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, transform 0.3s var(--ease);
}

.expertise-row:hover,
.expertise-row:focus {
  background: linear-gradient(90deg, rgba(255, 92, 53, 0.06), transparent);
  transform: translateX(8px);
  outline: none;
}

.expertise-number {
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
  font-size: 10px;
}

.expertise-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.expertise-title h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.expertise-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.expertise-icon svg {
  width: 19px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.expertise-row>p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.7;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.expertise-tags span,
.tag-list span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.projects-heading {
  align-items: end;
}

.project-filters {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.filter-button {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 610px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  transition: transform 0.4s var(--ease), border-color 0.3s ease, opacity 0.35s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: var(--line-strong);
}

.project-card.is-hidden {
  display: none;
}

.project-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 540px;
}

.project-visual {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: grid;
  place-items: center;
  background: var(--surface-strong);
}

.project-featured .project-visual {
  min-height: 100%;
}

.project-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}

.project-featured .project-content {
  justify-content: center;
  padding: 52px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-content h3 {
  margin: 22px 0 12px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.project-card:not(.project-featured) .project-content h3 {
  font-size: 30px;
}

.project-content>p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.8;
}

.project-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 34px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-footer>a,
.project-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: 0.3s var(--ease);
}

.project-footer>a:hover {
  transform: rotate(8deg);
  background: var(--text);
  color: var(--bg);
}

.project-footer svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 3;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 9, 13, 0.5);
  color: white;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.kazajob-visual {
  padding: 46px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 92, 53, 0.35), transparent 30%), linear-gradient(145deg, #ff4f2a, #ff286f 54%, #5d3fd7);
}

.browser-mockup {
  width: min(590px, 100%);
  aspect-ratio: 1.3;
  overflow: hidden;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: 34px 1fr;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: #12131a;
  box-shadow: 0 35px 60px rgba(0, 0, 0, 0.34);
  transform: perspective(900px) rotateY(4deg) rotateX(3deg);
}

.browser-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #8b8d97;
  font-family: "DM Mono", monospace;
  font-size: 7px;
}

.browser-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.browser-bar span {
  margin-left: auto;
  margin-right: auto;
}

.mock-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-sidebar strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  color: white;
  font-size: 11px;
}

.mock-sidebar span {
  width: 19px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.mock-content {
  padding: 14px;
}

.mock-top {
  display: flex;
  justify-content: space-between;
}

.mock-top span:first-child {
  width: 88px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.17);
}

.mock-top span:last-child {
  width: 56px;
  height: 18px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
}

.mock-hero-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 92, 53, 0.18), rgba(255, 46, 136, 0.16));
}

.mock-hero-block small {
  color: #ff7b5e;
  font-size: 6px;
  letter-spacing: 0.12em;
}

.mock-hero-block h4 {
  margin: 7px 0 0;
  color: white;
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.mock-hero-block b {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
  font-size: 50px;
  letter-spacing: -0.09em;
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.mock-cards span {
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.australe-visual {
  padding: 36px;
  background: linear-gradient(140deg, #f4eddf, #f0ccb5 45%, #20243d 45.2%, #151728);
}

.landing-mockup {
  width: 90%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: center;
}

.landing-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.landing-copy small {
  color: #875c4e;
  font-size: 7px;
  letter-spacing: 0.14em;
}

.landing-copy strong {
  margin-top: 12px;
  color: #1e1f28;
  font-size: 27px;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.landing-copy span {
  display: block;
  width: 72%;
  height: 7px;
  margin-top: 13px;
  border-radius: 999px;
  background: rgba(31, 32, 41, 0.13);
}

.landing-copy span:last-child {
  width: 46%;
  margin-top: 7px;
}

.landing-character {
  display: grid;
  place-items: center;
  aspect-ratio: 0.78;
  border-radius: 80px 80px 22px 22px;
  background: linear-gradient(160deg, #ffcf6b, #ff6e6e 60%, #7b4cc6);
  box-shadow: 0 22px 40px rgba(27, 28, 38, 0.2);
}

.landing-character span {
  color: white;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.it-visual {
  padding: 30px;
  background: radial-gradient(circle at 80% 20%, rgba(200, 255, 99, 0.18), transparent 28%), linear-gradient(145deg, #121c1c, #0e1117);
}

.it-dashboard {
  width: 94%;
  display: grid;
  grid-template-columns: 50px 1fr;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #151a20;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.3);
}

.it-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.it-sidebar i {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.it-sidebar i:first-child {
  background: var(--lime);
}

.it-main {
  padding: 22px;
}

.it-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.it-kpis span {
  display: grid;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}

.it-kpis b {
  color: white;
  font-size: 22px;
}

.it-kpis small {
  color: #7f8990;
  font-size: 7px;
  text-transform: uppercase;
}

.it-chart {
  height: 94px;
  display: flex;
  align-items: end;
  gap: 7px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.it-chart i {
  flex: 1;
  height: 30%;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(to top, rgba(200, 255, 99, 0.22), var(--lime));
}

.it-chart i:nth-child(2) {
  height: 54%;
}

.it-chart i:nth-child(3) {
  height: 42%;
}

.it-chart i:nth-child(4) {
  height: 76%;
}

.it-chart i:nth-child(5) {
  height: 62%;
}

.it-chart i:nth-child(6) {
  height: 90%;
}

.it-table {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.it-table span {
  height: 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.velt-visual {
  min-height: 330px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 92, 53, 0.38), transparent 25%), radial-gradient(circle at 80% 75%, rgba(141, 108, 255, 0.42), transparent 28%), #0b0b10;
  color: white;
}

.velt-word {
  position: relative;
  z-index: 2;
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -0.1em;
}

.velt-word span {
  position: absolute;
  top: 8px;
  right: -20px;
  font-size: 12px;
  letter-spacing: 0;
}

.velt-visual p {
  position: absolute;
  left: 28px;
  bottom: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.velt-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.orbit-a {
  width: 260px;
  height: 120px;
  transform: rotate(18deg);
}

.orbit-b {
  width: 200px;
  height: 280px;
  transform: rotate(62deg);
}

.journey-section {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 38%, transparent);
}

.journey-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 100px;
}

.journey-intro {
  position: sticky;
  top: calc(var(--header-height) + 48px);
  align-self: start;
}

.journey-intro h2 {
  font-size: clamp(2.6rem, 4.7vw, 4.8rem);
}

.journey-intro>p:not(.eyebrow) {
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  margin-top: 28px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 700;
}

.timeline {
  position: relative;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 90px 30px 1fr;
  gap: 12px;
  min-height: 245px;
}

.timeline-year {
  padding-top: 4px;
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  text-align: right;
  text-transform: uppercase;
}

.timeline-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-marker i {
  position: relative;
  z-index: 2;
  display: block;
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 20px rgba(255, 92, 53, 0.35);
}

.timeline-content {
  padding: 0 0 70px 24px;
}

.timeline-content h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.timeline-content>p:last-child {
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 13px;
}

.stack-panel {
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
  padding: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 90% 10%, rgba(141, 108, 255, 0.15), transparent 30%), radial-gradient(circle at 10% 90%, rgba(255, 92, 53, 0.12), transparent 30%), var(--surface);
}

.stack-copy h2 {
  font-size: clamp(2.4rem, 4.3vw, 4.5rem);
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.stack-cloud span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid) 62%, transparent);
  color: var(--text-soft);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
  transition: 0.3s var(--ease);
}

.stack-cloud span:hover {
  transform: translateY(-4px) rotate(-1deg);
  border-color: var(--accent);
  color: var(--text);
}

.contact-section {
  padding-top: 40px;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: 100px 60px;
  border: 1px solid var(--line-strong);
  border-radius: 40px;
  background: linear-gradient(145deg, rgba(255, 92, 53, 0.14), rgba(255, 46, 136, 0.08) 38%, rgba(141, 108, 255, 0.13)), var(--surface);
  text-align: center;
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid var(--line);
  border-radius: 29px;
  pointer-events: none;
}

.contact-panel>*:not(.contact-orbit) {
  position: relative;
  z-index: 2;
}

.contact-panel h2 {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(3rem, 6vw, 6rem);
}

.contact-panel>p:not(.eyebrow) {
  max-width: 700px;
  margin: 28px auto 0;
  color: var(--text-soft);
  font-size: 14px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 38px;
}

.copy-feedback {
  display: block;
  min-height: 18px;
  margin-top: 14px;
  color: var(--success);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.contact-orbit {
  position: absolute;
  inset: 50%;
  width: 720px;
  height: 720px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact-orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.contact-orbit span:nth-child(2) {
  inset: 100px;
}

.contact-orbit span:nth-child(3) {
  inset: 210px;
}

.site-footer {
  padding: 34px 0 22px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr auto;
  gap: 50px;
  align-items: center;
}

.footer-grid>p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--text-soft);
  font-size: 10px;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(20px, 26px, 0) scale(1.08);
  }
}

@keyframes chipFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes radarSpin {
  to {
    transform: rotate(1turn);
  }
}

@media (max-width: 1040px) {
  :root {
    --shell: min(100% - 32px, 920px);
  }

  .desktop-nav,
  .header-actions .button-ghost {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-menu {
    position: fixed;
    inset: var(--header-height) 16px auto;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: 0.3s var(--ease);
  }

  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-menu a {
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-menu a:hover {
    background: var(--surface-strong);
    color: var(--text);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

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

  .hero-visual {
    width: min(700px, 100%);
    margin-inline: auto;
  }

  .chip-a {
    left: 12px;
  }

  .chip-b {
    right: 12px;
  }

  .chip-c {
    left: 20px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading>p {
    max-width: 680px;
  }

  .profile-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: "main main" "quote location" "value location";
  }

  .expertise-row {
    grid-template-columns: 42px 1fr 1fr;
  }

  .expertise-tags {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }

  .project-featured {
    grid-template-columns: 1fr;
  }

  .project-featured .project-visual {
    min-height: 480px;
  }

  .journey-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .journey-intro {
    position: static;
    max-width: 760px;
  }

  .stack-panel {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 24px, 640px);
    --header-height: 72px;
  }

  .section-pad {
    padding-block: 84px;
  }

  .brand-copy {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-height) + 60px);
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .hero-intro {
    font-size: 15px;
  }

  .hero-cta {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-metrics {
    gap: 24px;
  }

  .hero-metrics div {
    min-width: calc(50% - 12px);
  }

  .visual-frame {
    min-height: auto;
    border-radius: 25px;
  }

  .profile-visual {
    grid-template-columns: 1fr;
  }

  .avatar-shell {
    min-height: 300px;
  }

  .profile-info {
    padding: 16px 4px;
  }

  .floating-chip {
    display: none;
  }

  .terminal-meta {
    flex-direction: column;
  }

  .trust-line {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 56px;
  }

  .section-heading h2,
  .journey-intro h2,
  .stack-copy h2 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .profile-bento {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "quote" "location" "value";
  }

  .profile-main {
    min-height: 560px;
  }

  .workflow-line {
    flex-wrap: wrap;
  }

  .workflow-line i {
    min-width: 30px;
  }

  .location-card {
    min-height: 430px;
  }

  .clean-list {
    grid-template-columns: 1fr;
  }

  .expertise-row {
    grid-template-columns: 34px 1fr;
    gap: 18px 12px;
    padding: 28px 4px;
  }

  .expertise-row>p,
  .expertise-tags {
    grid-column: 2;
  }

  .expertise-title {
    align-items: flex-start;
  }

  .expertise-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .projects-heading {
    margin-bottom: 40px;
  }

  .project-filters {
    justify-content: flex-start;
  }

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

  .project-card {
    min-height: 560px;
  }

  .project-featured {
    grid-column: auto;
  }

  .project-featured .project-visual {
    min-height: 360px;
  }

  .project-featured .project-content {
    padding: 28px;
  }

  .project-content h3,
  .project-card:not(.project-featured) .project-content h3 {
    font-size: 30px;
  }

  .kazajob-visual {
    padding: 24px;
  }

  .browser-mockup {
    grid-template-columns: 42px 1fr;
  }

  .mock-hero-block b {
    display: none;
  }

  .mock-cards {
    grid-template-columns: 1fr 1fr;
  }

  .mock-cards span:last-child {
    display: none;
  }

  .landing-mockup {
    width: 100%;
  }

  .landing-copy strong {
    font-size: 20px;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    grid-template-columns: 30px 1fr;
    gap: 0;
    min-height: auto;
  }

  .timeline-year {
    grid-column: 2;
    grid-row: 1;
    padding: 0 0 10px 20px;
    text-align: left;
  }

  .timeline-marker {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .timeline-content {
    grid-column: 2;
    padding: 0 0 58px 20px;
  }

  .stack-panel {
    padding: 36px 24px;
    border-radius: 26px;
  }

  .stack-cloud {
    justify-content: flex-start;
  }

  .contact-panel {
    padding: 76px 24px;
    border-radius: 28px;
  }

  .contact-panel::before {
    inset: 10px;
    border-radius: 20px;
  }

  .contact-panel h2 {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .contact-actions {
    display: grid;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-links {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 430px) {
  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-metrics div {
    min-width: 0;
  }

  .project-meta {
    flex-direction: column;
  }

  .project-footer {
    align-items: flex-start;
  }

  .tag-list {
    max-width: 80%;
  }

  .landing-mockup {
    grid-template-columns: 1fr;
  }

  .landing-character {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-glow {
    display: none;
  }
}