/* ==========================================================================
   Simeone Floors Inc — styles
   Light, typographic, photo-led. One accent (construction orange).
   ========================================================================== */

:root {
  --bg: #FAFAF7;
  --ink: #1A1A1A;
  --concrete: #EDECE7;
  --concrete-2: #E3E1DA;
  --muted: #5C5B56;
  --line: rgba(26, 26, 26, 0.14);
  --accent: #D9531E;        /* large type, rules, dots */
  --accent-ink: #B5410F;    /* accent for small text on light bg (AA) */
  --on-dark: #FAFAF7;
  --on-dark-muted: rgba(250, 250, 247, 0.62);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --section: clamp(88px, 13vw, 200px);
  --radius: 0;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);          /* expo.out */
  --ease-btn: cubic-bezier(0.215, 0.61, 0.355, 1); /* power2.out */
  --nav-h: 72px;
}

@media (max-width: 767px) {
  :root { --nav-h: 64px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px; transition: top .2s;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Site-wide particle background (js/background.js). Fixed, full viewport, painted above section
   backgrounds but below every .container, so it never covers text or photos. */
.site-bg { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1s var(--ease); }
.site-bg.is-ready { opacity: 1; }
.marquee, .full-bleed { z-index: 2; }
/* Readability wash behind subpage headers */
.page-head { position: relative; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 25% 60%, rgba(250,250,247,.75) 0%, rgba(250,250,247,.4) 55%, rgba(250,250,247,0) 100%);
}
.section { padding-block: var(--section); }
.section--concrete { background: var(--concrete); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--tight { padding-block: clamp(64px, 8vw, 120px); }

/* ---------- Type ---------- */
.display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-stretch: 100%;
}
.display { font-size: clamp(3.4rem, 14.2vw, 15.5rem); letter-spacing: -0.03em; line-height: 0.95; }
.h1 { font-size: clamp(3rem, 15.5vw, 11rem); letter-spacing: -0.03em; }
.h2 { font-size: clamp(2.5rem, 7vw, 7rem); }
.h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.05; }
.h-mega { font-size: clamp(3rem, 10vw, 12rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; line-height: 1.2;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--accent); flex: none; }
.section--dark .eyebrow { color: var(--accent); }

.lede { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.45; max-width: 34ch; color: var(--ink); }
.muted { color: var(--muted); }
.section--dark .muted { color: var(--on-dark-muted); }
.accent { color: var(--accent); }
.prose { max-width: 52ch; color: var(--muted); }
.prose p + p { margin-top: 1em; }

