/* CNS Formgroup — Redesigned */

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

:root {
  --primary: oklch(0.340 0.090 255);
  --primary-hover: oklch(0.400 0.085 255);
  --primary-pale: oklch(0.300 0.060 255);
  --bg: oklch(1.000 0.000 0);
  --surface: oklch(0.965 0.003 255);
  --ink: oklch(0.170 0.010 255);
  --accent: oklch(0.540 0.145 60);
  --accent-hover: oklch(0.480 0.135 60);
  --muted: oklch(0.450 0.010 255);
  --border: oklch(0.880 0.005 255);
  --white: oklch(1.000 0.000 0);

  --font-heading: 'Archivo', system-ui, sans-serif;
  --font-body: 'Overpass', system-ui, sans-serif;

  --h1: clamp(2.75rem, 2rem + 3.75vw, 5rem);
  --h2: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
  --h3: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
  --h4: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
  --body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --small: 0.9375rem;

  --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-sm: clamp(0.75rem, 0.6rem + 0.75vw, 1.25rem);
  --space-md: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  --space-lg: clamp(3rem, 2rem + 5vw, 6rem);
  --space-xl: clamp(5rem, 3.5rem + 7.5vw, 9rem);

  --container: 1200px;
  --gutter: clamp(1.25rem, 1rem + 1.25vw, 2rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration: 0.5s;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--h1); font-weight: 800; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }

p { text-wrap: pretty; max-width: 65ch; }

blockquote { margin: 0; }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font: inherit;
  color: inherit;
}


/* ── Container ── */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}


/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-size: var(--small);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 4px;
  transition: background var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out),
              transform 0.2s var(--ease-out);
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--ink);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--primary-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding-inline: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-ghost:hover {
  color: var(--primary);
}


/* ── Navigation ── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background var(--duration) var(--ease-out),
              padding 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.navbar-logo {
  text-decoration: none;
  color: var(--white);
  transition: color var(--duration) var(--ease-out);
  flex-shrink: 0;
}

.navbar-logo img {
  height: 100px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--duration) var(--ease-out), height var(--duration) var(--ease-out);
}

.navbar.scrolled .navbar-logo img {
  height: 60px;
  filter: none;
}

.footer .navbar-logo img {
  height: 80px;
  filter: brightness(0) invert(1);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-links a {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--white);
  opacity: 0.9;
  transition: opacity 0.25s var(--ease-out), color var(--duration) var(--ease-out);
}

.navbar-links a:hover,
.navbar-links a.active {
  opacity: 1;
}

.navbar-cta {
  font-size: 1rem !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.75rem !important;
}

.navbar.scrolled {
  background: var(--bg);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 var(--border);
}

.navbar.scrolled .navbar-logo { color: var(--ink); }

.navbar.scrolled .navbar-links a {
  color: var(--ink);
  opacity: 0.7;
}

.navbar.scrolled .navbar-links a:hover,
.navbar.scrolled .navbar-links a.active {
  opacity: 1;
}

.navbar.scrolled .btn-outline {
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.navbar.scrolled .btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease-out), opacity 0.2s, background 0.3s;
}

.navbar.scrolled .hamburger span { background: var(--ink); }

.hamburger.active span { background: var(--white) !important; }

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 105;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s;
}

.mobile-menu a:hover { opacity: 0.7; }

.mobile-menu .mobile-cta {
  margin-top: 1rem;
  font-size: 1rem;
}


/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-xl);
  padding-top: 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(0.120 0.040 255 / 0.92) 0%,
    oklch(0.180 0.035 255 / 0.72) 40%,
    oklch(0.220 0.030 255 / 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: var(--space-sm);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-content p {
  color: oklch(1.000 0.000 0 / 0.8);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}


/* ── Page Hero (inner pages) ── */

.page-hero {
  position: relative;
  padding: clamp(8rem, 6rem + 10vw, 14rem) 0 var(--space-lg);
  overflow: hidden;
  background: var(--primary);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero-content h1 {
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.page-hero-content p {
  color: oklch(1.000 0.000 0 / 0.75);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  max-width: 540px;
}


/* ── Section Spacing ── */

.section {
  padding: var(--space-xl) 0;
}

.section-tight {
  padding: var(--space-lg) 0;
}


/* ── Services List (Homepage) ── */

.services-home h2 {
  margin-bottom: var(--space-md);
}

.services-list {
  border-top: 1px solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xs);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease-out);
}

.service-row-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  z-index: 0;
}

.service-row-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: oklch(1.000 0.000 0 / 0.88);
}

.service-row:hover .service-row-bg { opacity: 1; }

.service-row-content {
  position: relative;
  z-index: 1;
}

