
:root{
  --bg:#f3f1ed;
  --paper:#fff;
  --ink:#151719;
  --muted:#696d71;
  --line:#ddd8d0;
  --dark:#131516;
  --dark-2:#1b1e20;
  --orange:#ef7d16;
  --orange-dark:#b45000;
  --max:1180px;
  --radius:22px;
  --shadow:0 18px 50px rgba(0,0,0,.12);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-width:320px;
  background:var(--bg);
  color:var(--ink);
  font-family:Arial,Helvetica,sans-serif;
  line-height:1.65;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
button,input,textarea{font:inherit}
.container{width:min(var(--max),calc(100% - 40px));margin-inline:auto}
.skip-link{position:absolute;left:-9999px;top:12px;z-index:999;background:#fff;color:#111;padding:10px 14px}
.skip-link:focus{left:12px}

.topbar{
  background:#0b0d0e;
  color:#d9d9d9;
  font-size:.9rem;
}
.topbar-inner{
  min-height:38px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}
.topbar a{text-decoration:none}
.topbar strong{color:#fff}

.site-header{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(19,21,22,.97);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(12px);
}
.header-inner{
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}
.logo img{width:165px;height:auto}
.nav-toggle{display:none}
.nav-button{display:none}
.main-nav ul{
  display:flex;
  align-items:center;
  gap:6px;
  list-style:none;
  padding:0;
  margin:0;
}
.main-nav a{
  display:block;
  color:#fff;
  text-decoration:none;
  padding:7px 11px;
  border-radius:9px;
  font-weight:700;
  font-size:.91rem;
}
.main-nav a:hover,
.main-nav a:focus-visible{
  background:rgba(255,255,255,.09);
}

.nav-services{
  position:relative;
}
.nav-services summary{
  display:block;
  padding:7px 11px;
  border-radius:9px;
  color:#fff;
  font-weight:700;
  font-size:.91rem;
  cursor:pointer;
  list-style:none;
}
.nav-services summary::-webkit-details-marker{display:none}
.nav-services summary::after{
  content:"▾";
  margin-left:7px;
  font-size:.78rem;
}
.nav-services summary:hover,
.nav-services summary:focus-visible{
  background:rgba(255,255,255,.09);
}
.services-dropdown{
  position:absolute;
  top:calc(100% + 9px);
  left:0;
  min-width:285px;
  padding:8px;
  background:#101213;
  border:1px solid rgba(255,255,255,.1);
  border-radius:12px;
  box-shadow:var(--shadow);
}
.services-dropdown a{
  padding:11px 12px;
  white-space:nowrap;
}
.nav-services:not([open]) .services-dropdown{display:none}
@media(min-width:921px){
  .nav-services:hover .services-dropdown{display:block}
}

.main-nav .nav-cta{
  margin-left:8px;
  background:var(--orange);
  color:#111;
}
.main-nav .nav-cta:hover{background:#ff912d}

.hero{
  position:relative;
  min-height:720px;
  display:grid;
  align-items:center;
  color:#fff;
  overflow:hidden;
  background:
    linear-gradient(
      0deg,
      rgb(10 12 13 / 80%) 0%,
      rgb(10 12 13 / 35%) 55%,
      rgb(10 12 13 / 5%) 100%
    ),
    url("../images/external-wall-insulation-001.webp") 10% 5% / 110% auto no-repeat;
  background-color:#111;
}
.hero::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:160px;
  background:linear-gradient(transparent,rgba(0,0,0,.34));
}
.hero-content{
  position:relative;
  z-index:2;
  max-width:790px;
  padding:100px 0 120px;
}
.kicker{
  margin:0 0 18px;
  color:var(--orange-dark);
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-size:.83rem;
}

.hero .kicker,
.page-hero .kicker,
.section-dark .kicker,
.render-spotlight-card .kicker{
  color:#ff9a3a;
}
h1,h2,h3{line-height:1.12;margin-top:0}
h1{
  margin-bottom:24px;
  font-size:clamp(2.8rem,6.4vw,5.5rem);
  letter-spacing:-.05em;
}
.hero h1{
  font-size:clamp(2.5rem,5vw,4.6rem);
  letter-spacing:-.04em;
  line-height:1.05;
}
h2{
  margin-bottom:18px;
  font-size:clamp(2rem,4vw,3.4rem);
  letter-spacing:-.035em;
}
h3{
  margin-bottom:10px;
  font-size:1.35rem;
}
.hero p{
  max-width:700px;
  margin:0 0 30px;
  color:#ececec;
  font-size:clamp(1.08rem,2vw,1.27rem);
}
.actions{display:flex;flex-wrap:wrap;gap:13px}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:12px 22px;
  border:2px solid var(--orange);
  border-radius:999px;
  background:var(--orange);
  color:#111;
  text-decoration:none;
  font-weight:800;
  transition:.2s ease;
}
.btn:hover{transform:translateY(-2px);background:#ff922d;border-color:#ff922d}
.btn-ghost{
  background:transparent;
  color:#fff;
  border-color:rgba(255,255,255,.72);
}
.btn-ghost:hover{background:#fff;color:#111;border-color:#fff}

.stats{
  position:relative;
  z-index:3;
  margin-top:-56px;
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  background:var(--paper);
  border-radius:18px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.stat{
  padding:28px 24px;
  border-right:1px solid var(--line);
  text-align:center;
}
.stat:last-child{border-right:0}
.stat strong{display:block;font-size:1.1rem}
.stat span{color:var(--muted);font-size:.92rem}

.section{padding:96px 0}
.section-white{background:var(--paper)}
.section-dark{background:var(--dark);color:#fff}
.section-head{max-width:760px;margin-bottom:42px}
.section-head p{margin:0;color:var(--muted);font-size:1.08rem}
.section-dark .section-head p{color:#c9cbcc}

.service-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.service-card{
  min-height:270px;
  padding:32px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  transition:.22s ease;
}
.service-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.service-card p{color:var(--muted)}
.service-card a{
  display:inline-block;
  margin-top:14px;
  color:var(--orange-dark);
  font-weight:800;
  text-decoration:none;
}
.service-card a:hover{text-decoration:underline}

.split{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:64px;
  align-items:center;
}
.image-stack{
  position:relative;
  min-height:570px;
}
.image-stack .main{
  position:absolute;
  inset:0 70px 60px 0;
  width:calc(100% - 70px);
  height:calc(100% - 60px);
  object-fit:cover;
  border-radius:24px;
  box-shadow:var(--shadow);
}
.image-stack .small{
  position:absolute;
  right:0;
  bottom:0;
  width:46%;
  height:43%;
  object-fit:cover;
  border:8px solid var(--bg);
  border-radius:18px;
  box-shadow:var(--shadow);
}
.checks{list-style:none;padding:0;margin:28px 0}
.checks li{
  position:relative;
  margin:0 0 13px;
  padding-left:29px;
}
.checks li::before{
  content:"✓";
  position:absolute;
  left:0;
  color:var(--orange-dark);
  font-weight:900;
}

.process-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.process-step{
  padding:30px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  background:rgba(255,255,255,.045);
}
.process-step span{
  display:inline-grid;
  place-items:center;
  width:42px;
  height:42px;
  margin-bottom:18px;
  border-radius:50%;
  background:var(--orange);
  color:#111;
  font-weight:900;
}
.process-step p{margin-bottom:0;color:#c9cbcc}

.project-grid{
  display:grid;
  grid-template-columns:1.25fr .75fr .75fr;
  grid-auto-rows:270px;
  gap:18px;
}
.project{
  position:relative;
  overflow:hidden;
  border-radius:20px;
  background:#ddd;
}
.project:first-child{grid-row:span 2}
.project img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.project:hover img{transform:scale(1.035)}
.project::after{
  content:"";
  position:absolute;
  inset:45% 0 0;
  background:linear-gradient(transparent,rgba(0,0,0,.74));
}
.project-label{
  position:absolute;
  z-index:2;
  left:22px;
  right:22px;
  bottom:18px;
  color:#fff;
}
.project-label strong{display:block;font-size:1.1rem}
.project-label span{font-size:.9rem;color:#ddd}


.working-area-placeholder {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 24px;
  border-radius: 24px;
}

.area-wrap{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:52px;
  align-items:center;
}
.area-list{display:flex;flex-wrap:wrap;gap:10px}
.area-list span{
  padding:10px 15px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:999px;
  background:rgba(255,255,255,.06);
}
.quote-box{
  padding:42px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:26px;
  box-shadow:var(--shadow);
}
.quote-box p{color:var(--muted)}
.contact-lines{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin:26px 0;
}
.contact-line{
  padding:18px;
  background:#f5f3ef;
  border-radius:14px;
}
.contact-line small{display:block;color:var(--muted)}
.contact-line strong{font-size:1.05rem}

.page-hero{
  padding:100px 0 76px;
  background:
    linear-gradient(90deg,rgba(10,12,13,.82),rgba(10,12,13,.50)),
    url("../images/external-wall-insulation-003.webp") center/cover no-repeat;
  color:#fff;
}
.page-hero p{max-width:760px;margin:0;color:#dedede;font-size:1.1rem}
.content{max-width:850px}
.content p{color:var(--muted)}
.service-list{columns:2;gap:42px;padding-left:20px}
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.gallery-card{
  overflow:hidden;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:18px;
}
.gallery-card img{width:100%;aspect-ratio:4/3;object-fit:cover}
.gallery-card div{padding:20px}
.gallery-card p{margin:0;color:var(--muted)}
.note{
  margin-top:28px;
  padding:18px 20px;
  border-left:4px solid var(--orange);
  background:#fff7ee;
}
.site-footer{
  padding:54px 0 32px;
  background:#0d0f10;
  color:#c9c9c9;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.3fr .7fr .7fr;
  gap:36px;
}

.footer-badge{
  color:#fff;
  font-size:1.15rem;
  font-weight:800;
  margin-bottom:18px;
}

.footer-title{
  color:#fff;
  font-weight:800;
  margin-bottom:10px;
}

.footer-title{color:#fff;font-weight:800;margin-bottom:10px}
.footer-links{display:grid;gap:8px}
.footer-links a{text-decoration:none}
.footer-links a:hover{color:#fff}
.footer-bottom{
  margin-top:38px;
  padding-top:22px;
  border-top:1px solid rgba(255,255,255,.1);
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:.9rem;
}

@media(max-width:920px){
  .topbar{display:none}
  .header-inner{min-height:78px}
  .nav-button{display:block;cursor:pointer;font-size:1.6rem}
  .main-nav{
    position:absolute;
    left:0;right:0;top:100%;
    display:none;
    background:var(--dark);
    border-top:1px solid rgba(255,255,255,.08);
  }
  .nav-toggle:checked ~ .main-nav{display:block}
  .main-nav ul{display:block;padding:12px 20px 20px}
  .main-nav a{padding:13px 8px}
  
.nav-services{
  position:relative;
}
.nav-services summary{
  display:block;
  padding:7px 11px;
  border-radius:9px;
  color:#fff;
  font-weight:700;
  font-size:.91rem;
  cursor:pointer;
  list-style:none;
}
.nav-services summary::-webkit-details-marker{display:none}
.nav-services summary::after{
  content:"▾";
  margin-left:7px;
  font-size:.78rem;
}
.nav-services summary:hover,
.nav-services summary:focus-visible{
  background:rgba(255,255,255,.09);
}
.services-dropdown{
  position:absolute;
  top:calc(100% + 9px);
  left:0;
  min-width:285px;
  padding:8px;
  background:#101213;
  border:1px solid rgba(255,255,255,.1);
  border-radius:12px;
  box-shadow:var(--shadow);
}
.services-dropdown a{
  padding:11px 12px;
  white-space:nowrap;
}
.nav-services:not([open]) .services-dropdown{display:none}
@media(min-width:921px){
  .nav-services:hover .services-dropdown{display:block}
}

.main-nav .nav-cta{margin:8px 0 0}
  .stats-grid,.service-grid,.process-grid,.gallery-grid{grid-template-columns:1fr 1fr}
  .split,.area-wrap,.footer-grid{grid-template-columns:1fr}
  .project-grid{grid-template-columns:1fr 1fr}
  .project:first-child{grid-column:span 2;grid-row:auto}
}
@media(max-width:620px){
  .container{width:min(var(--max),calc(100% - 28px))}
  .logo img{width:50px}
  .hero{min-height:650px}
  .hero-content{padding:78px 0 112px}
  .stats{margin-top:-44px}
  .stats-grid,.service-grid,.process-grid,.gallery-grid,.contact-lines{grid-template-columns:1fr}
  .stat{border-right:0;border-bottom:1px solid var(--line)}
  .stat:last-child{border-bottom:0}
  .section{padding:70px 0}
  .image-stack{min-height:430px}
  .image-stack .main{inset:0 35px 45px 0;width:calc(100% - 35px);height:calc(100% - 45px)}
  .project-grid{grid-template-columns:1fr;grid-auto-rows:250px}
  .project:first-child{grid-column:auto}
  .service-list{columns:1}
  .quote-box{padding:28px}
  .footer-bottom{flex-direction:column}
}


.service-hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:54px;
  align-items:center;
}
.service-photo{
  width:100%;
  min-height:440px;
  object-fit:cover;
  border-radius:22px;
  box-shadow:var(--shadow);
}
.detail-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
}
.detail-card{
  padding:26px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:18px;
}
.detail-card p{margin-bottom:0;color:var(--muted)}
.photo-band{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px;
}
.photo-band img{
  width:100%;
  height:360px;
  object-fit:cover;
  border-radius:20px;
}
.contact-feature{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:44px;
  align-items:center;
  margin-top:60px;
  padding:34px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:24px;
}
.contact-feature img{
  width:100%;
  min-height:390px;
  object-fit:cover;
  border-radius:18px;
}
.gallery-intro{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:30px;
  margin-bottom:34px;
}
.pagination{
  display:flex;
  justify-content:center;
  gap:9px;
  margin-top:42px;
}
.pagination a,
.pagination span{
  display:grid;
  place-items:center;
  min-width:45px;
  min-height:45px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
  text-decoration:none;
  font-weight:800;
}
.pagination .current{
  background:var(--dark);
  border-color:var(--dark);
  color:#fff;
}
@media(max-width:920px){
  .services-dropdown{
    position:static;
    min-width:0;
    margin:4px 0 8px 14px;
    box-shadow:none;
  }
  .nav-services summary{padding:13px 8px}
  .service-hero-grid,.contact-feature{grid-template-columns:1fr}
  .photo-band{grid-template-columns:1fr}
}
@media(max-width:620px){
  .detail-grid{grid-template-columns:1fr}
  .gallery-intro{display:block}
  .service-photo,.contact-feature img{min-height:300px}
}


/* Services dropdown */
@media (min-width: 921px) {
  .nav-services {
    position: relative;
  }

  .nav-services > summary {
    pointer-events: auto;
    cursor: default;
  }

  .nav-services .services-dropdown {
    display: none !important;
  }

  .nav-services:hover .services-dropdown,
  .nav-services:focus-within .services-dropdown {
    display: block !important;
  }
}

/* About page */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-intro img {
  width: 100%;
  min-height: 500px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.value-card {
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.value-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.about-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  overflow: hidden;
}

.about-strip div {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.14);
}

.about-strip div:last-child {
  border-right: 0;
}

.about-strip strong {
  display: block;
  font-size: 1.08rem;
}

.about-strip span {
  color: #c9cbcc;
  font-size: .92rem;
}

@media (max-width: 920px) {
  .about-intro,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .about-strip {
    grid-template-columns: 1fr 1fr;
  }

  .about-strip div:nth-child(2) {
    border-right: 0;
  }

  .about-strip div:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255,255,255,.14);
  }
}

@media (max-width: 620px) {
  .about-strip {
    grid-template-columns: 1fr;
  }

  .about-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
  }

  .about-strip div:last-child {
    border-bottom: 0;
  }

  .about-intro img {
    min-height: 320px;
  }
}


/* Wider image-only gallery */
.gallery-wide {
  width: min(1500px, calc(100% - 32px));
  margin-inline: auto;
}

.gallery-wide .section-head {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.gallery-wide .gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-wide .gallery-card {
  border: 0;
  border-radius: 16px;
  box-shadow: none;
  background: transparent;
}

.gallery-wide .gallery-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-wide .gallery-card:hover img {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

@media (max-width: 1100px) {
  .gallery-wide .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .gallery-wide {
    width: min(100% - 24px, 1500px);
  }

  .gallery-wide .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 460px) {
  .gallery-wide .gallery-grid {
    grid-template-columns: 1fr;
  }
}


/* Final desktop Services hover behaviour */
@media (min-width: 921px) {
  .nav-item-services {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
  }

  .nav-services {
    position: relative;
  }

  .nav-services > summary {
    pointer-events: none;
    cursor: default;
  }

  .nav-services .services-dropdown {
    display: none !important;
    top: calc(100% + 0px);
    padding-top: 12px;
  }

  .nav-item-services:hover .services-dropdown,
  .nav-item-services:focus-within .services-dropdown {
    display: block !important;
  }

  .services-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
  }
}

/* Final gallery layout: three large images per row */
.gallery-wide {
  width: min(1380px, calc(100% - 32px));
}

.gallery-wide .gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .gallery-wide .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .gallery-wide .gallery-grid {
    grid-template-columns: 1fr;
  }
}


/* Reliable Services dropdown — no details/summary, no click required */
.main-nav .services-menu {
  position: relative;
}

.main-nav .services-trigger {
  display: block;
  padding: 7px 11px;
  color: #fff;
  border-radius: 9px;
  font-weight: 700;
  font-size: .91rem;
  cursor: default;
}

.main-nav .services-trigger::after {
  content: "▾";
  margin-left: 7px;
  font-size: .78rem;
}

.main-nav .services-menu:hover .services-trigger,
.main-nav .services-menu:focus-within .services-trigger {
  background: rgba(255,255,255,.09);
}

.main-nav .services-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 285px;
  padding: 12px 8px 8px;
  margin: 0;
  background: #101213;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  box-shadow: var(--shadow);
  list-style: none;
  z-index: 50;
}

.main-nav .services-menu:hover .services-submenu,
.main-nav .services-menu:focus-within .services-submenu {
  display: block;
}

.main-nav .services-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.main-nav .services-submenu li {
  display: block;
}

.main-nav .services-submenu a {
  display: block;
  padding: 11px 12px;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .main-nav .services-submenu {
    position: static;
    display: block;
    min-width: 0;
    margin: 4px 0 8px 14px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .main-nav .services-trigger {
    padding: 13px 8px;
  }

  .main-nav .services-trigger::after {
    display: none;
  }
}


/* Final gallery sizing */
.gallery-wide {
  width: min(1500px, calc(100% - 24px));
}

.gallery-wide .gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gallery-wide .gallery-card img {
  aspect-ratio: 1 / 1;
}

@media (max-width: 900px) {
  .gallery-wide {
    width: min(100% - 20px, 1500px);
  }
}


/* Quote box text contrast */
.quote-box,
.quote-box h1,
.quote-box h2,
.quote-box h3,
.quote-box p,
.quote-box small,
.quote-box strong,
.quote-box a {
  color: var(--ink);
}

.quote-box .kicker {
  color: var(--orange-dark);
}

.quote-box .contact-line {
  color: var(--ink);
}

.quote-box .contact-line small {
  color: var(--muted);
}


/* General Building page */
.general-building-intro {
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:56px;
  align-items:center;
}
.general-building-intro img {
  width:100%;
  min-height:470px;
  object-fit:cover;
  border-radius:22px;
  box-shadow:var(--shadow);
}
.general-building-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.general-building-grid img {
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:16px;
  transition:transform .25s ease,box-shadow .25s ease;
}
.general-building-grid img:hover {
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}
@media(max-width:920px){
  .general-building-intro{grid-template-columns:1fr}
  .general-building-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .general-building-grid{grid-template-columns:1fr}
  .general-building-intro img{min-height:320px}
}


/* Home page: Our Work in Detail */
.work-detail-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: stretch;
}
.work-detail-main,
.work-detail-small-grid a {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #ddd;
}
.work-detail-main img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  transition: transform .3s ease;
}
.work-detail-small-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.work-detail-small-grid img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .3s ease;
}
.work-detail-main:hover img,
.work-detail-small-grid a:hover img { transform: scale(1.025); }
.work-detail-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
}
.work-detail-footer p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}
@media (max-width: 920px) {
  .work-detail-grid { grid-template-columns: 1fr; }
  .work-detail-main img { min-height: 460px; }
}
@media (max-width: 620px) {
  .work-detail-main img { min-height: 360px; }
  .work-detail-small-grid { gap: 12px; }
  .work-detail-small-grid img { min-height: 0; }
  .work-detail-footer { align-items: flex-start; flex-direction: column; }
}


/* Home page: project story case-study block */
.project-story {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.project-story-copy {
  max-width: 520px;
}

.project-story-copy > p:not(.kicker) {
  color: var(--muted);
}

.project-story-list {
  display: grid;
  gap: 14px;
  margin: 30px 0;
}

.project-story-list div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.project-story-list strong {
  color: var(--orange-dark);
  font-size: 1.1rem;
}

.project-story-list span {
  font-weight: 700;
}

.project-story-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px;
  gap: 14px;
  min-height: 560px;
}

.project-story-main {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.project-story-details {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 14px;
}

.project-story-details img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 14px;
}

@media (max-width: 920px) {
  .project-story {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .project-story-copy {
    max-width: none;
  }

  .project-story-visual {
    min-height: 480px;
  }

  .project-story-main {
    min-height: 480px;
  }
}

@media (max-width: 620px) {
  .project-story-visual {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .project-story-main {
    min-height: 360px;
  }

  .project-story-details {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: none;
  }

  .project-story-details img {
    aspect-ratio: 1 / 1;
  }
}

/* ================================================================
   V14 DESIGN REFINEMENTS
   Adds richer photo presentation while keeping the existing design.
   ================================================================ */

.btn-small {
  padding: 13px 18px;
  white-space: nowrap;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  margin-bottom: 36px;
}

.section-heading-row > div {
  max-width: 780px;
}

.section-heading-row h2,
.section-heading-row p:last-child {
  margin-bottom: 0;
}

/* Home: larger project presentation */
.home-portfolio-section {
  overflow: hidden;
}

.home-portfolio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 18px;
  min-height: 620px;
}

.portfolio-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1.08fr .92fr;
  gap: 18px;
}

.portfolio-wide {
  grid-column: 1 / -1;
}

.portfolio-panel {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #d8d3cd;
  box-shadow: 0 14px 34px rgba(15, 18, 20, .10);
}

.portfolio-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.portfolio-panel:hover img {
  transform: scale(1.035);
}

.portfolio-panel > span {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 22px;
  color: #fff;
}

.portfolio-panel strong,
.portfolio-panel small {
  display: block;
}

.portfolio-panel strong {
  font-size: 1.08rem;
}

.portfolio-panel small {
  margin-top: 4px;
  color: rgba(255, 255, 255, .78);
  font-size: .88rem;
}

/* Home: make the three detail photographs genuinely useful */
.project-story {
  grid-template-columns: .78fr 1.22fr;
  gap: 58px;
}

.project-story-visual {
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, .75fr);
  gap: 18px;
  min-height: 650px;
}

.project-story-main {
  min-height: 650px;
}

.project-story-details {
  gap: 18px;
}

.project-story-details img {
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 18, 20, .10);
}

