/* =========================================================
   Atiq Mustahid — portfolio
   Tokens
   ========================================================= */
:root {
  --paper: #ffffff;
  --paper-2: #f4f4f2;
  --ink: #121212;
  --ink-2: #4a4a4a;
  --mute: #8a8a8a;
  --line: #e4e4e0;
  --red: #d62828;
  --red-deep: #b51f1f;
  --red-tint: #fdeeee;

  --font-display: "Syne", "Arial Black", sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --w-max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 22px;
  --shadow-hard: 6px 6px 0 var(--ink);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
main { overflow-x: hidden; overflow-x: clip; }
/* Grid and flex children may shrink below their content width instead of stretching the page */
.hero > *, .about-grid > *, .two-up > *, .edu-grid > *, .work-grid > *, .brand-grid > *, .be-grid > *, .contact-list > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--w-max)); margin-inline: auto; }
.dot { color: var(--red); }
.accent { color: var(--red); }
.nowrap { white-space: nowrap; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  border: 2px solid var(--ink);
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav {
  width: min(100% - 2 * var(--gutter), var(--w-max)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
}
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em;
}
.nav-menu { display: flex; align-items: center; gap: clamp(.9rem, 1.9vw, 1.75rem); }
.nav-menu a:not(.btn) {
  font-weight: 600; font-size: .95rem; color: var(--ink-2);
  position: relative; padding: .25rem 0;
}
.nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-menu a:not(.btn):hover::after,
.nav-menu a.is-active::after { transform: scaleX(1); }
.nav-menu a.is-active { color: var(--ink); }
.nav-cta .btn { padding: .6rem 1.2rem; font-size: .9rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  flex-direction: column; justify-content: center; gap: 7px; align-items: center;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.75px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  width: min(100% - 2 * var(--gutter), var(--w-max)); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: calc(100vh - 72px);
  padding-block: clamp(2rem, 6vh, 4rem) clamp(2rem, 6vh, 3rem);
}
.hero-hello {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--ink-2); margin-bottom: .6rem;
  animation: rise .7s var(--ease) both;
}
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1.05; letter-spacing: -.035em;
  animation: rise .7s var(--ease) .1s both;
}
.wave { display: inline-block; font-size: .8em; transform-origin: 70% 70%; animation: wave 2.2s ease-in-out 1.2s 2; }
.hero-sub {
  margin-top: 1.4rem; max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2);
  animation: rise .7s var(--ease) .2s both;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; animation: rise .7s var(--ease) .3s both; }

.hero-visual {
  position: relative; aspect-ratio: 1 / 1.05; max-width: 540px; width: 100%; justify-self: end;
}
.hero-disc {
  position: absolute; inset: auto 6% 0 6%; height: 62%;
  background: var(--red); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  animation: pop .8s var(--ease) .2s both;
}
.hero-portrait {
  position: absolute; left: 18%; bottom: 0;
  width: 64%; height: 92%; margin: 0;
  display: flex; align-items: flex-end; justify-content: center;
  animation: rise .8s var(--ease) .35s both;
}
.hero-portrait img { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }
.portrait-fallback { display: none; }
.hero-portrait.is-empty img, .about-portrait.is-empty img { display: none; }
.hero-portrait.is-empty .portrait-fallback {
  display: grid; place-items: center;
  width: 100%; height: 78%;
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: 200px 200px 0 0;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 8vw, 6rem); color: var(--ink);
}

.stat-bubbles { position: absolute; inset: 0; pointer-events: none; }
.stat {
  position: absolute; left: clamp(-4%, var(--x), calc(100% - 9.75rem)); top: var(--y);
  background: #fff; border: 2px solid var(--ink); border-radius: 999px;
  padding: .55rem 1rem .55rem .9rem;
  display: flex; align-items: center; gap: .55rem;
  box-shadow: 4px 4px 0 var(--ink);
  pointer-events: auto;
  animation: pop .6s var(--ease) calc(.6s + var(--d) * .25) both, float 6s ease-in-out var(--d) infinite;
}
.stat strong { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--red); letter-spacing: -.02em; }
.stat span { font-size: .78rem; font-weight: 600; line-height: 1.15; max-width: 9ch; color: var(--ink-2); }

