/* Reset & base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--mono);
  color: #222222;
  line-height: 1.6;
  /* Faint dot texture rather than flat white — reads as depth, not pattern.
     The opaque section panels sit on top, so it shows through in the gaps. */
  background-color: #ffffff;
  background-image: radial-gradient(rgba(46, 125, 50, 0.17) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
}


/* Monospace throughout; only the headings break to a serif. */
:root {
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* Thin reading-progress bar pinned above the sticky header */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 20;
  background: linear-gradient(90deg, #2e7d32, #6bbf59);
  transition: width 0.08s linear;
}

/* Centered content column */
main,
footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header — a floating frosted "pill" that hovers over the page rather than a
   full-width bar stuck to the top edge. */
header {
  position: sticky;
  top: 12px;
  z-index: 10;
  max-width: 1080px;
  width: calc(100% - 48px);
  margin: 12px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 9px 12px 9px 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(46, 125, 50, 0.10);
  border-radius: 100px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Added by JS once the page scrolls — the pill lifts further off the page
   only when there's content passing underneath it. */
header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(46, 125, 50, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-photo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eaf4ea;
  transition: border-color 0.2s ease;
}

.brand:hover .brand-photo {
  border-color: #2e7d32;
}

/* Name stacked over role — gives the left side substance and balances the nav */
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

/* ---------------------------------------------------------------------------
   Signature — the name is drawn as SVG strokes tracing the centreline of the
   Sacramento letterforms, so stroke-dashoffset animates it like a real pen
   rather than wiping it into view. Writes over 2.4s, holds, fades at ~11s,
   then loops on a 11s cycle.
   --------------------------------------------------------------------------- */
.sig {
  display: block;
  height: 23px;
  width: auto;
  overflow: visible;
}

.sig path {
  fill: none;
  stroke: #1a1a1a;
  stroke-width: 8.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation-duration: 11s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

@keyframes sig0 {
  0%, 0.00% { stroke-dashoffset: 996; opacity: 1; }
  3.71% { stroke-dashoffset: 0; opacity: 1; }
  88.18% { stroke-dashoffset: 0; opacity: 1; }
  96.36%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes sig1 {
  0%, 3.71% { stroke-dashoffset: 1508; opacity: 1; }
  9.32% { stroke-dashoffset: 0; opacity: 1; }
  88.18% { stroke-dashoffset: 0; opacity: 1; }
  96.36%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes sig2 {
  0%, 9.32% { stroke-dashoffset: 782; opacity: 1; }
  12.23% { stroke-dashoffset: 0; opacity: 1; }
  88.18% { stroke-dashoffset: 0; opacity: 1; }
  96.36%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes sig3 {
  0%, 12.23% { stroke-dashoffset: 379; opacity: 1; }
  13.64% { stroke-dashoffset: 0; opacity: 1; }
  88.18% { stroke-dashoffset: 0; opacity: 1; }
  96.36%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes sig4 {
  0%, 13.64% { stroke-dashoffset: 2133; opacity: 1; }
  21.57% { stroke-dashoffset: 0; opacity: 1; }
  88.18% { stroke-dashoffset: 0; opacity: 1; }
  96.36%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes sig5 {
  0%, 21.57% { stroke-dashoffset: 66; opacity: 1; }
  21.82% { stroke-dashoffset: 0; opacity: 1; }
  88.18% { stroke-dashoffset: 0; opacity: 1; }
  96.36%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Static, fully-drawn signature for anyone who prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sig path { animation: none; }
}

/* Screen-reader-only text so the name is still real text for search engines */
.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;
}

nav a {
  position: relative;
  margin-left: 24px;
  text-decoration: none;
  color: #222222;
  font-size: 15px;
}

/* Contact is the primary call-to-action in the nav, so it gets a filled pill instead of a plain link */
.nav-cta {
  padding: 8px 18px;
  color: #ffffff !important;
  background: #2e7d32;
  border-radius: 100px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: #245f28;
  transform: translateY(-2px);
}

.nav-cta::after {
  display: none;
}

/* Hamburger button — hidden on desktop, shown only on narrow screens (see bottom of file) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #222222;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Turn the three bars into an X when the menu is open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Animated underline that grows in on hover */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: #2e7d32;
  transition: width 0.2s ease;
}

nav a:hover {
  color: #2e7d32;
}

nav a:hover::after {
  width: 100%;
}

/* Marks whichever section you're currently looking at (set by JS scroll-spy) */
nav a.active {
  color: #2e7d32;
  font-weight: 600;
}

nav a.active::after {
  width: 100%;
}

/* Sections */
section {
  padding: 0;
  margin: 0 0 52px 0;
  /* Leaves room above the section when jumping to it via a nav link, so it
     doesn't land hidden underneath the sticky header. */
  scroll-margin-top: 94px;
  /* Reach the fold when navigated to, so a nav click frames one section rather
     than parts of two. 140 = where the section lands after the click (94) plus
     its bottom gap (52), less a little slack.
     Sections with more content simply grow past this — only the short ones
     (Tools) are actually affected.
     No align-items here on purpose: children must keep the default stretch so
     the Services and Contact grids stay full width. */
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Scroll reveal — fades and slides each section into place as it enters the
   viewport (JS adds "visible" once IntersectionObserver detects it). */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Tools gets a tinted panel instead of a divider, so the logo row reads as a
   highlighted band rather than another plain text section. */
/* Monospace on the small labels only — gives the page a distinctive voice
   without touching the readability of the body copy. */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #2e7d32;
  line-height: 1;
  margin: 0 0 28px 0;
}

/* Same pulsing signal as the availability line — all of them share one
   animation, so they beat in sync rather than blinking independently. */
.section-eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #2e7d32;
  animation: status-pulse 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .section-eyebrow::before { animation: none; }
}

/* Hero — photo panel with a white fade so the text stays readable */
#home {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 68px 48px;
  margin-top: 52px;
  /* Tall enough that the next section starts just below the fold, but NOT a
     full-screen panel — the 52px gap beneath it stays visible, so the hero
     breathes rather than filling the viewport edge to edge.
     176 = header (66) + its offset (12) + gaps above and below (52 + 52),
     less a few px of slack for fractional viewport heights. */
  min-height: calc(100vh - 176px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Flex children would otherwise stretch to full width, blowing out the badge
     pill and the "Get in touch" button. */
  align-items: flex-start;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.85) 40%, rgba(255, 255, 255, 0.25) 75%), url("hero-bg.jpg");
  background-size: cover;
  background-position: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 7px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: #2e7d32;
  background: #eaf4ea;
  border-radius: 100px;
}

/* Same live signal as the section labels, so the whole page shares one motif */
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #2e7d32;
  animation: status-pulse 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow::before { animation: none; }
}

/* Hero headline — a full sentence now rather than a name, so it needs a
   comfortable measure and a tighter size than a one-word heading. */
#home h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 54px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.5px;
  max-width: 580px;
  margin: 0 0 20px 0;
}

/* Supporting line under the headline — grounds the abstract claim above it */
.hero-lede {
  font-size: 15.5px;
  line-height: 1.6;
  color: #555555;
  max-width: 640px;
  margin: 0 0 4px 0;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.45); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 9px rgba(46, 125, 50, 0); }
}

