/* ==========================================================================
   Shahriar Alam Portfolio — Swiss Architectural Daylight & Ink System
   ========================================================================== */

:root {
  --bg: #f4f2ec;
  --bg-tinted: #ebe8df;
  --surface: #ffffff;
  --surface-muted: #e5e2d8;
  --line: #dcd8cc;
  --line-strong: #bfbab0;

  --ink: #111215;
  --ink-2: #4b4e57;
  --ink-3: #727681;

  --cobalt: #1d4ed8;
  --cobalt-hover: #1e40af;
  --cobalt-soft: rgba(29, 78, 216, 0.09);
  --cobalt-border: rgba(29, 78, 216, 0.25);

  --contrast-bg: #111215;
  --contrast-card: #1a1c21;
  --contrast-line: rgba(255, 255, 255, 0.11);
  --contrast-ink: #f5f4f0;
  --contrast-muted: #a1a4ae;

  --live: #16a34a;
  --gold: #f59e0b;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(17, 18, 21, 0.05);
  --shadow-md: 0 16px 36px -20px rgba(17, 18, 21, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme='dark'] {
  --bg: #0f1013;
  --bg-tinted: #15171c;
  --surface: #181a20;
  --surface-muted: #111216;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);

  --ink: #f4f4f6;
  --ink-2: #a5a9b5;
  --ink-3: #797e8c;

  --cobalt: #3b82f6;
  --cobalt-hover: #2563eb;
  --cobalt-soft: rgba(59, 130, 246, 0.14);
  --cobalt-border: rgba(59, 130, 246, 0.35);

  --contrast-bg: #08090b;
  --contrast-card: #12141a;
  --contrast-line: rgba(255, 255, 255, 0.09);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 22px 44px -22px rgba(0, 0, 0, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  scrollbar-width: thin;
  scrollbar-color: var(--cobalt) var(--bg-tinted);
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tinted);
}

::-webkit-scrollbar-thumb {
  background: var(--cobalt);
  border-radius: 999px;
  border: 2px solid var(--bg-tinted);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cobalt-hover);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* Reading Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--cobalt);
  transition: width 0.1s linear;
}

/* Layout Containers */
.container {
  width: min(1220px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 7vw, 6.25rem);
  border-top: 1px solid var(--line);
}

.section--tinted {
  background: var(--bg-tinted);
}

.section--ink {
  background: var(--contrast-bg);
  color: var(--contrast-ink);
  border-top-color: var(--contrast-line);
}

/* Type Helpers */
.mono-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 0.65rem;
}

.section-eyebrow--light {
  color: #93c5fd;
}

.section-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.8vw, 3.05rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-heading--light {
  color: var(--contrast-ink);
}

.section-sub {
  margin: 0.85rem 0 0;
  max-width: 54ch;
  color: var(--ink-2);
  font-size: 1.02rem;
  text-wrap: pretty;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.section-head--row {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
}

.cobalt-inline {
  color: var(--cobalt);
}

.inline-link {
  color: var(--cobalt);
  font-weight: 600;
}

.inline-link:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:active {
  transform: scale(0.985);
}

.btn--cobalt {
  background: var(--cobalt);
  color: #ffffff;
  border-color: var(--cobalt);
  box-shadow: var(--shadow-sm);
}

.btn--cobalt:hover {
  background: var(--cobalt-hover);
  border-color: var(--cobalt-hover);
  transform: translateY(-1px);
}

.btn--ink {
  background: var(--ink);
  color: var(--bg);
}

.btn--ink:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn--outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--outline:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 0.86rem 1.45rem;
  font-size: 0.96rem;
}

.btn--sm {
  padding: 0.52rem 0.9rem;
  font-size: 0.82rem;
}

.btn--full {
  width: 100%;
}

.icon-square {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.icon-square:hover {
  border-color: var(--ink);
}

.icon-square svg {
  width: 18px;
  height: 18px;
}

.icon-sun { display: none; }
html[data-theme='dark'] .icon-sun { display: block; }
html[data-theme='dark'] .icon-moon { display: none; }

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  flex-shrink: 0;
}

