/*
Theme Name: DPSC
Theme URI: https://dpscfab.com
Author: DPSC
Description: Fast theme for Dynamic Point Steel Constructions Contracting LLC, with a quote landing page, services, project gallery, area pages, and blog.
Version: 2.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: dpsc
*/

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo.woff2") format("woff2");
}

:root {
  --ink: #0d0e10;
  --ink-2: #16181c;
  --ink-3: #22252b;
  --steel: #8b919b;
  --muted: #5d6169;
  --line: #e3e1dc;
  --line-dark: rgba(255, 255, 255, 0.12);
  --paper: #f6f5f2;
  --white: #ffffff;
  --red: #d0121a;
  --red-dark: #a50e15;
  --glow: rgba(208, 18, 26, 0.35);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header: 4.5rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-stretch: 112%;
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }

::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.skip:focus { top: 1rem; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--red);
  --fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--bg);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 650;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--red-dark);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px var(--glow); }
.btn:hover::before { transform: translateY(0); }
.btn svg { flex: none; transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-line { --bg: transparent; --fg: var(--ink); border-color: rgba(13, 14, 16, 0.25); }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: #fff; border-color: var(--ink); box-shadow: none; }

.btn-ghost { --bg: rgba(255, 255, 255, 0.06); --fg: #fff; border-color: rgba(255, 255, 255, 0.28); backdrop-filter: blur(6px); }
.btn-ghost::before { background: #fff; }
.btn-ghost:hover { color: var(--ink); box-shadow: none; }

.btn-wa { --bg: #1fa855; }
.btn-wa::before { background: #178a45; }
.btn-small { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow svg { transition: transform 0.35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Kicker and section heads ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 1.8rem; height: 2px; background: currentColor; }
.kicker.light { color: #fff; }
.kicker.light::before { background: var(--red); }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section.tight { padding-top: 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .muted, .section-dark .lede { color: rgba(255, 255, 255, 0.68); }
.section-white { background: #fff; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head h2 { max-width: 18ch; margin: 0; }
.section-head p { max-width: 42ch; margin: 0; color: var(--muted); }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.65); }
.idx, .section-head .idx { display: block; margin-bottom: 0.8rem; color: var(--steel); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; }

.lede { font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }

/* ---------- Top bar and header ---------- */

.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.5rem; }
.topbar p { margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-social { display: inline-flex; align-items: center; }
.hours { margin: 1rem 0 0; color: var(--muted); font-size: 0.95rem; }
.hours strong { display: block; color: var(--ink); }
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1.25rem 0; }
.follow span { margin-right: 0.25rem; color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.follow a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: border-color 0.25s, color 0.25s; }
.follow a:hover { border-color: var(--red); color: var(--red); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 242, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
  view-transition-name: site-header;
}
.is-scrolled .site-header { border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(0, 0, 0, 0.35); }

.bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(100% - 2 * var(--gutter), 1400px);
  min-height: var(--header);
  margin-inline: auto;
}
.logo { display: inline-flex; flex: none; }
.logo img { width: auto; height: 36px; }
.custom-logo-link img { width: auto; max-height: 40px; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 0.2rem; margin: 0; padding: 0; list-style: none; }
.site-nav li { position: relative; }
.site-nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 560;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a { background: rgba(13, 14, 16, 0.06); }
.site-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0.4em; height: 0.4em;
  margin-left: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.2em) rotate(45deg);
}
.site-nav .sub-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: -0.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(15rem, 1fr));
  gap: 0.1rem;
  padding: 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.site-nav .sub-menu a { border-radius: 10px; font-size: 0.92rem; }
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.site-nav + .header-actions { margin-left: 0.5rem; }
.dpsc-focus .header-actions { margin-left: auto; }

.contact-pop { position: relative; }
.contact-pop summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(13, 14, 16, 0.18);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.contact-pop summary::-webkit-details-marker { display: none; }
.contact-pop summary:hover { border-color: var(--ink); }
.contact-pop .sum-wa { color: #148a43; }
.contact-pop .pop {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  display: grid;
  min-width: 15rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35);
  animation: pop-in 0.3s var(--ease);
}
.contact-pop .pop a { padding: 0.6rem 0.8rem; border-radius: 10px; text-decoration: none; font-weight: 560; }
.contact-pop .pop a:hover { background: var(--paper); }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px); } }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid rgba(13, 14, 16, 0.18);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.4s var(--ease), background 0.3s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

