:root {
  --background: #0c1220;
  --background-deep: #080f1d;
  --surface: #141a2a;
  --surface-strong: #111827;
  --text-primary: #f0f3f4;
  --text-secondary: #aab1bd;
  --text-dim: #707b8d;
  --accent-cyan: #10cce6;
  --accent-pale: #baf3fb;
  --border-color: rgba(129, 161, 180, 0.21);
  --glow-color: rgba(45, 211, 227, 0.42);
  --page-width: 1440px;
  --gutter: 44px;
  --header-height: 72px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable",
    "Segoe UI", Arial, sans-serif;
  --font-mono: Consolas, "Courier New", monospace;
}

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

html {
  background: var(--background-deep);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 73% 7%, rgba(25, 76, 93, 0.11), transparent 22%),
    linear-gradient(180deg, #0c1220 0%, #0c1220 47%, #08101e 48%, #0b1221 100%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: rgba(16, 204, 230, 0.35);
  color: #fff;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
}

img {
  max-width: 100%;
}

section[id] {
  scroll-margin-top: var(--header-height);
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 2;
}

.section-shell,
.nav-shell {
  width: min(100%, var(--page-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Page atmosphere */
.background-effects {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  mix-blend-mode: screen;
}

.ambient-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  opacity: 0.09;
  filter: blur(120px);
}

.ambient-glow-one {
  top: 4%;
  right: 5%;
  background: #2ba9bd;
}

.ambient-glow-two {
  top: 59%;
  left: -14%;
  background: #225a8d;
}

/* ────────────────────────────────────────────────
   Header / Navbar
   ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid rgba(89, 111, 142, 0.2);
  background: rgba(11, 17, 31, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0;
  height: 100%;
}

.brand {
  width: max-content;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.nav-links a {
  position: relative;
  color: #a8adb7;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a.active {
  color: var(--accent-cyan);
  background: rgba(16, 204, 230, 0.1);
}

.download-button {
  justify-self: end;
  margin-left: 28px;
  min-width: 100px;
  padding: 8px 16px;
  border: 1px solid rgba(16, 204, 230, 0.3);
  border-radius: 999px;
  background: transparent;
  color: #e6e9ec;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.download-button:hover {
  background: rgba(16, 204, 230, 0.1);
  border-color: rgba(16, 204, 230, 0.6);
  color: var(--accent-cyan);
}

.menu-button {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #121827;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.menu-button:hover {
  border-color: var(--accent-cyan);
}

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

/* ────────────────────────────────────────────────
   Hero
   ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(100vh, 900px);
  overflow: hidden;
  background: #0c1220;
}

.hero::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 69% 20%, rgba(74, 189, 203, 0.1), transparent 16%),
    linear-gradient(180deg, transparent 72%, rgba(8, 15, 29, 0.13));
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 900px;
  width: 100%;
  padding-top: clamp(120px, 18vw, 237px);
}

.eyebrow {
  margin: 0;
  color: #d4d8de;
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 13px;
  border: 1px solid rgba(132, 151, 172, 0.28);
  border-radius: 999px;
  background: rgba(9, 14, 26, 0.48);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.24);
}

.hero-eyebrow span {
  color: #c5fbff;
  font-size: 10px;
}

.hero h1 {
  max-width: 900px;
  margin: clamp(20px, 3vw, 42px) 0 clamp(14px, 2vw, 28px);
  font-size: clamp(2.5rem, 5vw + 1rem, 5.5rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.97;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.7);
}

.hero h2 {
  max-width: 850px;
  margin: 0 0 clamp(24px, 3.5vw, 47px);
  color: #e6e9ec;
  font-size: clamp(1.2rem, 2.2vw + 0.3rem, 2.1rem);
  font-weight: 530;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.hero-copy {
  max-width: 660px;
  width: 100%;
  margin: 0;
  padding-left: 25px;
  border-left: 4px solid rgba(156, 180, 193, 0.46);
  color: #c8cdd4;
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 520;
  letter-spacing: -0.018em;
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(32px, 4.5vw, 63px);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(142, 159, 180, 0.2);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-align: center;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.button-primary {
  border-color: #1bcfe5;
  background: #09c6df;
  box-shadow: 0 0 25px rgba(11, 198, 222, 0.12);
  color: #07131e;
}

.button-primary:hover {
  box-shadow: 0 0 30px rgba(11, 198, 222, 0.25);
}

.button-dark {
  background: #151929;
}

.button-dark:hover {
  border-color: rgba(16, 204, 230, 0.4);
  background: rgba(16, 204, 230, 0.08);
}

.button-light {
  border-color: #d2f8fb;
  background: #c3f6fb;
  color: #07121d;
}

.button-light:hover {
  box-shadow: 0 0 20px rgba(195, 246, 251, 0.15);
}

.hero-neural-art {
  position: absolute;
  z-index: 1;
  top: 10%;
  right: 0;
  width: clamp(360px, 45vw, 640px);
  height: clamp(360px, 45vw, 640px);
  object-fit: contain;
  opacity: 1;
  mix-blend-mode: screen;
  filter: saturate(0.82) brightness(1.08) blur(0.15px);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 62%, transparent 92%);
  mask-image: radial-gradient(ellipse at center, #000 62%, transparent 92%);
}

.hero-metrics {
  position: absolute;
  z-index: 4;
  right: 3%;
  bottom: 6%;
  display: grid;
  width: 145px;
  gap: 28px;
  text-align: right;
}

.hero-metrics p {
  display: grid;
  margin: 0;
  color: #f1f3f4;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.05;
}

.hero-metrics span {
  margin-bottom: 5px;
  color: #7f8997;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 620;
  letter-spacing: 0.02em;
}

/* ────────────────────────────────────────────────
   About / How I Build (Engineering Philosophy)
   ──────────────────────────────────────────────── */
.philosophy-section {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  border-top: 1px solid rgba(109, 139, 158, 0.07);
  background: #0c1220;
}

.philosophy-section::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(88, 126, 144, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 126, 144, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.philosophy-blueprint {
  position: absolute;
  z-index: 0;
  inset: -90px -40px;
  width: calc(100% + 80px);
  height: calc(100% + 180px);
  object-fit: cover;
  opacity: 0.012;
  mix-blend-mode: screen;
}

.philosophy-neural-art {
  position: absolute;
  z-index: 2;
  top: 0;
  right: -5%;
  width: clamp(400px, 60vw, 950px);
  height: clamp(300px, 45vw, 690px);
  object-fit: cover;
  opacity: 0.98;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 50%, transparent 92%);
  mask-image: radial-gradient(ellipse at center, #000 50%, transparent 92%);
}

.philosophy {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 458px 1fr;
  min-height: 690px;
  align-items: center;
  transform: translateY(-33px);
}

.philosophy-intro {
  position: relative;
  z-index: 4;
  padding-right: 52px;
  transform: translateY(-10px);
}

.philosophy h2 {
  margin: 0 0 31px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 730;
  letter-spacing: -0.045em;
  line-height: 1.05;
  transform: translateY(-16px);
}

.philosophy-intro>p {
  margin: 0;
  color: #aeb6c0;
  font-size: 17px;
  font-weight: 520;
  line-height: 1.46;
}

.approach-note {
  margin-top: 60px;
  padding: 25px 27px;
  border: 1px solid var(--border-color);
  border-left: 3px solid rgba(118, 161, 177, 0.47);
  background: rgba(21, 26, 42, 0.84);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.12);
  color: #d4d8dd;
  font-size: 14px;
  font-weight: 610;
  line-height: 1.32;
}

.approach-note span {
  display: block;
  margin-bottom: 10px;
  color: #f0f3f4;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.principle-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.principle-card {
  min-height: 350px;
  padding: 48px 36px 36px;
  border: 1px solid rgba(114, 141, 161, 0.2);
  background: rgba(19, 25, 40, 0.93);
  box-shadow: 0 25px 55px rgba(2, 7, 15, 0.2);
}

.principle-icon {
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 21px;
}

.principle-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.principle-card h3 {
  margin: 0 0 12px;
  font-size: 29px;
  font-weight: 680;
  letter-spacing: -0.04em;
}

.principle-card p {
  margin: 0;
  color: #b8bec6;
  font-size: 16px;
  font-weight: 520;
  line-height: 1.45;
}

/* ────────────────────────────────────────────────
   Technology Ecosystem
   ──────────────────────────────────────────────── */
.stack-section {
  position: relative;
  min-height: 1187px;
  overflow: hidden;
  background: #0d1423;
}

.stack-section::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg,
      rgba(12, 18, 32, 0.38),
      rgba(12, 18, 32, 0.08) 45%,
      rgba(12, 18, 32, 0.44));
  pointer-events: none;
}

