/* ==========================================================================
   المطرودي للمظلات — Almatroudi for Shades
   2026 — refined editorial system. Near-white canvas, generous whitespace,
   confident quiet typography, a single brand-red accent, charcoal reserved for
   a few deliberate moments (hero, services list, closing, footer).
   Type: IBM Plex Sans Arabic throughout; IBM Plex Mono only for Latin numerals.
   Plain CSS, RTL-first, no build.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  /* paper (light) */
  --c-paper:  #ffffff;   /* page */
  --c-mist:   #f3f4f6;   /* alt section / image placeholder */
  --c-card:   #ffffff;   /* raised card */
  --c-ink:    #15181c;   /* near-black */
  --c-ink-2:  #39414a;
  --c-muted:  #59616b;   /* secondary text */
  --c-faint:  #99a0a9;
  --c-line:   rgba(20, 24, 30, .10);
  --c-line-2: rgba(20, 24, 30, .16);

  /* shade (charcoal) */
  --c-shade:   #14171b;
  --c-shade-2: #1c2026;
  --c-shade-3: #272d35;
  --c-on-dark: #eef0f3;
  --c-muted-d: #a3aab2;
  --c-faint-d: #6c737c;
  --c-line-d:  rgba(255, 255, 255, .12);
  --c-line-d2: rgba(255, 255, 255, .22);

  /* accent — brand red */
  --red:    #a72722;
  --red-2:  #841d18;   /* hover / deep */
  --red-br: #d8453b;   /* bright — for dark surfaces */

  /* type */
  --f-display: "IBM Plex Sans Arabic", system-ui, "Segoe UI", sans-serif;
  --f-sans:    "IBM Plex Sans Arabic", system-ui, "Segoe UI", sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --fs-hero: clamp(2.5rem, 6vw, 5.4rem);
  --fs-h1:   clamp(2.05rem, 4.4vw, 3.9rem);
  --fs-h2:   clamp(1.7rem, 3.1vw, 2.8rem);
  --fs-h3:   clamp(1.22rem, 1.9vw, 1.65rem);
  --fs-lead: clamp(1.06rem, 1.35vw, 1.3rem);

  /* layout */
  --wrap: 1280px;
  --gut:  clamp(1.25rem, 5vw, 4rem);
  --sec:  clamp(4.5rem, 9vw, 8rem);
  --hdr:  80px;
  --ease: cubic-bezier(.22, .68, .2, 1);
  --r:    4px;

  /* semantic — default = paper */
  --bg:     var(--c-paper);
  --bg-2:   var(--c-mist);
  --card:   var(--c-card);
  --ink:    var(--c-ink);
  --muted:  var(--c-muted);
  --faint:  var(--c-faint);
  --line:   var(--c-line);
  --line-2: var(--c-line-2);
  --dot:    var(--red);
}

/* shade surface — remap semantic tokens so components adapt automatically */
.shade {
  --bg:     var(--c-shade);
  --bg-2:   var(--c-shade-2);
  --card:   var(--c-shade-2);
  --ink:    var(--c-on-dark);
  --muted:  var(--c-muted-d);
  --faint:  var(--c-faint-d);
  --line:   var(--c-line-d);
  --line-2: var(--c-line-d2);
  --dot:    var(--red-br);
  background: var(--bg);
  color: var(--ink);
}
/* mist surface — subtle light-gray band */
.band--mist { background: var(--c-mist); }

/* ----------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--f-sans);
  font-size: 1.04rem; line-height: 1.8;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select, button { font-family: inherit; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.18;
  letter-spacing: 0; color: inherit; }
p { text-wrap: pretty; }
strong { font-weight: 600; }

/* ------------------------------------------------------------ primitives -- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.band { padding-block: var(--sec); position: relative; }
.band--tight { padding-block: clamp(3rem, 6.5vw, 5.5rem); }
.band--flush-top { padding-top: 0; }

.skip-link { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--red); color: #fff;
  padding: .7rem 1.1rem; z-index: 400; transition: top .2s; border-radius: var(--r); }
.skip-link:focus { top: 1rem; }

/* blueprint overlays retired — kept as no-ops so legacy markup is harmless */
.gridlines, .hero__grid, .phero__grid { display: none !important; }

/* eyebrow label: short red rule + quiet text (no letter-spacing — Arabic-safe) */
.tag { display: inline-flex; align-items: center; gap: .85rem; font-family: var(--f-sans);
  font-size: .85rem; font-weight: 600; color: var(--muted); }
