/* ============== TOKENS ============== */
:root {
  --brand: #b2c36b;
  --brand-dark: color-mix(in oklab, var(--brand) 78%, #000);
  --brand-deep: color-mix(in oklab, var(--brand) 48%, #000);
  --ink: #1a1f1a;
  --ink-soft: #3a4036;
  --muted: #6f7367;
  --line: #d9d6cb;
  --paper: #f6f5f0;
  --paper-2: #efece1;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.05);
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 24px;
  --max: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --display: "Archivo", "Archivo Black", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1.5px;
  background: var(--brand-deep);
  display: inline-block;
}

/* ============== NAV ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,245,240,.85);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.scrolled { border-color: var(--line); background: rgba(246,245,240,.95); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 86px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 22px;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--brand);
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 16px;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 6px;
  border: 1.5px solid var(--brand);
}
.brand-text { line-height: 1; }
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-logo img {
  height: 44px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}
.brand-logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}
.brand-logo-text b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.brand-logo small {
  font-family: var(--body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-logo-footer img {
  background: #ffffff;
  padding: 6px 8px;
  border-radius: 10px;
  mix-blend-mode: normal;
  height: 52px;
}
.brand-logo-footer .brand-logo-text b { color: var(--paper); }
.brand-logo-footer small {
  color: rgba(246,245,240,.6);
}
.brand-text small {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14.5px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.nav-links .has-menu { position: relative; }
.nav-links .has-menu > a::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  margin-left: 8px;
}
.submenu {
  position: absolute;
  top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 240px;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.nav-links .has-menu:hover .submenu,
.nav-links .has-menu:focus-within .submenu {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.submenu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}
.submenu a:hover { background: var(--paper-2); color: var(--ink); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--brand-deep); transform: translateY(-1px); }
.nav-cta svg { width: 14px; height: 14px; }

.menu-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--ink); color: var(--paper);
    font-weight: 600; font-size: 14px;
  }
  .mobile-menu {
    position: fixed; inset: 86px 0 0 0;
    background: var(--paper);
    padding: 24px var(--pad);
    transform: translateY(-100%);
    transition: transform .35s cubic-bezier(.7,0,.2,1);
    z-index: 49;
    border-top: 1px solid var(--line);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  .mobile-menu.open { 
    transform: translateY(0);
  }
  .mobile-menu a {
    display: flex;
    align-items: center;
    font-family: var(--display);
    font-size: 26px;
    font-weight: 700;
    height: 64px;
    padding: 0;
    border-bottom: 1px solid var(--line);
    letter-spacing: -.02em;
    color: var(--ink);
    line-height: 1;
  }
  .mobile-menu a:last-child { border-bottom: none; }
  .mobile-menu .sub {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    height: 48px;
    padding-left: 20px;
    border-bottom: 1px solid color-mix(in oklab, var(--line) 55%, transparent);
  }
}

/* ============== HERO ============== */
.hero {
  padding: 0 0 clamp(60px, 8vw, 110px);
  position: relative;
  overflow: hidden;
}
.hero-banner {
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(15,18,15,.72) 0%, rgba(15,18,15,.45) 45%, rgba(15,18,15,.15) 75%, rgba(15,18,15,0) 100%),
    url('assets/mxl-hero-bg.png');
  background-size: cover;
  background-position: center;
  padding: clamp(80px, 14vw, 200px) 0 clamp(70px, 12vw, 180px);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.hero .hero-banner h1 { color: var(--paper); margin-left: -.05em; padding-left: 0; transform: translateX(-12px); }
.hero .hero-banner h1 .connector { color: rgba(246,245,240,.85); }
.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: stretch;
}
.hero-intro-text {
  max-width: 56ch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero-intro-text .btn {
  font-size: 14px;
}
.hero-intro-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 100%;
}
.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-md);
}
.hero-carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s ease;
}
.hero-carousel-img.is-active { opacity: 1; }
@media (max-width: 820px) {
  .hero-intro { grid-template-columns: 1fr; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: end;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 7.5vw, 112px);
  line-height: .95;
  letter-spacing: -.035em;
  color: var(--ink);
}
.hero h1 .pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--brand);
  color: var(--ink);
  padding: 0 .35em;
  border-radius: .15em;
  font-style: normal;
}
.hero h1 .underline {
  position: relative;
  white-space: nowrap;
}
.hero h1 .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .08em;
  height: .08em;
  background: var(--brand);
  z-index: -1;
}
.hero h1 .connector {
  display: inline-block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: .42em;
  letter-spacing: -.01em;
  color: var(--muted);
  vertical-align: middle;
  margin: .1em 0 .15em;
}
.hero h1 .hl {
  display: block;
}
@media (max-width: 900px) {
  .hero h1 {
    font-size: clamp(58px, 16vw, 110px);
    line-height: .88;
    letter-spacing: -.045em;
  }
  /* Per-line scale to make each line roughly fill the column —
     'Engineering' is the longest, so it stays at 1em and others scale up. */
  .hero h1 .hl-1 { font-size: 1.22em; }   /* Toronto's */
  .hero h1 .hl-2 { font-size: 1em; }      /* Engineering — baseline */
  .hero h1 .hl-3 { font-size: 1.5em; }    /* Experts */
  .hero h1 .hl-5 { font-size: 1.42em; }   /* Florida. */
  .hero h1 .connector { font-size: .55em; }
}
.hero-sub {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(17px, 1.6vw, 21px);
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 28px 0 18px;
}
.hero-body {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.65;
}
.btn {
  display: inline-flex; align-items: center;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s, background .2s, color .2s;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-link {
  display: inline-flex; align-items: center; gap: 14px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
}
.btn-link .bar {
  width: 36px; height: 1.5px; background: var(--ink); display: inline-block;
  transition: width .25s;
}
.btn-link:hover .bar { width: 52px; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: var(--shadow-md);
}
.hero-visual .placeholder {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.06) 0 2px, transparent 2px 14px);
  display: grid; place-items: center;
  color: var(--ink); font-family: ui-monospace, monospace;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.hero-visual .placeholder span {
  background: rgba(255,255,255,.9);
  padding: 8px 14px; border-radius: 999px;
}
.hero-visual .tag {
  position: absolute;
  bottom: 22px; left: 22px; right: 22px;
  background: rgba(26,31,26,.85);
  color: var(--paper);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  font-size: 13px;
}
.hero-visual .tag b {
  font-family: var(--display);
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
}
.hero-visual .tag .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--brand); flex: none;
  box-shadow: 0 0 0 4px rgba(178,195,107,.25);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(178,195,107,.25); }
  50% { box-shadow: 0 0 0 10px rgba(178,195,107,0); }
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 28px 56px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  align-items: end;
}
.hero-meta .stat {
  display: flex; flex-direction: column;
}
.hero-meta .stat b {
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}
.hero-meta .stat span {
  color: var(--muted);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 8px;
}
.hero-meta .marquee {
  margin-left: auto;
  font-family: var(--display);
  font-size: 14px; font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .14em;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 5/4; }
}

