:root {
  --ivory: #f7f5f0;
  --charcoal: #121212;
  --green-black: #24352c;
  --bronze: #7b6a58;
  --stone: #d9d4cc;
  --soft-stone: #ebe7df;
  --white: #fffdf8;
  --serif: Canela, "Editorial New", "Saol Display", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Suisse Intl", Inter, "Neue Haas Grotesk", Arial, sans-serif;
  --page-pad: clamp(20px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  letter-spacing: 0;
}

body::selection {
  background: var(--green-black);
  color: var(--ivory);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px var(--page-pad);
  color: var(--ivory);
  transition: background 400ms ease, color 400ms ease, border-color 400ms ease;
}

.site-header.is-scrolled {
  background: rgba(247, 245, 240, 0.92);
  border-bottom: 1px solid rgba(18, 18, 18, 0.1);
  color: var(--charcoal);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-grid;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 0.9;
  width: max-content;
}

.nav-links,
.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 38px);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.inquiry-link {
  justify-self: end;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  padding-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 120px var(--page-pad) clamp(72px, 10vw, 112px);
}

.hero-reel,
.hero-frame,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-frame {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.08);
  animation: cinematicReel 24s infinite;
  filter: saturate(0.66) contrast(1.08) brightness(0.92);
}

.frame-one {
  background-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/Sacramento%E2%80%93San_Joaquin_River_Delta_(1).jpg");
}

.frame-two {
  background-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/Aerial_view_of_Silicon_Valley_Clean_Water_treatment_plant,_September_2023.JPG");
  animation-delay: 8s;
}

.frame-three {
  background-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/Mississippi_River_Delta_(ASTER).jpg");
  animation-delay: 16s;
}

.hero-shade {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.78) 0%, rgba(18, 18, 18, 0.44) 42%, rgba(18, 18, 18, 0.12) 100%),
    linear-gradient(0deg, rgba(18, 18, 18, 0.58) 0%, rgba(18, 18, 18, 0.04) 62%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(850px, 100%);
}

.eyebrow,
.section-kicker,
.portfolio-meta,
.model-label {
  margin: 0;
  color: var(--bronze);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.hero .eyebrow {
  color: rgba(247, 245, 240, 0.76);
}

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

h1 {
  max-width: 900px;
  margin-top: 18px;
  font-size: clamp(58px, 9vw, 132px);
  line-height: 0.9;
}

h2 {
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.98;
}

h3 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.02;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 28px 0 38px;
  color: rgba(247, 245, 240, 0.82);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(247, 245, 240, 0.72);
  color: var(--ivory);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease;
}

.button-primary:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--charcoal);
}

.positioning-bar {
  padding: 28px var(--page-pad);
  border-bottom: 1px solid rgba(18, 18, 18, 0.12);
  background: var(--green-black);
  color: var(--ivory);
}

.positioning-bar dl {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin: 0;
}

.positioning-bar div {
  min-height: 112px;
  padding: 18px clamp(14px, 1.5vw, 22px);
  border-left: 1px solid rgba(247, 245, 240, 0.14);
}

.positioning-bar div:first-child {
  border-left: 0;
}

dt {
  color: rgba(247, 245, 240, 0.58);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

dd {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.06;
}

.section {
  padding: clamp(86px, 12vw, 164px) var(--page-pad);
}

.two-column,
.insights-heading,
.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: clamp(42px, 8vw, 118px);
  align-items: start;
  margin-top: 28px;
}

.section-copy p,
.insights-heading p,
.model-item p,
.portfolio-content p,
.team-card p,
.founder-copy p,
.focus-card p {
  margin: 0;
  color: rgba(18, 18, 18, 0.72);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.58;
}

.section-copy p + p {
  margin-top: 24px;
}

.thesis-section {
  background: var(--ivory);
}

.focus-section {
  background: var(--soft-stone);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  background: rgba(18, 18, 18, 0.16);
}

.focus-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 40px);
  background: var(--ivory);
  transition: background 260ms ease, color 260ms ease;
}

.focus-card:hover {
  background: var(--green-black);
  color: var(--ivory);
}

.focus-card:hover p,
.focus-card:hover span {
  color: rgba(247, 245, 240, 0.72);
}

.focus-card span {
  color: var(--bronze);
  font-family: var(--serif);
  font-size: 28px;
}

.focus-card h3 {
  margin-bottom: 22px;
}

.focus-card-wide {
  grid-column: span 2;
}

.platform-section {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--ivory);
}

.platform-section > *:not(.landscape-panel) {
  position: relative;
  z-index: 2;
}

.platform-section h2 {
  width: min(980px, 100%);
  margin-top: 26px;
}

.landscape-panel {
  position: absolute;
  z-index: 1;
  inset: auto var(--page-pad) 0 auto;
  width: min(42vw, 620px);
  height: 72%;
  background-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/Center-pivot_irrigation.jpg");
  background-position: center;
  background-size: cover;
  opacity: 0.22;
  filter: grayscale(1) contrast(1.05);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1120px, 100%);
  margin-top: clamp(52px, 8vw, 104px);
  background: rgba(247, 245, 240, 0.18);
}

.model-item {
  min-height: 270px;
  padding: clamp(24px, 3vw, 40px);
  background: rgba(18, 18, 18, 0.58);
}

