:root {
  --forest: #143e32;
  --fern: #236b4f;
  --leaf: #bfe4c2;
  --citrus: #dceab5;
  --mist: #f2f7f3;
  --slate: #52685f;
  --page-width: 1240px;
  --body-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  background: var(--mist);
}

body {
  margin: 0;
  color: var(--forest);
  background: var(--mist);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
}

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

figure,
p,
h1,
h2,
h3,
dl {
  margin-top: 0;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--fern);
  outline-offset: 5px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  color: var(--mist);
  background: var(--forest);
  border-radius: 5px;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-width {
  width: min(100% - 3rem, var(--page-width));
  margin-inline: auto;
}

.site-header {
  background: var(--mist);
}

.header-inner,
.footer-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-block: 0.8rem;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--forest);
  font-family: var(--display-font);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  mix-blend-mode: multiply;
}

/* The same home control is kept locally so each project remains independent. */
.home-button {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border: 1px solid #cbd3db;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #253244;
  font: 650 0.875rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.home-button span[aria-hidden] {
  font-size: 1.2rem;
  line-height: 1;
}

.home-button:hover {
  background: #e6edf4;
  border-color: #8293a5;
  color: #182638;
}

.home-button:focus-visible {
  outline: 3px solid #547cb4;
  outline-offset: 4px;
}

.image-link {
  display: block;
  border-radius: inherit;
  cursor: zoom-in;
}

.image-link:focus-visible {
  outline: 3px solid #547cb4;
  outline-offset: -4px;
}

.capture-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  font: 650 0.8rem/1.4 system-ui, sans-serif;
  text-underline-offset: 0.25em;
  white-space: nowrap;
}

.hero {
  overflow: hidden;
  color: var(--mist);
  background: var(--forest);
}

