/* ==========================================================================
   Arco Group — landing page
   Palette comes from the logo teal (#58999E) and the yellow note on the
   Facebook cover. Shapes echo the logo: rounded squares, monoline strokes.
   ========================================================================== */

:root {
  --teal: #58999e;          /* brand */
  --teal-600: #3f7f84;
  --teal-700: #2e6a6f;      /* text-safe teal on paper */
  --teal-900: #123a3d;      /* deep sections */
  --teal-950: #0b2628;
  --ink: #0f1f20;
  --ink-soft: #4a5e5f;
  --paper: #f4f7f6;         /* cool plaster */
  --stone: #e6edeb;
  --white: #ffffff;
  --note: #f4cf4e;          /* sticky note from the brand cover */
  --rule: rgba(15, 31, 32, .12);
  --rule-strong: rgba(15, 31, 32, .22);

  --font-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-mono: "IBM Plex Mono", "IBM Plex Sans Arabic", ui-monospace, monospace;
  --font-note: "Aref Ruqaa", "Alexandria", serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --ease-out: cubic-bezier(.2, .7, .1, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--note); color: var(--ink); }

:focus-visible { outline: 2px solid var(--teal-700); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 148px); }
.mono { font-family: var(--font-mono); font-feature-settings: "zero" 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--flip { transform: scaleX(-1); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .9rem; font-weight: 600; color: var(--teal-700);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 3px;
}
.eyebrow--light { color: #9fd0d3; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--split {
  max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 64px; align-items: end;
}
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.3; color: var(--ink);
}
.section-lead { color: var(--ink-soft); font-size: 1.075rem; max-width: 52ch; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); border-radius: 12px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-out), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 56px; padding-inline: 26px; font-size: 1.05rem; }
.btn--primary { --btn-bg: var(--teal-900); --btn-fg: var(--paper); }
.btn--primary:hover { --btn-bg: var(--teal-700); box-shadow: 0 12px 24px -14px rgba(18, 58, 61, .8); }
.btn--ghost { --btn-bd: var(--rule-strong); }
.btn--ghost:hover { --btn-bg: var(--white); --btn-bd: var(--ink); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--teal-900); }
.btn--light:hover { --btn-bg: var(--white); }
.icon--arrow { transition: transform .3s var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(-4px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, transform .4s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(244, 247, 246, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--rule);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal); }
.brand__mark { width: 42px; height: 42px; fill: currentColor; transition: transform .5s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-6deg); }
.brand__text { display: grid; line-height: 1.25; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.brand__sub { font-size: .76rem; color: var(--ink-soft); }
.brand--light { color: var(--teal); }
.brand--light .brand__name { color: var(--paper); }
.brand--light .brand__sub { color: rgba(244, 247, 246, .6); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; }
.site-nav ul a {
  position: relative; text-decoration: none; font-weight: 500; font-size: .98rem; padding-block: 6px;
}
.site-nav ul a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--teal);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.site-nav ul a:hover::after, .site-nav ul a.is-current::after { transform: scaleX(1); }
.site-nav__cta { min-height: 44px; padding-inline: 18px; font-size: .95rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1.5px solid var(--rule-strong); border-radius: 12px;
  background: transparent; cursor: pointer; place-items: center;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 1.8px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(28px, 4vw, 56px));
  padding-bottom: clamp(72px, 9vw, 120px);
  overflow: hidden;
}
.hero::before {          /* faint drafting grid behind everything */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(46, 106, 111, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 106, 111, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 95%);
}
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: center; }
.hero__copy { grid-column: 1 / span 5; }
.hero__figure { grid-column: 6 / span 7; position: relative; padding-top: 12px; }

.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 4.4vw, 4.1rem); line-height: 1.32; margin-bottom: 24px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: inline-block; }
.hero__title-accent { color: var(--teal-700); }
.hero__lead { font-size: clamp(1.05rem, 1.35vw, 1.17rem); color: var(--ink-soft); max-width: 46ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--ink-soft); font-size: .95rem; }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .icon { color: var(--teal-700); }
.hero__meta a { text-decoration: none; font-family: var(--font-mono); }
.hero__meta a:hover { color: var(--teal-700); }

