/* ==========================================================================
   Responsive table scroll wrapper — used whenever a data table (venue
   halls, admin lists) can't fit narrow viewports without losing legibility.
   ========================================================================== */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-standard),
              background-color var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard),
              color var(--duration-base) var(--ease-standard);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-500);
  color: var(--paper-0);
  /* Shared minimum size so short labels ("Start a Project") don't read as a
     visibly smaller button next to longer ones ("Get a Custom Proposal →")
     — every primary CTA now occupies at least the same footprint. */
  min-width: 260px;
  justify-content: center;
}
.btn-primary:hover { background: var(--accent-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: var(--surface-raised);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent-500); color: var(--accent-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-on-dark {
  background: transparent;
  color: var(--paper-0);
  border-color: var(--ink-700);
}
.btn-on-dark:hover { border-color: var(--paper-0); background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); min-height: 44px; box-sizing: border-box; }

/* Standalone CTA wrapper — every lone button sitting between a section's
   content and the next section (View Full Portfolio, View All Services,
   See Project Management, etc.) uses this one wrapper instead of ad-hoc
   margin/text-align combinations, so spacing and centering stay identical. */
.section-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  margin: 40px auto;
  width: 100%;
}

/* ==========================================================================
   Dimension-line divider — the site's signature motif: a horizontal rule
   with tick marks at each end, like a measurement line on a technical
   drawing. Used between major sections instead of a plain hairline.
   ========================================================================== */

.dim-rule {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--border-strong);
}
.dim-rule::before,
.dim-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
  position: relative;
}
.dim-rule::before { border-left: 1px solid var(--border-strong); }
.dim-rule::after { border-right: 1px solid var(--border-strong); }
.dim-rule-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ==========================================================================
   Site header — a compact 3-row stack (utility bar / ticker / main nav),
   all dark and translucent-blurred, sitting above the page the same way
   across every template (not just the homepage hero).
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ---- Row 1: utility bar (contact quick-links) ---- */
.utility-bar {
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(10px);
  color: var(--text-inverse-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
}
.utility-bar-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.utility-bar a { color: var(--text-inverse-muted); text-decoration: none; }
.utility-bar a:hover { color: var(--paper-0); }
.utility-bar .notice { color: var(--text-inverse-muted); border-color: rgba(255,255,255,0.24); background: transparent; padding: 0; border: none; font: inherit; text-transform: inherit; letter-spacing: inherit; }
@media (min-width: 768px) {
  .utility-bar { display: block; }
}

/* ---- Row 2: ticker (rotating, real service names — not an "offer") ---- */
.ticker-bar {
  background: var(--accent-600);
  overflow: hidden;
  white-space: nowrap;
  height: 36px;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  animation: ticker-scroll 32s linear infinite;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--paper-0);
}
.ticker-track span { display: inline-flex; align-items: center; gap: var(--space-8); }
.ticker-track .sep { color: rgba(255, 255, 255, 0.5); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---- Row 3: main nav ---- */
.main-nav-row {
  background: rgba(24, 24, 24, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-md);
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
  color: var(--paper-0);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.brand-mark {
  display: block;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.main-nav {
  display: none;
}
.main-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: var(--space-5);
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-normal);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  padding-block: var(--space-2);
  border-bottom: 2px solid transparent;
  transition: border-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--paper-0);
  border-bottom-color: var(--accent-500);
}

.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  color: var(--paper-0);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 20px; height: 20px; }

/*
 * 960px looked like the natural "tablet -> desktop" cutoff, but 7 nav
 * items + the CTA button genuinely don't fit in that width (measured:
 * ~977px needed vs ~945px available at 960px viewport) — it silently
 * pushed the CTA button off the right edge. 1180px gives real headroom;
 * the mobile drawer covers the 960-1179px range instead, which is a
 * common, deliberate choice on content-dense nav bars.
 */
@media (min-width: 1180px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--surface-page);
  z-index: 200;
  padding: var(--space-5);
  overflow-y: auto;
  display: none;
}
.mobile-nav.is-open { display: block; }
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}
.mobile-nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; }
.mobile-nav li { border-bottom: 1px solid var(--border-subtle); }
.mobile-nav a {
  display: block;
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-block: var(--space-5);
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: var(--space-2);
  color: var(--border-strong);
}
.breadcrumbs a { text-decoration: none; color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--accent-600); }
.breadcrumbs li:last-child { color: var(--text-primary); }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard);
}
.card:hover { border-color: var(--accent-500); box-shadow: var(--shadow-md); }