.btn--cobalt .live-dot {
  background: #86efac;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.2rem 0.5rem 0.2rem 0.2rem;
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
}

.brand-mark:hover {
  background: var(--surface-muted);
}

.brand-mark__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.brand-mark__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-mark__text strong {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
}

.brand-mark__text span {
  font-size: 0.74rem;
  color: var(--ink-3);
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  padding: 0.45rem 0.8rem;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
  background: var(--surface-muted);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mobile-menu-btn {
  display: none;
}

/* Mobile Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(17, 18, 21, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: flex-end;
}

.drawer-backdrop[hidden] {
  display: none;
}

.drawer-panel {
  width: min(370px, 100%);
  height: 100%;
  background: var(--bg);
  border-left: 1px solid var(--line-strong);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-brand img {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  object-fit: cover;
}

.drawer-brand strong {
  display: block;
  font-family: var(--font-display);
}

.drawer-brand span {
  font-size: 0.78rem;
  color: var(--ink-2);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.75rem;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
}

.drawer-link span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--cobalt);
}

.drawer-link:hover {
  background: var(--surface-muted);
}

.drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
}

.drawer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.84rem;
  color: var(--ink-2);
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.drawer-socials a:hover {
  color: var(--cobalt);
}

/* SINGLE-SCREEN HERO */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 71px);
  display: flex;
  align-items: stretch;
  padding-block: clamp(1.4rem, 2.8vw, 2.25rem) 0;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-cube-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.hero__left {
  padding-bottom: clamp(1.75rem, 3.2vw, 2.75rem);
}

.hero-top-proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.hero__stack {
  margin-top: 1.15rem;
}

.hero-socials-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-socials-inline a {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-socials-inline a:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
  transform: translateY(-1px);
}

.hero__metrics--open {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: none;
  gap: 1.5rem;
  max-width: 540px;
}

.stat-open {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-open strong {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.05;
}

.stat-open span {
  font-size: 0.8rem;
  color: var(--ink-2);
}

/* Large Right Hero Portrait */
.hero__visual {
  position: relative;
  align-self: stretch;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 0;
}

.hero-portrait-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: clamp(540px, calc(100svh - 86px), 745px);
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #111216;
  box-shadow: var(--shadow-md);
  -webkit-mask-image: linear-gradient(180deg, #000 80%, rgba(0, 0, 0, 0.72) 92%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 80%, rgba(0, 0, 0, 0.72) 92%, transparent 100%);
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 6%;
  transition: transform 0.6s var(--ease);
}

.hero:hover .hero-portrait-img {
  transform: scale(1.025);
}

.hero-portrait-cta {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  border-radius: 999px;
  padding-inline: 1.65rem;
  box-shadow: 0 18px 36px -8px rgba(29, 78, 216, 0.55);
}

.hero-portrait-cta:hover {
  transform: translateX(-50%) translateY(-2px);
}

.hero__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-bottom: 1.05rem;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero__headline {
  margin: 0 0 1.05rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.05rem, 3.7vw, 3.38rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: none;
}

.typing-line {
  display: inline-block;
  white-space: nowrap;
}

.headline-accent {
  color: var(--cobalt);
  position: relative;
  display: inline-block;
}

.typing-clip {
  display: inline-block;
  min-height: 1.08em;
  line-height: 1.08;
  vertical-align: bottom;
  white-space: nowrap;
  overflow: hidden;
  padding-right: 4px;
  border-right: 3px solid var(--cobalt);
  animation: caretBlink 0.9s step-end infinite;
}

@keyframes caretBlink {
  0%, 100% { border-right-color: var(--cobalt); }
  50% { border-right-color: transparent; }
}

.hero__lead {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 55ch;
  text-wrap: pretty;
}

.hero__lead strong {
  color: var(--ink);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px dashed var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.copy-pill svg {
  width: 14px;
  height: 14px;
  color: var(--cobalt);
}

.copy-pill:hover {
  border-color: var(--cobalt);
  color: var(--ink);
  background: var(--surface);
}

.hero__metrics {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: start;
  gap: 2.25rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  background: transparent;
  overflow: visible;
}

.stat-cell {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.stat-cell + .stat-cell {
  border-left: 1px solid var(--line);
}

.stat-cell strong {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.stat-cell span {
  font-size: 0.78rem;
  color: var(--ink-2);
}

/* Studio Profile Card */
.studio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.studio-card__frame {
  position: relative;
  padding: 0.75rem 0.75rem 0;
}

.studio-card__photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 245px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}

.studio-card__badge {
  position: absolute;
  bottom: 12px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(17, 18, 21, 0.86);
  color: #f4f4f6;
  font-size: 0.74rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.studio-card__body {
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.studio-card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.studio-card__title-row h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.studio-card__title-row p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-2);
}

.review-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.review-chip__avatars {
  display: flex;
}

.review-chip__avatars img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--surface);
  margin-left: -6px;
}

.review-chip__avatars img:first-child {
  margin-left: 0;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.eco-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-2);
}

