/* Quinac Global — Portfolio pages only. Does not affect homepage. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-8: 64px;
  --bg: #FAFAFA;
  --bg-subtle: #F4F4F5;
  --surface: #FFFFFF;
  --text: #18181B;
  --text-secondary: #3F3F46;
  --muted: #71717A;
  --muted-light: #A1A1AA;
  --accent: #4A6670;
  --accent-hover: #3D555E;
  --accent-muted: rgba(74, 102, 112, 0.09);
  --accent-ring: rgba(74, 102, 112, 0.18);
  --mint-deep: #4A6670;
  --border: rgba(24, 24, 27, 0.08);
  --border-strong: rgba(24, 24, 27, 0.12);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --container: min(1120px, 91vw);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}

body.page-ready { opacity: 1; }

a { text-decoration: none; color: inherit; }

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: var(--s-8) 0;
  position: relative;
}

.section-alt { background: var(--bg-subtle); }

h1, h2, h3 {
  font-family: var(--font);
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.125rem, 4.2vw, 3rem);
  letter-spacing: -0.038em;
}

h2, .section-title {
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: var(--s-2);
  letter-spacing: -0.032em;
}

h3 {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.section-subtitle {
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: var(--s-5);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -0.01em;
}

.prose {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
  max-width: 42rem;
}

.prose + .prose { margin-top: var(--s-2); }

/* —— Navbar —— */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 250, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.nav-wrap {
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s var(--ease-smooth);
}

.brand-icon {
  width: 68px;
  height: 36px;
  object-fit: contain;
  object-position: left center;
  display: block;
  margin-right: -14px;
}

.brand-text {
  display: flex;
  align-items: center;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.brand:hover { opacity: 0.72; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  transition: color 0.2s var(--ease-smooth);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.35rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.85;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s var(--ease-smooth);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.is-active {
  color: var(--text);
}

.nav-links a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.menu-toggle:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  padding: 14px var(--s-2);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}

.mobile-menu a:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

.mobile-menu a.is-active {
  color: var(--text);
  background: var(--accent-muted);
}

.mobile-menu a:last-child { border-bottom: 0; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  letter-spacing: -0.015em;
  transition: background 0.22s var(--ease-smooth), color 0.22s, border-color 0.22s, box-shadow 0.22s, transform 0.22s var(--ease-smooth);
}

.btn-primary {
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
  background: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-secondary);
  border-color: var(--border-strong);
  box-shadow: none;
}

.btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--bg);
}

/* —— Hero —— */
.page-hero {
  padding: calc(var(--s-8) + 8px) 0 calc(var(--s-6) + 4px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 100% 0%, rgba(74, 102, 112, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 0% 100%, rgba(74, 102, 112, 0.035) 0%, transparent 50%),
    var(--bg);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  opacity: 0.65;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.hero-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-3);
}

.page-hero h1 { margin-bottom: calc(var(--s-3) + 4px); }

.page-hero .hero-lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.68;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-4);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--s-3);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--text); }

.breadcrumb-sep { color: var(--muted-light); }

/* —— Cards & grids —— */
.grid { display: grid; gap: var(--s-3); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--s-4) var(--s-3);
  transition: box-shadow 0.3s var(--ease-smooth), border-color 0.25s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
}

.card h3 { margin-bottom: 0.5rem; color: var(--text); }
.card p { color: var(--muted); line-height: 1.65; font-size: 0.9375rem; }

.project-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.project-card-body {
  padding: var(--s-4) var(--s-3);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--s-2);
}

.project-card-body .meta-row { margin: 0; }
.project-card-body .btn { align-self: flex-start; margin-top: auto; }

.meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-badge {
  background: var(--accent-muted);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* —— Image placeholders —— */
.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 200px;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  text-align: center;
  padding: var(--s-3);
}

.media-placeholder--hero {
  min-height: 280px;
  border-radius: var(--radius-md);
  border-style: dashed;
}

.media-placeholder--card {
  min-height: 220px;
  border: 0;
  border-bottom: 1px dashed var(--border-strong);
  border-radius: 0;
}

.media-placeholder--gallery {
  min-height: 180px;
  border-radius: var(--radius-sm);
}

.media-placeholder-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.media-placeholder-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 16rem;
  line-height: 1.45;
}

.feature-list {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-3);
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

.workflow-steps {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-3);
}

.workflow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-2);
  align-items: start;
}

.workflow-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.workflow-step h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.workflow-step p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--s-3);
}

.tech-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-3);
}