.model-item p:not(.model-label) {
  margin-top: 84px;
  color: rgba(247, 245, 240, 0.76);
}

.platform-section .model-label {
  color: rgba(247, 245, 240, 0.58);
}

.insights-section {
  background: var(--ivory);
}

.insights-heading p {
  align-self: end;
}

.insight-list {
  margin-top: clamp(54px, 8vw, 92px);
  border-top: 1px solid rgba(18, 18, 18, 0.16);
}

.insight-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 104px;
  border-bottom: 1px solid rgba(18, 18, 18, 0.16);
}

.insight-row span {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 58px);
  line-height: 1;
}

.insight-row small {
  color: var(--bronze);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.portfolio-section {
  background: var(--green-black);
  color: var(--ivory);
}

.portfolio-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.75fr);
  min-height: 680px;
  margin-top: 30px;
  border-top: 1px solid rgba(247, 245, 240, 0.18);
}

.portfolio-image {
  min-height: 560px;
  background-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/Deer_Island_Waste_Water_Treatment_Plant_aerial.jpg");
  background-position: center;
  background-size: cover;
  filter: grayscale(0.35) saturate(0.7) contrast(1.02);
}

.portfolio-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 70px);
  background: rgba(18, 18, 18, 0.22);
}

.portfolio-content h2 {
  margin: 28px 0;
  font-size: clamp(38px, 5vw, 72px);
}

.portfolio-content p {
  color: rgba(247, 245, 240, 0.76);
}

.portfolio-content dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 46px 0 0;
  border-top: 1px solid rgba(247, 245, 240, 0.2);
}

.portfolio-content div {
  padding-top: 22px;
}

.portfolio-content dd {
  font-size: 22px;
}

.team-section {
  background: var(--soft-stone);
}

.team-layout h2 {
  font-size: clamp(38px, 5vw, 74px);
}

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

.team-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(36px, 6vw, 70px);
  background: rgba(18, 18, 18, 0.14);
}

.team-card {
  background: var(--ivory);
  padding: clamp(16px, 2vw, 24px);
}

.team-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 28%;
  margin-bottom: 26px;
  filter: grayscale(1) contrast(1.02) brightness(0.94);
}

.team-card:nth-child(2) img {
  object-position: center 36%;
}

.team-role {
  margin-bottom: 12px;
  color: var(--bronze);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.team-card h3 {
  margin-bottom: 0;
  font-size: clamp(25px, 2.4vw, 34px);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 36px var(--page-pad);
  background: var(--charcoal);
  color: var(--ivory);
}

.site-footer p {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
}

.media-page {
  padding-top: 80px;
}

.media-hero {
  min-height: 72svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ivory);
}

.media-hero h1 {
  width: min(1120px, 100%);
  margin-top: 26px;
  color: var(--charcoal);
  font-size: clamp(54px, 8vw, 116px);
}

.media-lede {
  width: min(760px, 100%);
  margin: 34px 0 0;
  color: rgba(18, 18, 18, 0.72);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.52;
}

.media-grid-section {
  padding-top: 0;
  background: var(--soft-stone);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(18, 18, 18, 0.14);
}

.media-panel {
  min-height: 340px;
  padding: clamp(28px, 4vw, 54px);
  background: var(--ivory);
}

.media-panel p,
.media-panel li {
  color: rgba(18, 18, 18, 0.72);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.58;
}

.media-panel p {
  margin: 0;
}

.media-panel ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 18px;
}

.media-panel a {
  border-bottom: 1px solid currentColor;
}

.media-label {
  margin-bottom: clamp(56px, 8vw, 98px) !important;
  color: var(--bronze) !important;
  font-size: 12px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms ease, transform 900ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes cinematicReel {
  0% {
    opacity: 0;
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  5%,
  30% {
    opacity: 1;
  }
  40% {
    opacity: 0;
    transform: scale(1.16) translate3d(-1.5%, -1%, 0);
  }
  100% {
    opacity: 0;
    transform: scale(1.16) translate3d(-1.5%, -1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .positioning-bar dl,
  .focus-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .positioning-bar div:nth-child(odd) {
    border-left: 0;
  }

  .two-column,
  .insights-heading,
  .team-layout,
  .portfolio-feature,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .landscape-panel {
    width: 76vw;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .brand-mark {
    font-size: 18px;
  }

  .inquiry-link {
    font-size: 11px;
  }

  .hero {
    min-height: 92svh;
    padding-top: 96px;
  }

  h1 {
    font-size: clamp(54px, 16vw, 76px);
  }

  .positioning-bar dl,
  .focus-grid,
  .model-grid,
  .team-grid,
  .portfolio-content dl,
  .media-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .media-page {
    padding-top: 70px;
  }

  .media-hero {
    min-height: auto;
  }

  .media-panel {
    min-height: auto;
  }

  .positioning-bar div {
    min-height: 96px;
    border-left: 0;
    border-top: 1px solid rgba(247, 245, 240, 0.14);
  }

  .positioning-bar div:first-child {
    border-top: 0;
  }

  .focus-card,
  .model-item {
    min-height: 260px;
  }

  .focus-card-wide {
    grid-column: span 1;
  }

  .model-item p:not(.model-label) {
    margin-top: 56px;
  }

  .insight-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }

  .portfolio-feature {
    min-height: 0;
  }

  .portfolio-image {
    min-height: 360px;
  }

  .site-footer nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
