/* Base tokens */
:root {
  --bg: #fbfbfa;
  --bg-elev: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --muted: #6b6b6b;
  --muted-2: #9a9a9a;
  --line: #ececec;
  --line-2: #e4e4e4;
  --accent: #ff5a1f; /* warm subtle accent for tiny dots/links only */
  --radius: 14px;
  --radius-lg: 20px;
  --max: 1240px;
}

* { box-sizing: border-box; }
figure { margin: 0; }
main { padding-top: 64px; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a:focus-visible, button:focus-visible, .project-featured:focus-visible, .project-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.011em;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

/* Typography */
.h-display {
  font-size: clamp(36px, 6.5vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.h-1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.h-2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.h-3 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--muted);
  line-height: 1.5;
  letter-spacing: -0.012em;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace; font-feature-settings: normal; }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* Navbar */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(251,251,250,0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(251,251,250,0.85); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -0.01em; }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); display: inline-block; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--muted); font-size: 14px; transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--ink);
  color: #fff;
  transition: transform .2s ease, background .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); background: #222; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 720px) {
  .nav-links { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 16px 28px; border-top: 1px solid var(--line); font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* Hero */
.hero { min-height: calc(100svh - 64px); display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 6vh, 96px) 0 clamp(32px, 6vh, 80px); position: relative; }
.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line); background: #fff;
  border-radius: 999px; font-size: 13px; color: var(--muted);
  margin-bottom: clamp(16px, 3vh, 28px);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #19b36b; box-shadow: 0 0 0 4px rgba(25,179,107,0.16); }
.hero-sub { max-width: 720px; margin-top: clamp(14px, 2.5vh, 28px); }
.hero-meta { display: flex; gap: 28px; margin-top: clamp(20px, 4vh, 56px); color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.hero-meta span strong { color: var(--ink); font-weight: 500; }

.scroll-cue {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: clamp(20px, 4vh, 48px);
  font-size: 14px; color: var(--ink);
  padding: 10px 18px 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  transition: transform .25s ease, box-shadow .25s ease;
}
.scroll-cue:hover { transform: translateY(-2px); box-shadow: 0 6px 24px -10px rgba(0,0,0,0.18); background: #2a2a2a; }
.scroll-cue .arr { display: inline-block; transition: transform .25s ease; }
.scroll-cue:hover .arr { transform: translateY(2px); }
@media (max-height: 760px) {
  .hero { padding: clamp(20px, 4vh, 48px) 0 clamp(20px, 4vh, 40px); }
  .h-display { line-height: 1; }
}
@media (max-height: 640px) and (min-width: 881px) {
  .h-display { font-size: clamp(32px, 5.5vw, 72px); }
}

/* Section header */
.section { padding: clamp(80px, 11vh, 140px) 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 56px; }
.section-head .right { color: var(--muted); max-width: 360px; text-align: right; font-size: 15px; }
@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: start; gap: 16px; }
  .section-head .right { text-align: left; }
}

