/* ==========================================================================
   OBRES VIALCON (OBRES I SERVEIS VAILCON, S.L.) — v6 Architectural Editorial 3D
   Swiss Civil Engineering Minimalism: Pure #FFFFFF + #111315 Charcoal + 1 Accent (#1E3A5F)
   Zero gaming neon, zero multi-color clutter, color-scheme: light only
   ========================================================================== */

:root {
  color-scheme: only light;
  --ground-white: #ffffff;
  --ground-light: #f7f7f5;
  --surface-white: #ffffff;
  --surface-tint: #f1f2f4;
  --ink-dark: #111315;
  --ink-body: #2b303a;
  --ink-muted: #5a606d;
  --ink-light: #ffffff;
  --ink-light-muted: #d4d8e0;
  --accent: #1e3a5f;
  --accent-hover: #152b47;
  --accent-soft: #f2f5f9;
  --accent-line: rgba(30, 58, 95, 0.24);
  --line-light: #e4e6ea;
  --line-strong: #cfd3dc;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --ease-arch: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --container: 1320px;
  --nav-h: 76px;
}

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

::selection {
  background: rgba(30, 58, 95, 0.14);
  color: var(--ink-dark);
}

html {
  scroll-behavior: smooth;
  color-scheme: only light !important;
  background-color: #ffffff !important;
  color: #111315 !important;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.62;
  color-scheme: only light !important;
  color: #111315 !important;
  background-color: #ffffff !important;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  background-color: #ffffff;
  color: var(--ink-body);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }

/* Skip link & crisp architectural keyboard focus */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 9999;
  padding: 12px 18px;
  background: var(--ink-dark);
  color: var(--ink-light);
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease-arch);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ==========================================================================
   HEADER / NAVIGATION — ARCHITECTURAL WHITE CHROME + 10-SERVICE DROPDOWN
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  min-height: var(--nav-h);
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  color: var(--ink-dark);
  border-bottom: 1px solid var(--line-light);
  background-color: #ffffff;
  transition: box-shadow 0.3s var(--ease-arch), border-color 0.3s var(--ease-arch);
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(17, 19, 21, 0.05);
  border-bottom-color: var(--line-strong);
}

.header-grid {
  width: min(100% - 40px, 1420px);
  margin-inline: auto;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.nav-left {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 18px;
}

.nav-link {
  position: relative;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 8px 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-dark);
  transition: color 0.2s var(--ease-arch);
}
.nav-link:hover { color: var(--accent); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease-arch);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav-caret { font-size: 0.72rem; opacity: 0.65; transition: transform 0.25s var(--ease-arch); }

/* Crisp White 2-Tier Services Dropdown (4 Core Pillars + Integrated Civil Specialties) */
.nav-dropdown { position: relative; }
.nav-dd-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: -40px;
  width: 656px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-white);
  color: var(--ink-dark);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(17, 19, 21, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s var(--ease-arch), transform 0.22s var(--ease-arch), visibility 0.22s;
  z-index: 220;
}
.nav-dropdown:hover .nav-dd-panel,
.nav-dropdown:focus-within .nav-dd-panel,
.nav-dropdown.is-open .nav-dd-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown:hover .nav-caret,
.nav-dropdown.is-open .nav-caret { transform: rotate(180deg); }
.nav-dd-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 8px 2px;
}
.nav-dd-divider {
  height: 1px;
  background: var(--line-light);
  margin: 12px 0;
}
.nav-dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.nav-dd-subgrid { display: flex; flex-wrap: wrap; gap: 6px; }
.nav-dd-subitem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-light);
  background: var(--ground-light);
  color: var(--ink-body);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s var(--ease-arch);
}
.nav-dd-subitem span { font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.nav-dd-subitem:hover {
  background: var(--ink-dark);
  border-color: var(--ink-dark);
  color: #ffffff;
  transform: translateY(-1px);
}
.nav-dd-subitem:hover span { color: rgba(255, 255, 255, 0.75); }
.nav-dd-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease-arch);
}
.nav-dd-item:hover { background: var(--ground-light); border-color: var(--line-light); transform: translateX(2px); }
.nav-dd-item.is-featured { background: var(--accent-soft); border-color: var(--accent-line); }
.nav-dd-item.is-featured:hover { background: #e8eef6; border-color: var(--accent); }
.nav-dd-num { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--accent); padding-top: 2px; font-variant-numeric: tabular-nums; }
.nav-dd-item strong { display: block; font-family: var(--font-heading); font-size: 0.86rem; line-height: 1.25; color: var(--ink-dark); }
.nav-dd-item small { display: block; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-muted); margin-top: 2px; }
.nav-dd-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}
.nav-dd-foot a { text-decoration: none; color: var(--accent); font-weight: 600; }
.nav-dd-foot a:hover { text-decoration: underline; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  justify-self: start;
  white-space: nowrap;
  color: var(--ink-dark);
}
.brand-mark svg { width: 24px; height: 24px; flex-shrink: 0; }

.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--ground-light);
}
.lang-switch a {
  text-decoration: none;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--ink-muted);
  transition: background-color 0.2s, color 0.2s;
}
.lang-switch a:hover { color: var(--ink-dark); }
.lang-switch a[aria-current="true"] { background: var(--ink-dark); }
.lang-switch a[aria-current="true"] span { color: var(--surface-white); }

