/* ---------- Design tokens ---------- */

:root {
  --pebble-bg: #f9faf7;
  --pebble-surface: #ffffff;
  --pebble-text: #1f2521;
  --pebble-muted: #6f7a71;
  --pebble-border-subtle: rgba(0, 0, 0, 0.06);

  --pebble-green: #7aa471;
  --pebble-green-dark: #5d8357;
  --pebble-green-light: #c9ddc3;

  --pebble-radius-lg: 18px;
  --pebble-radius-sm: 6px;

  --pebble-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.08);
}

/* ---------- Base ---------- */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--pebble-text);
  background-color: var(--pebble-bg);
  line-height: 1.7;
  font-size: 16px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 500;
  margin: 0 0 0.6rem;
  color: var(--pebble-text);
}

h1 {
  font-size: clamp(2.3rem, 3.3vw, 3rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
}

/* small label above headings */
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pebble-muted);
}

/* ---------- Layout: header / main / footer ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--pebble-border-subtle);
}

.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.02rem;
}

.brand__mark {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.brand__tagline {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pebble-muted);
}

.brand--image {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.brand__logo {
  height: clamp(75px, 5vw, 150px);
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 1.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  color: var(--pebble-muted);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  background: var(--pebble-green);
  transition: width 0.22s ease;
}

.main-nav a:hover {
  color: var(--pebble-text);
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--pebble-text);
}

.main-nav a.active::after {
  width: 100%;
  background: var(--pebble-green);
}

.main-nav a.is-active {
  color: var(--pebble-text);
}

.main-nav a.is-active::after {
  width: 100%;
  background: var(--pebble-green);
}

/* ---------- Mobile nav toggle & dropdown ---------- */

.nav-toggle {
  display: none; /* shown on small screens below */
  margin-left: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--pebble-border-subtle);
  background: rgba(255, 255, 255, 0.9);
  padding: 0;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.nav-toggle__inner {
  position: relative;
  width: 1.2rem;
  height: 0.9rem;
}

.nav-toggle__line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--pebble-text);
  transition:
    transform 0.22s ease,
    opacity 0.18s ease,
    top 0.22s ease,
    bottom 0.22s ease;
}

.nav-toggle__line--top {
  top: 0;
}

.nav-toggle__line--bottom {
  bottom: 0;
}

.nav-toggle:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.nav-toggle__line--middle {
  top: 50%;
  transform: translateY(-50%);
}


/* when menu is open, morph into a subtle X */
.nav-open .nav-toggle__line--top {
  top: 50%;
  transform: translateY(-50%) rotate(37deg);
}

.nav-open .nav-toggle__line--bottom {
  bottom: 50%;
  transform: translateY(50%) rotate(-37deg);
}

.nav-open .nav-toggle__line--middle {
  opacity: 0;
}

/* dropdown panel */
.mobile-nav {
  display: none; /* shown only on mobile breakpoint */
  position: absolute;
  left: 0;
  right: 0;
  top: 100%; /* sit just below the header bar */
  padding: 0.6rem 1.2rem 0.9rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pebble-border-subtle);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
  transform-origin: top;
  transform: translateY(-6px);
  opacity: 0;
  pointer-events: none;
  z-index: 25; /* above page content, below header */
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.mobile-nav a {
  display: block;
  padding: 0.7rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pebble-muted);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

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

.mobile-nav a.is-active {
  color: var(--pebble-text);
}

/* open state */
.mobile-nav--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


.site-main {
  min-height: 60vh;
}

/* -------------------------------------
   FOOTER — final Pebble layout
-------------------------------------- */

.site-footer {
  margin-top: 4rem;
  padding: 3.2rem 0 2.8rem;
  background: linear-gradient(
    180deg,
    #f7f8f4 0%,
    #f4f5f1 55%,
    #f2f3ef 100%
  );
  border-top: 1px solid var(--pebble-border-subtle);
  font-size: 0.88rem;
  color: var(--pebble-text);
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2.2rem;

  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 2.2fr) auto;
  grid-template-areas:
    "brand nav social"
    "meta  nav social";
  column-gap: 3rem;
  row-gap: 2rem;
  align-items: flex-start;
}

/* Brand */

.site-footer__brand {
  grid-area: brand;
}

.site-footer__kicker {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

.site-footer__tagline {
  margin: 0;
  max-width: 22rem;
  color: var(--pebble-muted);
  line-height: 1.55;
}

/* Nav columns */

.site-footer__nav {
  grid-area: nav;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2.4rem;
}

.site-footer__column-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pebble-muted);
  margin: 0 0 0.55rem;
}

.site-footer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__nav li + li {
  margin-top: 0.25rem;
}

.site-footer__nav a {
  text-decoration: none;
  color: var(--pebble-text);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.site-footer__nav a:hover {
  opacity: 0.55;
}

/* Meta */

.site-footer__meta {
  grid-area: meta;
  font-size: 0.82rem;
  color: var(--pebble-muted);
  line-height: 1.55;
}

.site-footer__meta p {
  margin: 0;
}

.site-footer__credits {
  margin-top: 0.4rem;
  opacity: 0.78;
}

/* Social */

.site-footer__social {
  grid-area: social;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}

.site-footer__follow-label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pebble-muted);
}

.site-footer__social-links {
  display: flex;
  gap: 0.9rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--pebble-text);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.14s ease,
    box-shadow 0.18s ease;
}

