@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #12243c;
  --ink-soft: #34445b;
  --paper: #efefef;
  --panel: #fbfaf7;
  --white: #ffffff;
  --gold: #d9aa58;
  --gold-deep: #bd7d32;
  --coral: #db6c5a;
  --teal: #4c8b8d;
  --muted: #727c8c;
  --line: #ddd7cd;
  --shadow: 0 24px 70px rgba(24, 35, 50, .12);
  --radius: 28px;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(18,36,60,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,36,60,.035) 1px, transparent 1px),
    var(--paper);
  background-size: 38px 38px;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  left: 18px;
  top: -60px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transition: top .2s ease;
}
.skip-link:focus { top: 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(239, 239, 239, .86);
  border-bottom: 1px solid rgba(18, 36, 60, .08);
}
.header-inner {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold);
  box-shadow: 0 10px 25px rgba(18, 36, 60, .18);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy small { font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin-top: 5px; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--ink-soft); position: relative; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--gold-deep); transition: right .25s ease; }
.main-nav a:hover::after, .main-nav a[aria-current='page']::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; align-items: center; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); }
.lang-switch button { border: 0; background: transparent; padding: 7px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; cursor: pointer; }
.lang-switch button.active { background: var(--ink); color: white; }
.lang-switch button[disabled] { opacity: .38; cursor: default; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); cursor: pointer; }

.page-shell { width: min(calc(100% - 36px), var(--max)); margin: 0 auto; }
.section { padding: 84px 0; }
.section-compact { padding: 72px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; color: var(--gold-deep); }
.eyebrow::before { content: ''; width: 34px; height: 2px; background: currentColor; }
.section-title { margin: 18px 0 0; font-size: clamp(30px, calc(5vw - 8px), 64px); line-height: 1.04; letter-spacing: -.055em; max-width: 1050px; }
.section-intro { margin: 24px 0 0; max-width: 820px; font-size: 18px; color: var(--ink-soft); }

