@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f3f5f3;
  --paper-raised: #e8edeb;
  --surface: #fbfcfa;
  --ink: #192b35;
  --muted: #53636b;
  --line: #cbd4d2;
  /* One maple-red accent, with a contrast-safe tint for dark mode. */
  --accent: #a33329;
  --accent-button: #a33329;
  --accent-button-hover: #922f27;
  --accent-soft: #f0e2de;
  --photo-wash: #dbe4e1;
  --shell: 1280px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --radius: 5px;
  --header-height: 76px;
  --ease-out: cubic-bezier(0.2, 0.75, 0.25, 1);
  font-family: "Manrope", "Avenir Next", Avenir, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121e25;
    --paper-raised: #192a33;
    --surface: #1c3039;
    --ink: #edf2f0;
    --muted: #b2c0c2;
    --line: #3b4e55;
    --accent: #f08a7a;
    --accent-button: #a33329;
    --accent-button-hover: #922f27;
    --accent-soft: #392b2a;
    --photo-wash: #25363b;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

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

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.page-shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 30;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--paper) 91%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-height);
  gap: clamp(1rem, 3vw, 3rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.2rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.brand-name {
  display: grid;
  gap: 0.03rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.08;
}

.brand-name span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.2rem, 3vw, 2.6rem);
}

