:root { --brand-orange: #ff3d00; }

*{box-sizing:border-box}html{scroll-behavior:smooth;scrollbar-gutter:stable}body{margin:0;color:#171a21;background:#fff;font-family:Arial,sans-serif}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer}a,button,summary{-webkit-tap-highlight-color:#ff3d0040}a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--brand-orange);outline-offset:4px}:is(a, button, summary):is(:hover, :focus-visible, :active), .dropdown > button[aria-expanded=true] { color: var(--brand-orange); }.wrap{width:69%;max-width:1240px;margin-inline:auto}.utility{background:#eeedea;font-size:1rem;color:#4c4a45}.utility-row{display:flex;align-items:center;gap:clamp(16px,4vw,58px);min-height:32px}.map{margin-left:auto}.mast{box-shadow:0 3px 5px #0003;position:relative;z-index:3;background:white}.utility{position:relative;z-index:4}.head{display:grid;grid-template-columns:clamp(150px,12vw,190px) 1fr;grid-template-rows:repeat(2,minmax(0,1fr));column-gap:clamp(18px,4vw,65px);height:120px}.brand{grid-row:1/3;display:block;width:190px;align-self:start;margin-top:28.225px}.brand img{display:block;width:100%;height:auto;pointer-events:none}.tagline{margin:0;justify-self:end;align-self:center;font-size:.94rem}nav{display:flex;align-items:stretch;justify-content:space-between;gap:0;font-size:1rem;font-weight:700}nav>a,nav button{display:flex;align-items:center;white-space:nowrap}nav>a,.utility a,.dropdown>button{transition:color .18s}.dropdown{position:relative;display:flex}.dropdown>button{border:0;background:none;padding:0;min-height:32px}.panel{position:absolute;top:100%;left:0;min-width:215px;background:white;box-shadow:0 6px 16px #0004;padding:7px 0;opacity:0;visibility:hidden;transform:translateY(-10px);transition:transform .22s,opacity .22s,visibility .22s;font-size:1rem;font-weight:400}.utility .panel{left:auto;right:0}.dropdown.open .panel{opacity:1;visibility:visible;transform:translateY(0)}.panel a{display:block;padding:7px 13px;line-height:1.25}.panel a:hover,.panel a:focus-visible{background:#f1efeb}.hero{height:clamp(350px,31.2vw,670px);position:relative;isolation:isolate;overflow:hidden;overflow:clip;display:flex;align-items:end;color:white}.hero .hero-slide,.hero:after{position:absolute;inset:0;width:100%;height:100%;z-index:-1}.hero .hero-slide{object-fit:cover;object-position:center center}.hero:after{content:"";background:linear-gradient(transparent 48%,#000b 100%)}.hero-copy{padding-bottom:44px}.hero h1{font-size:clamp(1.8rem,2.7vw,3.3rem);line-height:1.08;margin:0 0 10px;font-weight:400}.hero p{margin:0 0 14px;max-width:72ch;font-size:clamp(.88rem,1.18vw,1.1rem)}.outline{display:inline-block;border:1.5px solid currentColor;padding:8px 11px;font-weight:700;font-size:.8rem;transition:background .18s}.outline:hover,.outline:active,.outline:focus-visible{background:#ffffff40}.dots{position:absolute;bottom:1px;left:50%;transform:translateX(-50%);display:flex}.dots button{background:none;border:0;width:26px;height:26px;display:grid;place-items:center;padding:0}.dots span{width:10px;height:10px;border:1px solid white;border-radius:50%}.dots [aria-pressed=true] span{background:white}.dots button:is(:hover,:focus-visible,:active) span{background:var(--brand-orange);border-color:var(--brand-orange)}.services{display:flex;justify-content:space-between;gap:14px;padding-block:32px;font-weight:700}.section{padding-top:45px;padding-bottom:24px}.section h2,footer h2{font-size:1.55rem;font-weight:500;margin:0 0 20px}.section p{max-width:72ch;line-height:1.55}.projects{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(8px,1.65vw,24px)}.project{position:relative;aspect-ratio:1;padding:0;border:0;background:#e5e5e5;text-align:left;color:white}.project img{width:100%;height:100%;object-fit:cover;display:block}.shade{color:#fff;position:absolute;inset:0;background:#0008;display:grid;padding:6%;opacity:0;transition:opacity .24s}.project:hover .shade,.project:focus-visible .shade,.project:active .shade{opacity:1}.frame{display:flex;flex-direction:column;justify-content:space-between;align-items:start;border:1px solid white;padding:8%;gap:5px;font-size:clamp(.7rem,1.1vw,1.02rem)}.note{color:#575757;font-size:calc(.82rem + 1px)}.details,.service-list{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.details details{border-top:1px solid #deddd9;padding:14px 0}.details summary{cursor:pointer;font-weight:700}.service-list article{border-top:1px solid #deddd9}.service-list h3{font-size:1rem}footer{margin-top:55px;padding:32px 0;background:#eeedea}footer a{text-decoration:none}.gallery{position:fixed;inset:0;margin:0;width:100%;height:100%;max-width:none;max-height:none;border:0;padding:0;background:#111216;color:#fff}.gallery[open]{display:grid;grid-template: minmax(0,1fr) / minmax(0,1fr);place-items:stretch;animation:appear .28s ease both}.gallery::backdrop{background:transparent}.gallery figure{margin:0;width:100%;height:100%;display:grid;grid-template-rows:minmax(0,1fr) auto;min-height:0;min-width:0;justify-items:center;align-items:center;padding:min(55px,20dvh) clamp(45px,7vw,100px) min(25px,5dvh);gap:10px}.gallery figcaption{text-align:center;overflow-wrap:anywhere}.gallery img{width:100%;height:100%;min-height:0;min-width:0;object-fit:contain;animation:photo .26s ease both}.gallery button{position:absolute;z-index:1;border:1px solid #fff7;background:#111a;color:white;width:42px;height:42px;font-size:28px}.gallery button:is(:hover,:focus-visible,:active){background:#fff4;color:var(--brand-orange)}.close{right:14px;top:12px}.prev,.next{top:50%;transform:translateY(-50%)}.prev{left:8px}.next{right:8px}html:has(.gallery[open]){overflow:hidden}@keyframes appear{from{opacity:0}}@keyframes photo{from{opacity:0;transform:scale(.97)}}@media(max-width:1040px){.wrap{width:88%}}@media(max-width:720px){.head{height:auto;grid-template-columns:1fr;grid-template-rows:auto auto auto;gap:12px;padding-top:13px}.brand{grid-row:auto;margin-top:0}.tagline{justify-self:start}nav{flex-wrap:wrap;justify-content:flex-start;column-gap:17px;row-gap:0;padding-bottom:8px}nav>a{min-height:36px}.projects{grid-template-columns:repeat(2,minmax(0,1fr))}.services{display:grid;grid-template-columns:1fr 1fr;font-size:.88rem}.details,.service-list{grid-template-columns:1fr}.panel{min-width:175px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}


@media (min-width: 721px) {
  .utility-row > a:first-child {
    flex: 0 0 70px;
    white-space: nowrap;
    text-align: center;
  }

  .head {
    height: 118px;
    grid-template-columns: 190px minmax(0, 1fr);
    column-gap: 0;
  }

  .utility-row {
    min-height: 30px;
  }

  .utility-row .dropdown > button {
    min-height: 30px;
  }

  .head nav {
    padding-top: 0;
    padding-bottom: 28.225px;
    align-items: flex-end;
  }

  .head nav::before {
    content: "";
  }



  .brand-mark {
    margin-top: 17px;
  }

  .brand-name {
    transform: translateY(3px);
  }
}

.hero-copy .outline:is(:hover, :focus-visible, :active) {
  color: #fff;
}


@media (max-width: 720px) {
  html {
    scrollbar-gutter: auto;
    scrollbar-width: none;
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }

  body {
    overflow-x: hidden;
    overflow-x: clip;
    touch-action: pan-y pinch-zoom;
  }

  .head {
    grid-template-columns: minmax(0, 1fr);
  }

  .head nav {
    position: relative;
  }

  .head nav .dropdown {
    position: static;
  }

  .head nav .panel {
    width: min(215px, 100%);
    min-width: 0;
  }
}


/* Keep the bottom of the lockup on the navigation text baseline. */
@media (min-width: 1401px) {
  .head nav > a,
  .head nav > .dropdown > button {
    line-height: 1.15;
    min-height: 0;
  }

  .head nav .panel {
    top: calc(100% + 28.225px);
    min-width: 285px;
  }
}

@media (min-width: 721px) and (max-width: 1400px) {
  .head {
    height: auto;
    min-height: 118px;
    grid-template-columns: 190px minmax(0, 1fr);
    row-gap: 16px;
    padding-bottom: 16px;
  }

  .head nav {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px 24px;
    padding-bottom: 0;
  }

  .head nav::before {
    content: none;
  }

  .brand {
    grid-row: 1;
  }

  .tagline {
    min-height: 94px;
  }
}

@media (max-width: 720px) {
  .utility-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding-block: 8px;
    line-height: 1.2;
  }

  .utility-row > a:first-child {
    justify-self: start;
    max-width: none;
    text-align: left;
    white-space: nowrap;
  }

  .utility-row > .map {
    justify-self: center;
    margin-left: 0;
    white-space: nowrap;
  }

  .utility-row > .dropdown {
    justify-self: end;
    margin-left: 0;
    white-space: nowrap;
  }

  .head nav {
    gap: 12px 20px;
  }

  .head nav .panel {
    width: min(285px, 100%);
  }
}


@media (max-width: 720px) {
  .utility,
  .head nav,
  .panel {
    font-size: .88rem;
  }
}

#about p {
  max-width: none;
}


