/* ===================================================
   AKIFF AIMAN — BLACK & GRAY PORTFOLIO
   =================================================== */

:root {
  --bg:           #000000;
  --bg-elevated:  #0a0a0a;
  --bg-card:      #111111;
  --bg-hover:     #1a1a1a;
  --accent:       #525252;
  --accent-bright:#d4d4d4;
  --accent-dim:   rgba(255, 255, 255, 0.06);
  --purple:       var(--accent);
  --purple-bright:var(--accent-bright);
  --purple-dim:   var(--accent-dim);
  --white:        #ffffff;
  --muted:        #a3a3a3;
  --subtle:       #525252;
  --border:       rgba(255, 255, 255, 0.08);
  --radius:       12px;
  --radius-lg:    20px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font:         'Inter', system-ui, sans-serif;
  --max:          1200px;
  --space:        clamp(1.5rem, 5vw, 3rem);
  --transition:   cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, .marquee__track { animation: none !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--white);
  background: var(--bg);
  overflow-x: hidden;
}
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, input, select, textarea { cursor: none; }
}

/* ---- Cursor ---- */
.cursor {
  width: 8px; height: 8px;
  background: var(--accent-bright);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s, width 0.2s var(--transition), height 0.2s var(--transition), background 0.2s;
  display: none;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--transition), width 0.25s var(--transition), height 0.25s var(--transition), border-color 0.2s;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor, .cursor-ring { display: block; }
}
.cursor.hover { width: 14px; height: 14px; background: var(--white); }
.cursor-ring.hover { width: 56px; height: 56px; border-color: var(--white); }

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #d4d4d4 55%, #737373 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.875rem 1.5rem;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 10000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transition: transform 0.4s var(--transition), opacity 0.4s;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--space);
  background: transparent;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.site-header.scrolled {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
  z-index: 101;
}
.logo:hover { color: var(--accent-bright); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav { display: flex; gap: 2rem; }
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent-bright);
  border-radius: 99px;
  transition: width 0.25s var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('images/hero-bg.png') center / cover no-repeat;
  background-position: 65% center;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.72) 100%);
  z-index: 1;
}
.hero__left, .hero__right { position: relative; z-index: 2; }

.hero__sidebar {
  position: absolute;
  left: 1.5rem; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0.875rem;
  z-index: 10;
}
.sidebar__icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}
.sidebar__icon:hover {
  color: var(--white);
  background: var(--bg-hover);
  border-color: rgba(255,255,255,0.25);
  transform: translateX(3px);
}

.hero__left {
  display: flex; flex-direction: column; justify-content: center;
  padding-left: calc(var(--space) + 4rem);
  padding-right: 1rem;
  gap: 0.25rem;
}
.hero__status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
  width: fit-content;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
}
.hero__status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero__hello {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(0.875rem, 1.4vw, 1.1rem);
  font-weight: 500;
  color: var(--accent-bright);
}
.hero__name {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__right {
  display: flex; flex-direction: column; justify-content: center;
  padding-right: var(--space); padding-left: 1rem;
}
.hero__creative {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(0.875rem, 1.4vw, 1.1rem);
  font-weight: 500;
  color: var(--accent-bright);
}
.hero__role {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.hero__tagline {
  margin: 0;
  max-width: 28ch;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.hero__resume {
  position: absolute;
  bottom: 2rem; right: 2.5rem;
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.775rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s; z-index: 10;
}
.hero__resume:hover { color: var(--white); }
.hero__resume svg { transition: transform 0.2s var(--transition); }
.hero__resume:hover svg { transform: translate(2px, -2px); }

.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  color: var(--subtle);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 10;
  transition: color 0.2s;
  animation: bounce 2.5s ease-in-out infinite;
}
.hero__scroll:hover { color: var(--white); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---- Marquee ---- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  padding: 0.875rem 0;
}
.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font);
  font-size: 0.9375rem; font-weight: 700;
  text-decoration: none;
  border-radius: 99px;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative; overflow: hidden;
  background: none;
}
.btn--primary { background: var(--white); color: var(--bg); }
.btn--primary:hover { background: var(--accent-bright); box-shadow: 0 0 32px rgba(255,255,255,0.15); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent-bright); color: var(--white); }
.btn--lg { padding: 1rem 2.5rem; font-size: 1.0625rem; }

