@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap");

:root {
  --bg: #0c0c0e;
  --bg-2: #121215;
  --panel: #17171b;
  --panel-2: #1d1d22;
  --line: #2a2a31;
  --line-2: #3a3a42;
  --ink: #f5f5f4;
  --ink-2: #b8b8c0;
  --ink-3: #85858f;
  --accent: #f04e23;
  --accent-2: #ff7a4d;
  --green: #5cbf4a;
  --display: "Bebas Neue", "Barlow Condensed", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.accent { color: var(--accent); }
.muted { color: var(--ink-2); }
.em { color: var(--accent); font-style: italic; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 14, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.brand-mark { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: .16em; font-size: 13px; white-space: nowrap; }
.brand-mark img { height: 22px; width: auto; }
.header-cta { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.header-cta:hover { background: var(--accent-2); }
.header-cta svg { width: 16px; height: 16px; flex: none; }
.work-nav { border-top: 1px solid var(--line); }
.work-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.work-nav ul::-webkit-scrollbar { display: none; }
.work-nav a {
  display: block; padding: 12px 14px; white-space: nowrap; text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  border-bottom: 2px solid transparent;
}
.work-nav a:hover { color: var(--ink); }
.work-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.work-nav .count { color: var(--ink-3); font-weight: 500; margin-left: 4px; }

/* ---------- type ---------- */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.display { font-family: var(--display); font-weight: 400; line-height: .92; letter-spacing: .005em; text-transform: uppercase; margin: 0; }
h1.display { font-size: clamp(56px, 10vw, 156px); }
h2.display { font-size: clamp(44px, 6.4vw, 96px); }
h3.display { font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); max-width: 720px; margin: 22px 0 0; }
.rule { width: 72px; height: 4px; background: var(--accent); border: 0; margin: 26px 0; }

section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(32px, 5vw, 56px); flex-wrap: wrap; }
.section-head p { max-width: 460px; color: var(--ink-2); margin: 0; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid var(--line-2); transition: background .2s, border-color .2s, color .2s; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn svg { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- hero ---------- */
.hero { border-top: 0; padding-top: clamp(48px, 8vw, 110px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1.display { font-size: clamp(48px, 6.2vw, 98px); }
.portrait { position: relative; justify-self: end; width: min(100%, 420px); aspect-ratio: 1; }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 1px solid var(--line-2); }
.portrait::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(240, 78, 35, .55); animation: spin 60s linear infinite; }
.portrait .badge { position: absolute; left: -8px; bottom: 8%; background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(92, 191, 74, .18); }
@keyframes spin { to { transform: rotate(360deg); } }
.roles { color: var(--accent); font-size: clamp(15px, 1.4vw, 19px); margin-top: 18px; font-weight: 500; }

/* ---------- logo wall ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.logo-wall li { list-style: none; background: var(--bg); display: grid; place-items: center; padding: 26px 18px; min-height: 104px; }
.logo-wall img { max-height: 46px; width: auto; max-width: 100%; opacity: .78; transition: opacity .2s; }
.logo-wall li:hover img { opacity: 1; }
.logo-wall { padding: 0; margin: 0; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { border-left: 3px solid var(--accent); padding: 6px 0 6px 18px; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(48px, 6vw, 76px); line-height: .9; }
.stat span { color: var(--ink-2); font-size: 14px; }

/* ---------- numbered cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .num { font-family: var(--display); font-size: 58px; line-height: .8; color: var(--accent); }
.card .ico { width: 46px; height: 46px; color: var(--ink); margin-bottom: 18px; }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; text-transform: uppercase; margin: 14px 0 12px; }
.card p { color: var(--ink-2); margin: 0; font-size: 15px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 88px); }
.name-block { font-family: var(--display); font-size: clamp(88px, 13vw, 190px); line-height: .82; text-transform: uppercase; margin: 0; }
.name-block span { display: block; }
.name-block .a { color: var(--accent); }
blockquote { margin: 0; padding: 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
blockquote p { margin: 0 0 18px; }
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 26px; margin: 28px 0 0; font-size: 15px; }
.info-list dt { color: var(--ink-3); }
.info-list dd { margin: 0; }

/* ---------- software ---------- */
.soft-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.radar { width: 100%; max-width: 520px; margin: 0 auto; }
.radar text { font-family: var(--body); }
.app-list { display: grid; gap: 12px; }
.app { display: grid; grid-template-columns: 52px 1fr auto; gap: 18px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.app img { width: 40px; height: 40px; object-fit: contain; }
.app .meta { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 8px; }
.app .meta b { font-weight: 600; }
.app .lvl { color: var(--ink-3); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.app .lvl.wiz { color: var(--accent); }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; width: 0; transition: width 1.2s cubic-bezier(.2, .7, .2, 1); }
.in-view .bar i { width: var(--v); }
.app .yrs { text-align: center; font-family: var(--display); font-size: 34px; line-height: .8; }
.app .yrs small { display: block; font-family: var(--body); font-size: 10px; letter-spacing: .14em; color: var(--ink-3); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.chip img { width: 26px; height: 26px; }

/* ---------- skills ---------- */
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.skill { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.skill img { width: 52px; height: 52px; flex: none; }
.skill span { font-size: 15px; line-height: 1.3; }

/* ---------- AI ---------- */
.ai-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tool { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.tool .tname { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.tool .tname svg { width: 22px; height: 22px; color: var(--accent); }
.tool p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ---------- workflow diagram ---------- */
.flow { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.flow-line { position: absolute; left: 4%; right: 4%; top: 46px; height: 2px; z-index: 0; }
.step { position: relative; z-index: 1; }
.step .node { width: 92px; height: 92px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); display: grid; place-items: center; margin-bottom: 20px; transition: border-color .3s, background .3s; }
.step .node svg { width: 40px; height: 40px; }
.step:hover .node { border-color: var(--accent); background: var(--panel); }
.step .n { font-family: var(--display); color: var(--accent); font-size: 44px; line-height: .8; }
.step h3 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; margin: 6px 0 10px; text-transform: uppercase; }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ---------- timeline ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--line)); }
.timeline li { position: relative; padding: 0 0 26px; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline b { display: block; font-weight: 600; }
.timeline span { color: var(--ink-3); font-size: 14px; }
.timeline em { display: block; color: var(--ink-2); font-style: normal; font-size: 14px; }
.sub-h { font-family: var(--display); font-weight: 400; font-size: 34px; text-transform: uppercase; margin: 0 0 22px; color: var(--accent); }

/* ---------- value ---------- */
.value-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.salary { width: 100%; }
.salary text { font-family: var(--body); }
.saved { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.saved .big { font-family: var(--display); color: var(--accent); font-size: clamp(48px, 5.6vw, 80px); line-height: .9; }
.saved .q { font-family: var(--display); color: var(--green); font-size: clamp(30px, 3vw, 42px); line-height: 1; margin-top: 22px; }

/* ---------- work index cards ---------- */
.brand-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.brand-card { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--panel); border: 1px solid var(--line); }
.brand-card img.cover { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .3s; opacity: .62; }
.brand-card:hover img.cover { transform: scale(1.05); opacity: .8; }
.brand-card .over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .88)); }
.brand-card .over b { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: .95; text-transform: uppercase; }
.brand-card .over span { font-size: 12px; letter-spacing: .14em; color: var(--ink-2); text-transform: uppercase; margin-top: 6px; }
.brand-card .arrow { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .55); display: grid; place-items: center; transition: background .2s; }
.brand-card:hover .arrow { background: var(--accent); }

/* ---------- contact ---------- */
.contact { background: var(--panel); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.qr-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.qr { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; text-decoration: none; }
.qr img { width: 100%; max-width: 170px; margin: 0 auto 12px; background: #fff; padding: 8px; border-radius: 8px; }
.qr b { display: block; font-size: 13px; letter-spacing: .14em; }
.qr span { color: var(--ink-3); font-size: 12px; }
.contact-lines { display: grid; gap: 8px; margin-top: 26px; font-size: 17px; }
.contact-lines a { text-decoration: none; display: inline-flex; gap: 12px; align-items: center; }
.contact-lines svg { width: 20px; height: 20px; color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--ink-3); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- brand page ---------- */
.brand-hero { border-top: 0; padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); }
.brand-hero .logo { height: clamp(44px, 6vw, 72px); width: auto; margin-bottom: 28px; }
.brand-hero .meta { display: flex; gap: 28px; margin-top: 26px; color: var(--ink-3); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; flex-wrap: wrap; }
.brand-hero .meta b { color: var(--ink); font-weight: 600; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.toc a { font-size: 13px; text-decoration: none; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }
.toc a:hover { color: var(--ink); border-color: var(--ink-2); }
.project { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); scroll-margin-top: 130px; }
.project-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 28px; }
.project-head .k { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.project-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.4vw, 60px); line-height: .95; text-transform: uppercase; margin: 0; }
.project-head p { color: var(--ink-2); margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 12px; }
.gallery figure { margin: 0; background: var(--panel); border-radius: 10px; overflow: hidden; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery a { display: block; cursor: zoom-in; }
.gallery img { width: 100%; height: auto; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.gallery a:hover img { transform: scale(1.02); }
.next-brand { display: flex; justify-content: space-between; align-items: center; gap: 20px; text-decoration: none; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.next-brand b { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 7vw, 100px); line-height: .9; text-transform: uppercase; }
.next-brand:hover b { color: var(--accent); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(5, 5, 6, .95); display: none; align-items: center; justify-content: center; padding: 56px 64px; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lb button { position: absolute; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-size: 22px; }
.lb button:hover { background: var(--accent); border-color: var(--accent); }
.lb .close { top: 14px; right: 14px; }
.lb .prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb .cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--ink-2); font-size: 13px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .logo-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .skills, .ai-grid, .brand-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .flow-line { display: none; }
}
@media (max-width: 860px) {
  .hero-grid, .about-grid, .soft-grid, .two-col, .value-grid, .contact-grid, .project-head { grid-template-columns: minmax(0, 1fr); }
  .portrait { justify-self: start; width: min(70%, 300px); order: -1; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .gallery { --cols: 2 !important; }
}
@media (max-width: 600px) {
  .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-wall li { padding: 18px 10px; min-height: 80px; }
  .logo-wall img { max-height: 32px; }
  .cards, .skills, .ai-grid, .brand-cards, .flow { grid-template-columns: minmax(0, 1fr); }
  .brand-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-card .over b { font-size: 26px; }
  .header-cta span { display: none; }
  .gallery { --cols: 1 !important; }
  .lb { padding: 56px 8px; }
  .qr-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .portrait::before { animation: none; }
  .bar i { transition: none; }
}

/* =====================================================================
   MOTION
   ===================================================================== */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2)); z-index: 60; pointer-events: none; }