.technology-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  filter: saturate(0.72) contrast(0.94);
  transform: translateY(140px);
}

.stack-shell {
  position: relative;
  z-index: 3;
  padding-top: 47px;
}

.section-heading.centered {
  text-align: center;
}

.section-heading p {
  margin: 0 0 19px;
  color: #c7ccd2;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 730;
  letter-spacing: 0.37em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: #eaf9fa;
  font-size: 39px;
  font-weight: 720;
  letter-spacing: -0.045em;
  text-shadow: 0 0 17px rgba(122, 220, 229, 0.25);
  text-transform: uppercase;
}

.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 36px;
  margin-top: 30px;
}

.skill-group:nth-child(-n + 2) {
  min-height: 510px;
}

.skill-group:nth-child(n + 3) {
  min-height: 380px;
}

.skill-group {
  position: relative;
  min-height: 343px;
  padding: 35px 34px;
  border: 1px solid rgba(117, 147, 169, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 28, 44, 0.8), rgba(15, 21, 35, 0.84)),
    rgba(18, 24, 39, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.01),
    0 20px 60px rgba(2, 6, 14, 0.14);
}

.skill-group h3 {
  margin: 0 0 27px;
  color: #eef2f4;
  font-size: 26px;
  font-weight: 680;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.skill-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.skill-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  min-height: 90px;
  align-items: center;
  padding: 16px 17px;
  border: 1px solid rgba(119, 145, 164, 0.19);
  border-radius: 7px;
  background: rgba(16, 22, 35, 0.86);
}