/* Links */
a {
  color: #2e7d32;
}

a:hover {
  text-decoration: none;
}

#home a {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 24px;
  border: 1px solid #2e7d32;
  border-radius: 4px;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#home a:hover {
  background: #2e7d32;
  color: #ffffff;
  transform: translateY(-2px);
}

/* About — boxed panel for visual rhythm */
#about {
  background: #f7f9f7;
  border-radius: 16px;
  padding: 52px 48px;
}

/* Two columns now — photo and bio. Stats sit in their own band underneath. */
.about-layout {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 44px;
  align-items: stretch;
}

.about-bio p {
  margin: 0 0 14px 0;
}

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

/* The bio runs to three paragraphs, so a fixed 4:5 photo stopped well short of
   it. The wrapper stretches to the row height and the image covers it. */
.about-photo-wrap {
  position: relative;
  min-height: 320px;
}

/* Offset outline behind the photo — a bit of personality without gimmickry */
.about-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 2px solid rgba(46, 125, 50, 0.32);
  border-radius: 14px;
  transition: inset 0.35s ease, border-color 0.35s ease, border-radius 0.35s ease;
}

.about-photo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Currently inert — at both breakpoints the full photo height fits and the
     crop is horizontal only. Kept as a safeguard: if the bio grows taller the
     crop starts biting vertically, and this favours the top of the frame. */
  object-position: center 22%;
  border-radius: 14px;
  display: block;
  filter: saturate(0.92);
  transition: filter 0.35s ease;
}

