/* ==========================================================================
   شركة ضياء الساحات للمقاولات العامة والاستثمار العقاري
   Identity: logo blue + charcoal, roof chevrons, building stripes, firm corners.
   ========================================================================== */

@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
  src: url("../fonts/readex-pro-arabic-wght-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
  src: url("../fonts/readex-pro-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-200B, U+2012-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #0a53b5;
  --blue-bright: #2a7bef;
  --navy: #0a1d42;
  --navy-deep: #06132d;
  --signal: #8cc1ff;
  --amber: #f6a821;
  --charcoal: #26282c;
  --sky-100: #e6eef9;
  --sky-50: #f4f7fb;
  --ink: #172133;
  --muted: #55627a;
  --line: #d9e2ee;
  --white: #fff;
  --on-dark: rgba(255, 255, 255, 0.84);
  --on-dark-soft: rgba(255, 255, 255, 0.62);
  --line-dark: rgba(255, 255, 255, 0.16);
  --whatsapp: #0f7d44;

  --radius-lg: 18px;
  --radius-md: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 84px;
  --chevron: polygon(0 100%, 50% 0, 100% 100%, 80% 100%, 50% 38%, 20% 100%);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 4px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.85;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible { outline-color: var(--signal); }

.wrap {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--blue);
  font-weight: 500;
}
.skip-link:focus { inset-block-start: 12px; }

.ltr { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.nums { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Shared pieces
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 13px;
  background: currentColor;
  clip-path: var(--chevron);
}
.on-dark .eyebrow { color: var(--signal); }

.section-title {
  margin-block-start: 14px;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem);
  color: var(--navy);
}
.on-dark .section-title { color: var(--white); }

.section-lead {
  margin-block-start: 18px;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}
.on-dark .section-lead { color: var(--on-dark); }

.section-head { max-width: 780px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  background: none;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(-4px); }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-bright); box-shadow: 0 12px 28px -12px rgba(10, 83, 181, 0.8); }

.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { box-shadow: 0 14px 34px -14px rgba(140, 193, 255, 0.9); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.42); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn-outline { border-color: var(--line); color: var(--blue); background: var(--white); }
.btn-outline:hover { border-color: var(--blue); }

.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp svg { fill: currentColor; width: 22px; height: 22px; }
.btn-whatsapp:hover { background: #0c6a39; box-shadow: 0 14px 28px -14px rgba(15, 125, 68, 0.85); }

.icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px;
  border-radius: 6px;
  background: var(--sky-100);
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.badge-live { background: #fff3da; color: #8a5300; }
.badge-live::before { background: var(--amber); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
  transition: height 0.3s var(--ease);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--white);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 52px;
  padding: 6px 7px;
  border-radius: var(--radius-md);
  background: var(--white);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), box-shadow 0.3s;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: grid; line-height: 1.25; }
.brand-text strong { font-size: 1.28rem; font-weight: 600; }
.brand-text small { font-size: 0.76rem; font-weight: 300; opacity: 0.86; }

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  position: relative;
  display: block;
  padding: 8px 14px;
  color: var(--white);
  font-weight: 400;
  font-size: 1rem;
  transition: color 0.2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  inset-block-end: 2px;
  height: 3px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }

.header-cta {
  flex: none;
  min-height: 44px;
  padding: 6px 18px;
  font-size: 0.98rem;
}
.header-cta svg { width: 17px; height: 17px; }

.menu-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-inline-start: auto;
  padding: 0;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: none;
  color: var(--white);
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.menu-toggle span { position: relative; }
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-toggle span::before { transform: translateY(-7px); }
.menu-toggle span::after { transform: translateY(7px); }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { background: currentColor; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { background: currentColor; transform: rotate(-45deg); }

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(10, 29, 66, 0.6);
}
.site-header.is-solid .wrap { height: 68px; }
.site-header.is-solid .brand { color: var(--navy); }
.site-header.is-solid .brand-mark { width: 52px; height: 46px; padding: 2px; }
.site-header.is-solid .main-nav a { color: var(--navy); }
.site-header.is-solid .main-nav a.is-active,
.site-header.is-solid .main-nav a:hover { color: var(--blue); }
.site-header.is-solid .header-cta { background: var(--blue); color: var(--white); }
.site-header.is-solid .menu-toggle { border-color: var(--line); color: var(--blue); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  --px: 30%;
  --py: 40%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: calc(var(--header-h) + clamp(28px, 5vw, 64px)) 0;
  background:
    radial-gradient(80% 90% at 82% 34%, rgba(18, 96, 204, 0.7) 0%, rgba(10, 83, 181, 0.3) 42%, transparent 74%),
    linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}
