/* =========================================================
   Cherry Gupta — portfolio
   ========================================================= */
:root {
  --bg: #F4F4F7;
  --surface: #FFFFFF;
  --ink: #17171C;
  --muted: #5E5E6A;
  --line: #E2E2E8;
  --accent: #7B61FF;          /* Figma multiplayer violet: cursor, links, focus */
  --ved: #E8771F;  --ved-bg: #FFF1E3;
  --pc: #1A6DF0;   --pc-bg: #E7EFFF;
  --cs: #F5B526;   --cs-bg: #141416;
  --rg: #12A9C9;   --rg-bg: #E4F7FB;
  --iit: #2E2C93;  --iit-bg: #EDECFB;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(20,20,30,.06), 0 12px 32px -8px rgba(20,20,30,.18);
  --shadow-lg: 0 2px 4px rgba(20,20,30,.06), 0 30px 60px -18px rgba(20,20,30,.35);
}
*, *::before, *::after { 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: 17px; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; margin: 0; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: rgba(244,244,247,.78); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .95rem; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: .95rem; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-dark { background: var(--ink); color: #fff !important; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(23,23,28,.55); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--ink); }
.nav .btn { padding: 9px 16px; }
.ext::after { content: "↗"; font-size: .85em; margin-left: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .88rem; color: var(--muted); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hero h1 { font-size: clamp(2.3rem, 4.1vw, 3.6rem); margin: 22px 0 22px; letter-spacing: -0.035em; }
.hero h1 .line { white-space: nowrap; padding-right: .08em; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* The canvas: frames + live cursor */
.canvas { position: relative; aspect-ratio: 1 / 0.86; border-radius: 28px; background:
  radial-gradient(circle, rgba(23,23,28,.10) 1px, transparent 1.2px) 0 0 / 22px 22px, #EBEBF0; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.cframe { position: absolute; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.cframe .label { font-size: .72rem; color: var(--muted); margin-bottom: 5px; white-space: nowrap; transition: color .3s; }
.cframe .body { position: relative; }
.cframe .shot-in { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.cframe .shot-in img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cframe .sel { position: absolute; inset: -4px; border: 1.5px solid var(--accent); border-radius: 14px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.cframe .sel i { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--accent); border-radius: 2px; }
.cframe .sel i:nth-child(1){top:-5px;left:-5px}.cframe .sel i:nth-child(2){top:-5px;right:-5px}.cframe .sel i:nth-child(3){bottom:-5px;left:-5px}.cframe .sel i:nth-child(4){bottom:-5px;right:-5px}
.cframe.on .sel { opacity: 1; }
.cframe.on .label { color: var(--accent); }
.cf-1 { width: 54%; left: 5%; top: 7%; z-index: 1; }
.cf-2 { width: 26%; right: 6%; top: 9%; z-index: 3; }
.cf-3 { width: 52%; left: 22%; bottom: 6%; z-index: 2; }
.cf-1 .shot-in, .cf-3 .shot-in { aspect-ratio: 16 / 10; }
.cf-2 .shot-in { aspect-ratio: 750 / 1624; border-radius: 20px; box-shadow: 0 0 0 5px #111, var(--shadow-lg); }
.cf-2 .shot-in img { border-radius: 20px; }
.cf-2 .sel { border-radius: 28px; }
.cursor { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; transition: transform 1.3s cubic-bezier(.45,.05,.2,1); will-change: transform; }
.cursor svg { display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.cursor .tag { position: absolute; left: 16px; top: 18px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 6px 12px 12px 12px; white-space: nowrap; }

/* ---------- Client strip ---------- */
.strip { padding: 34px 0 10px; }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; color: var(--muted); font-size: .92rem; }
.strip b { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.05rem; letter-spacing: -0.01em; }
.strip .sep { width: 1px; height: 18px; background: var(--line); }

/* ---------- Section headings ---------- */
.section { padding: 96px 0 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); max-width: 40ch; margin: 0; }

/* ---------- Project showcases ---------- */
.projects { display: grid; gap: 32px; }
.project { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); border-radius: 32px; overflow: hidden; text-decoration: none; min-height: 520px; isolation: isolate; transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s; }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.p-text { padding: 48px 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; position: relative; z-index: 2; }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .8rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.project h3 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin: 18px 0 14px; }
.project p { margin: 0; max-width: 38ch; font-size: 1.05rem; }
.p-cta { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.p-cta .arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: transform .3s; }
.project:hover .p-cta .arrow { transform: translateX(6px); }
.p-visual { position: relative; }

/* CryptoSpill: dark gold */
.project.cs { background: var(--cs-bg); color: #F3F3F5; }
.project.cs p { color: #B9B9C2; }
.project.cs .chip { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); color: #E6E6EA; }
.project.cs .p-cta { color: var(--cs); }
.project.cs .arrow { background: var(--cs); color: #141416; }
.project.cs::before { content: ""; position: absolute; width: 520px; height: 520px; right: -80px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(245,181,38,.35), transparent 65%); z-index: -1; }
.fan { position: absolute; inset: 0; }
.fan .phone { position: absolute; top: 50%; height: 74%; width: auto; aspect-ratio: auto; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.fan .phone { width: max-content; }
.fan .phone img { height: 100%; width: auto; max-width: none; aspect-ratio: 750 / 1624; }
.fan .phone:nth-child(1) { left: 24%; transform: translate(-50%, -48%) rotate(-8deg); }
.fan .phone:nth-child(2) { left: 50%; transform: translate(-50%, -52%); z-index: 2; }
.fan .phone:nth-child(3) { left: 76%; transform: translate(-50%, -48%) rotate(8deg); }
.project:hover .fan .phone:nth-child(1) { transform: translate(-58%, -47%) rotate(-11deg); }
.project:hover .fan .phone:nth-child(2) { transform: translate(-50%, -55%); }
.project:hover .fan .phone:nth-child(3) { transform: translate(-42%, -47%) rotate(11deg); }

/* Device frames */
.phone { border-radius: 32px; background: #0D0D0F; padding: 7px; box-shadow: var(--shadow-lg); }
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 750 / 1624; object-fit: cover; object-position: top; background: #fff; }
.browser { border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.browser .bar { height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #F1F1F4; border-bottom: 1px solid #E4E4EA; }
.browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: #D5D5DC; }
.browser .bar i:nth-child(1){background:#FF5F57}.browser .bar i:nth-child(2){background:#FEBC2E}.browser .bar i:nth-child(3){background:#28C840}
.browser .bar span { margin-left: 10px; flex: 1; height: 16px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px #E4E4EA; font-size: .62rem; color: #8A8A96; display: flex; align-items: center; padding-left: 8px; overflow: hidden; white-space: nowrap; }
.browser img { width: 100%; }

/* Vedanta: saffron */
.project.ved { background: var(--ved-bg); }
.project.ved .p-cta { color: #B4560B; }
.project.ved .arrow { background: var(--ved); color: #fff; }
.project.ved::before { content: ""; position: absolute; width: 460px; height: 460px; right: 10%; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(232,119,31,.28), transparent 65%); z-index: -1; }
/* PackConnects: blue */
.project.pc { background: var(--pc-bg); }
.project.pc .p-cta { color: var(--pc); }
.project.pc .arrow { background: var(--pc); color: #fff; }
.project.pc::before { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(26,109,240,.25), transparent 65%); z-index: -1; }

.stack { position: absolute; inset: 0; }
.stack .browser { position: absolute; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.stack .b-main { width: 82%; right: 6%; top: 10%; }
.stack .b-main img { aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.stack .b-small { width: 42%; left: 5%; bottom: 10%; z-index: 2; }
.stack .b-small img { aspect-ratio: 4/3; object-fit: cover; object-position: top; }
.project:hover .stack .b-main { transform: translate(1%, -3%); }
.project:hover .stack .b-small { transform: translate(-3%, 3%) rotate(-2deg); }

/* Ragasoft + IIT: smaller project cards */
.projects-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.project.small { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 0; }
.project.small .p-text { padding: 40px 40px 8px; gap: 18px; min-height: 250px; }
.project.small h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: 16px 0 10px; }
.project.small .p-visual { height: 330px; }
.project.rg { background: var(--rg-bg); }
.project.rg .p-cta { color: #0B7F98; } .project.rg .arrow { background: var(--rg); color: #fff; }
.project.rg::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(18,169,201,.28), transparent 65%); z-index: -1; }
.project.iit { background: var(--iit-bg); }
.project.iit .p-cta { color: var(--iit); } .project.iit .arrow { background: var(--iit); color: #fff; }
.project.iit::before { content: ""; position: absolute; width: 420px; height: 420px; left: -120px; bottom: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(46,44,147,.20), transparent 65%); z-index: -1; }
.live { position: absolute; inset: 18px 40px 40px; }
.live .browser { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.project:hover .live .browser { transform: translateY(-6px); }
.frame-live { position: relative; overflow: hidden; background: #fff; height: calc(100% - 28px); }
.frame-live iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 1000px; border: 0; transform-origin: 0 0; }
.frame-live.static iframe { pointer-events: none; }
.logo-stage { position: absolute; inset: 18px 40px 40px; border-radius: 22px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.logo-stage img { width: min(62%, 240px); }
.project:hover .logo-stage { transform: translateY(-6px) scale(1.01); }

/* ---------- Also ---------- */
.also { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 18px; }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card a { color: var(--accent); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--accent); display: block; margin-bottom: 26px; }
.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about h2 { font-size: clamp(2rem, 4vw, 3rem); }
.about p { font-size: 1.1rem; margin: 0 0 16px; color: #3A3A44; }
.facts-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.facts-list div { background: var(--surface); border-radius: 16px; padding: 18px 20px; box-shadow: inset 0 0 0 1px var(--line); }
.facts-list b { display: block; font-family: var(--display); font-size: 1.6rem; letter-spacing: -0.02em; }
.facts-list span { color: var(--muted); font-size: .9rem; }

/* ---------- Contact band ---------- */
.contact { margin-top: 110px; border-radius: 36px; background: var(--ink); color: #fff; padding: 72px 56px; position: relative; overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -260px; background: radial-gradient(circle, rgba(123,97,255,.55), transparent 62%); z-index: -1; }
.contact::after { content: ""; position: absolute; width: 420px; height: 420px; left: -140px; bottom: -240px; background: radial-gradient(circle, rgba(245,181,38,.30), transparent 62%); z-index: -1; }
.contact h2 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 16ch; }
.contact p { color: #B9B9C6; max-width: 46ch; margin: 18px 0 30px; font-size: 1.1rem; }
.contact .mail { font-family: var(--display); font-size: clamp(1.3rem, 3vw, 2rem); color: #fff; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.contact .row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.contact .btn-ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 36px 0 44px; color: var(--muted); font-size: .9rem; }

/* =========================================================
   Case study pages
   ========================================================= */
.cs-hero { border-radius: 36px; margin-top: 20px; padding: 56px 52px 0; overflow: hidden; position: relative; isolation: isolate; }
.cs-hero.ved { background: var(--ved-bg); } .cs-hero.pc { background: var(--pc-bg); } .cs-hero.cs { background: var(--cs-bg); color: #F3F3F5; } .cs-hero.rg { background: var(--rg-bg); } .cs-hero.iit { background: var(--iit-bg); }
.cs-hero::before { content: ""; position: absolute; width: 600px; height: 600px; right: -140px; top: -240px; border-radius: 50%; z-index: -1; }
.cs-hero.ved::before { background: radial-gradient(circle, rgba(232,119,31,.30), transparent 65%); }
.cs-hero.pc::before { background: radial-gradient(circle, rgba(26,109,240,.28), transparent 65%); }
.cs-hero.cs::before { background: radial-gradient(circle, rgba(245,181,38,.35), transparent 65%); }
.cs-hero.rg::before { background: radial-gradient(circle, rgba(18,169,201,.30), transparent 65%); }
.cs-hero.iit::before { background: radial-gradient(circle, rgba(46,44,147,.22), transparent 65%); }
.hero-shot .frame-live { height: 560px; }
.hero-logo { width: min(100%, 560px); margin: 0 auto -1px; background: #fff; border-radius: 28px 28px 0 0; padding: 56px 56px 48px; display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.hero-logo img { width: min(100%, 360px); }
.logo-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0; }
.logo-notes .card h3 { font-size: 1.15rem; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; text-decoration: none; opacity: .75; }
.back:hover { opacity: 1; }
.cs-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin: 22px 0 18px; max-width: 14ch; }
.cs-hero .lede { font-size: 1.2rem; max-width: 52ch; margin: 0 0 30px; opacity: .85; }
.cs-hero .p-meta { margin-bottom: 44px; }
.cs-hero.cs .chip { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); color: #E6E6EA; }
.hero-shot { position: relative; margin: 0 auto; width: min(100%, 1040px); transform: translateY(6px); }
.hero-shot .browser { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.hero-shot .browser img { max-height: 560px; object-fit: cover; object-position: top; }
.phones-row { display: flex; justify-content: center; gap: 22px; align-items: flex-end; }
.phones-row .phone { width: min(19%, 210px); }
.phones-row .phone:nth-child(2), .phones-row .phone:nth-child(4) { transform: translateY(-26px); }
.phones-row .phone:nth-child(3) { transform: translateY(-48px); }
.cs-hero.cs .hero-shot { padding-bottom: 0; margin-bottom: -40px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px 0 10px; }
.facts div { background: var(--surface); border-radius: 18px; padding: 18px 20px; box-shadow: inset 0 0 0 1px var(--line); }
.facts dt { font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 500; }
.facts a { color: var(--accent); }

.prose { max-width: 68ch; margin: 0 auto; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 84px 0 16px; }
.prose h3 { font-family: var(--body); font-size: 1rem; font-weight: 700; letter-spacing: 0; text-transform: none; margin: 30px 0 8px; color: var(--accent); }
.prose p, .prose li { margin: 0 0 16px; color: #33333D; font-size: 1.08rem; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li::marker { color: var(--accent); font-weight: 600; }
.callout { margin: 28px 0; padding: 22px 26px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.callout p { margin: 0; }

.shot { margin: 56px auto; width: min(100%, 1100px); }
.shot figcaption, .phones-show figcaption { font-size: .85rem; color: var(--muted); margin-top: 12px; text-align: center; }
.shot.tall .browser img { max-height: 760px; object-fit: cover; object-position: top; }
.shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 48px 0; }
.shot-grid .browser { aspect-ratio: 1.05; }
.shot-grid .browser img { width: 100%; height: auto; }
.shot-grid figure { margin: 0; }
.shot-grid figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.phones-show { display: flex; justify-content: center; flex-wrap: wrap; gap: 36px; margin: 56px 0; padding: 56px 24px; border-radius: 32px; background: #E9E9EF; }
.phones-show figure { margin: 0; width: min(260px, 42vw); }
.phones-show.dark { background: var(--cs-bg); }
.phones-show.dark figcaption { color: #9C9CA8; }

.next-project { display: block; margin-top: 110px; border-radius: 32px; padding: 44px; text-decoration: none; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .4s, box-shadow .4s; }
.next-project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.next-project span { color: var(--muted); font-size: .9rem; }
.next-project b { display: block; font-family: var(--display); font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.025em; margin-top: 6px; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.load { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero h1 .line span { transform: translateY(105%); animation: lineUp 1s cubic-bezier(.2,.8,.2,1) forwards; }
.hero h1 .line:nth-child(2) span { animation-delay: .1s; } .hero h1 .line:nth-child(3) span { animation-delay: .2s; }
@keyframes lineUp { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: .25s; } .d2 { animation-delay: .4s; } .d3 { animation-delay: .55s; } .d4 { animation-delay: .7s; }
.cframe { animation: drop 1.1s cubic-bezier(.2,.8,.2,1) both; }
.cf-1 { animation-delay: .35s; } .cf-2 { animation-delay: .5s; } .cf-3 { animation-delay: .65s; }
@keyframes drop { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
.float { animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .load { opacity: 1; transform: none; }
  .hero h1 .line span { transform: none; }
  .cursor { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; min-height: 0; }
  .p-visual { height: 360px; }
  .also, .process, .projects-duo, .logo-notes { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .shot-grid { grid-template-columns: 1fr 1fr; }
  .phones-row .phone { width: 30%; }
  .phones-row .phone:nth-child(n+4) { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero h1 .line { white-space: normal; }
  .hero { padding-top: 36px; }
  .wrap { width: calc(100% - 32px); }
  .nav-links a:not(.btn) { display: none; }
  .p-text { padding: 32px 26px; }
  .p-visual { height: 340px; }
  .project.small .p-text { padding: 30px 26px 4px; }
  .live { inset: 14px 18px 26px; }
  .project.small .p-text { min-height: 0; }
  .logo-stage { inset: 14px 18px 26px; }
  .hero-shot .frame-live { height: 340px; }
  .hero-logo { padding: 32px; }
  .canvas .label { display: none; }
  .fan .phone { height: 72%; }
  .stack .b-main { top: 8%; width: 86%; right: 4%; }
  .stack .b-small { width: 50%; left: 4%; bottom: 9%; }
  .contact { padding: 48px 28px; }
  .cs-hero { padding: 40px 24px 0; border-radius: 26px; }
  .shot-grid { grid-template-columns: 1fr; }
  .facts-list { grid-template-columns: 1fr 1fr; }
}