.social-link:hover,
.social-link:focus-visible {
  background: var(--pebble-text);
  color: #ffffff;
  border-color: var(--pebble-text);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
  outline: none;
}

.social-icon {
  width: 1.2rem;
  height: 1.2rem;
}

/* Screen-reader-only text */

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

/* Responsive */

@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
    grid-template-areas:
      "brand brand"
      "nav   nav"
      "meta  social";
    row-gap: 2.2rem;
  }

  .site-footer__social {
    align-items: flex-start;
  }

  .site-footer__nav {
    grid-template-columns: repeat(3, minmax(0, 160px));
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 2.4rem 0 2rem;
  }

  .site-footer__inner {
    padding-inline: 1.25rem;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "social"
      "meta";
  }

  .site-footer__nav {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .site-footer__social {
    align-items: flex-start;
  }
}


/* ---------- Sections (generic) ---------- */

.section {
  max-width: 1180px;
  margin: 0 auto 4rem;
  padding: 0 2.2rem;
}

.section-header {
  max-width: 640px;
  margin-bottom: 2rem;
}

/* relaxed inner-page spacing + soft band utility */
.section--relaxed {
  margin-bottom: 5.2rem;
}

.section--soft {
  background: #ffffff;
  border-radius: var(--pebble-radius-lg);
  box-shadow: var(--pebble-shadow-soft);
  padding-top: 2.8rem;
  padding-bottom: 3rem;
}

/* ---------- Services section (home) ---------- */
/* (No special overlap now; uses generic .section spacing) */

/* ---------- Portfolio page ---------- */

.section-portfolio-intro h1 {
  font-size: clamp(2rem, 3vw, 2.4rem);
}

.section-portfolio-intro .section-header {
  max-width: 720px;
}

.section-portfolio-grid {
  margin-top: 1rem;
}

/* ---------- Project hero: polished two-column layout ---------- */

.section.project-hero {
  max-width: 1180px;              /* line up with the rest of the site */
  margin-bottom: 4.4rem;
}

.project-hero {
  margin-top: 3.2rem;
}

.project-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2.6rem;
  align-items: flex-start;
}

/* Text column */
.project-hero__header {
  max-width: 32rem;
  padding-top: 0.4rem;
}

.project-hero__header .kicker {
  margin-bottom: 0.4rem;
}

.project-hero__header h1 {
  max-width: 32rem;
  margin-bottom: 0.4rem;
}

.project-hero__header p {
  margin: 0;
  max-width: 30rem;
  color: var(--pebble-muted);
}

/* Image column – bigger, card-like */
.project-hero__image {
  margin: 0;
  border-radius: var(--pebble-radius-lg);
  overflow: hidden;
  box-shadow: var(--pebble-shadow-soft);
  background: #000;
  min-height: 320px;
  max-height: 520px;
  aspect-ratio: 4 / 3;            /* keeps a strong landscape crop */
}

.project-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 2.5s ease-out;
}

.project-hero__image:hover img {
  transform: scale(1.06);
}

/* Mobile: stack image above text, full width */
@media (max-width: 800px) {
  .section.project-hero {
    max-width: 100%;
  }

  .project-hero__grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .project-hero__image {
    order: -1;
    aspect-ratio: 4 / 3;
  }

  .project-hero__header {
    max-width: 100%;
  }
}

/* ---------- Project detail pages (case studies) ---------- */

/* HERO */

.section.project-hero {
  margin-top: 3.2rem;
  margin-bottom: 4.6rem;
}

.project-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

/* left column – title + intro */

.project-hero__header {
  max-width: 40rem;
}

.project-hero__header .kicker {
  margin-bottom: 0.45rem;
}

.project-hero__header h1 {
  margin-bottom: 1.1rem;
}

.project-hero__header p {
  margin: 0;
  max-width: 34rem;
  color: var(--pebble-muted);
}

/* right column – large image card */

.project-hero__image {
  margin: 0;
  border-radius: var(--pebble-radius-lg);
  overflow: hidden;
  box-shadow: var(--pebble-shadow-soft);
  background: #000;
  min-height: 280px;
  max-height: 440px;
  aspect-ratio: 4 / 3;
}

.project-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 2.5s ease-out;
}

.project-hero__image:hover img {
  transform: scale(1.06);
}

/* MAIN LAYOUT: narrative + meta card */

.project-layout {
  margin-bottom: 4.8rem;
}

.project-layout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: flex-start;
}

.project-layout__main p + p {
  margin-top: 0.9rem;
}

.project-layout__main h2 {
  margin-top: 1.8rem;
}

/* Meta panel */

.project-layout__meta {
  background: #ffffff;
  border-radius: var(--pebble-radius-lg);
  box-shadow: var(--pebble-shadow-soft);
  padding: 1.8rem 1.9rem 2.1rem;
  font-size: 0.9rem;
  color: var(--pebble-muted);
}

.project-layout__meta h3 {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.project-meta-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.project-meta-list__item {
  margin: 0;
}

.project-meta-list__item dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 0.15rem;
  color: var(--pebble-muted);
}

.project-meta-list__item dd {
  margin: 0;
  color: var(--pebble-text);
}

.project-layout__meta-note {
  margin: 1.2rem 0 0.7rem;
}

