:root {
  --ink: #333e48;
  --grey: #6d6e71;
  --warm: #f4f2ed;
  --paper: #fbfaf7;
  --accent: #b3a07a;
  --dark: #1c2a34;
  --text: #24313a;
  --max: 1220px;
  --header-h: 150px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 1px;
}

#about,
#approach,
#contact {
  scroll-margin-top: var(--header-h);
}


/* =========================
   SITE HEADER
   ========================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px max(28px, 4vw);
  transition: 0.35s ease;
  color: #fff;
}

.site-header.scrolled {
  background: rgba(28, 42, 52, 0.92);
  backdrop-filter: blur(14px);
  padding-top: 13px;
  padding-bottom: 13px;
}

.brand img {
  width: 144px;
  height: auto;
}

.desktop-nav {
  display: flex;
  gap: 38px;
  font-size: 18px;
  font-weight: 500;
}

.desktop-nav a,
.footer-inner a {
  position: relative;
}

.desktop-nav a:after,
.footer-inner a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s;
}

.desktop-nav a:hover:after,
.footer-inner a:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

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


/* =========================
   HERO
   ========================= */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #16212a;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 3s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide--1 {
  background-image: url("assets/mississauga-family.jpg");
  
}

.hero-slide--2 {
  background-image: url("assets/AdobeStock_1946260025.jpeg");
  
}
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(7, 15, 22, 0.78),
      rgba(18, 30, 39, 0.28) 55%,
      rgba(9, 16, 21, 0.36)
    ),
    linear-gradient(
      0deg,
      rgba(8, 16, 22, 0.35),
      transparent 45%
    );
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: var(--header-h) max(28px, 7.5vw) 96px;
  max-width: 900px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 16px;
  font-weight: 600;
  color: var(--grey);
  margin: 0 0 26px;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.7);
}

h1,
h2,
h3,
blockquote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  margin: 0;
}

h1 {
  font-size: clamp(68px, 8vw, 124px);
  line-height: 0.86;
  letter-spacing: -0.035em;
}

.rule {
  width: 82px;
  height: 1px;
  background: var(--accent);
  margin: 34px 0 24px;
}

.hero-copy {
  max-width: 580px;
  font-size: 20px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.discover {
  position: absolute;
  z-index: 3;
  left: max(28px, 7.5vw);
  bottom: 38px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
}

.discover b {
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: translateY(5px);
  }
}


/* =========================
   GENERAL SECTIONS
   ========================= */

.section {
  padding: clamp(90px, 11vw, 160px) max(28px, 6vw);
}

.section-inner {
  max-width: var(--max);
  margin: auto;
}

.light-section {
  background: var(--warm);
}

.dark-section {
  background: var(--dark);
  color: #fff;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 70px;
  align-items: center;
}

.copy {
  max-width: 600px;
}

