/* Rayan Poddar — Portfolio
   Visual language: quiet white canvas, framed column with hairline rails,
   floating pill navigation, soft grey panels, one black accent pill. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f4;
  --bg-card: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #3f3f46;
  --muted: #7a7a7a;
  --line: #ececec;
  --line-strong: #dcdcdc;
  --accent: #0a0a0a;
  --accent-ink: #fafafa;
  --sky-1: #dcecfb;
  --sky-2: #f2f8fe;
  --shadow: 0 10px 30px -12px rgba(0,0,0,.18), 0 2px 6px -2px rgba(0,0,0,.06);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --frame: 1200px;
  --font: "TikTok Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c; --bg-soft: #161618; --bg-card: #1d1d20; --ink: #f4f4f5; --ink-2: #d4d4d8;
    --muted: #8b8b93; --line: #232326; --line-strong: #2e2e33; --accent: #f4f4f5; --accent-ink: #0b0b0c;
    --sky-1: #0f1a2a; --sky-2: #0b0b0c; --shadow: 0 10px 30px -12px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0c; --bg-soft: #161618; --bg-card: #1d1d20; --ink: #f4f4f5; --ink-2: #d4d4d8;
  --muted: #8b8b93; --line: #232326; --line-strong: #2e2e33; --accent: #f4f4f5; --accent-ink: #0b0b0c;
  --sky-1: #0f1a2a; --sky-2: #0b0b0c; --shadow: 0 10px 30px -12px rgba(0,0,0,.7);
}

* { 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(--font);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--ink); color: var(--bg); }

/* ---------- Frame: centred column with hairline rails ---------- */
.frame { max-width: var(--frame); margin: 0 auto; position: relative; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.band { position: relative; border-top: 1px solid var(--line); }
.band::before, .band::after { content: ""; position: absolute; top: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); opacity: .55; }
.band::before { left: -3px; } .band::after { right: -3px; }
.pad { padding: 96px 48px; }
@media (max-width: 760px) { .frame { border: 0; } .pad { padding: 64px 16px; } .band::before, .band::after { display: none; } }

/* ---------- Floating nav ---------- */
.nav-wrap { position: fixed; top: 22px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; gap: 10px; pointer-events: none; padding: 0 16px; }
.nav-wrap > * { pointer-events: auto; }
.nav { display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.nav a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; font-size: 15px; color: color-mix(in srgb, var(--ink) 68%, transparent); transition: background .2s, color .2s; }
.nav a svg { width: 16px; height: 16px; }
.nav a:hover { color: var(--ink); }
.nav a.active { background: var(--bg-card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.cta-pill { display: inline-flex; align-items: center; gap: 12px; padding: 5px 22px 5px 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 16px; box-shadow: var(--shadow); transition: transform .2s; white-space: nowrap; }
.cta-pill:hover { transform: translateY(-1px); }
.cta-pill .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-ink); color: var(--accent); display: grid; place-items: center; }
.cta-pill .dot svg { width: 18px; height: 18px; }
.theme-btn { position: fixed; top: 24px; right: 24px; z-index: 51; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-card); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.theme-btn svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .nav a span { display: none; } .nav a { padding: 10px 12px; } .theme-btn { top: auto; bottom: 20px; right: 16px; } }
@media (max-width: 480px) { .cta-pill { padding-right: 5px; } .cta-pill .lbl { display: none; } }