body { animation: page-in .6s ease both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* hero headline: each line slides up from a mask */
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .ln > span { display: inline-block; transform: translateY(105%); animation: line-up .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--d, 0) * 120ms + 150ms); }
@keyframes line-up { to { transform: none; } }
.hero .eyebrow, .hero .roles, .hero .lead, .hero .actions { opacity: 0; animation: fade-up .8s ease forwards; }
.hero .eyebrow { animation-delay: .05s; }
.hero .roles { animation-delay: .55s; }
.hero .lead { animation-delay: .7s; }
.hero .actions { animation-delay: .85s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.portrait { animation: pop-in 1.1s cubic-bezier(.2, .8, .2, 1) .3s both; }
@keyframes pop-in { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
.portrait::after { content: ""; position: absolute; inset: -18%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(240, 78, 35, .35), transparent 62%); animation: glow 6s ease-in-out infinite; }
@keyframes glow { 0%, 100% { transform: scale(.92); opacity: .65; } 50% { transform: scale(1.06); opacity: 1; } }
.portrait { isolation: isolate; }
.portrait img { position: relative; }

/* marquee of disciplines */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--bg-2); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--display); font-size: clamp(28px, 3.4vw, 46px); line-height: 1; text-transform: uppercase; padding-right: 48px; white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; color: var(--ink-2); }
.marquee span::after { content: "✦"; color: var(--accent); font-size: .5em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* staggered children */
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.stagger.in-view > * { opacity: 1; transform: none; }
.logo-wall.stagger > li { transform: scale(.94); }
.logo-wall.stagger.in-view > li { transform: none; }

/* radar draw-in */
.radar .shape { transform-origin: 260px 250px; transform: scale(0); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1) .2s; }
.radar .dot-pt { opacity: 0; transition: opacity .4s ease 1.2s; }
.in-view .radar .shape, .radar.in-view .shape { transform: none; }
.in-view .radar .dot-pt { opacity: 1; }