.eco-pill svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--cobalt);
}

.eco-pill--jet svg { color: #059669; }
.eco-pill--acf svg { color: #0284c7; }
.eco-pill--el svg { color: #9333ea; }
.eco-pill--ai svg { color: #ea580c; }

.service-icon-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.eco-icon-box,
.principle-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  border: 1px solid var(--cobalt-border);
}

.eco-icon-box svg,
.principle-icon svg {
  width: 18px;
  height: 18px;
}

.eco-icon-box--wp { background: rgba(33, 117, 155, 0.12); color: #21759b; border-color: rgba(33, 117, 155, 0.28); }
.eco-icon-box--jet { background: rgba(5, 150, 105, 0.12); color: #059669; border-color: rgba(5, 150, 105, 0.28); }
.eco-icon-box--acf { background: rgba(2, 132, 199, 0.12); color: #0284c7; border-color: rgba(2, 132, 199, 0.28); }
.eco-icon-box--el { background: rgba(147, 51, 234, 0.12); color: #9333ea; border-color: rgba(147, 51, 234, 0.28); }
.eco-icon-box--ai { background: rgba(234, 88, 12, 0.12); color: #ea580c; border-color: rgba(234, 88, 12, 0.28); }
.eco-icon-box--woo { background: rgba(124, 58, 237, 0.12); color: #7c3aed; border-color: rgba(124, 58, 237, 0.28); }

.studio-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-2);
}

.studio-card__footer a:hover {
  color: var(--cobalt);
}

/* FILTER BAR */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.52rem 0.95rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.78;
}

.filter-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-pill.is-active {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #ffffff;
}

/* PORTFOLIO GRID */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.project-card.is-hidden {
  display: none;
}

.project-card--peek {
  max-height: 170px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  position: relative;
}

.project-card--peek::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--bg) 78%, transparent) 55%,
    var(--bg) 96%
  );
  z-index: 5;
}

/* Showcase Presentation Thumbnail (inspired by Studio/Envato Collage Cards) */
.showcase-thumb {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  min-height: 272px;
  background:
    radial-gradient(circle at 82% 24%, color-mix(in srgb, var(--thumb-accent, #2563eb) 28%, transparent), transparent 62%),
    linear-gradient(135deg, #13151b 0%, #191c24 100%);
  border-bottom: 1px solid var(--line);
  color: #f4f4f6;
  overflow: hidden;
}

.showcase-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.55;
  pointer-events: none;
}

.showcase-thumb__copy {
  position: relative;
  z-index: 2;
  padding: 1.25rem 0.9rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
}

.showcase-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.showcase-brand span {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.76rem;
  color: #b0b6c3;
}

.showcase-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.74rem;
  color: #e4e7ee;
}

.showcase-bullets li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.showcase-bullets li::before {
  content: '–';
  color: var(--thumb-accent, #60a5fa);
  font-weight: 700;
}

.showcase-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.35rem;
}

.showcase-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.24rem 0.52rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #f4f4f6;
}

.showcase-tool svg {
  width: 12px;
  height: 12px;
  color: var(--thumb-accent, #60a5fa);
}

.showcase-thumb__layers {
  position: relative;
  z-index: 2;
  min-height: 272px;
  overflow: hidden;
}

.layer-shot {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0e1015;
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.72);
  transition: transform 0.35s var(--ease);
}

.layer-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.layer-shot--back {
  width: 68%;
  aspect-ratio: 16 / 10;
  top: 12px;
  right: 10px;
  z-index: 1;
  opacity: 0.9;
}

.layer-shot--tall-back img { object-position: 50% 66%; }

.layer-shot--mid {
  width: 71%;
  aspect-ratio: 16 / 10;
  top: 56px;
  left: 8px;
  z-index: 2;
  opacity: 0.96;
}

.layer-shot--tall-mid img { object-position: 50% 34%; }

.layer-shot--front {
  width: 76%;
  aspect-ratio: 16 / 10.2;
  bottom: 8px;
  right: 12px;
  z-index: 3;
}

.layer-shot--front img { object-position: top center; }

.project-card:hover .layer-shot--front {
  transform: translateY(-5px);
}

.project-card:hover .layer-shot--mid {
  transform: translateY(-2px);
}

.load-more-wrap {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  position: relative;
  z-index: 6;
}

.load-more-wrap[hidden] {
  display: none;
}

.load-more-count {
  margin: 0;
}

/* Compatibility for modal device preview & stack-tags */
.stack-tags span.tag-plain {
  padding: 0.28rem 0.62rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--ink-2);
}

.device-mockup {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.device-mockup__bar {
  height: 28px;
  padding-inline: 0.75rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.device-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.device-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  display: block;
}

.device-url {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-3);
}

.project-card__content {
  padding: 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.project-card--featured .project-card__content {
  padding: 1.85rem 2rem;
  justify-content: center;
}

.project-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cat-badge {
  display: inline-block;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  font-size: 0.75rem;
  font-weight: 600;
}

.project-card__content h3 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.025em;
}

.project-card--featured .project-card__content h3 {
  font-size: 1.65rem;
}

.project-card__content p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
}

.project-card--featured .project-card__content p {
  flex: 0;
  font-size: 0.98rem;
}

.project-card__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.service-card:hover {
  border-color: var(--cobalt-border);
  transform: translateY(-2px);
}

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--cobalt);
}