/* ============== SERVICES (4-CARD ROW) ============== */
.services {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(70px, 9vw, 130px) 0;
  position: relative;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}
.service-card {
  background: var(--ink);
  padding: 36px 30px 32px;
  display: flex; flex-direction: column;
  position: relative;
  min-height: 360px;
  transition: background .35s;
}
.service-card:hover { background: #232924; }
.service-card .num {
  font-family: var(--display);
  font-size: 13px; font-weight: 600;
  color: var(--brand);
  letter-spacing: .12em;
}
.service-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--brand);
  color: var(--ink);
  display: grid; place-items: center;
  margin: 22px 0 28px;
  transition: transform .35s;
}
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.05); }
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 14px;
  line-height: 1.15;
}
.service-card p {
  color: rgba(246,245,240,.65);
  font-size: 14.5px;
  line-height: 1.6;
}
.service-card .arrow {
  margin-top: auto;
  padding-top: 24px;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brand);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
}
.service-card .arrow svg { width: 14px; height: 14px; transition: transform .25s; }
.service-card:hover .arrow svg { transform: translateX(4px); }

.services-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: end;
}
.services-head h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.025em;
  max-width: 16ch;
}
.services-head p {
  color: rgba(246,245,240,.65);
  max-width: 46ch;
  margin-left: auto;
}