.tag::before { content: ""; width: 26px; height: 2px; background: var(--dot); flex: none; }
.tag--plain::before { display: none; }

.mono { font-family: var(--f-mono); letter-spacing: .04em; }

/* section heading block */
.head { max-width: 60ch; }
.head .tag { margin-bottom: 1.4rem; }
.head__title { font-size: var(--fs-h2); line-height: 1.18; }
.head__lead { margin-top: 1.3rem; color: var(--muted); font-size: var(--fs-lead); max-width: 54ch; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.4rem 2rem;
  flex-wrap: wrap; margin-bottom: clamp(2.4rem, 4.5vw, 3.6rem); }

.rule-red { width: 52px; height: 3px; background: var(--red); margin-block: 1.5rem; }
.shade .rule-red { background: var(--red-br); }

/* --------------------------------------------------------------- buttons -- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--f-sans); font-weight: 600; font-size: .96rem; line-height: 1;
  padding: 1.02rem 1.7rem; border: 1.5px solid var(--ink); background: var(--ink); color: var(--bg);
  border-radius: var(--r); white-space: nowrap; position: relative;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s; }
.btn__ic { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn__ic { transform: translateX(-.3em); }
.btn--accent { background: var(--red); border-color: var(--red); color: #fff; }
.btn--accent:hover { background: var(--red-2); border-color: var(--red-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.shade .btn--ghost { color: var(--c-on-dark); border-color: var(--c-line-d2); }
.shade .btn--ghost:hover { background: var(--c-on-dark); color: var(--c-shade); border-color: var(--c-on-dark); }
.btn--lg { padding: 1.18rem 2.1rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* inline arrow link */
.link { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--ink);
  position: relative; padding-bottom: .3rem; transition: gap .3s var(--ease), color .25s; }
.link::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(1); transform-origin: right; transition: transform .35s var(--ease); }
.link:hover { color: var(--red); gap: .9rem; }
.shade .link:hover { color: var(--red-br); }
.link svg { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(-.3em); }
.actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }

/* ---------------------------------------------------------------- header -- */
.hdr { position: fixed; top: 0; inset-inline: 0; z-index: 200; background: transparent;
  transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.hdr::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: var(--c-line); opacity: 0; transition: opacity .4s; }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--hdr); }
.hdr.is-solid, .is-nav-open .hdr { background: var(--c-paper); box-shadow: 0 6px 24px rgba(20,24,30,.07); }
.hdr.is-solid::after, .is-nav-open .hdr::after { opacity: 1; }

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 42px; width: auto; }
.brand__dark { display: none; }
.hdr.is-solid .brand__light, .is-nav-open .brand__light { display: none; }
.hdr.is-solid .brand__dark, .is-nav-open .brand__dark { display: inline-flex; }

