/* ==========================================================
   VLA — Vazquez Landscape Architecture
   Palette drawn from brand logo suite:
   cream #EFE3CC · pine #2E4034 / #26332C · terracotta #A24B36
   clay #C56B4A · olive #6B7B4A / #7C8B5A · gold #E0B44E
   Type: Fraunces (display serif) + Familjen Grotesk (sans)
   ========================================================== */

:root {
  --cream: #EFE3CC;
  --cream-bright: #F0E7D3;
  --pine: #2E4034;
  --pine-deep: #26332C;
  --terracotta: #A24B36;
  --clay: #C56B4A;
  --olive: #6B7B4A;
  --olive-light: #7C8B5A;
  --gold: #E0B44E;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Familjen Grotesk', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--pine);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- film grain over everything, echoing the logo texture ---- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------------- header ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 3rem;
  transition: background .45s ease, box-shadow .45s ease, padding .45s ease;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(46, 64, 52, 0.12);
  padding: 0.7rem 3rem;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
/* the hero already carries the full identity — reveal the header brand on scroll */
.site-header:not(.scrolled) .brand { opacity: 0; pointer-events: none; }
.brand { transition: opacity .45s ease; }
.brand-mark { width: 44px; height: 44px; }
.brand-word {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--pine);
  display: flex; flex-direction: column; line-height: 1.1;
  transition: color .45s ease;
}
.brand-sub {
  font-family: var(--sans); font-size: .55rem; letter-spacing: .32em;
  text-transform: uppercase; color: var(--clay); margin-top: .2rem;
}
.site-header.scrolled .brand-word,
.site-header.on-light .brand-word { color: var(--pine); }
.site-nav { display: flex; align-items: center; gap: 2.2rem; }
.site-nav a { white-space: nowrap; }
.site-nav a {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--pine); font-weight: 500;
  transition: color .45s ease;
}
.site-header.scrolled .site-nav a,
.site-header.on-light .site-nav a { color: var(--pine); }
.site-nav a:hover { color: var(--clay) !important; }
.site-nav .nav-cta {
  border: 1.5px solid var(--clay); color: var(--clay) !important;
  padding: .5rem 1.1rem; border-radius: 999px;
  transition: background .3s ease, color .3s ease;
}
.site-nav .nav-cta:hover { background: var(--clay); color: var(--cream) !important; }

/* ---------------- scroll-scrub video sections ---------------- */
.scrub-section { position: relative; height: var(--scrub-height, 300vh); background: var(--pine-deep); }
.scrub-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.scrub-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scrub-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(38,51,44,.35) 0%, rgba(38,51,44,0) 30%, rgba(38,51,44,0) 60%, rgba(38,51,44,.55) 100%);
}
.scrub-shade.soft {
  background: linear-gradient(to right, rgba(38,51,44,.55) 0%, rgba(38,51,44,.05) 55%, rgba(38,51,44,.15) 100%);
}

/* ---------------- spin hero — minimal scroll-spun mark ---------------- */
.spin-hero { position: relative; height: var(--spin-height, 220vh); background: var(--cream); }
.spin-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.spin-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  will-change: opacity, transform;
}
.spin-mark {
  width: clamp(180px, 26vw, 320px); height: auto;
  will-change: transform;
}
.spin-word {
  font-family: var(--serif); font-weight: 400; color: var(--pine);
  font-size: clamp(3rem, 7vw, 5.6rem); line-height: 1; margin-top: 2.6rem;
  letter-spacing: -0.01em;
}
.spin-sub {
  font-size: clamp(.7rem, 1.1vw, .85rem); letter-spacing: .5em; text-transform: uppercase;
  color: var(--terracotta); font-weight: 600; margin-top: 1.1rem; padding-left: .5em;
}
.spin-tag {
  font-family: var(--serif); font-style: italic; color: var(--olive);
  font-size: clamp(1rem, 1.5vw, 1.3rem); margin-top: 2.2rem;
}
.scroll-cue.dark { color: var(--pine); }
.scroll-cue.dark span { background: linear-gradient(var(--pine), transparent); }

/* ---------------- sunset — sun sets below the wabi-sabi horizon ---------------- */
.sunset-section { position: relative; height: var(--sunset-height, 300vh); }
.sunset-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: var(--cream);
}
.sunset-sun {
  position: absolute; left: 50%; top: 30vh; z-index: 1;
  width: clamp(200px, 28vw, 340px); height: auto;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.sunset-ground {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  height: 26vh; background: #E6D5B8;
}
.sunset-horizon {
  position: absolute; left: 0; right: 0; top: -40px;
  width: 100%; height: 80px; display: block;
}
.sunset-stars { position: absolute; inset: 0; z-index: 0; opacity: 0; }
.sunset-stars i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--cream-bright);
}
.sunset-stars i:nth-child(2n) { width: 2px; height: 2px; opacity: .7; }
.sunset-section .scrub-caption {
  z-index: 3; opacity: 0;
  text-shadow: 0 1px 4px rgba(31, 42, 36, .8), 0 2px 28px rgba(31, 42, 36, .7);
}
.scroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  color: var(--cream-bright); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .6rem; opacity: .85;
}
.scroll-cue span {
  display: block; width: 1px; height: 46px;
  background: linear-gradient(var(--cream-bright), transparent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: scaleY(1); opacity:.9 } 50% { transform: scaleY(.55); opacity:.4 } }

