/* =========================================================
   RB Landscape Atelier — Luxury minimal stylesheet
   ========================================================= */

:root {
  --bone:        #f4f0e8;
  --ink:         #1a1a18;
  --ink-soft:    #3b3b36;
  --mute:        #8a857a;
  --rule:        rgba(26, 26, 24, 0.14);
  --rule-soft:   rgba(26, 26, 24, 0.08);
  --sage:        #6b7358;

  --serif: "Cormorant Garamond", "Didot", "Times New Roman", serif;
  --sans:  "Inter", "Helvetica Neue", Arial, sans-serif;

  --header-h:    96px;
  --gutter:      clamp(1.25rem, 4vw, 3.25rem);
  --section-y:   clamp(6rem, 14vw, 14rem);
  --ease-luxury: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bone); }

.mono {
  font-family: var(--sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  color: var(--ink-soft);
}

/* =========================================================
   HEADER — always white, logo centred, nav left
   ========================================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bone);
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* Empty spacer mirrors nav width — keeps logo visually centred */
.header-spacer {
  flex: 1;
}

/* Logo centred in the middle flex slot */
.logo {
  flex: none;
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
  padding-right: 0.38em;
  white-space: nowrap;
  transition: opacity 400ms var(--ease-luxury);
}
.logo:hover { opacity: 0.6; }

/* Nav takes flex: 1 and pushes items to the right end */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 1.8rem;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--ink);
  opacity: 0.6;
  position: relative;
  transition: opacity 400ms var(--ease-luxury);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 500ms var(--ease-luxury);
}
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after { transform: scaleX(1); }

/* =========================================================
   MAIN — offset for fixed header
   ========================================================= */

main { padding-top: var(--header-h); }

/* =========================================================
   HERO STATIC — one fixed image + headline
   ========================================================= */

.hero-static {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 560px;
  overflow: hidden;
}

.hero-static-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/post-2.png');
  background-size: cover;
  background-position: center center;
}

/* subtle bottom vignette for text legibility */
.hero-static::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.00) 40%,
    rgba(0,0,0,0.32) 100%
  );
  pointer-events: none;
}

.hero-static-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(2.5rem, 5vh, 4rem);
}

.hero-title {
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 6.5vw, 6.8rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 1px 20px rgba(0,0,0,0.18);
  max-width: 16ch;
}
.hero-title span { display: block; }
.hero-title em   { font-style: italic; }

/* scroll cue */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.82);
  transition: opacity 400ms var(--ease-luxury);
  width: fit-content;
}
.scroll-cue:hover { color: #fff; }
.scroll-cue .cue-text { font-size: 0.66rem; }
.scroll-cue .cue-line {
  display: inline-block;
  width: 72px; height: 1px;
  background: currentColor;
  opacity: 0.7;
  overflow: hidden;
  position: relative;
}
.scroll-cue .cue-line::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 0%, #fff 50%, transparent 100%);
  transform: translateX(-100%);
  animation: cueSweep 3s var(--ease-luxury) infinite;
}
@keyframes cueSweep {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* =========================================================
   GALLERY — 5 images all visible in a horizontal strip
   ========================================================= */

.gallery {
  width: 100%;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  height: 56vh;
  min-height: 320px;
}

.gallery-item {
  background-size: cover;
  background-position: center center;
  overflow: hidden;
  transition: transform 800ms var(--ease-luxury);
}
.gallery-item:hover {
  transform: scale(1.02);
}

@media (max-width: 720px) {
  .gallery-strip {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    height: auto;
    min-height: unset;
  }
  .gallery-item {
    height: 38vw;
  }
  .gallery-item:last-child {
    grid-column: 2;
  }
}

/* =========================================================
   SECTION PRIMITIVES
   ========================================================= */

section.about,
section.work,
section.contact {
  padding: var(--section-y) var(--gutter);
  max-width: 1600px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-head::before {
  content: "";
  display: inline-block;
  width: 48px; height: 1px;
  background: var(--ink);
  opacity: 0.6;
}
.section-kicker { color: var(--ink); }

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

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  max-width: 1180px;
}
@media (min-width: 880px) {
  .about-inner {
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
  }
}

.about-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  max-width: 18ch;
}
.about-body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
  max-width: 42ch;
}

/* =========================================================
   WORK / WHAT WE DO
   ========================================================= */

.work { border-top: 1px solid var(--rule); }

.work-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
  max-width: 1180px;
}
@media (min-width: 880px) {
  .work-head {
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(3rem, 7vw, 7rem);
    align-items: end;
  }
}

.work-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.work-headline em { font-style: italic; }

.work-lede {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0;
}

.services {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--rule);
}
.service {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding: clamp(1.75rem, 3.2vw, 2.75rem) 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
@media (min-width: 880px) {
  .service { grid-template-columns: 96px 1fr 2fr; }
}

.service-num {
  color: var(--ink);
  opacity: 0.5;
  padding-top: 0.45rem;
}
.service-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 0.6rem;
  color: var(--ink);
}
@media (min-width: 880px) { .service-title { margin-bottom: 0; } }

.service-text {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
  max-width: 52ch;
}
.service:hover .service-num { opacity: 0.85; }

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

.contact { border-top: 1px solid var(--rule); }

.contact-inner {
  max-width: 1180px;
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.contact-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.contact-headline em { font-style: italic; }

.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.35rem;
  transition: color 400ms var(--ease-luxury),
              border-color 400ms var(--ease-luxury),
              letter-spacing 600ms var(--ease-luxury);
  width: fit-content;
  max-width: 100%;
  word-break: break-word;
}
.contact-email:hover {
  color: var(--sage);
  border-color: var(--sage);
  letter-spacing: 0.005em;
}

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.75rem var(--gutter);
}
.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer a { transition: opacity 400ms var(--ease-luxury); }
.site-footer a:hover { opacity: 0.6; }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1100ms var(--ease-luxury),
              transform 1100ms var(--ease-luxury);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

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

@media (max-width: 720px) {
  /* Header: spacer hidden, logo left, nav right */
  .header-spacer { display: none; }
  .logo {
    font-size: 1rem;
    letter-spacing: 0.22em;
    padding-right: 0.22em;
  }
  .site-nav {
    flex: none;
    margin-left: auto;
    gap: 0.9rem;
    justify-content: flex-end;
  }
  .site-nav a { font-size: 0.52rem; letter-spacing: 0.14em; }

  /* Hero */
  .hero-title { font-size: clamp(2.2rem, 10vw, 3.6rem); }
  .scroll-cue .cue-line { width: 40px; }

  /* About / Work layout */
  .about-inner { grid-template-columns: 1fr; }
  .work-head   { grid-template-columns: 1fr; }
  .service     { grid-template-columns: 44px 1fr; gap: 0.9rem; }
  .service-num { font-size: 0.6rem; }

  /* Gallery: 2 columns; 5th item spans both */
  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    height: auto;
    min-height: unset;
    gap: 2px;
  }
  .gallery-item          { height: 46vw; }
  .gallery-item:last-child {
    grid-column: 1 / -1;
    height: 30vw;
  }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: opacity 400ms linear; transform: none !important; }
  .scroll-cue .cue-line::after { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