.nav { display: flex; align-items: center; gap: clamp(1.3rem, 2.4vw, 2.3rem); }
/* top state — over the dark hero: light nav */
.nav__link { font-size: .94rem; font-weight: 500; color: rgba(255,255,255,.84); position: relative;
  padding-block: .4rem; transition: color .25s; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.nav__link span { font-family: var(--f-mono); font-size: .6rem; color: var(--red-br);
  margin-inline-end: .4rem; opacity: .9; }
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link.is-active::after { content: ""; position: absolute; inset-inline: 0; bottom: -.1rem;
  height: 2px; background: var(--red-br); }
/* scrolled state — solid white bar: dark nav */
.hdr.is-solid .nav__link { color: var(--c-ink-2); text-shadow: none; }
.hdr.is-solid .nav__link span { color: var(--red); }
.hdr.is-solid .nav__link:hover, .hdr.is-solid .nav__link.is-active { color: var(--c-ink); }
.hdr.is-solid .nav__link.is-active::after { background: var(--red); }

.hdr__cta { display: inline-flex; }
.hdr__cta .btn { padding: .82rem 1.4rem; font-size: .9rem; }

.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: #fff; }
.hdr.is-solid .nav__toggle, .is-nav-open .nav__toggle { color: var(--c-ink); }
.nav__toggle svg { width: 26px; height: 26px; }
.nav__toggle .ic-close { display: none; }
.is-nav-open .nav__toggle .ic-open { display: none; }
.is-nav-open .nav__toggle .ic-close { display: block; }

/* ------------------------------------------------------------------ hero -- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: flex-end; overflow: hidden; background: var(--c-shade); color: var(--c-on-dark);
  isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: transform; }
.hero__scrim { position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(12,14,17,.92) 0%, rgba(12,14,17,.42) 46%, rgba(12,14,17,.34) 72%, rgba(12,14,17,.6) 100%),
    linear-gradient(to left, rgba(12,14,17,.5), transparent 60%); }
.hero .wrap { position: relative; z-index: 3; width: 100%; margin-top: auto;
  padding-bottom: clamp(2.6rem, 6vw, 5rem); padding-top: calc(var(--hdr) + 2rem); }

.hero__meta { font-size: .92rem; font-weight: 500; color: rgba(238,240,243,.9);
  margin-bottom: clamp(1.4rem, 3vw, 2rem); text-shadow: 0 1px 16px rgba(0,0,0,.7); }
.hero__meta span:not(:last-child)::after { content: "/"; padding-inline: .7rem; opacity: .4; }
.hero__meta .accent { color: #f6594c; font-weight: 700; }
.hero h1 { font-size: var(--fs-hero); font-weight: 700; line-height: 1.16; max-width: 17ch;
  text-shadow: 0 2px 36px rgba(0,0,0,.4); }
.hero h1 .red { color: var(--red-br); }
.hero__sub { margin-top: clamp(1.5rem, 3vw, 2.3rem); max-width: 52ch; font-size: var(--fs-lead);
  color: rgba(238,240,243,.84); line-height: 1.75; }
.hero__cta { margin-top: clamp(2rem, 4vw, 2.6rem); display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; }
.hero__cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hero__cta .btn--ghost:hover { background: #fff; color: var(--c-shade); border-color: #fff; }

/* stats strip across the hero base */
.hero__stats { position: relative; z-index: 3; border-top: 1px solid var(--c-line-d);
  background: rgba(12,14,17,.42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero__stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: clamp(1.5rem, 2.6vw, 2.1rem); }
.hstat { padding-inline: clamp(.6rem, 2vw, 1.8rem); border-inline-start: 1px solid var(--c-line-d); }
.hstat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.hstat__n { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1; color: #fff; }
.hstat__n .u { color: var(--red-br); }
.hstat__l { margin-top: .55rem; font-size: .8rem; color: rgba(238,240,243,.6); line-height: 1.5; }
@media (max-width: 680px) {
  .hero__stats .wrap { grid-template-columns: 1fr 1fr; gap: 1.2rem 0; }
  .hstat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}

/* ------------------------------------------------------- intro / stats ---- */
.intro__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.2rem, 6vw, 5.5rem); align-items: start; }
.intro__lede { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  line-height: 1.5; color: var(--ink); }
.intro__lede .red { color: var(--red); }
.intro__body { color: var(--muted); }
.intro__body p + p { margin-top: 1.1rem; }
.intro__note { margin-top: 1.7rem; padding-top: 1.3rem; border-top: 1px solid var(--line);
  font-size: .92rem; font-weight: 500; color: var(--faint); }
.intro__note b { color: var(--ink); }

/* big numbered stat row */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line-2); }
.stat { padding: clamp(1.6rem, 3vw, 2.3rem) clamp(1rem, 2vw, 1.6rem) 0; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat__n { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.2rem, 4.8vw, 3.7rem);
  line-height: 1; color: var(--ink); letter-spacing: -.01em; }
.stat__n .u { color: var(--red); }
.stat__l { margin-top: .7rem; font-size: .85rem; color: var(--muted); line-height: 1.5; max-width: 20ch; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; } }

/* ----------------------------------------------------- services (dark list) */
.svclist { border-top: 1px solid var(--line); }
.svcrow { display: grid; grid-template-columns: 3.4rem 1fr auto; align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem); padding: clamp(1.6rem, 3.2vw, 2.6rem) clamp(.4rem, 1.6vw, 1.2rem);
  border-bottom: 1px solid var(--line); position: relative; transition: padding-inline-start .4s var(--ease); }
