/* =========================================================
   Hazem Zidan — Portfolio
   Colours: change --accent to rebrand the whole site
   ========================================================= */
:root {
  --bg: #f6f3ec;
  --bg-2: #efebe1;
  --surface: #ffffff;
  --ink: #15140f;
  --muted: #6b675d;
  --line: #e2ddd1;
  --accent: #e8551f;
  --accent-2: #f2a03d;
  --accent-soft: #f8dccf;
  --before: #d3cdbf;
  --good: #1f9d5c;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
/* Dark theme: follows the device, unless the visitor picks one with the toggle */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #100f0c;
    --bg-2: #16150f;
    --surface: #1a1915;
    --ink: #f3f0e8;
    --muted: #a29d90;
    --line: #2c2a24;
    --accent: #ff7a45;
    --accent-2: #ffb35c;
    --accent-soft: #3a2116;
    --before: #47433a;
    --good: #43c983;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #100f0c;
  --bg-2: #16150f;
  --surface: #1a1915;
  --ink: #f3f0e8;
  --muted: #a29d90;
  --line: #2c2a24;
  --accent: #ff7a45;
  --accent-2: #ffb35c;
  --accent-soft: #3a2116;
  --before: #47433a;
  --good: #43c983;
  color-scheme: dark;
}

/* ========================================================= Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  animation: page-fade .6s var(--ease) both;
}
/* slide only the content, not <body>: a transform on body would pin fixed elements (WhatsApp button, progress bar) to the page */
main { animation: page-in .6s var(--ease) both; }
body.leaving { opacity: 0; transition: opacity .25s ease; }
body.leaving main { transform: translateY(8px); transition: transform .25s ease; }
@keyframes page-in { from { transform: translateY(10px); } }
@keyframes page-fade { from { opacity: 0; } }

/* subtle film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 400; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }
.accent { color: var(--accent); }

/* ========================================================= Buttons */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font: 600 15px var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); overflow: hidden; isolation: isolate;
  transform: translate(var(--bx), var(--by));
  transition: transform .3s var(--ease), color .3s ease, border-color .3s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); border-radius: inherit;
  transform: translateY(101%); transition: transform .4s var(--ease);
}
.btn:hover { color: #fff; border-color: var(--accent); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-small { padding: 10px 18px; font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .35s var(--ease);
}
.link-arrow:hover { background-size: 100% 1.5px; }

/* ========================================================= Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
/* ---- Name logo: gradient monogram + two-tone wordmark ---- */
a.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-mark {
  position: relative; flex: none; width: 42px; height: 42px; border-radius: 13px; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .5s var(--ease), border-radius .5s var(--ease);
}
.logo-mark svg { width: 30px; height: 30px; position: relative; z-index: 1; }
.logo-mark::after {           /* light sweep on hover */
  content: ""; position: absolute; inset: -40%; transform: translateX(-120%) rotate(25deg);
  background: linear-gradient(90deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%);
  transition: transform .8s var(--ease);
}
a.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); border-radius: 50%; }
a.logo:hover .logo-mark::after { transform: translateX(120%) rotate(25deg); }
.logo-text { display: grid; line-height: 1; }
.logo-name { font: 500 21px/1 var(--sans); letter-spacing: -.02em; }
.logo-name em { font: italic 400 23px/1 var(--serif); letter-spacing: -.01em; color: var(--accent); margin-left: 1px; }
.logo-role { margin-top: 5px; font: 600 9.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 380px) { .logo-role { display: none; } }
.nav-links { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) {
  position: relative; padding: 8px 14px; border-radius: 99px;
  text-decoration: none; color: var(--muted); transition: color .2s ease, background .2s ease;
}
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--bg-2); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent); transform: translateX(-50%);
}
.nav-links .btn { margin-left: 10px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.menu-btn span { display: block; width: 18px; height: 1.5px; margin: 5px auto; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ========================================================= Page heads */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
h2 { font: 400 clamp(34px, 4.6vw, 54px)/1.08 var(--serif); letter-spacing: -.02em; }
h2 em, h1 em { font-style: italic; color: var(--accent); }

.page-hero { position: relative; padding-block: 96px 56px; }
.page-hero h1 { font: 400 clamp(48px, 8vw, 104px)/1 var(--serif); letter-spacing: -.035em; max-width: 13ch; }
.page-hero .lede { max-width: 56ch; margin-top: 26px; font-size: 19px; color: var(--muted); }

.glow {
  position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(80px); opacity: .5;
  background: radial-gradient(circle, var(--accent-2), transparent 65%);
  animation: drift 16s ease-in-out infinite alternate;
}
.glow.g1 { width: 520px; height: 520px; top: -120px; right: -120px; }
.glow.g2 { width: 380px; height: 380px; top: 160px; right: 220px; opacity: .3; background: radial-gradient(circle, var(--accent), transparent 65%); animation-duration: 20s; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.12); } }