@media (min-width: 1041px) {
  .hero .hero-slide--ceiling {
    object-position: center top;
  }
}


.portfolio-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s ease;
}

.portfolio-more.is-open {
  grid-template-rows: 1fr;
}

.portfolio-more-inner {
  min-height: 0;
  overflow: hidden;
}

.portfolio-more .projects {
  padding-top: clamp(8px, 1.65vw, 24px);
}

.portfolio-toggle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 44px;
  margin: 14px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.portfolio-toggle span {
  width: 13px;
  height: 13px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .3s ease;
}

.portfolio-toggle[aria-expanded="true"] span {
  transform: translateY(3px) rotate(225deg);
}


/* Keep pointer travel between the trigger and its dropdown inside the menu. */
.panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 10px;
}

@media (min-width: 1401px) {
  .head nav .panel::before {
    height: 28.225px;
  }
}

/* The mobile frame emphasizes geometric panels and fills the slide without bars. */
.hero-picture { display: contents; }
@media (max-width: 720px) {
  .hero .hero-slide--ceiling {
    object-fit: cover;
    object-position: center top;
    background: #111216;
  }
}

.contact-phone { display: flex; align-items: center; gap: 10px; }
.max-icon { display: block; width: 24px; height: auto; flex: none; mix-blend-mode: multiply; }