.svcrow:hover { padding-inline-start: clamp(1.1rem, 2.6vw, 2.1rem); }
.svcrow__ix { font-family: var(--f-mono); font-size: .82rem; color: var(--red-br); }
.svcrow__mid { display: flex; align-items: baseline; gap: .8rem 1.4rem; flex-wrap: wrap; }
.svcrow__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 1.12; transition: color .3s; }
.svcrow:hover .svcrow__title { color: #fff; }
.svcrow__en { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); }
.svcrow__ar { display: flex; align-items: center; gap: 1.1rem; }
.svcrow__ic { width: 28px; height: 28px; color: var(--muted); flex: none; transition: color .3s; }
.svcrow__ic svg { width: 100%; height: 100%; }
.svcrow:hover .svcrow__ic { color: var(--red-br); }
.svcrow__go { color: var(--ink); display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-2); border-radius: 50%; transition: all .3s var(--ease); flex: none; }
.svcrow__go svg { width: 19px; height: 19px; }
.svcrow:hover .svcrow__go { background: var(--red-br); border-color: var(--red-br); color: #fff; transform: translateX(-5px); }

/* ------------------------------------------------------------ work grid --- */
.works { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.4rem, 2.6vw, 2.4rem); }
.work { position: relative; grid-column: span 6; }
.work--lg { grid-column: span 8; }
.work--sm { grid-column: span 4; }
.work__img { display: block; overflow: hidden; background: var(--bg-2); cursor: pointer;
  position: relative; border-radius: var(--r); }
.work__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .9s var(--ease); }
.work:hover .work__img img { transform: scale(1.04); }
.work__cap { margin-top: 1rem; }
.work__cat { font-size: .82rem; font-weight: 600; color: var(--red); display: block; margin-bottom: .35rem; }
.shade .work__cat { color: var(--red-br); }
.work__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.2; transition: color .25s; }
.work__title:hover { color: var(--red); }

/* --------------------------------------------------- projects grid (page) - */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 2.8vw, 2.6rem); }
.proj { display: flex; flex-direction: column; }
.proj__img { display: block; position: relative; overflow: hidden; border-radius: var(--r);
  background: var(--bg-2); }
.proj__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.proj:hover .proj__img img { transform: scale(1.04); }
.proj__expand { position: absolute; inset-block-start: .9rem; inset-inline-end: .9rem; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(20,23,27,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.85); transition: all .35s var(--ease); }
.proj__expand svg { width: 17px; height: 17px; }
.proj:hover .proj__expand { opacity: 1; transform: scale(1); }
.proj__cap { padding-top: 1.1rem; margin-top: 1.1rem; border-top: 1px solid var(--line-2); }
.proj__cat { display: block; font-size: .82rem; font-weight: 600; color: var(--red); margin-bottom: .45rem; }
.shade .proj__cat { color: var(--red-br); }
.proj__title { display: block; font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.18rem, 1.7vw, 1.4rem); line-height: 1.25; transition: color .25s; }
.proj__title:hover { color: var(--red); }
.proj__meta { margin-top: .65rem; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.proj__entity { color: var(--muted); font-size: .9rem; }
.proj__year { font-family: var(--f-mono); font-size: .82rem; color: var(--faint); white-space: nowrap; }
@media (max-width: 900px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .proj-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------- shade-types gallery -- */
.types-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 1.8vw, 1.5rem); }
.type { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--bg-2);
  cursor: zoom-in; }
.type img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.type::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(12,14,17,.82), rgba(12,14,17,.02) 60%); }
.type:hover img { transform: scale(1.05); }
.type__name { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: .9rem 1.05rem;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: #fff;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(.92rem, 1.2vw, 1.06rem); }
.type__name svg { width: 16px; height: 16px; flex: none; opacity: 0; transform: translateX(7px);
  transition: opacity .35s var(--ease), transform .35s var(--ease); }
.type:hover .type__name svg { opacity: .9; transform: none; }
@media (max-width: 900px) { .types-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .types-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- process ---- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: clamp(2.4rem, 5vw, 3.6rem);
  border-top: 1px solid var(--line); }
.step { padding: clamp(1.7rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.6rem); border-inline-start: 1px solid var(--line);
  position: relative; }
.step:first-child { border-inline-start: 0; }
.step::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 0; height: 2px;
  background: var(--red); transition: width .6s var(--ease); }
.shade .step::before { background: var(--red-br); }
.step.in::before { width: 100%; }
.step__n { font-family: var(--f-mono); font-size: .78rem; color: var(--red); margin-bottom: 1.1rem; }
.shade .step__n { color: var(--red-br); }
.step__ic { width: 32px; height: 32px; color: var(--ink); margin-bottom: .9rem; }
.step__ic svg { width: 100%; height: 100%; }
.step h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .9rem; line-height: 1.65; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; }
  .step { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .step:first-child { border-top: 0; } }
