/* ============================================================
   THE TIDY YARD CO. — Design System v3
   Fonts: Cormorant Garamond (display) + Outfit (body)
   ============================================================ */

/* ---- 1. Tokens ------------------------------------------- */
:root {
  /* Colors */
  --c-deep:   #0C342C;
  --c-forest: #076653;
  --c-lime:   #E3EF26;
  --c-sage:   #E2FBCE;
  --c-cream:  #FFFDEE;
  --c-ink:    #06231D;

  /* Fonts */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', 'Helvetica Neue', sans-serif;

  /* Spacing (8px grid) */
  --sp-1:  0.5rem;
  --sp-2:  1rem;
  --sp-3:  1.5rem;
  --sp-4:  2rem;
  --sp-5:  2.5rem;
  --sp-6:  3rem;
  --sp-7:  3.5rem;
  --sp-8:  4rem;
  --sp-12: 6rem;
  --sp-16: 8rem;
  --sp-20: 10rem;

  /* Layout */
  --max-w: 1280px;
  --px:    clamp(1.5rem, 5vw, 4rem);
  --nav-h: 76px;

  /* Easing */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-inout:  cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---- 2. Reset -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; -webkit-appearance: none; border-radius: 0; }

/* ---- 3. Base --------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- 4. Typography --------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4 { font-weight: inherit; }

.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.4;
}

.body-lg {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  max-width: 65ch;
}

.label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---- 5. Layout ------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

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

.section--dark   { background: var(--c-deep); color: var(--c-cream); }
.section--forest { background: var(--c-forest); color: var(--c-cream); }
.section--sage   { background: var(--c-sage); color: var(--c-ink); }
.section--cream  { background: var(--c-cream); color: var(--c-ink); }

/* ---- 6. Navigation --------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding-inline: var(--px);
  transition: background 280ms var(--ease-out), backdrop-filter 280ms var(--ease-out);
}

.nav.nav--scrolled {
  background: rgba(12, 52, 44, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav__inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav__logo img { width: 140px; height: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-left: auto;
}

.nav__links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-cream);
  opacity: 0.8;
  transition: opacity 160ms ease;
}

.nav__links a:hover { opacity: 1; }

.nav__cta {
  margin-left: var(--sp-3);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: var(--sp-1);
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--c-cream);
  transition: transform 220ms var(--ease-out), opacity 220ms ease;
}

.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--c-deep);
  padding: var(--sp-4) var(--px) var(--sp-6);
  flex-direction: column;
  gap: var(--sp-3);
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 240ms var(--ease-out), opacity 240ms ease;
}

.nav__mobile.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.nav__mobile a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--c-cream);
  transition: color 160ms ease;
}

.nav__mobile a:hover { color: var(--c-lime); }

/* ---- 7. Buttons ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  padding: 0.875rem 1.75rem;
  border-radius: 2px;
  white-space: nowrap;
  transition: opacity 160ms ease, transform 160ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}

.btn--lime {
  background: var(--c-lime);
  color: var(--c-ink);
}

.btn--lime:hover { opacity: 0.88; }

.btn--dark {
  background: var(--c-deep);
  color: var(--c-cream);
}

.btn--dark:hover { opacity: 0.85; }

.btn--ghost {
  background: transparent;
  color: var(--c-cream);
  border: 1px solid rgba(255, 253, 238, 0.35);
}

.btn--ghost:hover {
  border-color: rgba(255, 253, 238, 0.7);
  background: rgba(255, 253, 238, 0.06);
}

.btn--outline {
  background: transparent;
  color: var(--c-ink);
  border: 1px solid var(--c-ink);
}

.btn--outline:hover { background: var(--c-ink); color: var(--c-cream); }

/* ---- 8. Hero --------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-inline: var(--px);
  color: var(--c-cream);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 52, 44, 0.92) 0%,
    rgba(12, 52, 44, 0.55) 50%,
    rgba(12, 52, 44, 0.35) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
}

.hero__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-lime);
  margin-bottom: var(--sp-3);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 500ms var(--ease-out) 100ms forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
  max-width: 16ch;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 600ms var(--ease-out) 200ms forwards;
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  max-width: 48ch;
  opacity: 0;
  color: rgba(255, 253, 238, 0.8);
  transform: translateY(12px);
  animation: fadeUp 500ms var(--ease-out) 300ms forwards;
  margin-bottom: var(--sp-6);
}

.hero__actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 500ms var(--ease-out) 380ms forwards;
}

.hero__scroll {
  position: absolute;
  bottom: var(--sp-6);
  right: var(--px);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  opacity: 0;
  animation: fadeUp 500ms var(--ease-out) 600ms forwards;
}

.hero__scroll span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 253, 238, 0.5);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255, 253, 238, 0.25);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--c-lime);
  animation: scrollLine 1.8s var(--ease-inout) 1s infinite;
}

@keyframes scrollLine {
  0%   { top: -100%; height: 100%; }
  100% { top: 200%; height: 100%; }
}

/* ---- 9. Section headers ---------------------------------- */
.section-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header .label {
  display: block;
  margin-bottom: var(--sp-2);
  opacity: 0.6;
}