/* captions over the two 3D clips */
.scrub-caption {
  position: absolute; left: 6vw; bottom: 10vh; max-width: 34rem;
  color: var(--cream-bright); text-shadow: 0 2px 24px rgba(38,51,44,.55);
}
.scrub-caption.right { left: auto; right: 6vw; text-align: right; }
.scrub-caption h2 {
  font-family: var(--serif); font-weight: 380; font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.04; margin: .9rem 0;
}
.scrub-caption h2 em { font-style: italic; color: var(--gold); }
.scrub-caption p:not(.kicker) { font-size: 1.02rem; opacity: .9; }
.scrub-caption .tree-count { display: flex; align-items: baseline; gap: 1rem; margin: .4rem 0 1.1rem; }
.tree-count em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(3.4rem, 6.5vw, 5.4rem); line-height: 1; color: var(--gold);
}
.tree-count .tree-date {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cream-bright); opacity: .85; font-weight: 500;
}

/* ---------------- shared type ---------------- */
.kicker {
  font-size: .72rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--terracotta); font-weight: 600;
}
.kicker.light { color: var(--clay); }
.kicker.gold { color: var(--gold); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 3rem; }

/* ---------------- statement ---------------- */
.statement { padding: 11rem 0 9rem; }
.statement h2 {
  font-family: var(--serif); font-weight: 380; font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  line-height: 1.22; margin: 1.6rem 0 4.5rem; max-width: 60rem;
}
.statement-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.statement-cols strong {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 550; display: block;
  padding-top: 1.2rem; border-top: 2px solid var(--terracotta); margin-bottom: .5rem;
}
.statement-cols p { color: color-mix(in srgb, var(--pine) 78%, transparent); font-size: .95rem; }

/* ---------------- mission ---------------- */
.mission { background: var(--pine-deep); color: var(--cream-bright); padding: 10rem 0; }
.mission h2 {
  font-family: var(--serif); font-weight: 350; font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.18; margin: 1.6rem 0 5rem; max-width: 56rem;
}
.mission h2 em { font-style: italic; color: var(--gold); }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4rem 4rem; }
.mission-item span { font-family: var(--serif); font-style: italic; color: var(--clay); font-size: 1.1rem; }
.mission-item h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: .5rem 0 .6rem; }
.mission-item p { opacity: .78; font-size: .97rem; max-width: 30rem; }

/* ---------------- designer ---------------- */
.designer { padding: 10rem 0; }
.designer-grid { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 5rem; align-items: start; }
.designer-mark {
  background: var(--pine); border-radius: 50%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center; padding: 12%;
  box-shadow: 0 30px 60px -20px rgba(46,64,52,.4);
}
.designer-mark img { width: 100%; animation: slow-rotate 90s linear infinite; }
@keyframes slow-rotate { to { transform: rotate(360deg); } }
.designer-copy h2 {
  font-family: var(--serif); font-weight: 420; font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 1.2rem 0 1.6rem; line-height: 1.05;
}
.title-suffix { font-size: .45em; letter-spacing: .12em; color: var(--terracotta); font-family: var(--sans); font-weight: 500; vertical-align: middle; }
.designer-copy p { max-width: 42rem; margin-bottom: 1.3rem; color: color-mix(in srgb, var(--pine) 85%, transparent); }
.designer-copy blockquote {
  font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.4;
  color: var(--terracotta); border-left: 3px solid var(--clay);
  padding-left: 1.6rem; margin-top: 2.4rem; max-width: 36rem;
}

/* ---------------- careers ---------------- */
.careers { background: color-mix(in srgb, var(--cream) 60%, #E6D5B8); padding: 10rem 0; }
.careers h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4.5vw, 4rem); margin: 1.2rem 0 1rem; }
.careers-lede { max-width: 38rem; margin-bottom: 4rem; color: color-mix(in srgb, var(--pine) 80%, transparent); }
.jobs { list-style: none; }
.jobs li {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.8rem 0; border-top: 1px solid color-mix(in srgb, var(--pine) 25%, transparent);
  transition: padding-left .35s ease;
}
.jobs li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--pine) 25%, transparent); }
.jobs li:hover { padding-left: .8rem; }
.jobs h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; }
.jobs p { font-size: .85rem; color: color-mix(in srgb, var(--pine) 65%, transparent); letter-spacing: .04em; }
.job-link {
  white-space: nowrap; text-decoration: none; color: var(--terracotta);
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  border: 1.5px solid var(--terracotta); border-radius: 999px; padding: .55rem 1.2rem;
  transition: background .3s ease, color .3s ease;
}
.job-link:hover { background: var(--terracotta); color: var(--cream); }