.hero { padding: 72px 0 34px; position: relative; scroll-margin-top: 96px; }
.hero::before { content: ''; position: absolute; inset: 0 0 auto auto; width: 52vw; height: 52vw; max-width: 780px; max-height: 780px; border-radius: 50%; background: radial-gradient(circle, rgba(217,170,88,.18), rgba(217,170,88,0) 68%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr); gap: 28px; align-items: stretch; }
.hero-left { display: grid; grid-template-rows: auto auto; gap: 18px; min-width: 0; }
.hero-copy { min-height: 500px; border-radius: 36px; padding: clamp(42px, 6vw, 88px); color: white; background: linear-gradient(135deg, rgba(18,36,60,.97), rgba(21,48,78,.92)), url('../images/a2prado/website-a2prado-1.webp') center/cover; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-copy::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(217,170,88,.14)); }
.hero-copy > * { position: relative; z-index: 1; }
.portfolio-signature { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.portfolio-signature strong { font-size: 18px; letter-spacing: -.025em; color: #ffffff; }
.portfolio-signature span { margin-top: 7px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #efc477; }
.hero-copy .eyebrow { color: #efc477; }
.hero-copy h1 { margin: 24px 0 0; max-width: 850px; font-size: clamp(38px, calc(6.3vw - 8px), 88px); line-height: .98; letter-spacing: -.065em; }
.hero-copy p { max-width: 720px; margin: 28px 0 0; font-size: 19px; color: rgba(255,255,255,.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 20px; border-radius: 15px; border: 1px solid transparent; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 14px 30px rgba(217,170,88,.24); }
.btn-secondary { border-color: rgba(255,255,255,.28); color: white; background: rgba(255,255,255,.07); }
.btn-dark { background: var(--ink); color: white; }
.btn-light { background: var(--white); border-color: var(--line); }
.btn-dark:hover,
.btn-dark:focus-visible,
.btn-light:hover,
.btn-light:focus-visible {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-dark:hover,
.btn-dark:focus-visible { box-shadow: 0 14px 30px rgba(217,170,88,.24); }
.hero-dashboard { display: block; min-width: 0; }
.hero-dashboard > .dashboard-card { height: 100%; }
.dashboard-card { padding: 28px; border-radius: 28px; background: rgba(255,255,255,.78); border: 1px solid rgba(18,36,60,.08); box-shadow: 0 20px 50px rgba(18,36,60,.08); backdrop-filter: blur(12px); }
.dashboard-card h2 { font-size: 20px; margin: 0; }
.dashboard-card p { color: var(--muted); font-size: 14px; margin: 9px 0 0; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.metric { min-height: 122px; border-radius: 20px; background: var(--panel); padding: 20px; border: 1px solid var(--line); }
.metric strong { display: block; font-size: 32px; line-height: 1; letter-spacing: -.04em; }
.metric span { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); }
.dashboard-visual { min-height: 238px; background: var(--ink); color: white; position: relative; overflow: hidden; }
.dashboard-visual::before, .dashboard-visual::after { content: ''; position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.dashboard-visual::before { width: 340px; height: 340px; right: -130px; top: -120px; }
.dashboard-visual::after { width: 180px; height: 180px; right: 20px; bottom: -70px; }
.dashboard-visual .visual-label { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: rgba(217,170,88,.15); color: #efc477; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dashboard-visual h3 { font-size: 23px; letter-spacing: -.04em; line-height: 1.1; max-width: 320px; margin: 32px 0 0; }
.dashboard-visual ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 13px; color: rgba(255,255,255,.7); }
.dashboard-visual li::before { content: '↗'; color: var(--gold); margin-right: 9px; }

.explorer { border-radius: 36px; padding: 54px; background: rgba(255,255,255,.76); box-shadow: var(--shadow); border: 1px solid rgba(18,36,60,.08); }
#work.section { padding-top: 38px; padding-bottom: 48px; }
.explorer-header { display: flex; justify-content: space-between; gap: 28px; align-items: flex-end; }
.explorer-header h2 { margin: 10px 0 0; font-size: clamp(26px, calc(4vw - 8px), 48px); letter-spacing: -.05em; line-height: 1.05; }
.explorer-header p { max-width: 480px; margin: 0; color: var(--muted); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.filter-btn { border: 1px solid var(--line); background: var(--panel); padding: 11px 16px; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s ease; }
.filter-btn:hover, .filter-btn.active { background: var(--ink); color: white; border-color: var(--ink); }
.filter-btn .count { opacity: .55; margin-left: 5px; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
  align-items: stretch;
}
.project-card {
  min-width: 0;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--ink);
  box-shadow: 0 18px 44px rgba(18,36,60,.14);
  transform-origin: center;
  transition: transform .82s cubic-bezier(.16,1,.3,1), box-shadow .82s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}
.project-card:hover {
  transform: translateY(-6px) scale(1.028);
  box-shadow: 0 30px 68px rgba(8,24,43,.28);
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .82s ease;
}
.project-card:hover img { filter: saturate(1.03) brightness(.88); }
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 48%, rgba(255,255,255,.07), transparent 62%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .72s ease;
}
.project-card:hover::before { opacity: 1; }
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5,25,48,.16) 0%, rgba(5,29,56,.48) 50%, rgba(4,18,36,.97) 100%);
  opacity: .88;
  transition: opacity .82s ease, background .82s ease;
}
.project-card:hover::after {
  opacity: 1;
  background: linear-gradient(180deg, rgba(4,27,54,.34) 0%, rgba(4,31,62,.62) 48%, rgba(3,16,33,.98) 100%);
}
.project-card-content {
  position: absolute;
  z-index: 3;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.project-card-content > div { min-width: 0; }
.project-card-content h3 {
  margin: 10px 0 0;
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.06;
  letter-spacing: -.04em;
  transition: color .42s cubic-bezier(.22,1,.36,1);
}
.project-card:hover .project-card-content h3,
.project-card:focus-within .project-card-content h3 {
  color: #D9AA58;
}
.project-card-content p {
  margin: 12px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 12.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  max-height: 42px;
  overflow: hidden;
  color: rgba(255,255,255,.74);
}
.project-card-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .075em;
  white-space: nowrap;
}
.project-card-tags span:not(:last-child)::after {
  content: '·';
  margin: 0 7px;
  color: var(--gold);
  font-size: 12px;
  line-height: 1;
}
.project-card-link {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  width: auto;
  height: auto;
  border-radius: inherit;
  background: transparent;
  color: transparent;
  font-size: 0;
  box-shadow: none;
}
.project-card-link:focus-visible {
  outline: 2px solid rgba(255,255,255,.95);
  outline-offset: -5px;
}
.empty-state { grid-column: 1 / -1; min-height: 280px; display: none; place-items: center; text-align: center; border: 1px dashed var(--line); border-radius: 26px; background: rgba(255,255,255,.5); }
.empty-state.show { display: grid; }

.structure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 42px; }
.structure-card { position: relative; padding: 34px; border-radius: 25px; background: var(--panel); border: 1px solid var(--line); }
.structure-card .number { position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 800; color: var(--coral); }
.structure-card h3 { margin: 42px 0 0; font-size: 24px; }
.structure-card p { color: var(--muted); font-size: 14px; }

.site-footer { margin-top: 0; padding: 64px 0; background: var(--ink); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; }
.footer-grid h2 { font-size: clamp(28px, calc(5vw - 8px), 56px); line-height: 1.05; letter-spacing: -.055em; margin: 0; max-width: 850px; }
.footer-meta { text-align: right; color: rgba(255,255,255,.62); font-size: 13px; }
.footer-meta a { display: block; color: white; margin-top: 10px; }

/* Case study */
.case-hero { padding: 56px 0 36px; }
.case-breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.case-breadcrumb span { color: var(--ink); font-weight: 700; }
.case-hero-card { margin-top: 24px; border-radius: 34px; overflow: hidden; background: var(--ink); color: white; box-shadow: var(--shadow); }
.case-hero-image { position: relative; min-height: 620px; }
.case-hero-image img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; }
.case-hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,20,35,.92) 0%, rgba(9,20,35,.66) 42%, rgba(9,20,35,.08) 78%); }
.case-hero-copy { position: absolute; z-index: 2; inset: 0 auto 0 0; width: min(700px, 70%); padding: clamp(42px, 6vw, 82px); display: flex; flex-direction: column; justify-content: center; }
.case-hero-copy h1 { margin: 18px 0 0; font-size: clamp(40px, calc(7vw - 8px), 88px); line-height: .95; letter-spacing: -.065em; }
.case-hero-copy p { margin: 28px 0 0; max-width: 610px; color: rgba(255,255,255,.78); font-size: 18px; }
.case-meta-row { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.case-meta { padding: 24px; border-right: 1px solid rgba(255,255,255,.12); }
.case-meta:last-child { border-right: 0; }
.case-meta span { display: block; font-size: 10px; color: rgba(255,255,255,.48); font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.case-meta strong { display: block; margin-top: 8px; font-size: 14px; }

.case-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 42px; align-items: start; padding-top: 40px; }
.case-nav { position: sticky; top: 108px; max-height: calc(100vh - 128px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(18,36,60,.22) transparent; border-radius: 24px; background: rgba(255,255,255,.82); border: 1px solid var(--line); padding: 18px; box-shadow: 0 15px 35px rgba(18,36,60,.07); }
.case-nav strong { display: block; padding: 10px 12px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-deep); }
.case-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 13px; color: var(--muted); transition: .2s ease; }
.case-nav a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #c4bfb6; }
.case-nav a:hover:not(.active) { background: #e5e5e5; color: var(--ink); }
.case-nav a:hover:not(.active)::before { background: #8d8d8d; }
.case-nav a.active,
.case-nav a.active:hover { background: var(--ink); color: white; }
.case-nav a.active::before,
.case-nav a.active:hover::before {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(217,170,88,.18), 0 0 12px rgba(217,170,88,.72);
}
.case-main { min-width: 0; }
.case-section { padding: 54px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.case-section:first-child { padding-top: 22px; }
.case-section:last-child { border-bottom: 0; }
.case-section h2 { margin: 14px 0 0; font-size: clamp(26px, calc(1.6vw + 20px), 38px); line-height: 1.05; letter-spacing: -.055em; }
.case-section > p, .prose { font-size: 16px; color: var(--ink-soft); max-width: 980px; }
.case-section > p { margin-top: 18px; }
.lead { font-size: 20px !important; line-height: 1.7; }
#overview .lead { font-size: 16px !important; line-height: 1.65; }
.callout { margin-top: 30px; border-radius: 22px; padding: 25px 28px; background: #e9dfcd; border-left: 4px solid var(--gold-deep); }
.callout strong { display: block; font-size: 14px; }
.callout p { margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; }

.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.fact-card { min-height: 150px; padding: 24px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.fact-card span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; color: var(--gold-deep); }
.fact-card strong { display: block; margin-top: 15px; font-size: 18px; line-height: 1.3; }
.fact-card p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.responsibility-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 32px; }
.responsibility { padding: 28px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); }
.responsibility h3 { margin: 0; font-size: 20px; }
.responsibility p { color: var(--muted); font-size: 14px; }
.responsibility ul { padding-left: 18px; color: var(--ink-soft); font-size: 14px; }
.responsibility li + li { margin-top: 8px; }

.diagram { margin-top: 34px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 45px rgba(18,36,60,.08); background: var(--panel); }
.diagram img { width: 100%; height: auto; }
.note-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.note-icon { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 9px; display: grid; place-items: center; background: #e9dfcd; color: var(--gold-deep); font-weight: 800; }

.decision-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
.decision { padding: 28px; border-radius: 24px; color: white; background: var(--ink); }
.decision:nth-child(2n) { background: #324a66; }
.decision .index { color: var(--gold); font-weight: 800; font-size: 12px; }
.decision h3 { margin: 16px 0 0; font-size: 22px; }
.decision p { margin: 10px 0 0; color: rgba(255,255,255,.68); font-size: 14px; }

.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.stack-item { border-radius: 20px; padding: 22px; background: var(--panel); border: 1px solid var(--line); }
.stack-item strong { display: block; font-size: 16px; }
.stack-item span { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; }
.honesty-panel { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.honesty-box { padding: 24px; border-radius: 22px; border: 1px solid var(--line); background: white; }
.honesty-box.good { border-left: 5px solid var(--teal); }
.honesty-box.limit { border-left: 5px solid var(--coral); }
.honesty-box.technical { border-left: 5px solid var(--gold); }
.honesty-box h3 { margin: 0; font-size: 17px; }
.honesty-box p { color: var(--muted); font-size: 13px; margin-bottom: 0; }

.plugin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.plugin { padding: 24px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.plugin h3 { margin: 0; font-size: 16px; }
.plugin p { margin: 9px 0 0; font-size: 13px; color: var(--muted); }
.plugin .tag { display: inline-flex; margin-top: 18px; padding: 6px 9px; border-radius: 999px; background: #e9dfcd; color: var(--gold-deep); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.gallery-flow {
  display: grid;
  gap: clamp(30px, 5vw, 62px);
  margin-top: 40px;
}
.gallery-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(22px, 3vw, 34px);
  background: rgba(255,255,255,.72);
  box-shadow: 0 26px 70px rgba(24,35,50,.11);
}
.gallery-shot-media {
  min-height: 280px;
  padding: clamp(10px, 1.8vw, 26px);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(232,228,220,.72)),
    linear-gradient(rgba(18,36,60,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,36,60,.025) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}
.gallery-shot img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(820px, 78vh);
  object-fit: contain;
  border-radius: clamp(12px, 1.5vw, 20px);
}
.gallery-shot-caption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: clamp(20px, 3vw, 34px);
  border-top: 1px solid var(--line);
}
.gallery-shot-number {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.gallery-shot-caption strong {
  display: block;
  font-size: 17px;
  line-height: 1.35;
}
.gallery-shot-caption p {
  margin: 7px 0 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 13px;
}
.gallery-shot {
  width: min(100%, 1260px);
  justify-self: center;
}
.gallery-shot:nth-child(even),
.gallery-shot:nth-child(odd) {
  width: min(100%, 1260px);
  justify-self: center;
}

.outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.outcome { padding: 28px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.outcome strong { display: block; font-size: 18px; }
.outcome p { color: var(--muted); font-size: 13px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
.related-card { min-height: 270px; padding: 30px; border-radius: 25px; color: white; background: linear-gradient(135deg, #213956, #112338); position: relative; overflow: hidden; }
.related-card::after { content: ''; position: absolute; width: 240px; height: 240px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; right: -60px; bottom: -80px; }
.related-card span { color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.related-card h3 { font-size: 22px; margin: 40px 0 0; }
.related-card p { color: rgba(255,255,255,.64); font-size: 13px; }


@media (max-width: 1100px) {
  .main-nav { display: none; position: fixed; left: 18px; right: 18px; top: 86px; padding: 22px; border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); flex-direction: column; align-items: flex-start; }
  .main-nav.open { display: flex; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { min-height: 560px; }
  .hero-dashboard { display: block; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card { min-height: 0; aspect-ratio: 1 / 1; }
  .case-meta-row { grid-template-columns: repeat(3, 1fr); }
  .case-meta:nth-child(3) { border-right: 0; }
  .case-meta:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.12); }
  .case-layout { grid-template-columns: 1fr; }
  .case-nav { position: relative; top: 0; display: flex; overflow-x: auto; gap: 7px; padding: 12px; }
  .case-nav strong { display: none; }
  .case-nav a { flex: 0 0 auto; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .header-inner { min-height: 72px; }
  .brand-copy small { display: none; }
  .lang-switch { display: none; }
  .page-shell { width: min(calc(100% - 24px), var(--max)); }
  .section { padding: 76px 0; }
  .hero { padding: 32px 0 22px; }
  .hero-copy { min-height: 520px; padding: 34px 24px; border-radius: 26px; }
  .hero-copy h1 { font-size: 41px; }
  .hero-copy p { font-size: 16px; }
  .hero-dashboard { display: block; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .explorer { padding: 28px 18px; border-radius: 25px; }
  .explorer-header { align-items: flex-start; flex-direction: column; }
  .projects-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(84vw, 340px);
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    padding: 2px 2px 16px;
  }
  .projects-grid::-webkit-scrollbar { height: 8px; }
  .projects-grid::-webkit-scrollbar-thumb { background: rgba(18,36,60,.18); border-radius: 999px; }
  .project-card { min-height: 0; aspect-ratio: 1 / 1; scroll-snap-align: start; }
  .project-card-content { left: 20px; right: 20px; bottom: 20px; }
  .project-card-content p { display: none; }
  .project-card-link { inset: 0; width: auto; height: auto; }
  .structure-grid, .fact-grid, .responsibility-grid, .decision-grid, .plugin-grid, .outcome-grid, .related-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
  .case-hero-image, .case-hero-image img { min-height: 640px; }
  .case-hero-image::after { background: linear-gradient(180deg, rgba(9,20,35,.82), rgba(9,20,35,.88)); }
  .case-hero-copy { width: 100%; padding: 34px 22px; justify-content: flex-end; }
  .case-hero-copy h1 { font-size: 48px; }
  .case-hero-copy p { font-size: 15px; }
  .case-meta-row { grid-template-columns: 1fr 1fr; }
  .case-meta { border-top: 1px solid rgba(255,255,255,.12); }
  .case-meta:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.12); }
  .case-meta:nth-child(even) { border-right: 0; }
  .case-meta:first-child, .case-meta:nth-child(2) { border-top: 0; }
  .case-meta:last-child { grid-column: 1 / -1; }
  .stack-grid, .honesty-panel { grid-template-columns: 1fr; }
  .case-section { padding: 44px 0; }
  .case-nav { margin-left: -12px; margin-right: -12px; border-radius: 0; border-left: 0; border-right: 0; }
  .gallery-flow { gap: 24px; margin-top: 28px; }
  .gallery-shot, .gallery-shot:nth-child(even), .gallery-shot:nth-child(odd) { width: 100%; }
  .gallery-shot-media { min-height: 190px; padding: 8px; }
  .gallery-shot img { max-height: none; border-radius: 14px; }
  .gallery-shot-caption { grid-template-columns: 38px minmax(0, 1fr); gap: 13px; padding: 18px 16px; }
  .gallery-shot-number { min-width: 38px; height: 38px; border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card, .project-card img, .project-card::before { transition: none; }
  .project-card:hover { transform: none; }
  .project-card:hover img { transform: none; }
  * { transition: none !important; animation: none !important; }
}

/* Fluid editorial gallery — integrated into the case study, no popup */
.gallery-section {
  overflow: visible;
}
.gallery-section > p {
  max-width: 820px;
}
.gallery-shot-media img {
  margin-inline: auto;
}
.gallery-shot:hover {
  transform: translateY(-3px);
  box-shadow: 0 34px 90px rgba(24,35,50,.15);
}
.gallery-shot {
  transition: transform .35s ease, box-shadow .35s ease;
}
@media (prefers-reduced-motion: reduce) {
  .gallery-shot { transition: none; }
  .gallery-shot:hover { transform: none; }
}


/* Professional A2 Prado case presentation */
.case-nav::-webkit-scrollbar { width: 6px; }
.case-nav::-webkit-scrollbar-thumb { background: rgba(18,36,60,.2); border-radius: 99px; }
.case-nav a { position: relative; }
.case-nav a.active { box-shadow: 0 8px 18px rgba(18,36,60,.12); }

.journey-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr) auto);
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.68);
}
.journey-flow > div { min-height: 150px; padding: 22px; border-radius: 18px; background: var(--panel); border: 1px solid rgba(18,36,60,.07); }
.journey-flow > div span { color: var(--gold-deep); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.journey-flow > div strong { display: block; margin-top: 12px; font-size: 17px; }
.journey-flow > div small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.journey-flow > i { color: var(--gold-deep); font-style: normal; font-size: 22px; }

.wireframe-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 22px; align-items: stretch; margin-top: 34px; }
.wireframe-card { margin: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.78); box-shadow: 0 20px 55px rgba(18,36,60,.08); }
.wireframe-media { flex: 1; min-height: 400px; display: grid; place-items: center; padding: 12px; background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(236,232,224,.78)); }
.wireframe-media img { width: 100%; height: 100%; max-height: 690px; object-fit: contain; }
.wireframe-card figcaption { padding: 24px 26px 28px; border-top: 1px solid var(--line); }
.wireframe-card figcaption span { color: var(--gold-deep); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.wireframe-card figcaption strong { display: block; margin-top: 8px; font-size: 18px; }
.wireframe-card figcaption p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.compact-callout { margin-top: 22px; }

.responsive-matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.responsive-matrix article { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.72); }
.responsive-matrix span { color: var(--gold-deep); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.responsive-matrix strong { display: block; margin-top: 12px; font-size: 17px; }
.responsive-matrix p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.device-section { overflow: visible; }
.showcase-slider { margin-top: 38px; }
.showcase-stage { position: relative; display: flex; align-items: center; justify-content: center; width: min(100%, 1160px); margin: 0 auto; padding-inline: 84px; }
.laptop-device { width: min(100%, 1040px); margin: 0 auto; outline: none; }
.laptop-lid { position: relative; padding: 18px 18px 22px; border-radius: 30px 30px 12px 12px; background: linear-gradient(145deg, #15253a, #081321); box-shadow: 0 34px 80px rgba(18,36,60,.25); }
.laptop-camera { position: absolute; top: 7px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #56677b; box-shadow: 0 0 0 2px rgba(255,255,255,.04); }
.device-screen { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px; background: #e9e6df; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.slider-track { height: 100%; display: flex; transition: transform .72s cubic-bezier(.2,.78,.18,1); will-change: transform; }
.device-slide { flex: 0 0 100%; height: 100%; margin: 0; overflow: hidden; background: #e9e6df; }
.device-slide img { width: 100%; height: 100%; object-fit: cover; }
.laptop-base { position: relative; width: calc(100% + 70px); height: 28px; margin-left: -35px; border-radius: 3px 3px 20px 20px; background: linear-gradient(#eef0f2, #c7cbd0 62%, #aeb4bb); box-shadow: 0 18px 30px rgba(18,36,60,.16); }
.laptop-base::before { content: ''; position: absolute; inset: 0 7%; border-top: 1px solid rgba(255,255,255,.85); }
.laptop-base span { position: absolute; top: 0; left: 50%; width: 140px; height: 8px; margin-left: -70px; border-radius: 0 0 10px 10px; background: #b9bec4; }
.slider-console { width: min(100%, 980px); margin: 34px auto 0; display: grid; grid-template-columns: 54px minmax(0, 1fr) 54px; gap: 18px; align-items: center; }
.slider-console-compact { grid-template-columns: minmax(0, 1fr); width: min(100%, 980px); }
.slider-arrow { width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); cursor: pointer; font-size: 20px; transition: transform .2s ease, background .2s ease, color .2s ease; }
.slider-arrow-side { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; box-shadow: 0 12px 28px rgba(18,36,60,.12); }
.slider-arrow-left { left: 0; }
.slider-arrow-right { right: 0; }
.slider-arrow:hover { transform: translateY(-2px); background: var(--ink); color: white; }
.slider-arrow-side:hover { transform: translateY(calc(-50% - 2px)); }
.desktop-stage .slider-arrow-side { top: 42%; }
.mobile-stage .slider-arrow-side { top: 50%; }
.slider-status { min-width: 0; padding: 20px 24px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.78); }
.slider-status > span { color: var(--gold-deep); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.slider-status strong { display: block; margin-top: 7px; font-size: 17px; }
.slider-status p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.slider-dots { display: flex; gap: 7px; margin-top: 13px; }
.slider-dot { width: 24px; height: 5px; padding: 0; border: 0; border-radius: 999px; background: #d2ccc2; cursor: pointer; transition: width .25s ease, background .25s ease; }
.slider-dot.active { width: 44px; background: var(--gold-deep); }
.preview-cta { margin-top: 34px; padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.72); }
.preview-cta p { margin: 0; max-width: 760px; color: var(--muted); font-size: 13px; }

.mobile-showcase-layout { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); gap: 56px; align-items: start; margin-top: 40px; }
.mobile-stage { width: min(100%, 440px); padding-inline: 72px; }
.phone-device { position: relative; width: min(100%, 300px); aspect-ratio: 390 / 844; margin: 0 auto; padding: 15px; border-radius: 52px; background: linear-gradient(145deg, #172437, #060d17); box-shadow: 0 35px 80px rgba(18,36,60,.26); outline: none; }
.phone-speaker { position: absolute; z-index: 2; top: 23px; left: 50%; width: 90px; height: 23px; margin-left: -45px; border-radius: 999px; background: #07101c; }
.phone-screen { height: 100%; overflow: hidden; border-radius: 39px; background: white; }
.phone-screen .device-slide img { object-fit: cover; object-position: top center; }
.mobile-console { grid-template-columns: minmax(0, 1fr); margin-top: 24px; width: min(100%, 440px); }
.mobile-console .slider-status { padding: 16px 18px; }
.mobile-principles { display: grid; gap: 14px; }
.mobile-principles article { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.75); }
.mobile-principles article > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); color: var(--gold); font-size: 11px; font-weight: 800; }
.mobile-principles strong { display: block; font-size: 17px; }
.mobile-principles p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.mobile-principles .btn { justify-self: start; margin-top: 8px; }

@media (max-width: 1180px) {
  .journey-flow { grid-template-columns: repeat(2, 1fr); }
  .journey-flow > i { display: none; }
  .wireframe-grid { grid-template-columns: 1fr; }
  .wireframe-card-mobile .wireframe-media { min-height: 520px; }
}

@media (max-width: 900px) {
  .mobile-showcase-layout { grid-template-columns: 1fr; }
  .mobile-principles { grid-template-columns: repeat(2, 1fr); }
  .mobile-principles .btn { grid-column: 1 / -1; }
  .preview-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  .journey-flow, .responsive-matrix, .mobile-principles { grid-template-columns: 1fr; }
  .wireframe-media { min-height: 260px; padding: 6px; }
  .wireframe-card-mobile .wireframe-media { min-height: 420px; }
  .laptop-lid { padding: 9px 9px 12px; border-radius: 18px 18px 7px 7px; }
  .laptop-base { width: calc(100% + 26px); height: 17px; margin-left: -13px; border-radius: 2px 2px 12px 12px; }
  .laptop-base span { width: 84px; height: 5px; margin-left: -42px; }
  .showcase-stage { padding-inline: 54px; }
  .slider-console { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 22px; }
  .slider-console-compact { width: 100%; }
  .slider-arrow { width: 44px; height: 44px; border-radius: 14px; }
  .slider-arrow-side { top: 50%; }
  .slider-status { padding: 14px; }
  .slider-status p { display: none; }
  .phone-device { width: min(82vw, 280px); }
  .mobile-stage { width: min(100%, 390px); padding-inline: 48px; }
  .mobile-console { width: min(100%, 390px); }
}

/* Consistent portfolio title scale */
.section-title,
.hero-copy h1,
.explorer-header h2,
.footer-grid h2,
.case-hero-copy h1,
.case-section h2 {
  font-size: 32px !important;
}


.diagram svg { display: block; width: 100%; height: auto; }
.workflow-diagram .workflow-stage { cursor: default; }
.workflow-diagram .workflow-stage .workflow-circle,
.workflow-diagram .workflow-stage .workflow-number,
.workflow-diagram .workflow-stage .workflow-title,
.workflow-diagram .workflow-stage .workflow-subtitle { transition: fill .24s ease; }
.workflow-diagram .workflow-stage:hover .workflow-circle { fill: var(--gold); }
.workflow-diagram .workflow-stage:hover .workflow-number,
.workflow-diagram .workflow-stage:hover .workflow-title { fill: var(--ink); }
.workflow-diagram .workflow-stage:hover .workflow-subtitle { fill: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) {
  .workflow-diagram .workflow-stage { }
  .workflow-diagram .workflow-stage .workflow-circle,
  .workflow-diagram .workflow-stage .workflow-number,
  .workflow-diagram .workflow-stage .workflow-title,
  .workflow-diagram .workflow-stage .workflow-subtitle { transition: none; }
}


/* Full gallery redesign */
.full-gallery {
  margin-top: 34px;
}
.full-gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, .4fr);
  gap: 24px;
  align-items: stretch;
}
.full-gallery-media-column {
  min-width: 0;
}
.full-gallery-stage {
  position: relative;
}
.full-gallery-viewport {
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(18,36,60,.08);
  box-shadow: 0 28px 70px rgba(18,36,60,.12);
}
.full-gallery-track {
  display: flex;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.full-gallery-slide {
  min-width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,247,247,.96));
  aspect-ratio: 1672 / 941;
  padding: 14px;
}
.full-gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}
.gallery-stage-nav {
  position: absolute;
  bottom: 18px;
  z-index: 3;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.52);
  color: #121212;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform .22s ease, background-color .22s ease, color .22s ease, opacity .22s ease;
  opacity: .82;
}
.gallery-stage-nav:hover {
  background: rgba(255,255,255,.74);
  color: #121212;
  opacity: 1;
  transform: translateY(-1px);
}
.gallery-stage-nav:focus-visible {
  outline: 3px solid rgba(217,170,88,.38);
  outline-offset: 2px;
}
.gallery-stage-nav-prev { left: 14px; }
.gallery-stage-nav-next { right: 14px; }
.gallery-stage-nav svg {
  width: 34px;
  height: 34px;
  display: block;
}
.gallery-stage-nav svg circle {
  stroke: #d4d4d4;
  stroke-width: 0.70;
}
.gallery-stage-nav svg path {
  stroke: currentColor;
  stroke-width: 1.45;
}
.full-gallery-meta {
  min-height: 100%;
  padding: 30px 28px;
  border-radius: 28px;
  border: 1px solid rgba(18,36,60,.09);
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(244,244,244,.82));
  box-shadow: 0 24px 60px rgba(18,36,60,.09);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.full-gallery-meta::before {
  content: '';
  position: absolute;
  width: 210px;
  height: 210px;
  right: -100px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,170,88,.2), rgba(217,170,88,0) 70%);
}
.full-gallery-label {
  position: relative;
  z-index: 1;
  color: var(--gold-deep);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.full-gallery-counter {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  width: fit-content;
  min-width: 84px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.full-gallery-copy {
  position: relative;
  z-index: 1;
  margin-top: 26px;
}
.full-gallery-copy strong {
  display: block;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.2;
  letter-spacing: -.04em;
}
.full-gallery-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.full-gallery-accent {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 4px;
  margin-top: 26px;
  border-radius: 999px;
  background: var(--gold);
}
.full-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 10px;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.full-gallery-thumbs::-webkit-scrollbar { height: 8px; }
.full-gallery-thumbs::-webkit-scrollbar-thumb { background: rgba(18,36,60,.18); border-radius: 999px; }
.gallery-thumb {
  flex: 0 0 145px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(18,36,60,.07);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  scroll-snap-align: start;
}
.gallery-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 25px rgba(18,36,60,.12);
}
.gallery-thumb.is-active {
  border-color: #D9AA58;
  box-shadow: 0 14px 28px rgba(18,36,60,.12);
}
.gallery-thumb img {
  display: block;
  width: 100%;
  height: 82px;
  object-fit: cover;
}
@media (max-width: 1080px) {
  .full-gallery-layout {
    grid-template-columns: minmax(0, 1.42fr) minmax(230px, .58fr);
    gap: 18px;
  }
  .full-gallery-meta { padding: 24px 22px; }
}
@media (max-width: 860px) {
  .full-gallery-layout { grid-template-columns: 1fr; }
  .full-gallery-meta {
    min-height: auto;
    padding: 24px;
  }
  .full-gallery-copy { margin-top: 18px; }
}
@media (max-width: 720px) {
  .full-gallery-slide { padding: 8px; }
  .gallery-stage-nav {
    width: 46px;
    height: 46px;
    bottom: 14px;
  }
  .gallery-stage-nav-prev { left: 12px; }
  .gallery-stage-nav-next { right: 12px; }
  .gallery-thumb { flex-basis: 122px; }
  .gallery-thumb img { height: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .full-gallery-track, .gallery-thumb, .gallery-stage-nav { transition: none; }
}



#architecture .journey-flow > div span,
#architecture .decision .index {
  font-size: 22px;
}

.site-footer .footer-grid h2 {
  font-size: 22px !important;
  line-height: 1.35;
}

.outcome-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .outcome-grid-four { grid-template-columns: 1fr; }
}

/* Au2rama case */
.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.diagnostic-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(18,36,60,.08);
}
.diagnostic-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #f4f6f8;
}
.diagnostic-grid figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 17px 20px 19px;
  border-top: 1px solid var(--line);
}
.diagnostic-grid figcaption strong { font-size: 13px; color: var(--ink); }
.diagnostic-grid figcaption span { font-size: 12px; color: var(--muted); text-align: right; }
.video-embed {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #0d1724;
  box-shadow: 0 22px 55px rgba(18,36,60,.14);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.social-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.social-link-grid a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.social-link-grid a:hover { transform: translateY(-3px); border-color: rgba(18,36,60,.22); box-shadow: 0 16px 34px rgba(18,36,60,.09); }
.social-link-grid strong { color: var(--ink); font-size: 16px; }
.social-link-grid span { color: var(--muted); font-size: 12px; }
.au2rama-case .full-gallery-slide img[src$=".svg"] { padding: 0; border-radius: 20px; background: transparent; }
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .diagnostic-grid, .social-link-grid { grid-template-columns: 1fr; }
  .diagnostic-grid figcaption { align-items: flex-start; flex-direction: column; gap: 5px; }
  .diagnostic-grid figcaption span { text-align: left; }
}
