/* ─────────────────────────────────────────────────────────────────────────
   PAR GROUP — Refreshed design system
   Industrial · confident · architectural
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Palette — default: charcoal + cream + oxide red */
  --bg: #0E0E0F;
  --bg-2: #161617;
  --bg-3: #1F1F20;
  --line: #2A2A2C;
  --line-2: #3A3A3D;
  --fg: #EDE6D6;
  --fg-2: #B8B2A4;
  --fg-3: #74716A;
  --accent: #C73A2A;
  --accent-2: #8E2618;

  /* Type */
  --display: "Archivo", "Archivo Narrow", Helvetica, Arial, sans-serif;
  --body: "Archivo", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "Geist Mono", ui-monospace, Menlo, monospace;

  /* Scale */
  --container: 1440px;
  --pad: clamp(20px, 4vw, 56px);
}

/* Light/paper theme */
html[data-theme="paper"] {
  --bg: #EDE6D6;
  --bg-2: #E2DAC6;
  --bg-3: #D6CEBA;
  --line: #C5BDA9;
  --line-2: #A8A091;
  --fg: #1A1815;
  --fg-2: #4C4842;
  --fg-3: #767168;
  --accent: #C73A2A;
  --accent-2: #8E2618;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); transition: background .3s ease, color .3s ease; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02";
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ----- Reusable atoms ----- */
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
  font-weight: 500;
}
.mono-sm { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; vertical-align: 1px; margin: 0 8px; }
.dot.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199,58,42,0.6); }
  50% { box-shadow: 0 0 0 8px rgba(199,58,42,0); }
}
.bar { display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: 4px; margin: 0 10px; opacity: .5; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section { padding: clamp(64px, 9vw, 140px) 0; position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 96px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-id { color: var(--fg-2); }
.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.section-title em { font-style: normal; color: var(--accent); }

/* ----- Headline scale ----- */
.h-display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 11vw, 184px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  margin: 0;
}
.h-display em { font-style: normal; color: var(--accent); }
.h-large {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
}
.h-med {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin: 0;
}
.lede {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.45;
  color: var(--fg);
  max-width: 56ch;
  text-wrap: pretty;
}
p.body { color: var(--fg-2); text-wrap: pretty; }

/* ----- Header / nav ----- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-weight: 700; letter-spacing: -0.02em; font-size: 18px;
}
.nav-brand .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--accent); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: 0;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-2);
  transition: color .15s ease;
  position: relative;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--accent);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg);
  transition: background .15s, border-color .15s, color .15s;
}
.nav-cta:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.nav-cta.solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav-cta.solid:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.nav-cta .arrow { transition: transform .2s ease; }
.nav-cta:hover .arrow { transform: translateX(4px); }

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: contrast(1.04) saturate(1.05);
  will-change: transform;
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,14,15,0.55) 0%, rgba(14,14,15,0.1) 18%, rgba(14,14,15,0.1) 55%, rgba(14,14,15,0.92) 100%),
    linear-gradient(90deg, rgba(14,14,15,0.45) 0%, rgba(14,14,15,0.0) 35%);
}
html[data-theme="paper"] .hero-photo::after {
  background:
    linear-gradient(180deg, rgba(237,230,214,0.35) 0%, rgba(237,230,214,0.08) 18%, rgba(237,230,214,0.08) 55%, rgba(237,230,214,0.94) 100%),
    linear-gradient(90deg, rgba(237,230,214,0.4) 0%, rgba(237,230,214,0.0) 35%);
}
/* Blueprint hero variant */
.hero.blueprint .hero-photo { display: none; }
.hero.blueprint {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(199,58,42,0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.hero.blueprint::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.hero.blueprint .crosshair { opacity: 1; }

/* Cursor crosshair */
.crosshair {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.crosshair.active { opacity: 1; }
.crosshair::before, .crosshair::after {
  content: ""; position: absolute;
  background: rgba(199, 58, 42, 0.42);
}
.crosshair::before {
  /* vertical */
  top: 0; bottom: 0; width: 1px;
  left: var(--cx, 50%);
  transform: translateX(-0.5px);
}
.crosshair::after {
  /* horizontal */
  left: 0; right: 0; height: 1px;
  top: var(--cy, 50%);
  transform: translateY(-0.5px);
}
.crosshair .ch-tag {
  position: absolute;
  left: calc(var(--cx, 50%) + 10px);
  top: calc(var(--cy, 50%) + 10px);
  padding: 3px 7px;
  background: rgba(199,58,42,0.92);
  color: #fff;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-inner {
  position: relative; z-index: 2;
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--pad) 44px;
}
.hero-meta-top {
  position: absolute; top: 96px; left: var(--pad); right: var(--pad);
  display: flex; justify-content: space-between; align-items: flex-start;
  color: var(--fg-2);
  z-index: 2;
}
.hero-meta-top .col { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-top .v { color: var(--fg); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }
.hero-headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 11vw, 184px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--fg);
  position: relative;
}
.hero-headline em { font-style: normal; color: var(--accent); }
.hero-headline .line {
  display: block;
  white-space: nowrap;
}
.hero-headline .line > span {
  display: inline-block;
}
@media (max-width: 560px) {
  .hero-headline { font-size: clamp(48px, 14vw, 96px); }
}

.hero-sub {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(20px, 4vw, 80px);
  align-items: end;
}
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.hero-sub .desc {
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5;
  color: var(--fg);
  max-width: 52ch;
}
.hero-sub .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Live status ticker (new) */
.status-ticker {
  position: absolute;
  bottom: 24px; right: var(--pad);
  z-index: 3;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 6px;
}
.status-ticker .head {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--fg-3);
}
.status-ticker .head .left { display: flex; align-items: center; gap: 8px; }
.status-ticker .live-row {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: baseline;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-ticker .live-row .ref { color: var(--accent); }
.status-ticker .live-row .pct { color: var(--fg-3); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .hero-sub { grid-template-columns: 1fr; }
  .hero-meta-top { position: static; padding: 12px 0 0; }
  .status-ticker { position: static; max-width: none; margin-top: 24px; }
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--fg);
  color: var(--fg);
  background: transparent;
  transition: background .15s, color .15s, transform .15s, border-color .15s;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ----- Marquee strip ----- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.strip-track {
  display: flex; gap: 56px;
  padding: 18px 0;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: -0.01em;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
}
.strip-track .accent { color: var(--accent); }
.strip-track .sep { color: var(--fg-3); }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----- Services grid ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.svc {
  background: var(--bg);
  padding: 36px 32px 32px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 280px;
  position: relative;
  transition: background .25s;
}
.svc:hover { background: var(--bg-2); }
.svc .idx { color: var(--accent); }
.svc h3 { margin: 4px 0 6px; }
.svc .pts { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 16px; list-style: none; }
.svc .pts li {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--fg-2);
  padding-left: 16px; position: relative;
}
.svc .pts li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 8px; height: 1px; background: var(--accent);
}
.svc ul { padding: 0; margin: 0; }
@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ----- Work index (NEW) ----- */
.work-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: border-color .25s, transform .25s;
  overflow: hidden;
}
.work-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.work-card .ph {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.work-card .ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.work-card:hover .ph img { transform: scale(1.06); }
.work-card .ph .ribbon {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 8px;
  background: rgba(14,14,15,0.78);
  border: 1px solid var(--line-2);
  color: var(--fg);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.work-card .ph .ref {
  position: absolute; bottom: 14px; right: 14px;
  padding: 4px 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.work-card .meta {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.work-card .meta h4 { margin: 0; font-size: 22px; font-weight: 600; font-family: var(--display); letter-spacing: -0.015em; line-height: 1.15; }
.work-card .meta .row {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.work-card .meta .row .k { color: var(--fg-3); }
.work-card .meta .row .v { color: var(--fg-2); }
.work-card .meta .scope {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px;
}
.work-card .meta .scope span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--fg-3);
  padding: 3px 8px;
  border: 1px solid var(--line);
}

@media (max-width: 1020px) { .work-index { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .work-index { grid-template-columns: 1fr; } }

/* ----- Case study ----- */
.case-id-strip {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.case-id-strip .item { display: flex; flex-direction: column; gap: 4px; }
.case-id-strip .item .v { color: var(--fg); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }
.case-photos {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin: 56px 0;
}
.case-photo {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
  cursor: zoom-in;
}
.case-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.case-photo:hover img { transform: scale(1.03); }
.case-photo .tag {
  position: absolute; left: 14px; top: 14px;
  padding: 4px 8px;
  background: rgba(14,14,15, 0.7);
  backdrop-filter: blur(8px);
  color: var(--fg);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
}

.case-photo.span-7 { grid-column: span 7; aspect-ratio: 16/10; }
.case-photo.span-5 { grid-column: span 5; aspect-ratio: 4/3.4; }
.case-photo.span-4 { grid-column: span 4; aspect-ratio: 3/4; }
.case-photo.span-8 { grid-column: span 8; aspect-ratio: 16/9.4; }
.case-photo.span-6 { grid-column: span 6; aspect-ratio: 4/3; }
.case-photo.span-12 { grid-column: span 12; aspect-ratio: 21/9; }
@media (max-width: 880px) {
  .case-photo { grid-column: span 12 !important; aspect-ratio: 4/3 !important; }
}

.case-narrative {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 96px);
  padding: 24px 0;
}
.case-narrative h3 { margin: 0; }
.case-narrative .col p { margin: 0 0 16px; }
@media (max-width: 760px) { .case-narrative { grid-template-columns: 1fr; } }

/* ----- Compare slider ----- */
.compare {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9;
  cursor: ew-resize;
  user-select: none;
  background: var(--bg-2);
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .clip { position: absolute; inset: 0; overflow: hidden; }
.compare .handle {
  position: absolute; top: 0; bottom: 0;
  width: 2px; background: var(--fg);
  transform: translateX(-50%);
  pointer-events: none;
}
.compare .knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--mono); font-size: 12px;
  box-shadow: 0 0 0 4px rgba(199,58,42, 0.2);
}
.compare .label {
  position: absolute; top: 16px;
  padding: 4px 8px;
  background: rgba(14,14,15, 0.7);
  backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg);
  border: 1px solid var(--line-2);
}
.compare .label.l { left: 16px; }
.compare .label.r { right: 16px; }

/* ----- Process (interactive, redesigned) ----- */
.process-wrap {
  position: relative;
}
.process-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process-tab {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 24px 22px;
  text-align: left;
  display: flex; flex-direction: column; gap: 10px;
  color: var(--fg-2);
  font-family: inherit;
  position: relative;
  transition: background .2s ease, color .2s ease;
  cursor: pointer;
}
.process-tab:last-child { border-right: none; }
.process-tab:hover { background: var(--bg-2); color: var(--fg); }
.process-tab.active { background: var(--bg-2); color: var(--fg); }
.process-tab.active::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px;
  height: 2px; background: var(--accent);
}
.process-tab .num {
  font-family: var(--display); font-weight: 700;
  font-size: 28px; letter-spacing: -0.04em;
  color: var(--accent); line-height: 1;
}
.process-tab .lbl {
  font-family: var(--display); font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: inherit;
}
.process-tab .phase {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-3);
}

