/* ============================================
   TAUSIF HOQUE — PERSONAL BRAND SITE
   style.css — Premium Responsive Stylesheet
   ============================================ */

/* ---------- RESET & ROOT ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:           #07090d;
  --surface:      #0c0f16;
  --surface-2:    #111520;
  --teal:         #00d4aa;
  --teal-dim:     rgba(0, 212, 170, 0.10);
  --teal-border:  rgba(0, 212, 170, 0.22);
  --teal-glow:    rgba(0, 212, 170, 0.35);
  --gold:         #c9a84c;
  --gold-dim:     rgba(201, 168, 76, 0.12);
  --gold-border:  rgba(201, 168, 76, 0.28);
  --text:         #dbd9d3;
  --muted:        #6b6a65;
  --white:        #f4f2ed;
  --nav-h:        70px;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.76, 0, 0.24, 1);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; }
ul { list-style: none; }
button { border: none; cursor: pointer; font-family: inherit; }

/* ---------- NOISE TEXTURE OVERLAY ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- CUSTOM SCROLLBAR ---------- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 2px; }

/* ---------- SELECTION ---------- */
::selection { background: var(--teal); color: #07090d; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(7, 9, 13, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--teal);
  text-transform: uppercase;
}

.nav__logo-dot {
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--teal-glow); opacity: 1; }
  50% { box-shadow: 0 0 0 8px transparent; opacity: 0.7; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color 0.3s;
  padding: 0.25rem 0;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--teal);
  transition: width 0.3s var(--ease-out);
}

.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  background: var(--teal);
  color: #07090d !important;
  padding: 0.55rem 1.4rem !important;
  font-weight: 700 !important;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: background 0.3s, transform 0.2s !important;
}

.nav__cta:hover { background: var(--gold) !important; transform: translateY(-1px); }
.nav__cta::after { display: none !important; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 6px;
  z-index: 600;
}

.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.35s var(--ease-out);
  transform-origin: center;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--teal); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--teal); }

/* Mobile Menu */
.nav__mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(7, 9, 13, 0.98);
  backdrop-filter: blur(20px);
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav__mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--white);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.nav__mobile-menu a:hover { color: var(--teal); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

/* BG radial glow */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero__bg-circle--1 {
  width: 600px; height: 600px;
  top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(0,212,170,0.12), transparent 70%);
}

.hero__bg-circle--2 {
  width: 400px; height: 400px;
  bottom: 10%; left: 5%;
  background: radial-gradient(circle, rgba(201,168,76,0.06), transparent 70%);
}

/* Grid lines bg */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,170,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Left content */
.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 3rem) clamp(1.5rem, 5vw, 5rem) 4rem clamp(1.5rem, 6vw, 6rem);
  position: relative;
  z-index: 2;
}

.hero__tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.2s var(--ease-out) forwards;
}

.hero__tag-line {
  width: 2rem; height: 1px;
  background: var(--teal);
}

.hero__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 0.4rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.35s var(--ease-out) forwards;
}

.hero__name em {
  color: var(--teal);
  font-style: italic;
  display: block;
}

.hero__subtitle {
  font-family: 'Syne', sans-serif;
  font-size: clamp(0.7rem, 1.5vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.5s var(--ease-out) forwards;
}

.hero__desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--muted);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.65s var(--ease-out) forwards;
}

.hero__desc strong { color: var(--teal); font-weight: 500; }

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.8s var(--ease-out) forwards;
}

/* Right image */
.hero__right {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero__photo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: contrast(1.05) saturate(0.9);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%),
              linear-gradient(to left, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%),
                      linear-gradient(to left, black 65%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-composite: intersect;
  opacity: 0;
  animation: photoReveal 1.2s 0.4s var(--ease-out) forwards;
}