/* ==========================================================================
   BUTTONS — STRICT ARCHITECTURAL TWO-VOICE SYSTEM (1 ACCENT + CHARCOAL/WHITE)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.26s var(--ease-arch), background-color 0.22s var(--ease-arch), color 0.22s var(--ease-arch), border-color 0.22s var(--ease-arch), box-shadow 0.26s var(--ease-arch);
}
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }

/* Primary Brand Accent CTA (unified across .btn-accent, .btn-primary, .btn-amber) */
.btn-accent,
.btn-amber,
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(30, 58, 95, 0.14);
}
.btn-accent:hover,
.btn-amber:hover,
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(30, 58, 95, 0.22);
}

/* Charcoal Solid CTA */
.btn-dark {
  background: var(--ink-dark);
  color: #ffffff;
  border-color: var(--ink-dark);
}
.btn-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(30, 58, 95, 0.18);
}

/* Crisp Architectural White Hairline CTA (floods to charcoal on hover) */
.btn-light,
.btn-outline-light,
.btn-outline-dark {
  background: var(--surface-white);
  color: var(--ink-dark);
  border-color: var(--line-strong);
}
.btn-light:hover,
.btn-outline-light:hover,
.btn-outline-dark:hover {
  background: var(--ink-dark);
  color: #ffffff;
  border-color: var(--ink-dark);
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-white);
  color: var(--ink-dark);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.mobile-menu-btn:hover { background: var(--ink-dark); color: #ffffff; border-color: var(--ink-dark); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: var(--surface-white);
  color: var(--ink-dark);
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 28px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.25s var(--ease-arch);
}
.mobile-drawer.open { display: flex; opacity: 1; }
.mobile-drawer-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 22px; }
.mobile-drawer-nav a {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 0;
  color: var(--ink-dark);
  border-bottom: 1px solid var(--line-light);
}
.drawer-sub-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.drawer-sub-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--ground-light);
  color: var(--ink-body);
}

/* ==========================================================================
   STAGE 1: PURE WHITE ARCHITECTURAL HERO + MUSEUM-GRADE 3D STUDIO MAQUETTE
   ========================================================================== */
.hero-stage {
  position: relative;
  background: #ffffff;
  color: var(--ink-dark);
  padding-top: calc(var(--nav-h) + 38px + env(safe-area-inset-top, 0px));
  padding-bottom: clamp(52px, 6.5vw, 84px);
  border-bottom: 1px solid var(--line-light);
  overflow-x: clip;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(to right, rgba(17, 19, 21, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 19, 21, 0.032) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 64% 42%, black 18%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at 64% 42%, black 18%, transparent 76%);
}

.hero-split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  gap: clamp(28px, 3.8vw, 52px);
  align-items: center;
}

.hero-top-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--ground-light);
  border: 1px solid var(--line-light);
  margin-bottom: 20px;
  max-width: 100%;
  color: var(--ink-dark);
}

.hero-tel-chip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hero-tel-chip:hover { text-decoration: underline; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.15rem, 4.3vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.038em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--ink-dark);
}

.hero-lead {
  margin: 0 0 26px;
  font-size: 1.03rem;
  line-height: 1.58;
  color: var(--ink-muted);
  max-width: 550px;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.hero-quick-bar {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-family: var(--font-mono);
  font-size: 0.79rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.hero-quick-bar a { text-decoration: none; color: var(--ink-dark); transition: color 0.2s; }
.hero-quick-bar a:hover { color: var(--accent); text-decoration: underline; }

/* ==========================================================================
   INTERACTIVE 3D STUDIO MAQUETTE VIEWPORT (SWISS ARCHITECTURAL PRECISION)
   ========================================================================== */
.arch3d-shell {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface-white);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 20px 52px rgba(17, 19, 21, 0.06),
    0 2px 8px rgba(17, 19, 21, 0.03);
  overflow: hidden;
}

.arch3d-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-light);
  background: var(--surface-white);
}

.arch3d-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; }

.arch3d-tab {
  border: 1px solid var(--line-light);
  background: var(--ground-light);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.22s var(--ease-arch);
}
.arch3d-tab:hover { color: var(--ink-dark); border-color: var(--line-strong); background: var(--surface-white); }
.arch3d-tab.is-active {
  background: var(--ink-dark);
  color: #ffffff;
  border-color: var(--ink-dark);
}

.arch3d-badge-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--ink-dark);
}
.arch3d-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--accent);
}

.arch3d-presets { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.arch3d-preset {
  border: 1px solid var(--line-light);
  background: var(--surface-white);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease-arch);
}
.arch3d-preset:hover,
.arch3d-preset.is-active {
  background: var(--surface-tint);
  color: var(--ink-dark);
  border-color: var(--line-strong);
}

.arch3d-explode {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 2px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.22s var(--ease-arch);
}
.arch3d-explode:hover {
  background: #e7eef6;
  border-color: var(--accent);
  color: var(--accent-hover);
}
.arch3d-explode.is-active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.arch3d-stage {
  position: relative;
  height: 416px;
  width: 100%;
  background-color: #f7f8f9;
  background-image: radial-gradient(circle at 50% 44%, #ffffff 0%, #fafaf9 72%, #f4f4f2 100%);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.arch3d-stage:active { cursor: grabbing; }
.arch3d-shell.is-compact .arch3d-stage { height: 344px; }

.arch3d-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

/* Gaming viewfinder brackets intentionally disabled in v6 */
.arch3d-corner { display: none; }

.arch3d-hint {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line-light);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--ink-muted);
  pointer-events: none;
}
.arch3d-hint span { color: var(--accent); font-weight: 700; }

