/* ================================================================
   Mahir Labib — Portfolio
   Near-black canvas, white text, violet signal accent.
   Bricolage Grotesque + Instrument Serif italics,
   blur-and-rise reveals, frosted nav, faint vertical grid lines.
   ================================================================ */

:root {
  --signal: #a78bfa;
  --signal-bright: #c4b5fd;
  --signal-deep: #8b6df0;
  --ink: #f5f5f7;
  --ink-soft: #b7b7c2;
  --muted: #93939d;
  --cream: #f5f5f2;
  --panel: #131316;
  --dark: #050506;
  --line: rgba(255, 255, 255, 0.08);
  --on-signal: #140b24;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; min-width: 320px; }

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(72rem 46rem at 50% -8%, rgba(167, 139, 250, 0.12), transparent 62%),
    linear-gradient(#060608 0%, #08080a 43%, #050506 76%, #000000 100%);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
.serif.signal, .headline .serif { color: var(--signal); }

/* ---------- faint vertical grid lines over the whole page ---------- */
.grid-lines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 calc(20% - 1px),
    rgba(255, 255, 255, 0.055) calc(20% - 1px) 20%
  );
}

/* ---------- custom cursor dot ---------- */
/* Plain (non-blended) paint — mix-blend-mode: exclusion looks clever but
   the math turns any purple-tinted pixel under it a muddy olive/green,
   which shows up constantly on a purple-accented site. */
.cursor-dot {
  position: fixed;
  z-index: 999;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cream);
  pointer-events: none;
  transform: translate(-50%, -50%);
}
@media (hover: none), (max-width: 760px) {
  .cursor-dot { display: none; }
}

/* ================= NAV ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
  padding: 26px 0 18px;
  transition: padding 0.32s var(--ease);
}
.nav::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: max(100vw, 320px);
  z-index: -1;
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  background: rgba(13, 13, 15, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s;
}
.nav.scrolled { padding: 12px 0; }
.nav.scrolled::before { opacity: 1; }
.nav, .nav a { color: #e3e4dc; }

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.brand span { color: var(--signal); }

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 15px;
  font-weight: 550;
}
.nav-links a {
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  background: var(--signal);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; justify-content: flex-end; }

/* staggered nav entrance */
.brand, .nav-links a, .nav-actions .btn {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(-12px);
  animation: navReveal 0.7s var(--ease) forwards;
}
.brand { animation-delay: 0.08s; }
.nav-links a:nth-child(1) { animation-delay: 0.16s; }
.nav-links a:nth-child(2) { animation-delay: 0.21s; }
.nav-links a:nth-child(3) { animation-delay: 0.26s; }
.nav-links a:nth-child(4) { animation-delay: 0.31s; }
.nav-links a:nth-child(5) { animation-delay: 0.36s; }
.nav-links a:nth-child(6) { animation-delay: 0.41s; }
.nav-actions .btn { animation-delay: 0.5s; }

@keyframes navReveal {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* ================= BUTTONS ================= */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.25s;
  will-change: transform;
}
/* Hover spotlight — a soft highlight that only colors the part of the
   button directly under the cursor, clipped to the button's own shape.
   --mx/--my are set from JS (main.js) on pointermove. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    90px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.3),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}
.btn:hover::before { opacity: 1; }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-signal {
  background: var(--signal);
  color: var(--on-signal);
  box-shadow: 0 10px 28px rgba(124, 92, 240, 0.35),
    inset 0 1px rgba(255, 255, 255, 0.35);
}
.btn-signal:hover {
  background: var(--signal-bright);
  box-shadow: 0 16px 36px rgba(124, 92, 240, 0.45),
    inset 0 1px rgba(255, 255, 255, 0.35);
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e9e9ee;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-dark {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.btn-dark:hover { background: #1c1c22; }
.btn-light {
  background: #fffffc;
  color: #0a0a0c;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), inset 0 1px #ffffff;
}
.btn-light:hover { background: #ffffff; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 20px 38px; font-size: clamp(16px, 2vw, 21px); }

/* ================= HERO ================= */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(60px, 10vh, 120px) 0 clamp(90px, 14vh, 160px);
  margin-top: -92px; /* pull the dark bg behind the nav */
  padding-top: clamp(150px, 20vh, 210px);
  /* No opaque fill here on purpose — body's dark gradient + the fixed
     .bg-canvas dot field show through; this just adds a purple accent glow. */
  background: radial-gradient(60rem 30rem at 70% 20%, rgba(167, 139, 250, 0.16), transparent 60%);
  color: #fafaf6;
}
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-inner {
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 42px;
  padding: 0 18px;
  margin-bottom: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  font-size: 14.5px;
  font-weight: 600;
  color: #d9dbd0;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(14px) scale(0.96);
  animation: riseIn 0.72s var(--ease) 0.42s forwards;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
}
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal);
  animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.24); }
  50% { box-shadow: 0 0 0 8px rgba(167, 139, 250, 0.09); }
}