.service-row-content h3 {
  font-size: var(--h3);
  font-weight: 700;
  margin-bottom: 0.375rem;
  transition: color 0.4s var(--ease-out);
}

.service-row:hover .service-row-content h3 { color: var(--primary); }

.service-row-content p {
  color: var(--muted);
  font-size: var(--small);
  max-width: 480px;
}

.service-row-arrow {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  flex-shrink: 0;
}

.service-row-arrow svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
}

.service-row:hover .service-row-arrow {
  background: var(--primary);
  transform: translateX(4px);
}

.service-row:hover .service-row-arrow svg { stroke: var(--white); }


/* ── Numbers Strip ── */

.numbers {
  background: var(--primary);
  padding: var(--space-lg) 0;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.number-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}

.number-label {
  display: block;
  font-size: var(--small);
  color: oklch(1.000 0.000 0 / 0.6);
  margin-top: 0.5rem;
  line-height: 1.4;
}


/* ── Featured Projects (Homepage) ── */

.projects-home h2 {
  margin-bottom: var(--space-sm);
}

.projects-home-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.projects-home-intro p {
  color: var(--muted);
  max-width: 420px;
}

.projects-grid-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-xs);
  height: clamp(400px, 25vw + 200px, 600px);
}

.project-card-featured {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface);
}

.project-card-featured:first-child {
  grid-row: 1 / -1;
}

.project-card-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.project-card-featured:hover img {
  transform: scale(1.04);
}

.project-card-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md) var(--space-sm);
  background: linear-gradient(to top, oklch(0.100 0.020 255 / 0.85), transparent);
  color: var(--white);
}