/* ---- Sections ---- */
.section {
  max-width: calc(var(--max) + 2 * var(--space));
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 6rem) var(--space);
  position: relative;
}
.section--grid-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  pointer-events: none;
}
.section__header { margin-bottom: 2.5rem; position: relative; z-index: 1; }
.section__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--accent-bright);
}
.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700; letter-spacing: -0.03em;
}
.section__subtitle {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 50ch;
}

/* ---- About ---- */
.about-layout {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
  position: relative; z-index: 1;
}
@media (min-width: 768px) {
  .about-layout { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.about-bio { margin: 0 0 1rem; color: var(--muted); }

.skill-tabs { margin-top: 1.5rem; }
.skill-tabs__nav { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.skill-tab {
  padding: 0.45rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.skill-tab:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }
.skill-tab.active {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}
.skill-tabs__panel { display: none; flex-wrap: wrap; gap: 0.5rem; }
.skill-tabs__panel.active { display: flex; }

.about-stats { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.stat-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 0.25rem;
  transition: border-color 0.3s, transform 0.3s var(--transition);
}
.stat-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}
.stat-card__number {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: -0.04em; line-height: 1;
}
.stat-card__label { font-size: 0.8125rem; color: var(--muted); }

/* ---- Filter bar ---- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 2rem;
  position: relative; z-index: 1;
}
.filter-btn {
  padding: 0.45rem 1.1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }
.filter-btn.active {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

/* ---- Projects ---- */
.project-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  position: relative; z-index: 1;
}
@media (min-width: 900px) {
  .project-card.featured { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
  .project-card.featured .project-card__visual { min-height: 280px; }
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--transition), border-color 0.3s, box-shadow 0.35s, opacity 0.4s;
  display: flex; flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.project-card.hidden { display: none; }

.project-card__visual {
  position: relative;
  min-height: 160px;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 1rem;
  overflow: hidden;
}
.project-card__visual--1 { background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #111 100%); }
.project-card__visual--2 { background: linear-gradient(135deg, #0f0f0f 0%, #252525 60%, #1a1a1a 100%); }
.project-card__visual--3 { background: linear-gradient(135deg, #181818 0%, #333 40%, #111 100%); }
.project-card__visual--4 { background: linear-gradient(135deg, #111 0%, #2a2a2a 70%, #0a0a0a 100%); }
.project-card__visual--5 { background: linear-gradient(135deg, #1c1c1c 0%, #3a3a3a 50%, #111 100%); }
.project-card__visual--6 { background: linear-gradient(135deg, #0d0d0d 0%, #282828 55%, #151515 100%); }
.project-card__visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.06) 0%, transparent 60%);
}
.project-card__visual--shots {
  padding: 0;
  align-items: stretch;
  min-height: 220px;
  background: var(--bg-hover);
}
.project-card__visual--shots::before { display: none; }
.project-card__shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
  min-height: 220px;
}
.project-card__shots img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.project-card__visual--shots .project-card__num {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}
@media (min-width: 900px) {
  .project-card.featured .project-card__visual--shots,
  .project-card.featured .project-card__shots,
  .project-card.featured .project-card__shots img { min-height: 300px; }
}
@media (max-width: 600px) {
  .project-card__shots { grid-template-columns: 1fr; }
}
.project-card__num {
  font-family: var(--font-display);
  font-size: 4rem; font-weight: 700;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  position: relative; z-index: 1;
}

.project-card__body {
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.65rem; flex: 1;
}
.project-card__tag {
  display: inline-block; align-self: flex-start;
  padding: 0.25rem 0.6rem;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.7rem; font-weight: 600;
  color: var(--accent-bright);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.project-card__status {
  display: inline-block; align-self: flex-start;
  padding: 0.25rem 0.6rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 99px;
  font-size: 0.7rem; font-weight: 600;
  color: #fbbf24;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.project-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em;
}
.project-card__subtitle {
  margin: -0.35rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.project-card__desc { margin: 0; flex: 1; color: var(--muted); font-size: 0.9rem; }
.project-card__stack {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.project-card__stack span {
  font-size: 0.7rem; font-weight: 600;
  color: var(--subtle);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* ---- Chips ---- */
.chip {
  display: inline-flex; align-items: center;
  padding: 0.35rem 0.85rem;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--accent-bright);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  width: fit-content;
}
.chip:hover { background: var(--accent-dim); border-color: rgba(255,255,255,0.25); }
.chip--static { color: var(--muted); }
.chip--static:hover { color: var(--white); }
.chip--btn {
  background: none;
  font-family: var(--font);
  margin-top: 0.25rem;
}
.chip--btn:hover { transform: translateX(4px); }

/* ---- Services ---- */
.services-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
}
.service-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.35s var(--transition);
}
.service-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}
.service-card__icon {
  font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 700;
  color: var(--subtle);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.service-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.125rem; font-weight: 700;
}
.service-card p { margin: 0 0 1rem; color: var(--muted); font-size: 0.9rem; }
.service-card ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.service-card li {
  font-size: 0.8125rem; color: var(--subtle);
  padding-left: 1rem;
  position: relative;
}
.service-card li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--accent-bright);
}

/* ---- Timeline ---- */
.timeline {
  position: relative; z-index: 1;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2.5rem;
}
.timeline__item { position: relative; padding-left: 1.5rem; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -1.69rem; top: 0.35rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border);
}
.timeline__date {
  display: block;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-bright);
  margin-bottom: 0.35rem;
}
.timeline__item h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.125rem; font-weight: 700;
}
.timeline__company {
  margin: 0 0 0.65rem;
  font-size: 0.875rem; color: var(--muted); font-weight: 600;
}
.timeline__item p:last-child { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---- Testimonials ---- */
.testimonial-slider { position: relative; max-width: 720px; margin: 0 auto; }
.testimonial-track {
  display: flex;
  transition: transform 0.5s var(--transition);
}
.testimonial {
  min-width: 100%;
  margin: 0;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.testimonial p {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--accent-bright);
  font-style: italic;
}
.testimonial footer { font-size: 0.875rem; color: var(--muted); }
.testimonial footer strong { color: var(--white); }
.testimonial-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 1.25rem;
}
.testimonial-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--white);
  font-size: 1rem;
  transition: background 0.2s, border-color 0.2s;
}
.testimonial-btn:hover { background: var(--bg-hover); border-color: rgba(255,255,255,0.2); }
.testimonial-dots { display: flex; gap: 0.5rem; }
.testimonial-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--subtle);
  border: none; padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.testimonial-dot.active { background: var(--white); transform: scale(1.2); }

/* ---- Contact ---- */
.section--contact { overflow: hidden; }
.contact-layout {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
  position: relative; z-index: 1;
  text-align: left;
}
@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 1fr 1.1fr; align-items: start; }
}
.contact-text { color: var(--muted); margin: 0 0 1.5rem; max-width: 36ch; }
.contact-details {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  display: flex; flex-direction: column; gap: 1rem;
}
.contact-details li { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-details__label {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--subtle);
}
.contact-copy {
  background: none; border: none; padding: 0;
  font-family: var(--font);
  font-size: 1rem; font-weight: 600;
  color: var(--white);
  text-align: left;
  transition: color 0.2s;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}