.headline {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(52px, 7vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.headline .serif { font-size: 0.96em; }
.hl-line { display: block; overflow: hidden; }
.hl-line > span {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(28px);
  animation: titleReveal 0.82s var(--ease) forwards;
}
.hl-line:nth-child(1) > span { animation-delay: 0.56s; }
.hl-line:nth-child(2) > span { animation-delay: 0.68s; }

@keyframes titleReveal {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@keyframes riseIn {
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

.subcopy {
  margin-top: 26px;
  max-width: 520px;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 480;
  line-height: 1.45;
  color: #b2b4ab;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(18px);
  animation: riseIn 0.76s var(--ease) 0.94s forwards;
}
.subcopy .serif { font-size: 1.12em; }

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  animation: riseIn 0.76s var(--ease) 1.08s forwards;
}

.hero-photo {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(26px) rotate(3deg);
  animation: photoIn 0.9s var(--ease) 1.1s forwards;
}
@keyframes photoIn {
  to { opacity: 1; filter: blur(0); transform: translateY(0) rotate(2deg); }
}
.photo-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transition: transform 0.5s var(--ease);
}
.photo-frame:hover { transform: rotate(-1deg) scale(1.02); }
.photo-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 600;
  color: #e9eae2;
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 140px;
  z-index: -1;
  background: linear-gradient(transparent, #050506);
  pointer-events: none;
}

/* ================= SECTIONS ================= */
.section {
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
  padding: clamp(70px, 10vh, 130px) 0;
}
.section-wide { width: min(100% - 48px, 1240px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(36px, 5vh, 60px);
}
.kicker {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-deep);
}
.section-head h2, .contact-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(36px, 4.6vw, 62px);
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.section-head h2 .serif { font-size: 1.02em; color: var(--signal-deep); }

/* scroll reveal */
.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), filter 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; filter: blur(0); transform: translateY(0); }

/* ================= EDUCATION / TIMELINE ================= */
.timeline {
  display: grid;
  gap: 14px;
}
.t-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  padding: 26px 30px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.t-item:hover {
  transform: translateX(6px);
  box-shadow: 0 16px 44px rgba(124, 92, 240, 0.16);
}
.t-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--signal-deep);
  padding-top: 4px;
}
.t-body {
  display: flex;
  align-items: stretch;
  gap: 16px;
}
.t-logo {
  flex-shrink: 0;
  width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.t-logo img {
  height: 60px;
  width: auto;
  max-width: 64px;
  object-fit: contain;
  display: block;
}
.t-logo img.t-logo-sm { height: 50px; }
.t-text { display: flex; flex-direction: column; justify-content: center; }
.t-text h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.t-text p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }

/* ================= WORK ================= */
.work-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.work-card {
  position: relative;
  display: block;
  padding: 30px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  color: inherit;
  text-decoration: none;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 54px rgba(124, 92, 240, 0.2);
}
.work-arrow {
  position: absolute;
  bottom: 26px;
  right: 30px;
  font-size: 20px;
  color: var(--ink-soft);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.work-card:hover .work-arrow {
  opacity: 1;
  transform: translate(0, 0);
}
@media (max-width: 640px) {
  .work-cards { grid-template-columns: 1fr; }
}
.work-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.work-logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
}
.work-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.chip {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-soft);
}
.chip-live { background: var(--signal); color: var(--on-signal); }
.work-card h3 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.work-org {
  margin: 4px 0 12px;
  font-size: 14px;
  font-weight: 650;
  color: var(--signal-deep);
}
.work-card > p:last-child { color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* ================= DESIGNS ================= */
.design-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--signal-deep) transparent;
  cursor: grab;
}
.design-row.dragging { cursor: grabbing; scroll-behavior: auto; }
.design-item {
  flex: 0 0 clamp(240px, 26vw, 340px);
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.design-item:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 26px 60px rgba(124, 92, 240, 0.22);
}
.design-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
}
.design-item:hover img { transform: scale(1.05); }
.design-item figcaption {
  padding: 14px 18px;
  font-weight: 650;
  font-size: 15px;
}

