/* Titan Development Group Inc. — brand tokens taken from the logo */
:root {
  --ink: #111316;
  --navy: #1D3B6F;
  --navy-deep: #152C54;
  --steel: #5B7CB8;
  --mist: #8FA6CC;
  --paper: #F4F6F9;
  --white: #FFFFFF;
  --line: #D9DFE8;
  --muted: #5A6170;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--navy); color: var(--white); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; }

/* Logo mark colors */
/* Custom properties inherit into <use> copies, so each placement can recolor the mark */
.m1, .m3 { fill: var(--mark-outer, var(--ink)); }
.m2 { fill: var(--mark-mid, var(--navy)); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 37px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 700; font-size: 1.25rem; letter-spacing: 0.08em; }
.brand-sub { font-size: 0.56rem; letter-spacing: 0.32em; margin-top: 5px; }

.site-nav { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; font-weight: 500; }
.site-nav a { text-decoration: none; padding: 6px 0; }
.site-nav a:not(.nav-cta):hover { color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); }
.nav-cta {
  background: var(--navy); color: var(--white); padding: 10px 18px !important; border-radius: 2px;
}
.nav-cta:hover { background: var(--navy-deep); }
.nav-toggle {
  display: none; font: inherit; font-weight: 500; background: none;
  border: 1px solid var(--ink); padding: 8px 16px; cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 16px; text-align: center; border-bottom: 0 !important; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) var(--gutter) 0; max-width: var(--max); margin: 0 auto; }
