:root {
  --bg: #050505;
  --bg-elevated: #0d0d11;
  --bg-panel: #111116;
  --text: #f5f5f7;
  --text-body: #c4c4cc;
  --text-muted: #8b8b96;
  --text-dim: #5c5c68;
  --accent: #3d85c6;
  --accent-bright: #5aa0e0;
  --accent-deep: #2468a8;
  --accent-soft: rgba(61, 133, 198, 0.16);
  --brand-orange: #fd6f2a;
  --orange-soft: rgba(253, 111, 42, 0.14);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --radius: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Syne", "Plus Jakarta Sans", system-ui, sans-serif;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --page-pad: 24px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -30%, rgba(61, 133, 198, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 10%, rgba(253, 111, 42, 0.08), transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 100%, rgba(61, 133, 198, 0.07), transparent 50%),
    linear-gradient(180deg, #07070a 0%, #050505 40%, #050505 100%);
  background-attachment: fixed;
}

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

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: rgba(61, 133, 198, 0.2);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  touch-action: manipulation;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--text);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1140px, calc(100% - (var(--page-pad) * 2)));
  margin-inline: auto;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

.container--narrow {
  width: min(640px, calc(100% - (var(--page-pad) * 2)));
  margin-inline: auto;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: var(--safe-top);
  background: rgba(5, 5, 5, 0.65);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.site-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--brand-orange));
  transition: width 0.35s var(--ease);
}

.site-title:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.site-title:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.nav-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.nav-toggle-icon {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 2px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 0.55rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
}

.nav-list a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transform: none;
}

.nav-list a[aria-current="page"] {
  color: var(--text);
  background: linear-gradient(135deg, rgba(61, 133, 198, 0.35), rgba(61, 133, 198, 0.12));
  box-shadow: inset 0 0 0 1px rgba(61, 133, 198, 0.25);
  transform: none;
}

/* ----- Main ----- */
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ----- Home ----- */
.home-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5.5rem 1.5rem 4.5rem;
  position: relative;
}

.home-hero::before {
  content: "";
  position: absolute;
  width: min(560px, 85vw);
  height: min(560px, 85vw);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(61, 133, 198, 0.16), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(253, 111, 42, 0.1), transparent 50%);
  filter: blur(10px);
  pointer-events: none;
}

.home-hero > * {
  position: relative;
  z-index: 1;
}

.home-eyebrow {
  margin: 0 0 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fadeUp 0.7s var(--ease) both;
}

.home-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulseDot 1.8s ease-in-out infinite;
}

.brand-logo {
  margin: 0 0 1.5rem;
  font-family: "Outfit", var(--font-display);
  font-size: clamp(2.15rem, 11vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  min-height: 1.15em;
  max-width: 100%;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s var(--ease) 0.08s both;
}

.brand-logo .majhi {
  color: var(--accent-bright);
  text-shadow: 0 0 48px rgba(61, 133, 198, 0.45);
}

.brand-logo .naukri {
  color: var(--brand-orange);
  text-shadow: 0 0 48px rgba(253, 111, 42, 0.35);
}

.brand-logo .tld {
  color: var(--text);
}

.typewriter-cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.08em;
  border-radius: 2px;
  vertical-align: -0.05em;
  background: var(--text);
  animation: blinkCaret 1s steps(1) infinite;
}

.typewriter-cursor.is-hidden {
  display: none;
  animation: none;
}

@keyframes blinkCaret {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.home-tagline {
  margin: 0 auto 2.35rem;
  max-width: 34rem;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  color: rgba(245, 245, 247, 0.82);
  line-height: 1.75;
  animation: fadeUp 0.8s var(--ease) 0.16s both;
}

.home-hero .btn {
  animation: fadeUp 0.8s var(--ease) 0.24s both;
}

.home-roles {
  margin: 3.75rem 0 0;
  padding: 0.45rem;
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  max-width: min(40rem, 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: fadeUp 0.8s var(--ease) 0.32s both;
}

.home-roles li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease);
}

.home-roles li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent-bright);
  box-shadow: 0 0 10px rgba(90, 160, 224, 0.55);
}