/* Shared image collage used differently across pages */
.service-collage {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-height: 590px;
}

.service-collage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.service-collage-main {
  grid-row: 1 / 3;
}

.ewi-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 58px;
  align-items: center;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.material-card {
  padding: 27px 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .045);
}

.material-card > span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--orange);
  font-weight: 900;
  letter-spacing: .08em;
}

.material-card h3 {
  font-size: 1.15rem;
}

.material-card p {
  margin-bottom: 0;
  color: #c9cbcc;
  font-size: .93rem;
}

.system-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 60px;
  align-items: center;
}

.system-image-wrap {
  position: relative;
}

.system-image-wrap > img {
  width: 100%;
  min-height: 640px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.system-image-note {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 20px 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  background: rgba(10, 12, 13, .80);
  backdrop-filter: blur(8px);
}

.system-image-note strong,
.system-image-note span {
  display: block;
}

.system-image-note span {
  margin-top: 4px;
  color: #d9dcdd;
  font-size: .92rem;
}

.system-steps {
  display: grid;
  gap: 0;
  margin-top: 28px;
}

.system-steps article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.system-steps article:last-child {
  border-bottom: 0;
}

.system-steps article > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: var(--orange-dark);
  font-weight: 900;
}

.system-steps h3 {
  margin-bottom: 6px;
  font-size: 1.18rem;
}