.arch3d-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 12px 16px;
  border-top: 1px solid var(--line-light);
  background: var(--surface-white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.arch3d-spec { color: var(--ink-muted); }
.arch3d-link { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; transition: color 0.2s; }
.arch3d-link:hover { color: var(--accent-hover); text-decoration: underline; }

/* ==========================================================================
   STAGE 1B: 4 CORE PILLARS ARCHITECTURAL BAND (SWISS GRID PRECISION)
   ========================================================================== */
.pillars-stage {
  background: var(--ground-light);
  color: var(--ink-dark);
  padding: clamp(56px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--line-light);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.pillar-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-white);
  border: 1px solid var(--line-light);
  border-top: 2.5px solid var(--accent);
  text-decoration: none;
  color: var(--ink-dark);
  box-shadow: 0 8px 24px rgba(17, 19, 21, 0.04);
  transition: transform 0.3s var(--ease-arch), border-color 0.25s var(--ease-arch), box-shadow 0.32s var(--ease-arch);
}
.pillar-card:hover,
.pillar-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 22px 44px rgba(17, 19, 21, 0.1);
}
.pillar-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-tint);
}
.pillar-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-arch);
}
.pillar-card[data-service="mano_obra"] .pillar-card-media img {
  object-position: 75% 25%;
}
.pillar-card:hover .pillar-card-media img { transform: scale(1.045); }
.pillar-card-index {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line-light);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.pillar-card-body {
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pillar-card-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-dark);
}
.pillar-card-body p {
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.52;
  color: var(--ink-muted);
}
.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
.pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--ground-light);
  border: 1px solid var(--line-light);
  color: var(--ink-body);
}
.pillar-card-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
}
.pillar-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background-color 0.22s var(--ease-arch), color 0.22s var(--ease-arch), border-color 0.22s, transform 0.22s var(--ease-arch);
}
.pillar-card:hover .pillar-arrow,
.pillar-card:focus-visible .pillar-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translate(2px, -2px);
}
.prose a.pillar-card,
.prose a.pillar-card:hover { color: inherit; text-decoration: none; }
.prose a.pillar-card h3,
.prose a.pillar-card p,
.prose a.pillar-card .pillar-card-foot { text-decoration: none; }

/* ==========================================================================
   STAGE 2: PURE WHITE ARCHITECTURAL MANIFESTO
   ========================================================================== */
.manifesto-stage {
  position: relative;
  background: var(--ground-white);
  color: var(--ink-dark);
  padding: clamp(72px, 10vw, 136px) 0;
  overflow: hidden;
}

.topo-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 700' fill='none'%3E%3Cpath d='M-120 560C220 420 560 660 980 410C1220 265 1380 180 1560 90' stroke='%23111315' stroke-opacity='0.045' stroke-width='1.5'/%3E%3Cpath d='M-120 490C240 340 590 580 1010 340C1260 198 1390 120 1560 30' stroke='%23111315' stroke-opacity='0.035' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.manifesto-canvas {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 52px 0;
}

.manifesto-copy { position: relative; z-index: 3; max-width: 720px; text-align: center; }

.manifesto-title {
  margin: 16px 0 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.034em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--ink-dark);
}

.manifesto-lead { max-width: 620px; margin: 0 auto 28px; color: var(--ink-muted); font-size: 1.03rem; }

.float-slider-wrap { display: contents; }
.float-slider-bar { display: none; }
.float-card {
  position: absolute;
  z-index: 2;
  margin: 0;
  width: clamp(152px, 14.2vw, 208px);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-white);
  box-shadow: 0 16px 40px rgba(17, 19, 21, 0.08);
  border: 1px solid var(--line-light);
  text-decoration: none;
  color: var(--ink-dark);
  display: block;
  cursor: pointer;
  will-change: transform;
  transition: border-color 0.25s var(--ease-arch), box-shadow 0.3s var(--ease-arch);
}
.float-card:hover, .float-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 22px 48px rgba(17, 19, 21, 0.13);
  z-index: 5;
}
.float-card-media { position: relative; overflow: hidden; }
.float-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.45s var(--ease-arch); }
.float-card:hover img { transform: scale(1.05); }
.float-card-arrow {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(17, 19, 21, 0.8);
  color: #ffffff;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.22s, transform 0.22s var(--ease-arch);
}
.float-card:hover .float-card-arrow { background: var(--accent); color: #ffffff; transform: translate(1px, -1px); }
.float-card-cap {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.float-card-cap strong {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  line-height: 1.22;
  color: var(--ink-dark);
}
.float-card-cap span {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--ink-muted);
  font-weight: 500;
}
.float-tl { top: 0; left: 0; }
.float-tr { top: 0; right: 0; }
.float-bl { bottom: 0; left: 1%; }
.float-br { bottom: 0; right: 1%; }

.proof-strip {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.proof-item { background: var(--ground-light); padding: 24px 22px; }
.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.52rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-dark);
  font-variant-numeric: tabular-nums;
}
.proof-item span { display: block; margin-top: 4px; font-size: 0.86rem; color: var(--ink-muted); }

/* ==========================================================================
   STAGE 3: TRUE 3D PERSPECTIVE COVERFLOW ON CALM ARCHITECTURAL STONE-WHITE
   ========================================================================== */