.project-layout__meta-link {
  display: inline-flex;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pebble-green-dark);
}

/* HOMEPAGE – recent work gallery */

.section-gallery .gallery-grid {
  display: grid;
  gap: 2.4rem;
}

/* Make the whole card (anchor) look like a soft tile */
.section-gallery .gallery-card--preview {
  display: block;
  background: #ffffff;
  border-radius: 1.6rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  transform: translateY(0);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

/* Image treatment */
.section-gallery .gallery-card--preview img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Caption styling */
.section-gallery .gallery-card--preview figcaption {
  padding: 1.2rem 1.4rem 1.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.6;
}

/* Hover / focus – subtle lift */
.section-gallery .gallery-card--preview:hover,
.section-gallery .gallery-card--preview:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.11);
  background-color: #fcfcfa;
}

/* PROJECT PAGES – gallery inside project templates  */
.project-gallery__header {
  max-width: 640px;
}

.project-gallery__grid {
  margin-top: 1.2rem;
}

.project-gallery__grid .gallery-card {
  box-shadow: var(--pebble-shadow-soft);
  border-radius: 1.4rem; /* optional but nice */
}

.project-gallery__grid .gallery-card__meta {
  padding-top: 0.75rem;
}

/* Back link under gallery */
.project-gallery__cta {
  margin-top: 2rem;
  text-align: left;
}


/* RESPONSIVE */

@media (max-width: 900px) {
  .section.project-hero {
    margin-top: 2.4rem;
    margin-bottom: 3.6rem;
  }

  .project-hero__grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .project-hero__image {
    order: -1;
    max-height: none;
    aspect-ratio: 4 / 3;
  }

  .project-layout__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-layout__meta {
    padding: 1.6rem 1.5rem 1.9rem;
  }
}


/* ---------- Contact page ---------- */

.contact-hero .section-header {
  max-width: 720px;
}

.contact-hero .section-header p {
  max-width: 40rem;
}

.contact-layout {
  margin-top: 0.5rem;
  margin-bottom: 4.5rem;
}

.contact-layout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.75rem;
  align-items: flex-start;
}

.contact-details h2 {
  margin-bottom: 0.6rem;
}

.contact-details p {
  max-width: 32rem;
}

.contact-details__item {
  margin-top: 1.5rem;
}

.contact-details__item h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.3rem;
}

.contact-details__item p {
  font-size: 0.95rem;
}

.contact-panel {
  background: var(--pebble-surface);
  border-radius: var(--pebble-radius-lg);
  box-shadow: var(--pebble-shadow-soft);
  padding: 2.2rem 2.3rem 2.5rem;
}

.contact-panel h2 {
  margin-bottom: 0.4rem;
}

.contact-panel__intro {
  margin-top: 0;
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
  color: var(--pebble-muted);
}

/* Form layout */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

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

.contact-form__row--meta {
  margin-top: 0.2rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Labels & inputs */

.contact-form label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--pebble-muted);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--pebble-radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  outline: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--pebble-green);
  box-shadow: 0 0 0 1px rgba(122, 164, 113, 0.4);
  background: #ffffff;
}

/* Actions */

.contact-form__actions {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.contact-form__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--pebble-muted);
}

/* ---------- Contact hero meta row ---------- */

.contact-hero {
  margin-bottom: 2.8rem;
}

.contact-hero__meta {
  max-width: 1180px;
  margin: 0 auto 0;
  padding: 0 2.2rem 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.contact-hero__meta li {
  flex: 1 1 220px;
  min-width: 0;
}

.contact-hero__meta strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.contact-hero__meta span {
  display: block;
  font-size: 0.95rem;
  color: var(--pebble-muted);
}
/* PROJECT PAGE STYLES */

.project-hero {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.project-hero__image img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.project-hero__content {
  padding: 1rem 0;
}

.project-hero__location {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Overview section */
.project-overview__grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.project-overview__image img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

/* Gallery */
.project-gallery__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.project-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.project-gallery__item img:hover {
  transform: scale(1.02);
}

/* Video */
.project-video__wrap video {
  width: 100%;
  border-radius: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .project-hero,
  .project-overview__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- About section with image (home) ---------- */

.section-about {
  margin-top: 4.5rem;
  margin-bottom: 4.5rem;
}

.section-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: flex-start; /* top-align text + image */
}

.section-about__text p:last-of-type {
  max-width: 32rem;
}

/* ABOUT: base image card */
.section-about__image {
  margin: 1.5rem 0 0;
  border-radius: var(--pebble-radius-lg);
  overflow: hidden;
  background: #ffffff; /* matches the site aesthetic */
  box-shadow: var(--pebble-shadow-soft);
  aspect-ratio: 4 / 3;
}

/* Scrollable “film-strip” variant */
.section-about__image--scroll {
  background: #ffffff;
  border-radius: var(--pebble-radius-lg);
  padding: 0.6rem;
  box-shadow: var(--pebble-shadow-soft);
  display: flex;
  flex-direction: column;
}

/* Film-strip container */
.about-scroll-gallery {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.25rem;

  scrollbar-width: none; /* Firefox */
}
.about-scroll-gallery::-webkit-scrollbar {
  display: none; /* WebKit */
}

/* Each image tile */
.about-scroll-gallery__item {
  flex: 0 0 100%;
  scroll-snap-align: center;
  border-radius: var(--pebble-radius-lg);
  overflow: hidden;
  background: #000; /* keeps deep contrast inside image itself */
}

.about-scroll-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 2.5s ease-out;
}

.about-scroll-gallery__item:hover img {
  transform: scale(1.06);
}

/* “Swipe to see more” text */
.about-scroll-hint {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pebble-muted);
  text-align: center; /* softer, more elegant */
}

.section-about__image--scroll {
  border: 1px solid rgba(0,0,0,0.06);
}

/* Mobile – show part of next image */
@media (max-width: 800px) {
  .about-scroll-gallery__item {
    flex: 0 0 82%;
  }
}



/* ---------- About page layout ---------- */

.about-hero .section-header {
  max-width: 720px;
}

.about-hero .section-header p {
  max-width: 40rem;
  margin-top: 0.9rem;
}

.about-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

/* hero image */
.about-hero__image {
  margin: 0.7rem 0 0;
  border-radius: var(--pebble-radius-lg);
  overflow: hidden;
  box-shadow: var(--pebble-shadow-soft);
  background: #000;
}

.about-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 2.5s ease-out;
}