.project-card-meta h3 {
  font-size: var(--h4);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.project-card-meta span {
  font-size: var(--small);
  opacity: 0.7;
}


/* ── About Snippet (Homepage) ── */

.about-snippet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-snippet-text h2 {
  margin-bottom: var(--space-sm);
}

.about-snippet-text p {
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.about-snippet-text p:last-of-type {
  margin-bottom: var(--space-md);
}

.about-snippet-img {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.about-snippet-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ── Testimonial ── */

.testimonial-section {
  background: var(--primary);
  padding: var(--space-xl) 0;
}

.testimonial-quote {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.testimonial-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: none;
  margin-bottom: var(--space-md);
}

.testimonial-quote cite {
  font-style: normal;
  display: block;
}

.testimonial-quote cite strong {
  display: block;
  color: var(--white);
  font-size: var(--body);
  font-weight: 600;
}

.testimonial-quote cite span {
  display: block;
  color: oklch(1.000 0.000 0 / 0.55);
  font-size: var(--small);
  margin-top: 0.25rem;
}


/* ── CTA Band ── */

.cta-band {
  background: var(--accent);
  padding: var(--space-lg) 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--white);
  font-size: var(--h3);
}

.cta-band p {
  color: oklch(1.000 0.000 0 / 0.8);
  max-width: 420px;
}

.cta-band .btn {
  background: var(--white);
  color: var(--ink);
  flex-shrink: 0;
}

.cta-band .btn:hover {
  background: var(--ink);
  color: var(--white);
}


/* ── Footer ── */

.footer {
  background: var(--ink);
  padding: var(--space-lg) 0 var(--space-md);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-md);
  align-items: start;
  margin-bottom: var(--space-lg);
}

.footer-brand p {
  color: oklch(1.000 0.000 0 / 0.5);
  font-size: var(--small);
  margin-top: 1rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: var(--small);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col a {
  display: block;
  color: oklch(1.000 0.000 0 / 0.5);
  text-decoration: none;
  font-size: var(--small);
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid oklch(1.000 0.000 0 / 0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: oklch(1.000 0.000 0 / 0.35);
  font-size: var(--small);
}

.footer-logo img { height: 36px; width: auto; }


/* ═══════════════════════════════════════════
   SERVICE BLOCKS (services.html)
   ═══════════════════════════════════════════ */

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
}

.service-block:nth-child(even) .service-block-img {
  order: 2;
}

.service-block-img {
  position: relative;
  overflow: hidden;
}

.service-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.service-block-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-block-content h2 {
  margin-bottom: var(--space-sm);
}

.service-block-content > p {
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tag,
.service-tags span {
  padding: 0.375rem 0.875rem;
  background: var(--surface);
  border-radius: 3px;
  font-size: var(--small);
  font-weight: 500;
  color: var(--ink);
}

.service-block-dark {
  background: var(--primary);
}

.service-block-dark .service-block-content h2,
.service-block-dark .service-block-content p {
  color: var(--white);
}

.service-block-dark .service-block-content > p {
  color: oklch(1.000 0.000 0 / 0.65);
}

.service-block-dark .service-tag,
.service-block-dark .service-tags span {
  background: oklch(1.000 0.000 0 / 0.12);
  color: var(--white);
}


/* Why Section (services.html) */

.why-section {
  background: var(--surface);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.why-item h3 {
  font-size: var(--h4);
  margin-bottom: var(--space-xs);
}

.why-item p {
  color: var(--muted);
  font-size: var(--small);
}


/* ═══════════════════════════════════════════
   PROJECT GALLERY (projects.html)
   ═══════════════════════════════════════════ */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  font-family: var(--font-heading);
  font-size: var(--small);
  font-weight: 500;
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.filter-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  cursor: pointer;
  transition: opacity 0.4s, transform 0.4s;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.project-card:hover img { transform: scale(1.04); }

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.100 0.020 255 / 0.80), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-sm);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.project-card:hover .project-card-overlay { opacity: 1; }

.project-card-overlay h3 {
  color: var(--white);
  font-size: var(--body);
  font-weight: 600;
}

.project-card-overlay span {
  color: oklch(1.000 0.000 0 / 0.65);
  font-size: var(--small);
}

.project-card--wide {
  grid-column: span 2;
  aspect-ratio: 8 / 3;
}


/* Project Modal */

.project-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: oklch(0.100 0.020 255 / 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

.project-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.project-modal {
  background: var(--bg);
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 2px 8px oklch(0 0 0 / 0.15);
  cursor: pointer;
  border: none;
  font-size: 1.25rem;
  color: var(--ink);
  transition: background 0.2s;
}

.project-modal-close:hover { background: var(--surface); }

.project-modal-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.project-modal-body {
  padding: var(--space-md);
}

.project-modal-body .modal-title {
  font-size: var(--h3);
  margin-bottom: var(--space-sm);
}

.project-modal-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.project-modal-meta dt {
  font-size: var(--small);
  color: var(--muted);
  font-weight: 500;
}

.project-modal-meta dd {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.modal-description {
  color: var(--muted);
  line-height: 1.7;
}


/* ═══════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════ */

.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.story-text h2 { margin-bottom: var(--space-sm); }

.story-text p {
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.story-img {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.value-item {
  padding: var(--space-md);
  background: var(--surface);
  border-radius: 6px;
}

.value-item h3 {
  font-size: var(--h4);
  margin-bottom: var(--space-xs);
}

.value-item p {
  color: var(--muted);
  font-size: var(--small);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.team-member img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: var(--space-xs);
}

.team-member h3 {
  font-size: var(--body);
  font-weight: 600;
}

.team-member span {
  font-size: var(--small);
  color: var(--muted);
}

.accreditations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.accreditation-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border-radius: 6px;
  font-size: var(--small);
  font-weight: 600;
  color: var(--ink);
}

.accreditation-badge svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════ */

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--small);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--body);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.340 0.090 255 / 0.12);
}

.form-control.error {
  border-color: oklch(0.550 0.200 25);
}

.form-control.success {
  border-color: var(--primary);
}

.form-error {
  font-size: 0.8125rem;
  color: oklch(0.550 0.200 25);
  margin-top: 0.375rem;
  min-height: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-submit {
  width: 100%;
  padding: 1rem 2rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.form-success.show { display: block; }

.form-success h3 {
  font-size: var(--h3);
  margin-bottom: var(--space-xs);
}

.form-success p {
  color: var(--muted);
  max-width: none;
}

.contact-info {
  position: sticky;
  top: 8rem;
}

.contact-info h3 {
  font-size: var(--h4);
  margin-bottom: var(--space-md);
}

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 6px;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
}

.contact-detail-text strong {
  display: block;
  font-size: var(--small);
  margin-bottom: 0.125rem;
}

.contact-detail-text span,
.contact-detail-text a {
  font-size: var(--small);
  color: var(--muted);
  text-decoration: none;
}

.contact-detail-text a:hover { color: var(--primary); }

.map-container {
  border-radius: 6px;
  overflow: hidden;
  margin-top: var(--space-md);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}


/* ── FAQ Accordion ── */

.faq-section h2 {
  margin-bottom: var(--space-md);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  text-align: left;
  font-family: var(--font-heading);
  font-size: var(--body);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.faq-answer p {
  padding-bottom: 1.25rem;
  color: var(--muted);
  line-height: 1.7;
}


/* ═══════════════════════════════════════════
   ARTICLE PAGES
   ═══════════════════════════════════════════ */

.article-body {
  max-width: 720px;
  margin-inline: auto;
  padding: var(--space-xl) 0;
}

.article-body h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.article-body h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.article-body p {
  color: var(--muted);
  margin-bottom: var(--space-sm);
  line-height: 1.75;
}

.article-body > p:first-child {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--ink);
}

.article-body ul,
.article-body ol {
  color: var(--muted);
  margin-bottom: var(--space-sm);
  padding-left: 1.5rem;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-body strong {
  color: var(--ink);
  font-weight: 600;
}

.article-body .callout {
  background: var(--surface);
  border-radius: 6px;
  padding: var(--space-md);
  margin: var(--space-md) 0;
}

.article-body .callout p {
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0;
  max-width: none;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.stat-box {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  background: var(--primary);
  border-radius: 6px;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--h2);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-size: var(--small);
  color: oklch(1.000 0.000 0 / 0.65);
  margin-top: 0.5rem;
}

.article-body .inline-img {
  margin: var(--space-md) 0;
  border-radius: 6px;
  overflow: hidden;
}

.article-body .inline-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section-intro {
  color: var(--muted);
}

.related-articles {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.related-articles h2 {
  margin-bottom: var(--space-md);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-sm);
}

.related-card {
  display: block;
  text-decoration: none;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(0 0 0 / 0.08);
}

.related-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.related-card-body {
  padding: var(--space-sm);
}

.related-card-body h3 {
  font-size: var(--body);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.related-card-body p {
  font-size: var(--small);
  color: var(--muted);
}


/* ── Knowledge Hub (About page) ── */

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.knowledge-card {
  display: block;
  text-decoration: none;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.knowledge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(0 0 0 / 0.08);
}

.knowledge-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.knowledge-card-body {
  padding: var(--space-sm);
}

.knowledge-card-body h3 {
  font-size: var(--body);
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--ink);
}

.knowledge-card-body p {
  font-size: var(--small);
  color: var(--muted);
}


/* ── Footer Social Icons ── */

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: oklch(1.000 0.000 0 / 0.08);
  padding: 0;
  transition: background 0.25s var(--ease-out);
}

.footer-social a:hover {
  background: oklch(1.000 0.000 0 / 0.18);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  stroke: oklch(1.000 0.000 0 / 0.6);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social a:hover svg {
  stroke: var(--white);
}

.footer-bottom a {
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: oklch(1.000 0.000 0 / 0.6);
}


/* ── Privacy Page ── */

.legal-body {
  max-width: 720px;
  margin-inline: auto;
  padding: var(--space-xl) 0;
}

.legal-body h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-body p {
  color: var(--muted);
  margin-bottom: var(--space-sm);
  line-height: 1.75;
}

.legal-body ul {
  color: var(--muted);
  margin-bottom: var(--space-sm);
  padding-left: 1.5rem;
  list-style: disc;
}

.legal-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.legal-body strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-body a:hover {
  color: var(--primary-hover);
}


/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
}

.anim-up {
  animation: slideUp 0.7s var(--ease-out) both;
}

.anim-left {
  animation: slideLeft 0.7s var(--ease-out) both;
}

.anim-fade {
  animation: fadeIn 0.6s var(--ease-out) both;
}

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .footer-brand { grid-column: 1 / -1; }

  .projects-grid-featured {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .project-card-featured {
    aspect-ratio: 4 / 3;
  }

  .project-card-featured:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .story-section {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 900px) {
  .service-block {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .service-block-img {
    aspect-ratio: 16 / 9;
    position: relative;
  }

  .service-block-img img {
    position: relative;
  }

  .service-block:nth-child(even) .service-block-img { order: 0; }

  .service-block-content { padding: var(--space-md); }

  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar-links,
  .navbar-cta { display: none; }

  .hamburger { display: flex; }

  .mobile-menu { display: flex; }

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

  .about-snippet { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; }

  .contact-info { position: static; }

  .form-row { grid-template-columns: 1fr; }

  .projects-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .project-card--wide { grid-column: 1 / -1; }

  .project-card-overlay { opacity: 1; }

  .cta-band-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .cta-band p { max-width: none; }

  .footer-grid { grid-template-columns: 1fr; }

  .values-grid { grid-template-columns: 1fr; }

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

  .projects-home-intro { flex-direction: column; align-items: flex-start; }

  .project-modal-meta { grid-template-columns: 1fr; }

  .knowledge-grid { grid-template-columns: 1fr; }

  .stat-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding-bottom: var(--space-lg); }

  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; justify-content: center; }

  .projects-gallery { grid-template-columns: 1fr; }

  .project-card--wide {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .team-grid { grid-template-columns: 1fr; }

  .accreditations { flex-direction: column; }
}


/* ═══════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-video { display: none; }

  .project-card img,
  .project-card-featured img { transition: none; }
}