@media (max-width: 500px) { .process { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- clients ---- */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line); }
.client { display: grid; place-items: center; padding: clamp(1.6rem, 3vw, 2.6rem);
  border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); aspect-ratio: 3 / 2; }
.client img { max-height: 56px; max-width: 80%; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .5; transition: opacity .35s, filter .35s, transform .35s; }
.client:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.04); }
@media (max-width: 820px) { .clients { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------- closing ---- */
.closing .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2.4rem, 6vw, 5rem); align-items: center; }
.closing h2 { font-size: var(--fs-h1); line-height: 1.16; max-width: 16ch; }
.closing h2 .red { color: var(--red-br); }
.closing__sub { margin-top: 1.5rem; color: var(--muted); font-size: var(--fs-lead); max-width: 44ch; }
.closing__contacts { display: grid; gap: 1.1rem; }
.ccard { display: flex; gap: 1.05rem; align-items: center; padding: 1.25rem 1.4rem; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--bg-2); transition: border-color .3s, transform .3s var(--ease); }
.ccard:hover { border-color: var(--red-br); transform: translateX(-5px); }
.ccard__ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; color: var(--red-br);
  border: 1px solid var(--line-2); border-radius: 50%; }
.ccard__ic svg { width: 1.25em; height: 1.25em; }
.ccard__l { font-size: .8rem; font-weight: 600; color: var(--faint); display: block; margin-bottom: .2rem; }
.ccard__v { font-weight: 600; color: var(--ink); }
.ccard__v[dir="ltr"] { font-family: var(--f-mono); font-size: .96rem; }
@media (max-width: 860px) { .closing .wrap { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- page hero (in) - */
.phero { position: relative; min-height: clamp(360px, 52vh, 520px); display: flex; align-items: flex-end;
  overflow: hidden; background: var(--c-shade); color: var(--c-on-dark); isolation: isolate; }
.phero__bg { position: absolute; inset: 0; z-index: 0; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.phero__scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(12,14,17,.9), rgba(12,14,17,.36) 62%, rgba(12,14,17,.46)); }
.phero .wrap { position: relative; z-index: 3; width: 100%; padding-top: calc(var(--hdr) + 2rem);
  padding-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.crumbs { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; font-size: .86rem; font-weight: 500;
  color: rgba(238,240,243,.62); margin-bottom: 1.5rem; }
.crumbs a:hover { color: var(--red-br); }
.crumbs svg { width: 14px; height: 14px; opacity: .55; }
.crumbs span { color: var(--c-on-dark); }
.phero h1 { font-size: var(--fs-h1); line-height: 1.16; max-width: 20ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.phero__lead { margin-top: 1.3rem; max-width: 56ch; font-size: var(--fs-lead); color: rgba(238,240,243,.84); }
.phero__en { margin-top: 1rem; font-size: .9rem; font-weight: 500; color: var(--red-br); }

/* --------------------------------------------------------- split / figure - */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.2rem, 6vw, 5.5rem); align-items: center; }
.split--reverse { direction: ltr; }
.split--reverse > * { direction: rtl; }
.figure { position: relative; overflow: hidden; background: var(--bg-2); border-radius: var(--r); }
.figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; display: block;
  transition: transform .8s var(--ease); }
.figure--wide img { aspect-ratio: 5 / 4; }
.figure a.glightbox:hover img { transform: scale(1.04); }
.figure__tag { position: absolute; inset-inline-start: 1rem; bottom: 1rem; background: rgba(20,23,27,.78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; padding: .9rem 1.1rem;
  max-width: 78%; border-radius: var(--r); display: flex; align-items: center; gap: .9rem; }
.figure__tag b { font-family: var(--f-display); font-size: 1.8rem; font-weight: 600; line-height: 1; color: var(--red-br); }
.figure__tag span { font-size: .8rem; color: rgba(255,255,255,.78); line-height: 1.4; }

.prose p { color: var(--muted); }
.prose p + p { margin-top: 1.1rem; }
.prose strong { color: var(--ink); font-weight: 600; }

.checks { margin-top: 2rem; display: grid; gap: .95rem; }
.checks li { display: flex; gap: .85rem; align-items: flex-start; color: var(--ink); }
.checks svg { width: 1.3em; height: 1.3em; color: var(--red); flex: none; margin-top: .3rem; }
.shade .checks svg { color: var(--red-br); }

/* -------------------------------------------------------- services (page) - */
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 1.8rem); }
.svc-card { display: flex; flex-direction: column; padding: clamp(1.7rem, 2.8vw, 2.4rem);
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card); position: relative;
  transition: transform .4s var(--ease), border-color .4s; }