.skill-card.featured {
  border-color: rgba(77, 222, 231, 0.72);
  box-shadow:
    inset 0 0 18px rgba(38, 199, 217, 0.08),
    0 0 18px rgba(39, 211, 227, 0.45);
}

.skill-icon {
  display: inline-grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--skill-tone);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  text-shadow: 0 0 8px currentColor;
}

.skill-icon svg {
  width: 31px;
  height: 31px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  filter: drop-shadow(0 0 5px currentColor);
}

.skill-details {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.skill-card strong {
  overflow: hidden;
  color: #e7e9ec;
  font-size: 20px;
  font-weight: 690;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-card span:not(.skill-icon) {
  color: #828c99;
  font-size: 14px;
  font-weight: 520;
}

.proficiency-mark {
  width: 28px;
  height: 5px;
  border-radius: 8px;
  background: #9ee7ea;
  box-shadow: 0 0 8px rgba(93, 220, 228, 0.32);
}

.skill-card small {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(118, 142, 158, 0.18);
  color: #bdc4cb;
  font-size: 13px;
}

.technology-chip-overlay {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transform: scaleY(1.18);
  transform-origin: 50% 53%;
  opacity: 0.3;
  filter: brightness(0.6) contrast(1.1);
  -webkit-mask-image: radial-gradient(ellipse 250px 165px at 50% 53%,
      #000 0 52%,
      transparent 76%);
  mask-image: radial-gradient(ellipse 250px 165px at 50% 53%,
      #000 0 52%,
      transparent 76%);
}

.ai-chip-label {
  position: absolute;
  z-index: 0;
  top: 53%;
  left: 50%;
  color: #45cee6;
  font-size: 58px;
  font-weight: 800;
  letter-spacing: 0.1em;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.35;
}

/* ────────────────────────────────────────────────
   Projects Section
   ──────────────────────────────────────────────── */
.projects-section {
  position: relative;
  min-height: 100vh;
  padding: 120px 0;
  background: transparent;
  z-index: 10;
}

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

.projects-heading>div {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.projects-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 730;
  letter-spacing: -0.04em;
}

.projects-heading i {
  display: none;
}

.projects-heading>p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 520;
  line-height: 1.5;
}

#project-list {
  display: flex;
  flex-direction: column;
  gap: 160px;
  margin-top: 60px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
}

/* Staggered Zig-Zag Layout Desktop */
.project-card:nth-child(even) {
  direction: rtl;
}

.project-card:nth-child(even)>* {
  direction: ltr;
}