.section-header--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ---- 10. Services list ----------------------------------- */
.services-list {
  border-top: 1px solid rgba(6, 35, 29, 0.12);
}

.section--dark .services-list {
  border-top-color: rgba(255, 253, 238, 0.1);
}

.services-list__item {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: center;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid rgba(6, 35, 29, 0.12);
  transition: background 200ms ease;
  padding-inline: var(--sp-2);
  border-radius: 2px;
  cursor: default;
}

.section--dark .services-list__item {
  border-bottom-color: rgba(255, 253, 238, 0.1);
}

.services-list__item:hover {
  background: rgba(6, 35, 29, 0.04);
}

.section--dark .services-list__item:hover {
  background: rgba(255, 253, 238, 0.04);
}

.services-list__num {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  opacity: 0.35;
  flex-shrink: 0;
}

.services-list__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.services-list__body p {
  font-size: 0.9rem;
  opacity: 0.6;
  line-height: 1.5;
  max-width: 48ch;
}

.services-list__arrow {
  font-size: 1.1rem;
  opacity: 0.25;
  transition: opacity 160ms ease, transform 220ms var(--ease-out);
  flex-shrink: 0;
}

.services-list__item:hover .services-list__arrow {
  opacity: 0.8;
  transform: translateX(4px);
}

/* ---- 11. Why us grid ------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-1);
}

.why-card {
  padding: clamp(2rem, 4vw, 3.5rem);
  background: rgba(255, 253, 238, 0.04);
  border: 1px solid rgba(255, 253, 238, 0.08);
  border-radius: 2px;
}

.why-card__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--c-lime);
  margin-bottom: var(--sp-3);
  opacity: 0.7;
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.why-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  opacity: 0.7;
  max-width: 36ch;
}

/* ---- 12. Projects grid ----------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-2);
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--c-forest);
}

.project-card:nth-child(1) { grid-column: span 7; aspect-ratio: 4/3; }
.project-card:nth-child(2) { grid-column: span 5; aspect-ratio: 3/4; }
.project-card:nth-child(3) { grid-column: span 5; aspect-ratio: 3/4; }
.project-card:nth-child(4) { grid-column: span 7; aspect-ratio: 4/3; }

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.project-card:hover .project-card__img {
  transform: scale(1.04);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 52, 44, 0.85) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-4);
}

.project-card__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-lime);
  margin-bottom: var(--sp-1);
}

.project-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--c-cream);
  line-height: 1.2;
}

/* ---- 13. Editorial quote --------------------------------- */
.editorial-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

.editorial-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-top: var(--sp-4);
}

.values-list {
  border-top: 1px solid rgba(255, 253, 238, 0.12);
  max-width: 680px;
}

.values-list__item {
  padding-block: var(--sp-4);
  border-bottom: 1px solid rgba(255, 253, 238, 0.12);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-6);
  align-items: start;
}

.values-list__item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 0.375rem;
  line-height: 1.2;
}

.values-list__item p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.65;
  max-width: 44ch;
}

.values-list__num {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.3;
  padding-top: 0.35rem;
}

/* Home photo grid */
.home-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: var(--sp-2);
}

.home-gallery__item {
  overflow: hidden;
  border-radius: 2px;
}

.home-gallery__item:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.home-gallery__item:not(:first-child) {
  aspect-ratio: 4/3;
}