/* intro choreography: copy lines rise, then the drawing is drafted, then the render wipes in */
.js .hero__eyebrow, .js .hero__lead, .js .hero__actions, .js .hero__meta {
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s var(--ease-out) var(--d, 0s), transform .8s var(--ease-out) var(--d, 0s);
}
.js .hero__title .line > span { transform: translateY(108%); transition: transform 1s var(--ease-out) var(--d, 0s); }
.hero.is-ready .hero__eyebrow, .hero.is-ready .hero__lead,
.hero.is-ready .hero__actions, .hero.is-ready .hero__meta { opacity: 1; transform: none; }
.hero.is-ready .hero__title .line > span { transform: none; }

/* compare: line drawing ⇄ render */
.compare {
  position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius-lg); overflow: hidden;
  background-color: #fbfcfc;
  background-image:
    linear-gradient(to right, rgba(46, 106, 111, .09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 106, 111, .09) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: 0 40px 80px -48px rgba(15, 31, 32, .55);
  touch-action: pan-y;
  isolation: isolate;
}
.compare-frame { position: relative; }
.compare-frame::before {   /* outer ring, like the logo's frame */
  content: ""; position: absolute; inset: -12px; border: 1.5px solid rgba(88, 153, 158, .45);
  border-radius: calc(var(--radius-lg) + 12px); pointer-events: none;
}
.compare { --split: 46%; }
.js .compare:not(.is-split) { --split: 100%; }
.compare__layer { position: absolute; inset: 0; }
.compare__layer img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.compare__line img { mix-blend-mode: multiply; }
.compare__render { clip-path: inset(0 0 0 var(--split)); transition: clip-path 1.2s var(--ease-in-out); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--split); width: 0; z-index: 2; pointer-events: none;
  transition: left 1.2s var(--ease-in-out), opacity .6s var(--ease-out);
}
.compare__handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--white);
  box-shadow: 0 0 0 1px rgba(15, 31, 32, .08);
}
.compare__grip {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 16px; background: var(--white); color: var(--teal-900);
  display: grid; grid-auto-flow: column; place-content: center; gap: 0;
  box-shadow: 0 10px 24px -10px rgba(15, 31, 32, .5);
  transition: transform .3s var(--ease-out);
}
.compare__grip .icon { width: 18px; height: 18px; }
.compare:hover .compare__grip, .compare__range:focus-visible ~ .compare__handle .compare__grip { transform: translate(-50%, -50%) scale(1.08); }
.compare__range {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent;
}
.compare__range:disabled { cursor: default; }
.compare:has(.compare__range:focus-visible) { outline: 2px solid var(--teal-700); outline-offset: 4px; }
.compare__tag {
  position: absolute; top: 16px; z-index: 2; padding: 4px 12px; border-radius: 8px;
  font-size: .85rem; font-weight: 600; pointer-events: none;
}
.compare__tag--line { left: 16px; background: rgba(255, 255, 255, .9); color: var(--teal-900); }
.compare__tag--render { right: 16px; background: rgba(15, 31, 32, .55); color: var(--white); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.compare__tag { transition: opacity .6s var(--ease-out) .5s; }
.js .compare__line { clip-path: inset(0 0 0 100%); transition: clip-path 1.6s var(--ease-in-out) .35s; }
.hero.is-ready .compare__line { clip-path: inset(0 0 0 0); }
.js .compare:not(.is-split) .compare__handle, .js .compare:not(.is-split) .compare__tag { opacity: 0; }
.compare.is-live .compare__render { transition: none; }
.compare.is-live .compare__handle { transition: opacity .6s var(--ease-out); }

.hero__note {
  position: absolute; z-index: 4; inset-inline-start: -26px; bottom: 34px;
  width: clamp(124px, 13vw, 168px); aspect-ratio: 1; padding: 16px;
  display: grid; place-items: center; text-align: center;
  background: var(--note); color: var(--ink);
  font-family: var(--font-note); font-weight: 700; font-size: clamp(1.2rem, 1.7vw, 1.6rem); line-height: 1.5;
  box-shadow: 0 22px 30px -20px rgba(15, 31, 32, .55), inset 0 -10px 18px -12px rgba(120, 90, 0, .25);
  transform: rotate(5deg);
}
.js .hero__note { opacity: 0; transform: translateY(-24px) rotate(14deg) scale(.9); transition: opacity .5s, transform .9s cubic-bezier(.3, 1.4, .5, 1); }
.compare.is-split ~ .hero__note { opacity: 1; transform: rotate(5deg); transition-delay: .7s; }
.hero__caption { margin-top: 26px; font-size: .88rem; color: var(--ink-soft); }

/* ---------- offers ribbon ---------- */
.offers { background: var(--teal-900); color: var(--paper); }
.offers__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .12);
  padding-inline: 0;
}
.offer { display: flex; gap: 18px; align-items: flex-start; padding: 34px var(--gutter); background: var(--teal-900); }
.offer__icon { width: 34px; height: 34px; flex: none; color: var(--teal); margin-top: 4px; }
.offer__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.5; margin-bottom: 4px; }
.offer p { color: rgba(244, 247, 246, .72); font-size: .95rem; line-height: 1.7; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.about__statement {
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem); line-height: 1.75; margin-bottom: 28px; color: var(--ink);
}
.about__statement em { font-style: normal; color: var(--teal-700); }
.about__body { color: var(--ink-soft); max-width: 60ch; }

