:root {
  --background: #f7f8f5;
  --surface: #ffffff;

  --text: #111311;
  --muted: #6e746a;

  --border: #dde3d7;

  --accent: #79c900;
  --accent-light: #a4dc49;
  --accent-dark: #578f00;
  --accent-soft: #eef8dc;

  --black: #10120f;

  --max-width: 1180px;

  --radius-small: 12px;
  --radius: 20px;
  --radius-large: 30px;
}


/* --------------------------------------------------
   Base
-------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  background: var(--background);
  color: var(--text);

  line-height: 1.6;

  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}


/* --------------------------------------------------
   Header
-------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;

  background: rgba(247, 248, 245, 0.88);

  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  border-bottom:
    1px solid rgba(221, 227, 215, 0.75);
}

.nav {
  height: 74px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;

  text-decoration: none;

  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.brand-logo {
  width: 38px;
  height: 38px;

  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  text-decoration: none;

  color: var(--muted);

  font-size: 0.94rem;
  font-weight: 550;

  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--text);
}


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

.hero {
  position: relative;

  overflow: hidden;

  padding: 135px 0 150px;

  background:
    radial-gradient(
      circle at 82% 28%,
      rgba(121, 201, 0, 0.13),
      transparent 35%
    );
}

.hero-content {
  position: relative;
  z-index: 5;
}

.eyebrow {
  margin: 0 0 20px;

  color: var(--accent-dark);

  font-size: 0.76rem;
  font-weight: 800;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1020px;

  margin: 0;

  font-size: clamp(4rem, 8.7vw, 8.1rem);

  line-height: 0.91;

  letter-spacing: -0.073em;

  font-weight: 780;
}

.hero-text {
  max-width: 650px;

  margin: 40px 0 0;

  color: var(--muted);

  font-size: clamp(1.18rem, 2vw, 1.55rem);

  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-top: 42px;
}


/* --------------------------------------------------
   Decorative Broolz bubbles
-------------------------------------------------- */

.bubble {
  position: absolute;

  border-radius: 50%;

  background:
    linear-gradient(
      to bottom,
      var(--accent-light) 0%,
      var(--accent-light) 48%,
      var(--accent) 48%,
      var(--accent) 100%
    );

  opacity: 0.23;

  pointer-events: none;
}

.bubble-1 {
  width: 280px;
  height: 280px;

  right: -65px;
  top: 100px;
}

.bubble-2 {
  width: 145px;
  height: 145px;

  right: 290px;
  top: 50px;
}

.bubble-3 {
  width: 72px;
  height: 72px;

  right: 195px;
  top: 300px;
}

.bubble-4 {
  width: 105px;
  height: 105px;

  right: 420px;
  top: 340px;
}


/* --------------------------------------------------
   Buttons
-------------------------------------------------- */

.button {
  min-height: 51px;

  padding: 0 23px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 100px;

  text-decoration: none;

  font-weight: 700;

  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #ffffff;

  background: var(--black);

  border: 1px solid var(--black);
}

.button.primary:hover {
  background: var(--accent-dark);

  border-color: var(--accent-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.9);

  border: 1px solid var(--border);
}

.button.secondary:hover {
  border-color: #c7cec1;
}


/* --------------------------------------------------
   Sections
-------------------------------------------------- */

.section {
  padding: 110px 0;
}

.section-heading {
  margin-bottom: 48px;
}

.section-heading h2,
.about-section h2,
.contact-section h2 {
  margin: 0;

  font-size: clamp(2.8rem, 5vw, 4.7rem);

  line-height: 0.98;

  letter-spacing: -0.06em;
}


/* --------------------------------------------------
   Projects
-------------------------------------------------- */

.projects-section {
  background: var(--background);
}

.project-grid {
  display: grid;

grid-template-columns:
    repeat(
      auto-fit,
      minmax(280px, 1fr)
    );

  gap: 18px;
}

.project-card {
  min-height: 340px;

  padding: 30px;

  display: flex;
  flex-direction: column;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: var(--radius);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);

  box-shadow:
    0 20px 45px rgba(30, 40, 20, 0.06);
}

/* --------------------------------------------------
   Featured projects
-------------------------------------------------- */

