:root {
  --ink: #10211d;
  --forest: #21443e;
  --forest-deep: #17302c;
  --leaf: #81bf62;
  --sage: #c9d18b;
  --mist: #e7f5ea;
  --sky: #d9ebff;
  --paper: #fbf8f2;
  --card: rgba(255, 255, 255, 0.78);
  --muted: #5c716b;
  --line: rgba(16, 33, 29, 0.12);
  --shadow: 0 24px 60px rgba(16, 33, 29, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(129, 191, 98, 0.16), transparent 28rem),
    radial-gradient(circle at top right, rgba(95, 136, 212, 0.12), transparent 25rem),
    linear-gradient(180deg, #fffdf9 0%, #f8f3eb 50%, #f5faf6 100%);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--forest);
  color: #fff;
  padding: .75rem 1rem;
  border-radius: 999px;
  z-index: 999;
}
.skip-link:focus { left: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(251, 248, 242, 0.86);
  border-bottom: 1px solid rgba(16, 33, 29, 0.08);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(33, 68, 62, 0.14);
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text strong {
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand-text span {
  font-size: .78rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: .18em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-menu a {
  padding: .72rem .95rem;
  border-radius: 999px;
  font-size: .96rem;
  font-weight: 600;
  color: rgba(16, 33, 29, 0.82);
}

.nav-menu a:hover {
  background: rgba(33, 68, 62, 0.08);
}

.nav-cta {
  background: var(--forest);
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--forest-deep) !important;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  color: var(--ink);
  border-radius: 999px;
  padding: .72rem 1rem;
  font-weight: 700;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem;
}

.hero {
  padding-top: 4.5rem;
  padding-bottom: 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 2.25rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--forest);
  font-weight: 800;
}

h1, h2, h3 {
  font-family: Manrope, Inter, sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  max-width: 10.5ch;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.5rem);
}

h3 {
  font-size: 1.35rem;
}

p { margin: 0; }

.hero-subhead {
  font-size: 1.14rem;
  color: #415651;
  margin-top: 1.3rem;
  max-width: 40rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.5rem;
}

.hero-points span,
.tag-row span,
.question-chips span,
.market-pill {
  padding: .58rem .82rem;
  background: rgba(255, 255, 255, .76);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  font-weight: 700;
  font-size: .9rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  align-items: center;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.2rem;
  padding: .95rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--forest), var(--forest-deep));
  box-shadow: 0 16px 32px rgba(33, 68, 62, 0.22);
}

.button-secondary {
  background: rgba(255,255,255,.76);
  border: 1px solid var(--line);
  color: var(--forest);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-row div,
.about-stats div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 10px 30px rgba(16, 33, 29, 0.05);
}

.stat-row strong,
.about-stats strong {
  display: block;
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: .35rem;
  color: var(--forest);
}

.stat-row span,
.about-stats span {
  color: var(--muted);
  font-size: .9rem;
}

.hero-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.photo-card,
.insight-card,
.service-card,
.showcase-card,
.process-card,
.contact-card,
.about-grid,
.intro-strip {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.photo-card {
  overflow: hidden;
  min-height: 210px;
}

.photo-card.tall {
  grid-row: span 2;
  min-height: 460px;
}

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

.insight-card {
  padding: 1.45rem;
  display: grid;
  align-content: start;
  min-height: 220px;
}

.card-kicker,
.case-topline {
  display: inline-block;
  margin-bottom: .85rem;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--muted);
}

.insight-card h2 { font-size: clamp(1.6rem, 2vw, 2.2rem); }
.insight-card ul {
  margin: 1rem 0 0;
  padding-left: 1rem;
  color: #465b56;
}

.intro-strip {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
}

.question-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

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

.section-heading p:last-child {
  margin-top: 1rem;
  color: #445a55;
}

.card-grid {
  display: grid;
  gap: 1rem;
}
.card-grid.three { grid-template-columns: repeat(3, 1fr); }

.service-card { padding: 1.4rem; }

.service-icon,
.process-card span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--forest);
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
}

.service-card p,
.showcase-card p,
.process-card p,
.contact-card p,
.about-copy p {
  color: #4b625c;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.showcase-card {
  padding: 1.5rem;
  display: grid;
  gap: .85rem;
}

.showcase-card.featured {
  grid-column: span 2;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
}

.showcase-art {
  border-radius: 18px;
  border: 1px solid rgba(16, 33, 29, 0.08);
  background: #fff;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.tool-card .tool-thumb {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(16, 33, 29, 0.08);
  background: #fff;
}