.svc-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.svc-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.svc-card__ic { width: 42px; height: 42px; color: var(--red); }
.svc-card__ic svg { width: 100%; height: 100%; }
.svc-card__ix { font-family: var(--f-mono); font-size: .8rem; color: var(--faint); direction: ltr; }
.svc-card__en { font-size: .8rem; font-weight: 500; color: var(--faint); display: block; margin-bottom: .45rem; }
.svc-card h3 { font-size: clamp(1.28rem, 2vw, 1.55rem); font-weight: 700; margin-bottom: .65rem; }
.svc-card p { color: var(--muted); font-size: .96rem; margin-bottom: 1.4rem; flex: 1; }
.svc-card .link { font-size: .9rem; }
@media (max-width: 920px) { .svc-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-cards { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- timeline -- */
.tl { position: relative; }
.tl::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 7.5rem; width: 1px; background: var(--line); }
.tl__item { display: grid; grid-template-columns: 7.5rem 1fr; gap: clamp(1.6rem, 4vw, 3rem);
  padding-block: clamp(1.4rem, 3vw, 2.1rem); position: relative; }
.tl__year { font-family: var(--f-mono); font-size: 1.02rem; color: var(--red); font-weight: 500; text-align: end;
  padding-inline-end: 1.2rem; }
.shade .tl__year { color: var(--red-br); }
.tl__item::before { content: ""; position: absolute; inset-inline-start: calc(7.5rem - 4px); top: clamp(1.6rem,3vw,2.3rem);
  width: 9px; height: 9px; background: var(--red); border-radius: 50%; z-index: 1; }
.shade .tl__item::before { background: var(--red-br); }
.tl__text { color: var(--muted); line-height: 1.8; padding-inline-start: 1rem; }
@media (max-width: 600px) {
  .tl::before { inset-inline-start: 4px; }
  .tl__item { grid-template-columns: 1fr; gap: .5rem; padding-inline-start: 1.6rem; }
  .tl__year { text-align: start; padding-inline: 0; }
  .tl__item::before { inset-inline-start: 0; top: .5rem; }
  .tl__text { padding-inline-start: 0; }
}

/* -------------------------------------------------------------- register -- */
.reg-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.reg { width: 100%; font-size: .96rem; min-width: 640px; }
.reg thead th { text-align: start; font-size: .8rem; color: var(--muted); font-weight: 700;
  padding: 1.1rem 1.3rem; background: var(--card); border-bottom: 1px solid var(--line-2); }
.reg tbody td { padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.reg tbody tr:last-child td { border-bottom: 0; }
.reg tbody tr { transition: background .2s; }
.reg tbody tr:hover { background: var(--card); }
.reg__idx { font-family: var(--f-mono); color: var(--red); width: 3.5rem; font-size: .85rem; }
.shade .reg__idx { color: var(--red-br); }
.reg__name { font-weight: 600; color: var(--ink); max-width: 46ch; }
.reg__entity { color: var(--muted); }
.reg__date { color: var(--muted); white-space: nowrap; font-size: .9rem; }

/* -------------------------------------------------- service detail (clean) - */
.svc-intro { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(2.2rem, 6vw, 5rem); align-items: start; }
.svc-intro__lead { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.35rem, 2.3vw, 2rem);
  color: var(--ink); line-height: 1.5; }
.svc-intro__body { color: var(--muted); margin-top: 1.4rem; }
.svc-intro__body p + p { margin-top: 1.1rem; }
.svc-aside { border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.svc-aside__k { font-size: .8rem; font-weight: 600; color: var(--faint); }
.svc-aside__v { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--ink); margin: .3rem 0 1.6rem; }
.svc-related { margin-top: 1.6rem; display: grid; gap: .2rem; border-top: 1px solid var(--line); }
.svc-related a { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600;
  font-size: .98rem; transition: color .25s, padding-inline-start .25s var(--ease); }
.svc-related a svg { width: 18px; height: 18px; color: var(--faint); transition: color .25s, transform .3s var(--ease); }
.svc-related a:hover { color: var(--red); padding-inline-start: .4rem; }
.svc-related a:hover svg { color: var(--red); transform: translateX(-.3em); }
.svc-related a.is-active { color: var(--red); }

/* ---------------------------------------------------------------- detail -- */
.detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2.2rem, 6vw, 5rem); align-items: start; }
.detail__lead { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  color: var(--ink); line-height: 1.5; margin-bottom: 1.5rem; }
.detail__body p { color: var(--muted); }
.detail__body p + p { margin-top: 1.1rem; }
.facts { display: grid; border-top: 2px solid var(--ink); margin: 2.2rem 0; }
.fact { display: flex; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.fact dt { font-size: .85rem; font-weight: 500; color: var(--faint); }
.fact dd { font-weight: 600; color: var(--ink); text-align: end; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.4rem; }
.gallery .lb { display: block; overflow: hidden; cursor: zoom-in; background: var(--bg-2); border-radius: var(--r); }
.gallery .lb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .7s var(--ease); }
.gallery .lb:hover img { transform: scale(1.05); }
.detail__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.8rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line); flex-wrap: wrap; }
.detail__nav .link { font-size: .92rem; }