/* =========================================================
   Ticker
   ========================================================= */
.ticker {
  --tilt: -2deg;
  overflow: hidden; background: var(--paper-2); border-block: 2px solid var(--ink);
  transform: rotate(var(--tilt)) scale(1.03);
  margin-block: 1rem 3rem;
}
.ticker-track {
  display: flex; align-items: center; gap: 2.2rem; width: max-content;
  padding: .85rem 0;
  animation: ticker 40s linear infinite;
}
.ticker-track span { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; white-space: nowrap; }
.ticker-track i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* =========================================================
   Sections
   ========================================================= */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-alt { background: var(--paper-2); }
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -.04em;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .section-title { margin-bottom: 0; }
.section-intro { color: var(--ink-2); max-width: 52ch; }
.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin-bottom: .6rem;
}
.eyebrow + .list, .eyebrow + .lede, .eyebrow + .tags { margin-bottom: 1.8rem; }
.list li { position: relative; padding-left: 1.1rem; margin-bottom: .45rem; }
.list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.lede { font-weight: 600; font-size: 1.1rem; max-width: 40ch; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li {
  padding: .4rem .85rem; border-radius: 999px; border: 1.5px solid var(--ink);
  font-size: .88rem; font-weight: 600; background: #fff;
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.about-card { position: relative; aspect-ratio: 4 / 5; }
.about-card-disc { position: absolute; inset: 20% 0 0 10%; background: var(--red); border-radius: 50% 50% 0 0 / 40% 40% 0 0; }
.about-portrait { position: absolute; inset: 0; margin: 0; display: flex; align-items: flex-end; justify-content: center; }
.about-portrait img { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }
.about-portrait.is-empty .portrait-fallback {
  display: grid; place-items: center; width: 80%; height: 70%;
  border: 2px solid var(--ink); background: var(--paper-2); border-radius: 200px 200px 0 0;
  font-family: var(--font-display); font-weight: 800; font-size: 4rem;
}

/* Experience timeline */
.timeline { display: grid; gap: 1.25rem; }
.job {
  display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem;
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-hard);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.job:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.job-meta { display: flex; flex-direction: column; gap: .3rem; }
.job-date { font-family: var(--font-display); font-weight: 700; color: var(--red); font-size: .95rem; }
.job-place { color: var(--mute); font-size: .9rem; font-weight: 600; }
.job-title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: .8rem; line-height: 1.2; }
.job-co { display: block; font-family: var(--font-body); font-weight: 600; font-size: .95rem; color: var(--ink-2); margin-top: .2rem; }
.job .list li { font-size: .98rem; }

/* Brands: each card is a tiny browser window opened on the brand's site */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.brand-card > a {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.brand-card > a:hover, .brand-card > a:focus-visible { transform: translate(-3px, -3px); box-shadow: var(--shadow-hard); }
.brand-card > a:focus-visible { outline-offset: 4px; }

.brand-bar {
  position: relative;
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .8rem; background: var(--paper-2); border-bottom: 2px solid var(--ink);
}
.brand-bar::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left;
}
.brand-card > a:hover .brand-bar::after,
.brand-card > a:focus-visible .brand-bar::after { animation: load .9s var(--ease) forwards; }

.brand-dots { display: flex; gap: 5px; flex: none; }
.brand-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; }
.brand-dots i:first-child { background: var(--red); border-color: var(--red); }