.card-link { text-decoration: none; display: block; color: inherit; }
.card-link:hover .card { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card-link:focus-visible .card { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.card-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  display: block;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-100);
  color: var(--accent-600);
}
.card-icon svg { width: 22px; height: 22px; }

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--accent-600);
  transition: gap var(--duration-fast) var(--ease-standard);
}
.card-link:hover .card-cta { gap: var(--space-2); }

.card-index {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--accent-500);
}

/*
 * minmax(0, 1fr) rather than a bare 1fr on every grid below: grid items
 * default to min-width: auto, which sizes them to fit their widest child's
 * intrinsic content (a table, a long unbroken string) — that can blow the
 * item past its track and silently force page-wide horizontal scroll even
 * though nothing visually looks wrong. minmax(0, ...) makes the track win.
 */
.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==========================================================================
   Chips / tags (used for industry lists, categories)
   ========================================================================== */

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* touch target minimum — visual padding alone rendered ~37px */
  box-sizing: border-box;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: none;
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-standard),
              background-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
}
.chip:hover { border-color: var(--accent-500); background: var(--accent-100); }
.chip.is-active { background: var(--ink-900); border-color: var(--ink-900); color: var(--paper-0); }
.chip.is-active:hover { background: var(--ink-800); border-color: var(--ink-800); }

.compare-table th,
.compare-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  vertical-align: top;
}
.compare-table thead th {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-strong);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 600; white-space: nowrap; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
  padding-inline: var(--space-5);
  transition: border-color var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard);
}
.faq-item:hover { border-color: var(--accent-500); box-shadow: var(--shadow-md); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: none;
  border: none;
  text-align: left;
  padding: var(--space-5) 0;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: var(--leading-snug);
}
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--text-primary);
  transition: transform var(--duration-base) var(--ease-standard);
}
.faq-icon::before { width: 100%; height: 2px; top: 9px; left: 0; }
.faq-icon::after { width: 2px; height: 100%; top: 0; left: 9px; }
.faq-question[aria-expanded="true"] .faq-icon::before { background: var(--accent-500); }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); background: var(--accent-500); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--duration-slow) var(--ease-standard);
}
.faq-answer > div { padding-bottom: var(--space-5); color: var(--text-secondary); line-height: var(--leading-normal); }

/* ==========================================================================
   Process steps (legitimately sequential — numbered)
   ========================================================================== */

.process-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding-block: var(--space-6);
  border-top: 1px solid var(--border-subtle);
}
@media (min-width: 640px) {
  .process-step {
    /* minmax caps the "number" column so long timeline text (e.g. exhibition
       planning timelines) can't blow out the grid and crush the title column */
    grid-template-columns: minmax(auto, 45%) 1fr;
    gap: var(--space-5);
  }
}
.process-step:last-child { border-bottom: 1px solid var(--border-subtle); }
.process-step-number {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--accent-500);
}

/* ==========================================================================
   CTA band (dark)
   ========================================================================== */

.cta-band {
  background: var(--surface-dark);
  color: var(--text-inverse);
  padding-block: var(--space-9);
}
.cta-band h2 { color: var(--text-inverse); }
.cta-band p.lead { color: var(--text-inverse-muted); }

/* ==========================================================================
   Section band (subtle alternating background)
   ========================================================================== */

.section-band { background: var(--surface-band); }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.form-field label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-secondary);
}
.form-field input,
.form-field textarea,
.form-field select {
  padding: var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  font-size: var(--text-base);
  transition: border-color var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px var(--accent-100);
}
.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: var(--text-sm); color: var(--text-secondary); }
.form-error { color: var(--accent-600); font-size: var(--text-sm); }
.form-success {
  border: 1px solid var(--border-strong);
  background: var(--surface-band);
  padding: var(--space-5);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--surface-dark);
  color: var(--text-inverse-muted);
  padding-block: var(--space-9) var(--space-6);
}
.footer-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 1fr)); }
}
.footer-col h3 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-normal);
  color: var(--text-inverse);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { text-decoration: none; color: var(--text-inverse-muted); font-size: var(--text-sm); transition: color var(--duration-base) var(--ease-standard); }
.footer-col a:hover { color: var(--paper-0); }
.footer-col ul li span { color: var(--text-inverse-muted); font-size: var(--text-sm); }