.project-card:nth-child(odd) .project-image-wrap {
  transform: translateY(-20px);
}

.project-card:nth-child(even) .project-image-wrap {
  transform: translateY(20px);
}

.project-image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(16, 22, 35, 0.6);
  border: 1px solid rgba(119, 145, 164, 0.15);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease-out, box-shadow 0.4s ease;
}

.project-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(16, 204, 230, 0.05), transparent 50%);
  pointer-events: none;
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: saturate(0.8) contrast(1.1);
}

.project-card:hover .project-image-wrap {
  box-shadow: 0 35px 60px rgba(16, 204, 230, 0.1);
}

.project-card:hover .project-image-wrap img {
  transform: scale(1.03);
  filter: saturate(1) contrast(1);
}

.project-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background: rgba(19, 25, 40, 0.93);
  border: 1px solid rgba(114, 141, 161, 0.2);
  border-radius: 12px;
  box-shadow: 0 25px 55px rgba(2, 7, 15, 0.2);
  height: 100%;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.project-number {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-cyan);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #7f8997;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border: 1px solid rgba(127, 137, 151, 0.2);
  border-radius: 99px;
}

.project-title {
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.project-description-block {
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-description-block p {
  margin: 0;
  font-size: 15px;
  color: #b0b7c3;
  line-height: 1.6;
}

.project-description-block strong {
  color: #fff;
  font-weight: 600;
}

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

.project-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.project-actions a:hover {
  background: rgba(16, 204, 230, 0.1);
  border-color: rgba(16, 204, 230, 0.4);
  color: var(--accent-cyan);
}

.project-arrow {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.project-actions a:hover .project-arrow {
  transform: translate(2px, -2px);
}

/* ────────────────────────────────────────────────
   Contact / Let's Connect
   ──────────────────────────────────────────────── */
.contact-section {
  position: relative;
  padding: clamp(60px, 8vw, 120px) 0;
  overflow: hidden;
  background: var(--background);
  border-top: 1px solid rgba(109, 139, 158, 0.07);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr minmax(auto, 600px) 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  width: min(100%, var(--page-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.contact-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 32, 0.35);
  pointer-events: none;
  border-radius: 12px;
}

.contact-visual img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}

.contact-panel {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(114, 141, 161, 0.2);
  border-radius: 12px;
  background: rgba(19, 25, 40, 0.93);
  box-shadow: 0 25px 55px rgba(2, 7, 15, 0.2);
}

.contact-panel h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 730;
  letter-spacing: -0.045em;
}

.contact-panel>p {
  margin: 0 0 32px;
  color: #aeb6c0;
  font-size: 15px;
  font-weight: 520;
  line-height: 1.55;
}

/* Contact form */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

#contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#contact-form label>span {
  color: #d4d8de;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(129, 161, 180, 0.21);
  border-radius: 6px;
  background: rgba(12, 18, 32, 0.7);
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: var(--text-dim);
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(16, 204, 230, 0.1);
  outline: none;
}

#contact-form input[aria-invalid="true"],
#contact-form select[aria-invalid="true"],
#contact-form textarea[aria-invalid="true"] {
  border-color: #e55555;
}

#contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23aab1bd' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

#contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

#contact-form button[type="submit"] {
  align-self: flex-start;
  min-width: 200px;
  padding: 14px 28px;
  border: 1px solid #62e4f1;
  border-radius: 4px;
  background: linear-gradient(180deg, #1bd5ec, #0eb6d0);
  color: #07131e;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

#contact-form button[type="submit"]:hover {
  box-shadow: 0 0 28px rgba(20, 200, 224, 0.25);
  transform: translateY(-1px);
}

#contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.field-error {
  color: #e55555;
  font-size: 12px;
  min-height: 16px;
}

.form-status {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.form-status.is-success {
  color: #4edba1;
}

.clipboard-helper {
  position: fixed;
  left: -9999px;
  opacity: 0;
}

/* ────────────────────────────────────────────────
   Footer
   ──────────────────────────────────────────────── */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, var(--page-width));
  margin-inline: auto;
  padding: 36px var(--gutter);
  border-top: 1px solid rgba(89, 111, 142, 0.15);
}

.footer-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

.site-footer nav a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-footer nav a:hover {
  color: var(--accent-cyan);
}

.site-footer>p {
  width: 100%;
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.08em;
}