.about-hero__image:hover img {
  transform: scale(1.06);
}

/* hero meta row (quick facts) */
.about-hero__meta {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.6rem;
  font-size: 0.9rem;
  color: var(--pebble-muted);
}

.about-hero__meta li {
  min-width: 10rem;
}

.about-hero__meta strong {
  display: block;
  font-size: 0.96rem;
  color: var(--pebble-text);
}

/* ---------- Studio / Design approach block ---------- */

.about-grid {
  margin-top: 4rem;
  margin-bottom: 4.8rem;
}

/* centred intro above the two cards */
.about-grid__header {
  max-width: 720px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.about-grid__header p {
  max-width: 36rem;
  margin: 0.9rem auto 0;
  color: var(--pebble-muted);
}

/* two elevated cards */
.about-grid__body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.about-grid__card {
  background: #ffffff;
  border-radius: var(--pebble-radius-lg);
  box-shadow: var(--pebble-shadow-soft);
  padding: 2.4rem 2.6rem 2.6rem;
}

.about-grid__card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.about-grid__card p + p {
  margin-top: 0.9rem;
}

/* ---------- Where we work / How we work ---------- */

.about-details {
  margin-top: 0.5rem;
  margin-bottom: 5.5rem;
}

/* remove the big outer soft card – we use inner cards instead */
.about-details.section--soft {
  background: transparent;
  box-shadow: none;
  padding-top: 0;
  padding-bottom: 0;
}

/* centred intro above cards */
.about-details__header {
  max-width: 780px;
  margin: 0 auto 2.6rem;
  text-align: center;
}

.about-details__header h2 {
  margin-bottom: 0.6rem;
}

.about-details__header p {
  max-width: 40rem;
  margin: 0.9rem auto 0;
  color: var(--pebble-muted);
}

/* inner cards */
.about-details__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.about-details__card {
  background: #ffffff;
  border-radius: var(--pebble-radius-lg);
  box-shadow: var(--pebble-shadow-soft);
  padding: 2.4rem 2.5rem 2.6rem;
}

.about-details__card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.about-details__card p {
  max-width: 36rem;
}

/* locations list */
.about-areas-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 1.6rem;
  font-size: 0.96rem;
}

.about-areas-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.4rem;
}

.about-areas-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--pebble-green);
}

/* process as a numbered timeline */
.about-process {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
  font-size: 0.96rem;
  counter-reset: step;
}

.about-process li {
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 1.3rem;
}

.about-process li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--pebble-green-light);
  color: var(--pebble-green-dark);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-process strong {
  display: inline-block;
  margin-bottom: 0.15rem;
}

/* wide image band between sections */

.about-feature-image {
  margin-top: 0.5rem;
  margin-bottom: 5rem;
}

.about-feature-image__frame {
  margin: 0;
  border-radius: var(--pebble-radius-lg);
  overflow: hidden;
  box-shadow: var(--pebble-shadow-soft);
}

.about-feature-image__frame img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* ---------- About: scrolling planting gallery ---------- */

.about-feature-gallery {
  margin-top: 0.5rem;
  margin-bottom: 5rem;
}

.about-feature-gallery__header {
  max-width: 720px;
  margin-bottom: 2.1rem;
}

.about-feature-gallery__header h2 {
  margin-bottom: 0.7rem;
}

.about-feature-gallery__header p {
  max-width: 40rem;
}

/* Horizontal strip */
.about-feature-gallery__strip {
  display: flex;
  gap: 1.3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.6rem;
  scrollbar-width: none; /* Firefox */
}

.about-feature-gallery__strip::-webkit-scrollbar {
  display: none; /* WebKit */
}

.about-feature-gallery__item {
  flex: 0 0 72%;
  max-width: 560px;
  scroll-snap-align: center;
  border-radius: var(--pebble-radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--pebble-shadow-soft);
  position: relative;
}

.about-feature-gallery__item img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transform: scale(1.03);
  transition:
    transform 2.3s ease-out,
    opacity 0.4s ease-out;
}

.about-feature-gallery__item:hover img {
  transform: scale(1.07);
}