.text-link {
  color: var(--forest);
  font-weight: 800;
}

.markets { padding-top: 4rem; }
.market-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}
.market-visual img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.market-list {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.process-card {
  padding: 1.35rem;
}
.process-card h3 { margin-bottom: .75rem; }

.about-grid {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 1.5rem;
  align-items: center;
}

.about-photo-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-copy > p:not(.eyebrow) { margin-top: 1rem; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
  margin-top: 1.25rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(233, 247, 237, .82));
}

.site-footer {
  border-top: 1px solid rgba(16, 33, 29, 0.08);
  background: rgba(255,255,255,.65);
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: grid;
  gap: 1rem;
}

.footer-brand .brand-logo { width: 52px; height: 52px; }
.footer-inner p,
.footer-inner small { color: var(--muted); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 700;
  color: var(--forest);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .intro-strip,
  .market-layout,
  .contact-card,
  .about-grid,
  .showcase-card.featured {
    grid-template-columns: 1fr;
  }

  .card-grid.three,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-row,
  .about-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + .4rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: .8rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }

  .hero-visual-grid,
  .showcase-grid,
  .card-grid.three,
  .process-grid,
  .stat-row,
  .about-stats { grid-template-columns: 1fr; }

  .photo-card.tall { min-height: 320px; grid-row: auto; }
  .section { padding: 4rem 1rem; }
  .hero { padding-top: 3rem; }
  h1 { max-width: 12ch; }
}

@media (max-width: 560px) {
  .brand-logo { width: 48px; height: 48px; }
  .brand-text strong { font-size: .98rem; }
  .button { width: 100%; }
  .contact-actions { width: 100%; }
  .hero-points span,
  .question-chips span,
  .market-pill,
  .tag-row span { font-size: .86rem; }
  .service-card,
  .showcase-card,
  .process-card,
  .contact-card,
  .intro-strip,
  .about-grid { padding: 1.2rem; }
}

/* Refinements requested in the June update */
.service-card,
.showcase-card,
.process-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card h3,
.showcase-card h3,
.process-card h3 {
  margin-top: .15rem;
  margin-bottom: .72rem;
}

.service-card p,
.showcase-card p,
.process-card p {
  margin-top: 0;
  line-height: 1.78;
}

.service-card p + .tag-row,
.showcase-card p + .tag-row {
  margin-top: 1rem;
}

.client-logo-wrap {
  min-height: 54px;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: .65rem .85rem;
  border: 1px solid rgba(16, 33, 29, 0.08);
  border-radius: 16px;
  background: #fff;
  max-width: 270px;
}

.client-logo {
  width: auto;
  max-width: 235px;
  max-height: 42px;
  object-fit: contain;
}

.stryten-logo {
  max-width: 245px;
}

.phenogy-logo {
  max-width: 220px;
}

.storion-logo {
  max-width: 230px;
}

.client-card {
  min-height: 390px;
}

.tool-card {
  overflow: hidden;
}

.tool-card .tool-thumb.screenshot-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
  border-radius: 18px;
  border: 1px solid rgba(16, 33, 29, 0.10);
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 33, 29, 0.08);
  margin-bottom: .45rem;
}

.showcase-card.featured .client-logo-wrap {
  max-width: 310px;
}

.showcase-card.featured .showcase-copy {
  padding-right: .5rem;
}

@media (max-width: 560px) {
  .client-logo-wrap {
    max-width: 100%;
    width: 100%;
  }
  .client-logo {
    max-width: 100%;
  }
}

/* Technologies and sectors section */
.technologies {
  padding-top: 4rem;
}

.taxonomy-grid {
  display: grid;
  grid-template-columns: 1.15fr .9fr .95fr;
  gap: 1rem;
}

.taxonomy-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(248, 252, 247, .72));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.taxonomy-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(129, 191, 98, .18);
  border: 1px solid rgba(33, 68, 62, .10);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.taxonomy-card h3 {
  margin-bottom: 1rem;
}

.taxonomy-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .62rem;
}

.taxonomy-pills span {
  padding: .55rem .75rem;
  border: 1px solid rgba(16, 33, 29, 0.12);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: var(--forest);
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.15;
}

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

@media (max-width: 560px) {
  .taxonomy-card {
    padding: 1.2rem;
  }
  .taxonomy-pills span {
    font-size: .86rem;
  }
}