.contact-copy:hover { color: var(--accent-bright); text-decoration-color: var(--accent-bright); }

.contact-form {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.8125rem; font-weight: 600; color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}
.form-group input.error,
.form-group textarea.error { border-color: #ef4444; }
.form-group select { appearance: none; }
.form-group textarea { resize: vertical; min-height: 100px; }

.social {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.social__link {
  color: var(--muted); text-decoration: none;
  font-weight: 600; font-size: 0.9375rem;
  transition: color 0.2s;
}
.social__link:hover { color: var(--accent-bright); }

.contact__orb {
  position: absolute;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(65px);
  pointer-events: none;
  animation: orbPulse 9s ease-in-out infinite alternate;
}
@keyframes orbPulse {
  from { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 1;   transform: translate(-50%, -50%) scale(1.05); }
}

/* ---- Modal ---- */
.modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
}
.modal__dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s var(--transition);
}
.modal.open .modal__dialog { transform: none; }
.modal__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-hover);
  color: var(--white);
  font-size: 1.25rem; line-height: 1;
  transition: background 0.2s;
}
.modal__close:hover { background: var(--subtle); }
.modal__tag {
  margin: 0 0 0.5rem;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-bright);
}
.modal__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
}
.modal__subtitle {
  margin: -0.5rem 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--subtle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.modal__desc { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }
.modal__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.modal__gallery-item {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-hover);
}
.modal__gallery-item img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
.modal__gallery-item figcaption {
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
  border-top: 1px solid var(--border);
}
.modal__client {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
}
.modal__client strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  margin-bottom: 0.35rem;
}
.modal__client p { margin: 0 0 0.5rem; color: var(--white); font-weight: 600; }
.modal__client ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.modal__client li { color: var(--muted); font-size: 0.8125rem; padding-left: 0.75rem; position: relative; }
.modal__client li::before { content: '·'; position: absolute; left: 0; color: var(--accent-bright); }
.modal__section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-bright);
}
.modal__modules {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.modal__modules li {
  font-size: 0.8125rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.modal__modules li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--accent-bright);
  font-size: 0.75rem;
}
.modal__meta {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-hover);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.modal__meta span {
  display: block;
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--subtle); margin-bottom: 0.25rem;
}
.modal__meta p { margin: 0; font-size: 0.8125rem; font-weight: 600; }
.modal__highlights {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.modal__highlights li {
  font-size: 0.875rem; color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
}
.modal__highlights li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--accent-bright); font-weight: 700;
}
.modal__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem var(--space) 3rem;
}
.footer-inner {
  max-width: calc(var(--max) + 2 * var(--space));
  margin: 0 auto;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 1rem;
}
.site-footer p { margin: 0; font-size: 0.875rem; color: var(--subtle); }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a {
  color: var(--subtle); text-decoration: none;
  font-size: 0.875rem; font-weight: 600;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent-bright); }

/* ---- Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--transition), transform 0.65s var(--transition);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 99px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--transition);
    z-index: 100;
  }
  .nav.open { transform: none; }
  .nav-link { font-size: 1.25rem; }

  .hero {
    grid-template-columns: 1fr;
    height: auto; min-height: 100svh;
    padding: 6rem 0 5rem;
    display: flex; flex-direction: column;
    align-items: center; text-align: center; gap: 2rem;
  }
  .hero__sidebar {
    position: static; flex-direction: row;
    transform: none; order: 5; justify-content: center;
  }
  .hero__left { padding: 0 1.5rem; order: 1; align-items: center; }
  .hero__right { padding: 0 1.5rem; order: 2; align-items: center; }
  .hero__tagline { max-width: none; }
  .hero__actions { justify-content: center; }
  .hero__resume { position: static; order: 6; }
  .hero__scroll { display: none; }
  .hero__name, .hero__role { font-size: clamp(2.25rem, 9vw, 3.5rem); }

  .project-card.featured { grid-column: span 1; display: flex; flex-direction: column; }
  .modal__meta { grid-template-columns: 1fr; }
  .modal__gallery { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
}
