/* Brand tokens: derived from logo.svg (slate #4a5b62, green #9bce3f) */
:root {
  --ink: #1f2a30;
  --text: #3d4a50;
  --muted: #5f6f76;
  --slate: #4a5b62;
  --slate-dark: #2b363b;
  --slate-tint: #f3f6f7;
  --green: #9bce3f; /* decorative only: too light for text on white */
  --green-ink: #4f7d14; /* accessible green for text and links */
  --green-tint: #f1f8e5;
  --line: #e2e8ea;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 42, 48, 0.06), 0 8px 24px rgba(31, 42, 48, 0.06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3 {
  text-wrap: balance;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--green-ink);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--slate-dark);
}

:focus-visible {
  outline: 3px solid var(--green-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

address {
  font-style: normal;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding-block: clamp(4rem, 9vw, 6.5rem);
}

section[id] {
  scroll-margin-top: 88px;
}

main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--slate-dark);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
}

/* Marks links that open in a new tab */
.ext {
  display: inline-block;
  margin-left: 0.25em;
  font-size: 0.8em;
  text-decoration: none;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 40rem;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.75rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--slate);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--slate-dark);
  color: #ffffff;
}

.btn-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: #ffffff;
}

.btn-secondary:hover {
  border-color: var(--slate);
  color: var(--ink);
}

.btn-light {
  background: var(--green);
  color: var(--ink);
}

.btn-light:hover {
  background: #b2dc66;
  color: var(--ink);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 40px;
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 26px;
}

.site-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--green-ink);
}