/* Size the competencies dropdown to its longest label. */
.head nav #service-menu { width: max-content; max-width: calc(100vw - 32px); }
@media (max-width: 720px) {
  .head nav #service-menu { max-width: 100%; }
}

.map { display: inline-flex; align-items: center; gap: 8px; }
.map-icon { display: block; width: 1em; height: 1em; flex: none; }

.hero { touch-action: pan-y pinch-zoom; }

.details details, .product-column { min-width: 0; }
.product-diagram { display: block; width: 100%; max-width: 460px; height: auto; margin: calc(16px + var(--product-media-offset, 0px)) 0 8px; }

.bridge-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: calc(14px + var(--product-media-offset, 0px)); }
.bridge-photos figure { margin: 0; min-width: 0; }
.bridge-photos figcaption { margin-bottom: 8px; line-height: 1.4; }
.bridge-photo { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
.bridge-photo img { display: block; width: 100%; height: auto; aspect-ratio: 17 / 12; object-fit: cover; }
@media (max-width: 720px) {
  .bridge-photos { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bridge-photo { cursor: default; }
}

.details { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 720px) {
  .details { grid-template-columns: minmax(0, 1fr); }
  .product-column { display: contents; }
  #type-0 { order: 0; }
  #type-2 { order: 1; }
  #type-6 { order: 2; }
  #type-1 { order: 3; }
  #type-4 { order: 4; }
  #type-5 { order: 5; }
}

.radius-photo { display: block; width: 100%; margin: calc(16px + var(--product-media-offset, 0px)) 0 8px; padding: 0; border: 0; background: none; cursor: zoom-in; }
.radius-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1500 / 518; object-fit: cover; object-position: center top; }
@media (max-width: 720px) {
  .radius-photo { cursor: default; }
  .radius-photo img { aspect-ratio: auto; }
}

/* Keep a compact gap below the final contact line. */
#contact { padding-bottom: 24px; }
#contact .contact-address { margin-bottom: 0; }

/* Continue the contact background through the mobile viewport and safe area. */
@media (max-width: 720px) {
  html { background-color: #eeedea; }
  header, main { background-color: #fff; }
  #contact { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}

.islands-photo { display: block; width: 100%; margin: calc(16px + var(--product-media-offset, 0px)) 0 8px; padding: 0; border: 0; background: none; cursor: zoom-in; }
.islands-photo img { display: block; width: 100%; height: auto; aspect-ratio: 937 / 325; object-fit: cover; object-position: center 34%; }
@media (max-width: 720px) {
  .islands-photo { cursor: default; }
  .islands-photo img { aspect-ratio: auto; }
}

/* Hide only the leading dividers; preserve spacing and separators between items. */
.product-column > details:first-child,
.service-list > article:first-child { border-top-color: transparent; }
@media (min-width: 721px) {
  .service-list > article:nth-child(2) { border-top-color: transparent; }
}

@media (min-width: 721px) {
  #portfolio .note { max-width: none; white-space: nowrap; }
}

@media (min-width: 721px) and (max-width: 820px) {
  #portfolio .note { margin-inline: calc((100% - 100vw + 16px) / 2); }
}

/* Animate only the color of one regular-weight label. */
.utility-row > .write-us { display: inline-block; flex: 0 0 auto; white-space: nowrap; text-align: left; font-weight: 400; animation: write-us-color 6.5s ease-in-out infinite; }
@keyframes write-us-color {
  0%, 70%, 100% { color: #4c4a45; }
  85% { color: var(--brand-orange); }
}
.utility-row > .write-us:is(:hover, :focus-visible, :active) { animation: none; color: var(--brand-orange); }
@media (max-width: 720px) {
  .utility-row { grid-template-columns: max-content minmax(0, 1fr) max-content; }
}

/* Allow the full system-menu label to fit smaller screens. */
.head nav > .dropdown { min-width: 0; max-width: 100%; }
.head nav [aria-controls="product-menu"] { max-width: 100%; white-space: normal; text-align: left; }

@media (max-width: 720px) {
  .product-column + .product-column > details:first-child { border-top-color: #deddd9; }
}
