body {
  --gold: #caa460;
  --champagne: #ecd3a7;
  --panel: #2e222e;
  --charcoal: #2e222e;
  --ivory: #f5f3f0;
}
.top {
  padding-inline: max(3vw, 1rem);
  background: #f9f7f2;
  border-color: #caa46070;
}
.top .brand img, .bottom .brand img { width: clamp(126px, 13vw, 185px); height: auto; }
.top nav a, .top .menu { color: #262126; }
.top .menu { border-color: #a18354; }
.hero { overflow: hidden; min-height: min(850px, calc(100svh - 72px)); background: #171319; }
.hero-backdrop {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
  background: #171319 url("cinematic-poster.webp") center / cover no-repeat;
}
.hero-backdrop video { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.hero-backdrop::after {
  position: absolute; inset: 0; content: "";
  background: linear-gradient(90deg, #100d12f2, #171319d1 34%, #1713195c 67%, #17131920),
              linear-gradient(0deg, #100d128a, transparent 33%, #17131926);
}
.hero-motion:not([hidden]) {
  position: absolute; right: max(calc(2.3vw + 1rem), 1.6rem); bottom: 2.2rem;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid #ebce95b5; color: #fff; background: #171319c7;
}
.hero-motion:hover { background: #332936; }
.hero-motion span { border-block: 7px solid transparent; border-left: 11px solid currentColor; }
.hero-motion[data-playing=true] span { width: 12px; height: 14px; border: 0; border-inline: 3px solid currentColor; }
.hero::before {
  position: absolute; inset: 1.35rem max(2.3vw, 1rem); z-index: -1;
  border: 1px solid #caa46050; content: ""; pointer-events: none;
}
.hero-inner { padding-block: clamp(3.4rem, 6.4vw, 6.4rem); }
.hero h1 {
  font-size: clamp(4rem, 9.4vw, 9.5rem);
  font-weight: 865; line-height: .81; letter-spacing: -.075em; margin: .24em 0 .31em;
}
.hero h1 em { font-weight: 440; color: var(--champagne); }
.hero-tagline { font-size: clamp(1.12rem, 2vw, 1.48rem); font-weight: 700; margin-bottom: .5rem; }
.hero-link { display: inline-block; margin-top: 1.25rem; color: #f5dfb8; }
.story-art[data-state="2"] {
  background: repeating-linear-gradient(0deg,#c9a86d18 0 1px,transparent 1px 28px),
              repeating-linear-gradient(90deg,#c9a86d18 0 1px,transparent 1px 28px);
}
.story-art[data-state="2"] i { display: block; inset: 20% 20% 29%; transform: skewY(-15deg); }
.story-art[data-state="2"] i:nth-child(2) { transform: skewY(-15deg) translate(16%, 18%); }
.story-art[data-state="2"] i:nth-child(3) { transform: skewY(-15deg) translate(32%, 36%); }
.company-facts { margin: 0; border-top: 1px solid #cbb58c; }
.company-facts div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid #ded5c6; }
.company-facts dt { color: #624b2b; font-weight: 700; }
.company-facts dd { margin: 0; }
.founding-story { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(1.5rem, 6vw, 5rem); }
.founding-copy { border-left: 2px solid var(--gold); padding-left: clamp(1rem, 3vw, 2.2rem); }
.founding-copy p { margin: 0; max-width: 60ch; }
.founding-copy p + p { margin-top: 1rem; }
.founder {
  color: #fff; background-color: #171319;
  background-image: linear-gradient(#d5b7790c 1px, transparent 1px), linear-gradient(90deg,#d5b7790c 1px, transparent 1px);
  background-size: 42px 42px;
}
.founder-heading { margin-bottom: 2rem; }
.founder-console {
  display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr);
  gap: clamp(1rem, 3.5vw, 3rem); padding: clamp(1.15rem, 3vw, 2.7rem);
  background: #171319; border: 1px solid #9b7944; border-left: 4px solid var(--gold);
  clip-path: polygon(0 0, calc(100% - 24px) 0,100% 24px,100% 100%,24px 100%,0 calc(100% - 24px));
}
.founder-identity { display: grid; min-height: 435px; align-content: end; isolation: isolate; position: relative; overflow: hidden; border: 1px solid #a8854d; background: #332936; }
.founder-identity img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 39%; z-index: -2; }
.founder-identity::after { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(0deg,#0e0b10 1%,#151117ba 18%,transparent 55%); }
.founder-identity > div { padding: 1.3rem; }
.founder-identity > div p { color: var(--champagne); margin-top: .35rem; }
.founder-controls { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.founder-bio-summary { margin: 0 0 1.3rem; color: #ece7ed; max-width: 60ch; }
.founder-status { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: space-between; color: var(--champagne); font-weight: 700; font-size: .88rem; margin-bottom: .9rem; }
.founder-status span:last-child { padding-left: .7rem; border-left: 2px solid var(--gold); }
.founder-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .35rem; }
.founder-tabs button { border: 1px solid #9a7d55; background: #2b242d; padding: .7rem .34rem; min-height: 45px; font-weight: 650; font-size: .92rem; }
.founder-tabs button[aria-selected=true] { color: #171319; background: var(--gold); }
.founder-milestone {
  min-height: 245px; border: 1px solid #977744; border-top: 2px solid var(--gold); margin-top: .6rem;
  padding: clamp(1rem, 2.6vw, 2rem); background: linear-gradient(145deg,#2e222e,#1d181d);
}
#founder-date { color: var(--champagne); font-size: clamp(2.4rem, 4vw, 4.2rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; margin-bottom: .75rem; }
#founder-text { margin-top: .7rem; color: #ece7ed; }
.service-item { border-top: 1px solid var(--line); }
.service-item:last-child { border-bottom: 1px solid var(--line); }
.service-item .service { border: 0; list-style: none; cursor: pointer; }
.service::-webkit-details-marker { display: none; }
.service .plus::before { content: "+"; }
.service-item[open] .plus::before { content: "−"; }
.service-item[open] .service strong { color: #75531f; }
.service-scope { padding: .3rem 1rem 1.25rem; border-left: 2px solid var(--gold); margin-bottom: 1rem; }
.service-scope ul { margin-top: .55rem; padding-left: 1.15rem; }
.solar-dashboard { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 1rem; margin-top: 2rem; }
.solar-inputs, .solar-results { background: #2e222e; border: 1px solid #a58856; padding: clamp(1rem, 3vw, 2rem); }
.solar-inputs { display: grid; align-content: start; gap: .85rem; }
.solar-inputs label { display: grid; gap: .25rem; }
.solar-inputs .btn { justify-self: start; }
.energy-flow { display: flex; list-style: none; flex-wrap: wrap; padding: 0; gap: .4rem; }
.energy-flow li { border-bottom: 1px solid var(--gold); padding: .25rem .6rem; background: #171319; font-size: .85rem; color: var(--champagne); }
.solar-output > div { padding: .6rem 0; border-bottom: 1px solid #a5885655; }
.solar-output dd { color: var(--champagne); font-size: 1.5rem; font-weight: 700; margin: .15rem 0 0; }
.solar-results > p { font-size: .9rem; color: #e7dce5; }
.register { margin-top: 2rem; }
.register table { font-size: .96rem; }
.register tbody td:last-child { width: 21%; }
.register tbody th small { display: block; color: #5e545b; font-size: .8rem; font-weight: 500; margin-top: .35rem; }
.project-name { color: #302434; background: transparent; border: 0; padding: 0; font-weight: 750; text-align: left; }
.project-name:hover { text-decoration: underline; text-underline-offset: .25rem; }
.project-details { display: grid; gap: .7rem; margin: 1.2rem 0 1.6rem; }
.project-details > div { display: grid; grid-template-columns: minmax(100px, 1fr) 2fr; gap: .8rem; border-bottom: 1px solid #caa46052; padding: .4rem 0; }
.project-details dt { color: var(--champagne); font-weight: 700; }
.project-details dd { margin: 0; }
.director .portrait { display: block; overflow: hidden; aspect-ratio: 4 / 5; padding: 0; background: #e9e0d1; }
.director .portrait img {
  position: static; width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0;
  object-fit: cover; object-position: center; transform: scale(var(--portrait-zoom, 1.32));
  transform-origin: var(--portrait-x, 50%) var(--portrait-y, 32%);
}
.director .anabel-velasco img { object-position: 50% 0%; --portrait-zoom: 2.15; --portrait-x: 57%; --portrait-y: 3%; }
.director .arwin-velasco img { --portrait-x: 47%; --portrait-y: 38%; }
.director .aldrin-velasco img { --portrait-x: 48%; }
.director .arvin-velasco img { --portrait-zoom: 1.39; --portrait-x: 54%; --portrait-y: 40%; }
.director .darlene-velasco img { object-position: 41% center; --portrait-zoom: 1.31; --portrait-y: 0%; }
.director-full { display: block; width: auto; max-width: 100%; max-height: 53dvh; aspect-ratio: auto; object-fit: contain; border: 0; border-radius: 0; }
.gallery { grid-auto-rows: minmax(195px, 23vw); }
.director h3 { font-size: clamp(.95rem, 1.6vw, 1.12rem); }
.director p { font-size: .9rem; }
.contact { background: #211a22; }
.bottom nav { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
@media (max-width: 700px) {
  .hero { min-height: min(730px, calc(100svh - 62px)); }
  .hero h1 { font-size: clamp(3rem, 12.5vw, 5.4rem); }
  .hero-inner { padding-block: 4rem; }
  .hero::before { inset: .65rem; }
  .hero-motion:not([hidden]) { right: 1.25rem; bottom: 1.25rem; }
  .hero-backdrop::after { background: linear-gradient(90deg, #100d12e6, #171319a3 72%, #17131973); }
  .founding-story { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: minmax(154px, 34vw); }
  .founder-console, .solar-dashboard { grid-template-columns: 1fr; }
  .founder-identity { min-height: 365px; }
  .founder-milestone { min-height: 215px; }
  .founder-status { font-size: .8rem; }
}
.credential { display: block; padding: 1rem 2.15rem 1rem 1rem; text-decoration: none; }
.credential:hover, .credential:focus-visible { border-color: var(--champagne); }
.credential :is(strong, .credential-action) { display: block; }
.credential .credential-action { position: absolute; right: .65rem; top: .75rem; color: var(--champagne); font: 650 1.2rem/1 Arial, sans-serif; }
.solar-sizing summary { cursor: pointer; color: var(--champagne); }
.solar-sizing label { margin-top: .65rem; }

/* Company identity and heritage */
.founder-editorial{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:center;gap:clamp(2rem,7vw,7rem)}
.identity-layout h2,.founder-editorial h2{margin:0 0 1.5rem}
.identity-layout p{max-width:57ch}
.identity-lead{font-size:clamp(1.2rem,2vw,1.65rem);line-height:1.45;margin-bottom:1rem}
.heritage{position:relative;display:grid;justify-items:center;align-content:center;gap:1.5rem;min-height:330px;margin:0;background:radial-gradient(ellipse at 50% 45%,#413a32,#211e1c 75%);color:#f1dab0}
.heritage::before{content:"";position:absolute;inset:.8rem;border:1px solid #caa4606b}
.heritage img{width:clamp(125px,13vw,195px)}.heritage figcaption{font-size:.95rem;letter-spacing:.06em}
.sectors{display:flex;flex-wrap:wrap;gap:clamp(1.1rem,4vw,3.5rem);list-style:none;padding:0;margin:2rem 0 0}
.sectors li{font-weight:600;font-size:.94rem}.sectors img{height:33px;max-width:52px;object-fit:contain;margin-bottom:.6rem}
.identity-facts{display:grid;grid-template-columns:1fr 1fr 1.5fr;border-top:1px solid #c9b48d;gap:1rem;margin:2.3rem 0 0;padding-top:1rem}
.identity-facts dt{font-size:.875rem;color:#6a5738}.identity-facts dd{margin:0;font-weight:600}
.founder-editorial{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)}
.founder-editorial figure{margin:0;align-self:center}
.founder-editorial figure img{width:100%;max-height:560px;object-fit:cover;object-position:center 35%}
.founder-editorial figcaption{border-bottom:1px solid #94774d;padding:1rem 0;display:flex;flex-direction:column}
.founder-editorial figcaption strong{font-size:1.25rem}.founder-editorial figcaption span{color:var(--champagne)}
.founder-editorial p{margin-top:1rem;color:#eee9e2;max-width:65ch}
.principles{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(1rem,3vw,3rem)}
.principles dt img{height:65px;width:70px;object-fit:contain;object-position:left bottom;margin:1rem 0}
.director .portrait img{transform:none;object-position:center;aspect-ratio:4/5}
.director-full{width:min(100%,300px);height:auto;object-fit:contain;aspect-ratio:4/5}
.story{grid-template-columns:minmax(0,.62fr) minmax(0,1.38fr);gap:clamp(1.5rem,3vw,4rem)}
.story-stage{background:#171614;overflow:hidden}.story-body{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center}
.story-art,.story-art[data-state]{mask-image:none;min-height:0;background:none}.story-art img{width:100%;height:auto;object-fit:contain}
.story-text{align-self:center}.story-tabs button[aria-selected=true]{color:#fff2d4;background:linear-gradient(125deg,#4a3925,#866432);box-shadow:inset 0 -2px #e9bc66}
dialog:has(.permit-image){width:min(850px,calc(100vw - 24px))}
dialog:has(.permit-image) .panel-head{position:sticky;top:0;z-index:2;background:#211d19;padding:.4rem .6rem}
.preview-zoom{margin:1rem 0 .5rem}.permit-scroll{max-height:64dvh;overflow:auto;background:#171614;border:1px solid #a68855}.permit-image{width:100%;display:block}.permit-scroll.enlarged img{width:160%;max-width:none}
@media(max-width:930px){.story{grid-template-columns:1fr}.principles{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.identity-layout,.founder-editorial{grid-template-columns:1fr}.identity-facts{grid-template-columns:1fr;gap:.6rem}.identity-facts div{display:grid;grid-template-columns:6rem 1fr;gap:.5rem}.heritage{min-height:235px}.founder-editorial figure{width:min(100%,380px)}.sectors{display:grid;grid-template-columns:repeat(auto-fit,minmax(7rem,1fr))}.story-body{grid-template-columns:1fr}.story-art{grid-row:1;width:100%;max-width:420px;justify-self:center}.story-text{padding:1.1rem}.principles{gap:1.25rem}.principles dt img{height:48px}.principles dd{font-size:1rem}}

#about .identity-layout{position:relative;isolation:isolate}
#about .identity-layout::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url(identity/heritage-watermark.svg) center/contain no-repeat}
.project-pages{display:flex;gap:1rem;margin-top:1.5rem}
.project-pages button{color:#262626;border-color:#cdb475}
.project-pages button:disabled{opacity:.45;cursor:default}
#project-list{scroll-margin-top:6rem}
.footer .social-icon{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;transition:color .2s;overflow-wrap:anywhere}
.social-icon svg{width:22px;height:22px;flex:none}
.social-icon:hover,.social-icon:focus-visible{color:#cdb475}
.footer .bottom nav{display:flex;align-items:center;flex-wrap:wrap;max-width:100%;gap:.8rem}
.copyright{text-align:center;border-top:1px solid #cdb47555;margin:0;padding:1.2rem;color:#262626;font-size:.875rem}
.messenger-float{position:fixed;right:max(.8rem,env(safe-area-inset-right));bottom:max(.8rem,env(safe-area-inset-bottom));z-index:12;display:inline-flex;align-items:center;gap:.5rem;padding:.6rem .9rem;border:1px solid #cdb475;border-radius:2rem;background:#000;color:#cdb475;font-size:.875rem;box-shadow:0 3px 14px #0003;transition:background .2s,color .2s}
.messenger-float:hover,.messenger-float:focus-visible{background:#cdb475;color:#000}
.messenger-float svg{width:25px;height:25px}
.copyright{padding-bottom:4.5rem}
@media(max-width:700px){.messenger-float{padding:.6rem}.messenger-float span{position:absolute;right:100%;white-space:nowrap;background:#000;color:#cdb475;padding:.35rem .6rem;border-radius:.5rem;opacity:0;pointer-events:none}.messenger-float:focus-visible span,.messenger-float:hover span{opacity:1}.hero-motion{bottom:4.4rem}.project-pages{padding-right:3.5rem}}

.footer .social-icon:is([aria-label="Facebook"], [aria-label="LinkedIn"]) svg,
.messenger-float svg {
  flex: none;
  transition: transform .2s ease;
}
.footer .social-icon:is([aria-label="Facebook"], [aria-label="LinkedIn"]):hover svg,
.messenger-float:hover svg { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .footer .social-icon:is([aria-label="Facebook"], [aria-label="LinkedIn"]) svg,
  .messenger-float svg { transition: none; transform: none !important; }
}

/* Targeted December revisions */
#philosophy .intro { min-width:0; container-type:inline-size; }
#philosophy h2 { font-size:clamp(2rem, 13.2cqi, 5.4rem); overflow-wrap:normal; }
.partner-link { display:block; color:inherit; text-decoration:none; transition:color .2s; }
.partner-link:hover,.partner-link:focus-visible { color:#98783b; }
.external-link { display:inline-block; width:1em; height:1em; margin-left:.4em; vertical-align:middle; fill:none; stroke:currentColor; stroke-width:1.5; }
.director .portrait { aspect-ratio:3/4; }
.director .portrait img { object-fit:contain; object-position:center; aspect-ratio:auto; transform:none; }
.director-full { aspect-ratio:auto; }
.founder-editorial figure img { height:auto; max-height:none; object-fit:contain; }
.proposal-help,#proposal-contact-help,#proposal-status { font-size:.875rem; margin-top:.65rem; }
#proposal-contact-help { margin:0; }
#proposal-fallback { margin-top:1rem; }
#proposal-fallback label { display:grid; gap:.4rem; }
#proposal-fallback .btn { margin-top:.75rem; }
.permit-image + .permit-image { margin-top:1rem; }

#submission-form :is(#contact-help, #resume-help, .submission-privacy, #submission-status) {
  font-size: .875rem;
}
.submission-privacy, #submission-status { margin-top: .75rem; }
#submission-status:empty { display: none; }
.submission-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submission-messenger svg { width: 1.3rem; height: 1.3rem; flex: none; }
#submission-form .btn:disabled { opacity: .6; cursor: default; }
#submission-form input[type=file] { max-width: 100%; }

/* Targeted contact, board and email revisions */
.director-popup-title, #panel-content:has(.director-full) > p { text-align: center; }
.director-full { margin-inline: auto; }
.submission-notice { margin-block: .9rem; border-inline-start: 2px solid #cdb475; padding: .65rem .8rem; font-size: .875rem; }
.submission-notice strong { color: #cdb475; }
.submission-notice p { margin: .35rem 0 0; }

.project-category { display: inline-grid; gap: .35rem; margin-top: 1rem; max-width: 100%; }
.project-category select { font: inherit; color: #262626; background: #fff; border: 1px solid #d0c2a8; border-radius: .25rem; padding: .4rem .6rem; max-width: 100%; }
.register .project-name,.register .project-location,.project-details dd { overflow-wrap: anywhere; }
#submission-form input[aria-invalid="true"] { border-color: #b42318; }
.submission-email-error { color: #b42318; font-size: .875rem; }