.service-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.26rem;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.service-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-2);
}

.check-list {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.87rem;
  color: var(--ink-2);
}

.check-list li {
  position: relative;
  padding-left: 1.15rem;
}

.check-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--cobalt);
  font-weight: 700;
}

.service-link {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cobalt);
}

.service-link span {
  transition: transform 0.2s ease;
}

.service-link:hover span {
  transform: translateX(4px);
}

/* PROCESS GRID */
.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.step-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-index {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cobalt);
}

.step-tag {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.step-card h3 {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.14rem;
}

.step-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-2);
}

/* TESTIMONIALS INK BAND */
.ink-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--contrast-card);
  border: 1px solid var(--contrast-line);
  font-size: 0.84rem;
  color: var(--contrast-muted);
}

.stars {
  color: var(--gold);
  letter-spacing: 0.08em;
}

.reviews-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-block: 0.35rem 0.6rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.reviews-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: reviewsMarquee 56s linear infinite;
}

.reviews-marquee:hover .reviews-track,
.reviews-marquee:focus-within .reviews-track {
  animation-play-state: paused;
}

.reviews-group {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  padding-right: 1.25rem;
  flex-shrink: 0;
}

@keyframes reviewsMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.review-card {
  flex: 0 0 clamp(300px, 31vw, 390px);
  background: var(--contrast-card);
  border: 1px solid var(--contrast-line);
  border-radius: var(--r-lg);
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.review-card:hover {
  border-color: rgba(37, 99, 235, 0.55);
  transform: translateY(-2px);
}

.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.review-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.review-rating strong {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--contrast-ink);
}