.deck-stage {
  position: relative;
  background: var(--ground-light);
  color: var(--ink-dark);
  padding: clamp(72px, 9.5vw, 128px) 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  overflow: hidden;
}

.deck-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.deck-header h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 4.1vw, 3.4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.032em;
  text-transform: uppercase;
  max-width: 660px;
  color: var(--ink-dark);
}
.deck-header p { max-width: 420px; margin: 0; color: var(--ink-muted); }

.fan-deck-shell { position: relative; margin: 8px 0 28px; }

.fan-deck-viewport {
  position: relative;
  height: 490px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
  -webkit-perspective: 1100px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.fan-card {
  position: absolute;
  width: 310px;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink-light);
  border: 1px solid rgba(17, 19, 21, 0.14);
  background-color: #eceef1;
  box-shadow: 0 22px 48px rgba(17, 19, 21, 0.16);
  will-change: transform, opacity;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.55s var(--ease-arch), opacity 0.45s var(--ease-arch), border-color 0.35s var(--ease-arch), box-shadow 0.45s var(--ease-arch);
}
.fan-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 40%, transparent 100%);
  pointer-events: none;
  opacity: 0.35;
}
.fan-card.is-active {
  border: 2px solid var(--accent);
  box-shadow: 0 30px 64px rgba(17, 19, 21, 0.24);
}
.fan-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-arch); }
.fan-card[data-service="mano_obra"] img { object-position: 78% center; }
.fan-card:hover img { transform: scale(1.04); }

.fan-card-overlay {
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(17, 19, 21, 0.42) 0%, rgba(17, 19, 21, 0.1) 42%, rgba(17, 19, 21, 0.88) 100%);
}
.fan-card-num {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.94);
  font-variant-numeric: tabular-nums;
}
.fan-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 19, 21, 0.42);
  color: #ffffff;
  transition: background-color 0.25s, color 0.25s;
}
.fan-card.is-active .fan-arrow {
  background: #ffffff;
  color: var(--accent);
  border-color: transparent;
}
.fan-card h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.26rem; line-height: 1.12; letter-spacing: -0.02em; color: #ffffff; }
.fan-card p { margin: 0; font-size: 0.84rem; line-height: 1.44; color: rgba(255, 255, 255, 0.86); }

.deck-orbit-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; }
.deck-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-white);
  color: var(--ink-dark);
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(17, 19, 21, 0.06);
  transition: all 0.22s var(--ease-arch);
}
.deck-nav-btn:hover { background: var(--ink-dark); color: #ffffff; border-color: var(--ink-dark); transform: scale(1.05); }
.deck-counter { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; color: var(--ink-dark); min-width: 70px; text-align: center; font-variant-numeric: tabular-nums; }

.deck-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 38px; }
.deck-pill {
  border: 1px solid var(--line-strong);
  background: var(--surface-white);
  color: var(--ink-muted);
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-arch);
}
.deck-pill:hover { border-color: var(--ink-dark); color: var(--ink-dark); }
.deck-pill.is-active { background: var(--ink-dark); color: #ffffff; border-color: var(--ink-dark); font-weight: 600; }

.deck-statement { max-width: 700px; margin: 0 auto; text-align: center; padding-top: 28px; border-top: 1px solid var(--line-light); }
.deck-statement h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(1.45rem, 3vw, 2.2rem); letter-spacing: -0.025em; color: var(--ink-dark); }
.deck-statement p { margin: 0 0 22px; color: var(--ink-muted); }

/* ==========================================================================
   STAGE 4: PROCESS + STAGE 5: EXPAND SHOWCASE
   ========================================================================== */
.process-stage {
  position: relative;
  background: var(--ground-white);
  color: var(--ink-dark);
  padding: clamp(72px, 9vw, 120px) 0;
  overflow: hidden;
}
.process-bg { display: none; }
.process-giant-type { position: relative; z-index: 1; text-align: center; margin-bottom: 42px; }
.process-giant-type h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.05rem, 5vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--ink-dark);
}
.process-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--ground-light);
  border: 1px solid var(--line-light);
  transition: transform 0.32s var(--ease-arch), border-color 0.25s, box-shadow 0.32s;
}
.process-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 16px 36px rgba(17, 19, 21, 0.06); }
.process-num { display: inline-block; font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; color: var(--accent); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.process-card h3 { margin: 0 0 10px; font-family: var(--font-heading); font-size: 1.04rem; text-transform: uppercase; color: var(--ink-dark); }
.process-card p { margin: 0; font-size: 0.9rem; line-height: 1.54; color: var(--ink-muted); }

.expand-stage {
  background: var(--ground-light);
  color: var(--ink-dark);
  padding: clamp(60px, 8vw, 108px) 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  overflow: hidden;
}
.expand-frame-wrap { width: min(100% - 32px, 1320px); margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.expand-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: scale(0.92);
  transform-origin: center center;
  will-change: transform, border-radius;
  box-shadow: 0 24px 56px rgba(17, 19, 21, 0.12);
}
.expand-frame img { width: 100%; height: 100%; object-fit: cover; }
.expand-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink-dark);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(12px);
}
.expand-caption h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: clamp(1.18rem, 2.1vw, 1.7rem); color: var(--ink-dark); }
.expand-caption p { margin: 0; font-size: 0.92rem; color: var(--ink-muted); }

