:root {
  color-scheme: light;
  --ink: #161b1e;
  --muted: #505d62;
  --paper: #f5f6f4;
  --line: #d9dfdc;
  --dark: #101619;
  --orange: #ff6a36;
  --accent: #a13312;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #0078a3; outline-offset: 4px; }
.site-header :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: #ffac84; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 750; line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.45rem, 5vw, 5rem); }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.45rem); }
ul, ol { margin: 0; }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 3; padding: .6rem 1rem; background: #fff; transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { background: var(--dark); color: #fff; border-bottom: 1px solid #334146; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 5.6rem; gap: 1rem 2rem; }
.brand { display: inline-flex; gap: .85rem; align-items: center; flex: none; color: inherit; text-decoration: none; font-weight: 750; line-height: 1.2; }
.brand img { width: 3.6rem; height: 3.6rem; }
.brand small { display: block; font-size: .875rem; color: #bac5c7; font-weight: 400; margin-top: .24rem; }
.site-header ul { list-style: none; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .15rem clamp(.55rem, 2vw, 1.8rem); }
.site-header nav a { color: #e3e8e7; display: block; font-size: .94rem; font-weight: 650; text-decoration: none; min-height: 44px; padding: .65rem .12rem; }
.site-header nav a:hover, .site-header nav a.active { color: #ffa482; text-decoration: underline; }
.hero { background: var(--dark); color: #fff; }
.hero-grid { display: grid; grid-template-columns: .98fr 1.02fr; min-height: clamp(25rem, 40vw, 34rem); align-items: center; gap: clamp(1.65rem, 5vw, 5.25rem); padding-block: 2.65rem; }
.hero-copy { padding-block: 1rem; }
.hero h1 { font-size: clamp(3.1rem, 7.4vw, 7.15rem); letter-spacing: -.075em; line-height: .92; text-wrap: balance; }
.eyebrow { color: #ffab8b; font-size: .875rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; margin-bottom: 1.25rem; }
.hero-copy > p:not(.eyebrow) { margin-top: 1.45rem; font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: #d1dbdb; max-width: 30rem; }
.hero-media { align-self: stretch; position: relative; min-height: 19rem; border-left: .28rem solid var(--orange); background: #28393f; }
.hero-media img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 57% center; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .58rem 1rem; border: 1px solid transparent; font-weight: 700; text-decoration: none; line-height: 1.3; }
.button-primary { background: var(--orange); color: #14191a; }
.button-primary:hover { background: #ff9a77; }
.button-outline { color: #fff; border-color: #88999a; }
.button-outline:hover { background: #243137; }
.button-dark { background: var(--dark); color: #fff; }
.button-dark:hover { background: #334146; }
.home-projects { padding-block: clamp(2.7rem, 6vw, 5rem); }
.section-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin-bottom: 1.4rem; }
.section-title a { font-weight: 700; }
.card-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1rem, 2vw, 1.55rem); }
.home-projects .card-grid, .page-content > .card-grid:has(>li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--line); }
.card:hover { border-color: var(--accent); }
.card img { width: 100%; aspect-ratio: 1.62; object-fit: cover; background: #e3e9e7; }
.card-text { padding: 1rem 1.05rem 1.2rem; }
.card :is(h2, h3) { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-bottom: .55rem; letter-spacing: -.025em; }
.card:hover :is(h2, h3) { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.card p { color: var(--muted); }
.home-contact { margin-bottom: clamp(2.7rem, 6vw, 5rem); }
.contact-panel { display: grid; grid-template-columns: minmax(18rem,.75fr) minmax(0,1.25fr); border: 1px solid var(--line); background: #fff; }
.contact-details { padding: clamp(1.25rem, 3.5vw, 3rem); }
.contact-details h2 { margin-bottom: 1.1rem; }
address { font-style: normal; }
.contact-links { list-style: none; padding: 0; margin-top: .75rem; }
.contact-details .button { margin-top: 1.15rem; }
.map { width: 100%; height: 100%; min-height: 22rem; border: 0; background: #dfe7e5; }
.page-head { background: #e9eeeb; border-bottom: 1px solid var(--line); padding-block: clamp(1.5rem, 4vw, 3rem); }
.page-head h1 { max-width: 65rem; }
.page-head p { color: var(--muted); font-size: 1.15rem; margin-top: .85rem; }
.breadcrumbs { margin-bottom: .8rem; font-size: .9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .65rem; list-style: none; padding: 0; }
.breadcrumbs li + li::before { content: "/"; color: #606e70; margin-right: .55rem; }
.breadcrumbs [aria-current] { color: var(--muted); }
.page-content { padding-block: clamp(2.2rem, 5vw, 4.25rem); min-height: 15rem; }
.page-content > p, .page-content > ul:not([class]), .page-content > ol { max-width: 52rem; font-size: 1.08rem; }
.page-content > p + p, .page-content > h2 + p, .page-content > p + ul { margin-top: 1rem; }
.page-content > h2:not(:first-child) { margin-top: 1.25rem; }
.gallery-section { margin-top: 2rem; }
.gallery-section:first-child { margin-top: 0; }
.gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.gallery figure { height: 100%; background: #fff; border: 1px solid var(--line); }
.gallery a { display: block; background: #e3e9e7; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery a:hover img { opacity: .85; }
figcaption { padding: .65rem .85rem; overflow-wrap: anywhere; }
.lightbox { width: min(94vw, 68rem); max-height: 94vh; padding: .7rem; border: 1px solid #6a777b; background: #141b1e; color: #fff; }
.lightbox::backdrop { background: #0a1115e8; }
.lightbox img { max-height: 70vh; width: 100%; object-fit: contain; }
.lightbox-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: .7rem; }
.lightbox-controls button { font: inherit; min-height: 44px; color: #fff; background: #2b383e; border: 1px solid #708489; padding: .3rem .65rem; cursor: pointer; }
.lightbox-controls button:focus-visible { outline-color: #ffae8e; }
.lightbox-controls button[data-photo="close"] { margin-left: auto; }
.lightbox figcaption { text-align: center; }
.partners { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1rem; }
.partners a { height: 100%; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; padding: 1.15rem .8rem .85rem; color: var(--ink); font-weight: 700; text-decoration: none; }
.partners img { width: 100%; height: 6rem; object-fit: contain; margin-bottom: .9rem; }
.partners a:hover { border-color: var(--accent); color: var(--accent); text-decoration: underline; }
.footer { background: var(--dark); color: #cbd4d4; }
.footer-grid { display: grid; grid-template-columns: .8fr 1.2fr .55fr; gap: 1.5rem; padding-block: 2.1rem; }
.footer a { color: #fff; }
.footer-brand { font-weight: 740; font-size: 1.5rem; text-decoration: none; color: #fff; }
.footer nav ul { list-style: none; padding: 0; }
.copyright { border-top: 1px solid #39464b; font-size: .875rem; padding-block: 1rem; }

@media (max-width: 58rem) {
  .home-projects .card-grid, .page-content > .card-grid:has(>li:nth-child(4):last-child), .card-grid, .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .partners { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 46rem) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: .35rem; padding-block: .55rem; }
  .wrap { width: calc(100% - 2rem); }
  .hero-grid { grid-template-columns: 1fr; padding-block: 1.45rem; gap: 1.4rem; }
  .hero h1 { text-wrap: initial; }
  .hero-media { min-height: 0; aspect-ratio: 1.55; }
  .contact-panel { grid-template-columns: 1fr; }
  .map { min-height: 17rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 30rem) {
  .card-grid, .home-projects .card-grid, .page-content > .card-grid:has(>li:nth-child(4):last-child), .footer-grid { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery { gap: .65rem; }
  .gallery figcaption { font-size: .9rem; padding: .5rem; }
}