@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } .services-head { grid-template-columns: 1fr; } .services-head p { margin-left: 0; } }

/* ============== ABOUT ============== */
.about {
  padding: clamp(80px, 10vw, 140px) 0;
  background: color-mix(in oklab, var(--brand) 22%, #fff);
}
.about-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.about-img {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #c8d490 0%, #8da046 100%);
}
.about-img .about-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-img .badge {
  position: absolute;
  z-index: 2;
  bottom: 22px; left: 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.about-img .stamp {
  position: absolute;
  bottom: 22px; right: 22px;
  width: 130px; height: 130px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1;
  font-size: 28px;
  transform: rotate(-8deg);
}
.about-img .stamp small {
  display: block;
  font-size: 9px;
  letter-spacing: .2em;
  font-weight: 600;
  margin-top: 6px;
  color: var(--brand);
  text-transform: uppercase;
}
.about-content h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 18px 0 24px;
}
.about-content p {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-content .signature {
  margin-top: 36px;
  display: flex; align-items: center; gap: 18px;
}
.signature-mark {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.04em;
  font-style: italic;
  color: var(--brand-deep);
}
.signature-info b {
  display: block;
  font-family: var(--display); font-size: 15px; letter-spacing: -.01em;
}
.signature-info span { color: var(--muted); font-size: 13px; }

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

/* ============== WHAT WE DO ============== */
.wwd {
  background: var(--paper-2);
  padding: clamp(80px, 10vw, 130px) 0;
}
.wwd-head {
  margin-bottom: clamp(40px, 6vw, 70px);
}
.wwd .eyebrow { color: var(--brand); }
.wwd .eyebrow::before { background: var(--brand); }
.wwd-head h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.018em;
  margin-top: 18px;
}
.wwd-grid {
  display: grid;
  grid-template-columns: repeat(var(--wwd-cols, 3), 1fr);
  gap: clamp(8px, 1.4vw, 18px);
}
.wwd-col {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 8px;
}
.wwd-col h4 {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  padding: 14px 16px 10px;
}
.wwd-col ul { list-style: none; }
.wwd-col li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -.005em;
  transition: padding-left .2s, color .2s;
  cursor: pointer;
}
.wwd-col li .check { margin-top: 2px; }
.wwd-col li:hover { padding-left: 22px; color: var(--brand-deep); }
.wwd-col li .check {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--brand);
  display: grid; place-items: center;
  flex: none;
}
.wwd-col li .check svg { width: 12px; height: 12px; color: var(--ink); }

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

/* ============== PROJECTS ============== */
.projects {
  padding: clamp(80px, 10vw, 130px) 0;
}
.projects-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}
.projects-head h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.025em;
  margin-top: 18px;
}
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 6px;
  background: var(--paper-2);
  padding: 6px;
  border-radius: 999px;
  align-self: end;
  margin-left: auto;
}
.filter-bar button {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  color: var(--ink-soft);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.filter-bar button:hover { color: var(--ink); }
.filter-bar button.active { background: var(--ink); color: var(--paper); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.project-card {
  position: relative;
  aspect-ratio: 5/7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  transition: transform .3s;
}
.project-card:hover { transform: translateY(-4px); }
.project-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #1a1f1a;
  transition: transform .6s;
}
.project-card:hover .project-video { transform: scale(1.04); }
.project-img {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 16px);
  transition: transform .6s;
}
.project-card:nth-child(3n+1) .project-img { background-color: #2d3a1f; }
.project-card:nth-child(3n+2) .project-img { background-color: #3a3a2f; }
.project-card:nth-child(3n+3) .project-img { background-color: #2a2f2a; }
.project-card:hover .project-img { transform: scale(1.06); }
.project-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.85) 100%);
}
.project-tag {
  position: absolute;
  top: 18px; left: 18px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 2;
}
.project-meta {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  color: var(--paper);
  z-index: 2;
  background: rgba(26, 31, 26, .82);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  border: 1px solid rgba(178, 195, 107, .35);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.project-meta h3 {
  font-family: var(--display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.1;
  color: var(--brand);
}
.project-meta .loc {
  font-size: 13px;
  color: rgba(246,245,240,.85);
  margin-top: 6px;
  display: flex; align-items: center; gap: 8px;
}
.project-meta .loc::before {
  content: "";
  width: 4px; height: 4px; border-radius: 999px;
  background: var(--brand);
}
.project-card .corner {
  position: absolute;
  top: 18px; right: 18px;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
  display: grid; place-items: center;
  z-index: 2;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .25s, transform .25s;
}
.project-card:hover .corner { opacity: 1; transform: scale(1); }
.project-card .corner svg { width: 18px; height: 18px; }
.project-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,.4);
  font-family: ui-monospace, monospace;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  z-index: 1;
}