.footer-memberships {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--ink-700);
}
.footer-membership-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-inverse-muted);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
}
.social-links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink-700);
  color: var(--text-inverse-muted);
  transition: color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard), background-color var(--duration-base) var(--ease-standard);
}
.social-link:hover {
  color: var(--paper-0);
  border-color: var(--accent-500);
  background-color: var(--accent-500);
}
.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--ink-700);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Badges (placeholder / verify notices — dev-facing, not customer-facing chrome)
   ========================================================================== */

.notice {
  border: 1px dashed var(--border-strong);
  background: var(--surface-band);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.notice.on-dark {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-inverse-muted);
}

/* ==========================================================================
   Subtle geometric background pattern — a restrained blueprint grid,
   used behind hero/section bands instead of photography or a flat fill.
   ========================================================================== */

.bg-grid { position: relative; }
.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}
.bg-grid > .container { position: relative; z-index: 1; }
/* blog-post.php merges .section + .container-narrow onto one element (no
   separate container child) — lift its direct children individually instead */
.bg-grid.container-narrow > * { position: relative; z-index: 1; }

/* ==========================================================================
   Hero dark surface — the one place the site breaks from the light paper
   base to a dramatic, layered dark ground. Re-themes the --diagram-* tokens
   locally so the existing SVG line-art renders light-on-dark here.
   ========================================================================== */

.hero-dark {
  background: var(--gradient-hero);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
  --diagram-stroke: rgba(255, 255, 255, 0.88);
  --diagram-stroke-soft: rgba(255, 255, 255, 0.28);
  --diagram-fill-fascia: rgba(255, 138, 76, 0.16);
  --diagram-text: rgba(255, 255, 255, 0.68);
  --diagram-accent: var(--accent-glow);
  --diagram-scrim: rgba(255, 255, 255, 0.05);
}
.hero-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 120% at 20% 0%, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 120% at 20% 0%, black 30%, transparent 85%);
  pointer-events: none;
}
.hero-dark .container { position: relative; z-index: 2; }
.hero-dark .eyebrow { color: var(--accent-glow); }
.hero-dark p.lead { color: var(--text-inverse-muted); }
.hero-dark .text-secondary { color: var(--text-inverse-muted); }

/* ---- Full-bleed video hero (real footage supplied by the client) ----
 * Sized against the actual remaining viewport below the sticky header
 * (--header-total-height), not a flat 100vh that ignores the header sitting
 * on top of it — a flat vh value here is what pushed the hero + next section
 * below the fold on real laptop screens. */
.hero-video-section {
  /* min() instead of separate min-height/max-height: when min-height and
     max-height conflict, CSS resolves in favor of min-height, so a plain
     max-height cap here was silently ignored on tall viewports (measured
     934px at 1920x1080 instead of the intended ~760px cap). min() bakes
     the cap into the min-height value itself so there's nothing to conflict. */
  min-height: min(calc(100svh - var(--header-total-height)), 760px);
  height: auto;
  display: flex;
  align-items: center;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Monotonically darkening top-to-bottom (no lighter dip mid-frame) so the
     heading stays readable regardless of what the video is showing there. */
  background: linear-gradient(180deg, rgba(7, 12, 20, 0.45) 0%, rgba(7, 12, 20, 0.68) 65%, rgba(7, 12, 20, 0.78) 100%);
}

/* Large desktop: comfortably within the 620-720px recommended band */
@media (min-width: 1920px) {
  .hero-video-section { min-height: min(calc(100svh - var(--header-total-height)), 720px); }
}

/* Short laptop screens (e.g. 1280x720): cap lower still. Scroll cue is
   hidden via layout.css (loaded after this file, needed to win over the
   min-width:640px "display:flex" rule there — see layout.css). */
@media (max-height: 760px) and (min-width: 1024px) {
  .hero-video-section { min-height: min(calc(100svh - var(--header-total-height)), 580px); }
}

@media (max-width: 639px) {
  .hero-video-section { min-height: auto; height: auto; }
}

/* ==========================================================================
   Glass surfaces — floating callouts over the hero, and the contact widget
   ========================================================================== */

.glass-card {
  background: var(--glass-bg-dark);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  box-shadow: var(--shadow-xl);
  color: var(--text-inverse);
  padding: var(--space-4) var(--space-5);
}
.glass-card .glass-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-inverse-muted);
  display: block;
  margin-bottom: var(--space-1);
}
.glass-card .glass-value {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--paper-0);
}

.hero-visual { position: relative; }

/*
 * Hero diagram "drafting" animation — the technical drawing appears to draw
 * itself on load, like a plotter/CAD trace. stroke-dasharray is set larger
 * than any shape's real perimeter so a single dashoffset animation works
 * uniformly across rects/paths of different sizes.
 */
