:root {
  --ink: #11161b;
  --ink-soft: #222a31;
  --paper: #f3f2ef;
  --white: #ffffff;
  --steel: #717980;
  --line: #d8d9d7;
  --yellow: #f2c318;
  --yellow-dark: #c89c00;
  --container: 1180px;
  --header-height: 82px;
  --shadow: 0 22px 50px rgba(11, 16, 20, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

h1 em,
h2 em {
  color: var(--yellow);
  font-style: normal;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--yellow);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
}

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

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  background: rgba(243, 242, 239, 0.97);
  border-bottom: 1px solid rgba(17, 22, 27, 0.12);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

.brand {
  flex: 0 0 auto;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
}

.site-nav a {
  position: relative;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--yellow-dark);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-contact {
  padding: 11px 18px;
  background: var(--ink);
  color: var(--white) !important;
}

.nav-contact:hover {
  background: var(--ink-soft);
}

.header-controls {
  display: none;
  align-items: center;
  gap: 16px;
}

.language-shortcut {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(17, 22, 27, 0.34);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
}

.language-shortcut:hover {
  background: var(--yellow);
  border-color: var(--yellow-dark);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle-icon {
  position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle-icon::before {
  top: -7px;
}

.menu-toggle-icon::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 13, 17, 0.92) 0%, rgba(8, 13, 17, 0.76) 40%, rgba(8, 13, 17, 0.25) 77%, rgba(8, 13, 17, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 13, 17, 0.45), transparent 45%),
    url("../images/hero-conduits.jpg") center / cover no-repeat;
  transform: scale(1.015);
}

.hero::before {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: max(24px, calc((100vw - var(--container)) / 2));
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding-block: 96px 120px;
}

.hero-copy {
  width: min(760px, 76%);
  padding-left: clamp(24px, 4vw, 58px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow span {
  width: 30px;
  height: 3px;
  background: var(--yellow);
}

.eyebrow-dark {
  color: var(--steel);
}

.hero h1 {
  max-width: 730px;
  margin-bottom: 28px;
  font-size: clamp(3.4rem, 7.4vw, 7.2rem);
  text-wrap: balance;
}

.hero-summary {
  max-width: 690px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions,
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 23px;
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.button-primary:hover {
  background: #ffd83d;
  border-color: #ffd83d;
}

.button-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.48);
}

.button-ghost:hover {
  background: var(--white);
  color: var(--ink);
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-scroll span:last-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
}

.section {
  padding-block: clamp(88px, 11vw, 150px);
}

.section-number {
  margin-bottom: 24px;
  color: rgba(17, 22, 27, 0.09);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.75;
}

.section-number-light {
  color: rgba(255, 255, 255, 0.09);
}

.section h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  text-wrap: balance;
}

.section-expertise {
  background:
    linear-gradient(90deg, transparent 49.95%, rgba(17, 22, 27, 0.08) 50%, transparent 50.05%),
    var(--paper);
}

.expertise-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(64px, 10vw, 140px);
}

.section-heading {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 40px);
}

.expertise-copy {
  color: #444b51;
}

.expertise-copy p {
  margin-bottom: 24px;
}

.expertise-copy .lead {
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.48;
}

.expertise-copy blockquote {
  margin: 44px 0;
  padding: 6px 0 6px 28px;
  border-left: 5px solid var(--yellow);
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.42;
}

.expertise-copy blockquote p {
  margin: 0;
}

.section-services {
  color: var(--white);
  background: var(--ink);
}

.services-intro,
.projects-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: clamp(50px, 8vw, 120px);
  margin-bottom: clamp(52px, 7vw, 86px);
}

.services-intro > p,
.projects-heading > p {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.62);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.service-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 300px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.service-image {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.service-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(9, 13, 17, 0.68));
  content: "";
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.28) contrast(1.05);
  transition: filter 260ms ease, transform 500ms ease;
}

.service-card:hover .service-image img {
  filter: grayscale(0);
  transform: scale(1.045);
}

.service-index {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 12px;
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.service-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.service-content h3 {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.service-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.94rem;
}

.section-projects {
  background: var(--white);
}

.projects-heading > p {
  color: var(--steel);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background: var(--ink);
}

.project-card-featured {
  grid-column: 1 / -1;
  min-height: 480px;
}

.project-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 11, 15, 0.87) 0%, rgba(7, 11, 15, 0.12) 65%);
  content: "";
  pointer-events: none;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

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

.project-card figcaption {
  position: absolute;
  z-index: 1;
  right: 30px;
  bottom: 28px;
  left: 30px;
  display: flex;
  flex-direction: column;
  color: var(--white);
}

.project-card figcaption span {
  margin-bottom: 6px;
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-card figcaption strong {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing: -0.025em;
}

.contact {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: var(--white);
  background: #1a2025;
}

.contact-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 15, 19, 0.2) 0%, rgba(10, 15, 19, 0.38) 50%, rgba(10, 15, 19, 0.77) 100%),
    url("../images/contact-beauport.jpg") center / cover no-repeat;
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 760px;
  align-items: center;
  justify-content: flex-end;
  padding-block: 70px;
}

.contact-panel {
  width: min(100%, 520px);
  padding: clamp(38px, 6vw, 68px);
  background: rgba(15, 20, 25, 0.95);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  margin-bottom: 28px;
}

.contact-intro {
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.7);
}

.contact-details {
  display: grid;
  gap: 24px;
  margin-bottom: 36px;
}

