/* ==========================================================================
   SAHEED MUSTAPHA — PORTFOLIO STYLES
   Classic & elegant dark theme — ink backgrounds, brass gold + wine accents,
   Fraunces + Archivo type. Polished for performance, a11y and mobile.
   ========================================================================== */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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;
    scroll-behavior: auto !important;
  }
}
body, h1, h2, h3, p, ul, li, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---------- DESIGN TOKENS ---------- */
:root {
  --ink: #0e0c09;
  --ink-raised: #18150f;
  --ink-line: rgba(198, 161, 91, 0.16);
  --ivory: #f4efe4;
  --stone: #9b9280;
  --gold: #c6a15b;
  --gold-bright: #e0c184;
  --wine: #7a3030;
  --wine-bright: #9a3f3f;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --container-w: 1180px;
  --pad-inline: clamp(1.25rem, 5vw, 3rem);
  --section-pad: clamp(4.5rem, 10vw, 8rem);
  --radius-sm: 4px;
  --radius-md: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- BASE ---------- */
body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ivory);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 0.5rem;
  max-width: 18ch;
}
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
p { color: var(--stone); }
.italic { font-style: italic; font-weight: 500; }

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-sub {
  max-width: 52ch;
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

::selection { background: var(--gold); color: var(--ink); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.services__grid .reveal:nth-child(1) { transition-delay: 0.02s; }
.services__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services__grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.services__grid .reveal:nth-child(4) { transition-delay: 0.2s; }
.work__grid .reveal:nth-child(1) { transition-delay: 0.02s; }
.work__grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.work__grid .reveal:nth-child(3) { transition-delay: 0.1s; }
.work__grid .reveal:nth-child(4) { transition-delay: 0.14s; }
.work__grid .reveal:nth-child(5) { transition-delay: 0.18s; }
.work__grid .reveal:nth-child(6) { transition-delay: 0.22s; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn--ghost {
  border: 1px solid var(--ink-line);
  color: var(--ivory);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(14, 12, 9, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-line);
  transition: background 0.3s var(--ease);
}
.nav__inner {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold);
  margin-right: auto;
}

.nav__rec {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--stone);
  letter-spacing: 0.05em;
}
.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wine-bright);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
}
.nav__links a:not(.nav__cta) {
  position: relative;
  color: var(--stone);
  padding-block: 0.25rem;
  transition: color 0.25s var(--ease);
}
.nav__links a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s var(--ease);
}
.nav__links a:not(.nav__cta):hover,
.nav__links a.active { color: var(--ivory); }
.nav__links a:not(.nav__cta):hover::after,
.nav__links a.active::after { right: 0; }

.nav__cta {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__cta:hover {
  background: var(--gold);
  color: var(--ink);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--ivory);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem var(--pad-inline) 4rem;
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(198, 161, 91, 0.08), transparent 60%),
    var(--ink);
}
.hero__inner { max-width: 780px; }
.hero__name {
  display: flex;
  flex-direction: column;
  font-size: clamp(3rem, 9vw, 6.5rem);
  letter-spacing: -0.01em;
}
.hero__role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.5rem;
}
.hero__sub {
  max-width: 52ch;
  margin: 1.5rem auto 0;
  font-size: 1.1rem;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.hero__stats {
  display: flex;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  justify-content: center;
  margin-top: 4rem;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--ivory);
  font-weight: 600;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--stone);
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 50px;
  background: var(--ink-line);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -50px; }
  100% { top: 50px; }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { padding-block: var(--section-pad); }
.about__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about__portrait { max-width: 300px; }
.about__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  background: var(--ink-raised);
}
.about__portrait-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--stone);
  margin-top: 1rem;
  letter-spacing: 0.03em;
}
.about__copy p {
  max-width: 58ch;
  margin-top: 1.1rem;
  font-size: 1.02rem;
}
.about__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-line);
}
.about__facts li {
  color: var(--ivory);
  font-size: 0.98rem;
}
.about__facts li span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
  padding-block: var(--section-pad);
  background: var(--ink-raised);
  border-block: 1px solid var(--ink-line);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}
.service-card--lg {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
}
.service-card--lg h3 { font-size: 1.7rem; }
.service-card--lg p {
  font-size: 1.02rem;
  max-width: 60ch;
}
.service-card__mark {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  border: 1px solid var(--ink-line);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
}
.service-card--lg .service-card__mark { margin-bottom: 0; }

/* ==========================================================================
   WORK
   ========================================================================== */
.work { padding-block: var(--section-pad); }
.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}
.work-card {
  text-align: left;
  width: 100%;
  transition: transform 0.3s var(--ease);
}
.work-card:hover { transform: translateY(-4px); }
.work-card__thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--ink-line);
  transition: border-color 0.3s var(--ease);
  background: var(--ink-raised);
}
.work-card__thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--ease);
}
.work-card:hover .work-card__thumb-img { transform: scale(1.04); }
.work-card__play {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-icon {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--ivory);
  stroke-width: 1.2;
  opacity: 0.9;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}
.play-icon path { fill: var(--ivory); stroke: none; }
.work-card:hover .work-card__thumb { border-color: var(--gold); }
.work-card:hover .play-icon {
  transform: scale(1.12);
  opacity: 1;
}
.work-card__tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(14, 12, 9, 0.8);
  padding: 0.3rem 0.6rem;
  border-radius: 100px;
  border: 1px solid var(--ink-line);
}
.work-card__title {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ivory);
  line-height: 1.35;
}