.system-steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-gallery-feature {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  grid-template-rows: repeat(2, 280px);
  gap: 18px;
}

.service-gallery-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.service-gallery-large {
  grid-row: 1 / 3;
}

.service-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
}

.service-cta > div {
  max-width: 760px;
}

.service-cta h2,
.service-cta p:last-child {
  margin-bottom: 0;
}

.service-cta-light {
  padding: 38px 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
}

/* Rendering page: feature image, finish cards and asymmetric gallery */
.render-spotlight {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.render-spotlight > img {
  width: 100%;
  height: 680px;
  object-fit: cover;
}

.render-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 11, 12, .74) 0%, rgba(9, 11, 12, .28) 62%, transparent 100%);
}

.render-spotlight-card {
  position: absolute;
  z-index: 2;
  left: 46px;
  bottom: 46px;
  max-width: 560px;
  padding: 34px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  background: rgba(10, 12, 13, .82);
  backdrop-filter: blur(9px);
}

.render-spotlight-card p:not(.kicker) {
  color: #d5d7d8;
}

.finish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.finish-card {
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(145deg, #fff 0%, #f4f0eb 100%);
}

.finish-card h3 {
  margin-bottom: 12px;
}

.finish-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.render-prep-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 58px;
  align-items: center;
}

.render-prep-images {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  grid-template-rows: repeat(2, 285px);
  gap: 16px;
}