/* Project list */
.projects { display: grid; gap: 28px; }
.projects-new { display: flex; flex-direction: column; gap: 28px; }
.project-featured {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .2s ease, transform .2s ease;
  background: var(--bg-elev);
}
.project-featured { position: relative; overflow: hidden; transition: border-color .2s ease; cursor: pointer; }
.project-featured::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.project-featured:hover { border-color: var(--line-2); }
.project-featured:hover::after { opacity: .03; }
.pf-shot { height: 100%; overflow: hidden; background: #f2f2f0; display: flex; align-items: stretch; justify-content: center; padding: 30px 0 0 30px; }
.pf-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.shot-frame { width: 100%; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 0; overflow: hidden; background: #fff; box-shadow: 0 10px 28px -18px rgba(0,0,0,0.22); position: relative; }
.shot-frame.radius-tl { border-radius: 10px 0 0 0; }
.shot-frame.radius-br { border-radius: 0 0 10px 0; }
.shot-bar { height: 24px; flex-shrink: 0; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: #fafaf9; border-bottom: 1px solid var(--line); }
.shot-bar span { width: 6px; height: 6px; border-radius: 50%; background: #e2e2df; }
.shot-frame img { flex: 1; width: 100%; min-height: 0; object-fit: cover; display: block; }
.shot-highlight { position: absolute; border: 1.5px solid #0a0a0a; border-radius: 6px; pointer-events: none; }
.shot-highlight.tag { position: absolute; background: #0a0a0a; color: #fff; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: 0.03em; padding: 3px 7px; border-radius: 4px; max-width: calc(100% - 20px); overflow-wrap: break-word; }
.pf-body { display: flex; flex-direction: column; gap: 4px; padding: 44px 56px; justify-content: center; }
.pf-body .project-link { margin-top: 22px; }
.pf-body .num { color: var(--muted-2); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.project-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .2s ease;
  background: var(--bg-elev);
}
.project-card { position: relative; overflow: hidden; transition: border-color .2s ease; cursor: pointer; }
.project-card::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.project-card:hover { border-color: var(--line-2); }
.project-card:hover::after { opacity: .03; }
.pc-shot { height: 280px; overflow: hidden; background: #f2f2f0; flex-shrink: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 14px; }
.pc-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.pc-shot .mock-chrome { height: 100%; width: 100%; position: relative; inset: auto; border-radius: 10px; box-shadow: 0 10px 28px -18px rgba(0,0,0,0.22); }
/* Composition variants — vary crop/scale/margins per card, mobile falls back to a shared simple crop */
.pc-shot.shot-tight { padding: 0; }
.pc-shot.shot-loose { padding: 30px 0 0 30px; }
.pc-shot.shot-loose-alt { padding: 0 30px 30px 0; }
.pc-shot.shot-shift-r { padding: 14px 0 14px 34px; justify-content: flex-start; }
.pc-shot.shot-shift-l { padding: 14px 34px 14px 0; justify-content: flex-end; }
.pc-shot.shot-zoom .shot-frame img { transform: scale(1.18); transform-origin: center 20%; }
@media (max-width: 640px) {
  .pc-shot.shot-zoom .flow-shot img, .pc-shot.shot-zoom .shot-frame img { transform: none; }
}
.pc-body { display: flex; flex-direction: column; padding: 44px 40px; }
.pc-body .h-3 { font-size: 20px; margin: 0 0 6px; }
.pc-desc { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.pc-body .project-link { margin-top: 0; }
@media (max-width: 880px) {
  .project-featured { grid-template-columns: 1fr; }
  .pf-body { padding: 32px; }
  .projects-grid { grid-template-columns: 1fr; }
}
.behance-block {
  display: block; margin-top: 64px; padding: 40px 44px;
  border-top: 1px solid var(--line);
  background: #ececec; border-radius: var(--radius-lg);
  text-decoration: none; color: inherit;
  transition: background .2s ease;
}
.behance-block:hover { background: #f0f0f0; }
.behance-main { display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.behance-copy { max-width: 44ch; }
.behance-label { display: inline-block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); font-family: 'JetBrains Mono', ui-monospace, monospace; margin-bottom: 10px; }
.behance-copy .h-3 { margin: 0 0 6px; font-size: 19px; }
.behance-copy .pc-desc { margin: 0 0 16px; }
.behance-cta { white-space: nowrap; font-size: 14px; }
.behance-thumbs { display: block; flex: 1; max-width: 500px; min-width: 260px; overflow: hidden; margin-right: -44px; }
.behance-thumbs-row { display: flex; gap: 14px; }
.behance-thumb { aspect-ratio: 4/3; border-radius: 8px; background: #e9e9e9; flex: 0 0 190px; overflow: hidden; }
.behance-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
@media (max-width: 640px) { .behance-thumbs { margin-right: -24px; } }
@media (max-width: 640px) {
  .behance-block { padding: 28px 24px; }
  .behance-main { gap: 24px; }
  .behance-thumbs { max-width: none; }
}
.project {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: center;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.project:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.18), 0 10px 24px -16px rgba(0,0,0,0.10);
  border-color: var(--line-2);
}
.project .num {
  position: absolute; top: 26px; right: 32px;
  color: var(--muted-2); font-size: 12px;
}
.project-meta { display: flex; flex-direction: column; gap: 16px; padding: 8px 0; }
.project-title { display: flex; align-items: baseline; gap: 16px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tag {
  font-size: 12px; padding: 4px 10px;
  background: #f4f4f3; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-2);
}
.project-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-size: 14px;
  color: var(--ink);
}
.project-link .arr { transition: transform .25s ease; display:inline-block; }
.project-featured:hover .project-link .arr, .project-card:hover .project-link .arr { transform: translate(4px, -4px); }

.project-mock {
  aspect-ratio: 16/10;
  border-radius: 12px;
  background: #f5f5f4;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
@media (max-width: 880px) {
  .project { grid-template-columns: 1fr; gap: 28px; padding: 22px; }
  .project .num { top: 20px; right: 24px; }
}

/* Mock placeholders (SaaS-ish chrome) */
.mock-chrome {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: #fff;
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5e5e5; }
.mock-bar .mono { margin-left: 12px; font-size: 11px; color: var(--muted-2); }
.mock-body { flex: 1; display: grid; grid-template-columns: 180px 1fr; min-height: 0; }
.mock-side {
  background: #fbfbfa;
  border-right: 1px solid var(--line);
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.mock-side .row { height: 8px; background: #eee; border-radius: 4px; }
.mock-side .row.active { background: #0a0a0a; width: 70%; }
.mock-side .row.short { width: 60%; }
.mock-content { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mock-h { height: 14px; width: 40%; background: #1a1a1a; border-radius: 4px; }
.mock-line { height: 8px; background: #eee; border-radius: 4px; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 6px; }
.mock-card { aspect-ratio: 4/3; background: #f4f4f3; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 540px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}

/* About */
.about {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: center;
}
@media (max-width: 880px) { .about { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 480px) { .about-tiles, .stats { grid-template-columns: 1fr; } .tile:nth-child(odd), .stat:nth-child(odd) { padding-right: 0; border-right: none; } .tile:nth-child(even), .stat:nth-child(even) { padding-left: 0; } }
.about-text p { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); margin: 0 0 18px; max-width: 56ch; }
.about-text strong { color: var(--ink); font-weight: 500; }

.about-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 0; border-top: 1px solid var(--line); align-content: start; }
.tile { padding: 24px 0; border-bottom: 1px solid var(--line); }
.tile:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line); }
.tile:nth-child(even) { padding-left: 24px; }
.tile-num { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: clamp(28px, 2.6vw, 36px); color: var(--ink); }
.tile-lbl { margin-top: 10px; font-size: 14px; color: var(--muted); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.stat { padding: 24px 0; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line); padding-left: 0; }
.stat:nth-child(even) { padding-left: 24px; }
.stat .num { font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.stat .lbl { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Contact / Footer */
.contact { padding: clamp(120px, 16vh, 180px) 0 60px; border-top: 1px solid var(--line); }
.contact-headline { max-width: 14ch; }
.contact-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); margin-top: 64px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.c-link {
  background: var(--bg);
  padding: 28px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .2s ease;
}
.c-link:hover { background: #fff; }
.c-link .platform { font-size: 18px; letter-spacing: -0.01em; }
.c-link .handle { font-size: 13px; color: var(--muted); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.c-link .arr { transition: transform .25s ease; }
.c-link:hover .arr { transform: translate(4px, -4px); }
@media (max-width: 640px) { .contact-links { grid-template-columns: 1fr; } }

.footer-base {
  display: flex; justify-content: space-between; align-items: center;
  padding: 36px 0 0; margin-top: 80px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.footer-base .mono { font-size: 12px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.no-anim { transition: none; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }
.reveal.d4 { transition-delay: .24s; }

/* ───── Case study page ───── */
.cs-hero { padding: clamp(80px, 12vh, 140px) 0 clamp(56px, 8vh, 96px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 40px; }
.back-link:hover { color: var(--ink); }
.cs-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.cs-meta-grid .item .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-family: 'JetBrains Mono', ui-monospace, monospace; margin-bottom: 8px; }
.cs-meta-grid .item .v { font-size: 15px; }
@media (max-width: 760px) { .cs-meta-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

.cs-mockup {
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  background: #f5f5f4;
  border: 1px solid var(--line);
  margin-top: 64px;
  position: relative; overflow: hidden;
}
.cs-mockup--image {
  aspect-ratio: auto;
  background: #fff;
  margin: 64px 0 0;
  padding: 0;
  display: block;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.18), 0 12px 28px -16px rgba(0,0,0,0.08);
}
.cs-mockup--image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}
.cs-mockup--image figcaption {
  position: absolute;
  left: 18px; bottom: 18px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
@media (max-width: 640px) {
  .cs-mockup--image figcaption { display: none; }
}

.cs-section { padding: clamp(72px, 9vh, 110px) 0; border-top: 1px solid var(--line); }
.cs-two {
  display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start;
}
.cs-two .label { color: var(--muted); font-size: 13px; font-family: 'JetBrains Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.08em; position: sticky; top: 96px; }
.cs-two p { max-width: 64ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); line-height: 1.55; margin: 0 0 16px; }
@media (max-width: 880px) { .cs-two { grid-template-columns: 1fr; gap: 16px; } .cs-two .label { position: static; } }

.cs-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1024px) { .cs-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .cs-cards { grid-template-columns: 1fr; } }
.cs-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 12px;
}
.cs-card .idx { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: var(--muted-2); }
.cs-card .t { font-size: 17px; letter-spacing: -0.015em; }
.cs-card .d { font-size: 14px; color: var(--muted); line-height: 1.5; }

.process-list { display: grid; gap: 0; }
.process-row {
  display: grid; grid-template-columns: 80px 1fr 1fr; gap: 48px;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.process-row:last-child { border-bottom: 1px solid var(--line); }
.process-row .num { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; color: var(--muted); }
.process-row .ttl { font-size: 22px; letter-spacing: -0.02em; }
.process-row .desc { color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 760px) {
  .process-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
}

.decision {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center;
}
.decision + .decision { margin-top: 80px; }
.decision .copy p + p { margin-top: 14px; }
.decision .copy h4 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; font-weight: 500; margin: 0 0 12px; }
.decision .copy p { color: var(--muted); margin: 0; font-size: 16px; }
.decision .vis {
  aspect-ratio: 4/3; background: #f5f5f4; border: 1px solid var(--line); border-radius: var(--radius);
}
.decision.flip .copy { order: 2; }
@media (max-width: 880px) { .decision { grid-template-columns: 1fr; gap: 24px; } .decision.flip .copy { order: 0; } }

.states-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1024px) { .states-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .states-grid { grid-template-columns: 1fr; } }
.state {
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
.state .l { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.state .ph { flex: 1; margin: 12px 0; background: #f5f5f4; border-radius: 8px; }
.state .n { font-size: 14px; }

/* Scenarios — mini case studies (large screens) */
.scenarios { display: flex; flex-direction: column; gap: 100px; margin-top: 44px; }
.scn { }
.scn-tag {
  display: flex; align-items: baseline; gap: 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.scn-tag .no { color: var(--ink); }
.scn-tag .sep { flex: 1; }
.scn-shot {
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fafafa;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 24px 48px -24px rgba(0,0,0,0.18);
}
.scn-shot .mock-chrome { height: 100%; border: none; border-radius: 0; display: flex; flex-direction: column; }
.scn-shot .mock-content { flex: 1; }
.scn-foot {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
  margin-top: 30px;
}
.scn-foot h3 {
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-weight: 500;
  margin: 0;
  max-width: 16ch;
}
.scn-foot p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 46ch;
  text-wrap: pretty;
}
@media (max-width: 880px) {
  .scenarios { gap: 64px; }
  .scn-foot { grid-template-columns: 1fr; gap: 16px; margin-top: 22px; }
}

/* Evolution / Rozwój funkcjonalności */
.evo { display: grid; gap: 0; margin-top: 8px; }
.evo-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.evo-row:last-child { border-bottom: 1px solid var(--line); }
.evo-meta { display: flex; align-items: baseline; gap: 12px; position: static; margin-bottom: 14px; }
.evo-meta .ver { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: var(--ink); text-transform: uppercase; letter-spacing: 0.08em; }
.evo-meta .when { font-size: 12px; color: var(--muted-2); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.evo-copy h4 { font-size: clamp(22px, 2vw, 26px); letter-spacing: -0.02em; font-weight: 500; margin: 0 0 14px; line-height: 1.15; max-width: 22ch; }
.evo-copy p { color: var(--muted); margin: 0 0 20px; font-size: 16px; line-height: 1.55; max-width: 52ch; }
.evo-bullets { display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; list-style: none; }
.evo-bullets li {
  font-size: 14px; color: var(--ink-2);
  padding-left: 20px; position: relative; line-height: 1.5;
}
.evo-bullets li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 8px; height: 1px; background: var(--muted-2);
}
.evo-vis {
  aspect-ratio: 16/11;
  background: #f5f5f4; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: relative;
}

.evo-row-wide { grid-template-columns: 1fr; gap: 40px; }
.evo-row-wide .evo-copy p, .evo-row-wide .evo-bullets { max-width: 68ch; }
.evo-vis-wide { aspect-ratio: 21/9; }
@media (max-width: 1024px) {
  .evo-row { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .evo-row { gap: 18px; padding: 32px 0; }
  .evo-meta { flex-direction: row; gap: 12px; align-items: baseline; }
}

/* Tiny mock components reused in evo visuals */
.bar-track { height: 6px; background: #ececec; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: #0a0a0a; border-radius: 999px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 10px; font-family: 'JetBrains Mono', monospace;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
}
.pill .d { width: 5px; height: 5px; border-radius: 50%; background: #c9c9c9; }
.pill.ok .d { background: #19b36b; }
.pill.warn .d { background: #e08d2e; }
.pill.err .d { background: #d24a3a; }
.pill.live .d { background: #19b36b; box-shadow: 0 0 0 3px rgba(25,179,107,0.18); }

.outcome-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.outcome-stats .s { padding: 36px 28px; border-right: 1px solid var(--line); }
.outcome-stats .s:last-child { border-right: none; }
.outcome-stats .n { font-size: clamp(36px, 4vw, 56px); font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.outcome-stats .l { color: var(--muted); font-size: 14px; margin-top: 10px; }
@media (max-width: 760px) { .outcome-stats { grid-template-columns: 1fr; } .outcome-stats .s { border-right: none; border-bottom: 1px solid var(--line); } .outcome-stats .s:last-child { border-bottom: none; } }

.next-cta {
  margin-top: 100px; padding: 56px;
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  display: flex; justify-content: space-between; align-items: center; gap: 40px;
  transition: background .2s ease;
}
.next-cta:hover { background: #1c1c1c; }
.next-cta a { color: #fff; }
.next-cta .label { color: rgba(255,255,255,0.55); font-size: 13px; font-family: 'JetBrains Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.08em; }
.next-cta .ttl { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.025em; margin-top: 6px; }
.next-cta .go { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; padding: 12px 20px; border-radius: 999px; background: #fff; color: #0a0a0a; }
.next-cta .go span { display: inline-block; transition: transform .25s ease; }
.next-cta .go:hover span { transform: translateX(4px); }
@media (max-width: 720px) { .next-cta { flex-direction: column; align-items: start; padding: 36px; } }

.figma-board {
  margin-top: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fafafa;
  position: relative;
  overflow: hidden;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.figma-board img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.figma-board .ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 24px;
}
.figma-board .ph-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  border: 1px dashed var(--line-2);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-2);
}
.figma-board .ph-stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 16px,
    rgba(0,0,0,0.018) 16px 17px
  );
  pointer-events: none;
}
.figma-board .caption {
  position: absolute;
  left: 20px; bottom: 20px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
}
@media (max-width: 760px) {
  .figma-board { margin-top: 40px; }
  .figma-board .caption { display: none; }
}

/* Flow — large visual sections */
.flow {
  display: flex; flex-direction: column;
  gap: 96px;
  margin-top: 24px;
}
.flow-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}
.flow-meta { position: sticky; top: 96px; }
.flow-meta .idx {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.flow-meta h3 {
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 14px;
  line-height: 1.2;
  max-width: 18ch;
}
.flow-meta p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 36ch;
}
.flow-meta p + p { margin-top: 10px; }
.flow-shot {
  aspect-ratio: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fafafa;
  position: relative; overflow: hidden;
  display: block;
}
.flow-shot img {
  width: 100%; height: auto;
  object-fit: cover; object-position: top;
  display: block;
}
.flow-shot .ph-stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 16px,
    rgba(0,0,0,0.018) 16px 17px
  );
  pointer-events: none;
}
.flow-shot .ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 24px;
}
.flow-shot .ph-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 1px dashed var(--line-2);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-2);
}
.flow-shot .caption {
  position: absolute;
  left: 16px; bottom: 16px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
}
@media (max-width: 880px) {
  .flow { gap: 64px; }
  .flow-item { grid-template-columns: 1fr; gap: 28px; }
  .flow-meta { position: static; }
  .flow-shot .caption { display: none; }
}

/* Assumptions — before/after comparison (redesign case studies only) */
.assumptions { display: flex; flex-direction: column; gap: 88px; margin-top: 24px; }
.assum-head { max-width: 640px; margin-bottom: 30px; }
.assum-head .idx {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.assum-head h3 {
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 10px;
  line-height: 1.2;
}
.assum-head p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 56ch;
}
.compare-stack { display: flex; flex-direction: column; gap: 80px; width: 100%; }
.compare-stack-row { flex-direction: row; gap: 24px; }
.compare-stack-row .compare-state { flex: 1 1 0; }
.shot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; }
.shot-row .flow-shot { aspect-ratio: auto; width: 100%; }
@media (max-width: 1024px) { .shot-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .shot-row { grid-template-columns: 1fr; } }
.shot-row-2 { grid-template-columns: repeat(2, 1fr); }
.shot-row-2 .flow-shot { aspect-ratio: auto; }
@media (max-width: 640px) { .shot-row-2 { grid-template-columns: 1fr; } }
.compare-state { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.compare-state-copy { display: flex; flex-direction: column; gap: 6px; }
.compare-state-title {
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}
.compare-desc { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; max-width: 64ch; }
.compare-state .flow-shot { aspect-ratio: auto; width: 100%; }
.compare-row-top { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: start; }
.compare-row-top .compare-state { display: contents; }
.compare-row-top .compare-state.is-before > * { grid-column: 1; }
.compare-row-top .compare-state.is-after > * { grid-column: 2; }
.compare-row-top .compare-state-copy { grid-row: 1; }
.compare-row-top .flow-shot { grid-row: 2; align-self: stretch; background: #fff; display: flex; align-items: center; justify-content: center; }
@media (max-width: 880px) { .compare-row-top { display: flex; flex-direction: column; } .compare-row-top .compare-state { display: flex; flex-direction: column; } }
.compare-stack-row .flow-shot { aspect-ratio: auto; }
@media (max-width: 880px) {
  .assumptions { gap: 56px; }
  .compare-stack { gap: 48px; }
  .compare-stack-row { flex-direction: column; gap: 32px; }
  .compare-stack-row .flow-shot { aspect-ratio: auto; }
}

/* Selection */
::selection { background: #0a0a0a; color: #fbfbfa; }

/* Process timeline (horizontal) */
.timeline {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 22px; right: 22px;
  top: 22px;
  height: 1px;
  background: var(--line);
}
.tl-step {
  position: relative;
  padding-right: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tl-marker {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink);
  position: relative;
  z-index: 1;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.tl-step .tl-marker { }
.tl-phase {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.tl-title {
  font-size: 17px;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.25;
}
.tl-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 30ch;
}
.timeline.tl-count-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) {
  .timeline { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .timeline::before { display: none; }
}
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; }
}