.diagram-draw {
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: diagram-draw-on var(--duration-draw) var(--ease-standard) forwards;
  animation-delay: var(--draw-delay, 0ms);
}
@keyframes diagram-draw-on {
  to { stroke-dashoffset: 0; }
}
.diagram-fade {
  opacity: 0;
  animation: diagram-fade-in var(--duration-slow) var(--ease-standard) forwards;
  animation-delay: var(--draw-delay, 0ms);
}
@keyframes diagram-fade-in { to { opacity: 1; } }
.diagram-glow { filter: drop-shadow(0 0 10px rgba(255, 138, 76, 0.4)); }
@media (prefers-reduced-motion: reduce) {
  .diagram-draw, .diagram-fade {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}
.hero-floating-callout {
  position: absolute;
  z-index: 2;
  max-width: 200px;
  animation: float-bob 6s ease-in-out infinite;
}
.hero-floating-callout[data-float="2"] { animation-delay: -2s; }
.hero-floating-callout[data-float="3"] { animation-delay: -4s; }
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-floating-callout { animation: none; }
}
/*
 * The diagram lives in a hero-grid 2-column layout that only splits at
 * 960px — below that it renders single-column at near-full container
 * width, which is wider than the desktop half-column the floating
 * callouts' percentage offsets were tuned for, pushing them past the
 * viewport edge. Hiding them for the whole sub-960px range (not just
 * true mobile) avoids that gap rather than just narrowing the symptom.
 */
@media (max-width: 959px) {
  .hero-floating-callout { display: none; }
  /* Hotspot dots reference diagram labels that are themselves hidden on
     mobile (see .diagram-detail); an active tooltip near the canvas edge
     can also overhang the viewport at narrower widths, so hotspots
     go with the detail text they'd otherwise point at. */
  .hotspot { display: none; }
}

/* ==========================================================================
   Interactive hotspots on the hero diagram
   ========================================================================== */

.hotspot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 0;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.hotspot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--accent-glow);
  animation: hotspot-pulse 2.6s ease-out infinite;
  z-index: -1;
}
@media (prefers-reduced-motion: reduce) {
  .hotspot::after { animation: none; }
}
@keyframes hotspot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 138, 76, 0.55); opacity: 1; }
  100% { box-shadow: 0 0 0 16px rgba(255, 138, 76, 0); opacity: 0; }
}
.hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--glass-bg-dark);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
  color: var(--paper-0);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
  pointer-events: none;
}
.hotspot:hover .hotspot-tooltip,
.hotspot:focus-visible .hotspot-tooltip,
.hotspot.is-active .hotspot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Stat counters ("readout" numerals) — real, DB-computed figures only
   ========================================================================== */

.stat-block { text-align: left; }
.stat-counter {
  font-family: var(--font-mono);
  font-size: var(--text-readout);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-primary);
}
.stat-counter.on-dark { color: var(--paper-0); }
.stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-secondary);
  margin-top: var(--space-2);
  display: block;
}
.stat-block.on-dark .stat-label { color: var(--text-inverse-muted); }

.stat-placeholder {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.stat-placeholder.on-dark {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--text-inverse-muted);
}

.credential-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  background: var(--surface-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.credential-chip strong {
  font-size: var(--text-sm);
  color: var(--accent-500);
  margin-right: var(--space-1);
}

/* ==========================================================================
   Achievements — premium stat cards + achievement badges, replacing the
   plain "Experience & Recognition" credential-chip row.
   ========================================================================== */

.stat-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}
@media (min-width: 720px) {
  .stat-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stat-card {
  text-align: center;
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-500);
}
.stat-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--accent-600);
  margin-bottom: var(--space-3);
}
.stat-card-icon svg { width: 100%; height: 100%; }
.stat-card-number {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-readout);
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1;
}
.stat-card-label {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.achievement-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}
.achievement-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  transition: transform var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard);
}
.achievement-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-500);
}
.achievement-badge svg { width: 18px; height: 18px; color: var(--accent-600); flex-shrink: 0; }

/* ==========================================================================
   Global Presence — country cards replacing the plain "Countries Served" row.
   ========================================================================== */

.global-presence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .global-presence-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .global-presence-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.country-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  transition: transform var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard);
}
.country-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-500);
}
.country-flag { font-size: 1.5rem; line-height: 1; }
.country-name { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); }