/* Animated underline link */
.link {
  position: relative; display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; padding-block: 4px;
}
.link::before, .link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
}
.link::before { opacity: .22; }
.link::after { transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.link .arrow { transition: transform .4s var(--ease); }
.link:hover .arrow { transform: translateX(5px); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--bg); --btn-bd: var(--ink);
  --btn-fill: var(--accent); --btn-fill-fg: #fff; --btn-fill-bd: var(--accent);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 1rem; letter-spacing: -0.005em; white-space: nowrap;
  border: 1.5px solid var(--btn-bd);
  overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease-btn), border-color .35s var(--ease-btn), transform .2s var(--ease-btn);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--btn-fill); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-btn);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover, .btn:focus-visible { color: var(--btn-fill-fg); border-color: var(--btn-fill-bd); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { --btn-bg: var(--bg); --btn-fg: var(--ink); --btn-fill: var(--ink); --btn-fill-fg: var(--bg); --btn-fill-bd: var(--ink); }
.btn--light { --btn-bg: var(--bg); --btn-fg: var(--ink); --btn-bd: var(--bg); }
.btn--ghost-light { --btn-bg: var(--ink); --btn-fg: var(--bg); --btn-bd: rgba(250,250,247,.5); --btn-fill: var(--bg); --btn-fill-fg: var(--ink); --btn-fill-bd: var(--bg); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: var(--accent); --btn-fill: var(--bg); --btn-fill-fg: var(--ink); --btn-fill-bd: var(--bg); }

/* Shared edge-fill hover for square icon/arrow controls, chips and index pills */
.icon-btn, .arrow-btn, .chip, .svc-index a, .contact-big__go, .g-badge { position: relative; overflow: hidden; isolation: isolate; }
/* Solid fills so the particle background never shows through outlined controls */
.icon-btn:not(.icon-btn--dark), .arrow-btn, .chip:not([aria-pressed="true"]), .svc-index a, .contact-big__go, .g-badge { background-color: var(--bg); }
.section--concrete .arrow-btn, .section--concrete .g-badge { background-color: var(--concrete); }
.icon-btn::before, .arrow-btn::before, .chip::before, .svc-index a::before, .contact-big__go::before, .g-badge::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-btn);
}
.icon-btn:hover::before, .arrow-btn:hover::before, .chip:hover::before, .svc-index a:hover::before, .g-badge:hover::before,
.contact-big:hover .contact-big__go::before { transform: scaleX(1); transform-origin: left; }
.icon-btn:hover, .arrow-btn:hover, .chip:hover, .svc-index a:hover, .g-badge:hover { color: var(--bg); border-color: var(--ink); }
.btn--lg { min-height: 64px; padding: 0 34px; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) {
  .btn-row .btn { width: 100%; }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  /* Solid (no backdrop blur): blur would re-filter the moving particle canvas every frame */
  background: rgba(250, 250, 247, 0.97);
  border-bottom-color: var(--line);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo img { height: 54px; width: auto; }
.logo--footer img { height: 84px; }
@media (max-width: 767px) { .site-header .logo img { height: 44px; } }
.logo__text { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1; text-transform: uppercase; }
.logo__text span { font-weight: 500; color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav__links a:not(.btn) { position: relative; font-weight: 500; font-size: .98rem; padding-block: 6px; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__links a:not(.btn):hover::after, .nav__links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.active::after { background: var(--accent); }
.nav__links a:not(.btn), .mobile-menu__links a { transition: opacity .2s var(--ease-btn), transform .2s var(--ease-btn); }
.nav__links a:not(.btn):active, .nav__links a.is-pressed { opacity: .55; transform: translateY(1px); }
.nav__links a.is-pressed::after { transform: scaleX(1); transform-origin: left; background: var(--ink); }
.mobile-menu__links a.is-pressed { opacity: .5; }
.nav__links .btn { min-height: 46px; padding: 0 20px; font-size: .95rem; }
.nav__mobile { display: none; align-items: center; gap: 8px; }
.icon-btn {
  width: 46px; height: 46px; display: inline-grid; place-items: center;
  border: 1.5px solid var(--line); background: transparent; transition: background .3s, border-color .3s;
}

.icon-btn svg { width: 19px; height: 19px; }
.icon-btn--dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.icon-btn--dark::before { background: var(--accent); }
.icon-btn--dark:hover { color: #fff; border-color: var(--accent); }
.menu-toggle { position: relative; }
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.75px; background: currentColor;
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 959px) {
  .nav__links { display: none; }
  .nav__mobile { display: flex; }
}

/* Full-screen mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 24px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  visibility: hidden; opacity: 0; transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.menu-open .mobile-menu { visibility: visible; opacity: 1; transition: opacity .4s var(--ease); }
.menu-open .site-header { background: var(--bg); border-bottom-color: transparent; }
.mobile-menu__links a {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02;
  font-size: clamp(2.8rem, 13vw, 5rem); padding-block: 2px;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.mobile-menu__links a small { font-family: var(--font-body); font-size: .8rem; font-weight: 500; letter-spacing: .05em; color: var(--muted); }
.mobile-menu__links a.active { color: var(--accent); }
.menu-open .mobile-menu__links a { opacity: 1; transform: none; }
.menu-open .mobile-menu__links li:nth-child(2) a { transition-delay: .05s; }
.menu-open .mobile-menu__links li:nth-child(3) a { transition-delay: .1s; }
.menu-open .mobile-menu__links li:nth-child(4) a { transition-delay: .15s; }
.menu-open .mobile-menu__links li:nth-child(5) a { transition-delay: .2s; }
.mobile-menu__foot { display: grid; gap: 10px; }
.mobile-menu__foot .btn { width: 100%; }
.mobile-menu__foot p { font-size: .9rem; color: var(--muted); margin-top: 8px; }
body.menu-open { overflow: hidden; }

/* ---------- Reveal motion (driven by GSAP in js/main.js) ---------- */
/* No hidden-by-default states here on purpose: if JS fails or a trigger never fires, content stays visible. */
/* SplitText line masks: give descenders room so "g", "j", "p" never clip */
.sl-mask { padding-bottom: 0.12em; margin-bottom: -0.12em; }
.sl { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Media ---------- */
.media { position: relative; overflow: hidden; background: var(--concrete-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media img { transform-origin: 50% 50%; }
.parallax { position: relative; overflow: hidden; }
.parallax img { position: absolute; left: 0; width: 100%; height: 124%; top: -12%; object-fit: cover; will-change: transform; }

/* Placeholder block (for sections without a suitable photo) */
.placeholder {
  display: grid; place-items: center; text-align: center; padding: 24px;
  background: repeating-linear-gradient(-45deg, var(--concrete), var(--concrete) 12px, var(--concrete-2) 12px, var(--concrete-2) 24px);
  color: var(--muted); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
}

/* ==========================================================================
   HOME
   ========================================================================== */

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 40px); padding-bottom: clamp(32px, 5vw, 64px);
  overflow: hidden;
}
/* Soft wash so the headline always wins over the particle field */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(250,250,247,.95) 0%, rgba(250,250,247,0) 30%);
}
.hero__fade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 48% 30% at 30% 58%, rgba(250,250,247,.62) 0%, rgba(250,250,247,.35) 50%, rgba(250,250,247,0) 100%),
    linear-gradient(to top, rgba(250,250,247,.92) 0%, rgba(250,250,247,.75) 14%, rgba(250,250,247,0) 30%);
}
@media (max-width: 767px) {
  .hero__fade { background:
    radial-gradient(ellipse 90% 22% at 40% 48%, rgba(250,250,247,.55) 0%, rgba(250,250,247,.3) 50%, rgba(250,250,247,0) 100%),
    radial-gradient(ellipse 120% 26% at 30% 62%, rgba(250,250,247,.78) 0%, rgba(250,250,247,0) 100%); }
}
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: auto; }
.hero__meta { display: grid; gap: 4px; text-align: right; font-size: .9rem; color: var(--muted); }
.hero__meta strong { color: var(--ink); font-weight: 600; }
.hero__title { margin-top: clamp(32px, 6vh, 80px); font-size: inherit; line-height: 1; }
.hero__title .display { display: block; margin-left: -0.04em; font-size: clamp(3rem, min(15.2vw, 23vh), 16rem); }
.hero__bottom {
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: end;
  margin-top: clamp(28px, 4vw, 56px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line);
}
.hero__bottom .lede { max-width: 36ch; }
.scroll-cue { display: none; align-items: center; gap: 12px; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { position: relative; width: 1.5px; height: 44px; background: var(--line); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: var(--ink); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }
@media (min-width: 900px) {
  .hero__bottom { grid-template-columns: 1.1fr auto auto; gap: 48px; }
  .scroll-cue { display: inline-flex; }
}
@media (max-width: 599px) {
  .hero__meta { display: none; }
  .hero { min-height: 88svh; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: clamp(28px, 4vw, 56px) clamp(0px, 2vw, 32px) clamp(28px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 16px; }
.stat__num {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: .9;
  font-size: clamp(2.6rem, 7vw, 6.5rem); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stat__num--text { font-size: clamp(2.3rem, 4.4vw, 4.4rem); letter-spacing: -0.03em; white-space: normal; line-height: .92; }
.stat__num sup { font-size: .45em; vertical-align: top; position: relative; top: .15em; margin-left: .04em; color: var(--accent); }
.stat__label { margin-top: 14px; font-size: .95rem; color: var(--muted); max-width: 22ch; }
@media (min-width: 960px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat, .stat:nth-child(odd), .stat:nth-child(even) { padding: 56px 28px 56px 28px; border-right: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
}

/* Marquee */
.marquee {
  background: var(--ink); color: var(--on-dark); overflow: hidden; position: relative; z-index: 2;
  padding-block: clamp(22px, 3.2vw, 44px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__skew { will-change: transform; }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(2.2rem, 6.4vw, 6.4rem); white-space: nowrap; padding-inline: clamp(18px, 2.4vw, 40px);
}
.marquee__dot { width: clamp(10px, 1.1vw, 16px); height: clamp(10px, 1.1vw, 16px); background: var(--accent); flex: none; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* Differentiator */
.diff__head { max-width: 15ch; }
.diff__grid { display: grid; gap: clamp(40px, 6vw, 96px); margin-top: clamp(48px, 7vw, 104px); align-items: start; }
.diff__photo { aspect-ratio: 4 / 5; }
.diff__intro { font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.35; letter-spacing: -0.015em; max-width: 26ch; }
.diff__rows { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.diff__row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.diff__row dt { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); padding-top: .25em; }
.diff__row dd { font-size: 1.12rem; font-weight: 500; }
@media (min-width: 900px) {
  .diff__grid { grid-template-columns: 7fr 5fr; }
  .diff__photo { aspect-ratio: 5 / 4; }
  .diff__copy { padding-top: 8px; }
}

/* Section heading row */
.sec-head { display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head__aside { max-width: 38ch; color: var(--muted); }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: 1fr auto; align-items: end; }
}

/* Service cards */
.cards { display: grid; gap: clamp(28px, 2.6vw, 40px) clamp(16px, 2vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 560px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: block; }
.card .media { aspect-ratio: 4 / 5; }
.card__body { padding-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.card__num { font-size: .8rem; font-weight: 600; color: var(--muted); padding-top: .45em; font-variant-numeric: tabular-nums; }
.card__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 1.8vw, 1.6rem); letter-spacing: -0.03em; line-height: 1.08; }
.card__line { grid-column: 2; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.card__title span {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1.5px;
  transition: background-size .55s var(--ease); padding-bottom: 2px;
}
.card:hover .card__title span, .card:focus-visible .card__title span { background-size: 100% 1.5px; }
.card__num { transition: color .3s; }
.card:hover .card__num, .card:focus-visible .card__num { color: var(--accent-ink); }
@media (max-width: 559px) { .card .media { aspect-ratio: 4 / 3; } }

/* Featured work */
.case { display: grid; gap: clamp(24px, 4vw, 72px); align-items: center; }
.case + .case { margin-top: clamp(80px, 11vw, 168px); }
.case__media { aspect-ratio: 4 / 3; }
.case__media--tall { aspect-ratio: 4 / 5; }
.case__label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case__label b { color: var(--accent-ink); font-weight: 700; white-space: nowrap; }
.case__title { margin-top: 18px; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-size: clamp(2rem, 4.2vw, 4rem); max-width: 14ch; }
.case__text { margin-top: 20px; color: var(--muted); max-width: 44ch; }
.case__specs { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.case__specs div { padding: 14px 12px 0 0; }
.case__specs dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.case__specs dd { margin-top: 4px; font-weight: 600; font-size: .98rem; line-height: 1.3; }
@media (min-width: 900px) {
  .case { grid-template-columns: 7fr 5fr; }
  .case--flip { grid-template-columns: 5fr 7fr; }
  .case--flip .case__media { order: 2; }
}
.view-all { margin-top: clamp(64px, 8vw, 120px); display: flex; justify-content: center; }
.view-all .link { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(1.6rem, 3vw, 2.6rem); }

/* Why Simeone */
.why { display: grid; grid-template-columns: 1fr; gap: 0; }
.why__item { padding: 28px 0 32px; border-top: 1.5px solid var(--ink); }
.why__num { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--accent-ink); letter-spacing: -.01em; }
.why__title { margin-top: 28px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 2.3vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.02; }
.why__text { margin-top: 12px; color: var(--muted); max-width: 30ch; }
@media (min-width: 640px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } }
@media (min-width: 1100px) { .why { grid-template-columns: repeat(4, minmax(0, 1fr)); } .why__title { margin-top: 64px; } }

/* Testimonials */
.quotes { position: relative; }
.quotes__viewport { display: grid; }
.quote {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .8s var(--ease), visibility 0s linear .7s;
}
.quote.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .7s var(--ease) .1s, transform .9s var(--ease) .1s; }
.quote blockquote p {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
  font-size: clamp(1.9rem, 4.6vw, 4.4rem); max-width: 22ch; text-wrap: balance;
}
.quote blockquote p::before { content: "\201C"; color: var(--accent); }
.quote blockquote p::after { content: "\201D"; color: var(--accent); }
.quote figcaption { margin-top: 28px; color: var(--muted); }
.quote figcaption strong { color: var(--ink); font-weight: 600; display: block; }
.quotes__controls { margin-top: clamp(36px, 5vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.quotes__count { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.quotes__count span { color: var(--muted); font-weight: 600; }
.quotes__arrows { display: flex; gap: 10px; }
.arrow-btn {
  width: 56px; height: 56px; border: 1.5px solid var(--ink);
  display: grid; place-items: center; transition: color .35s var(--ease-btn), border-color .35s var(--ease-btn), transform .2s var(--ease-btn);
}

.arrow-btn:active { transform: translateY(1px); }
.arrow-btn svg { width: 20px; height: 20px; }

/* Service area */
.area { display: grid; gap: clamp(40px, 6vw, 96px); }
.states { border-top: 1px solid var(--line); }
.states li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: clamp(10px, 1.4vw, 18px); border-bottom: 1px solid var(--line); }
.states .name { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-size: clamp(1.8rem, 4.2vw, 3.6rem); transition: transform .5s var(--ease), color .3s; }
.states li:hover .name { transform: translateX(10px); }
.states .abbr { font-size: .85rem; font-weight: 600; letter-spacing: .12em; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.states .hq { background: var(--accent); color: #fff; padding: 4px 9px; font-size: .7rem; letter-spacing: .12em; }
.area .h2 { font-size: clamp(2.5rem, 4.3vw, 4.6rem); }
@media (min-width: 960px) { .area { grid-template-columns: 5fr 7fr; align-items: start; } .area__copy { position: sticky; top: calc(var(--nav-h) + 40px); } }

/* Final CTA */
.cta-final { padding-block: clamp(110px, 16vw, 240px) clamp(80px, 10vw, 140px); }
.cta-final .h-mega { max-width: 12ch; }
.cta-final__row { margin-top: clamp(40px, 5vw, 72px); display: grid; gap: 28px; }
@media (min-width: 900px) { .cta-final__row { grid-template-columns: 1fr auto; align-items: end; } }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); padding-block: 0 32px; }
.footer__grid { display: grid; gap: 40px; padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid rgba(250,250,247,.14); }
.footer__brand .logo__text span { color: var(--on-dark-muted); }
.footer__brand p { margin-top: 16px; color: var(--on-dark-muted); max-width: 28ch; }
.footer__col h2 { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 14px; }
.footer__col li + li { margin-top: 8px; }
.footer__col a { position: relative; }
.footer__col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.footer__col a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__col address { font-style: normal; }
.footer__base { margin-top: clamp(48px, 6vw, 88px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: var(--on-dark-muted); }
.footer__word {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: .78;
  font-size: 18.5vw; color: rgba(250,250,247,.075); white-space: nowrap; text-transform: uppercase;
  padding-top: clamp(56px, 7vw, 104px); margin-bottom: clamp(32px, 4vw, 56px);
  user-select: none; overflow: hidden; margin-inline: -0.04em;
}
.footer__word span { display: inline-block; letter-spacing: -0.03em; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ==========================================================================
   SUB PAGES
   ========================================================================== */
.page-head { padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 140px)); padding-bottom: clamp(48px, 6vw, 96px); }
.page-head__row { display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .page-head__row { grid-template-columns: 1fr auto; align-items: end; } .page-head__row--stack { grid-template-columns: 1fr; align-items: start; } }

/* Work gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); }
.chip {
  min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line);
  font-weight: 500; font-size: .95rem; transition: background .3s var(--ease), color .3s, border-color .3s;
}

.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip sup { font-size: .7em; margin-left: 3px; opacity: .6; }
.gallery { columns: 1; column-gap: clamp(12px, 1.6vw, 24px); }
@media (min-width: 560px) { .gallery { columns: 2; } }
@media (min-width: 1000px) { .gallery { columns: 3; } }
.gallery__item { break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 24px); }
.gallery__item[hidden] { display: none; }
.gallery__btn { display: block; width: 100%; text-align: left; }
.gallery__btn .media { display: block; } /* it is a <span>: inline boxes ignore overflow:hidden */
.gallery__btn .media img { height: auto; } /* keep the width/height-attribute aspect ratio so lazy images reserve space */
.gallery__cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-size: .9rem; }
.gallery__cap span:last-child { color: var(--muted); }
.gallery__btn .media::after {
  content: "+"; position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--bg); color: var(--ink); font-size: 1.4rem; font-weight: 400;
  opacity: 0; transform: scale(.8); transition: opacity .35s, transform .45s var(--ease);
}
.gallery__btn:hover .media::after, .gallery__btn:focus-visible .media::after { opacity: 1; transform: none; }


/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: #121212; color: var(--on-dark);
  display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease-btn), visibility 0s linear .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease-btn); }
.lightbox__stage img { transform: scale(.94); transition: transform .3s var(--ease-btn), opacity .2s; }
.lightbox.is-open .lightbox__stage img { transform: none; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); gap: 16px; }
.lightbox__count { font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.lightbox__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--gutter) max(18px, env(safe-area-inset-bottom)); }
.lightbox__cap { font-size: .95rem; color: var(--on-dark-muted); }
.lightbox__cap strong { color: var(--on-dark); font-weight: 600; margin-right: 8px; }
.lightbox .arrow-btn, .lightbox .icon-btn { border-color: rgba(250,250,247,.35); color: var(--on-dark); background-color: transparent; }
.lightbox .arrow-btn::before, .lightbox .icon-btn::before { background: var(--on-dark); }
.lightbox .arrow-btn:hover, .lightbox .icon-btn:hover { color: var(--ink); border-color: var(--on-dark); }
body.lightbox-open { overflow: hidden; }