.site-nav .btn {
  padding: 0.55rem 1.1rem;
  color: #ffffff;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Hero */

.hero {
  position: relative;
  background: radial-gradient(
      60rem 30rem at 85% 10%,
      var(--green-tint),
      transparent 70%
    ),
    #ffffff;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 3rem;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 5vw, 3rem);
}

/* emphasis: ink text with a soft brand-green highlight */
.hero h1 span {
  background: linear-gradient(transparent 62%, rgba(155, 206, 63, 0.45) 62%, rgba(155, 206, 63, 0.45) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

/* Hero line figure (drawn and animated by hero-figure.js) */

.hero-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-figure.ready {
  opacity: 1;
}

.hero-figure svg {
  width: min(100%, 28rem);
  aspect-ratio: 1;
  overflow: visible;
}

.hero-figure path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-figure .frame,
.hero-figure .hf-s-ln {
  stroke: var(--slate);
  stroke-width: 1.5;
}

.hero-figure .accent,
.hero-figure .hf-g-ln {
  stroke: #7fb528;
  stroke-width: 1.6;
}

.hero-figure .hf-medium {
  stroke-width: 3.2;
}

.hero-figure .hf-bold {
  stroke-width: 7;
}

/* Solid faces: the fill color doubles as a thin stroke to hide seams */
.hero-figure .hf-fill {
  stroke-width: 0.8;
}

.hero-figure .hf-s-cap { fill: #ffffff; stroke: #ffffff; }
.hero-figure .hf-s-top { fill: #f6f8f9; stroke: #f6f8f9; }
.hero-figure .hf-s-wall { fill: #e4ebee; stroke: #e4ebee; }
.hero-figure .hf-g-cap { fill: #f8fcf1; stroke: #f8fcf1; }
.hero-figure .hf-g-top { fill: #f2f9e6; stroke: #f2f9e6; }
.hero-figure .hf-g-wall { fill: #ddedc4; stroke: #ddedc4; }




/* Energy effects (hero-figure.js fx layers) */
.hero-figure .hf-pulse {
  fill: #9bce3f;
  filter: drop-shadow(0 0 4px rgba(155, 206, 63, 0.9));
}

.hero-figure .hf-ring {
  fill: none;
  stroke: #9bce3f;
  stroke-width: 2;
}

.hero-figure .hf-spark {
  stroke: #8cc232;
  stroke-width: 2.2;
}

.hero-figure .hf-touch {
  fill: rgba(74, 91, 98, 0.35);
}

.figure-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.figure-dots {
  display: flex;
  gap: 6px;
}

.figure-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.figure-dots i.on {
  background: var(--green-ink);
  transform: scale(1.25);
}

.hero-figure.static .figure-caption {
  display: none;
}

.waves {
  display: block;
  width: 100%;
  height: clamp(48px, 8vw, 96px);
}

.waves > g > use {
  animation: drift 40s linear infinite alternate;
}

.waves > g:nth-child(odd) > use {
  animation-duration: 55s;
  animation-direction: alternate-reverse;
}

@keyframes drift {
  from {
    transform: translateX(-60px);
  }
  to {
    transform: translateX(60px);
  }
}

/* Clients strip */

.clients {
  background: var(--slate-tint);
  padding-block: 1.75rem 2.25rem;
  text-align: center;
}

.clients p {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.clients ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.5rem;
  color: var(--slate);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Services */

.services {
  background: var(--slate-tint);
  padding-top: clamp(2rem, 5vw, 3rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.card p {
  color: var(--muted);
  margin: 0;
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-tint);
  color: var(--green-ink);
  margin-bottom: 1.1rem;
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Work */

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project {
  display: flex;
  flex-direction: column;
  border: 1px solid #d5dee1;
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(31, 42, 48, 0.05), 0 4px 14px rgba(31, 42, 48, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(31, 42, 48, 0.06), 0 14px 32px rgba(31, 42, 48, 0.1);
}

/* Illustration panel: hand-drawn line art in the hero's style */
.project-art {
  display: grid;
  place-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #dde5e8;
}

/* two brand tints, laid out as a checkerboard so neighbors never match */
.art-green {
  background: linear-gradient(160deg, #f4faea, #e4f0cf);
}

.art-slate {
  background: linear-gradient(160deg, #f5f8f9, #e2e9ec);
}

.project-art svg {
  width: 100%;
  max-width: 18rem;
  aspect-ratio: 240 / 140;
  transition: transform 0.35s ease;
}

.project:hover .project-art svg {
  transform: scale(1.04);
}

.il-s,
.il-g {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.il-s { stroke: var(--slate); }
.il-g { stroke: #7fb528; }
.il-fill { fill: #ffffff; }
.il-tint { fill: var(--green-tint); }
.il-dot-g { fill: #9bce3f; }
.il-dot-s { fill: var(--slate); }

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem 1.75rem 1.75rem;
}

.project.featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.project.featured .project-art {
  flex: 0 0 42%;
  border-bottom: none;
  border-right: 1px solid #dde5e8;
}

.project.featured .project-body {
  justify-content: center;
}

.project.featured h3 {
  font-size: 1.45rem;
}

.project .client {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 0.5rem;
}

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

.project .more {
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
}

.project.featured .more {
  margin-top: 0.25rem;
}

.project .more:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green-ink);
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
  letter-spacing: 0;
}

/* About */

.about {
  border-top: 1px solid var(--line);
}

.about-intro {
  max-width: 46rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.skills li {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--slate-tint);
  color: var(--slate);
  font-size: 0.85rem;
  font-weight: 600;
}

.team-heading {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.35rem;
}

.founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.founder {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.founder picture {
  flex: none;
  line-height: 0;
}

.founder img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--green-tint);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px var(--line);
}

.founder h4 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink);
}

.founder .role {
  margin: 0.15rem 0 0.75rem;
  color: var(--green-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.founder p {
  color: var(--muted);
}

.founder p:last-child {
  margin-bottom: 0;
}

/* Contact */

.contact {
  background: var(--slate);
  color: #e6ecee;
}

.contact h2 {
  color: #ffffff;
}

.contact .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

.contact .lead {
  color: #d3dcdf;
}

.contact .eyebrow {
  color: #c5e59a;
}

.contact-details {
  list-style: none;
  margin: 0;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-details li + li {
  margin-top: 1.1rem;
}

.contact-details .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c5e59a;
}

.contact-details a {
  color: #ffffff;
}

.contact-details a:hover {
  color: var(--green);
}

/* Footer */

.site-footer {
  background: var(--slate-dark);
  color: #b9c5c9;
  font-size: 0.95rem;
  padding-block: 3rem 2rem;
}

.site-footer a {
  color: #dfe6e8;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--green);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2rem;
}

.footer-grid h3 {
  color: #ffffff;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 0.45rem;
}

.site-footer .brand {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

/* the logo's slate half needs a light chip to read on the dark footer */
.site-footer .brand img {
  background: #ffffff;
  border-radius: 10px;
  padding: 4px;
  width: 44px;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

/* Text pages (privacy, terms) */

.doc {
  max-width: 46rem;
  padding-block: clamp(3rem, 7vw, 5rem);
}

.doc h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.doc h2 {
  font-size: 1.35rem;
  margin-top: 2.25rem;
}

.doc .updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.4rem;
}

/* 404 page */

.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.not-found {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 20px;
  background: radial-gradient(40rem 20rem at 50% 30%, var(--green-tint), transparent 70%);
}

.not-found .code {
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--slate);
  margin-bottom: 0.5rem;
}

.not-found .code span {
  color: var(--green);
}

.not-found p {
  color: var(--muted);
  max-width: 30rem;
}

.not-found .btn {
  margin-top: 1rem;
}

/* Responsive */

@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .project.featured {
    flex-direction: column;
  }

  .project.featured .project-art {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .hero .wrap,
  .contact .wrap,
  .founders {
    grid-template-columns: 1fr;
  }

  .hero-figure svg {
    width: min(100%, 20rem);
  }

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

@media (max-width: 640px) {
  .site-nav {
    gap: 4px 18px;
  }

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

  .site-header .wrap {
    flex-wrap: nowrap;
    padding-block: 10px;
  }

  .site-header .brand {
    white-space: nowrap;
    font-size: 1.05rem;
    gap: 8px;
  }

  .site-header .brand img {
    width: 34px;
  }

  .site-nav {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .site-nav .btn {
    padding: 0.5rem 0.95rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  /* With JS, the section links collapse into a menu */
  .js .nav-toggle {
    display: grid;
    place-items: center;
  }

  .js .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .js .nav-links.open {
    display: flex;
  }

  .js .nav-links a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  .js .nav-links a:last-child {
    border-bottom: none;
  }

  /* Clients: a tidy stacked list instead of ragged centered wrapping */
  .clients ul {
    flex-direction: column;
    gap: 0;
    max-width: 22rem;
    margin: 0 auto;
    font-size: 1rem;
  }

  .clients li {
    padding: 0.65rem 0;
    text-wrap: balance;
  }

  .clients li + li {
    border-top: 1px solid #dce4e7;
  }

  .founder {
    flex-direction: column;
    gap: 1rem;
  }

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

@media (max-width: 380px) {
  .site-header .brand {
    font-size: 0.95rem;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav .btn {
    padding: 0.45rem 0.75rem;
  }
}

/* Very small phones: logo only; the name stays available to screen readers */
@media (max-width: 340px) {
  .site-header .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .waves > g > use {
    animation: none;
  }

  .project,
  .project-art svg {
    transition: none;
  }

  .project:hover,
  .project:hover .project-art svg {
    transform: none;
  }
}
