/* ============================================
   Ali Hamza Portfolio
   Editorial × Modern · TikTok Shop & Affiliate Growth
============================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Tokens ---------- */
:root {
  --bg:        #f7f5f1;
  --bg-alt:    #efece5;
  --surface:   #ffffff;
  --ink:       #14110f;
  --ink-soft:  #4a4641;
  --ink-mute:  #8a847c;
  --line:      #e1ddd2;
  --line-soft: #ecead0;
  --accent:    #b04a2f;
  --accent-2:  #1d1d1b;
  --success:   #1f6d3a;

  --serif:  "Fraunces", "Times New Roman", Georgia, serif;
  --sans:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max:    1180px;
  --pad-y:  clamp(5rem, 10vw, 8rem);
  --radius: 16px;
  --radius-sm: 10px;

  --ease:   cubic-bezier(.2, .7, .2, 1);

  --shadow-sm: 0 1px 2px rgba(20,17,15,.04), 0 2px 6px rgba(20,17,15,.04);
  --shadow:    0 4px 16px rgba(20,17,15,.06), 0 1px 3px rgba(20,17,15,.04);
  --shadow-lg: 0 20px 50px rgba(20,17,15,.08), 0 8px 16px rgba(20,17,15,.05);
}

/* ---------- Base ---------- */
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--bg); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(232, 227, 216, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav__mark {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-weight: 500;
  font-size: .9rem;
  border-radius: 50%;
  letter-spacing: -0.02em;
}
.nav__name { font-size: .95rem; }
.nav__links {
  display: flex;
  gap: 2rem;
  font-size: .9rem;
}
.nav__links a {
  position: relative;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 36px; height: 36px;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 12px; }
.nav__toggle span:nth-child(2) { top: 17.5px; }
.nav__toggle span:nth-child(3) { top: 23px; }
.nav__toggle.is-open span:nth-child(1) { top: 17.5px; transform: rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { top: 17.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(176,74,47,.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -100px; left: -100px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(99,102,241,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 15s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 30px); }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  padding: .45rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.status-dot {
  width: 8px; height: 8px;
  background: #16a34a;
  border-radius: 50%;
  position: relative;
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #16a34a;
  opacity: .35;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .35; }
  50% { transform: scale(1.6); opacity: 0; }
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 18ch;
  margin-bottom: 1.75rem;
}
.hero__italic {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero__lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 2.25rem;
}
.hero__lede strong {
  color: var(--ink);
  font-weight: 600;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ---------- Hero two-column layout ---------- */
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4.75rem);
  position: relative;
  z-index: 1;
}
.hero__main { min-width: 0; }

.hero__aside { position: relative; }
.hero__photo {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 22px 0 auto;
}
/* Offset accent panel behind photo (editorial layered look) */
.hero__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: linear-gradient(150deg, var(--accent) 0%, #d2724f 100%);
  transform: translate(22px, 22px);
  z-index: 0;
}
.hero__photo-inner {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  overflow: hidden;
  border: 6px solid var(--surface);
  box-shadow: var(--shadow-lg);
  background: var(--bg-alt);
}
.hero__photo-inner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating badges */
.float-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .6rem 1rem;
  box-shadow: var(--shadow-lg);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.float-badge svg { width: 16px; height: 16px; flex-shrink: 0; }
.float-badge strong { font-weight: 700; }
.float-badge--rating {
  left: -1.5rem;
  bottom: 2rem;
  animation: badgeFloat 5.5s ease-in-out infinite;
}
.float-badge--rating svg { color: #f5a623; }
.float-badge--stat {
  right: -1.75rem;
  top: 2.25rem;
  animation: badgeFloat 6.5s ease-in-out infinite .4s;
}
.float-badge--stat svg { color: #1f9d5a; }
.float-badge--stat strong { color: var(--accent); }
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- KPI strip ---------- */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
}
.kpi { position: relative; }
.kpi__value {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: .4rem;
  font-variant-numeric: tabular-nums;
}
.kpi__label {
  font-size: .78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn__icon { display: inline-flex; width: 18px; height: 18px; }
.btn__icon svg { width: 100%; height: 100%; }
.btn--primary {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ---------- Section base ---------- */
.section {
  padding: var(--pad-y) 0;
  border-bottom: 1px solid var(--line);
}
.section--alt { background: var(--bg-alt); }

.grid-2 {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 2.4fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.section__head { position: sticky; top: 100px; }
.section__head--center {
  position: static;
  text-align: center;
  margin: 0 auto 4rem;
  max-width: 680px;
}
.section__index {
  font-size: .75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .75rem;
}
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section__sub {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Prose ---------- */
.prose p {
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 62ch;
}
.prose p + p { margin-top: 1.25rem; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 5rem;
}
.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service__icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  border-radius: 12px;
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.service:hover .service__icon {
  background: var(--ink);
  color: var(--bg);
}
.service__icon svg { width: 22px; height: 22px; }
.service h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: .5rem;
}
.service p {
  font-size: .94rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ---------- Expertise bars ---------- */
.expertise {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  box-shadow: var(--shadow-sm);
}
.expertise__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.expertise__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 3rem;
}
.bar { width: 100%; }
.bar__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .65rem;
  font-size: .92rem;
  color: var(--ink);
}
.bar__val {
  font-family: var(--serif);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.bar__track {
  width: 100%;
  height: 5px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ink) 0%, var(--accent) 100%);
  border-radius: 999px;
  transition: width 1.6s cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Brands ---------- */
.brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 4rem;
}
.brand {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.brand::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--avatar, var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.brand:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.brand:hover::before { transform: scaleX(1); }
.brand__head {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.5rem;
}
.brand__avatar {
  width: 44px; height: 44px;
  background: var(--avatar, var(--accent));
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.brand__stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
}
.brand__stat { text-align: center; }
.brand__value {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--avatar, var(--ink));
  margin-bottom: .35rem;
  font-variant-numeric: tabular-nums;
}
.brand__label {
  font-size: .7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.brand__divider {
  width: 1px;
  height: 32px;
  background: var(--line);
}

/* ---------- Chart card ---------- */
.chart-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  box-shadow: var(--shadow-sm);
}
.chart-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.chart-card__eyebrow {
  font-size: .72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .4rem;
}
.chart-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.chart-card__total {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.chart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: .6rem;
  height: 200px;
  align-items: end;
  padding-top: 1rem;
  border-bottom: 1px solid var(--line);
}
.chart__bar {
  position: relative;
  height: 0%;
  background: linear-gradient(180deg, var(--accent) 0%, #d96a4f 100%);
  border-radius: 6px 6px 0 0;
  transition: height 1.4s cubic-bezier(.2, .7, .2, 1);
  min-height: 4px;
}
.chart.is-active .chart__bar { height: var(--h); }
.chart__bar:nth-child(1)  { transition-delay: .05s; }
.chart__bar:nth-child(2)  { transition-delay: .10s; }
.chart__bar:nth-child(3)  { transition-delay: .15s; }
.chart__bar:nth-child(4)  { transition-delay: .20s; }
.chart__bar:nth-child(5)  { transition-delay: .25s; }
.chart__bar:nth-child(6)  { transition-delay: .30s; }
.chart__bar:nth-child(7)  { transition-delay: .35s; }
.chart__bar:nth-child(8)  { transition-delay: .40s; }
.chart__bar:nth-child(9)  { transition-delay: .45s; }
.chart__bar:nth-child(10) { transition-delay: .50s; }
.chart__bar:nth-child(11) { transition-delay: .55s; }
.chart__bar:nth-child(12) { transition-delay: .60s; }
.chart__bar::after {
  content: attr(data-month);
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .7rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  gap: 0;
}
.timeline__item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}
.timeline__item:last-child { border-bottom: 1px solid var(--line); }
.timeline__meta {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.timeline__years {
  font-size: .78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.timeline__role {
  font-size: .92rem;
  color: var(--ink);
  font-weight: 500;
}
.timeline__company {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.timeline__bullets {
  display: grid;
  gap: .65rem;
}
.timeline__bullets li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 60ch;
}
.timeline__bullets li::before {
  content: "▸";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-size: .9rem;
}
.timeline__bullets strong { color: var(--ink); font-weight: 600; }

/* ---------- Contact cards ---------- */
.contact { border-bottom: none; }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 4rem;
}
.ccard {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.ccard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.ccard__icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--icon-bg, var(--ink));
  color: var(--icon-fg, #fff);
  border-radius: 14px;
  transition: transform .35s var(--ease);
}
.ccard:hover .ccard__icon {
  transform: scale(1.08) rotate(-3deg);
}
.ccard__icon svg { width: 24px; height: 24px; }
.ccard__body { flex: 1; min-width: 0; }
.ccard__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: .15rem;
}
.ccard__value {
  font-size: .9rem;
  color: var(--ink-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ccard__arrow {
  font-size: 1.25rem;
  color: var(--ink-mute);
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.ccard:hover .ccard__arrow {
  transform: translateX(4px);
  color: var(--ink);
}
.ccard.is-copied .ccard__value {
  color: var(--success);
  font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
  padding: 2.5rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--ink-mute);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.footer__links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.footer__links a {
  display: inline-flex;
  align-items: center;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer__links a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero::before, .hero::after, .status-dot::after { animation: none; }
  .float-badge { animation: none; }
  .chart__bar { transition: none; }
  .bar__fill { transition: none; }
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 980px) {
  .services { grid-template-columns: 1fr 1fr; }
  .brands { grid-template-columns: 1fr 1fr; }
  .expertise__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 880px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .section__head { position: static; }
  .timeline__item { grid-template-columns: 1fr; gap: .75rem; padding: 1.75rem 0; }
  .timeline__meta { flex-direction: row; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .chart { height: 160px; }

  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero__main { order: 1; }
  .hero__aside { order: 2; }
  .hero__photo { margin: 0 auto; max-width: 340px; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
    gap: 1rem;
    font-size: 1.05rem;
  }
  .nav.is-open .nav__links a { color: var(--ink); }
  .nav__name { display: none; }

  .services { grid-template-columns: 1fr; }
  .brands { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }

  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1; min-width: 0; }

  .hero__photo { max-width: 300px; }
  .hero__photo::before { transform: translate(16px, 16px); }
  .float-badge { font-size: .76rem; padding: .5rem .8rem; }
  .float-badge--rating { left: -0.6rem; bottom: 1.25rem; }
  .float-badge--stat { right: -0.6rem; top: 1.5rem; }

  .chart { gap: .35rem; height: 140px; }
  .chart__bar::after { font-size: .6rem; }

  .footer__inner { justify-content: center; text-align: center; }
}