.section { padding: 96px 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head > div { max-width: 62ch; }
.section-head .muted { margin-top: 14px; }

/* ========================================================= Home hero */
.hero { position: relative; padding-block: 88px 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface);
  font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 34px;
}
.live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--good); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }

.hero-name {
  font: 400 clamp(64px, 11vw, 184px)/.88 var(--serif); letter-spacing: -.045em; margin-left: -.04em;
}
.hero-name .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-name .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero-name .line:nth-child(2) > span { animation-delay: .12s; font-style: italic; color: var(--accent); }
@keyframes rise { from { transform: translateY(105%); } }

.hero-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; min-height: min(68vh, 640px); }
.hero-right { position: relative; z-index: 1; display: grid; gap: 26px; padding-left: 40px; border-left: 1px solid var(--line); }
.hero-copy { color: var(--muted); font-size: 17.5px; max-width: 46ch; }
.hero-statement { font: 400 clamp(22px, 2.4vw, 30px)/1.35 var(--serif); letter-spacing: -.01em; max-width: 30ch; }
.hero-statement em { color: var(--accent); }
.hero-side p { color: var(--muted); margin-bottom: 24px; }

.fade-up { animation: fade-up .9s var(--ease) both; }
.d1 { animation-delay: .25s; } .d2 { animation-delay: .4s; } .d3 { animation-delay: .55s; } .d4 { animation-delay: .7s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } }

/* ========================================================= Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 30px 26px 30px 0; }
.stats div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.stats dt { font-size: 14px; color: var(--muted); order: 2; }
.stats dd { margin: 0 0 6px; font: 400 clamp(38px, 4.8vw, 60px)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats div { display: flex; flex-direction: column; }

/* ========================================================= Marquee */
.marquee { overflow: hidden; padding: 30px 0; border-bottom: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll-x 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font: 400 28px var(--serif); color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; font-size: 14px; color: var(--accent); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ========================================================= Cards (spotlight hover) */
.card {
  --mx: 50%; --my: 50%;
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .45s var(--ease), border-color .3s ease, box-shadow .45s var(--ease);
  isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
  transition: opacity .3s ease;
}
.card:hover::before { opacity: 1; }
.card.lift:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: 0 24px 60px -30px rgba(0,0,0,.35); }