/* Blueprint grid, brighter around the pointer */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(140, 193, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 193, 255, 0.5) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  pointer-events: none;
}
.hero::before { opacity: 0.13; }
.hero::after {
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(260px circle at var(--px) var(--py), #000, transparent 72%);
  mask-image: radial-gradient(260px circle at var(--px) var(--py), #000, transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.hero-copy h1 {
  margin-block-start: 18px;
  font-size: clamp(2.5rem, 0.8rem + 4.4vw, 4.4rem);
  font-weight: 600;
  line-height: 1.24;
}
.hero-copy h1 em {
  display: block;
  font-style: normal;
  color: var(--signal);
}
.hero-copy p {
  margin-block-start: 22px;
  max-width: 56ch;
  color: var(--on-dark);
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.24rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 32px;
}

/* Site drawing: a skyline that draws itself */
.site-plan {
  position: relative;
  width: min(100%, 560px);
  margin-inline: auto;
}
.site-plan svg { width: 100%; height: auto; overflow: visible; }
.site-plan .ln {
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-plan .ln-thin { stroke-width: 2; stroke: rgba(255, 255, 255, 0.55); }
.site-plan .ln-blue { stroke: var(--blue-bright); stroke-width: 9; stroke-linecap: square; stroke-linejoin: miter; }
.site-plan .ln-sig { stroke: var(--signal); }
.site-plan .fill-blue { fill: var(--blue-bright); }
.site-plan .dim { fill: var(--on-dark-soft); font-size: 13px; font-weight: 400; }

.js .site-plan .ln {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.5s var(--ease) calc(var(--d, 0) * 0.14s + 0.2s) forwards;
}
.js .site-plan .fade {
  opacity: 0;
  animation: fade-in 0.8s ease calc(var(--d, 0) * 0.14s + 0.6s) forwards;
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(6, 19, 45, 0.78);
  backdrop-filter: blur(8px);
  font-size: 0.93rem;
  font-weight: 400;
  white-space: nowrap;
}
.chip::before {
  content: "";
  width: 14px;
  height: 8px;
  background: var(--signal);
  clip-path: var(--chevron);
}
.chip-a { inset-block-start: 30%; inset-inline-start: -2%; }
.chip-b { inset-block-start: 4%; inset-inline-end: 8%; }
.chip-c { inset-block-end: 3%; inset-inline-end: 16%; }

/* Stats */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block-start: clamp(32px, 4vw, 56px);
  border-block-start: 1px solid var(--line-dark);
}
.stat {
  padding: clamp(18px, 2.4vw, 30px) clamp(12px, 2vw, 28px);
  border-inline-start: 1px solid var(--line-dark);
}
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat strong {
  display: block;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.9rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat > span {
  display: block;
  margin-block-start: 4px;
  color: var(--on-dark-soft);
  font-size: 0.98rem;
}

.hero-roof {
  display: block;
  width: 100%;
  height: clamp(34px, 5vw, 72px);
  margin-block-start: clamp(8px, 1.4vw, 18px);
  fill: var(--white);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 80px) var(--section-y);
}
/* Building stripes from the logo, as a quiet corner mark */
.about::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: min(34vw, 420px);
  height: 300px;
  background: repeating-linear-gradient(90deg, var(--sky-50) 0 16px, transparent 16px 32px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 46%);
  pointer-events: none;
}
.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-copy p + p { margin-block-start: 18px; }
.about-copy .prose {
  margin-block-start: 22px;
  color: var(--muted);
  max-width: 62ch;
}
.pull {
  margin-block-start: 30px;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--blue);
  max-width: 30ch;
}

