/* ─────────────────────────────────────────────
   J1BON Portfolio — cinematic black
   ───────────────────────────────────────────── */

:root {
  --bg: #050505;
  --bg-elevated: #0b0b0b;
  --line: rgba(242, 239, 233, 0.1);
  --line-strong: rgba(242, 239, 233, 0.18);
  --text: #f2efe9;
  --muted: #8a8680;
  --faint: #5c5954;
  --accent: #d4ff4f;
  --accent-dim: rgba(212, 255, 79, 0.14);
  --warm: #e8c39e;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.5rem;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

body.is-touch {
  cursor: auto;
}

body.is-touch .cursor,
body.is-touch .cursor-dot {
  display: none;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: none;
}

body.is-touch button {
  cursor: pointer;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}

.text-muted {
  color: var(--muted);
}

/* Atmosphere */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 10%, rgba(212, 255, 79, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(232, 195, 158, 0.04), transparent 50%);
}

/* Custom cursor */
.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: difference;
  transition: transform 0.15s var(--ease), width 0.25s var(--ease), height 0.25s var(--ease),
    opacity 0.2s;
}

.cursor {
  width: 36px;
  height: 36px;
  border: 1px solid #fff;
  transform: translate(-50%, -50%);
}

.cursor.is-hover {
  width: 64px;
  height: 64px;
  background: rgba(212, 255, 79, 0.15);
  border-color: var(--accent);
  mix-blend-mode: normal;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  transform: translate(-50%, -50%);
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad);
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.85), transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav__brand {
  justify-self: start;
}

.nav__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.nav__links {
  display: flex;
  gap: 2rem;
  justify-self: center;
}

.nav__links a,
.nav__cta {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.nav__links a:hover,
.nav__cta:hover {
  color: var(--text);
}

.nav__cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
}

.nav__toggle {
  display: none;
  justify-self: end;
  width: 2rem;
  height: 1.25rem;
  position: relative;
}

.nav__toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav__toggle span:first-child {
  top: 0.3rem;
}

.nav__toggle span:last-child {
  top: 0.85rem;
}

.nav__toggle[aria-expanded="true"] span:first-child {
  top: 0.55rem;
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:last-child {
  top: 0.55rem;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(5, 5, 5, 0.96);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 700;
}

.mobile-nav[hidden] {
  display: none;
}

/* Hero — one composition */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 1rem) var(--pad) 2.5rem;
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 18%;
  filter: brightness(0.72) contrast(1.08) saturate(0.9);
  transform: scale(1.04);
  will-change: transform;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.82) 0%, rgba(5, 5, 5, 0.35) 38%, rgba(5, 5, 5, 0.08) 68%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.28) 38%, transparent 62%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.45) 0%, transparent 28%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 30%, transparent 0%, rgba(5, 5, 5, 0.35) 75%);
}

.hero__content {
  position: relative;
  width: min(100%, 72rem);
  z-index: 1;
}

.hero__eyebrow {
  color: var(--accent);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.hero__eyebrow span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  /* Scale so “AHAMMED” always fits on one line */
  font-size: clamp(2.5rem, calc((100vw - 2 * var(--pad)) / 7.2), 6.75rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin-bottom: 1.35rem;
  max-width: 100%;
}

.hero__brand-line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
}

.hero__brand-line .char {
  display: inline-block;
  transform: translateY(110%);
}

.hero__lead {
  max-width: 28rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__meta {
  position: absolute;
  right: var(--pad);
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--faint);
}

.hero__scroll-line {
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(to bottom, var(--accent), transparent);
  transform-origin: top;
  animation: scrollPulse 2.4s var(--ease) infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

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

.btn--primary:hover {
  background: #e4ff7a;
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text);
  background: rgba(242, 239, 233, 0.04);
}

/* Marquee */
.marquee {
  border-block: 1px solid var(--line);
  padding: 1.1rem 0;
  overflow: hidden;
  background: var(--bg-elevated);
}