/* workflow line flows, nodes pop one by one */
.flow-line line { animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.flow .step { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 140ms); }
.flow.in-view .step { opacity: 1; transform: none; }
.flow .node { transition: border-color .3s, background .3s, transform .3s; }
.flow.in-view .step .node { animation: ping .9s ease calc(var(--i, 0) * 140ms + .3s) 1 both; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(240, 78, 35, .55); } 100% { box-shadow: 0 0 0 18px rgba(240, 78, 35, 0); } }
.step:hover .node { transform: translateY(-4px); }

/* timeline grows */
.timeline::before { transform-origin: top; transform: scaleY(0); transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.in-view .timeline::before, .timeline.in-view::before { transform: none; }
.timeline li { opacity: 0; transform: translateX(-12px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * 110ms + .2s); }
.in-view .timeline li { opacity: 1; transform: none; }

/* cards: lift + accent sweep */
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; border-radius: var(--radius) var(--radius) 0 0; }
.card:hover::after { transform: scaleX(1); }
.skill, .tool, .app { transition: border-color .25s, transform .25s, background .25s; }
.skill:hover, .tool:hover, .app:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--panel-2); }
.skill img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.skill:hover img { transform: rotate(-12deg) scale(1.08); }

/* brand page: hero + gallery */
.brand-hero .logo, .brand-hero .eyebrow, .brand-hero h1, .brand-hero .lead, .brand-hero .meta, .brand-hero .toc { opacity: 0; animation: fade-up .8s ease forwards; }
.brand-hero .eyebrow { animation-delay: .08s; }
.brand-hero h1 { animation-delay: .16s; }
.brand-hero .lead { animation-delay: .28s; }
.brand-hero .meta { animation-delay: .38s; }
.brand-hero .toc { animation-delay: .48s; }
.gallery figure { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.gallery figure.in-view { opacity: 1; transform: none; }
.brand-card { transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
.brand-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.next-brand b { transition: color .3s, transform .4s cubic-bezier(.2, .8, .2, 1); display: inline-block; }
.next-brand:hover b { transform: translateX(10px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 .ln > span, .hero .eyebrow, .hero .roles, .hero .lead, .hero .actions, .portrait,
  .stagger > *, .flow .step, .timeline li, .gallery figure, .brand-hero * { opacity: 1 !important; transform: none !important; }
  .radar .shape, .timeline::before { transform: none !important; }
  .radar .dot-pt { opacity: 1 !important; }
  .marquee-track { animation: none !important; }
  .progress { display: none; }
}

/* ---------- featured 3D ---------- */
.features { display: grid; gap: clamp(48px, 7vw, 96px); }
.feature { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.feature.flip .f-main { order: 2; }
.f-main { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); clip-path: inset(0 100% 0 0 round var(--radius)); transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1); }
.feature.flip .f-main { clip-path: inset(0 0 0 100% round var(--radius)); }
.feature.in-view .f-main { clip-path: inset(0 0 0 0 round var(--radius)); }
.f-main img { width: 100%; height: auto; transform: scale(1.12); transition: transform 1.6s cubic-bezier(.2, .8, .2, 1); }
.feature.in-view .f-main img { transform: scale(1); }
.f-main:hover img { transform: scale(1.03); }
.f-body { position: relative; }
.f-num { font-family: var(--display); font-size: clamp(80px, 10vw, 150px); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--line-2); position: absolute; top: -.35em; right: 0; pointer-events: none; }
.f-body h3 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4.6vw, 68px); line-height: .92; text-transform: uppercase; margin: 0 0 16px; }
.f-body > p:not(.eyebrow) { color: var(--ink-2); margin: 0 0 18px; }
.f-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.f-tags span { font-size: 12px; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px; background: rgba(240, 78, 35, .12); color: var(--accent-2); }
.f-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.f-side { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.f-side img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.f-side:hover img { transform: scale(1.06); }
.feature .f-body > * { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.feature.in-view .f-body > * { opacity: 1; transform: none; }
.feature.in-view .f-body > :nth-child(2) { transition-delay: .35s; }
.feature.in-view .f-body > :nth-child(3) { transition-delay: .45s; }
.feature.in-view .f-body > :nth-child(4) { transition-delay: .55s; }
.feature.in-view .f-body > :nth-child(5) { transition-delay: .65s; }
.feature.in-view .f-body > :nth-child(6) { transition-delay: .75s; }
.feature.in-view .f-body > :nth-child(7) { transition-delay: .85s; }
.f-num { opacity: 1 !important; transform: none !important; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .f-main { order: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .f-main, .feature.flip .f-main { clip-path: none !important; }
  .f-main img { transform: none !important; }
  .feature .f-body > * { opacity: 1 !important; transform: none !important; }
}
