/* ============================================================
   AS Homes & Construction — marketing site
   Layered on top of styles.css (brand tokens + base reset).
   Modern, motion-rich. Ink + one red accent.
   ============================================================ */

:root {
  --site-max: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 76px;
}

html { scroll-behavior: smooth; }
body { background: var(--neutral-0); overflow-x: clip; }
img { display: block; max-width: 100%; }
.container { max-width: var(--site-max); margin-inline: auto; padding-inline: var(--pad); }
section { position: relative; }

/* prefers-reduced-motion: kill all the movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- TOUCH / POINTER (viewport-independent) ---------- */
/* No hover: reveal any hover-only overlays and make them tap-usable. */
@media (hover: none) {
  .folio-item .cap { opacity: 1; transform: none; }
  .ig-item .cap { opacity: 1; transform: none; }
  .service-card:hover .ph img { transform: none; }
  .marquee:hover .marquee-track { animation-play-state: running; }
}
/* Coarse pointer: trim heavy, always-on motion for performance/battery. */
@media (pointer: coarse) {
  .float, .float.slow, .float.spin { animation: none; }
  .shape.blob { filter: blur(30px); }
  .scroll-hint .mouse::after { animation: none; }
  /* comfortable tap targets */
  .site-nav a { padding: 11px 14px; }
  .btn-sm { height: 44px; }
  .chip { padding: 11px 16px; }
  .filter-btn { padding: 11px 18px; }
  .footer-social a { width: 44px; height: 44px; }
  .nav-toggle { padding: 12px; }
}

/* ---------- scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--brand); z-index: 200; transition: width .1s linear;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  display: flex; align-items: center;
  transition: background var(--ease) .3s, box-shadow var(--ease) .3s, height var(--ease) .3s;
}
.site-header .container { display: flex; align-items: center; gap: 24px; width: 100%; }
/* Logo: both variants stacked in a fixed-size box and cross-faded so the mark
   is ALWAYS visible — white over the hero, black once the bar turns white. */
.site-header .logo { position: relative; display: inline-flex; align-items: center; width: 118px; height: 30px; flex-shrink: 0; }
.site-header .logo img { position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 26px; width: auto; transition: opacity .25s var(--ease); }
.site-header .logo .on-dark  { opacity: 1; }
.site-header .logo .on-light { opacity: 0; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 8px 14px; border-radius: var(--radius-md); font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.82); text-decoration: none; transition: color .15s, background .15s;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.1); text-decoration: none; }
.header-actions { display: flex; gap: 10px; align-items: center; }

/* scrolled state — solid white header */
.site-header.scrolled {
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-subtle), var(--shadow-sm); height: 64px;
}
.site-header.scrolled .logo .on-dark { opacity: 0; }
.site-header.scrolled .logo .on-light { opacity: 1; }
.site-header.scrolled .site-nav a { color: var(--text-body); }
.site-header.scrolled .site-nav a:hover { color: var(--text-strong); background: var(--neutral-100); }
.site-header.scrolled .btn-ghost-light { color: var(--text-strong); border-color: var(--border-default); }
.site-header.scrolled .btn-ghost-light:hover { background: var(--neutral-100); }