.home-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.home-gallery__item:hover img {
  transform: scale(1.04);
}

/* ---- 14. CTA band ---------------------------------------- */
.cta-band {
  padding-block: clamp(5rem, 10vw, 9rem);
  padding-inline: var(--px);
  background: var(--c-deep);
  color: var(--c-cream);
  text-align: center;
}

.cta-band .h2 {
  margin-bottom: var(--sp-3);
  max-width: 22ch;
  margin-inline: auto;
}

.cta-band .body-lg {
  margin-inline: auto;
  margin-bottom: var(--sp-6);
  opacity: 0.75;
}

.cta-band__actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* ---- 15. About split ------------------------------------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about-split__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
}

.about-split__content .label {
  display: block;
  margin-bottom: var(--sp-3);
  opacity: 0.6;
}

.about-split__content .h2 {
  margin-bottom: var(--sp-4);
}

.about-split__content p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: var(--sp-3);
  max-width: 54ch;
}

.about-split__content p:last-of-type {
  margin-bottom: var(--sp-6);
}

/* ---- 16. Team grid --------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-4);
}

.team-card__img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: var(--sp-3);
  background: var(--c-sage);
}

.team-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}

.team-card:hover .team-card__img-wrap img {
  transform: scale(1.04);
}

.team-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.team-card p {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ---- 17. Services page ----------------------------------- */
.services-hero {
  padding-top: calc(var(--nav-h) + clamp(4rem, 8vw, 7rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background: var(--c-deep);
  color: var(--c-cream);
  padding-inline: var(--px);
}

.services-hero .label {
  display: block;
  margin-bottom: var(--sp-3);
  opacity: 0.6;
}

.pricing-card {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(2rem, 4vw, 3rem);
  background: rgba(255, 253, 238, 0.06);
  border: 1px solid rgba(255, 253, 238, 0.1);
  border-radius: 2px;
  max-width: 540px;
}

.pricing-card__rate {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--c-lime);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.pricing-card__rate span {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.6;
  vertical-align: super;
  font-family: var(--font-body);
}

.pricing-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  opacity: 0.7;
  max-width: 42ch;
}

/* ---- 18. Gallery grid ------------------------------------ */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}

.gallery-item {
  overflow: hidden;
  border-radius: 2px;
  background: var(--c-sage);
}

.gallery-item:nth-child(3n+1) { aspect-ratio: 4/5; }
.gallery-item:nth-child(3n+2) { aspect-ratio: 3/4; }
.gallery-item:nth-child(3n)   { aspect-ratio: 1; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}

.gallery-item:hover img { transform: scale(1.05); }

/* ---- 19. Contact page ------------------------------------ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-details {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-6));
}

.contact-details .label {
  display: block;
  margin-bottom: var(--sp-3);
  opacity: 0.6;
}

.contact-details .h2 {
  margin-bottom: var(--sp-4);
}

.contact-details p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.75;
  max-width: 42ch;
  margin-bottom: var(--sp-4);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.contact-info-item__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 0.25rem;
}

.contact-info-item__value {
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-info-item__value a:hover {
  opacity: 0.7;
}

.service-area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-top: var(--sp-3);
}

.chip {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.375rem 0.875rem;
  border: 1px solid rgba(6, 35, 29, 0.18);
  border-radius: 999px;
  color: var(--c-ink);
}

/* ---- 20. Contact form ------------------------------------ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: transparent;
  border: 1px solid rgba(6, 35, 29, 0.2);
  border-radius: 2px;
  font-size: 1rem;
  color: var(--c-ink);
  transition: border-color 180ms ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--c-forest);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.form-submit {
  margin-top: var(--sp-2);
}

/* ---- 21. Page hero (inner pages) ------------------------- */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(4rem, 8vw, 7rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-inline: var(--px);
  background: var(--c-deep);
  color: var(--c-cream);
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
}

.page-hero .label {
  display: block;
  margin-bottom: var(--sp-3);
  color: var(--c-lime);
}

/* ---- 22. Footer ------------------------------------------ */
.footer {
  background: var(--c-ink);
  color: var(--c-cream);
  padding: clamp(4rem, 8vw, 6rem) var(--px) var(--sp-6);
}