.featured-project-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(300px, 1fr));

  gap: 18px;
}


.project-card.primary-project {
  color: white;

  background: var(--black);

  border-color: var(--black);
}


.project-card.primary-project .project-type {
  color: var(--accent-light);
}


.project-card.primary-project .status {
  color: var(--accent-light);

  border-color:
    rgba(164, 220, 73, 0.4);
}


.project-card.primary-project p {
  color:
    rgba(255, 255, 255, 0.68);
}


.project-card.primary-project .project-link {
  color: var(--accent-light);
}


/* --------------------------------------------------
   More projects
-------------------------------------------------- */

.more-projects {
  margin-top: 80px;
}


.more-projects-heading {
  margin-bottom: 15px;
}


.more-projects-heading .eyebrow {
  margin-bottom: 0;
}


.project-list {
  border-top: 1px solid var(--border);
}


.project-row {
  position: relative;

  display: grid;

  grid-template-columns:
    130px
    minmax(150px, 0.7fr)
    minmax(250px, 1.4fr)
    40px;

  gap: 25px;

  align-items: center;

  min-height: 105px;

  padding: 22px 10px;

  color: inherit;

  text-decoration: none;

  border-bottom: 1px solid var(--border);

  transition:
    padding-left 0.15s ease,
    background 0.15s ease;
}


a.project-row:hover {
  padding-left: 18px;

  background:
    rgba(255, 255, 255, 0.55);
}


.project-row-meta {
  display: flex;
  flex-direction: column;

  gap: 4px;
}


.project-row-type {
  color: var(--accent-dark);

  font-size: 0.7rem;

  font-weight: 800;

  letter-spacing: 0.09em;

  text-transform: uppercase;
}


.project-row-status {
  color: var(--muted);

  font-size: 0.72rem;
}


.project-row h3 {
  margin: 0;

  font-size: 1.35rem;

  letter-spacing: -0.035em;
}


.project-row p {
  margin: 0;

  color: var(--muted);

  font-size: 0.95rem;
}


.project-row-arrow {
  justify-self: end;

  color: var(--accent-dark);

  font-size: 1.4rem;

  transition: transform 0.15s ease;
}


a.project-row:hover .project-row-arrow {
  transform: translateX(5px);
}

@media (max-width: 620px) {

  .featured-project-grid {
    grid-template-columns: 1fr;
  }

  .more-projects {
    margin-top: 60px;
  }

  .project-row {
    grid-template-columns:
      1fr
      30px;

    gap: 5px 15px;

    padding:
      22px
      5px;
  }

  .project-row-meta {
    grid-column: 1;
  }

  .project-row h3 {
    grid-column: 1;

    margin-top: 5px;
  }

  .project-row p {
    grid-column: 1;

    margin-top: 4px;
  }

  .project-row-arrow {
    grid-column: 2;
    grid-row: 1 / 4;

    align-self: center;
  }

}


.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-type,
.status {
  font-size: 0.72rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.1em;
}

.project-card.featured .project-type {
  color: var(--accent-light);
}

.status {
  padding: 5px 11px;

  color: var(--accent-light);

  border: 1px solid rgba(164, 220, 73, 0.4);

  border-radius: 100px;
}

.project-content {
  margin-top: 62px;
}

.project-card h3 {
  margin: 0 0 16px;

  font-size: 2rem;

  line-height: 1;

  letter-spacing: -0.045em;
}

.project-card p {
  margin: 0;

  max-width: 420px;

  color: var(--muted);
}

.project-card.featured p {
  color: rgba(255, 255, 255, 0.68);
}

.project-link {
  margin-top: auto;

  padding-top: 38px;

  font-weight: 700;

  text-decoration: none;
}

.project-card.featured .project-link {
  color: var(--accent-light);
}

.project-link span {
  margin-left: 5px;

  transition: margin-left 0.15s ease;
}

.project-link:hover span {
  margin-left: 9px;
}

.project-link.muted {
  color: var(--muted);
}


/* --------------------------------------------------
   About
-------------------------------------------------- */

.about-section {
  position: relative;

  overflow: hidden;

  color: white;

  background: var(--black);
}