.about-feature-gallery__item figcaption {
  position: absolute;
  left: 1.3rem;
  bottom: 1.1rem;
  right: 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

/* Mobile tweaks */
@media (max-width: 800px) {
  .about-feature-gallery {
    margin-bottom: 3.8rem;
  }

  .about-feature-gallery__strip {
    gap: 1rem;
  }

  .about-feature-gallery__item {
    flex: 0 0 82%;
  }

  .about-feature-gallery__item img {
    height: 260px;
  }
}


/* ---------- About: Founder section ---------- */

.about-founder__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.about-founder__photo {
  border-radius: var(--pebble-radius-lg);
  overflow: hidden;
  box-shadow: var(--pebble-shadow-soft);
  background: #000;
  max-height: 480px;
  aspect-ratio: 4 / 5;
}

.about-founder__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 2.5s ease-out;
}

.about-founder__photo:hover img {
  transform: scale(1.06);
}

.about-founder__content {
  max-width: 36rem;
}

.about-founder__content p + p {
  margin-top: 0.9rem;
}

/* Mobile layout */
@media (max-width: 800px) {
  .about-hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-hero__image {
    margin-top: 0;
  }

  .about-hero__meta {
    gap: 1.1rem 1.6rem;
  }

  .about-grid__body {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .about-grid__card {
    padding: 2rem 1.8rem 2.2rem;
  }

  .about-details__grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .about-details__card {
    padding: 2rem 1.8rem 2.2rem;
  }

  .about-founder__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-founder__photo {
    max-height: 380px;
    aspect-ratio: 4 / 5;
  }

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

  .about-hero__meta {
    gap: 1rem 1.8rem;
  }
}

/* ---------- SEO service hero (text + locations) ---------- */

.section.seo-hero {
  margin-top: 2.4rem;
  margin-bottom: 3.6rem;
}

/* reset the home-hero flex behaviour for SEO heroes */
.section.seo-hero .hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0; /* section already has horizontal padding */
  display: block;
}

.section.seo-hero .hero__inner.hero__inner--split {
  display: grid;
  gap: 3rem;
  align-items: flex-start;
}

/* main copy column */
.section.seo-hero .hero__primary {
  max-width: 40rem;
}

.section.seo-hero .hero__lead {
  margin-top: 0.75rem;
  max-width: 36rem;
  color: var(--pebble-muted);
}

/* locations “card” */
.section.seo-hero .hero__secondary {
  background: #f4f5f0;
  border-radius: 1.25rem;
  border-left: none;
  padding: 1.7rem 1.9rem;
}

.section.seo-hero .hero__kicker {
  margin-bottom: 0.45rem;
}

.section.seo-hero .hero__location-list {
  columns: 2;
  column-gap: 1.6rem;
}

/* ---------- SEO hero – responsive tweaks ---------- */

@media (max-width: 900px) {
  .section.seo-hero {
    margin-top: 1.4rem;
    margin-bottom: 3.2rem;
  }

  .section.seo-hero .hero__inner.hero__inner--split {
    gap: 1.8rem;
  }

  .section.seo-hero h1 {
    font-size: clamp(1.9rem, 6vw, 2.3rem);
  }

  .section.seo-hero .hero__lead {
    font-size: 0.95rem;
  }

  .section.seo-hero .hero__secondary {
    padding: 1.4rem 1.4rem 1.6rem;
  }

  .section.seo-hero .hero__location-list {
    columns: 2;
  }
}

@media (max-width: 520px) {
  /* let locations breathe on very small screens */
  .section.seo-hero .hero__location-list {
    columns: 1;
  }
}


.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2.4rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(10, 22, 15, 0.82);
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  backdrop-filter: blur(18px);
  z-index: 3;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    opacity 0.3s ease;
}

.hero-scroll-hint__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.hero-scroll-hint__line {
  width: 1px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.9)
  );
  position: relative;
  overflow: hidden;
}

.hero-scroll-hint__line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -12px;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 1);
  animation: hero-scroll-line 1.7s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.hero-scroll-hint__label {
  opacity: 0.9;
}

.hero-scroll-hint:hover {
  background: rgba(10, 22, 15, 0.92);
  transform: translateX(-50%) translateY(-2px);
  border-color: rgba(255, 255, 255, 0.26);
}

@keyframes hero-scroll-line {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    transform: translateY(14px);
    opacity: 1;
  }
  100% {
    transform: translateY(18px);
    opacity: 0;
  }
}
/* Basic two-column layout helpers */
.content--split {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .content--split {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
  .content--split-reverse {
    grid-auto-flow: dense;
  }
}

/* Hero split */
.hero__inner--split {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .hero__inner--split {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: center;
  }
}

.hero__secondary {
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 0;

  /* subtle vertical rule to separate from the main copy on desktop */
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  padding-left: 2rem;
}

/* mobile: remove the rule and give some breathing room */
@media (max-width: 900px) {
  .hero__inner--split {
    gap: 2.2rem;
  }

  .hero__secondary {
    border-left: none;
    padding-left: 0;
    padding-top: 0.5rem;
  }
}

.hero__kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.55rem;
  color: var(--pebble-muted);
}

.hero__location-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 1.6rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero__location-list li {
  break-inside: avoid;
  margin-bottom: 0.25rem;
}


/* Key points / asides */
.key-points,
.location-note {
  background: #f4f5f0;
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
}

.key-points__title {
  margin-top: 0;
}