/* ================= PROJECTS (numbered case-study rows) ================= */
.proj-list {
  display: flex;
  flex-direction: column;
}
.proj-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 5vw, 56px) 0;
}
.proj-row + .proj-row { border-top: 1px solid var(--line); }
.proj-row:nth-child(even) .proj-info { order: 2; }
.proj-row:nth-child(even) .proj-preview { order: 1; }

.proj-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.proj-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.proj-cat {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}
.proj-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.proj-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 46ch;
  margin-bottom: 20px;
}
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.proj-tags span {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.18);
  color: var(--signal-bright);
}
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 15px;
  color: var(--ink);
  transition: color 0.3s;
}
.proj-link .arr { display: inline-block; transition: transform 0.3s var(--ease); }
.proj-link:hover { color: var(--signal); }
.proj-link:hover .arr { transform: translate(3px, -3px); }
.proj-link.is-disabled {
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

/* ---- preview thumbnail (click/enter opens the modal) ---- */
.proj-preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
  font: inherit;
}
.proj-preview:hover,
.proj-preview:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 26px 64px rgba(124, 92, 240, 0.22);
  border-color: rgba(167, 139, 250, 0.35);
}
.proj-preview:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.proj-thumb-frame {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}
.proj-thumb-dots { display: flex; gap: 6px; }
.proj-thumb-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: block;
}
.proj-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s var(--ease);
}
.proj-preview:hover img,
.proj-preview:focus-visible img { transform: scale(1.045); }
.proj-preview-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--cream);
  font-size: 13px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.proj-preview:hover .proj-preview-badge,
.proj-preview:focus-visible .proj-preview-badge {
  opacity: 1;
  transform: translateY(0);
}
.proj-preview-badge .arr { color: var(--signal); }
.proj-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  background: repeating-linear-gradient(
    135deg, rgba(255, 255, 255, 0.02) 0 10px, transparent 10px 20px
  );
}

@media (max-width: 760px) {
  .proj-row {
    grid-template-columns: 1fr;
    padding: 28px 0;
  }
  .proj-row:nth-child(even) .proj-info,
  .proj-row:nth-child(even) .proj-preview { order: initial; }
}

/* ================= HOMEPAGE GRADIENT PANEL CARDS ================= */
.pcard-list {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 32px);
}
.pcard-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 56px);
}
.pcard-col:nth-child(2) { margin-top: clamp(28px, 5vw, 64px); }

.pcard-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.pcard-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.pcard-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.pcard-panel {
  position: relative;
  display: block;
  width: 100%;
  padding: 22px 22px 0;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: #fff;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.pcard-panel:hover,
.pcard-panel:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(124, 92, 240, 0.28);
}
.pcard-panel:focus-visible { outline: 2px solid var(--signal-bright); outline-offset: 3px; }
.pcard-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
}
.pcard-tagline {
  font-size: 14.5px;
  font-weight: 550;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  max-width: 34ch;
}
.pcard-arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: #fff;
  transition: transform 0.3s var(--ease);
}
.pcard-panel:hover .pcard-arrow,
.pcard-panel:focus-visible .pcard-arrow { transform: translate(3px, -3px); }

.pcard-mockup {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transform: rotate(0deg);
  transition: transform 0.5s var(--ease);
}
.pcard-panel:hover .pcard-mockup,
.pcard-panel:focus-visible .pcard-mockup {
  transform: rotate(-1.5deg) scale(1.03);
}
.pcard-mockup img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  display: block;
}
.pcard-mockup-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 12px 12px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
}

.pcard .proj-tags { margin-top: 18px; margin-bottom: 0; }

@media (max-width: 760px) {
  .pcard-col:nth-child(2) { margin-top: 0; }
}

/* ---- "Show more projects" CTA ---- */
.projects-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 6vw, 64px);
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: var(--ink);
}
.btn-outline:hover {
  background: rgba(167, 139, 250, 0.1);
  border-color: var(--signal);
  color: var(--signal);
}