.hero-layout {
  min-height: min(82svh, 880px);
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.hero-copy {
  max-width: 560px;
}

.project-type,
.section-label {
  margin-bottom: 1rem;
  color: var(--leaf);
  font-size: 0.9rem;
  font-weight: 650;
}

.hero h1 {
  margin-bottom: 0.65rem;
  font-family: var(--display-font);
  font-size: clamp(3.8rem, 7.1vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-wrap: balance;
}

.hero-title {
  max-width: 24rem;
  margin-bottom: 1.2rem;
  color: var(--citrus);
  font-family: var(--display-font);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.hero-description {
  max-width: 34rem;
  margin-bottom: 1.8rem;
  color: rgba(241, 246, 242, 0.78);
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.button--bright {
  color: var(--forest);
  background: var(--citrus);
}

.button--bright:hover {
  background: var(--leaf);
}

.live-link {
  color: var(--mist);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.live-link span {
  margin-left: 0.25rem;
  color: var(--leaf);
}

.hero-preview {
  min-width: 0;
  margin: 0;
}

.preview-window {
  overflow: hidden;
  border: 1px solid rgba(216, 239, 115, 0.45);
  border-radius: 13px;
  background: #090e0c;
}

.hero-preview img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-preview figcaption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.8rem;
  color: rgba(241, 246, 242, 0.68);
  font-size: 0.78rem;
}

.capture-mark {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--citrus);
}

.feature-section {
  padding-block: clamp(5rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.section-intro {
  max-width: 470px;
}

.section-label {
  margin-bottom: 0.8rem;
  color: var(--fern);
}

.section-intro h2,
.screens-heading h2,
.build-copy h2,
.stack-heading h2 {
  margin-bottom: 1rem;
  font-family: var(--display-font);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.section-intro > p:last-child,
.screens-heading > p {
  max-width: 37rem;
  margin-bottom: 0;
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.7;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  margin-bottom: 0;
}

.feature-item {
  padding-block: 1.1rem 1.25rem;
  border-top: 1px solid rgba(11, 51, 43, 0.2);
}

.feature-item dt {
  margin-bottom: 0.4rem;
  color: var(--forest);
  font-family: var(--display-font);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.feature-item dd {
  max-width: 21rem;
  margin: 0;
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.6;
}

.screens-section {
  padding-block: clamp(5rem, 9vw, 8rem);
  color: var(--forest);
  background: #e5eee7;
}

.screens-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.screens-heading > div {
  max-width: 42rem;
}

.screens-heading h2 {
  margin-bottom: 0;
}

.screens-heading > p {
  max-width: 22rem;
  margin-bottom: 0.15rem;
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.25rem, 2.8vw, 2.5rem);
}

.screen {
  min-width: 0;
  margin: 0;
}

.screen--overview {
  grid-column: 1 / -1;
}

.screen--history {
  grid-column: span 6;
}

.screen--proof {
  grid-column: span 6;
}

.screen-window {
  overflow: hidden;
  border: 1px solid rgba(11, 51, 43, 0.18);
  border-radius: 12px;
  background: #111827;
  box-shadow: 0 14px 36px rgb(20 62 50 / 10%);
}

.screen img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.screen figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
  padding-top: 0.7rem;
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 650;
}

.screen figcaption span:nth-child(2) {
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 500;
}

.screen figcaption a {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 650;
  text-underline-offset: 0.25em;
}

.build-section {
  padding-block: clamp(5rem, 9vw, 8rem);
  color: var(--mist);
  background: var(--forest);
}

.build-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.build-copy {
  max-width: 470px;
}

.project-timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 1.8rem;
  list-style: none;
}

.project-timeline::before {
  position: absolute;
  top: 0.4rem;
  bottom: 0.3rem;
  left: 0.3rem;
  width: 1px;
  background: rgba(134, 205, 153, 0.5);
  content: "";
}

.project-timeline li {
  position: relative;
  padding-bottom: 1rem;
}

.project-timeline li::before {
  position: absolute;
  top: 0.33rem;
  left: -1.8rem;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--citrus);
  border-radius: 50%;
  background: var(--forest);
  content: "";
}

.timeline-date {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  color: var(--citrus);
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.project-timeline h3 {
  margin-bottom: 0.45rem;
  font-family: var(--display-font);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.project-timeline li > p:last-child {
  margin-bottom: 0;
  color: rgba(241, 246, 242, 0.72);
  line-height: 1.6;
}

.stack-section {
  padding-block: clamp(4rem, 7vw, 6rem);
}

.stack-heading h2 {
  margin-bottom: 1.6rem;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(11, 51, 43, 0.22);
  border-bottom: 1px solid rgba(11, 51, 43, 0.22);
  list-style: none;
}

.tool-list li {
  padding: 0.9rem 1.3rem 0.9rem 0;
  margin-right: 1.3rem;
  color: var(--forest);
  font-size: 0.92rem;
  font-weight: 650;
}

.site-footer {
  border-top: 1px solid rgba(11, 51, 43, 0.16);
}

.footer-inner {
  min-height: 78px;
}

.footer-inner p {
  margin: 0;
  color: var(--slate);
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .hero-layout {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

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

  .feature-section,
  .build-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .screen--overview {
    grid-column: 1 / -1;
  }

}

@media (max-width: 700px) {
  .page-width {
    width: min(100% - 2rem, var(--page-width));
  }

  .header-inner,
  .footer-inner {
    min-height: 70px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand img {
    width: 2.1rem;
    height: 2.1rem;
  }

  .hero-layout {
    padding-block: 4.2rem 4.7rem;
    grid-template-columns: 1fr;
    gap: 2.7rem;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 16vw, 6rem);
  }

  .hero-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .hero-preview {
    width: min(100%, 620px);
    justify-self: center;
  }

  .feature-section,
  .screens-section,
  .build-section {
    padding-block: 4.5rem;
  }

  .feature-section {
    gap: 2rem;
  }

  .screens-heading {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .screen--overview,
  .screen--history,
  .screen--proof {
    grid-column: 1 / -1;
  }

  .tool-list li {
    padding-block: 0.75rem;
    margin-right: 1rem;
  }
}

@media (max-width: 480px) {
  .page-width {
    width: min(100% - 1.5rem, var(--page-width));
  }

  .header-inner {
    gap: 0.5rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    padding-block: 1rem;
  }
}