/* Service cards */
.service-grid {
  display: grid;
  gap: 1.85rem;
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.service-card {
  background: #f9faf7;
  border-radius: 1.5rem;
  padding: 1.5rem 1.75rem;
}

/* Process list */
.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-list--columns {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .process-list--columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.process-list--columns > li {
  background: #f9faf7;
  border-radius: 1.5rem;
  padding: 1.5rem 1.75rem;
}

/* FAQs */
.faq-list {
  margin: 0;
  padding: 0;
}

.faq-item + .faq-item {
  margin-top: 1.5rem;
}

.faq-item dt {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  padding-top: 1.25rem;
  padding-bottom: 0.5rem;
  color: #667066;
}

.breadcrumb a {
  text-decoration: none;
}

/* FOOTER: stop service links breaking onto separate lines */
.site-footer__services-list a {
  white-space: nowrap;
}

/* ---------- Page-load luxury animations ---------- */

/* Whole section easing in slightly from below */
.anim-section {
  opacity: 0;
  transform: translateY(18px);
  animation: section-in 900ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: var(--section-delay, 0.15s);
  will-change: opacity, transform;
}

/* Key content items (cards, headers, images) with a softer offset */
.anim-item {
  opacity: 0;
  transform: translateY(14px);
  animation: item-in 900ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: var(--item-delay, 0.25s);
  will-change: opacity, transform;
}

@keyframes section-in {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  60% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes item-in {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  60% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 3D Visualisation page ---------- */

.visual-hero .section-header {
  max-width: 720px;
}

.visual-hero .section-header p {
  max-width: 40rem;
  margin-top: 0.9rem;
}

.visual-grid {
  margin-top: 1.5rem;
  margin-bottom: 4.5rem;
}

.visual-grid__col {
  max-width: 32rem;
}

.visual-grid__col p + p {
  margin-top: 0.9rem;
}

.visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr);
  gap: 2.75rem;
  align-items: flex-start;
}

/* visual samples grid tweaks */

.section-visual-samples {
  margin-bottom: 4.5rem;
}

.gallery-grid--visuals {
  gap: 1.8rem;
}

/* Make visual cards feel like a gallery, not generic cards */
.gallery-card--visual {
  background: transparent;
  box-shadow: none;
  border-radius: var(--pebble-radius-lg);
  overflow: hidden;
}

.gallery-card--visual img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transform: scale(1.02);
  transition:
    transform 2.2s ease-out,
    opacity 0.3s ease-out;
}

.gallery-card--visual:hover img {
  transform: scale(1.06);
}

.gallery-card--visual .gallery-card__meta {
  padding: 0.85rem 0.2rem 0;
}

.gallery-card--visual .gallery-card__location {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pebble-green-dark);
}

.gallery-card--visual .gallery-card__desc {
  font-size: 0.9rem;
  color: var(--pebble-text);
}

/* Home gallery preview – luxury slow reveal */
.gallery-card--preview {
  opacity: 0;
  transform: translateY(40px) scale(0.94); /* stronger start position */
  filter: blur(6px);
  transition:
    opacity 1300ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1300ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 1000ms ease-out,
    box-shadow 500ms ease;
  transition-delay: var(--card-delay, 0ms);
  will-change: opacity, transform, filter;
}

/* ---------- Home gallery: slow, cinematic reveal ---------- */

/* initial state: completely hidden, slightly below, a bit smaller and blurred */
.gallery-card--preview {
  opacity: 0;
  transform: translateY(42px) scale(0.94);
  filter: blur(10px);
  will-change: opacity, transform, filter;
}

/* the actual reveal animation – triggered when .is-visible is added */
.gallery-card--preview.is-visible {
  animation: gallery-reveal 1800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--card-delay, 0ms);
}

/* image itself does a very slow, subtle de-zoom */
.gallery-card--preview img {
  transform: scale(1.05);
  transition: transform 2200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card--preview.is-visible img {
  transform: scale(1.0);
}

/* keyframes: start low & blurred, float slightly above, then settle */
@keyframes gallery-reveal {
  0% {
    opacity: 0;
    transform: translateY(42px) scale(0.94);
    filter: blur(10px);
  }
  55% {
    opacity: 1;
    transform: translateY(-4px) scale(1.0);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1.0);
    filter: blur(0);
  }
}

/* hover: keep it subtle so it doesn't fight the reveal animation */
.gallery-card--preview:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.12);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease;
}


