:root {
  /* Bold dark theme -- one signature signal color, everything else disciplined */
  --bg: #101310;
  --surface: #181c18;
  --surface-raised: #1f231e;
  --text: #f3f1e7;
  --muted: #9aa39c;
  --signal: #ff4b2e;
  --signal-soft: #ff7a5c;
  --line: #2b302b;
  --header-bg: #ffffff;

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p {
  max-width: 62ch;
  margin: 0 0 1em;
  color: var(--muted);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  color: var(--bg);
  text-decoration: none;
  font-size: 16px;
  position: relative;
  padding-bottom: 4px;
  margin-left: 32px;
}

nav a:first-child {
  margin-left: 0;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--signal);
  transition: width 0.25s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Hero -- asymmetric split, architectural drafting frame */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 110px 64px;
  max-width: 1280px;
  margin: 0 auto;
  text-align: left;
  background-image:
    linear-gradient(rgba(185, 175, 156, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 175, 156, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero::before,
.hero::after,
.hero-copy::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--signal);
}

.hero::before {
  top: 24px;
  left: 24px;
  border-right: none;
  border-bottom: none;
}

.hero::after {
  top: 24px;
  right: 24px;
  border-left: none;
  border-bottom: none;
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  bottom: -24px;
  left: 0;
  border-right: none;
  border-top: none;
}

.hero-copy h1 {
  font-size: 52px;
  max-width: 17ch;
  margin-bottom: 22px;
}

.hero-copy p {
  font-size: 20px;
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 14px;
}

.hero-cycle {
  display: flex;
  justify-content: center;
}

.hero-cycle svg {
  width: 100%;
  max-width: 340px;
  height: auto;
}

/* Sections */
.section {
  padding: 60px 48px 0;
  max-width: 1000px;
  margin: auto;
}

.section:last-of-type {
  padding-bottom: 60px;
}

.section h2 {
  font-size: 34px;
  margin-bottom: 24px;
}

.lede {
  max-width: none;
}

/* Services -- arranged as a cycle, custom line icons, hard edges */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service {
  background: var(--surface);
  padding: 36px 28px;
  text-align: left;
}

.service-icon {
  display: block;
  margin-bottom: 18px;
  color: var(--signal);
}

div.service-icon {
  width: 42px;
  height: 42px;
}

div.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.service h3 {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}

.service p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

/* Leadership cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
  margin-top: 36px;
}

.team-card {
  text-align: left;
  border-top: 2px solid var(--signal);
  padding-top: 18px;
}

.team-card h3 {
  text-align: left;
  font-size: 19px;
}

.team-card p {
  text-align: left;
  margin-top: 6px;
  color: var(--muted);
}

.team-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 16px;
}

.role {
  color: var(--signal);
  font-weight: 600;
  margin-bottom: 8px;
}

.placeholder-img {
  width: 160px;
  height: 160px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  font-size: 12px;
  color: var(--muted);
}

.team-overview {
  max-width: 700px;
}

.team-overview img {
  width: 100%;
  height: auto;
  max-width: 500px;
  border-radius: 0;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}

/* SDG section -- tile grid */
.sdg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 32px;
  text-align: center;
}

.sdg-card {
  background: var(--surface);
  padding: 24px 16px;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease;
}

.sdg-card:hover {
  border-color: var(--signal);
}

.sdg-card img {
  width: 100%;
  height: auto;
  max-width: 100px;
  margin: 0 auto 12px;
  display: block;
}

.sdg-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}

/* CONTACT PAGE */
.contact-page {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  background-image:
    linear-gradient(rgba(16, 19, 16, 0.88), rgba(16, 19, 16, 0.88)),
    url("Logos/perpetuo-bubbles.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover, 700px;
  background-attachment: fixed, fixed;
}

.contact-page h1, .contact-page h2, .contact-page h3 {
  color: var(--text);
}

.contact-hero {
  display: flex;
  justify-content: center;
}

.contact-hero-box {
  width: 100%;
  max-width: 1100px;
  background: rgba(16, 19, 16, 0.94);
  padding: 40px;
  border-radius: 0;
  text-align: left;
  border: 1px solid var(--line);
}

.contact-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 30px;
  background: rgba(16, 19, 16, 0.94);
  border: 1px solid var(--line);
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-top: 10px;
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  border-radius: 0;
}

.contact-form textarea {
  min-height: 120px;
}

.contact-form button {
  margin-top: 15px;
  padding: 12px;
  background: var(--signal);
  border: none;
  color: var(--bg);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  border-radius: 0;
}

.contact-form button:hover {
  background: var(--signal-soft);
}

.contact-info {
  background: var(--surface);
  padding: 20px;
  border: 1px solid var(--line);
}

.contact-info a {
  color: var(--text);
  text-decoration: none;
}

.contact-info a:visited {
  color: var(--text);
}

.contact-info a:hover {
  color: var(--signal-soft);
}