.footer__inner {
  max-width: var(--max-w);
  margin-inline: auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(255, 253, 238, 0.1);
  margin-bottom: var(--sp-6);
}

.footer__brand img { width: 130px; margin-bottom: var(--sp-3); }

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.65;
  opacity: 0.55;
  max-width: 32ch;
}

.footer__col h4 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: var(--sp-3);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__col ul li a {
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity 160ms ease;
}

.footer__col ul li a:hover { opacity: 1; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer__legal {
  font-size: 0.75rem;
  opacity: 0.35;
}

.footer__insta {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.5;
  transition: opacity 160ms ease;
}

.footer__insta:hover { opacity: 0.9; }

/* ---- 23. Scroll reveal animations ----------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}

.reveal-stagger.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 60ms; }
.reveal-stagger.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 120ms; }
.reveal-stagger.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 300ms; }
.reveal-stagger.is-visible > *:nth-child(7) { opacity: 1; transform: none; transition-delay: 360ms; }
.reveal-stagger.is-visible > *:nth-child(8) { opacity: 1; transform: none; transition-delay: 420ms; }
.reveal-stagger.is-visible > *:nth-child(9) { opacity: 1; transform: none; transition-delay: 480ms; }
.reveal-stagger.is-visible > *:nth-child(10) { opacity: 1; transform: none; transition-delay: 540ms; }

/* ---- 24. Keyframes --------------------------------------- */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- 25. Utility ----------------------------------------- */
.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;
}

.text-lime   { color: var(--c-lime); }
.text-cream  { color: var(--c-cream); }
.mt-auto     { margin-top: auto; }

/* ---- 26. Responsive -------------------------------------- */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-card:nth-child(1),
  .project-card:nth-child(2),
  .project-card:nth-child(3),
  .project-card:nth-child(4) {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile { display: flex; }

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

  .stats-row {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }

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

  .about-split__img {
    aspect-ratio: 4/3;
  }

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

  .contact-details {
    position: static;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(3n+1),
  .gallery-item:nth-child(3n+2),
  .gallery-item:nth-child(3n) {
    aspect-ratio: 4/3;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

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

  .project-card:nth-child(n) {
    aspect-ratio: 4/3;
  }

  .services-list__item {
    grid-template-columns: 2.5rem 1fr;
  }

  .services-list__arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band__actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ---- 27. Reduced motion ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero__label,
  .hero__title,
  .hero__sub,
  .hero__actions,
  .hero__scroll {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .project-card__img,
  .gallery-item img,
  .team-card__img-wrap img {
    transition: none;
  }

  .hero__scroll-line::after {
    animation: none;
  }
}

/* ---- 28. Statement block --------------------------------- */
.statement {
  background: var(--c-deep);
  color: var(--c-cream);
  padding: clamp(7rem, 14vw, 12rem) var(--px);
}

.statement__inner {
  max-width: var(--max-w);
  margin-inline: auto;
}

.statement__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2.8rem, 6vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.statement__text em {
  font-style: normal;
  color: var(--c-lime);
}

.statement__cite {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.38;
  margin-top: var(--sp-6);
}

/* ---- 29. Service lines ----------------------------------- */
.service-lines {
  padding: clamp(5rem, 10vw, 9rem) var(--px);
  background: var(--c-cream);
}

.service-lines__header {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.service-lines__header .label {
  display: block;
  margin-bottom: var(--sp-2);
  opacity: 0.5;
}

.service-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-block: clamp(1rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid rgba(6, 35, 29, 0.1);
  overflow: hidden;
  color: var(--c-ink);
}

.service-lines > .service-line:first-of-type { border-top: 1px solid rgba(6, 35, 29, 0.1); }

.service-line__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  line-height: 1.1;
  transition: transform 300ms var(--ease-out), color 220ms ease;
}

.service-line:hover .service-line__name {
  transform: translateX(10px);
  color: var(--c-forest);
}

.service-line__arrow {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  opacity: 0.18;
  flex-shrink: 0;
  transition: opacity 220ms ease, transform 300ms var(--ease-out);
}

.service-line:hover .service-line__arrow {
  opacity: 0.65;
  transform: translateX(8px);
}

/* ---- 30. Full-bleed photo -------------------------------- */
.bleed {
  width: 100%;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
  position: relative;
}

.bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* ---- 31. About strip ------------------------------------- */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.about-strip__photo {
  overflow: hidden;
  min-height: 60vh;
}

.about-strip__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-strip__content {
  background: var(--c-deep);
  color: var(--c-cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 7rem) clamp(2.5rem, 6vw, 6rem);
}

.about-strip__content .label {
  display: block;
  color: var(--c-lime);
  opacity: 1;
  margin-bottom: var(--sp-4);
}

.about-strip__content .h2 {
  margin-bottom: var(--sp-5);
  max-width: 18ch;
}

.about-strip__content p {
  font-size: 1rem;
  line-height: 1.75;
  opacity: 0.72;
  max-width: 42ch;
  margin-bottom: var(--sp-3);
}

.about-strip__content p:last-of-type { margin-bottom: var(--sp-7); }

/* ---- 32. Photo row --------------------------------------- */
.photo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: clamp(220px, 30vw, 400px);
  gap: 2px;
  background: var(--c-ink);
}

.photo-row__item {
  overflow: hidden;
}

.photo-row__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease-out);
}