.hero-top {
  display: grid; grid-template-columns: 3fr 2fr; gap: 28px 56px; align-items: end;
  margin-bottom: clamp(36px, 6vw, 80px);
}
.hero-headline {
  font-weight: 700; color: var(--ink);
  font-size: clamp(2.1rem, 4.4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.02em;
}
.hero-headline span { display: block; }
@media (min-width: 861px) { .hero-headline span { white-space: nowrap; } }
.hero-side { display: grid; gap: 22px; padding-bottom: 6px; }
.hero-lede {
  max-width: 36ch; font-size: clamp(1rem, 1.35vw, 1.15rem); color: var(--muted);
  padding-left: 18px; border-left: 3px solid var(--navy);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
@media (max-width: 860px) {
  .hero-top { grid-template-columns: 1fr; }
}
.wordmark {
  font-weight: 700; color: var(--navy);
  font-size: clamp(5rem, 29.5vw, 27rem);
  line-height: 0.78; letter-spacing: 0.01em;
  white-space: nowrap;
  margin-left: -0.04em;
}
.wordmark-word { position: relative; display: inline-block; }
/* the short bar under the T, echoing the logo */
.wordmark-word::after {
  content: ""; position: absolute; left: 0.05em; bottom: -0.08em;
  width: 0.62em; height: 0.045em; background: var(--ink);
}
.hero-meta {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 48px); padding-bottom: 20px;
  font-weight: 500; font-size: clamp(0.95rem, 1.3vw, 1.1rem);
}
/* Hero slideshow */
.hero-photo {
  position: relative; margin: 0; overflow: hidden; background: var(--ink);
  aspect-ratio: 16 / 8;
}
@media (max-width: 640px) { .hero-photo { aspect-ratio: 4 / 3; } }
.slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 900ms ease;
}
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.hero-photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 35%;
  background: linear-gradient(to top, rgba(17,19,22,.65), rgba(17,19,22,0));
  pointer-events: none;
}
.slide-caption {
  position: absolute; z-index: 2; left: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 28px);
  color: var(--white); display: grid; gap: 2px;
}
.slide-caption strong { font-size: clamp(1.05rem, 1.8vw, 1.5rem); font-weight: 600; line-height: 1.15; }
.slide-caption span { color: #C9D5EA; font-size: 0.95rem; font-weight: 500; }
.slide-controls {
  position: absolute; z-index: 2; right: clamp(12px, 2.5vw, 28px); bottom: clamp(12px, 2.5vw, 24px);
  display: flex; align-items: center; gap: 6px; color: var(--white);
}
.slide-count { font-size: 0.9rem; font-weight: 500; min-width: 3.2em; text-align: center; }
.slide-btn {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.7); background: rgba(17,19,22,.35) center / 18px no-repeat;
  transition: background-color 150ms;
}
.slide-btn:hover { background-color: var(--navy); border-color: var(--navy); }
.slide-btn:focus-visible { outline-color: var(--white); }
.slide-prev { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E"); }
.slide-next { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
@media (max-width: 480px) {
  .slide-count { display: none; }
  .slide-caption { right: 110px; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* ---------- Shared section bits ---------- */
section { scroll-margin-top: 80px; }
.section-title { font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.6rem); letter-spacing: -0.01em; }
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.section-head p { max-width: 46ch; color: var(--muted); justify-self: end; }
.section-head--light p { color: var(--mist); }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }
}

/* ---------- About ---------- */
.about {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  display: grid; grid-template-columns: 5fr 7fr; gap: 40px 80px;
}
/* heading at top; badge centered in the open space below it */
.about-head { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.about-head .badge { margin: auto; }

/* 19-years badge: navy seal with the logo chevrons */
.badge {
  position: relative; width: clamp(150px, 15vw, 190px); aspect-ratio: 1;
  color: var(--white);
}
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge-outer { fill: var(--navy); }
.badge-inner { fill: none; stroke: var(--mist); stroke-width: 1.5; }
.badge-arc-text {
  fill: var(--white); font-family: var(--font); font-size: 13.2px; font-weight: 600; letter-spacing: 3.1px;
}
.badge-core {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  line-height: 1; padding-top: 4px;
}
.badge-mark { width: 26px; height: 24px; margin-bottom: 4px; --mark-outer: var(--white); --mark-mid: var(--mist); }
.badge-num { font-size: clamp(2.6rem, 3.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
.badge-label { font-size: 0.8rem; font-weight: 600; color: var(--mist); margin-top: 2px; }

.about-body { display: grid; gap: 20px; max-width: 62ch; }
.about-lead { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.5; font-weight: 500; }
.about-body p:not(.about-lead) { color: var(--muted); }
.facts {
  grid-column: 1 / -1; list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 2fr; border-top: 1px solid var(--ink);
}
.facts .facts-clients {
  grid-column: 1 / -1; margin-top: 20px; padding: 20px 0 0;
  border-left: 0; border-top: 1px solid var(--line);
}
.client-list {
  list-style: none; margin: 4px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 0;
}
.facts .client-list li {
  display: block; font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 2rem); color: var(--navy); line-height: 1.2;
  padding: 0 clamp(14px, 2vw, 28px); margin: 0;
  border: 0; border-left: 1px solid var(--line);
}
.facts .client-list li:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 760px) {
  .client-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .facts .client-list li { padding: 0; border-left: 0; }
}
.facts li { padding: 20px 20px 0 0; display: grid; gap: 4px; }
.facts li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.facts strong { font-weight: 500; font-size: 0.9rem; color: var(--muted); }
.facts span { font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 2rem); color: var(--navy); line-height: 1.2; }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts li { padding-bottom: 16px; }
}

/* ---------- Projects ---------- */
.projects {
  background: var(--paper);
  padding: clamp(72px, 10vw, 140px) var(--gutter);
}
.projects > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.project-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(260px, 30vw, 440px); gap: clamp(12px, 1.6vw, 24px);
}
.project { position: relative; overflow: hidden; background: var(--ink); }
.project--wide { grid-column: span 2; }
.project--tall { grid-row: span 2; }
.project--full { grid-column: 1 / -1; }
.project--full img { object-position: center 60%; }
.project img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.project img.crop-bottom { object-position: center 80%; }
.project:hover img { transform: scale(1.03); }
.project-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 20px 18px;
  background: linear-gradient(to top, rgba(17,19,22,.82), rgba(17,19,22,0));
  color: var(--white);
  display: grid; gap: 2px;
}
.project-info h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 2px; }
.project-info p { font-size: 0.9rem; opacity: .9; }
.project-info .project-type { color: var(--mist); opacity: 1; }
@media (max-width: 900px) {
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project--tall { grid-row: span 1; }
}
@media (max-width: 560px) {
  .project-grid { grid-template-columns: 1fr; grid-auto-rows: 320px; }
  .project--wide { grid-column: span 1; }
}
@media (prefers-reduced-motion: reduce) { .project img { transition: none; } .project:hover img { transform: none; } }