.about-section::after {
  content: "";

  position: absolute;

  width: 480px;
  height: 480px;

  right: -180px;
  bottom: -220px;

  border-radius: 50%;

  background: var(--accent);

  opacity: 0.08;
}

.about-grid {
  position: relative;

  z-index: 2;

  display: grid;

  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);

  gap: 90px;
}

.about-section .eyebrow {
  color: var(--accent-light);
}

.about-copy {
  max-width: 660px;
}

.about-copy p {
  color: #b7bcb5;

  font-size: 1.1rem;
}

.about-copy .large {
  margin-top: 0;

  color: white;

  font-size: clamp(1.4rem, 2vw, 1.8rem);

  line-height: 1.5;
}


/* --------------------------------------------------
   Principles
-------------------------------------------------- */

.principle-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);
}

.principle {
  padding: 31px 35px 30px 0;

  border-top: 1px solid var(--border);
}

.principle + .principle {
  padding-left: 35px;

  border-left: 1px solid var(--border);
}

.number {
  color: var(--accent-dark);

  font-size: 0.78rem;

  font-weight: 800;

  letter-spacing: 0.08em;
}

.principle h3 {
  margin: 48px 0 13px;

  font-size: 1.55rem;

  letter-spacing: -0.03em;
}

.principle p {
  margin: 0;

  color: var(--muted);
}


/* --------------------------------------------------
   Contact
-------------------------------------------------- */

.contact-section {
  padding-top: 45px;
}

.contact-box {
  padding: 62px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 45px;

  background: var(--accent-soft);

  border-radius: var(--radius-large);
}

.contact-copy {
  max-width: 680px;
}

.contact-copy p:not(.eyebrow) {
  color: var(--muted);

  font-size: 1.05rem;
}


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

.site-footer {
  padding: 44px 0;
}

.footer-content {
  display: grid;

  grid-template-columns: 1fr auto 1fr;

  align-items: center;

  color: var(--muted);

  font-size: 0.9rem;
}

.footer-content > p {
  margin: 0;
}

.footer-brand {
  display: flex;
  align-items: center;

  gap: 8px;

  color: var(--text);

  font-weight: 750;
}

.footer-brand img {
  width: 27px;
  height: 27px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;

  gap: 22px;
}

.footer-links a {
  text-decoration: none;
}

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


/* --------------------------------------------------
   Tablet
-------------------------------------------------- */

@media (max-width: 900px) {

  .hero {
    padding:
      100px
      0
      115px;
  }


  .project-card {
    min-height: 290px;
  }

  .about-grid {
    grid-template-columns: 1fr;

    gap: 50px;
  }

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

  .principle + .principle {
    padding-left: 0;

    border-left: 0;
  }

  .contact-box {
    flex-direction: column;

    align-items: flex-start;
  }

}


/* --------------------------------------------------
   Mobile
-------------------------------------------------- */

@media (max-width: 620px) {

  .container {
    width: min(
      calc(100% - 28px),
      var(--max-width)
    );
  }

  .nav {
    height: 66px;
  }

  .brand {
    font-size: 1.25rem;
  }

  .brand-logo {
    width: 33px;
    height: 33px;
  }

  .main-nav {
    gap: 17px;
  }

  .main-nav a {
    font-size: 0.88rem;
  }

  .main-nav a:first-child {
    display: none;
  }

  .hero {
    padding:
      82px
      0
      95px;
  }

  .hero h1 {
    font-size: clamp(
      3.45rem,
      15vw,
      5.5rem
    );
  }

  .hero-text {
    font-size: 1.12rem;
  }

  .bubble-1 {
    width: 190px;
    height: 190px;

    right: -90px;
  }

  .bubble-2 {
    width: 90px;
    height: 90px;

    right: 95px;
  }

  .bubble-3,
  .bubble-4 {
    display: none;
  }

  .section {
    padding:
      78px
      0;
  }

  .project-card {
    padding: 26px;
  }

  .contact-box {
    padding: 37px 30px;
  }

  .footer-content {
    grid-template-columns: 1fr;

    gap: 17px;
  }

  .footer-links {
    justify-content: flex-start;
  }

}