/* On hover the offset frame slides out of its corner and closes onto the photo's
   edges as a thin ring. It stays BEHIND the photo, so it has to settle just
   outside the edge (-6px) to remain visible — at inset 0 the photo would cover
   it completely. The larger radius keeps the ring concentric with the photo's
   own 14px corners (14 + 6 = 20) instead of cutting across them. */
.about-photo-wrap:hover::before {
  inset: -6px;
  border-radius: 20px;
  border-color: rgba(46, 125, 50, 0.6);
}

/* No lift here on purpose: the ring is pinned to the photo's edges, so moving
   the photo would break the alignment that is the whole point of the effect. */
.about-photo-wrap:hover .about-photo {
  filter: saturate(1.06);
}

/* Formal headshot stacked exactly on top of the casual one. Cropped to the same
   600x750 as the photo underneath, so the swap changes the face without shifting
   the framing. The two-class selector is deliberate: the stacked-layout override
   further down sets height on .about-photo, and would otherwise win on source
   order and collapse this one. */
.about-photo-wrap .about-photo-alt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  opacity: 0;
  /* Leaving on unhover is immediate — the casual photo comes straight back. */
  transition: opacity 0.25s ease 0s;
}

/* The 0.28s delay is the point of the effect: the ring finishes closing onto the
   edges (0.35s) before the face changes, so it reads as one gesture settling
   rather than two things moving at once. */
.about-photo-wrap:hover .about-photo-alt {
  opacity: 1;
  transition: opacity 0.25s ease 0.28s;
}

@media (prefers-reduced-motion: reduce) {
  .about-photo,
  .about-photo-wrap .about-photo-alt,
  .about-photo-wrap::before { transition: none; }
}

/* A horizontal band of three, rather than a cramped third column */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid #e2e6e2;
}

.stat strong {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: #2e7d32;
  line-height: 1.2;
}

.stat span {
  font-size: 13px;
  color: #777777;
}

/* Credentials — two side by side, stacking on narrow screens */
.about-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 26px;
}

.credential {
  display: flex;
  align-items: center;
  gap: 16px;
}

.credential-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Only the Rippling credential has a public verification page. Inherits colour
   so it sits quietly beside the non-clickable three, and announces itself on
   hover rather than shouting with a permanent link colour. */
/* Only the Rippling credential has a public verification page. The affordance is
   confined to the "Verify" text itself rather than the whole block, so the row
   still reads like the other three at a glance. */
.credential-link {
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
}

/* Sits quietly in the grey subtitle until the row is hovered, then greens to
   show the row is clickable. Two classes deliberately: `.credential span` sets
   that grey at (0,1,1) and would out-specify a lone `.verify`. */