/* ---------- Before / After ---------- */
.ba {
  background: var(--navy-deep); color: var(--white);
  padding: clamp(72px, 10vw, 140px) var(--gutter);
}
.ba > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.ba-list {
  display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: clamp(16px, 2vw, 32px); align-items: start;
}
.ba-item { margin: 0; }
.ba-frame {
  --pos: 50%;
  position: relative; aspect-ratio: var(--ratio, 4 / 5); overflow: hidden;
  background: var(--ink); user-select: none; touch-action: pan-y;
}
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: var(--white); pointer-events: none;
}
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D3B6F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.ba-frame:focus-within .ba-handle::after { outline: 3px solid var(--mist); outline-offset: 3px; }
.ba-tag {
  position: absolute; top: 12px; padding: 4px 10px; font-size: 0.8rem; font-weight: 600;
  background: rgba(17,19,22,.7); color: var(--white); pointer-events: none;
}
.ba-tag--before { left: 12px; }
.ba-tag--after { right: 12px; background: var(--navy); }
.ba-item figcaption { margin-top: 14px; color: var(--mist); font-size: 0.95rem; }
.ba-item figcaption strong { display: block; color: var(--white); font-weight: 600; font-size: 1.05rem; }
@media (max-width: 900px) { .ba-list { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- Services ---------- */
.services { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--gutter); }
.services-sub {
  font-size: 1rem; font-weight: 600; color: var(--muted);
  margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ink);
}