/* Services page */
.svc-index { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-index a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border: 1.5px solid var(--line); font-size: .92rem; font-weight: 500; transition: border-color .3s, background .3s, color .3s; }

.svc { display: grid; gap: clamp(24px, 4vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 120px); border-top: 1px solid var(--line); }
.svc__media { aspect-ratio: 4 / 3; }
.svc__num { font-family: var(--font-display); font-weight: 800; color: var(--accent-ink); font-size: 1rem; }
.svc__title { margin-top: 14px; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: .95; font-size: clamp(2.4rem, 5vw, 5rem); }
.svc__line { margin-top: 18px; font-size: clamp(1.15rem, 1.5vw, 1.35rem); font-weight: 500; line-height: 1.4; max-width: 30ch; }
.svc__text { margin-top: 16px; color: var(--muted); max-width: 46ch; }
.svc__tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.svc__tags li { font-size: .8rem; font-weight: 500; padding: 5px 12px; background: var(--concrete); }
.svc__cta { margin-top: 28px; }
@media (min-width: 900px) {
  .svc { grid-template-columns: 6fr 5fr; }
  .svc:nth-of-type(even) { grid-template-columns: 5fr 6fr; }
  .svc:nth-of-type(even) .svc__media { order: 2; }
}

/* Careers */
.careers-hero { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 1000px) {
  .careers-hero { grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 112px); align-items: end; }
  .careers-hero > :first-child { grid-column: 1 / -1; }
  .careers-hero .page-head__row { grid-template-columns: 1fr; }
  .careers-hero .download { justify-self: end; width: 100%; }
}
.download {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: clamp(20px, 2.4vw, 32px); background: var(--ink); color: var(--on-dark);
  position: relative; overflow: hidden; isolation: isolate; max-width: 640px;
  transition: transform .25s var(--ease);
}
.download::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-btn); }
.download:hover::before { transform: scaleX(1); transform-origin: left; }
.download:active { transform: translateY(1px); }
.download__icon { width: 56px; height: 56px; background: var(--accent); color: #fff; display: grid; place-items: center; transition: background .4s; }
.download:hover .download__icon { background: var(--ink); }
.download__icon svg { width: 22px; height: 22px; }
.download__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.7rem); letter-spacing: -0.03em; line-height: 1.1; }
.download__meta { font-size: .88rem; color: var(--on-dark-muted); margin-top: 4px; }
.download:hover .download__meta { color: rgba(255,255,255,.85); }
.download__arrow { width: 22px; height: 22px; transition: transform .5s var(--ease); }
.download:hover .download__arrow { transform: translateY(4px); }
@media (max-width: 479px) { .download { grid-template-columns: auto 1fr; } .download__arrow { display: none; } }
.steps { display: grid; gap: 0; counter-reset: step; }
.step { padding-block: 28px; border-top: 1.5px solid var(--ink); display: grid; gap: 10px; align-content: start; }
.step__num { font-family: var(--font-display); font-weight: 800; color: var(--accent-ink); }
.step__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.05; }
.step p, .step address { color: var(--muted); font-style: normal; }
.step a.link { color: var(--ink); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; } .step__title { margin-top: 36px; } }
.full-bleed { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 86vh; }
@media (max-width: 767px) { .full-bleed { aspect-ratio: 4 / 3; } }
.perks { display: grid; gap: 0; border-top: 1px solid var(--line); }
.perks li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding-block: 20px; border-bottom: 1px solid var(--line); }
.perks li strong { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.05; }
.perks li span { color: var(--muted); text-align: right; max-width: 28ch; font-size: .95rem; }
@media (max-width: 599px) { .perks li { flex-direction: column; gap: 6px; } .perks li span { text-align: left; } }