/* mobile nav toggle */
.nav-toggle { display: none; margin-left: auto; background: none; border: none; cursor: pointer; padding: 8px; color: #fff; }
.site-header.scrolled .nav-toggle { color: var(--text-strong); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px;
  border-radius: var(--radius-md); font-family: var(--font-sans); font-size: 15px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent; white-space: nowrap;
  transition: transform .12s var(--ease), background .15s, box-shadow .15s, color .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(232,24,31,0.28); }
.btn-primary:hover { background: var(--brand-hover); box-shadow: 0 10px 26px rgba(232,24,31,0.34); }
.btn-dark { background: var(--neutral-950); color: #fff; }
.btn-dark:hover { background: var(--neutral-800); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn-light { background: #fff; color: var(--neutral-950); border-color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.btn-light:hover { background: var(--neutral-100); border-color: var(--neutral-100); }
.btn-light svg { color: var(--brand); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); }
.section-title { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -0.025em; }
.section-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-muted); line-height: 1.6; max-width: 56ch; margin-top: 18px; }
.pad-y { padding-block: clamp(72px, 11vw, 140px); }

/* ============================================================
   REVEAL-ON-SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-left  { opacity: 0; transform: translateX(-44px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(44px);  transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.92); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-scale.in { opacity: 1; transform: none; }
/* stagger children */
[data-stagger] > * { opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger].in > *:nth-child(1){ transition-delay: .00s }
[data-stagger].in > *:nth-child(2){ transition-delay: .08s }
[data-stagger].in > *:nth-child(3){ transition-delay: .16s }
[data-stagger].in > *:nth-child(4){ transition-delay: .24s }
[data-stagger].in > *:nth-child(5){ transition-delay: .32s }
[data-stagger].in > *:nth-child(6){ transition-delay: .40s }
[data-stagger].in > *:nth-child(7){ transition-delay: .48s }
[data-stagger].in > *:nth-child(8){ transition-delay: .56s }

/* ============================================================
   FLOATING SHAPES (parallax + drift)
   ============================================================ */
.shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.shape { position: absolute; will-change: transform; }
.shape.ring { border: 2px solid currentColor; border-radius: 50%; opacity: .5; }
.shape.dot  { background: currentColor; border-radius: 50%; opacity: .5; }
.shape.sq   { border: 2px solid currentColor; opacity: .5; border-radius: 8px; }
.shape.plus { color: var(--brand); opacity: .6; }
.shape.blob { filter: blur(46px); border-radius: 50%; opacity: .5; }
@keyframes drift { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-26px) rotate(8deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.float { animation: drift 9s var(--ease) infinite; }
.float.slow { animation-duration: 14s; }
.float.spin { animation: spin 26s linear infinite; }

/* ============================================================
   HERO
   ============================================================ */
.hero { min-height: 100svh; display: flex; align-items: center; color: #fff; background: var(--neutral-950); overflow: hidden; }
.hero .bg { position: absolute; inset: 0; z-index: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transform: scale(1.08); }
.hero .bg::after {
  content: ""; position: absolute; inset: 0;
  /* Lighter, brighter hero — enough shading top & bottom to keep white text legible. */
  background: linear-gradient(180deg, rgba(14,15,17,0.5) 0%, rgba(14,15,17,0.18) 42%, rgba(14,15,17,0.62) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: var(--header-h); width: 100%; }
.hero h1 { font-size: clamp(44px, 8vw, 104px); line-height: 0.96; letter-spacing: -0.035em; color: #fff; max-width: 16ch; }
.hero h1 .accent { color: var(--brand); }
.hero .sub { font-size: clamp(17px, 1.9vw, 21px); color: rgba(255,255,255,0.78); max-width: 50ch; margin-top: 24px; line-height: 1.55; }
.hero .cta-row { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 26px; margin-top: 52px; flex-wrap: wrap; }
.hero-badges span { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: rgba(255,255,255,0.78); font-weight: 600; }
.hero-badges svg { width: 18px; height: 18px; color: var(--brand); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,0.6); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.scroll-hint .mouse { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,0.4); border-radius: 12px; position: relative; }
.scroll-hint .mouse::after { content:""; position:absolute; top:6px; left:50%; transform:translateX(-50%); width:3px; height:7px; border-radius:2px; background:rgba(255,255,255,0.7); animation: wheel 1.6s infinite; }
@keyframes wheel { 0%{opacity:1; top:6px} 70%{opacity:0; top:16px} 100%{opacity:0} }

/* ============================================================
   MARQUEE (accreditation / areas strip)
   ============================================================ */
.marquee { overflow: hidden; border-block: 1px solid var(--border-subtle); background: var(--neutral-0); padding-block: 22px; }
.marquee.dark { background: var(--neutral-950); border-color: rgba(255,255,255,0.08); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2.4vw, 30px); letter-spacing: -0.01em; color: var(--text-strong); white-space: nowrap; }
.marquee.dark .marquee-item { color: rgba(255,255,255,0.85); }
.marquee-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-copy p { color: var(--text-body); font-size: 16.5px; line-height: 1.7; margin-top: 18px; }
.about-media { position: relative; }
.about-media .img-main { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.about-media .img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-media .img-float {
  position: absolute; bottom: -34px; left: -34px; width: 46%; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-xl); border: 5px solid #fff; aspect-ratio: 1/1;
}
.about-media .img-float img { width: 100%; height: 100%; object-fit: cover; }
.about-media .badge-card {
  position: absolute; top: -28px; right: -22px; background: var(--brand); color: #fff;
  border-radius: var(--radius-lg); padding: 16px 20px; box-shadow: var(--shadow-lg); text-align: center;
}
.about-media .badge-card .n { font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1; }
.about-media .badge-card .l { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .9; margin-top: 4px; }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--neutral-950); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat .n { font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 6vw, 68px); line-height: 1; letter-spacing: -0.03em; }
.stat .n .unit { color: var(--brand); }
.stat .l { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 10px; font-weight: 500; }
.stat { padding-left: 22px; border-left: 2px solid rgba(255,255,255,0.12); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative; background: var(--neutral-0); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card .ph { aspect-ratio: 16/11; overflow: hidden; position: relative; }
.service-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .ph img { transform: scale(1.07); }
.service-card .ph .num { position: absolute; top: 14px; left: 14px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: #fff; background: rgba(14,15,17,0.6); padding: 4px 9px; border-radius: 6px; backdrop-filter: blur(4px); }
.service-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { font-size: 21px; letter-spacing: -0.01em; }
.service-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; margin-top: 10px; flex: 1; }
.service-card .more { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--brand); font-weight: 700; font-size: 14px; }
.service-card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.service-card:hover .more svg { transform: translateX(4px); }

/* ============================================================
   PROCESS / TIMELINE
   ============================================================ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; }
.step { position: relative; padding-top: 30px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--border-subtle); }
.step .bar { position: absolute; top: 0; left: 0; height: 2px; width: 0; background: var(--brand); transition: width 1s var(--ease); }
.step.in .bar { width: 100%; }
.step .k { font-family: var(--font-mono); color: var(--brand); font-weight: 600; font-size: 14px; }
.step h4 { font-size: 19px; margin-top: 12px; }
.step p { color: var(--text-muted); font-size: 14px; line-height: 1.55; margin-top: 8px; }

/* ============================================================
   PORTFOLIO GRID
   ============================================================ */
.folio-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; grid-auto-flow: dense; }
.folio-item {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; grid-column: span 4; aspect-ratio: 4/3;
  cursor: pointer; box-shadow: var(--shadow-sm);
}
.folio-item.tall { grid-row: span 2; aspect-ratio: 4/6; }
.folio-item.wide { grid-column: span 6; }
.folio-item.big { grid-column: span 6; grid-row: span 2; aspect-ratio: auto; }
.folio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.folio-item:hover img { transform: scale(1.08); }
.folio-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; color: #fff;
  background: linear-gradient(0deg, rgba(14,15,17,0.85), transparent);
  transform: translateY(8px); opacity: 0; transition: opacity .3s, transform .3s;
}
.folio-item:hover .cap { opacity: 1; transform: none; }
.folio-item .cap .t { font-weight: 700; font-size: 15px; }
.folio-item .cap .loc { font-size: 12.5px; color: rgba(255,255,255,0.75); display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; }
.folio-item .cap .loc svg { width: 13px; height: 13px; }
@media (max-width: 860px) {
  .folio-grid { grid-template-columns: repeat(2, 1fr); }
  .folio-item, .folio-item.wide, .folio-item.big { grid-column: span 1; grid-row: span 1; aspect-ratio: 4/3; }
}