/* Service cards */
.card--service {
  text-align: center;
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Icon — centered, circular badge */
.card__icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  background: rgba(122, 164, 113, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

/* Title spacing */
.card--service h3 {
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
}


/* 3D Visualisation hero with image / video */

.visual-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.visual-hero__image {
  margin: 0.7rem 0 0;
  border-radius: var(--pebble-radius-lg);
  overflow: hidden;
  box-shadow: var(--pebble-shadow-soft);
  background: #000;

  max-height: 520px;
  aspect-ratio: 4 / 5;
}

/* shared media styling for either img or video inside the hero frame */
.visual-hero__image img,
.visual-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* wide feature visuals between explainer and grid */

.visual-feature {
  margin-top: 0.5rem;
  margin-bottom: 4.8rem;
}

.visual-feature__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.8rem;
}

.visual-feature__image {
  margin: 0;
  border-radius: var(--pebble-radius-lg);
  overflow: hidden;
  box-shadow: var(--pebble-shadow-soft);
  background: #000;
  position: relative;
}

.visual-feature__image img,
.visual-feature__image video {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  transform: scale(1.02);
  transition:
    transform 2.5s ease-out,
    opacity 0.4s ease-out;
}

.visual-feature__image:hover img,
.visual-feature__image:hover video {
  transform: scale(1.06);
}

/* small play badge overlay for the “video” tile */
.visual-feature__image--video .visual-feature__play-badge {
  position: absolute;
  inset: auto 1.2rem 1.2rem auto;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Feature video block styling */
.visual-feature__video-block {
  position: relative;
  overflow: hidden;
  border-radius: var(--pebble-radius-lg);
  box-shadow: var(--pebble-shadow-soft);
  background: #000;
}

.visual-feature__video {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 2.5s ease-out;
}

.visual-feature__video-block:hover .visual-feature__video {
  transform: scale(1.06);
}

/* Badge that sits on top of the feature video */
.visual-feature__play-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.visual-feature__play-badge--inline {
  position: absolute;
  right: 1.3rem;
  bottom: 1.3rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
}

.visual-feature__play-badge--inline:hover {
  background: rgba(0, 0, 0, 0.9);
}

.visual-feature__play-icon {
  font-size: 0.8rem;
}

.visual-feature__play-text {
  white-space: nowrap;
}

.visual-hero__image iframe.visual-hero__video,
.visual-feature__image iframe.visual-feature__video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.visual-hero__image,
.visual-feature__video-block {
  aspect-ratio: 16 / 9;
  max-height: none;           /* override earlier max-height if needed */
}

/* ---------- Hero (home hero overlay with sliding background) ---------- */

.hero.hero--overlay {
  position: relative;
  min-height: 86vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
}

/* background slider */

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0; /* sits behind shade + content */
}

.hero-bg__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 1.8s ease-in-out,
    transform 7s ease-out;
}

.hero-bg__slide.is-active {
  opacity: 1;
  transform: scale(1.06);
}

/* dark gradient overlay above images */

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(8, 21, 13, 0.4),
      rgba(14, 30, 20, 0.85)
    );
  z-index: 1; /* above images, below content */
}

/* centres content and gives breathing room */

.hero__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.8rem 2.2rem 4.2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2; /* on top of everything */
}

/* glassy card with subtle motion */

.hero__panel {
  max-width: 760px;
  width: 100%;
  background: rgba(12, 24, 17, 0.88);
  border-radius: var(--pebble-radius-lg);
  box-shadow: var(--pebble-shadow-soft);
  padding: 2.6rem 3.1rem 2.9rem;
  text-align: left;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);

  display: flex;
  flex-direction: column;
  gap: 1rem;

  opacity: 0;
  transform: translateY(18px) scale(0.985);
  animation: hero-panel-in 650ms ease-out forwards;
}

/* Eyebrow above title */

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

/* Title + text */

.hero__title {
  color: #ffffff;
  margin: 0.3rem 0 0.8rem;
  font-size: clamp(2.3rem, 3.2vw, 3rem);
  line-height: 1.12;
}

.hero__lead {
  font-size: 1.02rem;
  margin: 0;
  max-width: 40rem;
}

.hero__body {
  font-size: 0.96rem;
  margin: 0.2rem 0 0.4rem;
  max-width: 42rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.section.section-services.section--soft {
  padding-top: 6rem;
  padding-bottom: 6rem;
}


/* Home services header: centre and give a bit more breathing room */
.section-services__header {
  text-align: center;
  margin: 0 auto 2.4rem;
}

/* Make the services section a full-width white band,
   while keeping the content aligned to the main layout */
.section.section-services {
  max-width: 100%;          /* no 1180px cap on the section itself */
  margin: 0 0 5.2rem;       /* bottom spacing only */
  padding: 0;               /* we’ll pad the inner content instead */
}

/* remove the "floating card" look on this specific soft section */
.section.section-services.section--soft {
  border-radius: 0;
  box-shadow: none;
  background: #ffffff;      /* full-width white band */
}

/* constrain and pad the *content* inside the band */
.section.section-services > .section-header,
.section.section-services > .card-grid {
  max-width: 1180px;        /* match rest of site */
  margin-left: auto;
  margin-right: auto;
  padding-inline: 2.2rem;
}

/* keep header centred with nice spacing */
.section-services__header {
  text-align: center;
  margin: 0 auto 2.4rem;
}

/* entrance animation */

@keyframes hero-panel-in {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.975);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Accreditation block below footer */
.site-accreditation {
  padding: 2.2rem 0 3.4rem;
}

.site-accreditation__inner {
  max-width: 1180px;      /* same container width as rest of site */
  margin: 0 auto;         /* centre the container on the page */
  padding: 0 2.2rem;
  text-align: center;     /* centre whatever is inside */
}

.site-accreditation__inner img {
  display: inline-block;
  margin: 0 auto;
  height: 58px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(100%);
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.site-accreditation__inner img:hover {
  opacity: 1;
  filter: grayscale(0%);
}



/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

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

.btn--primary:hover {
  background: var(--pebble-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.btn--ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.9);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* ---------- Cards / gallery preview ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--pebble-surface);
  border-radius: var(--pebble-radius-lg);
  padding: 1.6rem 1.6rem 1.75rem;
  box-shadow: var(--pebble-shadow-soft);
}

/* Services card enhancements */
.card-grid--services {
  margin-top: 2rem;
}

.card-grid--services .card {
  padding-top: 1.8rem;
  padding-bottom: 2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.card-grid--services .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.09);
  border-color: rgba(0, 0, 0, 0.05);
}