.render-prep-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 19px;
  box-shadow: var(--shadow);
}

.render-prep-main {
  grid-row: 1 / 3;
}

.render-check-list {
  display: grid;
  gap: 0;
  margin-top: 26px;
}

.render-check-list div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.render-check-list div:last-child {
  border-bottom: 0;
}

.render-check-list strong,
.render-check-list span {
  display: block;
}

.render-check-list span {
  margin-top: 4px;
  color: var(--muted);
}

.render-photo-strip {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 18px;
  margin-top: 64px;
}

.render-photo-strip img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
}

.render-photo-strip img:nth-child(2) {
  height: 500px;
  margin-top: -40px;
}

/* General Building: dedicated categories and masonry-like portfolio */
.building-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 58px;
  align-items: center;
}

.building-intro-visual {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: repeat(2, 270px);
  gap: 16px;
}

.building-intro-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 19px;
  box-shadow: var(--shadow);
}

.building-intro-large {
  grid-row: 1 / 3;
}

.building-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.building-service-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--paper);
}

.building-service-card > span {
  color: var(--orange-dark);
  font-weight: 900;
  letter-spacing: .08em;
}

.building-service-card h3 {
  margin: 30px 0 12px;
}

.building-service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.building-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 18px;
}

.building-showcase-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 19px;
  background: #ddd8d2;
}

