/* 6C Group — holding page */

:root {
  --bg: #f6f4ef;
  --ink: #111111;
  --muted: #5c5c56;
  --line: rgba(17, 17, 17, 0.12);
  --warm: #e8dfd0;
  --sage: #d4ddd0;
  --amber: #c4a574;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, serif;
  --page-pad: 56px;
  --photo-strip-gap: 6px;
  --photo-strip-cell-height: calc((100vw - 2 * var(--photo-strip-gap)) / 4);
}

@media (max-width: 720px) {
  :root {
    --page-pad: 24px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  max-width: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

main {
  overflow-x: clip;
  max-width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  margin: 0;
}

p {
  margin: 0;
}

/* ---- Nav ---- */

.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px 24px;
  padding: 16px var(--page-pad);
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(
    135deg,
    rgba(232, 223, 208, 0.95) 0%,
    rgba(246, 244, 239, 0.92) 60%,
    rgba(246, 244, 239, 0.88) 100%
  );
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__toggle {
  display: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 14px;
  cursor: pointer;
}

.nav__toggle:hover {
  color: var(--muted);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 18px;
}

.nav__end {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 12px 20px;
  margin-left: auto;
  position: relative;
}

.nav__links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__email {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
}

.nav__links .nav__email {
  margin-left: 6px;
}

.nav__cell {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
}

.nav__wordmark {
  height: 18px;
  width: auto;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  padding: 48px var(--page-pad) 96px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(
    160deg,
    var(--bg) 0%,
    rgba(212, 221, 208, 0.15) 100%
  );
}

.hero__lattice {
  position: absolute;
  inset: -10% -8% -20% -8%;
  pointer-events: none;
  /* Clear the lattice across the text column (ends ~49% of this box), then
     ramp to full strength in the empty right half. */
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 48%,
    #000 68%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 48%,
    #000 68%
  );
}

.hero__lattice-svg {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

h1 {
  font-size: clamp(36px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero__lede {
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34em;
}

/* ---- Photos ---- */

.bleed-photo {
  margin: 0;
  overflow: hidden;
}

.bleed-photo img {
  width: 100%;
  height: min(560px, 62vh);
  object-fit: cover;
}

/* ---- Photo divider ---- */

.photo-divider {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--photo-strip-gap);
  padding: 0;
  margin: 0;
}

.photo-divider img {
  width: 100%;
  height: var(--photo-strip-cell-height);
  object-fit: cover;
}

/* ---- What we do ---- */

.section {
  padding: 96px var(--page-pad) 64px;
}

.what h2,
.mission > h2,
.sdg > h2,
.place__copy > h2,
.team__copy > h2:not(.team__cert),
.operators__intro > h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.16;
  max-width: 18em;
  margin-bottom: 28px;
}

.what__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
}

.what__body p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---- Mission ---- */

.mission__body {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mission__body p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---- SDG ---- */

.sdg {
  border-top: 1px solid var(--line);
}

.sdg__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.sdg-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sdg-card img {
  width: 80px;
  height: auto;
  margin-bottom: 12px;
}

.sdg-card p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 16em;
  margin: 0;
  text-align: center;
}

/* ---- Slides (process + pillars) ---- */

.slides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.slide {
  padding: 56px var(--page-pad);
}

.slide__hex {
  display: block;
  width: 18px;
  height: 20px;
  margin-bottom: 28px;
  background: var(--ink);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.slide h2 {
  font-size: 26px;
  margin-bottom: 14px;
}

.slide p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 32em;
}

/* ---- Operators ---- */

.operators {
  border-top: 1px solid var(--line);
}

.operators__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.operators__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 48px var(--page-pad);
  max-width: none;
}

.operators__intro p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 0;
  max-width: 22em;
}

.operators__intro p + p {
  margin-top: 20px;
}

.operators__stack .slide {
  flex: 1;
  border: none;
  padding: 28px 28px;
}

.operators__stack .slide__hex {
  width: 14px;
  height: 16px;
  margin-bottom: 12px;
}

.operators__stack .slide h2,
.team__cert {
  font-size: 22px;
  margin-bottom: 10px;
}

.operators__stack .slide p {
  font-size: 18px;
  line-height: 1.6;
  max-width: none;
}

.operators__stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---- Place ---- */

.place__layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  border-top: 1px solid var(--line);
}