/* ============================================================
   PORTAL FEATURE BAND
   ============================================================ */
.portal-band { background: var(--neutral-950); color: #fff; overflow: hidden; }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,6vw,72px); align-items: center; }
.portal-grid h2 { color: #fff; }
.portal-grid .section-lead { color: rgba(255,255,255,0.7); }
.portal-features { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.portal-features li { display: flex; gap: 13px; align-items: flex-start; list-style: none; }
.portal-features .ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(232,24,31,0.16); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.portal-features .ic svg { width: 19px; height: 19px; color: var(--brand); }
.portal-features .tt { font-weight: 700; font-size: 15px; }
.portal-features .dd { font-size: 13.5px; color: rgba(255,255,255,0.62); margin-top: 2px; }
.portal-mock { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); border: 1px solid rgba(255,255,255,0.1); }
.portal-mock img { width: 100%; }
.device-row { display: flex; gap: 16px; }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.quote-wrap { max-width: 900px; margin-inline: auto; text-align: center; position: relative; }
.quote-wrap .mark { font-family: var(--font-display); font-size: 120px; line-height: .6; color: var(--brand); opacity: .2; }
.quote-wrap blockquote { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3.2vw, 36px); line-height: 1.35; letter-spacing: -0.02em; color: var(--text-strong); }
.quote-wrap .who { margin-top: 26px; font-weight: 700; }
.quote-wrap .stars { color: var(--brand); display: inline-flex; gap: 3px; margin-bottom: 8px; }
.quote-wrap .stars svg { width: 18px; height: 18px; fill: currentColor; }

/* ============================================================
   AREAS CHIPS
   ============================================================ */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chip { padding: 9px 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); font-weight: 600; font-size: 14px; color: var(--text-body); transition: all .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* ============================================================
   CTA / QUOTE
   ============================================================ */
.cta { background: var(--brand); color: #fff; overflow: hidden; }
.cta h2 { color: #fff; font-size: clamp(32px, 5vw, 60px); letter-spacing: -0.03em; line-height: 1.02; }
.cta p { color: rgba(255,255,255,0.85); font-size: 18px; margin-top: 16px; max-width: 46ch; }
.cta .btn-dark { box-shadow: 0 10px 30px rgba(0,0,0,0.25); }

/* contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.contact-card { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-lg); padding: 24px; }
.contact-card .ic { width: 44px; height: 44px; border-radius: 11px; background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; }
.contact-card .ic svg { width: 20px; height: 20px; color: #fff; }
.contact-card .l { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .8; margin-top: 16px; }
.contact-card .v { font-size: 18px; font-weight: 700; margin-top: 4px; }
.contact-card a { color: #fff; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center;
  background: rgba(14,15,17,0.92); padding: 5vh 5vw; backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }
.lightbox .lb-cap { position: absolute; bottom: 4vh; left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; font-size: 15px; }
.lightbox .lb-close {
  position: absolute; top: 4vh; right: 5vw; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-close:hover { background: var(--brand); }
.lightbox .lb-close svg { width: 22px; height: 22px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--neutral-950); color: rgba(255,255,255,0.7); padding-block: 64px 28px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h5 { color: #fff; font-family: var(--font-sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-brand img { height: 28px; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--brand); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12.5px; color: rgba(255,255,255,0.5); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* tablet + below (<=1023, contract: desktop starts at 1024) */
@media (max-width: 1023px) {
  .stats-grid, .process-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
}
@media (max-width: 820px) {
  .site-nav, .header-actions .desktop-only { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--neutral-950); padding: 12px var(--pad) 20px; gap: 4px; box-shadow: var(--shadow-lg);
  }
  .site-nav.open a { color: #fff; padding: 12px 14px; }
  .about-grid, .portal-grid { grid-template-columns: 1fr; }
  .about-media { margin-top: 30px; }
  .about-media .img-float { left: 0; }
  .services-grid, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  .footer-top { gap: 32px; }
}
/* phone (<=767, per breakpoint contract) */
@media (max-width: 767px) {
  /* The "Scroll" hint overlaps the hero buttons/badges on small screens — hide it. */
  .scroll-hint { display: none; }
  .stats-grid, .process-grid { grid-template-columns: 1fr; }
  .process-grid { margin-top: 40px; }
  .hero-badges { gap: 14px; margin-top: 36px; }
  .hero .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  /* keep decorative about overlays inside the viewport */
  .about-media .img-float { width: 40%; bottom: -20px; }
  .about-media .badge-card { top: -18px; right: 0; padding: 12px 16px; }
  .about-media .badge-card .n { font-size: 24px; }
  .stat { padding-left: 18px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ============================================================
   INSTAGRAM STRIP
   ------------------------------------------------------------
   Deliberately NOT .folio-grid. That grid is a 12-column dense
   masonry with big/tall/wide modifiers, built to give curated
   hero shots different weights. An IG feed has no hierarchy —
   every post is equal — so this is a uniform, square, auto-fit
   grid instead. Hover language matches .folio-item (caption
   rises + image scales) plus the .service-card lift.
   ============================================================ */
.ig-section[hidden] { display: none; }   /* belt and braces: [hidden] must win even though .pad-y sets no display */

/* 220px floor, not 180px: at the 1104px container 180px auto-fits to FIVE columns,
   which leaves the 8 tiles as a ragged 5 + 3. 220px lands 4 across => a clean 4x2. */
.ig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ig-item {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background: var(--neutral-100);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.ig-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ig-item:hover img { transform: scale(1.08); }
.ig-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px; color: #fff;
  background: linear-gradient(0deg, rgba(14,15,17,0.85), transparent);
  transform: translateY(8px); opacity: 0; transition: opacity .3s, transform .3s;
}
.ig-item:hover .cap { opacity: 1; transform: none; }
.ig-item .cap .t {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13px; font-weight: 600; line-height: 1.35;
}
/* the little IG glyph, top-right — mirrors .service-card .ph .num */
.ig-item .mark {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: rgba(14,15,17,0.55); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s;
}
.ig-item:hover .mark { opacity: 1; }
.ig-item .mark svg { width: 14px; height: 14px; }
@media (hover: none) { .ig-item .mark { opacity: 1; } }
@media (max-width: 520px) {
  .ig-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