/* Header sits on the dark hero until the page scrolls. */
.dark-hero:not(.is-scrolled):not(.nav-open) .site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.dark-hero:not(.is-scrolled):not(.nav-open) .site-nav a:hover,
.dark-hero:not(.is-scrolled):not(.nav-open) .site-nav .current-menu-item > a,
.dark-hero:not(.is-scrolled):not(.nav-open) .site-nav .current-menu-ancestor > a { background: rgba(255, 255, 255, 0.12); }
.dark-hero:not(.is-scrolled):not(.nav-open) .site-nav .sub-menu { color: var(--ink); }
.dark-hero:not(.is-scrolled):not(.nav-open) .contact-pop summary,
.dark-hero:not(.is-scrolled):not(.nav-open) .nav-toggle { border-color: rgba(255, 255, 255, 0.3); }
.dark-hero:not(.is-scrolled):not(.nav-open) .contact-pop .sum-wa { color: #4ade80; }
.dark-hero:not(.is-scrolled):not(.nav-open) .contact-pop .pop { color: var(--ink); }
.dark-hero:not(.is-scrolled):not(.nav-open) .nav-toggle span,
.dark-hero:not(.is-scrolled):not(.nav-open) .nav-toggle span::before,
.dark-hero:not(.is-scrolled):not(.nav-open) .nav-toggle span::after { background: #fff; }

/* ---------- Breadcrumbs ---------- */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted);
}
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.page-hero .crumbs ol, .post-hero .crumbs ol { color: rgba(255, 255, 255, 0.65); }

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(92svh, 900px);
  margin-top: calc(-1 * var(--header));
  padding: calc(var(--header) + 4rem) 0 clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 18s var(--ease) both;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 14, 16, 0.55) 0%, rgba(13, 14, 16, 0.2) 35%, rgba(13, 14, 16, 0.92) 100%),
    linear-gradient(90deg, rgba(13, 14, 16, 0.75) 0%, rgba(13, 14, 16, 0) 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, transparent, #000 60%, transparent);
}
.hero h1 { max-width: 16ch; margin-bottom: 1.5rem; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; animation-delay: calc(0.12s + var(--i, 0) * 0.1s); }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-copy > p { max-width: 54ch; color: rgba(255, 255, 255, 0.78); font-size: clamp(1.05rem, 1.4vw, 1.22rem); animation: fade-up 1s var(--ease) 0.5s both; }
.hero .kicker { animation: fade-up 0.9s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero .hero-actions { animation: fade-up 1s var(--ease) 0.65s both; }

.hero-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line-dark);
  animation: fade-up 1s var(--ease) 0.85s both;
}
.hero-foot div { padding: 1.4rem 1.4rem 0 0; }
.hero-foot div + div { padding-left: 1.4rem; border-left: 1px solid var(--line-dark); }
.hero-foot strong { display: block; font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-stretch: 115%; font-weight: 780; line-height: 1; letter-spacing: -0.03em; }
.hero-foot strong sup { color: var(--red); font-size: 0.55em; vertical-align: top; }
.hero-foot span { display: block; margin-top: 0.5rem; color: rgba(255, 255, 255, 0.62); font-size: 0.88rem; }

@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Marquee ---------- */

.marquee {
  display: flex;
  overflow: hidden;
  padding-block: 1.35rem;
  background: var(--red);
  color: #fff;
  user-select: none;
}
.marquee-track {
  display: flex;
  flex: none;
  gap: 2.5rem;
  padding-right: 2.5rem;
  animation: marquee 38s linear infinite;
}
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-stretch: 115%;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee span::after { content: ""; width: 0.55rem; height: 0.55rem; background: #fff; transform: rotate(45deg); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Intro and values ---------- */

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.intro-media { position: relative; }
.intro-media .main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.4; }
.intro-media .main img { width: 100%; height: 100%; object-fit: cover; }
.intro-media .inset {
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  width: 46%;
  border: 6px solid var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
}
.intro-badge {
  position: absolute;
  left: -1rem;
  top: 2rem;
  padding: 1.1rem 1.3rem;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -20px var(--glow);
}
.intro-badge strong { display: block; font-size: 2.6rem; font-stretch: 118%; line-height: 1; }
.intro-badge span { font-size: 0.85rem; opacity: 0.85; }

.ticks { margin: 1.5rem 0; padding: 0; list-style: none; display: grid; gap: 0.85rem; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(3rem, 6vw, 5rem);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.value { padding: 2rem 1.6rem; background: var(--paper); transition: background 0.4s; }
.value:hover { background: #fff; }
.value .num { display: block; margin-bottom: 2.5rem; color: var(--red); font-weight: 700; font-size: 0.9rem; }
.value h3 { margin-bottom: 0.5rem; }
.value p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Service grid ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-2);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.svc img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s;
  filter: saturate(0.85);
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 14, 16, 0.05) 20%, rgba(13, 14, 16, 0.92) 100%);
  transition: background 0.5s;
}
.svc:hover img { transform: scale(1.07); filter: saturate(1); }
.svc:hover::before { background: linear-gradient(180deg, rgba(13, 14, 16, 0.25) 0%, rgba(13, 14, 16, 0.95) 100%); }
.svc .num { padding: 1.4rem 1.6rem 0; font-size: 0.85rem; font-weight: 700; color: rgba(255, 255, 255, 0.7); }
.svc-body { margin-top: auto; padding: 1.6rem; }
.svc h3 { margin-bottom: 0.5rem; font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
.svc p {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  opacity: 0;
  transition: max-height 0.6s var(--ease), opacity 0.5s, margin 0.5s;
}
.svc:hover p, .svc:focus-visible p { max-height: 8rem; margin-bottom: 1rem; opacity: 1; }
.svc .go {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-top: 0.8rem;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transition: background 0.35s, color 0.35s, transform 0.5s var(--ease);
}
.svc:hover .go { background: var(--red); color: #fff; transform: rotate(-45deg); }
.svc-grid .svc:nth-child(1) { grid-column: span 2; }
.svc-grid .svc:nth-child(1) p { max-height: 8rem; margin-bottom: 1rem; opacity: 1; }

/* Plain service cards (archives) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -35px rgba(0, 0, 0, 0.35); border-color: transparent; }
.card .media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .media img { transform: scale(1.06); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.6rem; }
.card-body h3, .card-body h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card-body p { color: var(--muted); font-size: 0.96rem; }
.card .meta { margin-bottom: 0.6rem; color: var(--steel); font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.card .meta b { color: var(--red); font-weight: 700; }
.card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 650; font-size: 0.93rem; }
.card .more svg { transition: transform 0.35s var(--ease); }
.card:hover .more svg { transform: translateX(4px); }

/* ---------- Projects ---------- */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 15rem;
  gap: 1rem;
}
.proj {
  position: relative;
  grid-column: span 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-3);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.proj:nth-child(6n + 1) { grid-column: span 7; grid-row: span 2; }
.proj:nth-child(6n + 2) { grid-column: span 5; }
.proj:nth-child(6n + 3) { grid-column: span 5; }
.proj img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.proj::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 14, 16, 0.9));
}
.proj:hover img { transform: scale(1.07); }
.proj-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem 1.4rem; transition: transform 0.5s var(--ease); }
.proj-info small { display: block; margin-bottom: 0.3rem; color: rgba(255, 255, 255, 0.7); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
.proj-info h3 { margin: 0; font-size: 1.15rem; }
.proj:nth-child(6n + 1) .proj-info h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.proj:hover .proj-info { transform: translateY(-6px); }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filters button {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.proj-grid .proj.is-hidden { display: none; }
.proj-grid.is-filtered { grid-auto-rows: 17rem; }
.proj-grid.is-filtered .proj { grid-column: span 4; grid-row: auto; }

/* ---------- Stats band ---------- */

.stats-band { position: relative; overflow: hidden; isolation: isolate; }
.stats-band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.stats-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink) 30%, rgba(13, 14, 16, 0.6)); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 3rem; background: var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.stat { padding: 2rem 1.6rem; background: rgba(13, 14, 16, 0.75); backdrop-filter: blur(6px); }
.stat strong { display: block; font-size: clamp(2.4rem, 5vw, 4rem); font-stretch: 118%; font-weight: 780; line-height: 1; letter-spacing: -0.03em; }
.stat strong i { font-style: normal; color: var(--red); }
.stat span { display: block; margin-top: 0.75rem; color: rgba(255, 255, 255, 0.65); font-size: 0.95rem; }