.home-roles li:nth-child(2)::before {
  background: var(--brand-orange);
  box-shadow: 0 0 10px rgba(253, 111, 42, 0.5);
}

.home-roles li:nth-child(3)::before {
  background: #8fb8e0;
  box-shadow: 0 0 10px rgba(143, 184, 224, 0.45);
}

.home-roles li:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: var(--text);
  box-shadow:
    0 12px 32px rgba(61, 133, 198, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--primary:hover {
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(61, 133, 198, 0.42);
}

.btn--primary:hover .arrow {
  transform: translateX(5px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
  transform: translateY(-3px);
}

.btn--ghost:hover .arrow {
  transform: translateX(5px);
}

/* ----- About ----- */
.page-content {
  padding: 5.5rem 0 6.5rem;
  animation: fadeUp 0.7s var(--ease) both;
}

.about-prose p {
  margin: 0 0 1.35rem;
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text-body);
}

.about-prose p:first-child {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 2rem;
}

.about-prose strong {
  color: var(--text);
  font-weight: 700;
}

.about-prose em {
  display: inline-block;
  margin-top: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.08rem;
}

/* ----- Projects ----- */
.projects {
  padding: 5rem 0 6.5rem;
  animation: fadeUp 0.7s var(--ease) both;
}

.projects-hero {
  margin-bottom: 3.25rem;
  max-width: 38rem;
}

.projects-hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.96;
  color: var(--text);
}

.projects-hero p {
  margin: 0;
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.75;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.project-card {
  --card-accent: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.85rem 1.75rem 1.75rem;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.045), transparent 42%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  animation: fadeUp 0.7s var(--ease) both;
}

.project-card:nth-child(1) { animation-delay: 0.05s; --card-accent: var(--accent); }
.project-card:nth-child(2) { animation-delay: 0.1s; --card-accent: var(--brand-orange); }
.project-card:nth-child(3) { animation-delay: 0.15s; --card-accent: #5aa0e0; }
.project-card:nth-child(4) { animation-delay: 0.2s; --card-accent: #e88945; }

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--card-accent), transparent);
  opacity: 0.9;
}

.project-card::after {
  content: attr(data-index);
  position: absolute;
  top: 1.2rem;
  right: 1.35rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

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

.project-shot {
  margin: 0 0 0.85rem;
  width: 12rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #08090c;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.project-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s var(--ease);
}

.project-card:hover .project-shot img {
  transform: scale(1.06);
}

.project-card h2 {
  margin: 0 0 0.35rem;
  padding-right: 2.5rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.project-role {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--card-accent);
  font-weight: 700;
}

.project-role:not(:has(+ .project-founded)) {
  margin-bottom: 1.05rem;
}

.project-founded {
  margin: 0 0 1.05rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.project-card p {
  margin: 0 0 0.75rem;
  font-size: 0.94rem;
  line-height: 1.7;
  color: #9d9da8;
}

.project-card ul {
  margin: 0.25rem 0 1.4rem;
  padding: 0;
  list-style: none;
  color: #858592;
  font-size: 0.86rem;
}

.project-card li {
  position: relative;
  margin-bottom: 0.45rem;
  padding-left: 1rem;
}

.project-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--card-accent);
  opacity: 0.85;
}

.project-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ----- Contact ----- */
.contact {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 6rem;
  animation: fadeUp 0.7s var(--ease) both;
}

.contact-panel {
  width: min(560px, 100%);
  padding: 3rem 2rem;
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 50%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: -40% auto auto 20%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 133, 198, 0.2), transparent 65%);
  pointer-events: none;
}

.contact-kicker {
  position: relative;
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.contact h1 {
  position: relative;
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.contact-email {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  padding: 1rem 1.35rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  word-break: break-all;
}

.contact-email:hover {
  color: var(--text);
  border-color: rgba(61, 133, 198, 0.5);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(61, 133, 198, 0.18);
}

.contact-email svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent-bright);
}

.email-obf {
  display: inline;
}

.email-at::before {
  content: "@";
}