@media (max-width: 980px) { .projects-head { grid-template-columns: 1fr; } .filter-bar { margin-left: 0; } }
@media (max-width: 820px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .projects-grid { grid-template-columns: 1fr; } }

/* ============== CTA ============== */
.cta {
  background: var(--brand);
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto auto;
  width: 60%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.4), transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  max-width: var(--cta-max, 22ch);
  margin-left: var(--cta-ml, 0);
  margin-right: var(--cta-mr, auto);
  text-align: var(--cta-align, left);
}
.cta h2 {
  font-family: var(--display);
  font-size: var(--cta-h2-size, clamp(40px, 7vw, 104px));
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.035em;
  color: var(--ink);
  white-space: var(--cta-wrap, normal);
}
.cta h2 .swap {
  display: inline-block;
  position: relative;
  font-style: italic;
  color: var(--brand-deep);
  min-width: 5ch;
  font-size: var(--cta-swap-size, 1.15em);
  letter-spacing: -.04em;
}
.cta h2 .swap span {
  display: inline-block;
  position: absolute; left: 0; top: 0;
  opacity: 0;
  transform: translateY(.4em);
  transition: opacity .5s, transform .5s;
}
.cta h2 .swap span.active {
  opacity: 1;
  transform: translateY(0);
}
.cta h2 .swap .ghost {
  display: inline-block;
  opacity: 0;
  visibility: hidden;
}
.cta p {
  margin: 32px 0 36px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-soft);
  max-width: 50ch;
  line-height: 1.55;
}
.cta-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.cta-actions .btn-primary { background: var(--ink); color: var(--paper); }
.cta-actions .btn-ghost { border-color: var(--ink); color: var(--ink); }
.cta-actions .btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ============== FOOTER ============== */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(60px, 8vw, 100px) 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer h4 {
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.footer-brand .brand { color: var(--paper); }
.footer-brand .brand-mark { background: var(--brand); color: var(--ink); }
.footer-brand .brand-mark::after { border-color: var(--ink); }
.footer-brand p {
  color: rgba(246,245,240,.6);
  font-size: 14.5px;
  line-height: 1.65;
  margin-top: 18px;
  max-width: 32ch;
}
.footer-brand .extra { 
  color: rgba(246,245,240,.6);
  margin-top: 18px; 
  font-size: 14px; 
}
.footer-brand .extra a:hover { color: var(--brand); }
.footer-col p, .footer-col a {
  color: rgba(246,245,240,.75);
  font-size: 15px;
  line-height: 1.65;
  display: block;
}
.footer-col a:hover { color: var(--brand); }
.footer-col .stack > * + * { margin-top: 4px; }
.footer-col .social {
  display: flex; gap: 10px; margin-top: 12px;
}
.footer-col .social a {
  width: 40px; height: 40px; border-radius: 999px;
  background: rgba(255,255,255,.06);
  display: grid; place-items: center;
  transition: background .2s;
}
.footer-col .social a:hover { background: var(--brand); color: var(--ink); }
.footer-col .social svg { width: 16px; height: 16px; }


.footer-bottom {
  margin-top: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  color: rgba(246,245,240,.5);
  font-size: 13px;
}

@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============== UTIL ============== */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