/* title block, as found in the corner of a drawing sheet */
.titleblock {
  border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--white);
  font-size: .95rem; position: relative; top: 8px;
}
.titleblock__row { display: grid; gap: 2px; padding: 14px 20px; }
.titleblock__row + .titleblock__row { border-top: 1px solid var(--rule-strong); }
.titleblock__row--head { grid-template-columns: auto 1fr; align-items: center; gap: 14px; background: var(--stone); }
.titleblock__row--split { grid-template-columns: 1fr 1fr; padding: 0; }
.titleblock__row--split > div { padding: 14px 20px; }
.titleblock__row--split > div + div { border-inline-start: 1px solid var(--rule-strong); }
.titleblock dt { font-size: .78rem; color: var(--ink-soft); }
.titleblock dd { font-weight: 600; }
.titleblock__logo { width: 40px; height: 40px; fill: var(--teal); }
.titleblock__name { font-family: var(--font-display); font-size: 1.2rem; }
.titleblock__name span { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--ink-soft); margin-inline-start: 8px; }
.titleblock .mono { font-size: 1.35rem; font-weight: 500; }

/* ---------- services ---------- */
.services { background: var(--white); }
.services__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); }
.services__media {
  position: sticky; top: calc(var(--header-h) + 24px); align-self: start;
  height: min(78vh, 660px); border-radius: var(--radius-lg); overflow: hidden;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(46, 106, 111, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 106, 111, .08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.services__frame {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.04);
  transition: opacity .7s var(--ease-out), transform 1.2s var(--ease-out);
}
.services__frame.is-active { opacity: 1; transform: none; }
.services__img { width: 100%; height: 100%; object-fit: cover; }
.services__img--model { object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.services__frame figcaption {
  position: absolute; bottom: 16px; inset-inline-start: 16px; padding: 4px 12px; border-radius: 8px;
  background: rgba(255, 255, 255, .9); font-size: .85rem; font-weight: 600; color: var(--teal-900);
}
.services__inset {
  position: absolute; top: 18px; inset-inline-end: 18px; width: 46%; padding: 10px 10px 8px;
  background: var(--white); border-radius: 14px; box-shadow: 0 24px 40px -24px rgba(15, 31, 32, .6);
  transform: translateY(16px) rotate(-2deg); opacity: 0;
  transition: transform .9s var(--ease-out) .25s, opacity .6s .25s;
}
.services__frame.is-active .services__inset { transform: rotate(-2deg); opacity: 1; }
.services__inset img { border-radius: 8px; }
.services__inset span { display: block; font-size: .75rem; color: var(--ink-soft); padding: 6px 4px 0; }

.service {
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px;
  opacity: .32; transition: opacity .6s var(--ease-out);
}
.service.is-active { opacity: 1; }
.service__mobile-img { display: none; }
.service__code { font-size: .9rem; font-weight: 600; color: var(--teal-700); margin-bottom: 8px; }
.service__title {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.35; margin-bottom: 16px;
}
.service > p { color: var(--ink-soft); margin-bottom: 26px; max-width: 54ch; }
.service__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.service__list li { display: flex; gap: 12px; align-items: baseline; font-weight: 500; font-size: .98rem; }
.service__list li::before {
  content: ""; flex: none; width: 9px; height: 9px; border: 2px solid var(--teal); border-radius: 3px;
  transform: translateY(-1px);
}

/* ---------- projects ---------- */
.projects { background: var(--stone); }
.projects .section-title .mono { font-weight: 500; color: var(--teal-700); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 16px;
  border: 1.5px solid var(--rule-strong); border-radius: 12px; background: transparent;
  font-weight: 500; font-size: .95rem; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter__count { font-family: var(--font-mono); font-size: .78rem; opacity: .65; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.card { position: relative; }
.card__media {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #d8e1df;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06);
  transition: opacity .6s var(--ease-out), transform 1.1s var(--ease-out);
}
.card__media img.is-loaded { opacity: 1; transform: scale(1); }
.card:hover .card__media img.is-loaded { transform: scale(1.045); }
.card__badge {
  position: absolute; top: 12px; inset-inline-start: 12px; padding: 3px 10px; border-radius: 8px;
  background: rgba(244, 247, 246, .92); font-size: .78rem; font-weight: 600;
}
.card__badge .mono { font-weight: 500; }
.card__open-hint {
  position: absolute; bottom: 12px; inset-inline-end: 12px; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: var(--paper); color: var(--ink);
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease-out);
}
.card:hover .card__open-hint, .card:focus-within .card__open-hint { opacity: 1; transform: none; }
.card__body { padding-top: 16px; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.45; }
.card__title button {
  all: unset; cursor: pointer;
}
.card__title button::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card__title button:focus-visible::after { outline: 2px solid var(--teal-700); outline-offset: 4px; }
.card__meta { color: var(--ink-soft); font-size: .92rem; margin-top: 2px; }
.card__specs { font-size: .9rem; font-weight: 600; color: var(--teal-700); margin-top: 4px; font-variant-numeric: tabular-nums; }

.card { animation: card-in .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(24px); } }
.project-grid.is-leaving .card { opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; animation: none; }

.project-empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }
.projects__more { display: flex; justify-content: center; margin-top: 56px; }
.projects__remaining { font-size: .82rem; color: var(--ink-soft); }

/* ---------- process ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.steps::before, .steps::after {        /* track + progress line through the number badges */
  content: ""; position: absolute; top: 27px; height: 2px; background: var(--rule);
  inset-inline-start: 28px; inset-inline-end: calc((100% - 4 * 28px) / 5 - 28px);   /* centre of first badge → centre of last */
}
.steps::after { background: var(--teal); transform: scaleX(0); transform-origin: right; transition: transform 1.8s var(--ease-in-out) .2s; }
.steps.is-in::after { transform: scaleX(1); }
.step { position: relative; z-index: 1; }
.step__num {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px;
  border: 2px solid var(--teal); border-radius: 16px; background: var(--paper);
  font-size: .95rem; font-weight: 500; color: var(--teal-900);
  transition: background-color .5s, color .5s;
  transition-delay: calc(.25s + var(--i) * .32s);
}
.steps.is-in .step__num { background: var(--teal-900); border-color: var(--teal-900); color: var(--paper); }
.step__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.5; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .96rem; line-height: 1.75; }
.js .step { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i) * .12s); }
.steps.is-in .step { opacity: 1; transform: none; }