.contact-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
}

.contact-item address {
  font-style: normal;
}

.contact-item a {
  width: fit-content;
  text-decoration-color: rgba(242, 195, 24, 0.65);
  text-underline-offset: 4px;
}

.contact-values {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.footer-brand img {
  width: 112px;
  height: auto;
}

.footer-inner p,
.footer-inner > a {
  margin: 0;
  color: var(--steel);
  font-size: 0.76rem;
  font-weight: 700;
}

.footer-inner > a {
  justify-self: end;
  text-decoration: none;
}

.footer-inner > a span {
  margin-left: 8px;
  color: var(--yellow-dark);
}

.footer-separator {
  margin-inline: 7px;
  color: var(--yellow-dark);
}

.footer-credit {
  text-decoration-color: var(--yellow-dark);
  text-underline-offset: 3px;
  white-space: nowrap;
}

.footer-credit:hover {
  color: var(--ink);
}

.error-page {
  min-height: 100vh;
  color: var(--white);
  background:
    linear-gradient(rgba(12, 17, 21, 0.9), rgba(12, 17, 21, 0.95)),
    url("../images/hero-conduits.jpg") center / cover fixed;
}

.error-main {
  display: flex;
  width: min(calc(100% - 48px), 760px);
  min-height: 100vh;
  margin-inline: auto;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.error-brand {
  margin-bottom: 50px;
  padding: 12px;
  background: var(--paper);
}

.error-brand img {
  width: 150px;
  height: auto;
}

.error-code {
  margin-bottom: 8px;
  color: var(--yellow);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.error-main h1 {
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 8vw, 6rem);
}

.error-main > p:not(.error-code) {
  max-width: 560px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
}

@media (max-width: 1000px) {
  .service-card {
    grid-template-columns: 145px minmax(0, 1fr);
  }

  .service-content {
    padding: 26px;
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 72px;
  }

  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .header-controls {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 16px 18px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(17, 22, 27, 0.12);
  }

  .js .site-nav[data-open="true"] {
    display: grid;
  }

  .site-nav a {
    padding: 13px 10px;
  }

  .site-nav a:not(.nav-contact)::after {
    display: none;
  }

  .site-nav .nav-language {
    display: none;
  }

  .nav-contact {
    margin-top: 8px;
    text-align: center;
  }

  .hero::before {
    left: 18px;
  }

  .hero-backdrop {
    background:
      linear-gradient(90deg, rgba(8, 13, 17, 0.92), rgba(8, 13, 17, 0.48)),
      linear-gradient(0deg, rgba(8, 13, 17, 0.58), transparent 50%),
      url("../images/hero-conduits.jpg") 61% center / cover no-repeat;
  }

  .hero-inner {
    min-height: max(680px, calc(100svh - var(--header-height)));
    padding-block: 80px 110px;
  }

  .hero-copy {
    width: 100%;
    padding-left: 18px;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 15vw, 5.25rem);
  }

  .hero-summary {
    max-width: 560px;
  }

  .hero-scroll {
    left: 36px;
    right: auto;
  }

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

  .expertise-grid,
  .services-intro,
  .projects-heading {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .section-heading {
    position: static;
  }

  .services-intro > p,
  .projects-heading > p {
    max-width: 620px;
  }

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

  .service-card {
    grid-template-columns: 170px minmax(0, 1fr);
    min-height: 270px;
  }

  .project-card,
  .project-card-featured {
    grid-column: auto;
    min-height: 340px;
  }

  .contact,
  .contact-inner {
    min-height: 0;
  }

  .contact {
    padding-top: 300px;
  }

  .contact-photo {
    bottom: auto;
    height: 360px;
    background:
      linear-gradient(0deg, rgba(15, 20, 25, 0.8), rgba(15, 20, 25, 0.15)),
      url("../images/contact-beauport.jpg") center / cover no-repeat;
  }

  .contact-inner {
    width: 100%;
    padding: 0;
  }

  .contact-panel {
    width: 100%;
    box-shadow: none;
  }

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

  .footer-inner p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand img {
    width: 126px;
  }

  .menu-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .hero::before {
    left: 14px;
  }

  .hero-copy {
    padding-left: 12px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 14.8vw, 4.3rem);
  }

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

  .button {
    width: 100%;
  }

  .hero-scroll {
    left: 27px;
  }

  .section {
    padding-block: 82px;
  }

  .section-number {
    margin-bottom: 20px;
  }

  .section h2,
  .contact h2 {
    font-size: clamp(2.3rem, 12vw, 3.45rem);
  }

  .services-grid {
    display: block;
    border-top: 0;
  }

  .service-card {
    display: block;
    min-height: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .service-image {
    height: 210px;
  }

  .service-content {
    padding: 28px 22px 36px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-card,
  .project-card-featured {
    min-height: 285px;
  }

  .project-card figcaption {
    right: 22px;
    bottom: 20px;
    left: 22px;
  }

  .contact {
    padding-top: 250px;
  }

  .contact-photo {
    height: 300px;
  }

  .contact-panel {
    padding: 46px 24px;
  }

  .contact-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    gap: 20px;
  }
}

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

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

@media print {
  .site-header,
  .hero-scroll,
  .site-footer {
    display: none;
  }

  .hero,
  .contact,
  .section-services {
    color: #000;
    background: #fff;
  }

  .hero-backdrop,
  .contact-photo {
    opacity: 0.14;
  }

  .section {
    padding-block: 40px;
  }
}