.credential .verify {
  /* `.credential span` sets display:block for the subtitle line, and that also
     matches this nested span — which would push "Verify" onto its own line
     regardless of how much room is left. */
  display: inline;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.credential-link:hover .verify {
  color: #2e7d32;
}

.credential-link:focus-visible {
  outline: 2px solid #2e7d32;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .verify { transition: none; }
}

.credential strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: #222222;
  margin-bottom: 5px;
}

.credential span {
  display: block;
  font-size: 11.5px;
  line-height: 1.4;
  color: #888888;
}


/* Hint under the section label — the hover reveal is otherwise undiscoverable */
.services-hint {
  margin: -14px 0 22px 0;
  font-size: 13px;
  color: #888888;
}

.hint-tap { display: none; }

/* Touch devices can't hover, so swap the wording */
@media (hover: none) {
  .hint-hover { display: none; }
  .hint-tap { display: inline; }
}

/* A decorative pointer that demonstrates the hover once, when the section is
   first scrolled into view. Purely a hint — it never blocks real interaction. */
.cursor-demo {
  position: absolute;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.cursor-demo.show { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .cursor-demo { display: none; }
}

/* Services — card grid */
#services ul {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  /* Grid items stretch to the tallest in their row by default — so opening one
     card's description dragged its neighbours taller too. Sizing each card to
     its own content keeps the growth contained to the card you're hovering. */
  align-items: start;
}

#services li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#services li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: #dfece0;
}

#services li::before {
  content: "✓";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  font-size: 12px;
  color: #ffffff;
  background: #2e7d32;
  border-radius: 50%;
}

.service-text strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
}

.service-text p {
  margin: 0;
  font-size: 13.5px;
  color: #777777;
  line-height: 1.65;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

/* Reveal the description on hover (desktop) or when tapped (.open, added by JS for touch) */
#services li:hover .service-text p,
#services li.open .service-text p {
  max-height: 260px;
  opacity: 1;
  margin-top: 10px;
}

/* Tools & Platforms */
.tools-intro {
  color: #777777;
  font-size: 14px;
  margin: -8px 0 20px 0;
}

/* Fade the edges so the scrolling logos appear/disappear smoothly instead of cutting off */
.tools-marquee {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tools-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: scroll-tools 40s linear infinite;
}

/* Pause the animation so visitors can read a name while hovering */
.tools-marquee:hover .tools-track {
  animation-play-state: paused;
}

@keyframes scroll-tools {
  from {
    transform: translateX(0);
  }
  to {
    /* -50% because the list is duplicated once, so this is exactly one full loop */
    transform: translateX(-50%);
  }
}

/* Second row travels the other way, at a slightly different pace so the two
   rows never fall into lockstep. */
.tools-track-reverse {
  animation-name: scroll-tools-reverse;
  animation-duration: 46s;
}

@keyframes scroll-tools-reverse {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tools-track {
    animation: none;
  }
}

/* White chips on the tinted panel so each one reads as a distinct card */
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 34px;
  font-size: 21px;
  color: #333333;
  background: #ffffff;
  border: 1px solid #dfe5df;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tool-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #cddccf;
}

.tool-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 7px;
}

/* Wordmark logos stand alone in the chip (no text label beside them), so they
   get a free width — squeezing them into the square icon slot would make them
   unreadably small. */
.tool-wordmark {
  height: 28px;
  width: auto;
  display: block;
}

/* Shown instead of a logo when none is available, so every tag has a consistent icon slot */
.tool-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: #a8b5a9;
  border-radius: 50%;
}

/* Contact — two columns, each its own panel to match the boxed style used elsewhere on the site */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.contact-info {
  background: #f7f9f7;
  border-radius: 16px;
  padding: 40px;
}

.contact-form {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 16px;
  padding: 40px;
}

.contact-blurb {
  color: #555555;
  font-size: 15px;
  margin: 0 0 24px 0;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  text-decoration: none;
  color: #222222;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: #dfece0;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: #ffffff;
  background: #2e7d32;
  border-radius: 50%;
}