/* ---------- faq ---------- */
.faq { background: var(--white); }
.faq__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__head .section-lead { margin: 16px 0 28px; }
.qa { border-bottom: 1px solid var(--rule-strong); }
.qa:first-child { border-top: 1px solid var(--rule-strong); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.5;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  border: 1.5px solid var(--rule-strong); border-radius: 10px;
  transition: background-color .25s, color .25s, border-color .25s;
}
.qa__icon .icon { width: 20px; height: 20px; transition: transform .35s var(--ease-out); }
.qa summary:hover .qa__icon { border-color: var(--ink); }
.qa[open] .qa__icon { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.qa[open] .qa__icon .icon { transform: rotate(45deg); }
.qa__body { padding-bottom: 24px; color: var(--ink-soft); max-width: 60ch; }
.qa[open] .qa__body { animation: qa-open .45s var(--ease-out); }
@keyframes qa-open { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- contact ---------- */
.contact { background: var(--teal-900); color: var(--paper); padding-block: clamp(80px, 11vw, 140px); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__title {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 3.9vw, 3.3rem); line-height: 1.3; margin-bottom: 18px;
}
.contact__lead { color: rgba(244, 247, 246, .74); max-width: 46ch; margin-bottom: 36px; }
.contact__list { display: grid; gap: 0; margin-bottom: 32px; }
.contact__list > div { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.contact__list > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.contact__list dt { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: #9fd0d3; margin-bottom: 4px; }
.contact__list dt .icon { width: 1.1em; height: 1.1em; }
.contact__list dd { font-size: 1.08rem; font-weight: 500; }
.contact__list a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); transition: border-color .2s, color .2s; }
.contact__list a:hover { color: var(--white); border-color: var(--note); }
.contact__list a[href^="tel"] { font-family: var(--font-mono); font-size: 1.15rem; }
.map { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 240px; background: var(--teal-950); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05) brightness(.95); }
.map__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  color: #9fd0d3; font-size: .95rem; font-weight: 600; text-decoration: none;
}
.map__link:hover { color: var(--white); }
.map__link:hover .icon--arrow { transform: translateX(-4px); }