@keyframes photoReveal {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(1.5rem, 6vw, 6rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s 1.2s var(--ease-out) forwards;
  z-index: 3;
}

.hero__scroll-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

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

/* ============================================
   STATS STRIP
   ============================================ */
.stats {
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
  z-index: 2;
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 clamp(1.5rem, 5vw, 6rem);
}

.stats__item {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.stats__item:last-child { border-right: none; }

.stats__item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--teal);
  transition: width 0.5s var(--ease-out);
}

.stats__item:hover::before { width: 60%; }
.stats__item:hover { background: var(--teal-dim); }

.stats__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--teal);
  display: block;
  line-height: 1;
  transition: transform 0.3s;
}

.stats__item:hover .stats__num { transform: scale(1.05); }

.stats__label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 0.6rem;
  display: block;
}

/* ============================================
   SHARED SECTION STYLES
   ============================================ */
.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 6rem);
  position: relative;
}

.section--dark { background: var(--surface); }
.section--darker { background: var(--surface-2); }

.section__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section__eyebrow::before {
  content: '';
  width: 1.5rem; height: 1px;
  background: var(--teal);
  flex-shrink: 0;
}

.section__heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__heading em { color: var(--teal); font-style: italic; }

/* ============================================
   ABOUT SECTION
   ============================================ */
.about__grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about__avatar-col {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.about__avatar-frame {
  position: relative;
  padding: 4px;
  background: linear-gradient(135deg, var(--teal-border), transparent, var(--gold-border));
  border-radius: 6px;
}

.about__avatar {
  width: 100%;
  border-radius: 4px;
  display: block;
  filter: saturate(1.1);
  transition: filter 0.4s;
}

.about__avatar-frame:hover .about__avatar { filter: saturate(1.3); }

.about__avatar-badge {
  position: absolute;
  bottom: -12px; right: -12px;
  background: var(--teal);
  color: #07090d;
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}

.about__avatar-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-align: center;
  margin-top: 1.25rem;
  text-transform: uppercase;
}

.about__text p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.about__text p:first-child {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--white);
}

/* Skills grid */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.skill__tag {
  border: 1px solid var(--teal-border);
  padding: 0.6rem 0.9rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--teal);
  text-transform: uppercase;
  background: var(--teal-dim);
  text-align: center;
  transition: all 0.3s;
  cursor: default;
}

.skill__tag:hover {
  background: rgba(0,212,170,0.18);
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,212,170,0.15);
}

/* ============================================
   EXPERIENCE TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding-left: clamp(1.5rem, 4vw, 2.5rem);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6rem; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--teal) 0%, rgba(0,212,170,0.1) 100%);
}

.timeline__item {
  position: relative;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  padding-left: clamp(1.5rem, 4vw, 2.5rem);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * clamp(1.5rem, 4vw, 2.5rem) - 4px);
  top: 0.45rem;
  width: 9px; height: 9px;
  background: var(--bg);
  border: 2px solid var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--teal-glow);
  transition: background 0.3s, box-shadow 0.3s;
}

.timeline__item:hover::before {
  background: var(--teal);
  box-shadow: 0 0 20px var(--teal-glow);
}

.timeline__company {
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.timeline__role {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
  line-height: 1.1;
}

.timeline__period {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.timeline__desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--muted);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 1rem;
}

.timeline__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.85rem;
  text-transform: uppercase;
}

.timeline__badge--teal {
  background: var(--teal-dim);
  border-color: var(--teal-border);
  color: var(--teal);
}

/* ============================================
   AFFILIATE SECTION
   ============================================ */
.affiliate__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.affiliate__card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 2rem;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}

.affiliate__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.affiliate__card:hover {
  transform: translateY(-6px);
  border-color: var(--teal-border);
  box-shadow: 0 20px 60px rgba(0,212,170,0.08);
}

.affiliate__card:hover::before { transform: scaleX(1); }

.affiliate__icon {
  width: 48px; height: 48px;
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.affiliate__tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.affiliate__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.affiliate__desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.affiliate__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--teal);
  color: #07090d;
  padding: 0.75rem 1.75rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: all 0.3s;
}