/* ==========================================================================
   RECOGNITION
   ========================================================================== */
.recognition {
  padding-block: var(--section-pad);
  background: var(--ink-raised);
  border-block: 1px solid var(--ink-line);
}
.recognition__header {
  max-width: 60ch;
  margin-bottom: 2.5rem;
}
.recognition__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 1.75rem 0;
  border-block: 1px solid var(--ink-line);
}
.recognition__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 600;
}
.recognition__stats span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stone);
}
.recognition__proofs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}
.recognition__proof img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  background: var(--ink);
}
.recognition__proof figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--stone);
  margin-top: 1rem;
  text-align: center;
}

/* ==========================================================================
   RESUME + SOR
   ========================================================================== */
.resume { padding-block: var(--section-pad); }
.resume__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.resume__frame {
  margin-top: 2.5rem;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink-raised);
  min-height: 520px;
  position: relative;
}
.resume__frame iframe {
  width: 100%;
  height: 720px;
  border: 0;
  background: var(--ink);
}
.resume__fallback {
  display: none;
  padding: 2rem;
  text-align: center;
  color: var(--stone);
}
.resume__fallback a {
  color: var(--gold);
  text-decoration: underline;
}

/* Statement of Result */
.sor {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--ink-line);
}
.sor__header { max-width: 56ch; margin-bottom: 2rem; }
.sor__header h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 0.35rem;
}
.sor__figure {
  max-width: 420px;
  margin-inline: auto;
  text-align: center;
}
.sor__figure img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  background: var(--ink-raised);
}
.sor__placeholder {
  padding: 3rem 1.5rem;
  border: 1px dashed var(--ink-line);
  border-radius: var(--radius-md);
  background: var(--ink-raised);
  color: var(--stone);
}
.sor__placeholder strong {
  display: block;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
.sor__placeholder code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold-bright);
}
.sor__figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--stone);
  margin-top: 1rem;
}

/* ==========================================================================
   TOOLKIT
   ========================================================================== */
.toolkit {
  padding-block: var(--section-pad);
  background: var(--ink-raised);
  border-block: 1px solid var(--ink-line);
}
.toolkit__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.5rem;
}
.toolkit__tags li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--ivory);
  border: 1px solid var(--ink-line);
  border-radius: 100px;
  padding: 0.6rem 1.25rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.toolkit__tags li:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(198, 161, 91, 0.06);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { padding-block: var(--section-pad); }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.45);
}
.contact-card__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.contact-card__value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ivory);
  word-break: break-word;
}
.contact-card__hint {
  font-size: 0.82rem;
  color: var(--stone);
}
.contact-card.is-copied .contact-card__hint {
  color: var(--gold);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding-block: 2.25rem;
  border-top: 1px solid var(--ink-line);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__logo {
  font-family: var(--font-display);
  color: var(--gold);
  font-weight: 700;
}
.footer p { font-size: 0.85rem; }
.footer__top {
  font-size: 0.85rem;
  color: var(--stone);
  transition: color 0.3s var(--ease);
}
.footer__top:hover { color: var(--gold); }

/* ==========================================================================
   VIDEO MODAL
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 5, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__box {
  position: relative;
  width: min(900px, 100%);
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}
.modal__frame {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
}
.modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.modal__frame p {
  font-family: var(--font-body);
  color: var(--stone);
  max-width: 40ch;
  padding: 2rem;
}
.modal__frame p strong {
  display: block;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
.modal__title {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ivory);
}
.modal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease);
}
.modal__close:hover { transform: rotate(90deg); }

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink-raised);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  z-index: 90;
}
.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.to-top:hover {
  background: var(--gold);
  color: var(--ink);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__links { gap: 1.15rem; }
}

@media (max-width: 980px) {
  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--ink);
    padding: 1.5rem var(--pad-inline) 2rem;
    border-bottom: 1px solid var(--ink-line);
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
    gap: 1.25rem;
    max-height: calc(100svh - 72px);
    overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__rec { display: none; }
  .nav__toggle { display: flex; }

  .about__grid { grid-template-columns: 1fr; }
  .about__portrait {
    max-width: 260px;
    margin-inline: auto;
  }
  .about__facts { grid-template-columns: 1fr 1fr; }

  .services__grid { grid-template-columns: 1fr 1fr; }
  .service-card--lg {
    grid-column: span 2;
    grid-template-columns: 1fr;
    text-align: left;
  }

  .recognition__stats { grid-template-columns: 1fr 1fr; }
  .recognition__proofs {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .resume__frame iframe { height: 560px; }
}

@media (max-width: 640px) {
  .hero__stats { gap: 2rem; }
  .services__grid { grid-template-columns: 1fr; }
  .service-card--lg { grid-column: span 1; }
  .about__facts { grid-template-columns: 1fr; }
  .about__portrait { max-width: 220px; }
  .recognition__stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .recognition__stats strong { font-size: 1.5rem; }
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
  .resume__frame iframe { height: 420px; }
  .resume__actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact__grid { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; }
  .modal__box { padding: 1rem; }
  .modal__close {
    top: -10px;
    right: -6px;
  }
  .sor__figure { max-width: 100%; }
}