.brand-url {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: .4rem;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: .3rem .75rem;
  font-size: .82rem; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-proto { color: var(--mute); font-weight: 500; }
.brand-lock { flex: none; stroke: var(--ink-2); stroke-width: 1.4; fill: none; }
.brand-lock rect { fill: var(--ink-2); stroke: none; }
.brand-go { flex: none; font-weight: 800; color: var(--ink); transition: transform .25s var(--ease), color .25s; }
.brand-card > a:hover .brand-go { transform: translate(2px, -2px); color: var(--red); }

.brand-screen {
  display: grid; place-items: center;
  aspect-ratio: 16 / 8;
  background: var(--screen, #fff);
  padding: 1.5rem;
}
.brand-screen img {
  height: var(--logo-h, 44px); width: auto; max-width: 78%; object-fit: contain;
  transition: transform .35s var(--ease);
}
.brand-card > a:hover .brand-screen img { transform: scale(1.06); }

.brand-meta { padding: .9rem 1.1rem 1.1rem; border-top: 2px solid var(--ink); }
.brand-meta h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.25; }
.brand-meta p { font-size: .88rem; color: var(--ink-2); margin-top: .15rem; }

@keyframes load { to { transform: scaleX(1); } }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.work-card > a {
  display: flex; flex-direction: column; height: 100%;
  border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.work-card > a:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-hard); }