.photo-row__item:hover img { transform: scale(1.06); }

/* ---- 33. Left-aligned CTA -------------------------------- */
.cta-left {
  background: var(--c-deep);
  color: var(--c-cream);
  padding: clamp(5rem, 10vw, 9rem) var(--px);
}

.cta-left__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 8vw, 6rem);
  flex-wrap: wrap;
}

.cta-left__text .h2 {
  max-width: 18ch;
  margin-bottom: var(--sp-3);
}

.cta-left__text p {
  opacity: 0.65;
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.7;
}

.cta-left__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex-shrink: 0;
}

/* ---- 34. Footer v2 --------------------------------------- */
.footer-v2 {
  background: var(--c-ink);
  color: var(--c-cream);
  padding: clamp(4rem, 8vw, 7rem) var(--px) clamp(2rem, 4vw, 3rem);
}

.footer-v2__inner {
  max-width: var(--max-w);
  margin-inline: auto;
}

.footer-v2__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(255, 253, 238, 0.08);
  margin-bottom: var(--sp-6);
}

.footer-v2__brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-v2__brand-wrap > img {
  width: 130px;
  margin-bottom: var(--sp-4);
}

.footer-v2__brand-wrap > p {
  font-size: 0.875rem;
  line-height: 1.7;
  opacity: 0.45;
  max-width: 30ch;
  margin-bottom: var(--sp-6);
}

.footer-v2__nav {
  display: flex;
  gap: var(--sp-8);
}

.footer-v2__nav-col h4 {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.32;
  margin-bottom: var(--sp-3);
}

.footer-v2__nav-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-v2__nav-col a {
  font-size: 0.875rem;
  opacity: 0.55;
  transition: opacity 160ms ease;
}

.footer-v2__nav-col a:hover { opacity: 1; }

.footer-v2__phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 6rem);
  color: var(--c-lime);
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
  transition: opacity 200ms ease;
  align-self: flex-end;
}

.footer-v2__phone:hover { opacity: 0.8; }

.footer-v2__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer-v2__legal {
  font-size: 0.72rem;
  opacity: 0.28;
}

.footer-v2__insta {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.42;
  transition: opacity 160ms ease;
}

.footer-v2__insta:hover { opacity: 0.9; }

/* ---- 35. Responsive: new components ---------------------- */
@media (max-width: 1024px) {
  .about-strip {
    grid-template-columns: 1fr;
  }
  .about-strip__photo {
    height: 60vw;
    min-height: 300px;
  }
  .photo-row {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }
  .photo-row__item {
    height: clamp(180px, 30vw, 320px);
  }
  .footer-v2__top {
    grid-template-columns: 1fr;
  }
  .footer-v2__phone {
    align-self: auto;
    font-size: clamp(2.5rem, 8vw, 5rem);
  }
}

@media (max-width: 768px) {
  .cta-left__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-left__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .footer-v2__nav {
    gap: var(--sp-6);
    flex-wrap: wrap;
  }
  .service-line__name {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }
}

@media (max-width: 480px) {
  .photo-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-left__actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-left__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .statement__text {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }
}