/* ---------- Process ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 2rem 1.5rem 1.75rem; border-top: 2px solid var(--line); }
.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 1.2s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.15s + 0.2s);
}
.step.is-in::before { width: 100%; }
.step .num { display: block; margin-bottom: 1.5rem; font-size: 3rem; font-stretch: 120%; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--steel); }
.step p { margin: 0; color: var(--muted); }
.section-dark .step { border-color: var(--line-dark); }
.section-dark .step p { color: rgba(255, 255, 255, 0.65); }

/* ---------- Split feature ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin-top: 2rem; }
.feature-list h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.05rem; margin-bottom: 0.35rem; }
.feature-list h3::before { content: ""; width: 0.55rem; height: 0.55rem; background: var(--red); transform: rotate(45deg); flex: none; }
.feature-list p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.section-dark .feature-list p { color: rgba(255, 255, 255, 0.65); }

/* ---------- Areas ---------- */

.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.area {
  position: relative;
  padding: 2rem 1.75rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.area::before {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s;
}
.area:hover { border-color: rgba(255, 255, 255, 0.35); transform: translateY(-4px); }
.area:hover::before { opacity: 1; }
.area small { color: var(--red); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; }
.area h3 { margin: 0.6rem 0 0.6rem; font-size: 1.5rem; }
.area p { color: rgba(255, 255, 255, 0.65); font-size: 0.96rem; }

/* ---------- Client rail ---------- */

.logo-rail {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track { display: flex; gap: 1rem; width: max-content; animation: marquee 50s linear infinite; }
.logo-rail:hover .logo-track { animation-play-state: paused; }
.client {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: none;
  padding: 0.75rem 1.25rem 0.75rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.client img { width: 88px; height: 44px; object-fit: contain; }
.client span { display: grid; font-size: 0.8rem; color: var(--muted); line-height: 1.3; }
.client b { color: var(--ink); font-size: 0.95rem; }

/* ---------- Reviews ---------- */

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.review {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.review:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.4); }
.review .stars { height: 2.2rem; margin-bottom: 0.5rem; color: var(--red); font-size: 4rem; font-weight: 800; line-height: 1; }
.review p { flex: 1; font-size: 1.02rem; }
.review footer { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; font-weight: 700; }
.review footer span {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
}

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-grid > div:first-child { position: sticky; top: calc(var(--header) + 2rem); }
.faqs { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq summary {
  position: relative;
  padding: 1.35rem 3rem 1.35rem 0;
  font-size: 1.08rem;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after,
.faq summary::before {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 0.9rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.faq summary::before { transform: rotate(90deg); }
.faq[open] summary::before { transform: rotate(0); }
.faq summary:hover { color: var(--red); }
.faq::details-content { height: 0; overflow: clip; transition: height 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
.faq[open]::details-content { height: auto; }
.faq .answer { padding-bottom: 1.4rem; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }
.section-dark .faqs, .section-dark .faq { border-color: var(--line-dark); }
.section-dark .faq .answer { color: rgba(255, 255, 255, 0.68); }

/* ---------- Blog cards ---------- */

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.posts-grid .card:first-child.feature { grid-column: span 3; flex-direction: row; }
.posts-grid .card.feature .media { flex: 1.2; aspect-ratio: auto; min-height: 22rem; }
.posts-grid .card.feature .card-body { flex: 1; padding: clamp(1.5rem, 4vw, 3rem); justify-content: center; }
.posts-grid .card.feature h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }

/* ---------- Map and contact ---------- */

.map-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) contrast(1.05); }

.contact-cards { display: grid; gap: 0.75rem; margin: 1.5rem 0; }
.line-list { display: grid; gap: 0.6rem; margin: 1.25rem 0; padding: 0; list-style: none; }
.line-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.75rem 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.line-list li > span { display: grid; margin-right: auto; line-height: 1.25; }
.line-list small { color: var(--muted); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.line-list strong { font-size: 1.02rem; }
.mini {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.mini:hover { transform: translateY(-2px); background: var(--red); }
.mini svg, .contact-pop summary svg, .dock svg { flex: none; }
.line-list strong { white-space: nowrap; }
.sidecard .line-list li { flex-wrap: wrap; row-gap: 0.5rem; }
.sidecard .line-list li > span { flex: 1 0 100%; }
.mini.wa { background: #1fa855; }
.mini.wa:hover { background: #178a45; }
.section-dark .line-list li { background: rgba(255, 255, 255, 0.04); border-color: var(--line-dark); }
.section-dark .line-list small { color: rgba(255, 255, 255, 0.55); }

.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.location { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.location .map-frame { border-radius: 0; aspect-ratio: 16 / 9; }
.location-body { padding: 1.5rem 1.6rem 1.75rem; }
.location-body .kicker { margin-bottom: 0.6rem; }
.location-body h3 { margin-bottom: 0.3rem; }
.location-body .ar { margin: 0 0 0.9rem; color: var(--muted); font-family: "Geeza Pro", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif; text-align: left; }
.location-body .addr { display: flex; gap: 0.45rem; align-items: flex-start; font-weight: 560; }
.location-body .addr svg { flex: none; margin-top: 0.25em; color: var(--red); }
.foot-place { margin-bottom: 0.6rem; }
.foot-place b { display: block; color: #fff; font-weight: 650; }

/* ---------- CTA band ---------- */

.cta {
  position: relative;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  padding: clamp(2.5rem, 6vw, 5rem);
  border-radius: var(--radius-lg);
  background: var(--red);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 85% 50%, #000, transparent 70%);
}
.cta-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta h2 { margin-bottom: 0.75rem; max-width: 16ch; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.85); max-width: 46ch; }
.cta .hero-actions { justify-content: flex-end; margin: 0; }
.cta .btn { --bg: #fff; --fg: var(--ink); }
.cta .btn::before { background: var(--ink); }
.cta .btn:hover { color: #fff; }
.cta .btn-ghost { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cta .btn-ghost::before { background: #fff; }
.cta .btn-ghost:hover { color: var(--ink); }

/* ---------- Inner page hero ---------- */

.page-hero {
  position: relative;
  margin-top: calc(-1 * var(--header));
  padding: calc(var(--header) + clamp(3rem, 7vw, 6rem)) 0 clamp(3rem, 6vw, 5rem);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  animation: hero-zoom 14s var(--ease) both;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(13, 14, 16, 0.95) 20%, rgba(13, 14, 16, 0.4)), linear-gradient(0deg, rgba(13, 14, 16, 0.7), transparent 50%);
}
.page-hero h1 { max-width: 20ch; margin: 1.5rem 0 1rem; font-size: clamp(2.3rem, 5.4vw, 4.4rem); animation: fade-up 0.9s var(--ease) both; }
.page-hero .lede { max-width: 58ch; color: rgba(255, 255, 255, 0.75); animation: fade-up 0.9s var(--ease) 0.15s both; }
.page-hero .kicker { margin: 0; animation: fade-up 0.9s var(--ease) both; }
.page-hero .hero-actions { animation: fade-up 0.9s var(--ease) 0.3s both; }
.page-hero .facts { animation: fade-up 0.9s var(--ease) 0.35s both; }
.facts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; padding: 0; list-style: none; }
.facts li { padding: 0.5rem 0.95rem; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(255, 255, 255, 0.05); font-size: 0.88rem; }
.facts b { color: rgba(255, 255, 255, 0.55); font-weight: 600; margin-right: 0.35rem; }

.search-form { display: flex; gap: 0.5rem; max-width: 32rem; margin-top: 1.5rem; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; min-height: 3rem; padding: 0.6rem 1rem; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #fff; }
.search-form .search-submit { padding: 0 1.3rem; border: 0; border-radius: 999px; background: var(--red); color: #fff; font-weight: 650; cursor: pointer; }

/* ---------- Content layout ---------- */

.layout { padding-block: clamp(3rem, 7vw, 5.5rem); }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.aside { position: sticky; top: calc(var(--header) + 1.5rem); display: grid; gap: 1.25rem; }
.sidecard { padding: 1.75rem; border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.sidecard h2, .sidecard h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.sidecard p { color: rgba(255, 255, 255, 0.7); font-size: 0.96rem; }
.sidecard .btn { width: 100%; margin-top: 0.4rem; }
.sidecard .line-list li { background: rgba(255, 255, 255, 0.05); border-color: var(--line-dark); }
.sidecard .line-list small { color: rgba(255, 255, 255, 0.55); }
.sidelist { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.sidelist h3 { font-size: 1rem; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-stretch: 100%; }
.sidelist ul { margin: 0; padding: 0; list-style: none; }
.sidelist li + li { border-top: 1px solid var(--line); }
.sidelist a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; text-decoration: none; font-weight: 560; font-size: 0.97rem; transition: color 0.25s, padding 0.35s var(--ease); }
.sidelist a:hover { color: var(--red); padding-left: 0.35rem; }
.sidelist a[aria-current] { color: var(--red); }

.entry { max-width: 46rem; font-size: 1.1rem; line-height: 1.75; }
.entry > * + * { margin-top: 0; }
.entry h2 { margin: 2.4rem 0 0.9rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); scroll-margin-top: calc(var(--header) + 1.5rem); }
.entry h3 { margin: 1.8rem 0 0.6rem; font-size: 1.3rem; }
.entry p, .entry ul, .entry ol { margin-bottom: 1.15rem; }
.entry ul, .entry ol { padding-left: 1.3rem; }
.entry li { margin-bottom: 0.45rem; }
.entry li::marker { color: var(--red); }
.entry a { color: var(--red-dark); font-weight: 560; }
.entry strong { font-weight: 700; }
.entry img, .entry figure img { border-radius: var(--radius); }
.entry figure { margin: 2rem 0; }
.entry figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.88rem; }
.entry blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 3px solid var(--red);
  font-size: 1.25rem;
  font-weight: 560;
  line-height: 1.5;
}
.entry table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: 0.97rem; }
.entry th, .entry td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry th { background: var(--ink); color: #fff; font-weight: 650; }
.entry tr:nth-child(even) td { background: rgba(255, 255, 255, 0.6); }
.entry .callout {
  margin: 2rem 0;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
}
.entry .callout p:last-child { margin: 0; }
.entry .table-wrap { overflow-x: auto; }

.toc { padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.toc h3 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-stretch: 100%; }
.toc ol { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; font-size: 0.93rem; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--red); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(8rem, 14vw, 12rem); gap: 0.75rem; margin: 0 0 2.5rem; }
.gallery button { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), opacity 0.4s; }
.gallery button:hover img { transform: scale(1.06); }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; }
.gallery button:only-child { grid-column: 1 / -1; grid-row: span 3; }

.lightbox {
  width: min(96vw, 1200px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
}
.lightbox::backdrop { background: rgba(13, 14, 16, 0.9); backdrop-filter: blur(4px); }
.lightbox[open] { animation: fade-up 0.4s var(--ease); }
.lightbox img { width: 100%; max-height: 86vh; object-fit: contain; border-radius: var(--radius); }
.lightbox form { position: absolute; top: 0.5rem; right: 0.5rem; }
.lightbox button { width: 2.8rem; height: 2.8rem; border: 0; border-radius: 50%; background: #fff; font-size: 1.4rem; cursor: pointer; }

.post-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; animation: fade-up 0.9s var(--ease) 0.2s both; }
.post-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.post-cover { margin-top: calc(-1 * clamp(2rem, 5vw, 4rem)); }
.post-cover img { width: 100%; max-height: 34rem; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.6); }
.post-cover.is-small img { width: auto; max-width: 100%; max-height: 30rem; margin-inline: auto; }
.post-cover { animation: fade-up 1s var(--ease) 0.25s both; }
.post-hero { padding-bottom: clamp(4rem, 8vw, 7rem); }

.progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  background: var(--red);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

.related { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }

.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2.5rem; }
.page-numbers { display: grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; font-weight: 600; }
.page-numbers.current, .page-numbers:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Org chart ---------- */

.org { display: grid; gap: 0.75rem; justify-items: center; text-align: center; }
.org-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.org span {
  display: inline-block;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  font-size: 0.92rem;
}
.org .lead span { background: var(--red); border-color: var(--red); }
.org-down { width: 1px; height: 1.25rem; background: var(--line-dark); }

.panel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.panel { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.panel h3 { margin-bottom: 0.6rem; }
.panel p { margin: 0; color: var(--muted); }
.panel .num { display: block; margin-bottom: 1.25rem; color: var(--red); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; }
.section-dark .panel { background: rgba(255, 255, 255, 0.03); border-color: var(--line-dark); }
.section-dark .panel p { color: rgba(255, 255, 255, 0.65); }

/* ---------- Quote landing ---------- */

.quote-top { padding-bottom: clamp(3rem, 6vw, 5rem); }
.quote-top > img { opacity: 0.35; }
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 33rem); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.quote-copy { padding-top: clamp(1rem, 3vw, 2.5rem); }
.quote-copy h1 { max-width: 14ch; margin-top: 0.5rem; }
.quote-copy .lede { max-width: 34rem; }
.trust { display: grid; gap: 0.8rem; margin: 2rem 0; padding: 0; list-style: none; animation: fade-up 0.9s var(--ease) 0.25s both; }
.trust li { position: relative; padding-left: 2rem; color: rgba(255, 255, 255, 0.88); font-weight: 560; }
.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}
.talk { padding-top: 1.75rem; border-top: 1px solid var(--line-dark); animation: fade-up 0.9s var(--ease) 0.35s both; }
.talk p { margin-bottom: 0.25rem; color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.talk .hero-actions { margin-top: 0.75rem; }

.quote-card { color: var(--ink); }
.form-head { padding-bottom: 1.1rem; margin-bottom: 0.25rem; border-bottom: 1px solid var(--line); }
.form-head p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.or-wa { margin-top: 1rem; text-align: center; }
.or-wa > span { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.9rem; color: var(--steel); font-size: 0.85rem; }
.or-wa > span::before, .or-wa > span::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.next-steps > div { padding: 2rem 1.75rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.next-steps span { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-bottom: 1.5rem; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; }
.next-steps p { margin: 0; color: var(--muted); }

.quote-work { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.quote-work figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.quote-work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.quote-work figcaption { padding: 0.85rem 1rem 1rem; font-size: 0.92rem; font-weight: 600; line-height: 1.35; }

.thanks-hero { min-height: 72svh; display: grid; align-items: center; }
.thanks > * { max-width: 46rem; }
.thanks h1 { margin-top: 0.75rem; }
.tick { width: 4.5rem; height: 4.5rem; margin-bottom: 1.5rem; }
.tick svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tick circle { stroke: var(--red); stroke-width: 3; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 0.9s var(--ease) 0.1s forwards; }
.tick path { stroke: #fff; stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.5s var(--ease) 0.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fine.light { color: rgba(255, 255, 255, 0.55); margin-top: 1rem; }
.address-line { color: var(--muted); font-size: 0.95rem; }

.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.45);
  animation: fade-up 0.9s var(--ease) 0.2s both;
}
.form-card h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 0.3rem; }
.quote-form { display: grid; gap: 0.95rem; margin-top: 1.25rem; }
.quote-form label { display: grid; gap: 0.35rem; font-size: 0.88rem; font-weight: 650; }
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.quote-form textarea { min-height: 7.5rem; resize: vertical; }
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus { outline: 0; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(208, 18, 26, 0.1); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 0.85rem 1rem; border-radius: 12px; background: #fdecec; color: var(--red-dark); font-weight: 600; }
.fine { color: var(--muted); font-size: 0.86rem; }
.fine a { color: var(--ink); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* ---------- Footer ---------- */

.site-footer { position: relative; background: var(--ink); color: rgba(255, 255, 255, 0.7); overflow: hidden; }
.footer-cta { padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 6vw, 4rem); border-bottom: 1px solid var(--line-dark); }
.footer-cta .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; }
.footer-cta h2 { margin: 0; max-width: 14ch; color: #fff; font-size: clamp(2.4rem, 6vw, 5rem); }
.footer-cta h2 em { font-style: normal; color: var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-grid strong { display: block; margin-bottom: 1rem; color: #fff; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.footer-grid a { text-decoration: none; transition: color 0.25s; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: 0.95rem; }
.footer-logo img { height: 72px; width: auto; margin-bottom: 1.25rem; }
.socials { display: flex; gap: 0.5rem; margin-top: 1rem; }
.socials a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line-dark); border-radius: 50%; transition: background 0.3s, border-color 0.3s; }
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line-dark); font-size: 0.85rem; }
.legal a { text-decoration: none; transition: color 0.25s; }
.legal a:hover { color: #fff; }
.credit a { color: #fff; font-weight: 600; border-bottom: 1px solid var(--red); }

.giant {
  margin: 0 0 -0.18em;
  color: transparent;
  font-size: clamp(5rem, 22vw, 19rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.05em;
  text-align: center;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
  user-select: none;
}

.dock { display: none; }

/* ---------- Reveal animations ---------- */

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 0.09s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-img img { clip-path: inset(0 0 100% 0); transform: scale(1.15); transition: clip-path 1.3s var(--ease), transform 1.6s var(--ease); transition-delay: calc(var(--d, 0) * 0.1s); }
.reveal-img.is-in img { clip-path: inset(0 0 0 0); transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .reveal-img img { clip-path: none; transform: none; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.28s var(--ease) both vt-out; }
::view-transition-new(root) { animation: 0.5s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-img img { clip-path: none; transform: none; }
  .marquee-track, .logo-track { animation: none; }
}

/* ---------- Gallery ---------- */

.filters button span { margin-left: 0.3rem; opacity: 0.6; font-size: 0.85em; }
.photo-wall { columns: 4 240px; column-gap: 0.85rem; }
.photo {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-3);
  cursor: zoom-in;
  break-inside: avoid;
  animation: fade-up 0.7s var(--ease) both;
}
.photo img { width: 100%; height: auto; transition: transform 1s var(--ease), filter 0.5s; }
.photo:hover img { transform: scale(1.05); filter: brightness(0.85); }
.photo-tag {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(13, 14, 16, 0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s, transform 0.35s var(--ease);
}
.photo:hover .photo-tag, .photo:focus-visible .photo-tag { opacity: 1; transform: none; }
.photo.is-hidden { display: none; }

.lightbox .lb-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 3rem; height: 3rem; margin-top: -1.5rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); font-size: 1.4rem; cursor: pointer; }
.lightbox .lb-prev { left: 0.6rem; }
.lightbox .lb-next { right: 0.6rem; }
.lightbox .lb-count { position: absolute; left: 50%; bottom: 0.8rem; transform: translateX(-50%); padding: 0.3rem 0.8rem; border-radius: 999px; background: rgba(13, 14, 16, 0.7); color: #fff; font-size: 0.85rem; }

/* ---------- Company profile ---------- */

.profile-hero h1 { max-width: 22ch; }
.profile-hero .arabic { margin: -0.25rem 0 1.25rem; color: rgba(255, 255, 255, 0.6); font-family: "Geeza Pro", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif; font-size: clamp(1.05rem, 1.8vw, 1.35rem); text-align: left; animation: fade-up 0.9s var(--ease) 0.1s both; }
.cover-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  border-top: 1px solid var(--line-dark);
  animation: fade-up 1s var(--ease) 0.45s both;
}
.cover-facts div { padding: 1.2rem 1.2rem 0 0; }
.cover-facts div + div { padding-left: 1.2rem; border-left: 1px solid var(--line-dark); }
.cover-facts dt { color: rgba(255, 255, 255, 0.5); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }
.cover-facts dd { margin: 0.35rem 0 0; font-weight: 600; }

.doc { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 7vw, 5rem); }
.doc-nav { position: sticky; top: calc(var(--header) + 1.5rem); align-self: start; }
.doc-nav p { margin-bottom: 0.75rem; color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.doc-nav ol { margin: 0 0 1.5rem; padding: 0; list-style: none; counter-reset: ch; border-left: 1px solid var(--line); }
.doc-nav li { counter-increment: ch; }
.doc-nav ol a {
  position: relative;
  display: flex;
  gap: 0.6rem;
  margin-left: -1px;
  padding: 0.42rem 0 0.42rem 1rem;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s, padding 0.35s var(--ease);
}
.doc-nav ol a::before { content: counter(ch, decimal-leading-zero); color: var(--steel); font-size: 0.78rem; font-weight: 700; line-height: 1.7; }
.doc-nav ol a:hover { color: var(--ink); padding-left: 1.25rem; }
.doc-nav ol a.is-active { color: var(--ink); border-color: var(--red); font-weight: 650; }
.doc-nav ol a.is-active::before { color: var(--red); }

.chapter { position: relative; padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header) + 1rem); }
.chapter:first-child { border-top: 0; padding-top: 0; }
.chapter-num {
  display: block;
  margin-bottom: 0.5rem;
  color: transparent;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1.5px var(--red);
}
.chapter h2 { max-width: 20ch; }
.chapter .entry { max-width: 44rem; }
.chapter .lede { max-width: 50rem; }
.chapter > .panel-grid, .chapter > .stat-row { margin-top: 2rem; }
.chapter-dark {
  margin-block: 1rem;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
}
.chapter-dark .org { margin-top: 2rem; }

.profile-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-top: 1.5rem; }

.mission {
  margin: 2.5rem 0 0;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--red);
  color: #fff;
}
.mission .kicker { color: #fff; }
.mission .kicker::before { background: #fff; }
.mission p { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-stretch: 108%; font-weight: 620; line-height: 1.4; letter-spacing: -0.01em; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat-row div { padding: 1.6rem; background: #fff; }
.stat-row strong { display: block; color: var(--red); font-size: clamp(2.2rem, 4vw, 3.2rem); font-stretch: 118%; font-weight: 780; line-height: 1; }
.stat-row span { display: block; margin-top: 0.6rem; color: var(--muted); font-size: 0.93rem; }

.offer-list { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.offer-list li { border-bottom: 1px solid var(--line); }
.offer-list a { display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 1rem; align-items: center; padding: 1.4rem 0.5rem; text-decoration: none; transition: background 0.35s, padding 0.45s var(--ease); }
.offer-list a:hover { background: #fff; padding-left: 1.25rem; }
.offer-list .n { color: var(--red); font-weight: 700; }
.offer-list strong { display: block; margin-bottom: 0.25rem; font-size: 1.2rem; font-stretch: 108%; }
.offer-list span span, .offer-list a > span:nth-child(2) { color: var(--muted); }
.offer-list strong { color: var(--ink); }
.offer-list svg { color: var(--red); transition: transform 0.4s var(--ease); }
.offer-list a:hover svg { transform: translateX(6px); }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.tag-list a { display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.9rem; font-weight: 560; text-decoration: none; transition: border-color 0.25s, color 0.25s; }
.tag-list a:hover { border-color: var(--red); color: var(--red); }

.safety-item { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.safety-item:first-child { padding-top: 0; }
.safety-item .n { color: var(--red); font-weight: 700; font-size: 1.1rem; }
.safety-item h3 { margin-bottom: 0.35rem; }
.safety-item p { margin: 0; }

.flow { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; counter-reset: flow; }
.flow span { counter-increment: flow; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.88rem; font-weight: 600; }
.flow span::before { content: counter(flow); display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--red); font-size: 0.75rem; }

.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.pf { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; text-decoration: none; transition: transform 0.5s var(--ease), box-shadow 0.5s; }
.pf:hover { transform: translateY(-4px); box-shadow: 0 25px 50px -35px rgba(0, 0, 0, 0.45); }
.pf .media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); }
.pf .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pf:hover .media img { transform: scale(1.06); }
.pf > div:last-child { padding: 1rem 1.1rem 1.2rem; }
.pf h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.pf p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.85rem; }
.pf b { color: var(--ink); font-weight: 650; margin-right: 0.25rem; }

.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 2rem; }

.details { width: 100%; margin-top: 2rem; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.details th, .details td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.details th { width: 32%; color: var(--muted); font-size: 0.82rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.details td { font-weight: 560; }
.details td[dir="rtl"] { text-align: right; font-family: "Geeza Pro", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif; }
.details a { text-decoration: none; }
.details a:hover { color: var(--red); }
.closing { max-width: 40rem; margin: 2.5rem 0 1.5rem; font-size: clamp(1.15rem, 2vw, 1.4rem); font-stretch: 105%; font-weight: 560; line-height: 1.45; }

@media (max-width: 1100px) {
  .doc { grid-template-columns: 1fr; }
  .doc-nav { position: static; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
  .doc-nav ol { columns: 2; border: 0; }
  .doc-nav ol a { border: 0; padding-left: 0; }
  .portfolio { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .cover-facts { grid-template-columns: 1fr 1fr; }
  .cover-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .profile-split, .stat-row { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: 1fr 1fr; }
  .details th { width: 40%; }
}

@media (max-width: 560px) {
  .doc-nav ol { columns: 1; }
  .portfolio, .client-grid { grid-template-columns: 1fr; }
  .details th, .details td { display: block; width: 100%; }
  .details th { padding-bottom: 0.2rem; border-bottom: 0; }
  .offer-list a { grid-template-columns: 2.5rem 1fr; }
  .offer-list svg { display: none; }
}

@media print {
  .site-header, .topbar, .dock, .doc-nav, .site-footer, .hero-actions, .progress { display: none !important; }
  .reveal, .reveal-img img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .page-hero { margin-top: 0; }
  .doc { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .header-actions .contact-pop { display: none; }
  .nav-toggle + .site-nav + .header-actions { margin-left: 0.5rem; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-open .site-nav {
    position: fixed;
    inset: var(--header) 0 0 0;
    display: block;
    margin: 0;
    padding: 1.5rem var(--gutter) 6rem;
    background: var(--paper);
    overflow-y: auto;
    animation: menu-in 0.45s var(--ease);
  }
  .nav-open .site-nav ul { flex-direction: column; gap: 0; }
  .nav-open .site-nav > ul > li { border-bottom: 1px solid var(--line); animation: fade-up 0.6s var(--ease) both; }
  .nav-open .site-nav > ul > li:nth-child(2) { animation-delay: 0.04s; }
  .nav-open .site-nav > ul > li:nth-child(3) { animation-delay: 0.08s; }
  .nav-open .site-nav > ul > li:nth-child(4) { animation-delay: 0.12s; }
  .nav-open .site-nav > ul > li:nth-child(5) { animation-delay: 0.16s; }
  .nav-open .site-nav > ul > li:nth-child(6) { animation-delay: 0.2s; }
  .nav-open .site-nav > ul > li:nth-child(7) { animation-delay: 0.24s; }
  .nav-open .site-nav > ul > li > a { padding: 1rem 0; font-size: 1.6rem; font-stretch: 112%; font-weight: 700; border-radius: 0; background: none; }
  .nav-open .site-nav .menu-item-has-children > a::after { display: none; }
  .nav-open .site-nav .sub-menu { position: static; display: grid; grid-template-columns: 1fr 1fr; padding: 0 0 1rem; border: 0; box-shadow: none; background: none; opacity: 1; visibility: visible; transform: none; }
  .nav-open .site-nav .sub-menu a { padding: 0.45rem 0; color: var(--muted); }
  @keyframes menu-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

  .svc-grid, .cards, .posts-grid, .reviews, .areas { grid-template-columns: repeat(2, 1fr); }
  .svc-grid .svc:nth-child(1) { grid-column: span 2; }
  .posts-grid .card:first-child.feature { grid-column: span 2; }
  .values, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .with-aside { grid-template-columns: 1fr; }
  .aside { position: static; }
}

@media (max-width: 800px) {
  :root { --header: 4rem; }
  .topbar { display: none; }
  .header-actions .btn-small { display: none; }
  .dpsc-focus .header-actions .contact-pop { display: block; }
  .hero { min-height: 88svh; }
  .hero-foot { grid-template-columns: 1fr 1fr; }
  .hero-foot div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-foot div:nth-child(n + 3) { border-top: 1px solid var(--line-dark); margin-top: 1.2rem; }
  .intro-grid, .split, .map-grid, .faq-grid, .contact-grid, .quote-layout, .cta-inner { grid-template-columns: 1fr; }
  .next-steps { grid-template-columns: 1fr; }
  .quote-work { grid-template-columns: 1fr 1fr; }
  .faq-grid > div:first-child { position: static; }
  .intro-media .inset { right: 0.5rem; }
  .intro-badge { left: 0.75rem; }
  .cta .hero-actions { justify-content: flex-start; }
  .section-head { flex-direction: column; align-items: start; gap: 1rem; }
  .svc-grid, .cards, .posts-grid, .reviews, .areas, .proof, .panel-grid, .locations { grid-template-columns: 1fr; }
  .svc-grid .svc:nth-child(1), .posts-grid .card:first-child.feature { grid-column: auto; }
  .posts-grid .card.feature { flex-direction: column; }
  .posts-grid .card.feature .media { min-height: 14rem; }
  .svc { min-height: 21rem; }
  .svc p { max-height: 8rem; margin-bottom: 1rem; opacity: 1; }
  .proj-grid, .proj-grid.is-filtered { grid-template-columns: 1fr 1fr; grid-auto-rows: 12rem; }
  .proj, .proj:nth-child(6n + 1), .proj:nth-child(6n + 2), .proj:nth-child(6n + 3), .proj-grid.is-filtered .proj { grid-column: span 1; grid-row: auto; }
  .proj:nth-child(5n + 1) { grid-column: span 2; grid-row: span 1; }
  .feature-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .dock {
    position: fixed;
    left: 0.75rem;
    right: 5.25rem;
    bottom: 0.75rem;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(13, 14, 16, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    animation: fade-up 0.6s var(--ease) 1s both;
  }
  .dock a { display: grid; place-items: center; min-height: 2.9rem; border-radius: 999px; color: #fff; font-weight: 650; font-size: 0.95rem; text-decoration: none; }
  .dock a:nth-child(2) { background: #1fa855; }
  .dock a:last-child { background: var(--red); }
  .site-footer { padding-bottom: 4.5rem; }
}

@media (max-width: 560px) {
  .proj-grid, .proj-grid.is-filtered { grid-template-columns: 1fr; grid-auto-rows: 15rem; }
  .proj:nth-child(5n + 1) { grid-column: auto; }
  .proj-info h3 { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .values, .steps, .stats { grid-template-columns: 1fr; }
  .gallery button:first-child { grid-column: span 2; }
}