.contact-icon svg {
  width: 17px;
  height: 17px;
}

.contact-text {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.contact-text strong {
  font-size: 13px;
  color: #999999;
  font-weight: 500;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  display: block;
  font-size: 13px;
  color: #555555;
  font-weight: 500;
  margin-bottom: 16px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: #222222;
  border: 1px solid #dddddd;
  border-radius: 8px;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2e7d32;
}

.contact-form button {
  align-self: flex-start;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 15px;
  color: #ffffff;
  background: #2e7d32;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  background: #245f28;
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.form-status {
  min-height: 20px;
  margin: 12px 0 0 0;
  font-size: 13.5px;
}

.form-status.success {
  color: #2e7d32;
}

.form-status.error {
  color: #c0392b;
}

/* Footer */
footer {
  padding: 32px 24px;
  color: #999999;
  font-size: 13px;
  text-align: center;
}

/* Responsive overrides — kept at the end of the file so they reliably win over
   the earlier rules they're adjusting (same-specificity CSS rules are decided
   by source order, not by whether they're inside a @media block). */
@media (min-width: 900px) {
  #services ul {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Stack the contact info/form side by side only once there's enough room to breathe */
/* Tablet and below: the horizontal nav needs ~665px of header width, which a
   700px viewport can't give it. Switch to the hamburger well before that. */
@media (max-width: 820px) {
  header {
    top: 8px;
    width: calc(100% - 28px);
    margin-top: 8px;
    padding: 8px 10px 8px 12px;
  }

  .brand-photo {
    width: 40px;
    height: 40px;
  }

  .sig {
    height: 20px;
  }

  .nav-toggle {
    display: flex;
    margin-right: 6px;
  }

  /* Detached rounded card below the pill, rather than a bar welded to its base */
  nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 10px 22px 16px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
  }

  nav.open {
    display: flex;
  }

  nav a {
    margin-left: 0;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
  }

  /* In the stacked mobile menu, the CTA becomes a full-width button instead of an inline pill */
  .nav-cta {
    display: block;
    margin-top: 12px;
    padding: 12px 0;
    text-align: center;
    border-bottom: none;
  }
}

@media (max-width: 700px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .about-stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Stacked on narrow screens, so cap the photo rather than letting it run
     full-width (a 4:5 image at full width would tower over the text). */
  .about-photo-wrap {
    max-width: 260px;
    min-height: 0;
    margin: 0 auto 18px;
  }

  .about-photo {
    aspect-ratio: 4 / 5;
    height: auto;
  }

  .about-photo-wrap::before {
    inset: 12px -12px -12px 12px;
  }

  .about-credentials {
    grid-template-columns: 1fr;
    gap: 20px;
  }

}

@media (max-width: 600px) {
  section {
    padding: 0;
    margin-bottom: 32px;
    min-height: 0;
  }

  .section-eyebrow {
    font-size: 15px;
    letter-spacing: 1.1px;
  }

  #home {
    min-height: 0;
    padding: 40px 24px;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 55%, rgba(255, 255, 255, 0.4) 100%), url("hero-bg.jpg");
  }

  #home h1 {
    font-size: 36px;
    letter-spacing: -0.3px;
    max-width: 100%;
  }

  .hero-lede {
    font-size: 15.5px;
    max-width: 100%;
  }

  /* Desktop panel padding eats too much of a phone screen — 48px each side
     leaves only ~230px of content on a 375px device. */
  #about {
    padding: 34px 22px;
  }

  .contact-info,
  .contact-form {
    padding: 28px 22px;
  }

  .credential-mark {
    width: 42px;
    height: 42px;
  }

  #services ul {
    grid-template-columns: 1fr;
  }

  .tool-chip {
    padding: 14px 24px;
    font-size: 18px;
  }

  .tool-logo,
  .tool-fallback {
    width: 26px;
    height: 26px;
  }

  .tool-wordmark {
    height: 24px;
  }

}