/* Track record: six blocks separated by hairlines, no card chrome */
.track-grid {
  list-style: none; margin: 0 0 clamp(56px, 8vw, 96px); padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.track {
  padding: clamp(22px, 2.6vw, 34px) clamp(18px, 2.4vw, 32px) clamp(26px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--line);
  display: grid; align-content: start; gap: 8px;
}
.track:not(:nth-child(3n + 1)) { padding-left: clamp(18px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.track-big {
  font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 700; color: var(--navy);
  line-height: 1; letter-spacing: -0.02em; margin-bottom: 6px;
}
.track h4 { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.track p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 900px) {
  .track-grid { grid-template-columns: 1fr 1fr; }
  .track:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .track:nth-child(even) { padding-left: clamp(18px, 2.4vw, 32px); border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .track-grid { grid-template-columns: 1fr; }
  .track:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* Trades: plain three-column list */
.trades {
  list-style: none; margin: 0; padding: 0;
  columns: 3; column-gap: clamp(24px, 4vw, 64px);
}
.trades li {
  break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line);
  font-weight: 500;
}
@media (max-width: 900px) { .trades { columns: 2; } }
@media (max-width: 480px) { .trades { columns: 1; } }
.services-note { margin-top: 28px; color: var(--muted); }
.services-note a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Service area ---------- */
.area {
  background: var(--paper);
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  display: grid; grid-template-columns: 4fr 7fr; gap: 48px 80px; align-items: center;
}
.area-copy { display: grid; gap: 20px; max-width: 46ch; }
.area-copy p { color: var(--muted); }
.legend { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; font-weight: 500; font-size: 0.95rem; }
.legend li { display: flex; align-items: center; gap: 12px; }
.swatch { width: 18px; height: 18px; flex: none; }
.swatch--hq { background: var(--navy); }
.swatch--done { background: var(--steel); }
.swatch--older { background: var(--mist); }
.swatch--open { background: var(--white); border: 1px solid var(--mist); }

.tilemap {
  display: grid; grid-template-columns: repeat(11, 1fr); gap: clamp(3px, 0.5vw, 6px);
  width: 100%; max-width: 760px; justify-self: end;
}
.tile {
  aspect-ratio: 1; display: grid; place-items: center;
  font-size: clamp(0.55rem, 1.05vw, 0.85rem); font-weight: 600;
  background: var(--white); color: var(--mist); border: 1px solid #C9D3E3;
}
.tile--done { background: var(--steel); color: var(--white); border-color: var(--steel); }
.tile--hq { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tile--older { background: var(--mist); color: var(--navy); border-color: var(--mist); }
@media (max-width: 900px) {
  .area { grid-template-columns: 1fr; }
  .tilemap { justify-self: start; }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--navy); color: var(--white); text-align: center;
  padding: clamp(80px, 11vw, 150px) var(--gutter);
  display: grid; justify-items: center; gap: 20px;
}
.contact-mark { width: 64px; height: 58px; margin-bottom: 8px; --mark-outer: var(--white); --mark-mid: var(--mist); }
.contact h2 { font-weight: 600; font-size: clamp(2rem, 5vw, 4rem); max-width: 18ch; letter-spacing: -0.01em; }
.contact p { max-width: 48ch; color: #C9D5EA; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.contact-direct { font-size: 0.95rem; }
.contact-direct a { color: var(--white); text-underline-offset: 3px; }
.site-footer a { color: #D4D9E2; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.btn {
  display: inline-block; padding: 14px 26px; font-weight: 600; text-decoration: none;
  border-radius: 2px; transition: background 150ms, color 150ms;
}
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--paper); }
.btn--ghost { border: 1px solid rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #A9B0BD;
  padding: 36px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  font-size: 0.9rem;
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 600; }
.site-footer .brand-mark { width: 30px; height: 28px; --mark-outer: var(--white); --mark-mid: var(--steel); }

/* ---------- Home: link to all projects ---------- */
a.project { display: block; color: inherit; text-decoration: none; }
.project-info .project-more {
  margin-top: 6px; font-size: 0.85rem; font-weight: 600; color: var(--white); opacity: 0;
  transform: translateY(4px); transition: opacity 200ms, transform 200ms;
}
a.project:hover .project-more, a.project:focus-visible .project-more { opacity: 1; transform: none; }
@media (hover: none) { .project-info .project-more { opacity: 1; transform: none; } }
.projects-all { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 48px); }
.btn--arrow::after { content: " \2192"; }

/* ---------- Projects page ---------- */
.site-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); }
.pj-hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) var(--gutter) clamp(32px, 5vw, 64px);
}
.pj-back { display: inline-block; color: var(--muted); font-weight: 500; text-decoration: none; margin-bottom: 18px; }
.pj-back:hover { color: var(--navy); }
.pj-title {
  font-weight: 700; font-size: clamp(3rem, 11vw, 9.5rem); line-height: .9; letter-spacing: -0.035em;
  color: var(--ink);
}
.pj-intro {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px;
  margin-top: clamp(24px, 3vw, 40px); padding-top: 24px; border-top: 1px solid var(--ink);
}
.pj-intro > p {
  max-width: 44ch; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.12rem);
  padding-left: 18px; border-left: 3px solid var(--navy);
}
.pj-stats { list-style: none; margin: 0; padding: 0; display: flex; }
.pj-stats li { display: grid; padding: 0 clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.pj-stats li:first-child { border-left: 0; padding-left: 0; }
.pj-stats strong { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 700; color: var(--navy); line-height: 1.05; }
.pj-stats span { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 760px) {
  .pj-intro { grid-template-columns: 1fr; }
}

.pj-list { background: var(--paper); padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(72px, 10vw, 120px); }
.pj-list > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.pj-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-filter {
  font: inherit; font-weight: 500; font-size: 0.95rem; cursor: pointer;
  padding: 10px 16px; min-height: 44px; border-radius: 2px;
  background: var(--white); color: var(--ink); border: 1px solid var(--line);
  transition: background 150ms, color 150ms, border-color 150ms;
}
.pj-filter:hover { border-color: var(--navy); }
.pj-filter[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pj-filter-n { font-size: 0.8rem; opacity: .7; margin-left: 2px; }
.pj-count { margin: 18px auto 18px; font-size: 0.9rem; color: var(--muted); }

.pj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 28px); }
@media (max-width: 1000px) { .pj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .pj-grid { grid-template-columns: 1fr; } }
.pj-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); transition: border-color 200ms, box-shadow 200ms;
}
.pj-card[hidden] { display: none; }
.pj-card:hover { border-color: var(--navy); box-shadow: 0 10px 30px -18px rgba(21,44,84,.55); }
.pj-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.pj-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
.pj-card:hover .pj-card-img img { transform: scale(1.04); }
.pj-card-tag {
  position: absolute; top: 12px; left: 12px; padding: 5px 10px;
  background: var(--white); color: var(--navy); font-size: 0.75rem; font-weight: 600; letter-spacing: .02em;
}
.pj-card-body { display: grid; gap: 2px; padding: 18px 20px 20px; }
.pj-card-client { font-weight: 600; font-size: 1.2rem; }
.pj-card-where { color: var(--muted); font-size: 0.95rem; }
.pj-card-title { color: var(--navy); font-weight: 500; font-size: 0.95rem; margin-top: 6px; }
.pj-card-more {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
}
.pj-card:hover .pj-card-more { color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .pj-card-img img { transition: none; } .pj-card:hover .pj-card-img img { transform: none; } }