.primary-nav a,
.language-toggle,
.menu-toggle {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:not(.nav-contact) {
  transition: color 180ms ease;
}

.primary-nav a:not(.nav-contact):hover,
.footer-contact:hover {
  color: var(--accent);
}

.primary-nav .nav-contact {
  padding: 0.58rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.primary-nav .nav-contact:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.language-toggle,
.menu-toggle {
  display: inline-grid;
  min-width: 2.65rem;
  min-height: 2.65rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.language-toggle:hover,
.menu-toggle:hover {
  border-color: var(--ink);
  background: var(--paper-raised);
}

.language-toggle:active,
.menu-toggle:active {
  transform: scale(0.97);
}

.menu-toggle {
  display: none;
  align-content: center;
  gap: 5px;
  padding: 0.7rem;
}

.menu-toggle span {
  display: block;
  width: 1rem;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
  align-items: center;
  min-height: min(760px, calc(100dvh - var(--header-height)));
  gap: clamp(2.5rem, 6vw, 6.5rem);
  padding-block: clamp(3.2rem, 7vh, 5rem) clamp(4rem, 8vh, 6rem);
}

.hero-copy {
  max-width: 36rem;
  animation: enter-up 680ms var(--ease-out) both;
}

.eyebrow {
  margin: 0 0 1.35rem;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.35rem;
  font-size: clamp(3.2rem, 5vw, 4.55rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 1.03;
}

.hero-intro {
  max-width: 33rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.13rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  gap: 0.75rem;
  padding: 0.76rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms var(--ease-out);
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: var(--accent-button);
  color: #fff;
}

.button-primary::after {
  content: "↗";
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
}

.button-primary:hover {
  background: var(--accent-button-hover);
  transform: translateY(-2px);
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button-secondary::after {
  content: "↓";
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
}

.button-secondary:hover {
  border-color: var(--ink);
  background: var(--paper-raised);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  width: 100%;
  margin: 0;
  animation: enter-up 780ms 100ms var(--ease-out) both;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.08 / 1;
  border-radius: var(--radius);
  background: var(--photo-wash);
  object-fit: cover;
  object-position: center 53%;
}

.visual-rule {
  position: absolute;
  right: -0.8rem;
  bottom: -0.8rem;
  width: 27%;
  height: 27%;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  pointer-events: none;
}

.section-space {
  padding-block: clamp(5rem, 9vw, 8.5rem);
}

.services-section {
  background: var(--paper-raised);
}

.section-intro {
  max-width: 42rem;
  margin-bottom: clamp(2.7rem, 5vw, 4.5rem);
}

.section-intro .eyebrow {
  margin-bottom: 1rem;
}

.section-intro h2,
.local-copy h2,
.approach-heading h2,
.contact-inner h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.section-intro p:last-child,
.local-copy > p,
.approach-heading > p,
.contact-action > p {
  max-width: 38rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: 0;
}

.service-item {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.8rem 0 2rem;
  border-top: 1px solid var(--line);
}

.service-item:nth-child(2) {
  transition-delay: 70ms;
}

.service-item:nth-child(3) {
  transition-delay: 110ms;
}

.service-item:nth-child(4) {
  transition-delay: 150ms;
}

.service-mark {
  display: grid;
  width: 2.1rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
}

.service-item h3,
.process-step h3 {
  margin-bottom: 0.48rem;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.service-item p,
.process-step p {
  max-width: 31rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.local-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(19rem, 0.95fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.city-collage {
  display: grid;
  min-height: 480px;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr 0.82fr;
  align-items: center;
  gap: 1rem;
}

.city-collage img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  background: var(--photo-wash);
  object-fit: cover;
}

.canal-photo {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  min-height: 420px;
  object-position: center;
}

.downtown-photo {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  min-height: 185px;
}

.local-copy {
  max-width: 31rem;
}

.local-copy h2 {
  max-width: 12ch;
  margin-bottom: 1.3rem;
}

.local-copy > p {
  margin-bottom: 1.7rem;
}

.local-points {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.local-points li {
  padding-block: 0.78rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 650;
}

.approach-section {
  background: var(--paper-raised);
}

.approach-heading {
  display: block;
  max-width: 46rem;
  margin-bottom: clamp(2.7rem, 5vw, 4.5rem);
}

.approach-heading h2 {
  max-width: 12ch;
  margin-bottom: 1rem;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-step {
  padding-top: 1.2rem;
}

.process-step:nth-child(2) {
  transition-delay: 80ms;
}

.process-step:nth-child(3) {
  transition-delay: 160ms;
}

.process-line {
  display: block;
  width: 100%;
  height: 2px;
  margin-bottom: 1.5rem;
  background: var(--line);
}

.process-step:first-child .process-line {
  background: var(--accent);
}

.process-step p {
  max-width: 20rem;
}

.contact-section {
  padding-block: clamp(5rem, 8vw, 7.5rem);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(17rem, 0.65fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-inner .eyebrow {
  margin-bottom: 1rem;
}

.contact-inner h2 {
  max-width: 12ch;
  margin-bottom: 0;
}

.contact-action > p {
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-raised);
}

.footer-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-block: 2rem;
}

.footer-main > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-contact::after {
  content: "↗";
  font-size: 1rem;
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.1rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-bottom small {
  font-size: 0.77rem;
}

.image-credits {
  max-width: 48rem;
  font-size: 0.77rem;
}

.image-credits summary {
  width: max-content;
  cursor: pointer;
  font-weight: 700;
}

.credit-copy {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.credit-copy p {
  margin: 0;
  line-height: 1.6;
}

.credit-copy a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

.reveal.will-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.reveal.will-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes enter-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1500px) {
  .hero {
    min-height: min(820px, calc(100dvh - var(--header-height)));
  }
}

@media (max-width: 960px) {
  :root {
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
  }

  .header-inner {
    gap: 1.4rem;
  }

  .primary-nav {
    gap: 1.15rem;
  }

  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
    gap: 2.5rem;
  }

  h1 {
    font-size: clamp(3rem, 6vw, 4rem);
  }

  .local-layout {
    gap: 3.5rem;
  }

  .city-collage {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .header-inner {
    position: relative;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  html.js .primary-nav {
    display: none;
  }

  html.js .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 0.8rem 0;
  }

  .primary-nav .nav-contact {
    width: max-content;
    margin-top: 0.5rem;
    padding: 0.58rem 0.9rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    min-height: auto;
    padding-block: 4.2rem 5rem;
  }

  .hero-copy {
    max-width: 36rem;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 10vw, 4.25rem);
  }

  .hero-visual {
    width: calc(100% - 0.8rem);
    justify-self: start;
  }

  .hero-visual img {
    aspect-ratio: 1.18 / 1;
    object-position: center 53%;
  }

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

  .local-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .city-collage {
    min-height: min(112vw, 520px);
  }

  .canal-photo {
    min-height: 100%;
  }

  .downtown-photo {
    min-height: 0;
  }

  .local-copy {
    max-width: 38rem;
  }

  .approach-heading h2 {
    max-width: 15ch;
  }

  .process-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .process-step {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    column-gap: 1rem;
    padding-top: 0;
  }

  .process-line {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 2px;
    height: calc(100% - 0.4rem);
    margin: 0.2rem auto 0;
  }

  .process-step:first-child .process-line {
    width: 3px;
  }

  .process-step h3,
  .process-step p {
    grid-column: 2;
  }

  .process-step h3 {
    margin-bottom: 0.3rem;
  }

  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding: clamp(1.5rem, 7vw, 2.4rem);
  }

  .contact-inner h2 {
    max-width: 14ch;
  }
}

@media (max-width: 520px) {
  :root {
    --gutter: 1.25rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .service-item {
    grid-template-columns: 2.15rem minmax(0, 1fr);
    gap: 0.85rem;
  }

  .city-collage {
    min-height: 390px;
    grid-template-columns: 1.08fr 0.92fr;
    grid-template-rows: 1fr 0.7fr;
    gap: 0.65rem;
  }

  .footer-main {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .footer-main > p {
    grid-column: 1;
    grid-row: 2;
  }

  .footer-contact {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal.will-reveal {
    opacity: 1;
    transform: none;
  }
}
