/* ============================================================
   Adam Young Garden Design — stylesheet
   Palette: cream paper, forest ink, sage, warm bronze
   Type:    Fraunces (display serif) + Satoshi (sans)
   ============================================================ */

@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/Fraunces-Variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/Fraunces-Italic-Variable.woff2') format('woff2');
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/Satoshi-Variable.ttf') format('truetype');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream:      #f4f1e9;
  --cream-deep: #ece8dc;
  --white:      #fbfaf6;
  --ink:        #1d2a20;
  --forest:     #24382b;
  --forest-deep:#182219;
  --sage:       #7e9179;
  --bronze:     #a08350;
  --line:       rgba(29, 42, 32, .16);
  --line-light: rgba(244, 241, 233, .2);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.45, 0, .15, 1);

  --nav-h: 84px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: clamp(15px, 1.05vw, 17px);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: 1440px; }

/* ---------- shared type ---------- */

.eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bronze);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--bronze);
}
.eyebrow--light { color: var(--sage); }
.eyebrow--light::before { background: var(--sage); }

.section { padding-block: clamp(90px, 12vw, 160px); }

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

.section__head { margin-bottom: clamp(48px, 6vw, 88px); }

.section__title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.section__title em {
  font-style: italic;
  font-weight: 340;
  color: var(--bronze);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 17px 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .35s var(--ease-soft), color .35s var(--ease-soft),
              border-color .35s var(--ease-soft), transform .35s var(--ease-soft);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--solid { background: var(--forest); color: var(--cream); }
.btn--solid:hover { background: var(--forest-deep); }

.btn--ghost { border-color: rgba(251, 250, 246, .55); color: var(--white); }
.btn--ghost:hover { background: rgba(251, 250, 246, .12); border-color: var(--white); }

.btn--light { background: var(--cream); color: var(--forest); }
.btn--light:hover { background: var(--white); }

.btn--wide { width: 100%; }

.btn--outline {
  border-color: var(--forest);
  color: var(--forest);
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}
.btn--outline:hover { background: var(--forest); color: var(--cream); }
.btn__meta {
  font-size: 10.5px;
  letter-spacing: .08em;
  opacity: .65;
  text-transform: none;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  transition: background-color .45s var(--ease-soft), box-shadow .45s var(--ease-soft),
              color .45s var(--ease-soft);
  color: var(--white);
}
.nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height .45s var(--ease-soft);
}
.nav.is-scrolled {
  background: rgba(244, 241, 233, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-scrolled .nav__inner { height: 66px; }

.nav__brand { display: flex; flex-direction: column; line-height: 1.15; }
.nav__brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 460;
  letter-spacing: .01em;
}
.nav__brand-sub {
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  opacity: .72;
  font-weight: 500;
}

.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav__link {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .04em;
  position: relative;
  padding-block: 6px;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background-color .35s var(--ease-soft), color .35s var(--ease-soft);
}
.nav:not(.is-scrolled) .nav__cta:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.nav.is-scrolled .nav__cta:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }

/* burger */
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  z-index: 110;
  color: inherit;
}
.nav__burger span {
  display: block;
  width: 26px; height: 2px;
  background: currentColor;
  transition: transform .4s var(--ease-out), opacity .3s;
}
body.menu-open .nav {
  z-index: 110;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--cream);
}
body.menu-open .nav__burger { color: var(--cream); }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--forest-deep);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .6s var(--ease-out), visibility 0s .6s;
}
body.menu-open .menu {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path .6s var(--ease-out), visibility 0s;
}
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 380;
  line-height: 1.25;
  display: flex;
  align-items: baseline;
  gap: 18px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.menu__link em {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--sage);
}
body.menu-open .menu__link { opacity: 1; transform: none; }
body.menu-open .menu__link:nth-child(1) { transition-delay: .18s; }
body.menu-open .menu__link:nth-child(2) { transition-delay: .26s; }
body.menu-open .menu__link:nth-child(3) { transition-delay: .34s; }
body.menu-open .menu__link:nth-child(4) { transition-delay: .42s; }
body.menu-open .menu__link:nth-child(5) { transition-delay: .5s; }

