/* ================= TOKENS ================= */
:root {
  --navy-900: #10141f;
  --navy-800: #1a2233;
  --navy-700: #2a3346;
  --accent: #3ee98d;
  --accent-dark: #22c470;
  --blueprint: #4a7ac9;      /* cyanotype-blue — technical/secondary accent, used sparingly */
  --blueprint-dim: rgba(74, 122, 201, 0.35);
  --ink: #171b26;
  --gray-700: #4b5361;
  --gray-500: #7d8593;
  --border: #dde2e6;
  --bg: #f4f6f8;             /* cool "blueline print" paper — not stark white, not warm beige */
  --bg-soft: #eaeef2;

  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 0px;
  --radius-sm: 0px;
  --container: 1320px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--ink); }
p { margin: 0; line-height: 1.6; color: var(--gray-700); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* Icon / image placeholders — swap these for real SVGs and photos */
.icon-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(62, 233, 141, 0.12);
  border: 1px dashed rgba(62, 233, 141, 0.5);
  border-radius: 0;
  flex-shrink: 0;
}
.icon-slot--sm { width: 20px; height: 20px; }
.icon-slot--md { width: 40px; height: 40px; border-radius: 0; margin-bottom: 16px; }
.icon-slot--logo { width: 28px; height: 28px; background: var(--accent); border: none; border-radius: 0; }

[data-image] {
  background: repeating-linear-gradient(135deg, #dfe3e8, #dfe3e8 10px, #eceff2 10px, #eceff2 20px);
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--primary {
  background: var(--accent);
  color: var(--navy-900);
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(62, 233, 141, 0.35);
}
.btn--ghost {
  background: #ffffff;
  color: var(--navy-900);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.btn--outline-light {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn--outline-light:hover {
  border-color: #ffffff;
  transform: translateY(-2px);
}
.btn--nav { display: inline-flex; }

/* ================= NAV ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 20, 31, 0.94);
  backdrop-filter: blur(10px);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo-img { height: 26px; width: auto; display: block; flex-shrink: 0; }
.nav__logo-img--mark { display: none; height: 30px; }
@media (max-width: 900px) and (min-width: 641px) {
  .nav__logo-img--full { display: none; }
  .nav__logo-img--mark { display: block; }
}
.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.nav__logo-thin { font-weight: 500; opacity: 0.75; }
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav__links a:hover { color: #ffffff; }
.nav__links a:hover::after { width: 100%; }

.nav__burger { display: none; flex-direction: column; gap: 5px; }
.nav__burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }

.nav__right { display: flex; align-items: center; gap: 20px; }

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}
.lang-toggle__option { transition: color var(--transition); padding: 4px 2px; }
.lang-toggle__option.is-active { color: var(--accent); }
.lang-toggle__option:not(.is-active):hover { color: #ffffff; }
.lang-toggle__sep { color: rgba(255, 255, 255, 0.3); }

/* ================= CUSTOM CURSOR ================= */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(62, 233, 141, 0.55);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.cursor-ring.is-hover {
  width: 56px;
  height: 56px;
  background: rgba(62, 233, 141, 0.1);
  border-color: var(--accent);
}

/* Only show the custom cursor on devices with a real mouse pointer */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, .card, .portfolio-card, .slider__dot, .slider__arrow {
    cursor: none;
  }
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* ================= HERO ================= */
.hero {
  position: relative;
  background: var(--navy-900);
  overflow: hidden;
  padding: 130px 0 56px;
}
.hero__bg {
  position: absolute;
  top: -60px; left: 0; right: 0; bottom: -60px;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.045) 0px, rgba(255,255,255,0.045) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.045) 0px, rgba(255,255,255,0.045) 1px, transparent 1px, transparent 64px);
  opacity: 0.9;
}
.hero__bg--photo {
  background-image: url('assets/img/hero-bg.webp');
  background-size: cover;
  background-position: center 35%;
  opacity: 0.8;
  filter: grayscale(0.1);
  will-change: transform;
}
/* Flat, even tint — the image stays visible everywhere instead of being hidden on one side */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 20, 31, 0.52);
}