.place__copy {
  padding: 64px var(--page-pad);
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.place__photos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 32px var(--page-pad);
}

.place__photos figure {
  margin: 0;
  width: min(160px, 26vw);
  aspect-ratio: 1 / 1.1;
  overflow: hidden;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.place__photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place__photos figure:nth-child(1) img {
  object-position: 55% 25%;
}

.place__photos figure:nth-child(2) img {
  object-position: center 40%;
}

.place__photos figure:nth-child(3) img {
  object-position: 35% 30%;
}

.place__copy p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34em;
}

/* ---- Team ---- */

.team {
  padding: 48px var(--page-pad) 96px;
  border-top: 1px solid var(--line);
}

.team__copy {
  padding: 0;
  max-width: 760px;
}

.team__copy p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34em;
}

.team__cert {
  margin-top: 28px;
  margin-bottom: 0;
  max-width: none;
}

@media (max-width: 860px) {
  .hero {
    min-height: 0;
    padding: 24px var(--page-pad) 32px;
    align-items: flex-start;
  }

  .hero__lattice {
    opacity: 0.55;
    inset: -8% -12% -8% -12%;
    mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 50%,
      rgba(0, 0, 0, 0.35) 70%,
      rgba(0, 0, 0, 0.5) 100%
    );
    -webkit-mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 50%,
      rgba(0, 0, 0, 0.35) 70%,
      rgba(0, 0, 0, 0.5) 100%
    );
  }

  .hero__lattice-svg {
    left: 0;
    right: auto;
    width: 100%;
    height: 100%;
  }

  .bleed-photo img {
    height: min(220px, 42vw);
    object-position: center 75%;
  }

  .section {
    padding: 64px var(--page-pad) 40px;
  }

  .sdg__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 16px;
    max-width: none;
    margin: 0 auto;
  }

  .sdg-card img {
    width: 64px;
  }

  .operators__layout {
    grid-template-columns: 1fr;
  }

  .operators__intro {
    padding: 48px var(--page-pad) 24px;
  }

  .operators__stack .slide {
    padding: 24px var(--page-pad);
  }

  .nav {
    gap: 8px 12px;
    padding: 12px var(--page-pad);
  }

  .nav__brand {
    min-width: 0;
    flex-shrink: 1;
  }

  .nav__wordmark {
    max-width: 88px;
    height: auto;
  }

  .place__layout {
    grid-template-columns: minmax(0, 1fr) minmax(72px, 30vw);
    align-items: center;
  }

  .place__copy {
    padding: 40px 12px 40px var(--page-pad);
  }

  .place__photos {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px var(--page-pad) 32px 8px;
  }

  .place__photos figure {
    width: min(96px, 26vw);
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: auto;
    min-width: 200px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(246, 244, 239, 0.98);
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
  }

  .nav__toggle {
    order: 1;
  }

  .nav__links {
    order: 2;
  }

  .nav__links .nav__email {
    margin-left: 0;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    width: 100%;
    max-width: none;
    overflow: visible;
    text-overflow: unset;
  }

  .nav--open .nav__links {
    display: flex;
  }

  .nav__end {
    min-width: 0;
    width: auto;
    flex-wrap: nowrap;
  }

  .slides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slides .slide {
    padding: 32px 20px;
  }

  .slides .slide h2 {
    font-size: 22px;
  }

  .slides .slide p {
    font-size: 15px;
  }

  .operators__intro {
    align-items: flex-start;
    text-align: left;
  }

  .operators__intro p {
    font-size: 15px;
  }

  .operators__stack .slide h2,
  .team__cert {
    font-size: 20px;
  }

  .team {
    padding: 48px var(--page-pad) 72px;
  }
}

@media (max-width: 480px) {
  .sdg__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sdg-card img {
    width: 56px;
  }
}

/* ---- Footer ---- */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px var(--page-pad);
  border-top: 1px solid var(--line);
  background: linear-gradient(
    135deg,
    rgba(246, 244, 239, 1) 0%,
    rgba(212, 221, 208, 0.35) 50%,
    rgba(196, 165, 116, 0.12) 100%
  );
}

.footer__wordmark {
  height: 16px;
  width: auto;
}

.footer p {
  font-size: 13px;
  color: var(--muted);
}

.footer a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer a:hover {
  color: var(--muted);
}

@media (max-width: 640px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