.building-showcase-grid figure:nth-child(1),
.building-showcase-grid figure:nth-child(8) {
  grid-column: span 2;
  grid-row: span 2;
}

.building-showcase-grid figure:nth-child(4),
.building-showcase-grid figure:nth-child(11) {
  grid-row: span 2;
}

.building-showcase-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.building-showcase-grid figure:hover img {
  transform: scale(1.035);
}

/* About page */
.about-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 58px;
  align-items: center;
}

.about-story-images {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  grid-template-rows: repeat(2, 270px);
  gap: 16px;
}

.about-story-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 19px;
  box-shadow: var(--shadow);
}

.about-story-main {
  grid-row: 1 / 3;
}

.about-story-points {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.about-story-points div {
  padding: 18px 20px;
  border-left: 4px solid var(--orange);
  background: #fff;
}

.about-story-points strong,
.about-story-points span {
  display: block;
}

.about-story-points span {
  margin-top: 4px;
  color: var(--muted);
}

/* Contact page */
.contact-guide-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 58px;
  align-items: center;
}

.contact-guide-images {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  grid-template-rows: repeat(2, 250px);
  gap: 16px;
}

.contact-guide-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 19px;
  box-shadow: var(--shadow);
}

.contact-guide-main {
  grid-row: 1 / 3;
}