/* ========================================================= Featured work (home) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { display: flex; flex-direction: column; padding: 30px; text-decoration: none; min-height: 360px; }
.feature .big { font: 400 64px/1 var(--serif); letter-spacing: -.03em; color: var(--accent); margin: auto 0 6px; padding-top: 40px; }
.feature .big-label { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.feature h3 { font: 400 23px/1.25 var(--serif); margin-top: 16px; }
.feature .more { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.feature .circle { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background .3s, color .3s, transform .4s var(--ease); }
.feature:hover .circle { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(-45deg); }

.tag {
  display: inline-flex; align-self: flex-start; font-size: 12.5px; font-weight: 700;
  padding: 6px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent);
}

/* ========================================================= Split band (home) */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.band .card { padding: 40px; }
.band h3 { font: 400 32px/1.15 var(--serif); letter-spacing: -.015em; margin: 6px 0 14px; }
.band p { color: var(--muted); margin-bottom: 26px; }
.mini-list { display: grid; gap: 0; margin-bottom: 28px; }
.mini-list li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.mini-list li span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ========================================================= Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { padding: 30px 26px; }
.step-n { font: italic 400 46px/1 var(--serif); color: var(--accent); }
.steps h3 { font: 600 22px var(--serif); margin: 22px 0 10px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ========================================================= Quote */
.quote-big { text-align: center; max-width: 900px; margin: 0 auto; }
.quote-big blockquote { margin: 0; font: 400 clamp(28px, 3.6vw, 44px)/1.25 var(--serif); letter-spacing: -.015em; }
.quote-big blockquote::before { content: "“"; display: block; font-size: 1.8em; line-height: .6; color: var(--accent); margin-bottom: 14px; }
.quote-big figcaption { margin-top: 26px; color: var(--muted); }
.quote-big strong { color: var(--ink); }

/* ========================================================= CTA band */
.cta-band {
  position: relative; overflow: hidden; margin-top: 110px; padding: 110px 0;
  background: var(--ink); color: var(--bg); isolation: isolate;
}
.cta-band .glow { opacity: .35; }
.cta-band h2 { font-size: clamp(42px, 6.4vw, 84px); max-width: 15ch; margin-bottom: 40px; letter-spacing: -.03em; }
.cta-band .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cta-band .btn:hover { color: #fff; border-color: var(--accent); }
.cta-band .btn-ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }

/* ========================================================= Footer */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.cta-band + .footer { border-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer h4 { font: 700 12.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer li { margin-bottom: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-big { font: 400 clamp(26px, 3vw, 36px)/1.15 var(--serif); max-width: 18ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ========================================================= Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button {
  padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface);
  font: 600 14px var(--sans); color: var(--muted); cursor: pointer; transition: all .25s var(--ease);
}
.filters button:hover { color: var(--ink); border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters .count { opacity: .55; margin-left: 4px; font-variant-numeric: tabular-nums; }
.filter-item { transition: opacity .35s ease, transform .45s var(--ease); }
.filter-item.hide { display: none; }
.filter-item.pop { animation: pop .5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* ========================================================= Case studies (work page) */
.case { display: grid; grid-template-columns: 5fr 7fr; gap: 52px; padding: 46px; margin-bottom: 22px; }
.case-num { font: italic 400 15px var(--serif); color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.case h3 { font: 400 clamp(26px, 2.6vw, 32px)/1.18 var(--serif); letter-spacing: -.015em; margin-top: 16px; }
.facts { margin: 28px 0 0; display: grid; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.case-body h4 { font: 700 12.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.case-body h4:not(:first-child) { margin-top: 28px; }
.case-body ul li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.case-body ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

.results { display: grid; gap: 16px; }
.m-label { font-size: 14px; font-weight: 600; margin-bottom: 7px; display: flex; justify-content: space-between; }
.m-label .delta { color: var(--good); font-weight: 700; }
.m-bars { display: grid; gap: 5px; }
.m-bars span {
  display: block; width: var(--v); min-width: 70px;
  padding: 6px 11px; border-radius: 7px;
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  clip-path: inset(0 100% 0 0 round 7px);
  transition: clip-path 1.1s var(--ease);
}
.m-bars .before { background: var(--before); color: var(--ink); }
.m-bars .after { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; transition-delay: .25s; }
.in .m-bars span { clip-path: inset(0 0 0 0 round 7px); }
.legend { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-before { background: var(--before); }
.sw-after { background: var(--accent); margin-left: 12px; }

/* channel bars */
.channels { border-top: 1px solid var(--line); }
.channels li { display: grid; grid-template-columns: minmax(200px, 320px) 1fr 56px; align-items: center; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ch-name { font-weight: 600; }
.bar { height: 10px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.bar::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease);
}
.in .bar::after, .bar.in::after { clip-path: inset(0 0 0 0); }
.ch-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ========================================================= Accounts page */
.acc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.acc { padding: 30px; display: flex; flex-direction: column; gap: 22px; }
.acc-top { display: flex; align-items: center; gap: 16px; }
.mono {
  flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font: 600 20px var(--serif); color: #fff;
  background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent-2)));
}
.acc-top h3 { font: 600 20px/1.25 var(--sans); }
.acc-top p { color: var(--muted); font-size: 14.5px; }
.status { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); }
.status.active { color: var(--good); border-color: color-mix(in srgb, var(--good) 35%, transparent); background: color-mix(in srgb, var(--good) 8%, transparent); }
.status.active::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 2s ease-in-out infinite; }
.status.past { color: var(--muted); }
@keyframes blink { 50% { opacity: .3; } }
.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.acc-stats div { padding: 14px 0; }
.acc-stats div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.acc-stats dt { font-size: 13px; color: var(--muted); }
.acc-stats dd { margin: 2px 0 0; font: 600 19px var(--sans); font-variant-numeric: tabular-nums; }
.acc-win { font-size: 15px; display: flex; gap: 10px; }
.acc-win::before { content: "↗"; color: var(--good); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ========================================================= Certifications page */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert { padding: 28px; display: flex; flex-direction: column; min-height: 270px; }
.cert-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 26px; }
.issuer { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font: 700 15px var(--sans); color: #fff; background: var(--c, var(--ink)); }
.cert .year { font: italic 400 15px var(--serif); color: var(--muted); }
.cert h3 { font: 400 23px/1.22 var(--serif); letter-spacing: -.01em; }
.cert .by { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.cert .verify { margin-top: auto; padding-top: 22px; font-size: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--good); }

.learning { display: grid; gap: 0; border-top: 1px solid var(--line); }
.learning li { display: grid; grid-template-columns: 1.4fr 1fr 60px; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.learning h3 { font: 600 18px var(--sans); }
.learning p { color: var(--muted); font-size: 14px; }

/* ========================================================= Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.c-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; text-decoration: none; }
.c-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.c-icon svg { width: 22px; height: 22px; }
.c-card small { display: block; color: var(--muted); font-size: 13px; }
.c-card strong { font-weight: 600; font-size: 16.5px; word-break: break-word; }
.c-card .go { margin-left: auto; color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.c-card:hover .go { transform: translate(3px, -3px); color: var(--accent); }

.avail { padding: 26px; }
.avail h3 { font: 600 17px var(--sans); display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avail p { color: var(--muted); font-size: 15px; }

.form { padding: 40px; }
.form h2 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 8px; }
.form > p { color: var(--muted); margin-bottom: 30px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: 400 16px var(--sans); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label {
  margin: 0; padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg);
  font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; transition: all .2s var(--ease);
}
.pills label:hover { border-color: var(--ink); color: var(--ink); }
.pills input:checked + label { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pills input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }
.form-ok { display: none; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); font-weight: 600; margin-top: 14px; }
.form-ok.show { display: block; animation: pop .4s var(--ease); }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 24px;
  font: 400 22px/1.3 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 28px/1 var(--sans); color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 24px; max-width: 68ch; }

/* ========================================================= Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .stagger.in > * { opacity: 1; transform: none; }
.js .stagger.in > *:nth-child(2) { transition-delay: .08s; }
.js .stagger.in > *:nth-child(3) { transition-delay: .16s; }
.js .stagger.in > *:nth-child(4) { transition-delay: .24s; }
.js .stagger.in > *:nth-child(5) { transition-delay: .32s; }
.js .stagger.in > *:nth-child(6) { transition-delay: .4s; }
.js .stagger.in > *:nth-child(n+7) { transition-delay: .46s; }
/* once revealed, hover transforms take over */
.js .stagger.done > * { transition-delay: 0s; }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ========================================================= Responsive */
@media (max-width: 980px) {
  .hero-grid, .band, .contact-grid { grid-template-columns: 1fr; }
  .hero-layout { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
  .hero-right { padding-left: 0; border-left: 0; }
  .feature-grid, .cert-grid { grid-template-columns: 1fr 1fr; }
  .case { grid-template-columns: 1fr; gap: 34px; padding: 32px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .acc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0); transition: clip-path .45s var(--ease); visibility: hidden;
  }
  .nav.open .nav-links { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav-links a:not(.btn) { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font: 400 24px var(--serif); color: var(--ink); }
  .nav-links a:not(.btn):hover { background: none; }
  .nav-links a[aria-current="page"]::after { left: auto; right: 6px; top: 50%; bottom: auto; transform: translateY(-50%); width: 8px; height: 8px; }
  .nav-links .btn { margin: 18px 0 0; justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 48px; }
  .page-hero { padding-block: 60px 40px; }
  .section { padding-top: 72px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div, .stats div + div { padding: 22px 12px 22px 0; border-left: 0; }
  .stats div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feature-grid, .cert-grid, .steps { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .case { padding: 24px; }
  .band .card, .form { padding: 26px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .channels li { grid-template-columns: 1fr 48px; gap: 8px 16px; }
  .channels .bar { grid-column: 1 / -1; grid-row: 2; }
  .acc { padding: 22px; }
  .acc-top { flex-wrap: wrap; }
  .acc-stats dd { font-size: 16px; }
  .learning li { grid-template-columns: 1fr 48px; gap: 8px 16px; }
  .learning .bar { grid-column: 1 / -1; grid-row: 2; }
  .cta-band { padding: 72px 0; margin-top: 80px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .marquee-track span { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .stagger > * { opacity: 1; transform: none; }
  .m-bars span, .bar::after { clip-path: none; }
}

/* nav button when on the contact page */
.nav-links .btn[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ========================================================= Theme toggle */
.nav-inner .logo { margin-right: auto; }
.theme-btn {
  order: 3; flex: none; width: 44px; height: 44px; margin-left: 12px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: transform .4s var(--ease), border-color .3s;
}
.theme-btn:hover { border-color: var(--accent); transform: rotate(-20deg); }
.theme-btn svg { width: 20px; height: 20px; grid-area: 1 / 1; transition: opacity .3s, transform .5s var(--ease); }
.theme-btn .i-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-btn .i-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .theme-btn .i-moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
  :root:not([data-theme="light"]) .theme-btn .i-moon { opacity: 1; transform: none; }
}
html.theming, html.theming * { transition: background-color .4s ease, color .4s ease, border-color .4s ease !important; }
.menu-btn { order: 4; margin-left: 8px; }

/* ========================================================= Brand & platform logos */
.mono.logo { object-fit: cover; background: #fff; border: 1px solid var(--line); padding: 0; }
.case-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); vertical-align: middle; margin-right: 12px; }
.issuer .ico { width: 26px; height: 26px; background: var(--ic, #fff); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.issuer { border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.issuer.sm { width: 42px; height: 42px; border-radius: 12px; flex: none; }
.issuer.sm .ico { width: 21px; height: 21px; }
.plat { display: flex; align-items: center; gap: 16px; }

/* ========================================================= Contact: cards centred, no form */
.contact-grid.solo { display: block; max-width: 920px; margin: 0 auto; }
.contact-grid.solo .contact-cards { grid-template-columns: 1fr 1fr; }
.contact-grid.solo .avail { grid-column: 1 / -1; text-align: center; }
.contact-grid.solo .avail h3 { justify-content: center; }
@media (max-width: 760px) { .contact-grid.solo .contact-cards { grid-template-columns: 1fr; } }

/* Logo badges on certificates (images in logos/platforms/) */
.issuer.tile { padding: 0; overflow: hidden; background: transparent; border: 0; }
.issuer.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.16); }
.issuer.wide { width: auto; min-width: 50px; padding: 0 14px; background: #fff; border: 1px solid var(--line); }
.issuer.wide img { height: 22px; width: auto; display: block; }
.issuer.sm.wide img { height: 17px; }
.issuer.sm.wide { padding: 0 10px; }

/* ========================================================= Floating WhatsApp button */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; align-items: center; gap: 12px;
  text-decoration: none; animation: wa-in .7s 1.2s var(--ease) both;
}
.wa-btn {
  position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 28px -8px rgba(37, 211, 102, .7), 0 4px 12px rgba(0, 0, 0, .18);
  transition: transform .35s var(--ease);
}
.wa-btn svg { width: 32px; height: 32px; }
.wa-btn::before {            /* pulse ring */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-tip {
  padding: 10px 16px; border-radius: 99px; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  font: 600 14px var(--sans); white-space: nowrap; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity .3s, transform .35s var(--ease);
}
.wa-float:hover .wa-btn, .wa-float:focus-visible .wa-btn { transform: scale(1.08); }
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip, .wa-float.peek .wa-tip { opacity: 1; transform: none; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes wa-in { from { opacity: 0; transform: translateY(20px) scale(.8); } }
@media (max-width: 640px) { .wa-float { right: 16px; bottom: 16px; } .wa-btn { width: 54px; height: 54px; } .wa-btn svg { width: 28px; height: 28px; } }
@media (prefers-reduced-motion: reduce) { .wa-btn::before { animation: none; } .wa-float { animation: none; } }