/* ---------------- contact ---------------- */
.contact { background: var(--pine-deep); color: var(--cream-bright); padding: 10rem 0 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; padding-bottom: 7rem; }
.contact h2 { font-family: var(--serif); font-weight: 360; font-size: clamp(2.4rem, 4.5vw, 4rem); line-height: 1.08; margin: 1.2rem 0 2.4rem; }
.contact address { font-style: normal; opacity: .85; line-height: 1.9; }
.contact address a { color: var(--gold); text-decoration: none; }
.contact address a:hover { text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-form label {
  display: flex; flex-direction: column; gap: .45rem;
  font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--clay); font-weight: 600;
}
.contact-form input, .contact-form textarea {
  background: rgba(240,231,211,.07); border: 1px solid rgba(240,231,211,.25);
  border-radius: 6px; padding: .85rem 1rem; color: var(--cream-bright);
  font-family: var(--sans); font-size: 1rem; transition: border-color .3s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form button {
  margin-top: .6rem; align-self: flex-start; cursor: pointer;
  background: var(--clay); color: var(--pine-deep); border: none; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  padding: 1rem 2.2rem; transition: background .3s ease, transform .2s ease;
}
.contact-form button:hover { background: var(--gold); transform: translateY(-2px); }
.contact-form .btn-sent, .contact-form .btn-error { display: none; }
.contact-form.sent .btn-label, .contact-form.error .btn-label { display: none; }
.contact-form.sent .btn-sent { display: inline; }
.contact-form.sent button { background: var(--olive-light); pointer-events: none; }
.contact-form.error .btn-error { display: inline; }
.contact-form.error button { background: var(--terracotta); color: var(--cream-bright); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-footer {
  border-top: 1px solid rgba(240,231,211,.15);
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 2.4rem 3rem; font-size: .8rem; letter-spacing: .08em; opacity: .75;
}
.footer-mark { width: 34px; height: 34px; }

/* ---------------- reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2,.65,.25,1), transform .9s cubic-bezier(.2,.65,.25,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------------- mobile nav toggle ---------------- */
.nav-toggle {
  display: none; position: relative; z-index: 52;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; margin: 5px 0; border-radius: 2px;
  background: var(--pine);
  transition: transform .35s ease, background .35s ease;
}
body.menu-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------------- responsive ---------------- */
@supports (height: 100dvh) {
  .spin-sticky, .scrub-sticky, .sunset-sticky { height: 100dvh; }
}

@media (max-width: 900px) {
  .site-header { padding: 1rem 1.4rem; }
  .site-header.scrolled { padding: .7rem 1.4rem; }
  .brand-sub { display: none; }
  .brand-word { font-size: 1.2rem; }
  .brand-mark { width: 34px; height: 34px; }
  .nav-toggle { display: block; }
  /* backdrop-filter on the header makes it the containing block for fixed
     children — disable it while the menu is open so the overlay fills the viewport */
  body.menu-open .site-header {
    background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none;
  }
  .site-nav {
    position: fixed; inset: 0; z-index: 49;
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 0; padding: 0 2.2rem;
    background: color-mix(in srgb, var(--cream) 96%, transparent);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    opacity: 0; pointer-events: none; transition: opacity .35s ease;
  }
  body.menu-open .site-nav { opacity: 1; pointer-events: auto; }
  .site-nav a {
    font-family: var(--serif); text-transform: none; letter-spacing: 0;
    font-size: 2rem; font-weight: 420; color: var(--pine);
    padding: .9rem 0; opacity: 0; transform: translateY(14px);
    transition: opacity .4s ease, transform .4s ease;
  }
  body.menu-open .site-nav a { opacity: 1; transform: none; }
  body.menu-open .site-nav a:nth-child(2) { transition-delay: .05s; }
  body.menu-open .site-nav a:nth-child(3) { transition-delay: .1s; }
  body.menu-open .site-nav a:nth-child(4) { transition-delay: .15s; }
  .site-nav .nav-cta {
    border: none; padding: .9rem 0; border-radius: 0;
    color: var(--terracotta) !important; font-style: italic;
  }
  .site-nav .nav-cta:hover { background: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .brand { opacity: 1 !important; pointer-events: auto !important; }

  .wrap { padding: 0 1.6rem; }
  .statement { padding: 7rem 0 6rem; }
  .mission, .designer, .careers { padding: 6.5rem 0; }
  .contact { padding: 6.5rem 0 0; }
  .statement h2 { margin-bottom: 3rem; }
  .careers-lede { margin-bottom: 2.6rem; }
  .mission-grid { gap: 2.4rem; }
  .statement-cols { gap: 2rem; }
  .statement-cols, .mission-grid, .designer-grid, .contact-grid { grid-template-columns: 1fr; }
  .designer-grid { gap: 3rem; }
  .designer-mark { max-width: 220px; }
  .scrub-caption { left: 1.6rem; right: 1.6rem; bottom: 7vh; }
  .scrub-caption.right { text-align: left; }
  .jobs li { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .site-footer { flex-direction: column; gap: .8rem; text-align: center; padding: 2rem 1.6rem; }
}