.brief {
  background: var(--paper); color: var(--ink); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55);
}
.brief__title { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin-bottom: 6px; }
.brief__hint { font-size: .92rem; color: var(--ink-soft); margin-bottom: 26px; line-height: 1.7; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field label { font-size: .9rem; font-weight: 600; }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 10px 14px;
  background: var(--white); border: 1.5px solid var(--rule-strong); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.field select {
  -webkit-appearance: none; appearance: none; padding-inline-start: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230f1f20' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: left 14px center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 4px rgba(88, 153, 158, .22);
}
.field.has-error input { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: .85rem; }
.brief__submit { width: 100%; margin-top: 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-950); color: rgba(244, 247, 246, .7); padding-block: 40px; font-size: .92rem; }
.site-footer__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 40px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
.site-footer__nav a { text-decoration: none; transition: color .2s; }
.site-footer__nav a:hover { color: var(--white); }
.site-footer__social { display: flex; gap: 8px; }
.site-footer__social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, .16); color: var(--paper); transition: background-color .2s, border-color .2s;
}
.site-footer__social a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }
.site-footer__copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* ---------- floating whatsapp ---------- */
.wa-fab {
  position: fixed; z-index: 40; bottom: 20px; left: 20px; width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center; background: var(--teal-900); color: var(--paper);
  box-shadow: 0 16px 30px -14px rgba(11, 38, 40, .8);
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: opacity .35s, transform .45s var(--ease-out), background-color .2s;
}
.wa-fab .icon { width: 26px; height: 26px; }
.wa-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-fab:hover { background: var(--teal-700); }