.review-source {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--contrast-muted);
}

.review-source--fiverr {
  color: #1dbf73;
  border-color: rgba(29, 191, 115, 0.35);
  background: rgba(29, 191, 115, 0.1);
}

.review-card blockquote {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--contrast-ink);
  flex: 1;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.review-tags span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--contrast-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.18rem 0.48rem;
  border-radius: 6px;
}

.review-author {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--contrast-line);
}

.review-author strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--contrast-ink);
}

.review-author span {
  display: block;
  font-size: 0.77rem;
  color: var(--contrast-muted);
}

@media (prefers-reduced-motion: reduce) {
  .reviews-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .reviews-track {
    animation: none;
  }

  .reviews-group[aria-hidden='true'] {
    display: none;
  }
}

/* ABOUT & PRINCIPLES */
.about-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.25rem;
  align-items: start;
}

.about-panel {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.about-copy {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.about-badge-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.about-badge-card img {
  width: 50px;
  height: 50px;
  border-radius: var(--r-sm);
  object-fit: cover;
  object-position: center 20%;
}

.about-badge-card strong {
  display: block;
  font-family: var(--font-display);
}

.about-badge-card span {
  font-size: 0.82rem;
  color: var(--ink-2);
}

.about-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.elementor-mark {
  height: 22px;
  width: auto;
  filter: invert(1);
  opacity: 0.72;
}

html[data-theme='dark'] .elementor-mark {
  filter: none;
}

.principles-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.principle-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.35rem 1.45rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.principle-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--cobalt-soft);
  color: var(--cobalt);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.principle-card h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.principle-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}

/* CONTACT PANEL */
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3.5vw, 2.85rem);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
  box-shadow: var(--shadow-md);
}

.direct-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.65rem;
}

.direct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.direct-row:hover {
  border-color: var(--cobalt);
  transform: translateX(3px);
}

.brief-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.brief-card__head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.brief-card__head span {
  font-size: 0.82rem;
  color: var(--ink-2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.68rem 0.85rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px var(--cobalt-soft);
}

.form-feedback {
  padding: 0.78rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.86rem;
  font-weight: 500;
  border: 1px solid var(--line);
}

.form-feedback--success {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.32);
  color: #15803d;
}

html[data-theme='dark'] .form-feedback--success {
  color: #86efac;
}

.form-feedback--error {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.32);
  color: #b91c1c;
}

html[data-theme='dark'] .form-feedback--error {
  color: #fca5a5;
}

.brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.9rem;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.site-footer__inner p {
  margin: 0;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.footer-socials a:hover {
  color: var(--cobalt);
}

/* MODALS */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(17, 18, 21, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.75rem 1.25rem 1.25rem;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-shell {
  position: relative;
  width: min(560px, 94vw);
}

.modal-shell--project {
  width: min(1180px, 94vw);
}

.modal-close-outer {
  position: absolute;
  top: -50px;
  right: 0;
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.22s var(--ease);
}

.modal-close-outer svg {
  width: 18px;
  height: 18px;
}

.modal-close-outer:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-card {
  position: relative;
  width: 100%;
  max-height: calc(90vh - 54px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.9rem;
  box-shadow: var(--shadow-md);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--cobalt) transparent;
}

.modal-card::-webkit-scrollbar,
.project-modal__scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.modal-card::-webkit-scrollbar-track,
.project-modal__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.modal-card::-webkit-scrollbar-thumb,
.project-modal__scroll::-webkit-scrollbar-thumb {
  background: var(--cobalt);
  border-radius: 999px;
}

.modal-card::-webkit-scrollbar-thumb:hover,
.project-modal__scroll::-webkit-scrollbar-thumb:hover {
  background: var(--cobalt-hover);
}

.dossier-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 2.5rem;
}

.dossier-head img {
  width: 68px;
  height: 68px;
  border-radius: var(--r-md);
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.dossier-head h3 {
  margin: 0.2rem 0;
  font-family: var(--font-display);
  font-size: 1.32rem;
}

.dossier-head p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.dossier-head small {
  color: var(--ink-2);
}

.dossier-bio {
  margin: 1.2rem 0;
  color: var(--ink-2);
  font-size: 0.94rem;
}

.dossier-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.dossier-socials {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.86rem;
  color: var(--ink-2);
}

.dossier-socials a:hover {
  color: var(--cobalt);
}

.modal-card--project {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.project-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.project-modal__header h3 {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.project-modal__controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.case-study-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.65rem;
  align-items: start;
}

.case-study-visual {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.case-study-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.case-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.75rem;
  align-items: start;
}

.case-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.project-modal__desc {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.62;
}

.case-scope-list {
  margin: 0;
}

.device-mockup--modal {
  border-radius: var(--r-md);
  border-bottom: 1px solid var(--line-strong);
}

.project-modal__scroll {
  height: clamp(260px, 46vh, 450px);
  overflow: hidden;
  background: var(--surface-muted);
  scrollbar-width: thin;
  scrollbar-color: var(--cobalt) transparent;
}

.project-modal__scroll img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-modal__scroll[data-view='mid'][data-multiview='false'] img {
  object-position: 50% 42%;
}

.project-modal__scroll[data-view='scroll'][data-multiview='false'] {
  overflow-y: auto;
}

.project-modal__scroll[data-view='scroll'][data-multiview='false'] img {
  height: auto;
  object-fit: contain;
}

.project-modal__scroll[data-multiview='true'] img {
  object-position: top center;
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
  max-width: 520px;
}

.modal-thumb {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.modal-thumb:hover {
  border-color: var(--ink-2);
}

.modal-thumb.is-active {
  border-color: var(--cobalt);
  background: var(--cobalt-soft);
}

.modal-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-radius: 5px;
}

.modal-thumb[data-multiview='false'][data-view='mid'] img { object-position: 50% 42%; }
.modal-thumb[data-multiview='false'][data-view='scroll'] img { object-position: 50% 80%; }

.modal-thumb span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-2);
}

.modal-thumb.is-active span {
  color: var(--cobalt);
  font-weight: 600;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 140;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .project-card__shot { transition: none; }
  .hero-grid-lines,
  .hero-glow-drift,
  .hero-scan-beam { animation: none; }
}

/* RESPONSIVE */
@media (max-width: 1080px) {
  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .topbar__nav,
  .topbar__resume {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    padding-block: 2rem 0;
  }

  .hero__grid,
  .about-split,
  .contact-panel,
  .project-card--featured,
  .case-study-grid {
    grid-template-columns: 1fr;
  }

  .hero__left {
    padding-bottom: 0;
  }

  .hero-portrait-stage {
    height: 400px;
    max-width: 100%;
  }

  .project-card--featured {
    grid-column: span 1;
  }

  .project-card--featured .project-card__mockup-wrap {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1rem 1rem 0;
  }

  .studio-card__photo {
    max-height: 290px;
  }

  .about-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1220px, calc(100% - 1.5rem));
  }

  .hero__headline {
    font-size: clamp(1.7rem, 7vw, 2.25rem);
  }

  .topbar__cta {
    display: none;
  }

  .showcase-thumb {
    grid-template-columns: 1fr;
  }

  .showcase-thumb__layers {
    min-height: 205px;
  }

  .work-grid,
  .services-grid,
  .process-grid,
  .form-row,
  .case-two-col {
    grid-template-columns: 1fr;
  }

  .review-card {
    flex: 0 0 288px;
  }

  .hero__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 1.5rem;
    padding-bottom: 0.75rem;
  }

  .stat-cell + .stat-cell {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .section-head--row {
    flex-direction: column;
    align-items: flex-start;
  }
}