.social-links {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.social-links a {
  text-decoration: none;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links a i {
  color: var(--signal);
}

.button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--signal);
  color: var(--bg);
  text-decoration: none;
  border-radius: 0;
  margin-top: 20px;
  font-weight: 600;
}

/* THANK YOU PAGE */
.thank-you-page {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  background-image:
    linear-gradient(rgba(16, 19, 16, 0.88), rgba(16, 19, 16, 0.88)),
    url("Logos/perpetuo-bubbles.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover, min(700px, 70vw);
  background-attachment: fixed, fixed;
}

.thank-you-page h1, .thank-you-page h2 {
  color: var(--text);
}

.thank-you-box {
  background: rgba(16, 19, 16, 0.94);
  padding: 60px;
  max-width: 700px;
  margin: 120px auto;
  text-align: center;
  border-radius: 0;
  border: 1px solid var(--line);
}

/* BLOG ARTICLES */
.article-header {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.article-header img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  margin-top: 20px;
  border-radius: 0;
}

.article-meta {
  color: var(--muted);
  font-size: 14px;
  font-family: var(--font-mono);
}

.article-body {
  max-width: 700px;
  margin: auto;
  line-height: 1.7;
}

.article-body h2 {
  margin-top: 40px;
  font-size: 26px;
}

.article-body blockquote {
  margin: 30px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--signal);
  background: var(--surface);
  font-style: italic;
}

/* BLOG GRID */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  display: block;
}

.blog-card:hover {
  border-color: var(--signal);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-content {
  padding: 18px;
}

.blog-content h3 {
  margin-top: 0;
  font-size: 19px;
}

.blog-content p {
  margin-top: 8px;
  color: var(--muted);
}

/* BACK LINK */
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--signal);
  color: var(--signal);
  text-decoration: none;
  font-size: 14px;
  border-radius: 0;
}

.back-link:hover {
  background: var(--signal);
  color: var(--bg);
}

/* FOOTER */
footer {
  background: var(--surface);
  color: var(--muted);
  margin-top: 60px;
  text-align: center;
  padding: 0;
  border-top: 1px solid var(--line);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 48px;
  text-align: left;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand h3 {
  color: var(--text);
  margin-bottom: 5px;
}

.footer-links h4 {
  color: var(--text);
  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  margin: 5px 0;
}

.footer-links a:hover {
  color: var(--signal-soft);
}

.footer-bottom {
  text-align: center;
  padding: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--muted);
}

/* CHATBOT WIDGET */
#chat-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--signal);
  color: var(--bg);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

#chatbot {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--signal);
  border-radius: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

#chat-header {
  background: var(--signal);
  color: var(--bg);
  padding: 10px;
  font-weight: 600;
}

#chat-window {
  height: 250px;
  overflow-y: auto;
  padding: 10px;
  font-size: 14px;
}

#chat-input {
  border: none;
  border-top: 1px solid var(--line);
  padding: 10px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
}

.bot-message {
  background: var(--surface-raised);
  padding: 8px;
  margin: 5px 0;
  border-radius: 0;
}

.user-message {
  background: var(--signal);
  color: var(--bg);
  padding: 8px;
  margin: 5px 0;
  border-radius: 0;
  text-align: right;
}

/* Responsive */
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 60px 24px;
  }
  .hero-copy h1 {
    font-size: 42px;
  }
  .hero-cycle {
    order: -1;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px;
    gap: 14px;
  }
  .logo img {
    height: 56px;
  }
  nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 16px;
    width: 100%;
  }
  nav a {
    margin-left: 0;
    font-size: 14px;
    padding: 6px 0;
    text-align: left;
  }
  .section {
    padding: 40px 24px 0;
  }
  .section:last-of-type {
    padding-bottom: 40px;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
  #chatbot {
    width: calc(100vw - 40px);
    right: 20px;
    bottom: 80px;
  }
  #chat-toggle {
    right: 20px;
    bottom: 20px;
  }
}

/* Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* INNOVATIONS PAGE */
.innovation-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.innovation-block:first-of-type {
  border-top: none;
}

.innovation-block.reverse .innovation-media {
  order: 2;
}

.innovation-media img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}