.marquee__track {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  letter-spacing: 0.04em;
  color: var(--muted);
  animation: marquee 32s linear infinite;
}

.marquee__track span:nth-child(odd) {
  color: var(--text);
}

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

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 12vw, 9rem) var(--pad);
}

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section__index {
  color: var(--accent);
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.section__desc {
  color: var(--muted);
  max-width: 32rem;
}

.section__desc a {
  color: var(--warm);
  border-bottom: 1px solid rgba(232, 195, 158, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.section__desc a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Work — editorial, not cards */
/* Work — editorial, not cards */
.featured-app {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(212, 255, 79, 0.08), transparent 45%),
    linear-gradient(180deg, #0d0d0d, #090909);
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease);
}

.featured-app:hover {
  border-color: rgba(212, 255, 79, 0.45);
}

.featured-app__badge {
  grid-column: 1 / -1;
  color: var(--accent);
  margin-bottom: -0.5rem;
}

.featured-app__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.featured-app__desc {
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 1.15rem;
  font-size: 1rem;
}

.featured-app__points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: var(--text);
  font-size: 0.88rem;
}

.featured-app__points li {
  position: relative;
  padding-left: 0.9rem;
}

.featured-app__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--accent);
  border-radius: 50%;
}

.featured-app__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
  white-space: nowrap;
}

.featured-app__store {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
}

.featured-app__arrow {
  font-size: 1.35rem;
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.3s;
}

.featured-app:hover .featured-app__arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.project__tag--play {
  color: #0a0a0a;
  background: var(--accent);
  border-color: var(--accent);
}

.project--play:hover .project__title {
  color: var(--accent);
}

.modal__highlights {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 0 0 0.25rem;
  padding: 0;
}

.modal__highlights li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text);
  font-size: 0.95rem;
}

.modal__highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

.modal__block {
  margin-bottom: 1.5rem;
}

.modal__block .modal__label {
  margin-bottom: 0.75rem;
}

.modal__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.modal__stack-pill {
  font-size: 0.78rem;
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(242, 239, 233, 0.03);
}

.about__text a {
  color: var(--warm);
  border-bottom: 1px solid rgba(232, 195, 158, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.about__text a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.work__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.project {
  border-bottom: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem 2rem;
  align-items: start;
  cursor: none;
  transition: background 0.35s var(--ease);
}

body.is-touch .project {
  cursor: pointer;
}

.project:hover {
  background: linear-gradient(90deg, rgba(212, 255, 79, 0.03), transparent 60%);
}

.project__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faint);
  padding-top: 0.45rem;
  min-width: 2.5rem;
}

.project__main {
  min-width: 0;
}

.project__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  transition: color 0.25s var(--ease);
}

.project:hover .project__title {
  color: var(--accent);
}

.project__desc {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 40rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  align-items: center;
}

.project__lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm);
}

.project__lang::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--lang-color, var(--accent));
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project__tag {
  font-size: 0.72rem;
  color: var(--faint);
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.project__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  text-align: right;
}

.project__open {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
  white-space: nowrap;
}

.project:hover .project__open {
  color: #0a0a0a;
  background: var(--accent);
  border-color: var(--accent);
}

.project__updated {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Bars preview */
.lang-bars {
  display: flex;
  height: 3px;
  width: min(100%, 16rem);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1rem;
  background: #161616;
}

.lang-bars span {
  height: 100%;
}

/* Modal — centered, system cursor (custom cursor can't enter top layer) */
.project-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  padding: 0;
  max-width: min(720px, calc(100vw - 2rem));
  width: 100%;
  max-height: min(88vh, 900px);
  height: fit-content;
  background: transparent;
  color: var(--text);
  overflow: visible;
}

.project-modal[open] {
  display: block;
}

.project-modal::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

body.modal-open,
body.modal-open * {
  cursor: auto !important;
}