.section-light { background: var(--ground-light); color: var(--ink-dark); padding: clamp(68px, 8vw, 112px) 0; }
.section-white { background: var(--surface-white); color: var(--ink-dark); padding: clamp(68px, 8vw, 112px) 0; }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 38px; }
.section-head h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.95rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 720px;
  color: var(--ink-dark);
}
.section-head p { margin: 0; max-width: 440px; color: var(--ink-muted); }

/* Editorial Slider */
.editorial-slider { display: grid; grid-template-columns: 120px minmax(0, 1fr) 230px; align-items: center; gap: 24px; }
.slider-index { font-family: var(--font-mono); font-size: 0.96rem; color: var(--ink-muted); display: flex; flex-direction: column; gap: 14px; font-variant-numeric: tabular-nums; }
.slider-nav-btns { display: flex; gap: 8px; }
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-white);
  color: var(--ink-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all 0.22s var(--ease-arch);
}
.icon-btn:hover { background: var(--ink-dark); color: #ffffff; border-color: var(--ink-dark); }
.slider-stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; background: var(--surface-tint); border: 1px solid var(--line-light); }
.slide-item { display: none; position: relative; min-height: 420px; }
.slide-item.is-active { display: grid; place-items: end start; }
.slide-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-card {
  position: relative;
  z-index: 2;
  margin: 22px;
  max-width: 560px;
  padding: 24px 26px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink-dark);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(17, 19, 21, 0.14);
}
.slide-card blockquote { margin: 0 0 12px; font-size: 1rem; line-height: 1.54; font-weight: 500; color: var(--ink-dark); }
.slide-card footer { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-muted); }
.slider-side-list { display: flex; flex-direction: column; gap: 10px; }
.slider-tab {
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-light);
  background: var(--surface-white);
  color: var(--ink-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.22s var(--ease-arch);
}
.slider-tab.is-active, .slider-tab:hover { background: var(--ink-dark); color: #ffffff; border-color: var(--ink-dark); }

/* Regions */
.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.region-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--ground-light);
  border: 1px solid var(--line-light);
  text-decoration: none;
  transition: transform 0.28s var(--ease-arch), border-color 0.22s, box-shadow 0.28s, background-color 0.22s;
}
.region-card:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--surface-white); box-shadow: 0 16px 36px rgba(17, 19, 21, 0.06); }
.region-card .tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em; }
.region-card h3 { margin: 6px 0 8px; font-family: var(--font-display); font-size: 1.4rem; color: var(--ink-dark); }
.region-card p { margin: 0; font-size: 0.91rem; color: var(--ink-muted); }
.region-link { font-family: var(--font-heading); font-weight: 600; font-size: 0.87rem; color: var(--ink-dark); }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 920px; }
.faq-item { border-radius: var(--radius-md); background: var(--surface-white); border: 1px solid var(--line-light); overflow: hidden; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.03rem;
  color: var(--ink-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.25rem; color: var(--accent); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-body { padding: 0 24px 22px; color: var(--ink-muted); font-size: 0.96rem; line-height: 1.6; }

/* Quote Form — Crisp Architectural Split */
.quote-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 38px; align-items: start; }
.quote-info {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--ground-light);
  border: 1px solid var(--line-light);
  color: var(--ink-dark);
}
.quote-info h2 { margin: 12px 0 14px; font-family: var(--font-display); font-size: clamp(1.65rem, 2.8vw, 2.3rem); line-height: 1.04; text-transform: uppercase; color: var(--ink-dark); }
.quote-info p { color: var(--ink-muted); }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.contact-list li { padding: 13px 16px; border-radius: var(--radius-sm); background: var(--surface-white); border: 1px solid var(--line-light); }
.contact-list small { display: block; font-family: var(--font-mono); font-size: 0.69rem; color: var(--ink-muted); text-transform: uppercase; margin-bottom: 3px; letter-spacing: 0.05em; }
.contact-list a, .contact-list strong { font-family: var(--font-heading); font-size: 1rem; text-decoration: none; color: var(--ink-dark); font-variant-numeric: tabular-nums; }
.contact-list a:hover { color: var(--accent); text-decoration: underline; }

.quote-form {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--surface-white);
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 42px rgba(17, 19, 21, 0.05);
  transition: box-shadow 0.35s var(--ease-arch), border-color 0.35s;
}
.quote-form.is-highlighted {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.14), 0 20px 48px rgba(17, 19, 21, 0.08);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; color: var(--ink-dark); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--ground-light);
  color: var(--ink-dark);
  font-family: inherit;
  font-size: 0.96rem;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.92rem; font-weight: 500; display: none; }