.timeline-title {
  margin-block-end: 22px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
}
.timeline {
  --progress: 0;
  position: relative;
  padding-inline-start: 44px;
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  inset-block: 12px 12px;
  inset-inline-start: 11px;
  width: 4px;
}
.timeline::before { background: var(--sky-100); }
.timeline::after {
  background: var(--blue);
  transform: scaleY(var(--progress));
  transform-origin: top;
}
html:not(.js) .timeline::after { transform: none; }
.timeline li { position: relative; padding-block-end: 30px; }
.timeline li:last-child { padding-block-end: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset-block-start: 8px;
  inset-inline-start: -44px;
  width: 26px;
  height: 26px;
  border: 5px solid var(--blue);
  border-radius: 6px;
  background: var(--white);
  transform: rotate(45deg) scale(0.82);
}
.timeline li.is-live::before { border-color: var(--amber); }
.timeline li.is-future::before { border-color: var(--signal); }
.timeline small {
  display: block;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 500;
}
.timeline h3 { font-size: 1.2rem; color: var(--navy); }
.timeline p { margin-block-start: 4px; color: var(--muted); font-size: 1rem; }

/* Vision + motto */
.vision {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-block-start: clamp(56px, 8vw, 96px);
  padding: clamp(28px, 4.4vw, 60px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--blue);
  color: var(--white);
}
.vision::after {
  content: "";
  position: absolute;
  inset-block-end: -40px;
  inset-inline-start: -30px;
  width: 300px;
  height: 170px;
  background: rgba(255, 255, 255, 0.07);
  clip-path: var(--chevron);
  pointer-events: none;
}
.vision h2 { margin-block-start: 12px; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); color: var(--white); }
.vision-text { margin-block-start: 16px; color: var(--on-dark); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.18rem); }
.pillars { position: relative; z-index: 1; display: grid; gap: 10px; }
.pillars li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
}
.pillars b {
  flex: none;
  color: var(--signal);
  font-size: 0.9rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.pillars strong { display: block; font-size: 1.16rem; font-weight: 500; line-height: 1.5; }
.pillars span { display: block; color: var(--on-dark); font-size: 0.97rem; line-height: 1.7; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.services {
  padding-block: var(--section-y);
  background: var(--sky-50);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-block-start: clamp(32px, 4vw, 56px);
}
.card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 4;
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(42, 123, 239, 0.11), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: rgba(10, 83, 181, 0.4); box-shadow: 0 28px 50px -34px rgba(10, 29, 66, 0.55); }
.card:hover::before { opacity: 1; }

.card-feature { grid-column: span 7; background: var(--blue); border-color: transparent; color: var(--white); }
.card-side { grid-column: span 5; }
.card-wide {
  grid-column: span 12;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  background: var(--navy);
  border-color: transparent;
  color: var(--white);
}
.card-feature::before,
.card-wide::before { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(140, 193, 255, 0.26), transparent 70%); }

/* Stripes on the featured card, echoing the logo's tower */
.card-feature::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 150px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 10px, transparent 10px 22px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 38%);
  -webkit-mask-image: linear-gradient(#000, transparent 85%);
  mask-image: linear-gradient(#000, transparent 85%);
  pointer-events: none;
}

.card-icon {
  width: 54px;
  height: 54px;
  flex: none;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-feature .card-icon,
.card-wide .card-icon { stroke: var(--white); }

.card h3 {
  margin-block-start: 18px;
  font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem);
  color: var(--navy);
}
.card-feature h3,
.card-wide h3 { color: var(--white); }
.card-wide h3 { margin-block-start: 0; }
.card p { margin-block-start: 10px; color: var(--muted); max-width: 56ch; }
.card-feature p,
.card-wide p { color: var(--on-dark); }
.card-wide p { margin-block-start: 6px; max-width: 70ch; }
.card-wide .btn { position: relative; z-index: 1; }

.ticks {
  display: grid;
  gap: 8px;
  margin-block-start: 18px;
}
.ticks li {
  position: relative;
  padding-inline-start: 26px;
  font-size: 1rem;
  font-weight: 400;
}
.ticks li::before {
  content: "";
  position: absolute;
  inset-block-start: 0.6em;
  inset-inline-start: 0;
  width: 15px;
  height: 9px;
  background: var(--blue);
  clip-path: var(--chevron);
}
.card-feature .ticks li::before { background: var(--signal); }
.card-feature .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Strengths */
.strengths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block-start: clamp(40px, 5vw, 64px);
  border-block-start: 2px solid var(--line);
}
.strength {
  padding: 26px clamp(16px, 2.4vw, 32px) 4px;
  border-inline-start: 1px solid var(--line);
}
.strength:first-child { border-inline-start: 0; padding-inline-start: 0; }
.strength h3 { font-size: 1.2rem; color: var(--navy); }
.strength p { margin-block-start: 6px; color: var(--muted); font-size: 1rem; }

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