.process-detail {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(40px, 5vw, 64px) 0 0;
  align-items: start;
}
.process-detail .pd-vis {
  position: relative;
  aspect-ratio: 4/3.4;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.process-detail .pd-vis img { width: 100%; height: 100%; object-fit: cover; }
.process-detail .pd-vis .stamp {
  position: absolute; left: 14px; bottom: 14px;
  padding: 4px 8px;
  background: rgba(14,14,15,0.78);
  border: 1px solid var(--line-2);
  color: var(--fg);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.process-detail .pd-text { display: flex; flex-direction: column; gap: 16px; padding-top: 4px; }
.process-detail .pd-text h3 { margin: 0; }
.process-detail .pd-text p { margin: 0; color: var(--fg-2); font-size: 17px; line-height: 1.5; }
.process-detail .pd-checks {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.process-detail .pd-checks li {
  list-style: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--fg);
  padding-left: 16px; position: relative;
}
.process-detail .pd-checks li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 8px; height: 1px; background: var(--accent);
}
@media (max-width: 880px) {
  .process-tabs { grid-template-columns: repeat(5, 1fr); }
  .process-tab { padding: 18px 12px; }
  .process-detail { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .process-tabs { grid-template-columns: 1fr; }
  .process-tab { border-right: none; border-bottom: 1px solid var(--line); }
  .process-detail .pd-checks { grid-template-columns: 1fr; }
}

/* ----- Stats (redesigned with bars) ----- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat {
  background: var(--bg);
  padding: 44px 28px;
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
}
.stat .v {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.95; letter-spacing: -0.04em;
  color: var(--fg);
}
.stat .v .unit { color: var(--accent); font-size: 0.55em; vertical-align: baseline; margin-left: 4px; }
.stat .l { color: var(--fg-2); }
.stat .bar-track {
  height: 4px;
  background: var(--bg-3);
  margin-top: 8px;
  overflow: hidden;
}
.stat .bar-fill {
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.6s cubic-bezier(.2,.7,.2,1) .1s;
}
.stat.in .bar-fill { transform: scaleX(var(--pct, 0.8)); }
@media (max-width: 880px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ----- About ----- */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.about-photo { aspect-ratio: 4/5; background: var(--bg-2); overflow: hidden; position: relative; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-points {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line);
  margin-top: 36px;
  border: 1px solid var(--line);
}
.about-point { background: var(--bg); padding: 24px; }
.about-point h4 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.about-point p { margin: 0; font-size: 14px; color: var(--fg-2); line-height: 1.5; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: 1fr; }
}

/* ----- Contact ----- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
}
.contact-left h2 { margin-bottom: 24px; }
.contact-left .info {
  display: flex; flex-direction: column; gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.contact-left .info .row { display: flex; flex-direction: column; gap: 4px; }
.contact-left .info .v { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; color: var(--fg); }

.service-area {
  margin-top: 36px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.service-area .head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
  color: var(--fg-2);
}
.service-area svg { width: 100%; display: block; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form .row { display: flex; flex-direction: column; gap: 8px; }
.form .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }
.form input, .form textarea, .form select {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--fg);
  font: inherit; font-family: var(--body);
  padding: 14px 14px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--accent); }
.form textarea { min-height: 130px; resize: vertical; }
.form input.error, .form textarea.error { border-color: var(--accent); }
.form .err { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-2);
  background: transparent;
  transition: all .15s;
}
.chip:hover { color: var(--fg); border-color: var(--fg-3); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.file-drop {
  border: 1px dashed var(--line-2);
  padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center;
  color: var(--fg-3);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color .15s, color .15s;
  cursor: pointer;
}
.file-drop:hover, .file-drop.over { border-color: var(--accent); color: var(--fg); }
.file-drop input { display: none; }
.file-drop .files {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
  width: 100%;
}
.file-drop .files .pill {
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--fg);
}

@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }

footer.foot {
  border-top: 1px solid var(--line);
  padding: 48px var(--pad) 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  color: var(--fg-3);
}
footer.foot .col h5 {
  margin: 0 0 14px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-3); font-weight: 600;
}
footer.foot .col a, footer.foot .col span {
  display: block;
  color: var(--fg);
  font-size: 14px;
  margin-bottom: 6px;
}
footer.foot .col a:hover { color: var(--accent); }
footer.foot .col p { margin: 0; font-size: 13px; color: var(--fg-2); line-height: 1.5; max-width: 32ch; }
footer.foot .col.big .nav-brand { margin-bottom: 14px; font-size: 22px; }
footer.foot .credits {
  grid-column: 1 / -1;
  padding-top: 24px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
}
@media (max-width: 880px) {
  footer.foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  footer.foot { grid-template-columns: 1fr; }
}

/* ----- Lightbox ----- */
.lb {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8,8,9, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.lb.open { opacity: 1; pointer-events: auto; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lb .lb-close {
  position: absolute; top: 20px; right: 24px;
  background: transparent; border: 1px solid var(--line-2);
  color: var(--fg); padding: 8px 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lb .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: transparent; border: 1px solid var(--line-2);
  color: var(--fg); width: 44px; height: 44px;
  font-family: var(--mono); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.lb .lb-nav.prev { left: 24px; }
.lb .lb-nav.next { right: 24px; }
.lb .lb-meta {
  position: absolute; bottom: 24px; left: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-2);
}

/* ----- Scroll reveal (no-op fallback — kept for compatibility) ----- */
.reveal { opacity: 1; transform: none; }
.reveal.in { opacity: 1; transform: none; }

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

/* ----- Vertical edge label (left rail) ----- */
.edge-rail {
  position: fixed; left: 16px; top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3);
  z-index: 30;
  pointer-events: none;
  white-space: nowrap;
}
@media (max-width: 1100px) { .edge-rail { display: none; } }

body.hide-jobmeta .hero-meta-top { display: none; }
body.hide-jobmeta .edge-rail { display: none; }
body.hide-jobmeta .case-id-strip { display: none; }
body.hide-jobmeta .status-ticker { display: none; }

/* ----- WhatsApp floating button ----- */
.wa-fab {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: #25D366;
  color: #0A2E1A;
  box-shadow: 0 8px 24px rgba(0,0,0,0.32), 0 2px 6px rgba(0,0,0,0.24);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  will-change: transform;
}
.wa-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 3px 8px rgba(0,0,0,0.28);
  background: #1FC15B;
}
.wa-fab:active { transform: translateY(0); }
.wa-fab svg { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.wa-fab .wa-label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .wa-fab {
    height: 56px;
    width: 56px;
    padding: 0;
    justify-content: center;
  }
  .wa-fab .wa-label { display: none; }
}
