.inner-hero {
  padding: clamp(44px, 6vw, 90px) 6%;
  background: linear-gradient(110deg, #0b233e, #102c55 75%, #116b57);
  color: #fff;
}
.corporate-home .inner-hero h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  margin: 18px 0 12px;
}
.inner-hero nav { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.inner-hero nav a { color: #efd086; text-decoration: underline; }
.inner-hero p { max-width: 620px; line-height: 1.65; color: #e4ebf3; margin: 0; }
.inner-body { max-width: 1450px; margin: auto; padding: clamp(28px, 5vw, 66px) 6%; }
.inner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.inner-grid > * { padding: 22px; background: #fff; border: 1px solid #dbe3ec; border-radius: 5px; }
.inner-grid > a:hover, .inner-grid > a:focus-visible { border-color: #b48735; }
.inner-grid h2, .inner-detail h2 { font-size: 24px; }
.inner-body p { color: #405772; line-height: 1.65; }
.inner-visual {
  aspect-ratio: 1.38;
  border-radius: 4px;
  margin-bottom: 18px;
  background: #e9edf1 url(assets/service-visuals.png) no-repeat;
  background-size: 400% 200%;
}
.inner-grid > a > span { color: #825b18; font-weight: 700; }
.inner-detail { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.inner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 20px; }
.heritage-inner-page .main-header a[aria-current="page"] { color: #91620c; text-decoration: underline; }
@media (max-width: 700px) { .inner-detail { grid-template-columns: 1fr; } }

.project-index h2 { margin: 0 0 20px; }
.project-card-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); gap:20px; }
.project-card-grid + h2 { margin-top: 48px; }
.project-card-grid .named-project-image img { display:block; width:100%; height:215px; object-fit:contain; }
.project-card-grid .named-project-copy h3 { margin:0 0 12px; }
.project-card-grid .monument-location { color:#825b18; font-size:13px; margin:0 0 8px; }
.project-layout { display:grid; grid-template-columns:minmax(225px,1fr) minmax(0,2fr); gap:clamp(24px,5vw,72px); margin-top:24px; }
.project-layout dt { margin-top:12px; font-weight:700; }
.project-layout dd { margin-left:0; }
.project-layout .named-project-photos img { height:clamp(180px,30vw,330px); }
@media(max-width:700px) { .project-layout { grid-template-columns:1fr; } }

/* Keep interior page edges and section rhythm consistent. */
.inner-hero { padding-block: clamp(36px, 4.5vw, 66px); }
.inner-hero h1 { max-width: 24ch; }
.inner-body { max-width: none; }
.inner-grid > a, .inner-grid > article, .project-card-grid > a { display: flex; flex-direction: column; }
.inner-grid > a > span, .inner-grid > article > a, .project-card-grid .project-view-link { margin-top: auto; }
.inner-grid > article > a { align-self: start; }
.project-card-grid .named-project-copy { display: flex; flex: 1; flex-direction: column; }
.project-detail-body { display: grid; gap: clamp(24px, 4vw, 48px); }
.project-detail-body > a { justify-self: start; }
.project-photo-section h2, .project-summary h2 { margin: 0 0 16px; font-size: clamp(24px, 3vw, 34px); }
.project-photo-section .project-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.project-photo-section .project-images button { min-width: 0; background: #edf2f6; }
.project-photo-section .project-images img { display: block; width: 100%; height: clamp(185px, 26vw, 390px); object-fit: contain; }
.project-photo-section .project-images button:only-child img { height: clamp(245px, 42vw, 530px); }
.project-photo-section .reference-project-photo { max-width: 700px; margin: 24px 0 0; }
.project-photo-section .reference-project-photo img { height: auto; max-height: 340px; }
.project-summary { padding: clamp(20px, 3vw, 34px); background: #f2f5f8; border-radius: 6px; border-top: 3px solid #d6a23b; }
.project-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 8px 20px; margin: 16px 0 0; }
.project-summary dt { font-weight: 700; }
.project-summary dd { margin: 0; }
.heritage-inner-page #clients.atelier-trust { display: block; }
.heritage-inner-page #clients .atelier-logos { display: grid; width: 100%; grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr)); gap: 16px; }
.heritage-inner-page #clients .atelier-logos img { width: 100%; height: 96px; object-fit: contain; }
.heritage-inner-page .corporate-enquiry { align-items: start; }
@media (max-width: 500px) {
  .project-summary dl { grid-template-columns: 1fr; gap: 4px; }
  .project-summary dd + dt { margin-top: 8px; }
}

.project-detail-body {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(24px, 4vw, 60px);
}
.project-detail-body > a { grid-column: 1 / -1; }
.project-image-track > [hidden] { display: none !important; }
.project-image-track > button { display: block; width: 100%; padding: 0; }
.project-image-track img {
  display: block;
  width: 100%;
  height: clamp(220px, 32vw, 440px);
  object-fit: contain;
  background: #edf2f6;
  border-radius: 5px;
}
.project-image-track .reference-project-photo { max-width: none; margin: 0; }
.project-image-track .reference-project-photo img { height: clamp(220px, 32vw, 440px); max-height: none; }
.project-slide-controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 12px; }
.project-slide-controls button { width: 44px; height: 44px; color: #102c55; border: 1px solid #ccd6e1; border-radius: 50%; }
.project-slide-controls button:hover { background: #edf2f6; }
@media (max-width: 760px) { .project-detail-body { grid-template-columns: minmax(0, 1fr); } }

.project-photo-section { position: relative; }
.project-slide-controls { position: absolute; inset: 12px 12px auto; top: calc(clamp(24px, 3vw, 34px) * 1.3 + 24px); margin: 0; justify-content: space-between; pointer-events: none; z-index: 1; }
.project-slide-controls button, .project-slide-controls span { background: #102c55; color: #fff; }
.project-slide-controls button { pointer-events: auto; font-size: 21px; border-color: #ffffff80; }
.project-slide-controls button:hover { background: #116b57; }
.project-slide-controls span { padding: 5px 10px; border-radius: 14px; font-size: 13px; }

.project-detail-body { grid-template-rows: auto auto auto; }
.project-photo-section, .project-overview { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 16px; align-items: start; }
.project-photo-section h2, .project-overview h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
@media (max-width: 760px) {
  .project-detail-body { grid-template-rows: none; }
  .project-photo-section, .project-overview { grid-template-rows: auto auto; grid-row: auto; }
}

.content-detail { padding-top: 0; }
.content-detail > p { max-width: 72ch; }
.content-detail > h2 { margin: 0 0 12px; }
.content-detail > p + h2 { margin-top: 24px; }
.content-detail .inner-grid { margin-top: 18px; }
.content-detail .inner-grid h2 { margin: 0 0 10px; }
.project-record-note { margin-top: 18px; font-size: 14px; }

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px;
}
.certificate-card {
  --accent: #102c55;
  --tint: #e9f0fb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px #102c5510;
}
.certificate-card--emerald { --accent: #116b57; --tint: #e4f4ee; }
.certificate-card--gold { --accent: #825b18; --tint: #fff2cd; }
.certificate-art {
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(130deg, var(--accent), #102c55);
}
.certificate-card--gold .certificate-art { background: linear-gradient(130deg, #d6a23b, #825b18); }
.certificate-art span {
  width: 52px;
  height: 66px;
  border-radius: 4px 14px 4px 4px;
  background: linear-gradient(var(--accent), var(--accent)) 11px 19px / 29px 2px no-repeat,
              linear-gradient(var(--accent), var(--accent)) 11px 28px / 24px 2px no-repeat,
              linear-gradient(var(--accent), var(--accent)) 11px 37px / 20px 2px no-repeat,
              linear-gradient(#d6a23b, #d6a23b) 11px 51px / 11px 5px no-repeat, #fff;
  box-shadow: 6px 6px 0 #ffffff40;
}
.certificate-copy { padding: 22px; flex: 1; display: flex; flex-direction: column; align-items: start; }
.certificate-copy .certificate-type { color: var(--accent); background: var(--tint); padding: 4px 10px; border-radius: 20px; margin: 0 0 12px; font-size: 12px; font-weight: 700; }
.certificate-copy h2 { font-size: clamp(22px, 2.3vw, 28px); margin: 0 0 20px; }
.certificate-copy a { display: flex; gap: 12px; justify-content: space-between; width: 100%; margin-top: auto; border-radius: 5px; padding: 12px 14px; color: white; background: var(--accent); font-weight: 700; }
.certificate-copy a:hover { background: #0b233e; color: #fff; }
.certificate-copy a:focus-visible { outline: 2px solid #d6a23b; outline-offset: 3px; }
.certificate-support { margin-top: 30px; padding: clamp(18px, 3vw, 30px); background: #eef4fb; border-left: 4px solid #d6a23b; border-radius: 6px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.certificate-support h2 { font-size: 22px; margin: 0 0 8px; }
.certificate-support p { margin: 0; }

.opportunity-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.opportunity-form { --form-accent: #102c55; padding: clamp(18px, 3vw, 32px); border: 1px solid #dbe3ec; border-top: 5px solid var(--form-accent); border-radius: 10px; background: #f4f7fb; }
.opportunity-form + .opportunity-form { --form-accent: #116b57; background: #f1f8f5; }
.opportunity-form h2 { margin: 0 0 20px; color: var(--form-accent); font-size: clamp(24px, 3vw, 32px); }
.opportunity-form label { display: block; margin-bottom: 14px; font-weight: 650; }
.opportunity-form input, .opportunity-form textarea { display: block; width: 100%; padding: 10px 12px; margin-top: 6px; background: #fff; border: 1px solid #c4cfdd; border-radius: 5px; font: inherit; }
.opportunity-form textarea { resize: vertical; }
.opportunity-form button { padding: 12px 16px; border-radius: 6px; background: var(--form-accent); color: #fff; font-weight: 700; }
.opportunity-form :is(input, textarea, button):focus-visible { outline: 2px solid var(--form-accent); outline-offset: 3px; }
.opportunity-form .form-note { margin: 10px 0 0; }
.opportunity-form [role="status"]:empty { display: none; }