body.modal-open .cursor,
body.modal-open .cursor-dot {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

.project-modal__inner {
  background: #0c0c0c;
  border: 1px solid var(--line-strong);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  padding-top: clamp(3.5rem, 6vw, 4rem);
  position: relative;
  max-height: min(88vh, 900px);
  overflow: auto;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
  cursor: auto;
}

.project-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: var(--accent);
  border: 1px solid var(--accent);
  margin: 0;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  cursor: pointer !important;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.project-modal__close:hover {
  background: #e4ff7a;
  color: #0a0a0a;
  transform: scale(1.04);
}

.project-modal__x {
  font-size: 0.95rem;
  line-height: 1;
}

.modal__index {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.modal__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
  clear: both;
}

.modal__desc {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 38rem;
}

.modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.25rem 0;
  border-block: 1px solid var(--line);
}

.modal__label {
  color: var(--faint);
  margin-bottom: 0.4rem;
}

.modal__value {
  font-size: 0.95rem;
}

.modal__langs {
  margin-bottom: 2rem;
}

.modal__langs h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.lang-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 3rem;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
}

.lang-row__bar {
  height: 4px;
  background: #1a1a1a;
  border-radius: 2px;
  overflow: hidden;
}

.lang-row__fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.9s var(--ease);
}

.lang-row__pct {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--faint);
  text-align: right;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* About */
.about {
  background:
    linear-gradient(180deg, transparent, rgba(212, 255, 79, 0.02) 40%, transparent),
    var(--bg);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.about__text {
  color: var(--muted);
  margin-bottom: 1.15rem;
  max-width: 34rem;
  font-size: 1.05rem;
}

.about__focus {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.about__focus li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text);
  font-size: 0.98rem;
}

.about__focus li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

.about__figure {
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 1.25rem;
  position: relative;
}

.about__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.55), transparent 40%);
  pointer-events: none;
}

.about__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center center;
  filter: contrast(1.08) brightness(0.9);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.about__stats dt {
  color: var(--faint);
  margin-bottom: 0.35rem;
}

.about__stats dd {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
}

/* Stack */
.stack__grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.stack__row {
  display: grid;
  grid-template-columns: minmax(7rem, 12rem) 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: padding-left 0.4s var(--ease);
}

.stack__row:hover {
  padding-left: 0.75rem;
}

.stack__row h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--accent);
}

.stack__row p {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--muted);
  font-weight: 500;
}

.stack__row:hover p {
  color: var(--text);
}

/* Contact */
.contact {
  text-align: center;
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.contact .section__index {
  margin-bottom: 1.5rem;
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 14vw, 9rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
  margin-bottom: 1.5rem;
}

.contact__title a {
  background: linear-gradient(120deg, var(--text) 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.3s;
}

.contact__title a:hover {
  opacity: 0.85;
}

.contact__lead {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  font-size: 0.95rem;
}

.contact__links a {
  color: var(--warm);
  border-bottom: 1px solid rgba(232, 195, 158, 0.3);
  padding-bottom: 0.15rem;
  transition: color 0.2s, border-color 0.2s;
}

.contact__links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem var(--pad) 2rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
}

.footer__top {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

/* Reveal helpers */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
}

/* Responsive */
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__aside {
    max-width: 28rem;
  }

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

  .featured-app__cta {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    gap: 0.75rem;
  }

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

  .project__aside {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

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

@media (max-width: 720px) {
  body {
    cursor: auto;
  }

  .cursor,
  .cursor-dot {
    display: none;
  }

  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .hero__meta {
    display: none;
  }

  .hero__brand {
    font-size: clamp(2.35rem, calc((100vw - 2 * var(--pad)) / 7.4), 3.75rem);
  }

  .hero__content {
    padding-bottom: 0.5rem;
  }

  .stack__row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .contact__title {
    font-size: clamp(3rem, 16vw, 5rem);
  }
}

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

  .marquee__track {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