/* Contact */
.contact-grid { display: grid; gap: clamp(56px, 7vw, 120px); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 7fr 5fr; align-items: start; } .contact-side { position: sticky; top: calc(var(--nav-h) + 32px); } }
.form { display: grid; gap: 8px 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { position: relative; display: grid; padding-top: 22px; }
.field label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.field label .req { color: var(--accent-ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.2rem; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; padding: 12px 0 14px; min-height: 56px;
  transition: border-color .3s var(--ease); -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field select {
  cursor: pointer; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='1.75'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 20px;
}
.field input::placeholder, .field textarea::placeholder { color: #9b9a94; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); pointer-events: none; }
.field--area::after { bottom: 6px; }
.field:focus-within::after { transform: scaleX(1); }
.field:focus-within label { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; }
.field.has-error::after { transform: scaleX(1); background: #B3261E; }
.field__error { font-size: .85rem; color: #B3261E; margin-top: 6px; min-height: 0; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; }
.form__note { font-size: .9rem; color: var(--muted); max-width: 40ch; }
.form__status { grid-column: 1 / -1; margin-top: 16px; padding: 18px 20px; background: var(--concrete); font-weight: 500; }
.form__status[hidden] { display: none; }
.contact-actions { display: grid; gap: 12px; }
.contact-big {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.contact-big:first-child { border-top: 1.5px solid var(--ink); }
.contact-big__label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-big__value { display: block; margin-top: 6px; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.05; }
.contact-big__go { width: 52px; height: 52px; flex: none; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: color .35s var(--ease-btn), border-color .35s var(--ease-btn); }
.contact-big:hover .contact-big__go { color: var(--bg); }
.contact-big__go::before { background: var(--accent) !important; }
.contact-big:hover .contact-big__go { border-color: var(--accent); }
.contact-big__go svg { width: 20px; height: 20px; }
.contact-big address { font-style: normal; }

/* ==========================================================================
   PREMIUM LAYER
   ========================================================================== */

/* Page-transition curtain — critical positioning lives inline in <head> */
.curtain__inner { display: grid; justify-items: center; gap: 16px; width: min(240px, 62vw); }
.curtain__name { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--on-dark); }
.curtain__bar { position: relative; width: 100%; height: 1px; background: rgba(250,250,247,.16); overflow: hidden; }
.curtain__bar i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
html.curtain-on body, html.is-leaving body { overflow: hidden; }
/* First paint matches where the JS animation starts: arriving pages show the bar at 60%
   (where the outgoing page left it); a first visit fades the wordmark in. */
html.curtain-on:not(.curtain-first) .curtain__bar i { transform: scaleX(.6); }
html.curtain-first .curtain__inner { opacity: 0; }

/* Film grain — nearly invisible, kills the flat-template look */
.grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Testimonials header + Google rating badge */
.quotes__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.g-badge {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px;
  border: 1.5px solid var(--ink); font-weight: 600; transition: color .35s var(--ease-btn), border-color .35s var(--ease-btn);
}
.g-badge__score { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1; }
.g-badge__stars { color: var(--accent); letter-spacing: .08em; font-size: .95rem; }
.g-badge__label { font-size: .92rem; }
.g-badge__go { display: grid; place-items: center; }
.g-badge__go svg { width: 16px; height: 16px; }

/* Contact map — grayscale until hover */
.map { position: relative; margin-top: 32px; aspect-ratio: 4 / 3; background: var(--concrete); overflow: hidden; border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease); }
.map:hover iframe, .map:focus-within iframe, .contact-side:hover .map iframe { filter: grayscale(0) contrast(1); }