/* ---------- Gallery ---------- */
html.gal-open { overflow: hidden; }
.gal {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--ink); color: var(--white);
}
.gal[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto; }
.gal::backdrop { background: rgba(17,19,22,.9); }
.gal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px var(--gutter) 12px; }
.gal-head h2 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; }
.gal-head p { color: var(--mist); font-size: 0.92rem; }
.gal-close, .gal-nav {
  width: 44px; height: 44px; flex: none; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.4); background: rgba(17,19,22,.55) center / 20px no-repeat;
  transition: background-color 150ms, border-color 150ms;
}
.gal-close:hover, .gal-nav:hover { background-color: var(--navy); border-color: var(--navy); }
.gal-close { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.gal-prev { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
.gal-next { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E"); }
.gal-close:focus-visible, .gal-nav:focus-visible { outline-color: var(--white); }
.gal-stage { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); }
.gal-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.gal-prev { left: calc(var(--gutter) + 8px); }
.gal-next { right: calc(var(--gutter) + 8px); }
.gal-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  padding: 14px var(--gutter) 10px;
}
.gal-meta { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: #C9D5EA; }
.gal-stage-tag { padding: 4px 10px; font-size: 0.78rem; font-weight: 600; background: rgba(255,255,255,.12); color: var(--white); }
.gal-stage-tag[data-stage="Finished"] { background: var(--steel); }
.gal-jumps { display: flex; flex-wrap: wrap; gap: 6px; }
.gal-jumps button {
  font: inherit; font-size: 0.85rem; font-weight: 500; cursor: pointer; min-height: 36px; padding: 6px 12px;
  background: transparent; color: #C9D5EA; border: 1px solid rgba(255,255,255,.25); border-radius: 2px;
}
.gal-jumps button:hover { color: var(--white); border-color: var(--white); }
.gal-jumps button[aria-pressed="true"] { background: var(--white); color: var(--navy); border-color: var(--white); }
.gal-thumbs {
  display: flex; gap: 6px; overflow-x: auto; padding: 4px var(--gutter) 10px;
  scrollbar-width: thin; scrollbar-color: #3A404A transparent;
}
.gal-thumbs button {
  flex: none; width: 64px; height: 64px; padding: 0; cursor: pointer;
  border: 2px solid transparent; background: #22262C; opacity: .55; transition: opacity 150ms, border-color 150ms;
}
.gal-thumbs button:hover { opacity: .9; }
.gal-thumbs button.is-on { opacity: 1; border-color: var(--white); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-scope { padding: 0 var(--gutter) 18px; max-width: 90ch; font-size: 0.92rem; color: #A9B0BD; }
@media (max-width: 640px) {
  .gal-stage { padding: 0; }
  .gal-prev { left: 8px; } .gal-next { right: 8px; }
  .gal-thumbs button { width: 52px; height: 52px; }
  .gal-scope { display: none; }
}