.email-dot::before {
  content: ".";
}

.contact-note {
  position: relative;
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* ----- 404 ----- */
.error-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 6rem;
  animation: fadeUp 0.7s var(--ease) both;
}

.error-panel {
  width: min(560px, 100%);
  padding: 3rem 2rem;
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 50%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.error-code {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, var(--accent-bright), var(--brand-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
}

.error-lead {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ----- Privacy ----- */
.legal h1 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
}

.legal h2 {
  margin: 2.35rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.legal p {
  margin: 0 0 1rem;
  line-height: 1.85;
  color: var(--text-muted);
}

/* ----- Footer ----- */
.site-footer {
  padding: 1.6rem 0 2rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-copy {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-copy a {
  color: var(--accent-bright);
}

.footer-copy a:hover {
  color: var(--text);
  transform: none;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.footer-social-label {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.socials {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.socials li {
  display: flex;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 247, 0.78);
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s var(--ease),
    box-shadow 0.25s ease;
}

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

.socials a:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.social-link--facebook:hover,
.social-link--facebook:focus-visible {
  color: #1877f2;
  background: rgba(24, 119, 242, 0.14);
  border-color: rgba(24, 119, 242, 0.4);
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.2);
}

.social-link--x:hover,
.social-link--x:focus-visible {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.08);
}

.social-link--linkedin:hover,
.social-link--linkedin:focus-visible {
  color: #0a66c2;
  background: rgba(10, 102, 194, 0.14);
  border-color: rgba(10, 102, 194, 0.4);
  box-shadow: 0 8px 20px rgba(10, 102, 194, 0.2);
}

.social-link--instagram:hover,
.social-link--instagram:focus-visible {
  color: #e4405f;
  background: rgba(228, 64, 95, 0.14);
  border-color: rgba(228, 64, 95, 0.4);
  box-shadow: 0 8px 20px rgba(228, 64, 95, 0.2);
}

.socials svg {
  width: 19px;
  height: 19px;
}

@media (min-width: 769px) {
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }

  .footer-social {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    gap: 0.6rem;
  }

  .footer-copy {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    margin-top: 0;
    text-align: left;
  }

  .socials {
    gap: 0.5rem;
    padding: 0.45rem 0.7rem;
  }

  .socials a {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .socials svg {
    width: 22px;
    height: 22px;
  }
}

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

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  :root {
    --page-pad: 20px;
    --header-h: 72px;
  }

  .projects-hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.25rem);
  }
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .projects-hero {
    margin-bottom: 2rem;
  }

  .project-card {
    padding: 1.45rem 1.25rem 1.35rem;
  }

  .project-shot {
    width: 10.5rem;
    margin-bottom: 0.75rem;
  }

  .project-card .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --page-pad: 16px;
    --header-h: 64px;
    --radius-lg: 22px;
  }

  body {
    background-attachment: scroll;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
  }

  .site-title {
    font-size: 1rem;
    max-width: calc(100% - 56px);
  }

  .header-inner {
    min-height: var(--header-h);
  }

  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    z-index: 101;
  }

  .nav {
    position: fixed;
    top: calc(var(--header-h) + var(--safe-top));
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 95;
    max-height: calc(100dvh - var(--header-h) - var(--safe-top));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.85rem var(--page-pad) 1.25rem;
    padding-left: calc(var(--page-pad) + var(--safe-left));
    padding-right: calc(var(--page-pad) + var(--safe-right));
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    border-radius: var(--radius);
    padding: 0.4rem;
  }

  .nav-list a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.95rem 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    border-radius: 12px;
  }

  .home-hero {
    flex: 0 0 auto;
    align-items: center;
    text-align: center;
    padding: 1rem var(--page-pad) 0.75rem;
    padding-top: calc(0.85rem + var(--safe-top));
    min-height: auto;
    justify-content: flex-start;
  }

  .page-home .site {
    min-height: auto;
  }

  body.page-home {
    min-height: auto;
  }

  body.page-home .site-main,
  body.page-home .home-hero {
    flex: 0 0 auto;
  }

  .page-home .site-main {
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .page-home .home-hero {
    align-items: center;
    width: 100%;
    gap: 1.15rem;
    padding: calc(1.15rem + var(--safe-top)) var(--page-pad) 0.25rem;
  }

  .page-home .site-footer {
    margin-top: 1.85rem;
    flex-shrink: 0;
    padding: 1.25rem 0 max(0.65rem, var(--safe-bottom));
  }

  .page-home .footer-inner {
    gap: 1.35rem;
  }

  .page-home .home-eyebrow {
    align-self: center;
    margin: 0;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    padding: 0.38rem 0.75rem;
  }

  .page-home .brand-logo {
    margin: 0;
    font-size: clamp(1.95rem, 10vw, 2.65rem);
  }

  .page-home .home-tagline {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-inline: 0.15rem;
  }

  .page-home .home-hero .btn {
    width: auto;
    min-width: min(100%, 12.5rem);
    max-width: 12.5rem;
    min-height: 42px;
    padding: 0.65rem 1.35rem;
    font-size: 0.84rem;
    margin: 0;
  }

  .page-home .home-roles {
    align-self: center;
    margin: 0.85rem 0 0;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: auto;
    max-width: calc(100vw - (var(--page-pad) * 2) - var(--safe-left) - var(--safe-right));
    padding: 0.34rem 0.28rem;
    gap: 0.12rem;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .page-home .home-roles::-webkit-scrollbar {
    display: none;
  }

  .page-home .home-roles li {
    flex: 0 0 auto;
    min-width: 0;
    padding: 0.32rem 0.38rem;
    font-size: clamp(8px, 2.15vw, 10px);
    letter-spacing: 0.05em;
    line-height: 1.2;
    gap: 0.2rem;
    white-space: nowrap;
  }

  .page-home .home-roles li::before {
    width: 5px;
    height: 5px;
    flex-shrink: 0;
  }

  .home-hero::before {
    width: min(260px, 80vw);
    height: min(260px, 80vw);
    opacity: 0.85;
  }

  .home-eyebrow {
    align-self: center;
  }

  .brand-logo {
    font-size: clamp(1.85rem, 10.5vw, 2.75rem);
    margin-bottom: 1rem;
  }

  .home-tagline {
    margin-bottom: 1.1rem;
    font-size: 0.98rem;
    max-width: 100%;
    padding-inline: 0.15rem;
    line-height: 1.6;
  }

  .home-roles {
    align-self: center;
    margin-top: 0.75rem;
    display: inline-flex;
    flex-wrap: nowrap;
    width: auto;
    max-width: calc(100vw - (var(--page-pad) * 2));
    padding: 0.34rem 0.28rem;
    gap: 0.12rem;
  }

  .home-roles li {
    flex: 0 0 auto;
    padding: 0.32rem 0.38rem;
    font-size: clamp(8px, 2.15vw, 10px);
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .page-content {
    padding: 3rem 0 4rem;
  }

  .about-prose p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .about-prose p:first-child {
    font-size: clamp(1.55rem, 7vw, 2rem);
    margin-bottom: 1.35rem;
  }

  .projects {
    padding: 3rem 0 4rem;
  }

  .projects-hero {
    margin-bottom: 1.75rem;
  }

  .projects-hero h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .projects-hero p {
    font-size: 1rem;
  }

  .project-card {
    display: grid;
    grid-template-columns: 5.75rem 1fr;
    column-gap: 0.85rem;
    align-items: start;
  }

  .project-shot {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 5.75rem;
    margin-bottom: 0;
  }

  .project-card h2 {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.2rem;
    padding-right: 1.75rem;
    margin-bottom: 0.25rem;
  }

  .project-role {
    grid-column: 2;
    margin-bottom: 0.25rem;
  }

  .project-founded {
    grid-column: 2;
    margin-bottom: 0.85rem;
  }

  .project-card p,
  .project-card ul,
  .project-card .btn {
    grid-column: 1 / -1;
  }

  .project-card::after {
    top: 1rem;
    right: 1rem;
  }

  .contact {
    padding: 3rem var(--page-pad) 4rem;
    align-items: stretch;
  }

  .contact-panel {
    width: 100%;
    padding: 2rem 1.25rem;
    border-radius: 22px;
  }

  .contact h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .contact-email {
    width: 100%;
    justify-content: center;
    padding: 1rem 1rem;
    border-radius: 16px;
    font-size: clamp(0.85rem, 3.8vw, 0.95rem);
    gap: 0.55rem;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .error-page {
    padding: 3rem var(--page-pad) 4rem;
  }

  .error-panel {
    padding: 2rem 1.25rem;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .legal h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .legal h2 {
    margin-top: 1.85rem;
    font-size: 1.05rem;
  }

  .site-footer {
    padding: 1.35rem 0 calc(1.5rem + var(--safe-bottom));
  }

  .footer-inner {
    gap: 1.4rem;
  }

  .footer-copy {
    margin-top: 0.45rem;
  }

  .footer-social {
    gap: 0.6rem;
  }

  .socials {
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
  }

  .socials a {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
  }

  .socials svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  :root {
    --page-pad: 14px;
  }

  .brand-logo {
    font-size: clamp(1.75rem, 11vw, 2.35rem);
    letter-spacing: -0.04em;
  }

  .btn {
    width: 100%;
    max-width: none;
    min-height: 50px;
  }

  .home-hero .btn {
    width: 100%;
    max-width: none;
    min-height: 48px;
    padding: 0.85rem 1.25rem;
  }

  .page-home .home-hero .btn {
    min-width: min(100%, 11.5rem);
    width: auto;
    max-width: 11.5rem;
    min-height: 40px;
    padding: 0.58rem 1.15rem;
    font-size: 0.8rem;
  }

  .page-home .home-roles li {
    font-size: clamp(7.5px, 2vw, 9.5px);
    padding: 0.28rem 0.3rem;
  }

  .page-home .site-footer {
    margin-top: 1.75rem;
    padding-top: 1.15rem;
  }

  .page-home .home-hero {
    gap: 1rem;
    padding-bottom: 0.2rem;
  }

  .page-home .home-roles {
    margin-top: 0.75rem;
  }

  .contact-email {
    flex-wrap: wrap;
    text-align: center;
    line-height: 1.45;
  }

  .contact-email svg {
    width: 20px;
    height: 20px;
  }

  .project-card {
    grid-template-columns: 5rem 1fr;
    column-gap: 0.75rem;
    padding: 1.15rem 1rem 1.1rem;
  }

  .project-shot {
    width: 5rem;
  }

  .project-card h2 {
    padding-right: 1.5rem;
    font-size: 1.1rem;
  }

  .project-card p {
    font-size: 0.9rem;
  }

  .project-card li {
    font-size: 0.84rem;
  }
}

@media (hover: none) {
  .project-card:hover {
    transform: none;
    box-shadow: none;
  }

  .project-card:hover .project-shot img {
    transform: none;
  }

  .btn--primary:hover,
  .btn--ghost:hover {
    transform: none;
  }

  .site-title:hover {
    transform: none;
  }

  .home-roles li:hover {
    transform: none;
  }

  .socials a:hover {
    transform: none;
  }

  .socials a:active {
    transform: scale(0.94);
  }

  .social-link--facebook:active {
    color: #1877f2;
    background: rgba(24, 119, 242, 0.14);
    border-color: rgba(24, 119, 242, 0.4);
  }

  .social-link--x:active {
    color: #f5f5f7;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
  }

  .social-link--linkedin:active {
    color: #0a66c2;
    background: rgba(10, 102, 194, 0.14);
    border-color: rgba(10, 102, 194, 0.4);
  }

  .social-link--instagram:active {
    color: #e4405f;
    background: rgba(228, 64, 95, 0.14);
    border-color: rgba(228, 64, 95, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .home-eyebrow::before {
    animation: none;
  }

  .typewriter-cursor {
    animation: none;
    opacity: 1;
  }

  .typewriter-cursor.is-hidden {
    display: none;
  }
}