/* ---- Preview modal (native <dialog>, own focus trap + ESC handling) ---- */
.project-modal {
  border: none;
  border-radius: 24px;
  padding: 0;
  width: min(92vw, 880px);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: scale(0.94) translateY(14px);
  filter: blur(6px);
}
.project-modal::backdrop {
  background: rgba(3, 3, 5, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.project-modal.is-open::backdrop { opacity: 1; }
.project-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(5, 5, 6, 0.6);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.project-modal-close:hover { background: var(--signal); color: var(--on-signal); transform: rotate(90deg); }
.project-modal-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  display: block;
}
.project-modal-body { padding: clamp(24px, 4vw, 40px); }
.project-modal .proj-desc { max-width: none; }
.project-modal .proj-tags { margin-bottom: 28px; }

/* ================= SKILLS MARQUEE ================= */
.marquee {
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee .marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scrollX 28s linear infinite;
}
.marquee-reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .marquee-track span {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  width: clamp(180px, 15vw, 230px);
  height: 64px;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.marquee .marquee-track span:hover {
  background: var(--signal);
  color: var(--on-signal);
  transform: translateY(-3px);
}
.marquee .marquee-track span img {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
@keyframes scrollX {
  to { transform: translateX(-50%); }
}

/* ================= TESTIMONIALS ================= */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.quote-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 54px rgba(124, 92, 240, 0.2);
}
.quote-card p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.quote-card footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote-card footer img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.quote-card footer strong { display: block; font-size: 15px; }
.quote-card footer span { font-size: 13px; color: var(--muted); }

/* ================= MUSIC ================= */
.music-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--signal-deep) transparent;
  cursor: grab;
}
.music-row.dragging { cursor: grabbing; scroll-behavior: auto; }
.music-item {
  position: relative;
  flex: 0 0 clamp(260px, 28vw, 360px);
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(155deg, #1a1a1e, #0c0c0e);
  border: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.music-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(29, 185, 84, 0.22);
}
.music-cover { position: absolute; inset: 0; }
.music-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.music-cover img.loaded { opacity: 1; }
.music-item:hover .music-cover img { transform: scale(1.05); }
.music-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(
    to top,
    rgba(5, 5, 6, 0.92) 0%,
    rgba(5, 5, 6, 0.5) 40%,
    transparent 68%
  );
}
.music-badge {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(5, 5, 6, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(29, 185, 84, 0.35);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1db954;
}
.music-badge svg { width: 12px; height: 12px; fill: currentColor; flex-shrink: 0; }
.music-info strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.music-info span { font-size: 13px; color: var(--muted); }

/* ================= WATCH ================= */
.watch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.watch-poster { margin: 0; }
.watch-poster .poster {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.watch-poster:hover .poster {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 28px 64px rgba(124, 92, 240, 0.22);
}
.watch-poster .poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s var(--ease);
}
.watch-poster:hover .poster img { transform: scale(1.04); }
.watch-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.watch-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.watch-genre {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal-deep);
}
.watch-tag {
  flex-shrink: 0;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ================= HOBBIES ================= */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.hobby-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.hobby-explore {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--signal);
  color: var(--on-signal);
  box-shadow: 0 8px 22px rgba(124, 92, 240, 0.4),
    inset 0 1px rgba(255, 255, 255, 0.35);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.hobby-explore svg { width: 16px; height: 16px; }
.hobby-card:hover .hobby-explore {
  background: var(--signal-bright);
  box-shadow: 0 12px 30px rgba(124, 92, 240, 0.55),
    inset 0 1px rgba(255, 255, 255, 0.35);
  transform: scale(1.08);
}
.hobby-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(124, 92, 240, 0.22);
}
.hobby-card:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}
.hobby-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.hobby-card:hover img { transform: scale(1.05); }
.hobby-card figcaption,
.hobby-card .hobby-caption { padding: 18px 56px 18px 20px; }
.hobby-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.hobby-card figcaption span,
.hobby-card .hobby-caption span { font-size: 14px; color: var(--muted); }

/* Placeholder for items whose photo hasn't been added yet */
.hobby-card .img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  padding: 12px;
  background: repeating-linear-gradient(
    135deg, rgba(255, 255, 255, 0.03) 0 10px, transparent 10px 20px
  );
  border-bottom: 1px dashed var(--line);
}
.hobby-card .flag-tile {
  width: 100%;
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  line-height: 1;
  background:
    radial-gradient(60% 80% at 50% 40%, rgba(167, 139, 250, 0.16), transparent 70%),
    rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
}
.hobby-card .stat-tile {
  width: 100%;
  aspect-ratio: 16 / 11;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background:
    radial-gradient(60% 80% at 50% 40%, rgba(167, 139, 250, 0.16), transparent 70%),
    rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
}
.hobby-card .stat-tile strong {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--signal-bright);
  line-height: 1;
}
.hobby-card .stat-tile span {
  font-size: 13px;
  color: var(--muted);
}
.hobby-card .status-chip {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(167, 139, 250, 0.14);
  color: var(--signal-bright);
  border: 1px solid rgba(167, 139, 250, 0.25);
}