.affiliate__cta:hover {
  background: var(--gold);
  transform: translateX(3px);
}

.affiliate__cta svg {
  transition: transform 0.3s;
}

.affiliate__cta:hover svg { transform: translateX(3px); }

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(0,212,170,0.1), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(201,168,76,0.05), transparent 50%);
  pointer-events: none;
}

.contact__heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  margin-bottom: 1.5rem;
  position: relative;
}

.contact__heading em { color: var(--teal); font-style: italic; }

.contact__sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 3.5rem;
  line-height: 1.75;
  position: relative;
}

.contact__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--surface);
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.contact__link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--teal-dim);
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease-out);
}

.contact__link:hover::before { transform: translateX(0); }
.contact__link:hover {
  color: var(--teal);
  border-color: var(--teal-border);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,212,170,0.12);
}

.contact__link span, .contact__link svg { position: relative; z-index: 1; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #04060a;
}

.footer p {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer__teal { color: var(--teal); }

/* ============================================
   BUTTONS (SHARED)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--teal);
  color: #07090d;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.btn--primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,212,170,0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal-border);
}

.btn--ghost:hover {
  background: var(--teal-dim);
  border-color: var(--teal);
  transform: translateY(-2px);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
.reveal--delay-5 { transition-delay: 0.5s; }

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-stagger.in-view > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.reveal-stagger.in-view > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.reveal-stagger.in-view > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.reveal-stagger.in-view > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.reveal-stagger.in-view > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.reveal-stagger.in-view > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }
.reveal-stagger.in-view > *:nth-child(n+7) { opacity: 1; transform: translateY(0); transition-delay: 0.65s; }

/* ============================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================ */
@media (max-width: 900px) {
  :root { --nav-h: 60px; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  /* ---- HERO: stacked layout, photo fully visible ---- */
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    position: relative;
  }

  /* Photo block — sits at the TOP, full width, fixed height */
  .hero__right {
    position: relative;
    width: 100%;
    height: clamp(280px, 60vw, 420px);
    flex-shrink: 0;
    overflow: hidden;
    order: -1; /* render above content */
  }

  .hero__photo-wrap {
    position: absolute;
    inset: 0;
  }

  .hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Fade bottom edge so it blends into the content below */
    mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
    opacity: 1;    /* fully visible */
    filter: contrast(1.05) saturate(0.95);
    animation: photoReveal 1.2s 0.2s var(--ease-out) both;
  }

  /* Teal glow overlay on photo */
  .hero__right::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      135deg,
      rgba(0,212,170,0.12) 0%,
      transparent 60%
    );
    pointer-events: none;
  }

  /* Content block — sits below photo */
  .hero__left {
    order: 1;
    padding: 2rem clamp(1.25rem, 5vw, 2.5rem) 5rem;
    background: var(--bg);
    z-index: 2;
    /* Pull up slightly to overlap photo bottom-fade */
    margin-top: -2.5rem;
    border-radius: 16px 16px 0 0;
  }

  /* Scroll indicator stays at bottom */
  .hero__scroll {
    bottom: 1.5rem;
    left: clamp(1.25rem, 5vw, 2.5rem);
  }

  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: none; }

  .about__grid { grid-template-columns: 1fr; }
  .about__avatar-col { position: static; max-width: 220px; }

  .timeline__role { font-size: 1.5rem; }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 540px)
   ============================================ */
@media (max-width: 540px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); }

  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }

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

  .contact__links { flex-direction: column; align-items: center; }
  .contact__link { width: 100%; max-width: 320px; justify-content: center; }

  .footer { flex-direction: column; text-align: center; }

  .section__heading { font-size: clamp(1.8rem, 8vw, 2.8rem); }

  .about__avatar-col { max-width: 160px; }

  .skills__grid { grid-template-columns: repeat(2, 1fr); }

  .timeline { padding-left: 1.25rem; }
  .timeline__item { padding-left: 1.25rem; }
}