.copy h2,
.dark-section h2,
.perspective h2,
.contact h2 {
  font-size: clamp(48px, 5.4vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.copy p {
  font-size: 16px;
  line-height: 1.75;
  color: #4f5b63;
}

.copy strong {
  color: var(--ink);
}


/* =========================
   BRIDGE ART
   ========================= */

.bridge-art svg {
  width: 100%;
  overflow: visible;
}

.bridge-art path,
.contact-bridge path {
  fill: none;
  stroke: rgba(51, 62, 72, 0.32);
  stroke-width: 1.5;
}

.bridge-art .base {
  opacity: 0.5;
}

.bridge-art .piers path {
  opacity: 0.65;
}


/* =========================
   PRINCIPLES
   ========================= */

.dark-section h2 {
  max-width: 760px;
}

.lead {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 760px;
  margin: 28px 0 54px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.principles article {
  padding: 0 45px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.principles article:first-child {
  padding-left: 0;
  border-left: 0;
}

.pillar-mark {
  display: block;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 22px;
  margin-bottom: 22px;
}

.principles h3 {
  font-size: 34px;
  margin-bottom: 10px;
}

.principles p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
}


/* =========================
   PLAYBOOK
   ========================= */

.playbook {
  overflow: hidden;
}

.playbook blockquote {
  font-size: 34px;
  margin-top: 34px;
}

.playbook blockquote:after {
  content: "";
  display: block;
  width: 90px;
  height: 1px;
  background: var(--accent);
  margin-top: 18px;
}

.sweep-art {
  position: relative;
  min-height: 430px;
}

.sweep-art span {
  position: absolute;
  width: 850px;
  height: 430px;
  border: 2px solid rgba(51, 62, 72, 0.48);
  border-color: rgba(51, 62, 72, 0.48) transparent transparent transparent;
  border-radius: 50%;
  left: -80px;
  top: 110px;
  transform: rotate(-12deg);
}

.sweep-art span + span {
  opacity: 0.16;
  transform: rotate(-6deg) translateY(60px);
}


/* =========================
   PERSPECTIVE
   ========================= */

.perspective {
  position: relative;
  min-height: 660px;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.perspective-image,
.perspective-shade {
  position: absolute;
  inset: 0;
}

.perspective-image {
  background: url("assets/mississauga-night.jpg") center / cover no-repeat;
}


.perspective-shade {
  background: linear-gradient(
    180deg,
    rgba(10, 16, 22, 0.55) 0%,
    rgba(10, 16, 22, 0.7) 40%,
    rgba(8, 13, 18, 0.88) 70%,
    rgba(5, 9, 13, 0.9) 100%
  );
}

.perspective-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 90px 28px;
}

.perspective-content p:last-child {
  max-width: 620px;
  margin: 28px auto 0;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.84);
}


/* =========================
   CONTACT
   ========================= */

.contact {
  position: relative;
  overflow: hidden;
  background: #24343f;
  color: #fff;
  padding: 100px max(28px, 6vw);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.contact h2 {
  font-size: clamp(48px, 5vw, 72px);
}

.contact-grid > div p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.email-link {
  display: inline-block;
  margin-top: 10px;
  color: #d4bd8e;
  font-size: 15px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(212, 189, 142, 0.45);
}

.email-link span {
  display: inline-block;
  transition: 0.2s;
}

.email-link:hover span {
  transform: translateX(5px);
}

.contact-bridge {
  position: absolute;
  right: -30px;
  bottom: -35px;
  width: min(48vw, 700px);
  opacity: 0.5;
}

.contact-bridge path {
  stroke: rgba(255, 255, 255, 0.4);
}


/* =========================
   FOOTER
   ========================= */

footer {
  background: #17242d;
  color: #fff;
  padding: 28px max(28px, 6vw);
}

.footer-inner {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 30px;
}

.footer-inner img {
  width: 142px;
}

.footer-inner p {
  font-size: 10px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}

.footer-inner nav {
  justify-self: end;
  display: flex;
  gap: 17px;
  font-size: 12px;
}

.footer-inner nav span {
  opacity: 0.35;
}


/* =========================
   REVEAL ANIMATION
   ========================= */

.reveal {
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 800px) {

  :root {
    --header-h: 118px;
  }

  .site-header {
    padding: 18px 22px;
  }

  .brand img {
    width: 122px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
    width: 34px;
    height: 28px;
    background: none;
    border: 0;
    padding: 5px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    z-index: 22;
  }

  .menu-toggle span {
    display: block;
    height: 1px;
    background: #fff;
    width: 100%;
    transition: 0.25s;
  }

  .menu-toggle.active span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle.active span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-menu {
    display: flex;
    position: fixed;
    inset: 0;
    background: #1c2a34;
    color: #fff;
    z-index: 21;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    gap: 22px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    will-change: opacity;
  }

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

  /* While the menu is open, flatten the header instantly instead of
     leaving its backdrop-filter blur active underneath the fading
     overlay — recomputing that blur every frame during the transition
     is what causes the stutter on scrolled pages on mobile. */
  .site-header.menu-open {
    background: rgba(28, 42, 52, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: none;
  }

  .mobile-menu a {
    font-family: "Cormorant Garamond", serif;
    font-size: 48px;
  }

  .hero-content {
    padding-left: 28px;
    padding-right: 28px;
  }

  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .reverse-on-mobile {
    display: flex;
    flex-direction: column-reverse;
  }

  .bridge-art {
    min-height: 280px;
  }

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

  .principles article,
  .principles article:first-child {
    padding: 26px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .principles article:first-child {
    border-top: 0;
  }

  .sweep-art {
    min-height: 170px;
    overflow: hidden;
    width: 100%;
    align-self: stretch;
  }

  .sweep-art span {
    width: 480px;
    height: 280px;
    left: 50%;
    top: 10px;
    margin-left: -240px;
    transform: rotate(-12deg);
  }

  .sweep-art span + span {
    transform: rotate(-6deg) translateY(36px);
  }

  .perspective {
    min-height: 560px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-inner nav {
    justify-self: start;
  }

  .contact-bridge {
    width: 95vw;
    opacity: 0.28;
  }

  .eyebrow {
    font-size: 16px;
  }
}


/* =========================
   REDUCED MOTIONx
   ========================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .discover b {
    animation: none;
  }

  .hero-slide {
    transition: none;
  }
}