.form-status.ok { display: block; background: var(--accent-soft); color: var(--accent-hover); border: 1px solid var(--accent-line); }
.form-status.err { display: block; background: #faf2f2; color: #7f1d1d; border: 1px solid #e6c5c5; }

/* ==========================================================================
   INNER SEO PAGES — PURE WHITE EDITORIAL HERO + CRISP PROSE
   ========================================================================== */
.inner-hero {
  background: #ffffff;
  color: var(--ink-dark);
  padding: calc(var(--nav-h) + 42px + env(safe-area-inset-top, 0px)) 0 56px;
  border-bottom: 1px solid var(--line-light);
  position: relative;
  overflow: hidden;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.breadcrumbs a { text-decoration: none; color: var(--ink-muted); }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }

.inner-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 38px; align-items: center; }
.inner-hero h1 {
  margin: 12px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.032em;
  color: var(--ink-dark);
}
.inner-hero .lead { font-size: 1.04rem; color: var(--ink-muted); max-width: 640px; margin: 0 0 24px; }
.inner-hero-photo { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-light); aspect-ratio: 4 / 3; box-shadow: 0 18px 44px rgba(17, 19, 21, 0.08); }
.inner-hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.vado-showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0 32px; }
.vado-photo-card { margin: 0; border-radius: var(--radius-md); overflow: hidden; background-color: #ffffff; border: 1px solid var(--line-light); }
.vado-photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.vado-photo-card figcaption { padding: 12px 14px; font-size: 0.86rem; color: var(--ink-muted); }

.portrait-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0 34px; }
.portrait-photo-card { margin: 0; border-radius: var(--radius-md); overflow: hidden; background-color: #ffffff; border: 1px solid var(--line-light); display: flex; flex-direction: column; }
.portrait-photo-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center; }
.portrait-photo-card figcaption { padding: 12px 14px; font-size: 0.84rem; line-height: 1.45; color: var(--ink-muted); }

/* ==========================================================================
   ENTERPRISE TECHNICAL CONFIGURATORS (SWISS MONOCHROME INSTRUMENT)
   ========================================================================== */
.tech-cfg {
  margin: 30px 0 38px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface-white);
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--accent);
  box-shadow: 0 16px 42px rgba(17, 19, 21, 0.05);
}
.tech-cfg-head h2 {
  margin: 10px 0 8px !important;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.72rem);
  line-height: 1.12;
  color: var(--ink-dark);
}
.tech-cfg-head p {
  margin: 0 0 22px;
  font-size: 0.95rem;
  color: var(--ink-muted);
}
.tech-cfg-controls {
  display: grid;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-light);
}
.tech-cfg-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tech-cfg-label {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.tech-cfg-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cfg-pill {
  border: 1px solid var(--line-strong);
  background: var(--ground-light);
  color: var(--ink-body);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s var(--ease-arch);
}
.cfg-pill:hover {
  border-color: var(--ink-dark);
  color: var(--ink-dark);
  background: var(--surface-white);
}
.cfg-pill.is-active {
  background: var(--ink-dark);
  color: #ffffff;
  border-color: var(--ink-dark);
}
.tech-cfg-result { padding-top: 22px; }
.tech-cfg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
[data-mano-configurator] .tech-cfg-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tech-cfg-metric {
  padding: 14px 15px;
  border-radius: var(--radius-sm);
  background: var(--ground-light);
  border: 1px solid var(--line-light);
}
.tech-cfg-metric small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.tech-cfg-metric strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  line-height: 1.32;
  color: var(--ink-dark);
}
.tech-cfg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.cfg-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 600;
}
.tech-cfg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.prose .tech-cfg-actions .btn { text-decoration: none; }
.prose .tech-cfg-actions .btn-amber,
.prose .tech-cfg-actions .btn-accent { color: #ffffff; }
.prose .tech-cfg-actions .btn-outline-dark { color: var(--ink-dark); }
.prose .tech-cfg-actions .btn-outline-dark:hover { color: #ffffff; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; align-items: start; }
.prose h2 { margin: 36px 0 14px; font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.12; letter-spacing: -0.025em; color: var(--ink-dark); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 22px 0 8px; font-family: var(--font-heading); font-size: 1.15rem; color: var(--ink-dark); }
.prose p { margin: 0 0 16px; color: var(--ink-body); }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; color: var(--ink-body); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-hover); }
.prose a.catalog-card,
.prose a.catalog-card:hover { color: inherit; text-decoration: none; }
.prose a.catalog-card h3,
.prose a.catalog-card p,
.prose a.catalog-card .eyebrow { text-decoration: none; }

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 22px 0 30px; }
.spec-card { padding: 20px; border-radius: var(--radius-md); background: var(--surface-white); border: 1px solid var(--line-light); }
.spec-card h3 { margin: 0 0 8px; font-size: 1.03rem; color: var(--ink-dark); }
.spec-card p { margin: 0; font-size: 0.92rem; color: var(--ink-muted); }

.hero-copy-col,
.hero-3d-col,
.prose { min-width: 0; max-width: 100%; }

.compare-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 22px 0 30px;
  background: var(--surface-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-light);
}
.compare-table th, .compare-table td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line-light); font-size: 0.92rem; color: var(--ink-body); }
.compare-table th { background: var(--ink-dark); color: #ffffff; font-family: var(--font-heading); font-weight: 600; }

.sticky-aside { position: sticky; top: calc(var(--nav-h) + 22px); display: grid; gap: 18px; }
.aside-card { padding: 22px; border-radius: var(--radius-md); background: var(--surface-white); border: 1px solid var(--line-light); }
.aside-card-dark { background: var(--surface-white); color: var(--ink-dark); border: 1px solid var(--line-strong); border-top: 2px solid var(--accent); }
.aside-card h3 { margin: 0 0 10px; font-family: var(--font-heading); font-size: 1.04rem; color: var(--ink-dark); }
.aside-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.aside-links a { display: block; padding: 7px 10px; border-radius: var(--radius-sm); text-decoration: none; font-size: 0.88rem; color: var(--ink-body); transition: background-color 0.2s, color 0.2s; }
.aside-links a:hover, .aside-links a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.service-catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.catalog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-white);
  border: 1px solid var(--line-light);
  text-decoration: none;
  transition: transform 0.28s var(--ease-arch), box-shadow 0.28s, border-color 0.25s;
}
.catalog-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 18px 38px rgba(17, 19, 21, 0.08); }
.catalog-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.catalog-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.catalog-card-body h3 { margin: 0; font-family: var(--font-display); font-size: 1.18rem; color: var(--ink-dark); }
.catalog-card-body p { margin: 0; font-size: 0.9rem; color: var(--ink-muted); }

