:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #5f6863;
  --paper: #f8f6f1;
  --surface: #ffffff;
  --line: #d9ded7;
  --accent: #0f6b5a;
  --accent-strong: #09473d;
  --warm: #d89558;
  --blue: #2b627d;
  --shadow: 0 18px 55px rgba(25, 35, 31, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 246, 241, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23, 32, 28, 0.08);
}

.nav,
.site-footer,
.section,
.page-hero {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(15, 107, 90, 0.1);
}

.hero {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  min-height: min(760px, calc(86vh - 74px));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2.75rem, 5.5vw, 5rem) 0;
}

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

.eyebrow,
.status {
  margin: 0 0 0.8rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1.35rem;
  font-size: clamp(2.5rem, 5.1vw, 4.45rem);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.2;
}

.hero-text,
.page-hero p,
.rich-text,
.feature p,
.portfolio-band p,
.portfolio-app span,
.timeline p,
.app-card p,
.feature-list,
.small-note,
.contact-card p,
.legal-copy p,
.site-footer p {
  color: var(--muted);
}

.hero-text {
  max-width: 56ch;
  margin-bottom: 1.8rem;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.78rem 1rem;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

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

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--accent);
}

.hero-media {
  position: relative;
  min-height: 460px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 107, 90, 0.2), rgba(216, 149, 88, 0.05));
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.band {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - 1120px) / 2));
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.feature-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature,
.contact-card,
.app-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature {
  padding: 1.35rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.rich-text p:last-child,
.feature p:last-child,
.contact-card p:last-child,
.legal-copy p:last-child,
.site-footer p:last-child {
  margin-bottom: 0;
}

.proof,
.details-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0;
}

.proof-item {
  border-top: 3px solid var(--accent);
  padding-top: 1rem;
}

.proof-item span,
.timeline-item span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.proof-item strong {
  overflow-wrap: anywhere;
  font-size: 1.25rem;
}

.details-list {
  margin: 0;
}

.details-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 1rem;
}

.details-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.details-list dd {
  margin: 0.25rem 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.details-list a {
  color: var(--accent-strong);
}

.page {
  min-height: 64vh;
}

.page-hero {
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.page-hero h1 {
  max-width: 880px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.page-hero p {
  max-width: 720px;
  font-size: 1.1rem;
}

.value-list {
  display: grid;
  gap: 1rem;
}

.value-list article {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.app-list {
  padding-top: 0;
}

.app-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: 2rem;
  padding: clamp(1.4rem, 4vw, 2rem);
}

.app-card > div {
  min-width: 0;
}

.app-card-featured {
  border-color: rgba(15, 107, 90, 0.3);
  box-shadow: var(--shadow);
}

.app-summary {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(23, 32, 28, 0.16);
}

.app-summary h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.app-tagline {
  margin-bottom: 0;
  font-weight: 800;
}

.app-detail {
  display: grid;
  gap: 1rem;
}

.feature-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  font-weight: 750;
}

.feature-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.small-note {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.portfolio-band {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-inline: max(20px, calc((100vw - 1120px) / 2));
  background: #15382f;
  color: #fff;
}

.portfolio-band .eyebrow,
.portfolio-band p {
  color: rgba(255, 255, 255, 0.78);
}

.portfolio-band h2 {
  max-width: 760px;
}

.portfolio-copy p:last-child {
  max-width: 720px;
  margin-bottom: 0;
}

.portfolio-app {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.portfolio-app strong,
.portfolio-app span {
  display: block;
}

.portfolio-app strong {
  font-size: 1.35rem;
}

.portfolio-app span {
  margin-top: 0.2rem;
}

.portfolio-app .button {
  grid-column: 1 / -1;
  width: fit-content;
}

.contact-grid {
  padding-top: 0;
}

.contact-card {
  padding: 1.4rem;
}

.contact-card a,
.legal-copy a {
  color: var(--accent-strong);
  font-weight: 800;
}

.legal-copy {
  max-width: 820px;
  padding-top: 0;
}

.legal-copy h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1rem;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

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

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }

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

  .hero,
  .split,
  .app-card,
  .portfolio-band,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .feature-grid,
  .contact-grid,
  .proof,
  .details-list {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .hero-media img {
    min-height: 320px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .portfolio-app {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .site-footer,
  .footer-links {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .nav,
  .site-footer,
  .section,
  .page-hero,
  .hero {
    width: min(100% - 28px, 1120px);
  }

  .band {
    padding-inline: 14px;
  }

  .nav-links a {
    padding-inline: 0.55rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  h1,
  .page-hero h1 {
    font-size: 2.08rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 1.8rem;
  }

  .app-summary,
  .portfolio-app {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .app-icon {
    width: 72px;
    height: 72px;
  }

  .portfolio-app .button {
    width: 100%;
  }
}