.work-thumb {
  position: relative; margin: 0;
  display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px;
  aspect-ratio: 3 / 2; background: var(--ink); border-bottom: 2px solid var(--ink); overflow: hidden;
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; background: var(--paper-2); transition: filter .3s; }
.work-thumb img:first-child { grid-row: 1 / 3; }
.work-count {
  position: absolute; left: .7rem; bottom: .7rem;
  background: #fff; border: 2px solid var(--ink); border-radius: 999px;
  padding: .25rem .7rem; font-size: .78rem; font-weight: 700; line-height: 1.3;
  box-shadow: 3px 3px 0 var(--ink);
  transition: background .25s, color .25s, border-color .25s;
}
.work-card > a:hover .work-count { background: var(--red); border-color: var(--red); color: #fff; }
.work-card > a:hover .work-thumb img { filter: saturate(1.15); }
.work-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.work-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.work-body p { color: var(--ink-2); font-size: .95rem; }
.work-tag { margin-top: auto; padding-top: .8rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.work-card-more > a { background: var(--ink); color: #fff; justify-content: center; }
.work-card-more .work-body { align-items: flex-start; justify-content: center; gap: .8rem; }
.work-card-more .work-body p { color: #cfcfcf; }
.work-card-more .btn { margin-top: .6rem; }

/* Behance */
.be-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem); }
.be-head .section-title { margin-bottom: 1rem; }
.be-mark {
  display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 6px;
  background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .85rem; letter-spacing: -.04em;
  transition: background .2s, color .2s;
}
.be-cta { padding-left: .7rem; }
.be-cta:hover .be-mark { background: #fff; color: var(--ink); }

.be-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.be-card > a {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.be-card > a:hover, .be-card > a:focus-visible { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.be-card img { width: 100%; height: auto; aspect-ratio: 404 / 316; object-fit: cover; background: var(--paper-2); border-bottom: 2px solid var(--ink); }
.be-title {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .6rem .8rem; font-family: var(--font-display); font-weight: 700; font-size: .88rem; letter-spacing: -.01em; line-height: 1.25;
}
.be-go { flex: none; transition: transform .25s var(--ease), color .25s; }
.be-card > a:hover .be-go { transform: translate(2px, -2px); color: var(--red); }

/* Tools + certs */
.two-up { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.5rem; align-items: stretch; }
.panel {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.5rem); box-shadow: var(--shadow-hard);
}
.panel { container-type: inline-size; }
.panel .section-title { font-size: clamp(1.25rem, 4vw, 3rem); font-size: clamp(1.25rem, 9cqi, 3rem); margin-bottom: 1.6rem; }
.tool-groups { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; }
.pill {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  background: var(--paper-2); border-radius: 999px; padding: .35rem .9rem; margin-bottom: .75rem;
}
.cert-list { display: grid; gap: .9rem; }
.cert-list li { display: grid; gap: .15rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.cert-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cert-org { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.cert-list li span:last-child { font-weight: 600; }

/* Education */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.edu { border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-hard); overflow: hidden; display: flex; flex-direction: column; }
.edu-plate {
  display: grid; place-items: center; height: 170px; padding: 1.25rem;
  background: var(--plate, #fff); border-bottom: 2px solid var(--ink);
}
.edu-plate img { height: var(--logo-h, 80px); width: auto; max-width: 80%; object-fit: contain; }
.edu-body { padding: clamp(1.25rem, 3vw, 2rem); }
.edu-years { font-family: var(--font-display); font-weight: 700; color: var(--red); display: block; margin-bottom: .6rem; }
.edu h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; margin-bottom: .5rem; }
.edu p { color: var(--ink-2); }

/* Contact */
.contact { background: var(--ink); color: #fff; }
.contact .section-title { color: #fff; }
.contact-title { font-size: clamp(3rem, 9vw, 6.5rem); }
.contact-lede { font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 40ch; color: #d6d6d6; margin-bottom: 2rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 3rem; }
.contact .btn-primary { border-color: var(--red); }
.contact .btn-ghost { color: #fff; border-color: #fff; }
.contact .btn-ghost:hover { background: #fff; color: var(--ink); }
.contact-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; border-top: 1px solid #333; padding-top: 2rem; }
.contact-list li { display: grid; gap: .2rem; }
.contact-list a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.contact-list a:hover { color: var(--red); }

/* Footer */
.site-footer { background: var(--ink); color: #9a9a9a; border-top: 1px solid #2a2a2a; padding: 1.5rem 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer .brand { color: #fff; font-size: 1.3rem; }
.footer-end { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.credit a { color: #fff; font-weight: 600; transition: color .2s; }
.credit a:hover { color: var(--red); }
.to-top { color: #fff; font-weight: 600; }
.to-top:hover { color: var(--red); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 20px);
  background: var(--red); color: #fff; padding: .7rem 1.2rem; border-radius: 999px;
  font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  z-index: 60;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease) var(--delay, 0s), transform .6s var(--ease) var(--delay, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   Animations
   ========================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(16deg); } 40% { transform: rotate(-8deg); } 60% { transform: rotate(12deg); } 80% { transform: rotate(-4deg); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-card { grid-column: 1 / -1; max-width: 360px; justify-self: center; width: 100%; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .be-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1040px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 2px solid var(--ink);
    padding: .5rem var(--gutter) 1rem;
    max-height: calc(100vh - 72px); overflow-y: auto;
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li a:not(.btn) { display: block; padding: .8rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-cta { padding-top: 1rem; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 2.5rem; }
  .hero-title { font-size: clamp(1.6rem, 8.6vw, 3.4rem); }
  .hero-visual { justify-self: center; max-width: 440px; margin-top: 1rem; }
  .two-up { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; gap: .8rem; }
  .job-meta { flex-direction: row; flex-wrap: wrap; gap: .8rem; }
  .edu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .section-title { font-size: clamp(1.9rem, 10.5vw, 2.6rem); }
  .contact-title { font-size: clamp(2.6rem, 15vw, 4rem); }
  .ticker { transform: rotate(-2deg); margin-inline: -8px; }
  .btn-lg { padding: .95rem 1.4rem; font-size: 1rem; }
  .contact-actions .btn { width: 100%; justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .brand-screen { aspect-ratio: 16 / 7; }
  .be-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .be-card:nth-child(n+9) { display: none; }
  .be-title { font-size: .8rem; padding: .5rem .6rem; }
  .be-cta { width: 100%; justify-content: center; }
  .edu-plate { height: 140px; }
  .tool-groups { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .stat { padding: .4rem .75rem .4rem .7rem; left: clamp(0%, var(--x), 52%); }
  .stat strong { font-size: 1rem; }
  .stat:nth-child(4) { top: 86%; }
  .stat span { font-size: .7rem; }
  .ticker-track span { font-size: 1.05rem; }
  .job, .edu, .panel { box-shadow: 4px 4px 0 var(--ink); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-end { flex-direction: column; gap: .6rem; }
}