.menu__foot {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  color: var(--sage);
  opacity: 0;
  transition: opacity .5s .6s;
}
body.menu-open .menu__foot { opacity: 1; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  isolation: isolate;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}
.hero__media { position: absolute; inset: -12% 0; z-index: -2; }
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 2.8s var(--ease-out);
}
body.is-loaded .hero__img { transform: scale(1.02); }

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(16, 24, 17, .82) 0%, rgba(16, 24, 17, .28) 45%, rgba(16, 24, 17, .18) 100%);
}

.hero__content {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(90px, 13vh, 150px);
}

.hero__eyebrow {
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 26px;
  opacity: .85;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 360;
  font-size: clamp(2.7rem, 7.2vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin-bottom: 28px;
  max-width: 14ch;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line span {
  display: block;
  transform: translateY(112%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
body.is-loaded .hero__title .line span { transform: translateY(0); }

.hero__sub {
  max-width: 46ch;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 400;
  opacity: .92;
  margin-bottom: 40px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* load-in fade helper (hero only) */
.anim-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
body.is-loaded .anim-fade { opacity: 1; transform: none; }
body.is-loaded .hero__eyebrow.anim-fade { opacity: .85; }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .8;
}
.hero__scroll i {
  width: 1px;
  height: 56px;
  background: rgba(251, 250, 246, .5);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  animation: scrollhint 2.2s var(--ease-soft) infinite;
}
@keyframes scrollhint {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee {
  background: var(--forest-deep);
  color: var(--cream);
  overflow: hidden;
  padding-block: 18px;
  border-block: 1px solid rgba(244, 241, 233, .08);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 380;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .85;
}
.marquee__track i {
  font-style: normal;
  font-size: 10px;
  color: var(--bronze);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT
   ============================================================ */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about__text p { margin-bottom: 1.5em; max-width: 62ch; }
.about__text p:last-child { margin-bottom: 0; }

.about__lede {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1.4;
  color: var(--forest);
}
.about__lede::first-letter {
  font-size: 3.1em;
  float: left;
  line-height: .82;
  padding-right: .12em;
  color: var(--bronze);
  font-weight: 420;
}

.about__quote {
  border-left: 2px solid var(--bronze);
  padding: 6px 0 6px 28px;
  margin: 2.2em 0;
}
.about__quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 360;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.45;
  color: var(--forest);
  margin: 0;
}

.about__creds {
  list-style: none;
  margin: 2.4em 0;
  border-top: 1px solid var(--line);
}
.about__creds li {
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: rgba(29, 42, 32, .72);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  justify-content: space-between;
}
.about__creds li span {
  font-weight: 600;
  color: var(--ink);
}

.about__media {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about__photo {
  overflow: hidden;
  border-radius: 2px;
}
.about__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.about__photo--offset { width: 72%; align-self: flex-end; }
.about__photo--offset img { aspect-ratio: 4 / 5; }

/* ============================================================
   SERVICES
   ============================================================ */

.services {
  background: var(--forest);
  color: var(--cream);
}
.services .section__title { color: var(--cream); }
.services .section__title em { color: var(--sage); }

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}

.service {
  border: 1px solid var(--line-light);
  border-radius: 3px;
  padding: clamp(30px, 3.6vw, 52px);
  background: rgba(24, 34, 25, .35);
  transition: transform .5s var(--ease-out), background-color .5s var(--ease-soft),
              border-color .5s var(--ease-soft);
}
.service:hover {
  transform: translateY(-6px);
  background: rgba(24, 34, 25, .65);
  border-color: rgba(244, 241, 233, .34);
}

.service__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-size: 1.1rem;
  color: var(--bronze);
  margin-bottom: 18px;
}
.service__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  margin-bottom: 20px;
}
.service p {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(244, 241, 233, .78);
  margin-bottom: 1.2em;
}

.service__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.service__tags li {
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid rgba(244, 241, 233, .22);
  border-radius: 999px;
  color: rgba(244, 241, 233, .82);
}

/* ============================================================
   VISUALISATION (concept renders)
   ============================================================ */

.renders { background: var(--white); }

.renders__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: -28px;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}
.renders__intro p {
  max-width: 58ch;
  color: rgba(29, 42, 32, .78);
}

.renders__strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--sage) transparent;
  cursor: grab;
}
.renders__strip:active { cursor: grabbing; }
.renders__strip.is-dragging { scroll-snap-type: none; }
.renders__strip::-webkit-scrollbar { height: 6px; }
.renders__strip::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 999px; }
.renders__strip::-webkit-scrollbar-track { background: rgba(29, 42, 32, .08); }