.innovation-media.stacked {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.innovation-text h3 {
  font-size: 26px;
  margin-bottom: 6px;
}

.innovation-tagline {
  font-family: var(--font-mono);
  color: var(--signal);
  font-size: 14px;
  margin-bottom: 16px;
}

.button-row {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.button-row .button {
  margin-top: 0;
}

.button-outline {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--signal);
  text-decoration: none;
  font-weight: 600;
}

.button-outline:hover {
  background: var(--signal);
  color: var(--bg);
}

@media (max-width: 800px) {
  .innovation-block {
    grid-template-columns: 1fr;
  }
  .innovation-block.reverse .innovation-media {
    order: 0;
  }
}

/* PARTNERS STRIP */
.partners-strip {
  padding: 40px 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partners-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.partners-row img {
  height: 56px;
  width: auto;
  display: block;
}

@media (max-width: 800px) {
  .partners-strip {
    padding: 32px 24px;
  }
  .partners-row {
    gap: 32px;
  }
  .partners-row img {
    height: 44px;
  }
}

/* CTA BAND, WORK STRIP, GROUPS, STEPS */
.cta-band{margin:60px 48px 0;padding:44px 40px;border:1px solid var(--line);border-top:2px solid var(--signal);background:var(--surface);display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.cta-band h2{margin:0 0 6px;font-size:28px}
.cta-band p{margin:0;color:var(--muted)}
.cta-band .button{margin-top:0}
.service-group-label{font-family:var(--font-mono);font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--signal);margin:36px 0 12px}
.service-group-label:first-child{margin-top:0}
.work-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);margin-top:20px}
.work-card{background:var(--surface);padding:0 0 22px;text-decoration:none;color:var(--text);display:block}
.work-card img{width:100%;height:170px;object-fit:cover;object-position:top;display:block;margin-bottom:16px}
.work-card.cover img{object-position:center 20%}
.work-card h3{margin:0 20px 6px}
.work-card p{margin:0 20px;color:var(--muted);font-size:15px}
.work-card:hover h3{color:var(--signal)}
.more-link{display:inline-block;margin-top:18px;color:var(--signal);text-decoration:none;font-weight:600}
.cycle-caption{font-family:var(--font-mono);font-size:12px;color:var(--muted);text-align:center;margin:10px auto 0;max-width:320px}
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);margin-top:20px;counter-reset:s}
.step{background:var(--surface);padding:24px 20px}
.step span{font-family:var(--font-mono);color:var(--signal);font-size:13px}
.step h3{margin:6px 0 8px}
.step p{margin:0;color:var(--muted);font-size:15px}
@media (max-width:800px){.cta-band{margin:40px 24px 0;padding:28px 22px}}

.hero-cycle{flex-direction:column;align-items:center}
.services.cols-3{grid-template-columns:repeat(3,1fr)}
@media (max-width:800px){.services.cols-3{grid-template-columns:1fr}}

/* SDG cards with descriptions */
.sdg-grid{grid-template-columns:repeat(3,1fr);text-align:left;gap:1px;background:var(--line);border:1px solid var(--line)}
.sdg-grid .sdg-card{display:flex;gap:18px;align-items:flex-start;border:0;padding:24px}
.sdg-grid .sdg-card img{width:84px;max-width:84px;flex:0 0 84px;margin:0}
.sdg-grid .sdg-card h3{margin:0 0 8px;font-size:17px}
.sdg-grid .sdg-card p{font-size:15px;color:var(--muted);line-height:1.55}
@media (max-width:1000px){.sdg-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.sdg-grid{grid-template-columns:1fr}}

/* partners: larger, more spread out */
.partners-strip{padding:56px 48px}
.partners-label{margin-bottom:36px}
.partners-row{max-width:1100px;justify-content:space-evenly;gap:56px 80px}
.partners-row img{height:104px}
@media (max-width:800px){.partners-strip{padding:40px 24px}.partners-row{gap:32px 40px}.partners-row img{height:76px}}
.partners-label{max-width:none}

/* INNOVATIONS: uniform panels */
.innovations-list{display:flex;flex-direction:column;gap:28px;padding-bottom:0}
.innovation-panel{display:grid;grid-template-columns:1.05fr 1fr;gap:40px;align-items:center;padding:32px;background:var(--surface);border:1px solid var(--line);border-top:2px solid var(--signal)}
.innovation-panel .innovation-media{background:var(--bg);border:1px solid var(--line);padding:14px}
.innovation-panel .innovation-media img{width:100%;height:auto;display:block;border:0}
.innovation-panel .innovation-media.cover{display:flex;justify-content:center;padding:28px;background:radial-gradient(circle at 50% 40%,#1d231d,var(--bg))}
.innovation-panel .innovation-media.cover img{width:auto;max-width:100%;max-height:420px;box-shadow:0 12px 40px rgba(0,0,0,.5)}
.innovation-index{font-family:var(--font-mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:0 0 14px}
.innovation-index span{color:var(--signal);margin-right:10px}
.innovation-panel .innovation-text h3{font-size:30px;margin:0 0 6px}
.innovation-panel .innovation-tagline{font-family:var(--font-mono);color:var(--signal);font-size:13px;margin:0 0 16px}
.modules-label{font-family:var(--font-mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:22px 0 10px}
.module-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.module-chips li{font-size:13px;padding:5px 10px;border:1px solid var(--line);color:var(--text);background:var(--bg)}
.innovations-list + .cta-band{margin-top:28px}
@media (max-width:900px){.innovation-panel{grid-template-columns:1fr;gap:24px;padding:20px}}

/* leadership: balanced 2x2 for four members */
@media (min-width:900px){.team-grid{grid-template-columns:repeat(2,1fr);gap:40px 48px}}