/* ==========================================================================
   ARCHITECTURAL FOOTER + RESTRAINED MONOCHROME/ACCENT FLOATING DOCK
   ========================================================================== */
.site-footer {
  background: var(--ground-light);
  color: var(--ink-dark);
  padding: 64px 0 34px;
  border-top: 1px solid var(--line-light);
}
.footer-grid { display: grid; grid-template-columns: 1.25fr 1.35fr 0.85fr 0.95fr; gap: 32px; padding-bottom: 38px; border-bottom: 1px solid var(--line-light); }
.footer-col h3 { margin: 0 0 14px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-svc-cols { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.footer-col a { text-decoration: none; font-size: 0.88rem; color: var(--ink-body); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 22px; padding-right: 84px; font-size: 0.82rem; color: var(--ink-muted); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal-links a { text-decoration: none; color: var(--ink-muted); }
.footer-legal-links a:hover { text-decoration: underline; color: var(--ink-dark); }

/* Cohesive Swiss Architectural Quick-Dock (Zero neon green/blue clash!) */
.quick-dock { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: flex; flex-direction: column; gap: 10px; }
.dock-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(17, 19, 21, 0.16);
  transition: transform 0.25s var(--ease-arch), background-color 0.22s, color 0.22s, border-color 0.22s;
}
.dock-btn:hover { transform: translateY(-2px) scale(1.04); }
.dock-wa {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}
.dock-wa:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.dock-tel {
  background: #ffffff;
  color: var(--ink-dark);
  border: 1px solid var(--line-strong);
}
.dock-tel:hover { background: var(--ink-dark); color: #ffffff; border-color: var(--ink-dark); }

.js-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.42s var(--ease-arch), transform 0.48s var(--ease-arch);
}
.js-ready [data-reveal].is-visible { opacity: 1; transform: translate3d(0, 0, 0); }

/* ==========================================================================
   RESPONSIVE — DESIGNED FIRST-CLASS FOR iPHONE 390x844 & TABLET
   ========================================================================== */
@media (max-width: 1120px) {
  .nav-left { display: none; }
  .header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .brand-mark { justify-self: start; }
  .mobile-menu-btn { display: inline-flex; }
  .header-cta-desktop { display: none; }
  .hero-split,
  .inner-hero-grid,
  .article-layout,
  .quote-grid { grid-template-columns: 1fr; }
  .pillars-grid,
  .process-grid,
  .region-grid,
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial-slider { grid-template-columns: 1fr; }
  .slider-side-list { flex-direction: row; flex-wrap: wrap; }
  .service-catalog-grid,
  .portrait-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .float-card { width: 140px; }
}

@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .wrap { width: min(100% - 28px, var(--container)); }
  .header-grid { width: min(100% - 28px, 1420px); gap: 8px; height: var(--nav-h); }
  .brand-mark { font-size: 0.86rem; letter-spacing: 0.05em; gap: 6px; min-height: 36px; display: inline-flex; align-items: center; }
  .brand-mark svg { width: 20px; height: 20px; }
  .nav-right { gap: 8px; flex-shrink: 0; }

  .hero-stage {
    padding-top: calc(var(--nav-h) + 18px + env(safe-area-inset-top, 0px));
    padding-bottom: 56px;
  }
  .hero-split { gap: 16px; }
  .hero-top-pill { padding: 7px 12px; gap: 3px 10px; margin-bottom: 12px; font-size: 0.68rem; border-radius: 12px; }
  .hero-top-pill .eyebrow { font-size: 0.64rem; letter-spacing: 0.04em; line-height: 1.35; }
  .hero-tel-chip { padding-left: 0; border-left: none; font-size: 0.72rem; min-height: 24px; display: inline-flex; align-items: center; }
  .hero-title { font-size: clamp(1.7rem, 7.6vw, 2.2rem); margin-bottom: 10px; line-height: 0.99; }
  .hero-lead { font-size: 0.89rem; line-height: 1.46; margin-bottom: 14px; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .hero-actions .btn { flex: 1 1 44%; white-space: normal; text-align: center; padding: 10px 10px; font-size: 0.8rem; line-height: 1.25; }
  .hero-actions .btn:first-child { flex: 1 1 100%; }
  .hero-quick-bar { display: none; }

  .arch3d-head { padding: 8px 10px; gap: 6px; }
  .arch3d-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .arch3d-tab { font-size: 0.62rem; padding: 6px 4px; white-space: nowrap; text-align: center; overflow: hidden; text-overflow: ellipsis; }
  .arch3d-presets { width: 100%; justify-content: space-between; }
  .arch3d-preset { font-size: 0.68rem; padding: 6px 8px; min-height: 32px; flex: 1; text-align: center; display: inline-flex; align-items: center; justify-content: center; }
  .arch3d-explode { font-size: 0.68rem; padding: 6px 10px; min-height: 32px; margin-left: 0; display: inline-flex; align-items: center; justify-content: center; }
  .arch3d-link { min-height: 30px; display: inline-flex; align-items: center; }
  .breadcrumbs a { min-height: 28px; display: inline-flex; align-items: center; }
  .arch3d-stage { height: 292px; }
  .arch3d-shell.is-compact .arch3d-stage { height: 280px; }
  .arch3d-foot { padding: 9px 11px; font-size: 0.66rem; }

  .tech-cfg { padding: 18px; margin: 22px 0 28px; }
  .tech-cfg-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .cfg-pill { font-size: 0.78rem; padding: 8px 11px; }
  .tech-cfg-actions { flex-direction: column; }
  .tech-cfg-actions .btn { width: 100%; white-space: normal; text-align: center; }

  .manifesto-canvas { min-height: auto; padding: 8px 0; }
  .manifesto-title { font-size: clamp(1.65rem, 7.6vw, 2.25rem); }
  .float-slider-wrap { display: block; width: 100%; margin-top: 24px; min-width: 0; }
  .float-slider-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }
  .float-slider-hint {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink-muted);
  }
  .float-slider-btns { display: inline-flex; gap: 6px; }
  .float-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--surface-white);
    color: var(--ink-dark);
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .float-nav-btn:active { background: var(--ink-dark); color: #ffffff; }
  .float-mobile-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    width: 100%;
    padding: 6px 2px 14px;
    scrollbar-width: none;
  }
  .float-mobile-grid::-webkit-scrollbar { display: none; }
  .float-card {
    position: static;
    flex: 0 0 78%;
    width: 78%;
    min-width: 0;
    margin: 0;
    scroll-snap-align: start;
    transform: none !important;
  }
  .float-card:active { transform: scale(0.98) !important; border-color: var(--accent); }
  .float-card-cap {
    padding: 12px 14px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .float-card-cap strong { font-size: 0.92rem; white-space: normal; }
  .float-card-cap span { font-size: 0.72rem; white-space: nowrap; flex-shrink: 0; }
  .proof-strip { grid-template-columns: 1fr 1fr; }

  /* TRUE 3D PERSPECTIVE COVERFLOW KEPT ACTIVE ON iPHONE MOBILE */
  .fan-deck-viewport { height: 390px; perspective: 900px; -webkit-perspective: 900px; }
  .fan-card { width: 244px; height: 342px; }
  .fan-card h3 { font-size: 1.12rem; }
  .fan-card p { font-size: 0.78rem; }
  .deck-controls {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 10px;
    margin-bottom: 26px;
    scrollbar-width: none;
  }
  .deck-controls::-webkit-scrollbar { display: none; }
  .deck-pill { font-size: 0.72rem; padding: 7px 12px; min-height: 32px; flex-shrink: 0; white-space: nowrap; display: inline-flex; align-items: center; }

  .inner-hero { padding-top: calc(var(--nav-h) + 28px + env(safe-area-inset-top, 0px)); padding-bottom: 44px; }
  .pillars-grid,
  .vado-showcase-grid,
  .portrait-gallery-grid,
  .process-grid,
  .region-grid,
  .service-catalog-grid,
  .spec-grid,
  .form-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .footer-svc-cols { grid-template-columns: 1fr 1fr; }
  .site-footer { padding-bottom: 92px; }
  .footer-bottom { padding-right: 0; }
  .footer-col ul { gap: 4px; }
  .footer-col a, .footer-legal-links a { min-height: 28px; display: inline-flex; align-items: center; }
  .expand-frame { transform: none !important; border-radius: var(--radius-md); }
  .expand-caption { position: static; margin-top: 12px; }
  .quote-info, .quote-form { padding: 22px; }
  .quick-dock { right: 12px; bottom: 12px; flex-direction: row; }
  .dock-btn { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
  .expand-frame { transform: none !important; }
}


/* ==========================================================================
   RECENT FIELDWORK SHOWCASE (VIDEO REEL + 5-PHOTO ARCHITECTURAL BENTO)
   ========================================================================== */
.recent-media-stage {
  display: grid;
  grid-template-columns: minmax(260px, 330px) 1fr;
  gap: 20px;
  margin: 24px 0 36px;
  align-items: stretch;
}
.recent-video-card {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #111315;
  border: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 38px rgba(17, 19, 21, 0.08);
}
.recent-video-wrap {
  position: relative;
  background: #0c0e10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 9 / 16;
}
.recent-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0c0e10;
}
.recent-video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(17, 19, 21, 0.78);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.recent-video-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.recent-video-card figcaption {
  padding: 14px 16px;
  background: var(--surface-white);
  border-top: 1px solid var(--line-light);
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-muted);
}
.recent-video-card figcaption strong {
  color: var(--ink-dark);
}
.recent-photos-bento {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.recent-photos-wide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.recent-photos-portrait {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  flex: 1;
}
.recent-photo-card {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-white);
  border: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease-arch), box-shadow 0.28s, border-color 0.25s;
}
.recent-photo-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 14px 32px rgba(17, 19, 21, 0.07);
}
.recent-photos-wide .recent-photo-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}
.recent-photos-portrait .recent-photo-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  display: block;
}
.recent-photo-card figcaption {
  padding: 12px 14px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-muted);
}
.recent-photo-card figcaption strong {
  color: var(--ink-dark);
}
.recent-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 1080px) {
  .recent-media-stage {
    grid-template-columns: 1fr;
  }
  .recent-video-card {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .recent-video-wrap {
    max-height: 70vh;
  }
  .recent-photos-wide,
  .recent-photos-portrait {
    grid-template-columns: 1fr;
  }
}