.aside-card { border: 1px solid var(--line); padding: clamp(1.7rem, 3vw, 2.2rem); position: sticky;
  top: calc(var(--hdr) + 1.2rem); background: var(--card); border-radius: var(--r); }
.aside-card h3 { font-size: 1.25rem; margin-bottom: .65rem; }
.aside-card > p { color: var(--muted); margin-bottom: 1.4rem; font-size: .96rem; }
.aside-list { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1rem; display: grid; }
.aside-list a { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; color: var(--muted);
  font-size: .95rem; transition: color .25s, gap .25s; }
.aside-list a:hover { color: var(--red); gap: .9rem; }
.aside-list svg { width: 1em; height: 1em; opacity: .55; flex: none; }
.aside-list a .dir { direction: ltr; font-family: var(--f-mono); font-size: .9rem; }

/* full-bleed image */
.shot { position: relative; display: block; cursor: zoom-in; overflow: hidden; background: var(--c-shade); }
.shot img { width: 100%; height: clamp(320px, 60vw, 720px); object-fit: cover; transition: transform 1s var(--ease); }
.shot:hover img { transform: scale(1.03); }

/* ---------------------------------------------------------------- contact - */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.2rem, 6vw, 5rem); align-items: start; }
.cinfo__item { display: flex; gap: 1.05rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.cinfo__item:first-of-type { border-top: 2px solid var(--ink); }
.cinfo__ic { width: 44px; height: 44px; display: grid; place-items: center; color: var(--red); flex: none;
  border: 1px solid var(--line-2); border-radius: 50%; }
.cinfo__ic svg { width: 1.25em; height: 1.25em; }
.cinfo__item h4 { font-weight: 700; font-size: .8rem; color: var(--faint); margin-bottom: .3rem; }
.cinfo__item a, .cinfo__item p { color: var(--ink); font-weight: 600; }
.cinfo__item a[dir="ltr"] { font-family: var(--f-mono); font-size: .98rem; }
.cinfo__item a:hover { color: var(--red); }
.map { margin-top: 1.7rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); }
.map iframe { display: block; width: 100%; height: 260px; border: 0; filter: grayscale(.5) contrast(1.05); }
.map__cta { display: flex; margin-top: 1rem; }

.form { border: 1px solid var(--line); padding: clamp(1.8rem, 3.5vw, 2.8rem); background: var(--card); border-radius: var(--r); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: .5rem; }
.field label span { color: var(--red); }
.field input, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: .9rem 1.05rem; color: var(--ink); font-size: .98rem;
  transition: border-color .25s, box-shadow .25s; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 12%, transparent); }
.field textarea { min-height: 150px; resize: vertical; }

/* ---------------------------------------------------------------- footer -- */
.ftr { background: var(--c-mist); color: var(--c-ink); padding-block: clamp(3.2rem, 6vw, 5rem) 0; position: relative;
  border-top: 1px solid var(--c-line); }
.ftr__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.6rem, 5vw, 4rem); }
.ftr__brand img { height: 52px; width: auto; margin-bottom: 1.3rem; }
.ftr__brand p { color: var(--c-muted); font-size: .94rem; max-width: 34ch; }
.ftr__parent { margin-top: 1.3rem; display: inline-flex; align-items: center; gap: .55rem;
  font-size: .85rem; font-weight: 500; color: var(--c-faint); }