/* ==========================================================================
   Our Top Clients — dark premium trust wall, replacing "Trusted By".
   Scoped locally so the rest of the site keeps its light-first identity.
   ========================================================================== */

.clients-dark-section {
  background: var(--ink-950);
  color: var(--text-inverse);
}
.clients-dark-section h2 { color: var(--text-inverse); }
.clients-dark-section .eyebrow { color: var(--accent-glow); }
.clients-dark-section .lead { color: var(--text-inverse-muted); }

/* Achievements section — same dark-premium treatment, with a bordered
   "badge" eyebrow (Propshop-reference style) instead of the sitewide
   line-before-label eyebrow. Stat cards / achievement badges need no
   changes — they're already white-on-any-background components. */
.achievements-dark-section {
  background: var(--ink-950);
  color: var(--text-inverse);
}
.achievements-dark-section h2 { color: var(--text-inverse); }
.achievements-dark-section .lead { color: var(--text-inverse-muted); }
.achievements-dark-section .eyebrow {
  color: var(--accent-glow);
  border: 1px solid rgba(232, 105, 90, 0.35);
  background: rgba(232, 105, 90, 0.08);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
}
.achievements-dark-section .eyebrow::before { display: none; }
.text-accent-glow { color: var(--accent-glow); }

.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}
@media (min-width: 640px) {
  .client-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .client-logo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.client-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding: var(--space-5);
  background: var(--paper-0);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard);
}
.client-logo-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-xl);
}
.client-logo-card img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   Interactive process timeline
   ========================================================================== */

.timeline {
  position: relative;
  padding-left: 56px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-subtle);
}
.timeline-item {
  position: relative;
  padding-bottom: var(--space-8);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-node {
  position: absolute;
  left: -56px;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-secondary);
  transition: transform var(--duration-base) var(--ease-spring),
              background-color var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              color var(--duration-base) var(--ease-standard);
}
.timeline-item.is-inview .timeline-node {
  background: var(--accent-500);
  border-color: var(--accent-500);
  color: var(--paper-0);
  transform: scale(1.12);
}
.timeline-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  display: block;
  margin-bottom: var(--space-2);
}

/* ==========================================================================
   Process card grid (homepage "How We Work") — a connected card grid with
   internal divider lines, replacing the old vertical timeline layout.
   ========================================================================== */

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-raised);
}
@media (min-width: 640px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.process-card {
  padding: var(--space-7);
  border-bottom: 1px solid var(--border-subtle);
}
.process-card:last-child { border-bottom: none; }
@media (min-width: 640px) {
  .process-card { border-right: 1px solid var(--border-subtle); }
  .process-card:nth-child(2n) { border-right: none; }
  .process-card:nth-child(n+3) { border-bottom: none; }
}
.process-card-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-100);
  line-height: 1;
  margin-bottom: var(--space-4);
}
.process-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-100);
  color: var(--accent-600);
  margin-bottom: var(--space-4);
}
.process-card-icon svg { width: 22px; height: 22px; }
.process-card-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}
.process-card h3 { font-size: var(--text-lg); }

/* ==========================================================================
   Masonry grid (CSS columns — no JS layout library, stays fast)
   ========================================================================== */

.masonry { column-count: 1; column-gap: var(--space-5); }
@media (min-width: 640px) { .masonry { column-count: 2; } }
@media (min-width: 1024px) { .masonry { column-count: 3; } }
.masonry > * {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: var(--space-5);
  display: block;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-6);
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-figure { max-width: 1100px; max-height: 82vh; width: 100%; margin: 0; }
.lightbox-figure img {
  width: 100%;
  height: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.lightbox-figure figcaption {
  color: var(--text-inverse-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-3);
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--paper-0);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.18); }

/* ==========================================================================
   Floating contact widget (Call / WhatsApp / Email)
   ========================================================================== */

