:root {
  color-scheme: light;
  --background: #fff;
  --surface: #f7f8fa;
  --ink: #252b36;
  --muted: #666e7b;
  --border: #d7dce3;
  --footer-background: #08112d;
  --goal-background: rgba(37, 46, 66, .22);
  font-family: "Roboto", Arial, sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { zoom: .8; }
body { margin: 0; font-weight: 400; isolation: isolate; }
/* Fixed photo layers crossfade without stretching the original assets. */
.background-slideshow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #000b40 url("../backgrounds/hero-background-01.jpg") 60% center / cover no-repeat;
}
.background-slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  opacity: 0;
  transition: opacity 900ms ease-in-out;
}
.background-slideshow img.is-active { opacity: 1; }
.background-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 11, 40, .55);
}
@media (prefers-reduced-motion: reduce) {
  .background-slideshow img { transition: none; }
}
h1, h2, h3, p { margin: 0; }
.page-width { width: min(1600px, 92%); margin-inline: auto; }
.site-header { padding-top: 32px; }
.company-logo { display: block; width: 136px; height: 88px; object-fit: contain; }
.hero { padding-top: 135px; padding-bottom: 52px; }
.hero-heading {
  text-align: center;
  padding: clamp(48px, 8vw, 100px) clamp(20px, 4vw, 56px);
  color: #fff;
}
h1 { max-width: 1100px; margin-inline: auto; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; line-height: 1.15; letter-spacing: -.035em; }
.hero-heading p { margin-top: 24px; color: #fff; font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
.hero-heading, .goals-grid { transform: translateY(-32px); }
.goals-grid, .projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-mining, .project-agriculture { grid-column: 1 / -1; }
.goals-grid { margin-top: 86px; align-items: start; }
.goal { width: 78%; justify-self: center; font-weight: 400; border: 1px solid #ffffff80; border-radius: 10px; text-align: center; font-size: 1.75rem; background: transparent; color: #fff; overflow: hidden; backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); transition: width 450ms ease, background-color 450ms ease, backdrop-filter 450ms ease, -webkit-backdrop-filter 450ms ease; }
.goal.is-open { width: 100%; background-color: var(--goal-background); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition-delay: 0s; }
.goal-toggle { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; padding: 36px 20px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.goal-toggle:focus-visible { outline: 2px solid #fff; outline-offset: -6px; border-radius: 10px; }
.goal-panel { height: 0; overflow: hidden; visibility: hidden; opacity: 0; transition: height 450ms ease, opacity 450ms ease, visibility 450ms; }
.goal.is-open .goal-panel { height: var(--goal-text-height); visibility: visible; opacity: 1; }
.goal-panel-inner { min-height: 0; overflow: hidden; }
.goal-panel p { position: relative; left: 50%; transform: translateX(-50%); width: var(--goal-text-width, 100%); padding: 0 24px 28px; font-size: 1.125rem; line-height: 1.6; opacity: 0; transition: opacity 300ms ease; }
.goal.is-open .goal-panel p { opacity: 1; transition-delay: 225ms; }
@media (prefers-reduced-motion: reduce) {
  .goal, .goal-panel, .goal-panel p { transition: none; }
}
.projects { padding: 64px 0 88px; background: #030a26; color: #fff; --muted: #fff; --border: #ffffff26; }
.projects h2 { text-align: center; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -.025em; margin-bottom: 48px; }
.project { grid-column: 1 / -1; min-height: 265px; padding: 30px; border: 1px solid var(--border); border-radius: 10px; background: #020822; }
.project h3 { font-size: 1.75rem; font-weight: 700; }
.project p { margin-top: 24px; color: var(--muted); font-size: 1.125rem; line-height: 1.6; }
.site-footer { border-top: 1px solid var(--border); padding: clamp(28px, 3vw, 48px) 0 24px; background: var(--footer-background); color: #fff; --muted: #fff; --border: #ffffff55; }
.footer-layout { display: block; }
.footer-info { display: grid; grid-template-columns: minmax(0, 4fr) minmax(140px, 1fr); gap: clamp(24px, 3vw, 48px); }
.footer-info h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 16px; }
.footer-info p { font-size: .9375rem; color: var(--muted); line-height: 1.8; }
.footer-bottom { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: .875rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 760px) {
  .page-width { width: calc(100% - 40px); }
  .hero { padding-top: 88px; padding-bottom: 24px; }
  .goals-grid { gap: 12px; margin-top: 56px; }
  .goal { width: 90%; font-size: 1.25rem; }
  .goal-toggle { padding: 26px 10px; gap: 12px; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .project { min-height: 230px; padding: 24px; }
  .projects { padding: 48px 0 56px; }
  .footer-info { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-header { padding-top: 20px; }
  .company-logo { width: 112px; height: 76px; }
  .hero { padding-top: 72px; }
  .goals-grid, .projects-grid, .footer-info { grid-template-columns: 1fr; }
  .goal { width: 78%; }
  .goal-toggle { padding: 24px; }
  .project { min-height: 220px; }
  .projects h2 { margin-bottom: 32px; }
}



@media (max-width: 900px) {
  .footer-info { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
}

.footer-info > div { min-width: 0; overflow-wrap: anywhere; }

.about-company p + p { margin-top: 16px; }

.project.project-compact { min-height: 0; padding: 20px 24px; }
.project-compact p { margin-top: 16px; }
.project-with-diagram { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.project-diagram { display: block; width: min(100%, 260px); max-height: 320px; justify-self: center; height: auto; object-fit: contain; border-radius: 6px; }
.project-copy { min-width: 0; }
@media (max-width: 1100px) {
  .project-with-diagram { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .project-with-diagram { grid-template-columns: 1fr; }
  .project-diagram { max-width: 360px; margin-inline: auto; }
}

.project.project-with-photo { padding: 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.project-photo { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 6px; }
@media (max-width: 1100px) {
  .project-with-photo { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .project.project-with-photo { grid-template-columns: 1fr; }
  .project-photo { max-width: 360px; margin-inline: auto; }
}

@media (max-width: 760px) {
  .project.project-with-photo { padding: 24px; }
}

/* Match photo frames; crop defense symmetrically and remove the forest's top. */
.project-photo { aspect-ratio: 4 / 3; object-fit: cover; }
.project-photo.photo-defense { width: 112.5%; max-width: 540px; justify-self: center; object-position: center; }
.photo-biochemical { object-position: center bottom; }
.contact-email { color: inherit; text-underline-offset: 3px; }
.protein-visual { min-width:0; }
.protein-model { display:block; width:100%; height:420px; border:0; border-radius:8px; background:#020822; }
.project .protein-description { margin-top:12px; font-size:1rem; line-height:1.55; text-align:center; }
.project-simulation { grid-template-columns: minmax(0, 1fr); }
.project-simulation > .project-copy { text-align: center; }
.simulation-area { min-width: 0; }
.simulation-frame { display: block; width: 100%; border: 0; background: #020822; border-radius: 8px; }
.project.project-mining > .visual-description { margin-top: 0; }
.mining-animation-frame { height:779px; }
.agriculture-simulation { height: 635px; }
.project-analytics { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.project-analytics .project-copy { grid-column: 2; grid-row: 1; }
.venture-models { --model-height: clamp(346.667px, 36vw, 573.333px); grid-column: 1; grid-row: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 373.333px)) 90px; justify-content: center; gap: 8px; align-items: center; }
.venture-legend { grid-column: 3; grid-row: 2; display: block; width: 90px; height: var(--model-height); object-fit: fill; }
.venture-model { grid-row: 2; display: block; width: 100%; height: var(--model-height); border: 0; border-radius: 8px; background: #030a26; }
.venture-model-key { grid-column: 1 / 3; grid-row: 1; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; font-size: 1rem; padding-bottom: 8px; }
.venture-model-key span { display: inline-flex; align-items: center; gap: 8px; }
.venture-model-key .object-key { color: #214477; }
.venture-model-key .seabed-key { color: #cb8254; }
.venture-model-key i { display: inline-block; width: 18px; height: 3px; background: currentColor; }
.venture-model-key .seabed-swatch { width: 9px; height: 9px; border-radius: 50%; }
.venture-model:hover, .venture-model:focus, .venture-model:focus-visible { outline: none; box-shadow: none; }
.venture-models .model-description { grid-column: 1 / 3; grid-row: 3; margin: 12px 0 0; text-align: center; color: #c2cfe3; font-size: 1rem; }
.projects h2 { margin-bottom:20px; }
.ventures-intro { max-width:1200px; margin:0 auto 48px; text-align:center; color:#c2cfe3; font-size:1.125rem; line-height:1.7; }
.project .visual-description { font:400 1rem/1.6 Roboto,Arial,sans-serif; color:#c2cfe3; text-align:center; margin:12px 0 0; }
@media (max-width: 900px) {
  .project-analytics { grid-template-columns: 1fr; }
  .project-analytics .project-copy { grid-column: 1; grid-row: 2; }
}


/* Keep both complete maps equally sized, alongside their venture description. */
.project.project-real-estate { grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); }
.real-estate-maps { display: flex; justify-content: center; align-items: center; gap: 18px; min-width: 0; container-type: inline-size; }
.real-estate-maps img { display: block; width: auto; height: min(clamp(108px, 49.5cqw, 360px), calc((100cqw - 18px) / 2.262)); flex-shrink: 0; border-radius: 6px; }
@media (max-width: 600px) {
  .project.project-real-estate { grid-template-columns: 1fr; }
}

.project .venture-subheading { margin: 16px 0 0; font-size: 1.125rem; font-weight: 500; line-height: 1.4; }