.renders__item {
  flex: 0 0 min(74%, 680px);
  scroll-snap-align: start;
  cursor: zoom-in;
  position: relative;
}
.renders__item img {
  width: 100%;
  aspect-ratio: 1600 / 1028;
  object-fit: cover;
  border-radius: 2px;
  transition: transform .8s var(--ease-out), box-shadow .8s var(--ease-out);
}
.renders__item:hover img,
.renders__item:focus-visible img {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(24, 34, 25, .45);
}
.renders__item:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}
.renders__item figcaption {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(29, 42, 32, .55);
  display: flex;
  align-items: center;
  gap: 10px;
}
.renders__item figcaption::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--bronze);
}

.renders__hint {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(29, 42, 32, .45);
  text-align: right;
}

@media (max-width: 700px) {
  .renders__item { flex-basis: 86%; }
}

/* ============================================================
   PROJECTS
   ============================================================ */

.project {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(70px, 9vw, 130px);
}
.project:last-child { margin-bottom: 0; }
.project--flip { direction: rtl; }
.project--flip > * { direction: ltr; }

.project__media {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
}
.project__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.project__info { padding-bottom: clamp(4px, 1vw, 18px); }
.project__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  color: var(--bronze);
  display: block;
  margin-bottom: 10px;
}
.project__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 14px;
}
.project__desc {
  font-size: 15px;
  color: rgba(29, 42, 32, .72);
  max-width: 36ch;
}

/* ============================================================
   INTERLUDE (the original site's hero image)
   ============================================================ */

.interlude {
  position: relative;
  isolation: isolate; /* keep the negative-z image above this section's own background */
  overflow: hidden;
  color: var(--white);
  text-align: center;
  padding-block: clamp(120px, 17vw, 220px);
  background: var(--forest-deep);
}
.interlude__bg { position: absolute; inset: -14% 0; z-index: -2; }
.interlude__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.interlude::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(16, 24, 17, .52), rgba(16, 24, 17, .66));
}
.interlude__quote {
  font-family: var(--font-display);
  font-weight: 360;
  font-size: clamp(2rem, 4.8vw, 4.1rem);
  line-height: 1.14;
  letter-spacing: -.01em;
}
.interlude__quote em { color: var(--sage); }

.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: '';
  width: 36px;
  height: 1px;
  background: currentColor;
}
.eyebrow--light.eyebrow--center::after { background: var(--sage); }

/* ============================================================
   STATS
   ============================================================ */

.stats {
  background: var(--cream-deep);
  border-block: 1px solid var(--line);
  padding-block: clamp(64px, 8vw, 110px);
}
.stats__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  margin-top: 26px;
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 1;
  color: var(--forest);
}
.stat__label {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(29, 42, 32, .62);
}

/* ============================================================
   GALLERY
   ============================================================ */

.gallery__grid {
  columns: 3;
  column-gap: 22px;
}
.gallery__item {
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 2px;
  break-inside: avoid;
  cursor: zoom-in;
  position: relative;
}
.gallery__item img {
  width: 100%;
  height: auto;
}
.gallery__item:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 34, 25, .32), transparent 45%);
  opacity: 0;
  transition: opacity .5s var(--ease-soft);
  pointer-events: none;
}
.gallery__item:hover::after { opacity: 1; }

/* ============================================================
   CTA
   ============================================================ */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--cream);
  text-align: center;
  padding-block: clamp(120px, 16vw, 210px);
}
.cta__bg { position: absolute; inset: -14% 0; z-index: -2; }
.cta__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(20, 30, 21, .8);
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 360;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.06;
  margin-bottom: 26px;
}
.cta__title em { color: var(--sage); }
.cta__sub {
  max-width: 52ch;
  margin: 0 auto 42px;
  opacity: .88;
  font-size: clamp(15px, 1.15vw, 17.5px);
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(44px, 6vw, 100px);
  align-items: start;
}

#contact-form { margin-top: 40px; }