.floating-contact {
  position: fixed;
  right: var(--space-5);
  bottom: max(var(--space-5), env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: 400;
  transition: opacity var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
}
.floating-contact.is-clear-of-footer { opacity: 0; transform: translateY(16px); pointer-events: none; }

.fc-btn {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: box-shadow var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.fc-btn:hover, .fc-btn:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.fc-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: fc-pulse 2.6s ease-out infinite;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  .fc-pulse-ring { animation: none; }
}
@keyframes fc-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.7); opacity: 0; }
}
.fc-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fc-icon svg { width: 24px; height: 24px; }
.fc-label {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
  transition: max-width var(--duration-base) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard), padding-right var(--duration-base) var(--ease-standard);
}
.fc-btn:hover .fc-label, .fc-btn:focus-visible .fc-label {
  max-width: 160px;
  opacity: 1;
  padding-right: var(--space-4);
}
.fc-call, .fc-email { background: var(--accent-500); }
.fc-call:hover, .fc-email:hover { background: var(--accent-600); }
.fc-whatsapp { background: #25D366; }
.fc-whatsapp:hover { background: #1DA851; }

@media (max-width: 639px) {
  .floating-contact { right: var(--space-4); bottom: max(var(--space-4), env(safe-area-inset-bottom)); gap: var(--space-2); }
  .fc-btn, .fc-icon { height: 48px; width: 48px; }
  .fc-icon { width: 48px; height: 48px; }
  .fc-icon svg { width: 20px; height: 20px; }
}

/* ==========================================================================
   About section (homepage) — premium two-column intro: brand narrative on
   the left, a real-photography gallery on the right. Clean white ground with
   the existing .bg-grid pattern for depth, per the "premium PropShop-style
   layout" brief rather than the site's usual dark hero treatment.
   ========================================================================== */

.text-accent { color: var(--accent-500); }

.about-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); }
}

.about-copy p { color: var(--text-secondary); }
.about-copy p + p { margin-top: var(--space-4); }

.about-quote {
  border-left: 3px solid var(--accent-500);
  padding-left: var(--space-5);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--text-primary);
  margin: 0;
}

.location-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.location-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-5);
  min-height: 44px;
  box-sizing: border-box;
  border-radius: var(--radius-full);
  background: var(--surface-band);
  border: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.location-chip-group-accent .location-chip { border-color: var(--accent-500); }

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.about-gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  transition: box-shadow var(--duration-base) var(--ease-standard);
}
.about-gallery-item:hover,
.about-gallery-item:focus-visible { box-shadow: var(--shadow-xl); }
.about-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-standard);
}
.about-gallery-item:hover img,
.about-gallery-item:focus-visible img { transform: scale(1.08); }
.about-gallery-item-large {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
.about-gallery-caption h3 { font-size: var(--text-lg); }

/* ==========================================================================
   Homepage portfolio showcase — a deliberately different register from the
   rest of the site: black/charcoal ground and a red signal color, scoped
   entirely to this section so the site's amber accent stays the identity
   everywhere else. Real project photography only (see index.php).
   ========================================================================== */

.portfolio-showcase {
  background: linear-gradient(180deg, var(--ink-950) 0%, var(--ink-900) 100%);
  color: #F5F5F5;
  /* Aliases to the site's one accent family — previously a separate red,
     unified now that the whole palette is coral/red-based. */
  --pf-red: var(--accent-500);
  --pf-red-dim: var(--accent-600);
}
.portfolio-showcase .eyebrow { color: var(--pf-red); }
.portfolio-showcase h2 { color: #FFFFFF; }
.portfolio-showcase .lead { color: rgba(245, 245, 245, 0.68); }

.portfolio-grid {
  column-count: 1;
  column-gap: var(--space-6);
}
@media (min-width: 640px) { .portfolio-grid { column-count: 2; } }
@media (min-width: 1024px) { .portfolio-grid { column-count: 3; } }
.portfolio-grid > * { break-inside: avoid; margin-bottom: var(--space-6); }

.portfolio-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--ink-900);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}
.portfolio-card:hover,
.portfolio-card:focus-visible {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
.portfolio-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.portfolio-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-standard);
}
.portfolio-card:hover .portfolio-card-media img,
.portfolio-card:focus-visible .portfolio-card-media img {
  transform: scale(1.08);
}
.portfolio-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.88) 100%);
}
.portfolio-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-5);
  z-index: 1;
}
.portfolio-card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--pf-red);
  background: rgba(225, 45, 57, 0.14);
  border: 1px solid rgba(225, 45, 57, 0.4);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}
.portfolio-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: #FFFFFF;
  margin: 0;
}
.portfolio-card-cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: #FFFFFF;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
}
.portfolio-card:hover .portfolio-card-cta,
.portfolio-card:focus-visible .portfolio-card-cta {
  opacity: 1;
  transform: translateY(0);
}
.portfolio-card:hover,
.portfolio-card:focus-visible {
  border-color: var(--pf-red);
}

.portfolio-showcase .btn-portfolio-cta {
  background: var(--pf-red);
  color: #fff;
}
.portfolio-showcase .btn-portfolio-cta:hover { background: var(--pf-red-dim); }