/* Frosted-glass panel — same blurred-transparency language as the navbar, carries the text instead of a gradient hiding the photo */
.hero__glass {
  position: relative;
  width: fit-content;
  max-width: 100%;
  background: rgba(16, 20, 31, 0.24);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  padding: 40px 44px;
}
@media (max-width: 640px) {
  .hero__glass { padding: 28px 24px; border-radius: 0; width: auto; }
}
.hero__inner { position: relative; z-index: 2; max-width: 860px; }
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  text-shadow: 0 2px 16px rgba(16,20,31,0.6);
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  text-shadow: 0 4px 24px rgba(16,20,31,0.55);
}
.hero__title-accent { color: rgba(255, 255, 255, 0.7); font-weight: 700; }
.hero__subtitle {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  max-width: 620px;
  text-shadow: 0 2px 16px rgba(16,20,31,0.5);
}
.hero__ctas { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

/* Registration marks — corner crosshairs like a printed drawing sheet */
.reg-mark {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 3;
  opacity: 0.55;
}
.reg-mark::before, .reg-mark::after {
  content: '';
  position: absolute;
  background: var(--accent);
}
.reg-mark::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.reg-mark::after { left: 50%; top: 0; height: 100%; width: 1px; transform: translateX(-50%); }
.reg-mark--tl { top: 28px; left: 24px; }
.reg-mark--tr { top: 28px; right: 24px; }
.reg-mark--bl { bottom: 28px; left: 24px; }
.reg-mark--br { bottom: 28px; right: 24px; }
@media (max-width: 640px) { .reg-mark { display: none; } }

/* Title block — the "sheet info" strip along the base of the hero */
.titleblock {
  position: relative;
  z-index: 2;
  margin-top: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.titleblock__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  padding: 22px 24px 0;
}
.titleblock__field { display: flex; flex-direction: column; gap: 4px; }
.titleblock__label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.titleblock__value {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
@media (max-width: 640px) { .titleblock { margin-top: 48px; } }

/* ================= TRUST BAR (spec block) ================= */
.trustbar { background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,0.06); }
.trustbar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 8px 24px;
}
.trustbar__divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.14);
}
@media (max-width: 640px) { .trustbar__divider { display: none; } }
.trustbar__item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.76rem;
  font-weight: 500;
}
.trustbar__icon { display: inline-flex; width: 13px; height: 13px; flex-shrink: 0; }
.trustbar__icon svg { width: 100%; height: 100%; }
.trustbar__item .icon-slot { margin-bottom: 0; }

/* ================= SECTION SHARED ================= */
section {
  padding: 64px 0;
  position: relative;
  background-image:
    repeating-linear-gradient(90deg, rgba(23,27,38,0.025) 0px, rgba(23,27,38,0.025) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg, rgba(23,27,38,0.025) 0px, rgba(23,27,38,0.025) 1px, transparent 1px, transparent 80px);
}
.section-title {
  position: relative;
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 40px;
}
/* Sheet-number wayfinding — echoes the numbered sheets of a drawing set */
.section-title[data-index]::before {
  content: attr(data-index);
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--blueprint);
  margin-bottom: 14px;
}

.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
/* CAD-style selection-handle brackets, revealed on hover instead of a generic shadow lift */
.card::before, .card::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; transform: translate(4px, 4px); }
.card::after { bottom: -1px; right: -1px; border-left: none; border-top: none; transform: translate(-4px, -4px); }
.card:hover::before, .card:hover::after { opacity: 1; transform: translate(0, 0); }

.card--why, .card--step {
  padding: 32px 26px;
  background: #ffffff;
}
.icon-slot--why {
  display: inline-flex;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
}
.icon-slot--why svg { width: 100%; height: 100%; }
.card--why:hover, .card--step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(23, 27, 38, 0.07);
  border-color: transparent;
}
.card--why h3, .card--step h3 { font-size: 1.05rem; margin-bottom: 10px; }
.card--why p, .card--step p { font-size: 0.92rem; }

/* Why Us — two-column layout: intro left, advantage list right */
.why__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.why__title { text-align: left; margin-bottom: 20px; }
.why__title[data-index]::before { text-align: left; }
.why__intro-text { font-size: 1rem; color: var(--gray-700); line-height: 1.7; max-width: 380px; }
.why__list { display: flex; flex-direction: column; gap: 30px; }
.why__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.why__item:last-child { border-bottom: none; padding-bottom: 0; }
.why__item .icon-slot--why { margin-bottom: 0; flex-shrink: 0; }
.why__item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.why__item p { font-size: 0.9rem; color: var(--gray-700); }
@media (max-width: 900px) {
  .why__layout { grid-template-columns: 1fr; gap: 36px; }
  .why__intro-text { max-width: 100%; }
}