.cta-panel {
  text-align: center;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-4);
  box-shadow: var(--shadow-card);
}

.cta-panel .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.content-block { margin-top: var(--s-2); }

.content-block h2 { margin-bottom: var(--s-2); }

/* —— Case study (Photo Booth & similar) —— */
.case-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--s-4);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.case-hero-visual {
  margin-top: var(--s-5);
  min-height: 0;
}

.case-hero-visual .media-placeholder {
  min-height: 320px;
  border: 0;
  border-radius: 0;
}

.case-overview {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(var(--s-4), 5vw, var(--s-8));
  align-items: start;
}

.case-overview-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0;
}

.case-overview-body {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.68;
}

.case-overview-body p + p { margin-top: var(--s-2); }

.workflow-visual {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.workflow-visual-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--s-3) var(--s-3) calc(var(--s-3) + 2px);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.workflow-visual-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
}

.workflow-visual-num {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--s-2);
}

.workflow-visual-label {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.workflow-visual-item p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--s-4) var(--s-3);
  box-shadow: var(--shadow-card);
}

.role-card-label {
  display: inline-flex;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-2);
}

.role-card h3 {
  margin-bottom: var(--s-3);
}

.role-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.role-card li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.role-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

.arch-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.arch-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--s-4) var(--s-3);
  box-shadow: var(--shadow-card);
}

.arch-panel h3 {
  font-size: 1rem;
  margin-bottom: var(--s-3);
}

.arch-flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.arch-node {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.arch-node span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.arch-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 28px;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
}

.challenge-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-2);
  margin: var(--s-4) 0 var(--s-4);
}

.challenge-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--s-2);
  min-height: 100%;
}

.challenge-step strong {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.challenge-step p {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.45;
  margin: 0;
}

.challenge-body {
  max-width: 46rem;
}

.challenge-body p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.68;
}

.challenge-body p + p { margin-top: var(--s-2); }

.gallery-premium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-4);
  align-items: start;
}

.gallery-item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 1600;
  object-fit: contain;
  object-position: top center;
  background: var(--bg-subtle);
}

.gallery-item .media-placeholder {
  aspect-ratio: 16 / 10;
  min-height: 0;
  height: auto;
  border: 0;
  border-radius: 0;
}

.gallery-item figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.45;
  border-top: 1px solid var(--border);
}

/* —— Case study screenshots (portrait app UI) —— */
.shot-frame {
  display: block;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
}

.shot-frame figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.45;
  border-top: 1px solid var(--border);
}

.case-hero-visual {
  display: flex;
  justify-content: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 0;
  overflow: visible;
}

.case-hero-visual .shot-frame {
  width: min(380px, 100%);
  box-shadow: var(--shadow-card-hover);
}

.case-hero-visual .shot-frame img {
  aspect-ratio: 720 / 1600;
}

.workflow-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-5);
  align-items: start;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.workflow-shots .shot-frame {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
}

.workflow-shots .shot-frame img {
  aspect-ratio: 720 / 1600;
}

.role-visual {
  margin-top: var(--s-5);
  display: flex;
  justify-content: center;
}

.role-visual .shot-frame {
  width: min(400px, 100%);
}

.role-visual .shot-frame img {
  aspect-ratio: 720 / 1600;
}

.print-visual {
  margin-top: var(--s-5);
  display: flex;
  justify-content: center;
}

.print-visual .shot-frame {
  width: min(400px, 100%);
}

.print-visual .shot-frame img {
  aspect-ratio: 720 / 1600;
}

.gallery-premium .gallery-item {
  max-width: 320px;
  width: 100%;
  margin-inline: auto;
}

.interface-preview {
  display: flex;
  justify-content: center;
  margin-top: var(--s-4);
}

.interface-preview .shot-frame {
  width: min(360px, 100%);
}

.interface-preview .shot-frame img {
  aspect-ratio: 720 / 1600;
}

/* —— Application Interface carousel —— */
.app-carousel {
  max-width: 420px;
  margin: var(--s-4) auto 0;
}

.app-carousel-stage {
  display: flex;
  justify-content: center;
}

.app-carousel-viewport {
  width: min(360px, 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.app-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 720 / 1600;
}

.app-carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease-smooth), visibility 0.28s var(--ease-smooth);
  pointer-events: none;
}

.app-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.app-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  background: var(--bg-subtle);
}

.app-carousel-copy {
  text-align: center;
  margin-top: var(--s-3);
  padding: 0 var(--s-2);
}