.field { margin-bottom: 26px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(29, 42, 32, .6);
  margin-bottom: 9px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px 12px;
  outline: none;
  border-radius: 0;
  transition: border-color .35s var(--ease-soft);
  resize: vertical;
}
.field input:focus,
.field textarea:focus { border-bottom-color: var(--forest); }
.field.field--error input,
.field.field--error textarea { border-bottom-color: #a4552e; }

.contact__note {
  margin-top: 18px;
  font-size: 13.5px;
  color: rgba(29, 42, 32, .6);
}
.contact__note a { text-decoration: underline; text-underline-offset: 3px; }

.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.form-success {
  margin-top: 40px;
  border-left: 2px solid var(--bronze);
  padding: 20px 0 20px 28px;
}
.form-success h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--forest);
}
.form-success p { color: rgba(29, 42, 32, .75); }
.form-success a { text-decoration: underline; text-underline-offset: 3px; }

.contact__aside { display: flex; flex-direction: column; gap: 30px; }
.contact__photo { overflow: hidden; border-radius: 2px; }
.contact__photo img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.contact__details > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  font-size: 15px;
}
.contact__details span {
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(29, 42, 32, .55);
  padding-top: 3px;
}
.contact__details a:hover { color: var(--bronze); }
.contact__details p { color: rgba(29, 42, 32, .8); }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--forest-deep);
  color: var(--cream);
  padding-block: clamp(56px, 7vw, 90px) 34px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(244, 241, 233, .12);
}
.footer__brand { display: flex; flex-direction: column; line-height: 1.2; }
.footer__brand span:first-child {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
}
.footer__brand-sub {
  font-size: 10.5px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
}
.footer__links { display: flex; gap: clamp(18px, 3vw, 38px); flex-wrap: wrap; }
.footer__links a {
  font-size: 14px;
  opacity: .8;
  transition: opacity .3s;
}
.footer__links a:hover { opacity: 1; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 13px;
  color: rgba(244, 241, 233, .55);
}
.footer__up { transition: color .3s; }
.footer__up:hover { color: var(--cream); }

/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 21, 15, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease-soft), visibility 0s .4s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .4s var(--ease-soft), visibility 0s;
}
.lightbox__img {
  max-width: min(88vw, 1300px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 2px;
  transform: scale(.96);
  transition: transform .45s var(--ease-out);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }

.lightbox__close,
.lightbox__arrow {
  position: absolute;
  background: none;
  border: 1px solid rgba(244, 241, 233, .3);
  color: var(--cream);
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .3s, border-color .3s;
}
.lightbox__close:hover,
.lightbox__arrow:hover { background: rgba(244, 241, 233, .14); border-color: rgba(244, 241, 233, .6); }

.lightbox__close {
  top: 26px; right: 26px;
  width: 48px; height: 48px;
  font-size: 26px;
  line-height: 1;
}
.lightbox__arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  font-size: 20px;
}
.lightbox__arrow--prev { left: 26px; }
.lightbox__arrow--next { right: 26px; }

.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12.5px;
  letter-spacing: .22em;
  color: rgba(244, 241, 233, .7);
}

/* ============================================================
   SCROLL REVEAL PRIMITIVES (activated by JS)
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* The clip lives on the inner image, never on the interactive container —
   a clip-path'd element is invisible to hit-testing, so clipping the figure
   would make unrevealed items unclickable. */
[data-reveal-img] img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.14);
  transition: clip-path 1.1s var(--ease-out) var(--d, 0s),
              transform 1.1s var(--ease-out) var(--d, 0s);
}
[data-reveal-img].is-visible img {
  clip-path: inset(0 0 0 0);
  transform: none;
}

/* hover zooms — declared after the reveal rules so they win the cascade */
.gallery__item:hover img { transform: scale(1.045); }
.project__media:hover img { transform: scale(1.05); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media {
    position: static;
    flex-direction: row;
    align-items: flex-start;
  }
  .about__photo { flex: 1; }
  .about__photo--offset { width: auto; align-self: auto; margin-top: 48px; }
  .gallery__grid { columns: 2; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

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

  .project,
  .project--flip {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 22px;
  }

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

  .stats__row { grid-template-columns: 1fr; gap: 36px; }

  .lightbox__arrow { display: none; }
}

@media (max-width: 560px) {
  .gallery__grid { columns: 1; }
  .hero__scroll { display: none; }
  .about__media { flex-direction: column; }
  .about__photo--offset { margin-top: 0; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .marquee__track { animation: none; }
  [data-reveal], .anim-fade { opacity: 1; transform: none; }
  [data-reveal-img] img { clip-path: none; transform: none; }
  .hero__title .line span { transform: none; }
}