/* ================= AVAILABILITY / GLOBE ================= */
.availability-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: stretch;
}
.globe-card,
.github-card {
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
}
.globe-card { justify-content: center; }
.globe-wrap {
  position: relative;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.globe-canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
}
.globe-label {
  position: absolute;
  bottom: anchor(top);
  left: anchor(center);
  translate: -50% -10px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  pointer-events: none;
  opacity: var(--v, 0);
  filter: blur(calc((1 - var(--v, 0)) * 6px));
  transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}
@supports not (position-anchor: --cobe-x) {
  .globe-label { display: none; }
}

.github-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.github-card-head h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.github-card-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
  color: var(--signal);
  transition: color 0.3s;
}
.github-card-head a:hover { color: var(--signal-bright); }
.github-chart-wrap {
  display: flex;
  align-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: clamp(16px, 2.5vw, 28px);
}
.github-chart-wrap svg { width: 100%; height: auto; display: block; }
.github-fallback {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  width: 100%;
}
.github-fallback a { color: var(--signal); font-weight: 650; }
.github-stats {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}
.github-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.github-legend span {
  width: 10px;
  height: 10px;
  border-radius: 2.5px;
  display: inline-block;
}

@media (max-width: 860px) {
  .availability-grid { grid-template-columns: 1fr; }
}

/* ================= CONTACT ================= */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #e3e4dc;
  padding: clamp(80px, 12vh, 140px) 0;
}
.contact-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.contact-wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  width: min(100% - 48px, 1100px);
  margin: 0 auto;
}
.contact-left {
  padding-top: 10px;
}
.contact .kicker {
  color: var(--signal);
}
.contact-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(44px, 6vw, 72px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: #fafaf6;
}
.contact-title .serif {
  color: var(--signal);
}
.contact-desc {
  margin-top: 20px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: #8f9189;
  max-width: 380px;
}
.contact-info {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: inherit;
  font-size: 15px;
  font-weight: 550;
  color: #b2b4ab;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s;
}
.contact-link:hover {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.25);
  color: var(--signal);
}
.contact-link svg {
  flex-shrink: 0;
  opacity: 0.6;
}
.contact-link:hover svg {
  opacity: 1;
}

/* ---- Form ---- */
.contact-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 40px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6d64;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #e3e4dc;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 450;
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.18);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.05);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1), 0 4px 20px rgba(0, 0, 0, 0.2);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit button */
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 32px;
  border: none;
  border-radius: 14px;
  background: var(--signal);
  color: var(--on-signal);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(167, 139, 250, 0.25),
    inset 0 1px rgba(255, 255, 255, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.25s, opacity 0.3s;
  will-change: transform;
}
.contact-submit:hover {
  background: var(--signal-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(167, 139, 250, 0.35),
    inset 0 1px rgba(255, 255, 255, 0.35);
}
.contact-submit:active {
  transform: translateY(0) scale(0.98);
}
.contact-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.contact-submit svg {
  flex-shrink: 0;
}

/* Status messages */
.form-status {
  margin-top: 0;
  padding: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.4s var(--ease);
}
.form-status.show {
  padding: 14px 18px;
  max-height: 80px;
  margin-top: 16px;
  opacity: 1;
}
.form-status.success {
  background: rgba(167, 139, 250, 0.14);
  color: var(--signal);
  border: 1px solid rgba(167, 139, 250, 0.25);
}
.form-status.error {
  background: rgba(226, 101, 120, 0.1);
  color: #e26578;
  border: 1px solid rgba(226, 101, 120, 0.2);
}

@media (max-width: 760px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact-desc { max-width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}


/* ================= FOOTER ================= */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #e3e4dc;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
  padding: clamp(30px, 6vh, 60px) 0 34px;
}
.footer-socials { display: flex; gap: 24px; font-weight: 600; font-size: 15px; }
.footer-socials a {
  position: relative;
  transition: color 0.25s;
}
.footer-socials a:hover { color: var(--signal); }
.footer-note { font-size: 13.5px; color: #8f9189; }
.back-top {
  font-weight: 650;
  font-size: 14px;
  color: var(--signal);
  transition: transform 0.3s var(--ease);
  display: inline-block;
}
.back-top:hover { transform: translateY(-3px); }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { max-width: 340px; }
  .t-item { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; filter: none; transform: none; }
  .brand, .nav-links a, .nav-actions .btn, .trust-badge, .hl-line > span,
  .subcopy, .ctas, .hero-photo { opacity: 1; filter: none; transform: none; }
}