.app-carousel-status {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.app-carousel-title {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.app-carousel-desc {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 28rem;
  margin: 0 auto;
}

.app-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: var(--s-3);
  flex-wrap: wrap;
}

.app-carousel-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s var(--ease-smooth), border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.app-carousel-btn:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--bg);
}

.app-carousel-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-ring);
  border-color: var(--accent);
}

.app-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.app-carousel-dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.15);
}

.app-carousel-dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-ring);
}

@media (prefers-reduced-motion: reduce) {
  .app-carousel-slide {
    transition: none;
  }
}

.outcome-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-5) var(--s-4);
  box-shadow: var(--shadow-card);
  max-width: 48rem;
}

.outcome-panel p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.68;
}

.outcome-panel p + p { margin-top: var(--s-3); }

.delivery-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin-top: var(--s-3);
}

.delivery-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.delivery-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: var(--s-6) 0 var(--s-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-4);
  align-items: start;
  margin-bottom: var(--s-4);
  text-align: left;
}

.footer-brand-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.footer-brand-text {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 22rem;
}

.footer-nav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-2);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--text); }

.footer-bottom {
  text-align: center;
  color: var(--muted-light);
  font-size: 0.8125rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: var(--s-3);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease-smooth), box-shadow 0.2s;
}

.social-link:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  color: var(--accent);
  box-shadow: var(--shadow-xs);
}

.social-link svg { width: 18px; height: 18px; }

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Responsive —— */
@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .case-overview { grid-template-columns: 1fr; }
  .workflow-visual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch-panels { grid-template-columns: 1fr; }
  .challenge-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-list { grid-template-columns: 1fr; }
  .gallery-premium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  html { overflow-x: hidden; }
  body { font-size: 16px; }

  .container {
    width: min(1120px, 100%);
    padding-left: max(var(--s-2), env(safe-area-inset-left));
    padding-right: max(var(--s-2), env(safe-area-inset-right));
  }

  .nav-wrap {
    height: auto;
    min-height: 56px;
    padding: 10px 0;
    gap: var(--s-2);
  }

  .brand {
    min-width: 0;
    flex: 1;
    margin-left: 12px;
  }

  .brand-icon {
    width: 56px;
    height: 30px;
    flex-shrink: 0;
    margin-right: -10px;
  }

  .brand-name { font-size: 0.875rem; }
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
  }

  .nav-links { display: none; }
  .section { padding: var(--s-6) 0; }
  .page-hero { padding: var(--s-5) 0 var(--s-5); }
  .grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .media-placeholder--hero { min-height: 200px; }
  .media-placeholder--card { min-height: 180px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }

  .case-overview { grid-template-columns: 1fr; gap: var(--s-3); }
  .case-overview-title { font-size: clamp(1.5rem, 6vw, 1.85rem); }
  .workflow-visual { grid-template-columns: 1fr; }
  .workflow-visual-item { padding: var(--s-3); }
  .workflow-shots { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .arch-panels { grid-template-columns: 1fr; }
  .challenge-flow { grid-template-columns: 1fr; }
  .gallery-premium { grid-template-columns: 1fr; }
  .case-hero-visual { min-height: 0; }
  .case-hero-visual .shot-frame,
  .role-visual .shot-frame,
  .print-visual .shot-frame {
    width: min(340px, 100%);
  }
}

/* —— Our Work listing (/work/) —— */
.work-listing .page-hero {
  padding: calc(var(--s-6) + 4px) 0 var(--s-4);
}

.work-listing .page-hero .hero-lead {
  max-width: 38rem;
  margin-bottom: 0;
}

.work-listing .work-projects {
  padding-top: var(--s-5);
}

.work-listing .work-project-grid {
  align-items: stretch;
}

.work-listing .work-project-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-3);
  height: 100%;
}

.work-listing .work-project-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-listing .work-project-card h3 {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.work-listing .work-project-card > p {
  margin: 0;
  flex: 1;
}

.work-listing .work-project-card .meta-row {
  margin: 0;
}

.work-listing .work-project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--s-1);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  transition: color 0.2s var(--ease-smooth), gap 0.2s var(--ease-smooth);
}

.work-listing .work-project-link:hover {
  color: var(--accent);
  gap: 10px;
}

.work-listing .work-project-card:hover {
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .work-listing .page-hero {
    padding: var(--s-5) 0 var(--s-3);
  }

  .work-listing .work-projects {
    padding-top: var(--s-4);
  }
}