/* Responsive refinements */
@media (max-width: 1100px) {
  .material-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-story-visual {
    grid-template-columns: minmax(0, 1.15fr) minmax(200px, .85fr);
  }
}

@media (max-width: 920px) {
  .section-heading-row,
  .service-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-portfolio-grid,
  .ewi-intro-layout,
  .system-layout,
  .render-prep-layout,
  .building-intro-layout,
  .about-story-grid,
  .contact-guide-layout {
    grid-template-columns: 1fr;
  }

  .home-portfolio-grid {
    min-height: auto;
  }

  .portfolio-main {
    min-height: 520px;
  }

  .portfolio-side {
    min-height: 520px;
  }

  .project-story {
    grid-template-columns: 1fr;
  }

  .project-story-visual {
    min-height: 580px;
  }

  .project-story-main {
    min-height: 580px;
  }

  .service-collage {
    min-height: 560px;
  }

  .material-grid,
  .finish-grid,
  .building-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .render-photo-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .render-photo-strip img,
  .render-photo-strip img:nth-child(2) {
    height: 360px;
    margin-top: 0;
  }

  .building-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .section-heading-row {
    margin-bottom: 28px;
  }

  .portfolio-main {
    min-height: 400px;
  }

  .portfolio-side {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 300px);
    min-height: auto;
  }

  .portfolio-wide {
    grid-column: auto;
  }

  .project-story-visual {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .project-story-main {
    min-height: 420px;
  }

  .project-story-details {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 260px);
  }

  .service-collage,
  .render-prep-images,
  .building-intro-visual,
  .about-story-images,
  .contact-guide-images {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }

  .service-collage-main,
  .render-prep-main,
  .building-intro-large,
  .about-story-main,
  .contact-guide-main {
    grid-row: auto;
  }

  .service-collage img,
  .render-prep-images img,
  .building-intro-visual img,
  .about-story-images img,
  .contact-guide-images img {
    height: 320px;
  }

  .material-grid,
  .finish-grid,
  .building-services-grid {
    grid-template-columns: 1fr;
  }

  .system-image-wrap > img {
    min-height: 430px;
  }

  .service-gallery-feature {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 300px);
  }

  .service-gallery-large {
    grid-row: auto;
  }

  .render-spotlight,
  .render-spotlight > img {
    min-height: 650px;
    height: 650px;
  }

  .render-spotlight-card {
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 24px;
  }

  .render-photo-strip {
    grid-template-columns: 1fr;
  }

  .render-photo-strip img,
  .render-photo-strip img:nth-child(2) {
    height: 340px;
  }

  .building-showcase-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 320px;
  }

  .building-showcase-grid figure:nth-child(1),
  .building-showcase-grid figure:nth-child(4),
  .building-showcase-grid figure:nth-child(8),
  .building-showcase-grid figure:nth-child(11) {
    grid-column: auto;
    grid-row: auto;
  }

  .service-cta-light {
    padding: 28px;
  }
}

@media (max-width: 680px) {
  .pagination {
    flex-wrap: wrap;
    padding-inline: 16px;
  }
}

/* V15: final home EWI image arrangement only */
@media (min-width: 681px) {
  .project-story-visual {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  }

  .project-story-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1.08fr .92fr;
  }

  .project-story-details img:first-child {
    grid-column: 1 / -1;
  }
}