.ftr__parent b { color: var(--red); }
.ftr__col h3 { font-weight: 700; font-size: .82rem; color: var(--c-faint); margin-bottom: 1.1rem; }
.ftr__col ul { display: grid; gap: .65rem; }
.ftr__col a { color: var(--c-ink-2); font-size: .95rem; transition: color .2s; }
.ftr__col a:hover { color: var(--red); }
.ftr__col a[dir="ltr"] { font-family: var(--f-mono); font-size: .88rem; }
.ftr__social { display: flex; gap: .7rem; margin-top: .4rem; }
.ftr__social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--c-line-2);
  border-radius: 50%; color: var(--c-ink-2); transition: all .3s var(--ease); }
.ftr__social a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-3px); }
.ftr__social svg { width: 18px; height: 18px; }
.ftr__bar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.6rem;
  border-top: 1px solid var(--c-line); }
.ftr__bar p { font-size: .8rem; color: var(--c-muted); }
.ftr__bar .en { font-family: var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 860px) { .ftr__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr__top { grid-template-columns: 1fr; } }

/* --------------------------------------------------- floating whatsapp --- */
.wa-float { position: fixed; inset-block-end: clamp(1.1rem, 3vw, 1.9rem); inset-inline-start: clamp(1.1rem, 3vw, 1.9rem);
  z-index: 150; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 26px rgba(37,211,102,.4);
  transition: transform .3s var(--ease); }
.wa-float svg { width: 29px; height: 29px; position: relative; z-index: 1; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366;
  z-index: 0; animation: wa-pulse 2.8s var(--ease) infinite; }
.wa-float:hover { transform: scale(1.07); }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }
@media (max-width: 560px) { .wa-float { width: 52px; height: 52px; } .wa-float svg { width: 26px; height: 26px; } }

/* ----------------------------------------------------------------- reveal - */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .07s; }
[data-reveal][data-delay="2"] { transition-delay: .14s; }
[data-reveal][data-delay="3"] { transition-delay: .21s; }
[data-reveal][data-delay="4"] { transition-delay: .28s; }
.fade-up { opacity: 0; transform: translateY(22px); }
.is-loaded .fade-up { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.is-loaded .fade-up.d1 { transition-delay: .12s; }
.is-loaded .fade-up.d2 { transition-delay: .24s; }
.is-loaded .fade-up.d3 { transition-delay: .36s; }
.is-loaded .fade-up.d4 { transition-delay: .48s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .fade-up { opacity: 1 !important; transform: none !important; }
  .hero__bg img { transform: scale(1.02) !important; }
}

/* ------------------------------------------------------------- GLightbox -- */
a.glightbox { display: block; }
.figure a.glightbox { height: 100%; }
.glightbox-clean .gslide-title { font-family: var(--f-display); }
.glightbox-clean .gslide-desc { font-family: var(--f-sans); }
.gbtn svg, .gnext svg, .gprev svg, .gclose svg { color: #fff; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .detail, .svc-intro { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .intro__grid { grid-template-columns: 1fr; gap: 2.4rem; }
}
@media (max-width: 900px) {
  :root { --hdr: 70px; }
  .nav { position: fixed; inset: var(--hdr) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-paper);
    border-bottom: 1px solid var(--c-line); padding: .5rem var(--gut) 1.6rem; box-shadow: 0 26px 44px rgba(20,24,30,.13);
    transform: translateY(-14px); opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 1rem .2rem; font-size: 1.1rem; color: var(--c-ink-2); border-bottom: 1px solid var(--c-line); text-shadow: none; }
  .nav__link span { color: var(--red); }
  .nav__link.is-active::after { display: none; }
  .nav__toggle { display: inline-flex; }
  .hdr__cta { display: none; }
  .split, .contact-grid, .closing .wrap { grid-template-columns: 1fr; }
  .is-nav-open { overflow: hidden; }
}
@media (max-width: 760px) {
  .works { gap: 1.4rem; }
  .work, .work--lg, .work--sm { grid-column: span 12; }
}
@media (max-width: 560px) {
  :root { --sec: 4.2rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .svcrow { grid-template-columns: auto 1fr auto; gap: 1rem; }
  .svcrow__en { display: none; }
}