/* ---------- viewer (project lightbox) ---------- */
.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--teal-950); color: var(--paper); overflow: hidden;
}
.viewer::backdrop { background: rgba(11, 38, 40, .6); }
.viewer[open] { animation: viewer-in .4s var(--ease-out); }
.viewer.is-closing { animation: viewer-out .25s ease-in forwards; }
@keyframes viewer-in { from { opacity: 0; } }
@keyframes viewer-out { to { opacity: 0; } }
.viewer__inner {
  height: 100%; display: grid; grid-template-rows: auto 1fr auto auto;
  max-width: 1400px; margin-inline: auto; padding: 20px var(--gutter);
}
.viewer__bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 16px; }
.viewer__cat { font-size: .85rem; color: #9fd0d3; }
.viewer__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; }
.viewer__specs { font-size: .92rem; font-weight: 600; color: #9fd0d3; margin-top: 2px; }
.viewer__actions { display: flex; gap: 10px; align-items: center; flex: none; }
.viewer__close {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; cursor: pointer;
  background: transparent; border: 1.5px solid rgba(255, 255, 255, .22); color: var(--paper);
  transition: background-color .2s, border-color .2s;
}
.viewer__close:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.viewer__stage { position: relative; min-height: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.viewer__figure { position: relative; height: 100%; min-height: 0; }
.viewer__figure img {
  position: absolute; inset: 0; margin: auto;
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px;
  transition: opacity .35s var(--ease-out), transform .5s var(--ease-out);
}
.viewer__figure img.is-swapping { opacity: 0; transform: scale(.985); }
.viewer__nav {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .18); color: var(--paper);
  transition: background-color .2s, transform .25s var(--ease-out);
}
.viewer__nav:hover { background: rgba(255, 255, 255, .16); }
.viewer__nav--prev:hover { transform: translateX(3px); }
.viewer__nav--next:hover { transform: translateX(-3px); }
.viewer__nav:disabled { opacity: .3; cursor: default; transform: none; }
.viewer__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-top: 16px; }
.viewer__summary { color: rgba(244, 247, 246, .78); max-width: 70ch; font-size: .98rem; line-height: 1.8; }
.viewer__count { flex: none; font-size: .85rem; color: rgba(244, 247, 246, .6); }
.viewer__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: thin; }
.viewer__thumbs button {
  flex: none; width: 76px; height: 56px; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: none; opacity: .5; transition: opacity .2s, border-color .2s;
}
.viewer__thumbs button:hover { opacity: .85; }
.viewer__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--teal); }
.viewer__thumbs img { width: 100%; height: 100%; object-fit: cover; }
body.has-dialog { overflow: hidden; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .site-nav ul { gap: 18px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 620px; }
  .steps::before, .steps::after { top: 28px; bottom: 58px; inset-inline-end: auto; inset-inline-start: 27px; width: 2px; height: auto; }
  .steps::after { transform: scaleY(0); transform-origin: top; }
  .steps.is-in::after { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 22px; padding-bottom: 30px; }
  .step__num { grid-row: 1 / span 2; margin-bottom: 0; }
  .step__title { padding-top: 10px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 24px var(--gutter) 32px; background: var(--paper); box-shadow: 0 30px 40px -30px rgba(15, 31, 32, .4);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s, transform .4s var(--ease-out), visibility 0s .4s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid var(--rule); }
  .site-nav ul a::after { display: none; }
  .site-header.is-open { background: var(--paper); }

  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__caption { margin-top: 44px; padding-inline-end: 120px; }
  .hero__copy, .hero__figure { grid-column: 1; }
  .hero__note { inset-inline-start: auto; inset-inline-end: -6px; bottom: -34px; width: 112px; padding: 10px; font-size: 1.05rem; }
  .compare__tag { top: 12px; }

  .offers__grid { grid-template-columns: 1fr; }
  .about__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .section-head--split { grid-template-columns: 1fr; }

  .services__layout { grid-template-columns: 1fr; }
  .services__media { display: none; }
  .service { min-height: 0; opacity: 1; padding-block: 0 56px; }
  .service__mobile-img {
    display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px;
    background: var(--paper);
  }
  .service__mobile-img.services__img--model { object-fit: contain; padding: 6%; }

  .site-footer__inner { grid-template-columns: 1fr; justify-items: start; }
  .site-footer__nav { justify-content: flex-start; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand__sub { display: none; }
  .hero__actions .btn { width: 100%; }
  .compare-frame::before { inset: -8px; border-radius: calc(var(--radius-lg) + 8px); }
  .compare__grip { width: 44px; height: 44px; border-radius: 13px; }
  .project-grid { grid-template-columns: 1fr; gap: 36px; }
  .card__media { aspect-ratio: 4 / 3; }
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding-bottom: 4px;
  }
  .filters::before, .filters::after { content: ""; flex: 0 0 calc(var(--gutter) - 8px); }   /* edge spacing that survives scrolling */
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; scroll-snap-align: start; }
  .service__list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .offer { padding-block: 26px; }
  .viewer__inner { padding-block: 14px; }
  .viewer__bar { flex-direction: column; gap: 12px; }
  .viewer__actions { width: 100%; justify-content: space-between; }
  .viewer__stage { grid-template-columns: 1fr; }
  .viewer__nav { position: absolute; z-index: 2; bottom: 12px; width: 44px; height: 44px; background: rgba(11, 38, 40, .7); }
  .viewer__nav--prev { right: 12px; }
  .viewer__nav--next { left: 12px; }
  .viewer__foot { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
}