.projects { padding-block: var(--section-y); }

.projects-sub {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-block: clamp(40px, 5vw, 64px) 22px;
  font-size: 1.24rem;
  color: var(--navy);
}
.projects-sub::after { content: ""; flex: 1; height: 2px; background: var(--line); }

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: box-shadow 0.35s, border-color 0.35s;
}
.project:hover { border-color: rgba(10, 83, 181, 0.4); box-shadow: 0 28px 50px -34px rgba(10, 29, 66, 0.55); }

.project-wide {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
.project-wide + .project-wide { margin-block-start: 22px; }
.project-wide:nth-of-type(even) .project-media { order: 2; }

.project-media {
  display: grid;
  gap: 4px;
  align-content: start;
  background: var(--sky-50);
}
.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.shot {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sky-100);
  cursor: zoom-in;
}
.shot-main { aspect-ratio: 16 / 11; }
.project-wide .project-media { grid-template-rows: minmax(0, 1fr) auto; }
.project-wide .shot-main { aspect-ratio: auto; min-height: 320px; height: 100%; }
.project-wide .shot-main img { position: absolute; inset: 0; }
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.shot:hover img { transform: scale(1.05); }
.shot[data-more]::after {
  content: "+" attr(data-more);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(6, 19, 45, 0.66);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 500;
  direction: ltr;
}
.shot-tag {
  position: absolute;
  inset-block-end: 10px;
  inset-inline-start: 10px;
  padding: 2px 10px;
  border-radius: 6px;
  background: rgba(6, 19, 45, 0.78);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 400;
}
.more-shots { display: none; }

.project-body {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 40px);
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 0.95rem;
}
.project h4 {
  margin-block-start: 12px;
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.7rem);
  color: var(--navy);
}
.project-body > p { margin-block-start: 8px; color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block-start: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.facts div { padding: 12px 16px; border-inline-start: 1px solid var(--line); }
.facts div:first-child { border-inline-start: 0; }
.facts dt { color: var(--muted); font-size: 0.86rem; }
.facts dd { color: var(--navy); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); font-weight: 500; line-height: 1.35; }

.scope { display: grid; margin-block-start: 20px; }
.scope li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 9px;
  border-block-start: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 400;
}
.scope li:first-child { border-block-start: 0; }
.scope li span:last-child { flex: none; color: var(--blue); font-weight: 500; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.project-grid .project-body { padding: clamp(20px, 2.4vw, 28px); }
.project-grid .ticks { margin-block-start: 14px; }

.scope-more { margin-block-start: 16px; }
.scope-more summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.scope-more summary::-webkit-details-marker { display: none; }
.scope-more summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 2.4px 2.4px 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.scope-more[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.scope-more ol {
  display: grid;
  gap: 6px;
  margin-block-start: 12px;
  padding-inline-start: 22px;
  list-style: decimal;
  color: var(--muted);
  font-size: 0.98rem;
}
.scope-more ol li::marker { color: var(--blue); font-weight: 500; }

/* Projects without photos yet */
.also {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-block-start: 22px;
}
.also-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 20px;
  align-items: center;
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: var(--radius-lg);
  background: var(--sky-50);
}
.also-item strong {
  grid-row: span 2;
  color: var(--blue);
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
}
.also-item strong small { display: block; color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.also-item h4 { font-size: 1.2rem; color: var(--navy); }
.also-item p { color: var(--muted); font-size: 0.98rem; }

/* Loose shots */
.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.strip .shot { aspect-ratio: 1; border-radius: var(--radius-md); }

/* --------------------------------------------------------------------------
   Quality
   -------------------------------------------------------------------------- */

.quality {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}
.quality::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: min(40vw, 520px);
  height: 100%;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 18px, transparent 18px 38px);
  -webkit-mask-image: linear-gradient(transparent, #000 30%, transparent);
  mask-image: linear-gradient(transparent, #000 30%, transparent);
  pointer-events: none;
}
.quality .wrap { position: relative; }
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block-start: clamp(32px, 4vw, 56px);
  border-block-start: 1px solid var(--line-dark);
  border-inline-start: 1px solid var(--line-dark);
}
.quality-grid li {
  padding: clamp(22px, 2.8vw, 34px);
  border-block-end: 1px solid var(--line-dark);
  border-inline-end: 1px solid var(--line-dark);
  transition: background-color 0.3s;
}
.quality-grid li:hover { background: rgba(140, 193, 255, 0.08); }
.quality-grid b {
  display: block;
  color: var(--signal);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  font-weight: 300;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.quality-grid h3 { margin-block-start: 12px; font-size: 1.22rem; color: var(--white); }
.quality-grid p { margin-block-start: 6px; color: var(--on-dark); font-size: 1rem; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  padding-block: var(--section-y);
  background: var(--sky-50);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
}
.contact-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--blue);
  color: var(--white);
}
.contact-panel::after {
  content: "";
  position: absolute;
  inset-block-start: -30px;
  inset-inline-end: -40px;
  width: 280px;
  height: 160px;
  background: rgba(255, 255, 255, 0.07);
  clip-path: var(--chevron);
  pointer-events: none;
}
.contact-panel .section-title { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }

.channels {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-block-start: auto;
  padding-block-start: 32px;
}
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.25s, transform 0.25s var(--ease);
}
.channel:hover { background: rgba(255, 255, 255, 0.17); transform: translateX(-4px); }
.channel-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background: var(--white);
  color: var(--blue);
}
.channel-icon svg { width: 22px; height: 22px; }
.channel[data-net="whatsapp"] .channel-icon { color: var(--whatsapp); }
.channel[data-net="whatsapp"] .channel-icon svg { fill: currentColor; }
.channel strong { display: block; font-weight: 500; line-height: 1.4; }
.channel small { display: block; color: var(--on-dark); font-size: 0.95rem; line-height: 1.5; text-align: right; }

.request-form {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.request-form h3 { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); color: var(--navy); }
.request-form > p { margin-block-start: 6px; color: var(--muted); }
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-block-start: 24px;
}
.field { display: grid; gap: 6px; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.96rem; font-weight: 500; color: var(--navy); }
.field label span { color: var(--muted); font-weight: 300; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 11px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--sky-50);
  font-size: 1rem;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 104px; resize: vertical; }
.field select {
  appearance: none;
  padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a53b5' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  background-size: 18px;
  cursor: pointer;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #a9bedb; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(10, 83, 181, 0.12);
}
.field.has-error input,
.field.has-error select { border-color: #b3261e; }
.field-error { display: none; color: #b3261e; font-size: 0.9rem; font-weight: 400; }
.field.has-error .field-error { display: block; }
#f-phone { text-align: right; }

.form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px;
  margin-block-start: 22px;
}
.form-note { margin-block-start: 12px; color: var(--muted); font-size: 0.92rem; }

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

.site-footer {
  padding-block: clamp(48px, 6vw, 72px) 28px;
  background: var(--navy-deep);
  color: var(--on-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
}
.footer-brand .brand { color: var(--white); }
.footer-brand p { margin-block-start: 16px; max-width: 44ch; font-size: 1rem; }
.footer-motto { color: var(--signal); font-weight: 400; }
.site-footer h4 { color: var(--white); font-size: 1.05rem; }
.site-footer nav ul,
.footer-contact { display: grid; gap: 6px; margin-block-start: 12px; }
.site-footer nav a,
.footer-contact a { transition: color 0.2s; }
.site-footer nav a:hover,
.footer-contact a:hover { color: var(--signal); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-block-start: 40px;
  padding-block-start: 22px;
  border-block-start: 1px solid var(--line-dark);
  color: var(--on-dark-soft);
  font-size: 0.92rem;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-end: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(4, 60, 30, 0.7);
  transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { position: relative; width: 29px; height: 29px; fill: currentColor; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--whatsapp);
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
}
.lightbox::backdrop { background: rgba(4, 12, 28, 0.93); }
.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: clamp(12px, 2.4vw, 28px);
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lightbox-count { color: var(--on-dark-soft); font-size: 0.95rem; }
.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}
.lightbox-stage img {
  max-width: min(100%, 1000px);
  max-height: 100%;
  width: auto;
  height: auto;
  min-height: 0;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.lightbox-caption { text-align: center; color: var(--on-dark); font-size: 1rem; min-height: 1.85em; }
.lb-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: rgba(6, 19, 45, 0.6);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.lb-btn:hover { background: var(--blue); border-color: transparent; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev,
.lb-next { position: absolute; inset-block-start: calc(50% - 24px); z-index: 1; }
.lb-prev { inset-inline-start: 0; }
.lb-next { inset-inline-end: 0; }
.lb-prev svg { transform: scaleX(-1); }

/* --------------------------------------------------------------------------
   Scroll reveal (only when JS is running, so content is never lost)
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .card-icon .ink {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.js .is-in .card-icon .ink {
  transition: stroke-dashoffset 1.3s var(--ease) 0.25s;
  stroke-dashoffset: 0;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes hoist {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(26px); }
}
@keyframes wa-ping {
  0% { transform: scale(1); opacity: 0.5; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .chip-a { animation: bob 6s ease-in-out infinite; }
  .chip-b { animation: bob 7s ease-in-out 0.8s infinite; }
  .chip-c { animation: bob 6.5s ease-in-out 1.6s infinite; }
  .site-plan .load { animation: hoist 7s ease-in-out 2.4s infinite; }
  .wa-float::before { animation: wa-ping 2.8s ease-out infinite; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

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

@media (max-width: 1120px) {
  .header-cta { display: none; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .menu-toggle { display: grid; }
  .brand-mark { width: 52px; height: 46px; padding: 5px 6px; }

  .main-nav {
    position: absolute;
    inset: 100% 0 auto;
    margin: 0;
    padding: 12px var(--gutter) 22px;
    background: var(--white);
    box-shadow: 0 24px 40px -24px rgba(10, 29, 66, 0.5);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { color: var(--navy); padding: 12px 6px; font-size: 1.08rem; }
  .main-nav a::after { display: none; }
  .main-nav a.is-active { color: var(--blue); font-weight: 500; }

  .site-header.menu-open {
    background: var(--white);
    box-shadow: 0 1px 0 var(--line);
  }
  .site-header.menu-open .brand { color: var(--navy); }
  .site-header.menu-open .menu-toggle { border-color: var(--line); color: var(--blue); }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4rem); }
  .site-plan { width: min(100%, 440px); }

  .about-grid,
  .vision,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .channels { margin-block-start: 0; }

  .card,
  .card-feature,
  .card-side { grid-column: span 12; }
  .card-wide { grid-template-columns: auto minmax(0, 1fr); }
  .card-wide .btn { grid-column: 1 / -1; justify-self: start; }

  .project-wide { grid-template-columns: minmax(0, 1fr); }
  .project-wide:nth-of-type(even) .project-media { order: 0; }
  .project-wide .shot-main { aspect-ratio: 16 / 11; min-height: 0; height: auto; }
  .project-wide .shot-main img { position: static; }

  .quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .stat:nth-child(n + 3) { border-block-start: 1px solid var(--line-dark); }

  .strengths { grid-template-columns: minmax(0, 1fr); }
  .strength { border-inline-start: 0; padding-inline: 0; }
  .strength + .strength { border-block-start: 1px solid var(--line); }

  .card-feature .ticks { grid-template-columns: minmax(0, 1fr); }
  .project-grid,
  .also,
  .quality-grid { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts dd { font-size: 1.08rem; }
  .facts div { padding: 10px 12px; }

  .fields,
  .form-actions { grid-template-columns: minmax(0, 1fr); }
  .chip { font-size: 0.84rem; padding: 4px 11px; }
  .chip-a { inset-inline-start: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .wa-float { width: 52px; height: 52px; inset-block-end: 16px; inset-inline-end: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
  .lb-prev, .lb-next { inset-block-start: auto; inset-block-end: 0; }
}

@media (max-width: 420px) {
  .brand-text small { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .also-item { grid-template-columns: minmax(0, 1fr); }
  .also-item strong { grid-row: auto; }
}