/* scroll progress dashes (left edge) */
.rail { position: fixed; left: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 18px; z-index: 40; }
.rail a { display: block; height: 1.5px; background: var(--ink); opacity: .35; transition: width .3s, opacity .3s; }
.rail a.on { opacity: 1; width: 48px !important; }
@media (max-width: 1000px) { .rail { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 500; border: 1px solid var(--line-strong); background: var(--bg-card); color: var(--ink); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.dark { border: 2px solid var(--ink); }
.btn svg { width: 14px; height: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100vh, 800px); display: grid; place-items: center; overflow: hidden; background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 42%, var(--bg) 70%); }
.cloud { position: absolute; background: #fff; border-radius: 999px; filter: blur(18px); opacity: .85; animation: drift 40s linear infinite; }
:root[data-theme="dark"] .cloud { opacity: .05; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cloud { opacity: .05; } }
@keyframes drift { from { transform: translateX(-4vw); } to { transform: translateX(4vw); } }
.hero-grid { position: relative; width: 100%; max-width: 1320px; padding: 140px 48px 80px; display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 40px; align-items: center; }
.roles { font-size: clamp(34px, 3.6vw, 52px); font-weight: 600; letter-spacing: -.03em; line-height: 1.06; min-height: 2.2em; }
.roles .word { display: inline-block; }
.roles .ch { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(6px); transition: opacity .45s, transform .45s, filter .45s; }
.roles .ch.in { opacity: 1; transform: none; filter: none; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.portrait { position: relative; aspect-ratio: 1; max-width: 380px; width: 100%; justify-self: center; }
.portrait .disc { position: absolute; inset: 0; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden; }
.portrait .mono { font-size: clamp(96px, 11vw, 150px); font-weight: 600; letter-spacing: -.06em; line-height: 1; }
.portrait .orbit { position: absolute; inset: -18px; border: 1px dashed var(--line-strong); border-radius: 50%; animation: spin 60s linear infinite; }
.portrait .chip { position: absolute; padding: 8px 14px; border-radius: 999px; font-size: 13px; background: var(--bg-card); border: 1px solid var(--line); box-shadow: var(--shadow); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.portrait .chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-copy { display: grid; gap: 14px; font-size: 18px; color: var(--muted); max-width: 340px; }
.hero-copy .hi { color: var(--muted); }
.hero-copy .lead { color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-card); width: max-content; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; padding: 130px 16px 64px; }
  .portrait { max-width: 260px; order: -1; }
  .portrait .chip:nth-of-type(2) { display: none; }
  .hero-copy { max-width: none; }
}

/* ---------- Domains strip ---------- */
.eyebrow { font-size: 16px; font-weight: 500; color: var(--ink); }
.eyebrow.mutedc { color: var(--muted); font-weight: 400; }
.domains { margin-top: 28px; padding: 44px 24px; border-radius: var(--radius-lg); background: var(--bg-soft); display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.domain { width: 138px; height: 138px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; text-align: center; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.domain:hover { transform: translateY(-6px) scale(1.04); }
.domain svg { display: block; width: 30px; height: 30px; margin: 0 auto 8px; }
.domain span { font-size: 13px; letter-spacing: .02em; }
@media (max-width: 600px) { .domain { width: 96px; height: 96px; } .domain svg { width: 22px; height: 22px; margin-bottom: 4px; } .domain span { font-size: 11px; } }

.statement { font-size: clamp(30px, 4vw, 50px); font-weight: 500; letter-spacing: -.03em; line-height: 1.12; max-width: 1080px; }
.statement .dim { color: var(--muted); }

/* stat tiles */
.stats { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: var(--bg-soft); border-radius: var(--radius-md); padding: 26px 24px; border: 1px solid var(--line); }
.stat b { display: block; font-size: 40px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Works ---------- */
.works-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.works-title { font-size: clamp(56px, 8vw, 110px); font-weight: 600; letter-spacing: -.05em; line-height: .9; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.filters button { font: inherit; font-size: 14px; border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.filters button sup { font-size: 10px; opacity: .7; }
.filters button.on { background: var(--bg-card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.showing { margin-top: 18px; color: var(--muted); font-size: 14px; }

.project { padding: 88px 48px 40px; border-top: 1px solid var(--line); }
.project[hidden] { display: none; }
.project h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; max-width: 900px; }
.tags { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.p-grid { margin-top: 56px; display: grid; grid-template-columns: 1.12fr 1fr; gap: 16px; }
.cover { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; background: var(--bg-soft); display: block; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.cover:hover img { transform: scale(1.035); }
.cover .shade { position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.cover .meta { position: absolute; left: 28px; right: 28px; bottom: 24px; color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.cover .meta b { font-weight: 500; font-size: 17px; grid-column: 1 / -1; }
.cover .meta span { font-size: 14px; opacity: .88; }
.panel { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.panel .say { background: var(--bg-card); border-radius: var(--radius-md); padding: 28px 22px; font-size: 17px; line-height: 1.5; min-height: 190px; display: flex; align-items: center; border: 1px solid var(--line); }
.panel .role { color: var(--muted); font-size: 15px; }
.panel .role + p { font-size: 15.5px; color: var(--ink-2); margin-top: -12px; }
.panel .result { font-size: 15px; color: var(--ink); display: flex; gap: 10px; align-items: flex-start; }
.panel .result svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.panel .go { margin-top: auto; align-self: flex-end; }
.feats { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feat { background: var(--bg-soft); border-radius: var(--radius-md); padding: 26px 24px; display: flex; flex-direction: column; border: 1px solid transparent; transition: border-color .2s, transform .2s; }
.feat:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.feat svg { width: 24px; height: 24px; color: var(--ink-2); }
.feat h4 { margin-top: 72px; font-size: 17px; font-weight: 400; color: var(--muted); }
.feat p { margin-top: 10px; font-size: 15px; color: var(--ink); line-height: 1.45; }
@media (max-width: 1000px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .project { padding: 64px 16px 24px; }
  .p-grid { grid-template-columns: 1fr; }
  .cover { min-height: 300px; }
  .feats { grid-template-columns: 1fr; }
  .feat { min-height: 0; } .feat h4 { margin-top: 28px; }
}

/* ---------- Experience / about ---------- */
.two { display: grid; grid-template-columns: 300px 1fr; gap: 48px; }
.sec-label { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-family: var(--mono); }
.sec-title { font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; margin-top: 10px; }
.job { border-radius: var(--radius-lg); background: var(--bg-soft); padding: 32px; }
.job-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.job-top h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.job-top .when { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.job .org { color: var(--muted); margin-top: 4px; }
.job ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.job li { padding-left: 22px; position: relative; color: var(--ink-2); }
.job li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 1.5px; background: var(--ink); }
.kp { margin-top: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.kp div { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.kp b { font-weight: 500; display: block; }
.kp span { color: var(--muted); font-size: 14px; display: block; margin-top: 6px; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; gap: 24px; } .kp { grid-template-columns: 1fr; } .job { padding: 22px 18px; } }

.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.skill { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; background: var(--bg-card); }
.skill h4 { font-size: 15px; font-weight: 500; margin-bottom: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
@media (max-width: 900px) { .skills { grid-template-columns: 1fr; } }

.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.edu div { background: var(--bg-soft); border-radius: var(--radius-md); padding: 24px; }
.edu b { font-weight: 500; display: block; }
.edu span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .edu { grid-template-columns: 1fr; } }

/* ---------- Contact / footer ---------- */
.contact { text-align: center; }
.contact h2 { font-size: clamp(44px, 7vw, 96px); font-weight: 600; letter-spacing: -.05em; line-height: .95; }
.contact p { color: var(--muted); margin: 20px auto 32px; max-width: 520px; font-size: 18px; }
.contact .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 48px; font-size: 13px; color: var(--muted); font-family: var(--mono); }
@media (max-width: 760px) { .foot { padding: 24px 16px; } }

/* ---------- Case study pages ---------- */
.cs-hero { padding: 160px 48px 56px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.back:hover { color: var(--ink); }
.back svg { width: 14px; height: 14px; }
.cs-hero h1 { font-size: clamp(38px, 5.4vw, 72px); font-weight: 600; letter-spacing: -.045em; line-height: 1.02; max-width: 980px; }
.cs-hero .sub { margin-top: 22px; font-size: 20px; color: var(--muted); max-width: 720px; }
.cs-meta { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cs-meta div { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 18px 20px; }
.cs-meta span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: var(--mono); }
.cs-meta b { display: block; font-weight: 500; margin-top: 6px; font-size: 15px; }
.cs-cover { margin: 0 48px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.cs-sec { padding: 88px 48px; border-top: 1px solid var(--line); }
.cs-sec .two { align-items: start; }
.cs-sec .body { font-size: 18px; color: var(--ink-2); display: grid; gap: 18px; max-width: 760px; }
.shot { margin-top: 40px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.shot + .cap { margin-top: 12px; font-size: 14px; color: var(--muted); }
.probs { display: grid; gap: 12px; }
.prob { display: grid; grid-template-columns: 56px 1fr 1fr; gap: 24px; padding: 24px; border-radius: var(--radius-md); background: var(--bg-soft); }
.prob .n { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.prob h4 { font-weight: 500; font-size: 17px; }
.prob p { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.prob .opp { font-size: 15px; color: var(--ink); border-left: 1.5px solid var(--ink); padding-left: 16px; }
.prob .opp em { display: block; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric { background: var(--ink); color: var(--bg); border-radius: var(--radius-md); padding: 28px 24px; }
.metric b { font-size: 46px; font-weight: 600; letter-spacing: -.045em; line-height: 1; display: block; }
.metric span { display: block; margin-top: 12px; font-size: 15px; }
.metric small { display: block; margin-top: 6px; font-size: 13px; opacity: .6; }
.lessons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lesson { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px 24px; }
.lesson .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lesson h4 { margin-top: 28px; font-weight: 500; font-size: 18px; }
.lesson p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.next { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 64px 48px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.next span { color: var(--muted); font-size: 14px; display: block; }
.next b { font-size: clamp(28px, 3.4vw, 44px); font-weight: 500; letter-spacing: -.03em; display: block; margin-top: 6px; }
@media (max-width: 900px) {
  .cs-hero { padding: 130px 16px 40px; }
  .cs-meta { grid-template-columns: repeat(2, 1fr); }
  .cs-cover { margin: 0 16px; }
  .cs-sec { padding: 64px 16px; }
  .prob { grid-template-columns: 1fr; gap: 10px; }
  .metrics, .lessons { grid-template-columns: 1fr; }
  .next { padding: 48px 16px; }
}

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .cloud, .orbit { animation: none !important; } }

/* ============ v2 additions ============ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

/* portrait with cartoon avatar */
.portrait .disc { background: linear-gradient(180deg, #ffffff 0%, #f1f6fc 100%); }
.portrait .disc { border-color: rgba(0,0,0,.06); }
.portrait .avatar { width: 100%; height: 100%; object-fit: cover; transform: translateY(13%) scale(1.08); transform-origin: 50% 70%; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.portrait:hover .avatar { transform: translateY(11%) scale(1.11) rotate(-1.5deg); }
.portrait .chip { animation: bob 6s ease-in-out infinite; }
.portrait .chip:nth-of-type(2) { animation-delay: -2s; } .portrait .chip:nth-of-type(3) { animation-delay: -4s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.resume-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.resume-link:hover { color: var(--ink); border-color: var(--ink); }
.resume-link svg, .btn svg { width: 15px; height: 15px; }

/* marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 28px; width: max-content; animation: marq 38s linear infinite; align-items: center; }
.marquee span { font-size: 22px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--muted); font-size: 14px; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.stat b em { font-style: normal; }

/* works tools */
.works-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.views { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.views button { font: inherit; font-size: 14px; border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.views button svg { width: 15px; height: 15px; }
.views button.on { background: var(--bg-card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.filters button:hover, .views button:hover { color: var(--ink); }
.cover .peek { position: absolute; top: 20px; right: 20px; display: inline-flex; gap: 6px; align-items: center; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.92); color: #0a0a0a; font-size: 13.5px; font-weight: 500; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; backdrop-filter: blur(8px); }
.cover .peek svg { width: 13px; height: 13px; }
.cover:hover .peek, .cover:focus-visible .peek { opacity: 1; transform: none; }
.view-grid { padding: 0 48px 88px; }
.gcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gcard { display: block; border-radius: var(--radius-lg); background: var(--bg-soft); padding: 12px 12px 22px; transition: transform .3s, box-shadow .3s; }
.gcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gcard[hidden] { display: none; }
.gimg { border-radius: 20px; overflow: hidden; aspect-ratio: 16/11; }
.gimg img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gmeta { padding: 18px 10px 0; display: grid; gap: 4px; }
.gmeta b { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.gmeta span { color: var(--muted); font-size: 14px; }
.gcard .tags { padding: 8px 10px 0; margin-top: 0; }
@media (max-width: 760px) { .view-grid { padding: 0 16px 56px; } .gcards { grid-template-columns: 1fr; } }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.step { display: flex; gap: 18px; padding: 26px 24px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--bg-card); transition: border-color .2s, transform .2s; }
.step:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 4px; }
.step h4 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.step small { display: block; margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* wordmark */
.wordmark { font-size: clamp(64px, 14.4vw, 200px); font-weight: 600; letter-spacing: -.06em; line-height: .8; text-align: center; padding: 48px 0 0; overflow: hidden; color: var(--ink); white-space: nowrap; background: linear-gradient(180deg, var(--ink) 30%, transparent 105%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* case study = original PDF design */
.cs-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.cs-progress i { display: block; height: 100%; width: 0; background: var(--ink); }
.cs-doc-wrap { padding-top: 104px; }
.cs-bar { max-width: 1440px; margin: 0 auto; padding: 0 48px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cs-bar .back { margin: 0; }
.cs-bar-title { text-align: center; display: grid; }
.cs-bar-title b { font-weight: 500; font-size: 17px; }
.cs-bar-title span { color: var(--muted); font-size: 13px; }
.cs-doc { margin: 0 auto; box-shadow: 0 0 0 1px var(--line); }
.cs-doc img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .cs-bar { padding: 0 16px 16px; } .cs-bar-title { display: none; } .cs-doc-wrap { padding-top: 92px; } }
