/* Loaded on every page: nav dropdown, mobile menu, audit form, homepage pillars and industries. */

/* NAV DROPDOWN */
.has-drop { position: relative; }
.nav-drop {
  position: absolute; top: 100%; left: -24px; padding-top: 18px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .25s, transform .3s cubic-bezier(.16,1,.3,1), visibility .25s;
}
.nav-drop ul { list-style: none; background: #FFFFFB; border: 1px solid rgba(19,112,83,.15); padding: 10px 0; min-width: 300px; }
.nav-links .nav-drop a { display: block; padding: 13px 24px; color: #050505; opacity: .6; white-space: nowrap; }
.nav-links .nav-drop a:hover { opacity: 1; color: #137053; }
.has-drop:hover .nav-drop, .has-drop:focus-within .nav-drop { opacity: 1; visibility: visible; transform: none; }

/* MOBILE MENU */
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; position: relative; z-index: 2;
}
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: #FFFFFB; transition: transform .35s cubic-bezier(.16,1,.3,1), background .3s, top .35s; }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
nav.scrolled .nav-toggle span, .menu-open .nav-toggle span { background: #050505; }
.menu-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 190; background: #FFFFFB;
  padding: 110px 28px 40px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.menu-open nav { background: #FFFFFB; }
.mobile-menu a {
  font-family: 'Inter', sans-serif; font-size: 30px; font-weight: 600; letter-spacing: -.02em; text-transform: uppercase;
  color: #050505; text-decoration: none; padding: 10px 0; line-height: 1.1;
}
.mobile-menu .mm-label { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #137053; margin: 22px 0 6px; }
.mobile-menu .mm-sub { font-size: 19px; padding: 8px 0; }
.mobile-menu .mm-cta { margin-top: 28px; background: #137053; color: #FFFFFB; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-align: center; padding: 20px; }
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}
@media (min-width: 961px) { .mobile-menu { display: none; } }

/* AUDIT / CONTACT */
.contact { padding: 140px 56px; background: #FFFFFB; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-hl { font-size: clamp(46px, 5.5vw, 86px); font-weight: 600; letter-spacing: -.025em; text-transform: uppercase; line-height: .93; }
.contact-hl.audit-hl { font-size: clamp(32px, 4.6vw, 72px); line-height: .96; margin-top: 28px; }
.contact-desc { margin-top: 32px; font-size: 15px; line-height: 1.7; opacity: .55; max-width: 480px; }
.audit-points { list-style: none; margin-top: 40px; border-top: 1px solid rgba(5,5,5,.1); max-width: 480px; }
.audit-points li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(5,5,5,.1); font-size: 14px; line-height: 1.6; }
.audit-points b { font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: #137053; padding-top: 3px; }
.audit-points span { opacity: .6; }
.form { display: flex; flex-direction: column; }
.field { border-bottom: 1px solid rgba(5,5,5,.12); padding: 22px 0; }
.field label, .field legend { display: block; font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #050505; opacity: .45; margin-bottom: 10px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea {
  width: 100%; background: none; border: none; outline: none; resize: none;
  font-family: inherit; font-size: 16px; color: #050505;
}
.field textarea { min-height: 72px; }
fieldset.field { border-width: 0 0 1px; min-width: 0; }
.audit-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.field .audit-opts label { display: block; margin: 0; opacity: 1; cursor: pointer; position: relative; }
.audit-opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.audit-opts span {
  display: block; padding: 12px 20px; border: 1px solid rgba(5,5,5,.2);
  font-size: 11px; font-weight: 500; letter-spacing: .12em; color: #050505;
  transition: background .2s, color .2s, border-color .2s;
}
.audit-opts input:checked + span { background: #137053; border-color: #137053; color: #FFFFFB; }
.audit-opts input:focus-visible + span { outline: 2px solid #137053; outline-offset: 2px; }
.form .form-submit { margin-top: 44px; align-self: flex-start; padding: 18px 48px; }
.form-status { margin-top: 20px; font-size: 14px; line-height: 1.6; min-height: 22px; }
.form-status.ok { color: #137053; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 960px) {
  .contact { padding: 80px 28px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* HOMEPAGE: SERVICE CARDS */
.svc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.svc-card { position: relative; display: block; height: 600px; overflow: hidden; background: #050505; color: #FFFFFB; text-decoration: none; }
.svc-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); transition: transform .9s cubic-bezier(.25,.46,.45,.94), opacity .5s; opacity: .88; }
.svc-card:hover img { transform: scale(1); opacity: 1; }
.svc-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(5,5,5,.88) 100%); }
.svc-card-n { position: absolute; top: 28px; left: 28px; z-index: 1; font-size: 11px; font-weight: 500; letter-spacing: .15em; opacity: .7; }
.svc-card-body { position: absolute; left: 28px; right: 28px; bottom: 30px; z-index: 1; transform: translateY(34px); transition: transform .5s cubic-bezier(.25,.46,.45,.94); }
.svc-card:hover .svc-card-body { transform: none; }
.svc-card-name { font-size: clamp(24px, 2.5vw, 40px); font-weight: 600; letter-spacing: -.022em; text-transform: uppercase; line-height: 1; }
.svc-card-line { margin-top: 16px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transition: opacity .4s; }
.svc-card:hover .svc-card-line { opacity: 1; }

.svc-card--web { background: #137053; }
.svc-card--web img, .svc-card--web:hover img {
  position: absolute; top: 19%; left: 28px; width: 190%; height: auto; max-width: none;
  opacity: 1; transform: none; box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.svc-card--web:hover img { transform: translateX(-22%); }
.svc-card--web::after { background: linear-gradient(transparent 55%, rgba(5,5,5,.8) 100%); }

/* HOMEPAGE: SECTORS */
.sectors { display: flex; gap: 12px; height: 540px; }
.sector { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: #050505; color: #FFFFFB; cursor: pointer; transition: flex-grow .8s cubic-bezier(.16,1,.3,1); }
.sector.is-open { flex-grow: 4.2; cursor: default; }
.sector img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: grayscale(1); transition: opacity .6s, filter .6s; }
.sector.is-open img { opacity: 1; filter: none; }
.sector::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(5,5,5,.8) 100%); }
.sector-v, .sector-h { position: absolute; z-index: 1; font-weight: 600; text-transform: uppercase; white-space: nowrap; transition: opacity .35s; }
.sector-v { left: 50%; bottom: 28px; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); font-size: 15px; letter-spacing: .06em; }
.sector-h { left: 32px; bottom: 30px; font-size: clamp(26px, 2.8vw, 44px); letter-spacing: -.022em; line-height: 1; opacity: 0; }
.sector.is-open .sector-v { opacity: 0; }
.sector.is-open .sector-h { opacity: 1; transition-delay: .3s; }

@media (max-width: 960px) {
  .svc-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .svc-card { height: 62vw; }
  .svc-card-n { top: 16px; left: 16px; }
  .svc-card-body { left: 16px; right: 16px; bottom: 18px; transform: none; }
  .svc-card-name { font-size: clamp(15px, 4.6vw, 26px); }
  .svc-card-line { display: none; }
  .svc-card--web img, .svc-card--web:hover img { left: 16px; top: 16%; }
  .sectors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: auto; }
  .sector { height: 44vw; }
  .sector:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sector img, .sector.is-open img { opacity: .9; filter: none; }
  .sector-v { display: none; }
  .sector-h, .sector.is-open .sector-h { opacity: 1; left: 16px; right: 12px; bottom: 16px; font-size: 17px; letter-spacing: -.01em; white-space: normal; }
}

/* SAMPLE FIGURES: invented numbers are hidden until real ones are supplied.
   To show a figure, put the real number in and delete its data-sample attribute. */
[data-sample] { display: none !important; }
.stat-band:has(> [data-sample]) { display: flex; }
.stat-band:has(> [data-sample]) > * { flex: 1 1 0; }
.stat-band:not(:has(> :not([data-sample]) ~ :not([data-sample]))) { display: none; }

/* legend sits inside the field padding like the other labels */
.field legend { float: left; width: 100%; }
.field .audit-opts { clear: both; }

/* white logo over dark heroes until the nav turns solid */
body:not(.menu-open) nav:not(.scrolled) .nav-logo img { filter: brightness(0) invert(1); transition: filter .3s; }

/* sector tiles link to their sector pages */
a.sector { display: block; color: #FFFFFB; text-decoration: none; }
.sector-cta { display: block; margin-top: 16px; font-size: 11px; font-weight: 500; letter-spacing: .14em; opacity: .8; }
.sector.is-open .sector-cta { animation: ctaIn .5s .45s both; }
@keyframes ctaIn { from { opacity: 0; transform: translateY(8px); } to { opacity: .8; transform: none; } }
@media (max-width: 960px) { .sector-cta { margin-top: 8px; font-size: 9px; } }