.card-grid--services .card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}

/* Gallery cards */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.gallery-card {
  background: var(--pebble-surface);
  border-radius: var(--pebble-radius-lg);
  overflow: hidden;
  box-shadow: var(--pebble-shadow-soft);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 0.9rem 1.2rem 1.1rem;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pebble-muted);
}

/* Full portfolio grid tweaks */
.gallery-grid--projects {
  gap: 1.8rem;
}

/* Project cards (portfolio) with staggered reveal */
.gallery-card--project {
  text-decoration: none;
  color: inherit;

  /* reveal-from-below baseline */
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out,
    box-shadow 0.16s ease;
  transition-delay: var(--card-delay, 0ms);
}

.gallery-card--project figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-card--project img {
  height: 260px;
}

/* when IntersectionObserver adds .is-visible */
.gallery-card--project.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card__meta {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gallery-card__location {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pebble-green-dark);
}

.gallery-card__desc {
  font-size: 0.9rem;
  color: var(--pebble-text);
}

/* subtle hover lift */
.gallery-card--project:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.12);
}

/* ---------- Section reveal animation (legacy, kept for safety) ---------- */

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

/* If some old sections still use .section--reveal.is-visible, keep a mild animation */
.section--reveal.is-visible {
  animation: section-fade-in 600ms ease-out both;
}

@keyframes section-fade-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Section reveal animations (per-section with children) ---------- */
/* IMPORTANT: sections are visible by default; animation only enhances. */

.section--animate {
  opacity: 1;
  transform: translateY(0);
}

/* children start “normal” too; JS will add the animation when in view */
.section--animate [data-animate-child] {
  opacity: 1;
  transform: translateY(0);
}

/* when IntersectionObserver adds .is-inview, animate the children in */
.section--animate.is-inview [data-animate-child] {
  animation: section-child-in 600ms ease-out both;
  animation-delay: var(--card-delay, 120ms);
}

@keyframes section-child-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---------- Responsive ---------- */

@media (max-width: 800px) {
  .site-header__inner {
    padding: 0.6rem 1.2rem;
  }


  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    display: block;
  }
  .hero.hero--overlay {
    min-height: 78vh;
  }

  .hero__inner {
    padding: 3.8rem 1.4rem 3.2rem;
  }

  .hero__panel {
    max-width: 100%;
    padding: 2.1rem 1.6rem 2.3rem;
    border-radius: var(--pebble-radius-lg);
  }

  .hero__title {
    font-size: clamp(1.9rem, 6vw, 2.3rem);
    margin-bottom: 0.7rem;
  }

  .hero__lead,
  .hero__body {
    font-size: 0.9rem;
  }

  .hero__actions {
    gap: 0.8rem;
  }

  /* background slider for home hero */

  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0; /* at the back of the hero */
  }

  .hero-bg__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
  }

  .hero-bg__slide.is-active {
    opacity: 1;
  }

  .section {
    padding-inline: 1.4rem;
    margin-bottom: 3rem;
  }

  .section--relaxed {
    margin-bottom: 3.5rem;
  }

  .section--soft {
    padding-top: 2rem;
    padding-bottom: 2.3rem;
    border-radius: var(--pebble-radius-lg);
  }

  .card-grid,
  .gallery-grid {
    gap: 1.2rem;
  }

  /* Home About section (image + text) stacks on mobile */
  .section-about__grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  /* show image above text on mobile for home About */
  .section-about__image {
    order: -1;
    margin-top: 0;
    aspect-ratio: 4 / 3;
  }

  /* About page grids & hero */
  .about-hero__grid,
  .about-details__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-hero__image {
    margin-top: 0;
  }

  /* Portfolio & visualisation cards: slightly shorter images + tighter padding */
  .gallery-card--project img,
  .gallery-card--visual img {
    height: 220px;
  }

  .gallery-card__meta {
    padding: 0.85rem 1rem 1.1rem;
  }

  /* 3D Visualisation text grid stacks */
  .visual-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* 3D Visualisation hero stacks, video/image above text */
  .visual-hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .visual-hero__image {
    max-height: 420px;
    aspect-ratio: 3 / 4;
    margin-top: 0;
  }

  /* 3D Visualisation wide feature row stacks */
  .visual-feature__row {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  /* Contact page: stack columns and simplify form layout */
  .contact-layout__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-panel {
    padding: 1.8rem 1.6rem 2.1rem;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }
}

/* these stay global (not mobile-only) */

.section-intro-inner {
  max-width: 720px;
}

/* inline text-style button under gallery */
.btn-link {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pebble-green-dark);
}

.section-cta {
  margin-bottom: 5rem;
}

.section-cta-inner {
  background: #ffffff;
  border-radius: var(--pebble-radius-lg);
  box-shadow: var(--pebble-shadow-soft);
  padding: 2.2rem 2rem;
  text-align: center;
}

.section-cta-inner p {
  max-width: 460px;
  margin: 0.7rem auto 1.5rem;
  color: var(--pebble-muted);
}