/* Clients — trusted-by logo strip */
.clients { padding: 56px 0; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.clients__label {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 32px;
}
.clients__logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 88px; }
.clients__logo {
  height: 54px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.5;
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.3s ease;
}
.clients__logo:hover { filter: grayscale(0); opacity: 1; transform: translateY(-2px); }

/* Services */
.services { background: var(--bg-soft); }
.card--service {
  overflow: hidden;
  background: var(--navy-900);
  position: relative;
  border: none;
  height: 340px;
}
.card--service__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.card--service:hover .card--service__img { transform: scale(1.06); }
.card--service:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(20, 24, 33, 0.25);
}

/* Frosted-glass caption panel — same blurred-transparency language as the navbar */
.card--service__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 20px 22px;
  background: linear-gradient(to top, rgba(16,20,31,0.88) 0%, rgba(16,20,31,0.55) 65%, rgba(16,20,31,0) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: padding-top var(--transition), background var(--transition);
}
.card--service__body h3 { color: #ffffff; font-size: 1.05rem; margin-bottom: 0; }
.card--service__body p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.card--service:hover .card--service__body {
  padding-top: 44px;
  background: linear-gradient(to top, rgba(16,20,31,0.94) 0%, rgba(16,20,31,0.8) 55%, rgba(16,20,31,0.05) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card--service:hover .card--service__body p {
  max-height: 140px;
  opacity: 1;
  margin-top: 10px;
}
@media (hover: none) {
  .card--service__body {
    padding-top: 44px;
    background: linear-gradient(to top, rgba(16,20,31,0.94) 0%, rgba(16,20,31,0.8) 55%, rgba(16,20,31,0.05) 100%);
  }
  .card--service__body p { max-height: 140px; opacity: 1; margin-top: 10px; }
}

/* ================= PORTFOLIO / SLIDER ================= */
.slider { display: flex; align-items: center; gap: 16px; }
.slider__viewport { overflow: hidden; flex: 1; }
.slider__track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s ease;
}
.portfolio-card {
  position: relative;
  flex: 0 0 calc((100% - 48px) / 3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.portfolio-card::before, .portfolio-card::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  opacity: 0;
  z-index: 2;
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.portfolio-card::before { top: 8px; left: 8px; border-right: none; border-bottom: none; transform: translate(4px, 4px); }
.portfolio-card::after { bottom: 8px; right: 8px; border-left: none; border-top: none; transform: translate(-4px, -4px); }
.portfolio-card:hover::before, .portfolio-card:hover::after { opacity: 1; transform: translate(0, 0); }
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(23, 27, 38, 0.09);
}
.portfolio-card__img {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
}
.portfolio-card__count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(16, 20, 31, 0.7);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 0;
  letter-spacing: 0.03em;
}
.portfolio-card__body { padding: 18px 20px 20px; }
.portfolio-card__body h3 { font-size: 0.95rem; letter-spacing: 0.01em; margin-bottom: 10px; line-height: 1.3; }

/* Compact spec rows — same small-caps label language as the hero title block */
.portfolio-card__specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.portfolio-card__spec {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.72rem;
}
.portfolio-card__spec span {
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.portfolio-card__spec strong {
  font-weight: 600;
  text-align: right;
  color: var(--ink);
}
.portfolio-card__services {
  font-size: 0.82rem;
  color: var(--gray-700);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slider__arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.slider__arrow:hover { background: var(--navy-900); color: #fff; transform: scale(1.05); }

.slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.slider__dot {
  width: 9px; height: 9px;
  aspect-ratio: 1 / 1;
  padding: 0;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--border);
  transition: background var(--transition), transform var(--transition);
}
.slider__dot--active { background: var(--accent); transform: scale(1.3); }

/* ================= PROJECT MODAL ================= */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 20, 31, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.project-modal.is-open { opacity: 1; visibility: visible; }
.project-modal__panel {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 1200px;
  width: 96%;
  height: min(760px, 92vh);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s ease;
}
.project-modal.is-open .project-modal__panel { transform: translateY(0) scale(1); }
.project-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(16, 20, 31, 0.55);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.project-modal__close:hover { background: var(--navy-900); }

.project-modal__media { position: relative; background: var(--bg-soft); height: 100%; }
.modal-slider__viewport { overflow: hidden; height: 100%; }
.modal-slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}
.modal-slide {
  flex: 0 0 100%;
  height: 100%;
  background-color: var(--bg-soft);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.modal-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
}
.modal-slider__arrow--prev { left: 12px; }
.modal-slider__arrow--next { right: 12px; }
.modal-slider__dots {
  position: absolute;
  bottom: 14px;
  left: 0; right: 0;
  margin-top: 0;
}
.modal-slider__dots .slider__dot { background: rgba(255,255,255,0.5); }
.modal-slider__dots .slider__dot--active { background: var(--accent); }

.project-modal__body {
  padding: 32px 30px;
  overflow-y: auto;
}
.project-modal__body h3 { font-size: 1.3rem; margin-bottom: 16px; }
.project-modal__body p { font-size: 0.92rem; color: var(--gray-700); }
.portfolio-card__spec--modal { font-size: 0.78rem; }

@media (max-width: 768px) {
  .project-modal__panel { grid-template-columns: 1fr; height: auto; max-height: 92vh; overflow-y: auto; }
  .modal-slide { height: 280px; }
}

.section-disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 32px auto 0;
  line-height: 1.6;
}

/* ================= CONTACT ================= */
.contact { background: var(--navy-900); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact__copy h2 {
  color: #ffffff;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1.2;
}
.contact__copy p { color: rgba(255, 255, 255, 0.7); margin-top: 18px; max-width: 440px; }
.contact__ctas { display: flex; gap: 16px; margin-top: 32px; }
.contact__calendly {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 8px;
}

/* ================= FOOTER ================= */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 64px;
}

/* ================= LEGAL PAGES ================= */
.legal { padding: 160px 0 96px; background: var(--bg); }
.legal__header { max-width: 760px; margin: 0 auto 48px; text-align: left; }
.legal__header h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.legal__updated { font-size: 0.85rem; color: var(--gray-500); }
.legal__body { max-width: 760px; margin: 0 auto; }
.legal__body h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 40px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.legal__body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal__body p { font-size: 0.95rem; line-height: 1.75; color: var(--gray-700); margin-bottom: 16px; }
.legal__body ul { margin: 0 0 16px; padding-left: 22px; }
.legal__body li { font-size: 0.95rem; line-height: 1.75; color: var(--gray-700); margin-bottom: 8px; }
.legal__body a { color: var(--blueprint); text-decoration: underline; }
.legal__body strong { color: var(--ink); font-weight: 600; }
/* Subtle world-map watermark, kept to the right so it never sits directly behind text */
.footer::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 60%;
  background-image: url('assets/img/misc/footer-map.webp');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}
.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__mission { justify-self: end; max-width: 260px; }
.footer__mission-text { color: rgba(255, 255, 255, 0.55); font-size: 0.84rem; line-height: 1.6; text-align: right; }
@media (max-width: 900px) { .footer__mission { display: none; } }
.footer__brand p { color: rgba(255,255,255,0.6); margin-top: 16px; font-size: 0.9rem; }
.footer__email { color: var(--accent); font-size: 0.9rem; display: inline-block; margin-top: 6px; }
.footer__socials { display: flex; gap: 12px; margin-top: 20px; }
.footer__social { color: rgba(255, 255, 255, 0.35); display: inline-flex; transition: color var(--transition), transform var(--transition); }
.footer__social svg { width: 30px; height: 30px; }
.footer__social:hover { color: var(--accent); transform: translateY(-2px); }
.footer__links-title { color: #fff; font-weight: 600; margin-bottom: 16px; font-size: 0.9rem; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color var(--transition); }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer__bottom a { color: rgba(255,255,255,0.5); }
.footer__bottom a:hover { color: #fff; }

/* ================= SCROLL REVEAL ================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ================= RESPONSIVE ================= */
@media (min-width: 1500px) {
  .portfolio-card { flex: 0 0 calc((100% - 72px) / 4); }
}
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .portfolio-card { flex: 0 0 calc((100% - 24px) / 2); }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav__links--open { display: flex; }
  .btn--nav { display: none; }
  .nav__burger { display: flex; }
  .nav__right { gap: 14px; }
  .grid--4 { grid-template-columns: 1fr; }
  .portfolio-card { flex: 0 0 100%; }
  .hero { padding: 80px 0 90px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
