/* ------------------------------------------------------------------
   Horticulture Studio — homepage
   ------------------------------------------------------------------ */

:root {
  --bg: #F7F4EC;
  --sand: #EFEADC;
  --card: #FBF9F2;
  --cream: #FBF8F0;
  --cream-2: #F1EFE4;
  --ink: #1D2119;
  --ink-55: rgba(29, 33, 25, 0.55);
  --ink-68: rgba(29, 33, 25, 0.68);
  --ink-74: rgba(29, 33, 25, 0.74);
  --line: rgba(29, 33, 25, 0.1);
  --line-strong: rgba(29, 33, 25, 0.16);
  --green: #1B3626;
  --green-deep: #16301F;
  --green-footer: #122419;
  --lime: #C8E870;
  --lime-light: #D8F291;
  --red: #E7453D;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;

  --container: 1280px;
  --gutter: 40px;
  --section-y: clamp(64px, 8vw, 120px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
a:hover { color: var(--red); }

::selection { background: #D8E98F; }

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

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

svg { flex: none; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---- layout helpers ---------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(32px, 6vw, 90px);
}

.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-sand { background: var(--sand); }
.band-dark { background: var(--green-deep); color: var(--cream-2); border: 0; }

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.eyebrow-light { color: var(--cream); }
.eyebrow-dark { color: rgba(241, 239, 228, 0.68); }

.rule { display: block; width: 22px; height: 1px; background: var(--red); }
.rule-lime { background: var(--lime); }

.dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  flex: none;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.band-dark .section-title { color: var(--cream); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.section-head-text { display: flex; flex-direction: column; gap: 14px; }

.section-note { max-width: 42ch; font-size: 16px; color: rgba(29, 33, 25, 0.7); }
.section-note-dark { color: rgba(241, 239, 228, 0.72); }

.body-lg { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; }
.muted { color: var(--ink-74); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-sm { gap: 9px; padding: 11px 20px; font-size: 14px; }

.btn-dark { background: var(--green); color: var(--bg); padding-left: 22px; }
.btn-dark:hover { background: var(--lime); color: var(--green-deep); }

.btn-lime { background: var(--lime); color: var(--green-deep); font-weight: 700; }
.btn-lime:hover { background: var(--lime-light); color: var(--green-deep); }

.btn-ghost-light { border: 1px solid rgba(251, 248, 240, 0.45); color: var(--cream); }
.btn-ghost-light:hover { background: rgba(251, 248, 240, 0.12); color: var(--cream); }

.link-caps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(27, 54, 38, 0.35);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.link-caps:hover { color: var(--red); border-bottom-color: var(--red); }

/* ---- header -------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  background: rgba(247, 244, 236, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.header-right { display: flex; align-items: center; gap: 32px; }

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-nav a { color: rgba(29, 33, 25, 0.72); }
.site-nav a:hover { color: var(--red); }

/* ---- hero ---------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  background: var(--green-deep);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 36, 24, 0.5) 0%, rgba(18, 36, 24, 0.42) 42%, rgba(18, 36, 24, 0.86) 100%);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-title {
  max-width: 16ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6.4vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-wrap: balance;
}

.hero-sub {
  max-width: 56ch;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
  color: rgba(251, 248, 240, 0.85);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }

/* ---- intro --------------------------------------------------------- */

.intro { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.intro-eyebrow { padding-top: 14px; align-self: flex-start; }
.intro-body { display: flex; flex-direction: column; gap: 22px; }

.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.38;
  letter-spacing: -0.01em;
}
.intro-body .muted { max-width: 62ch; }

/* ---- selected work ------------------------------------------------- */

.work { padding-bottom: var(--section-y); }
.work .section-head { padding-bottom: clamp(28px, 4vw, 44px); }
.work-title { max-width: 20ch; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.work-preview { position: sticky; top: 96px; }

.work-preview-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  background: #EAE4D5;
}
.work-preview-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .28s ease;
}
.work-preview-frame img.is-fading { opacity: 0; }

.project-list { display: flex; flex-direction: column; }

.project {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line-strong);
  color: inherit;
}
.project:hover { background: rgba(200, 232, 112, 0.22); color: inherit; }

.project-n {
  width: 26px;
  flex: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(29, 33, 25, 0.45);
}

.project-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.project-name-row { display: flex; align-items: center; gap: 10px; }
.project-name-row .dot { display: none; }
.project.is-active .project-name-row .dot { display: block; }

.project-name {
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.2;
}

.project-place {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(29, 33, 25, 0.5);
}

.project-arrow { color: rgba(29, 33, 25, 0.45); }

/* ---- capabilities -------------------------------------------------- */

.capabilities {
  padding-top: clamp(56px, 7vw, 104px);
  padding-bottom: clamp(56px, 7vw, 104px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
}

.cards { display: flex; flex-direction: column; gap: 18px; }

.cards-top { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }

.cards-bottom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
  gap: 18px;
  align-items: stretch;
}

.card { min-width: 0; border-radius: 16px; }

.card-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
}
.card-title-lg { font-size: 26px; line-height: 1.15; }
.card-text { font-size: 14.5px; line-height: 1.5; }

/* photo card */
.card-photo {
  flex: 1 1 200px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background-color: #EAE4D5;
  background-size: cover;
  background-position: center;
}
.card-photo-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 36, 24, 0) 35%, rgba(18, 36, 24, 0.82) 100%);
}
.card-photo-body {
  position: relative;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-photo-icon { color: var(--lime); }
.card-photo .card-title { color: var(--cream); }
.card-photo .card-text { color: rgba(251, 248, 240, 0.78); max-width: 34ch; }

/* lime card */
.card-lime {
  flex: 1 1 200px;
  min-height: 300px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background: var(--lime);
  color: var(--green-deep);
}
.card-lime-body { display: flex; flex-direction: column; gap: 10px; }
.card-lime .card-text { line-height: 1.55; }

/* plain card */
.card-plain {
  min-height: 190px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid rgba(29, 33, 25, 0.09);
}
.card-quarter { flex: 0 1 calc((100% - 54px) / 4); min-width: 140px; }
.card-body { display: flex; flex-direction: column; gap: 8px; }
.card-plain .card-text { color: var(--ink-68); }

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(200, 232, 112, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex: none;
}

/* ---- approach ------------------------------------------------------ */

.approach { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.approach-body { display: flex; flex-direction: column; gap: 28px; max-width: 66ch; }

.pullquote {
  padding: 26px 0 26px 26px;
  border-left: 2px solid var(--red);
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(17px, 2vw, 25px);
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: var(--green);
}

/* ---- gallery ------------------------------------------------------- */

.gallery-section {
  padding-bottom: var(--section-y);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
}

.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.gallery-note { font-size: 15.5px; color: rgba(29, 33, 25, 0.62); }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  align-items: stretch;
}

.gallery-item {
  position: relative;
  min-width: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: #EAE4D5;
}
.gallery-wide { grid-column: span 2; aspect-ratio: auto; height: 100%; }
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- process ------------------------------------------------------- */

.process .container { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.process-head { padding-bottom: clamp(28px, 4vw, 48px); }

.stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
}

.stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px 34px 0;
  border-top: 1px solid rgba(241, 239, 228, 0.24);
}
.stage-n { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--lime); }
.stage-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: var(--cream);
}
.stage-body { font-size: 15.5px; line-height: 1.58; color: rgba(241, 239, 228, 0.74); }

/* ---- studio -------------------------------------------------------- */

.studio { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.studio-body { display: flex; flex-direction: column; gap: 22px; max-width: 66ch; }

.team {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-top: 4px;
}
.avatars { display: flex; align-items: center; }
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(29, 33, 25, 0.35);
  flex: none;
  background-size: cover;
  background-position: center;
}
.avatar + .avatar { margin-left: -22px; }
.avatar-a { background-color: #DCD6C4; }
.avatar-b { background-color: #D4CFBC; }
.avatar-c { background-color: #C8C3AF; }

.team-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
}

/* ---- field notes --------------------------------------------------- */

.notes { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.notes-head { padding-bottom: 28px; border-bottom: 1px solid var(--line-strong); }

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 3vw, 44px);
  padding-top: clamp(28px, 4vw, 48px);
}

.post { display: flex; flex-direction: column; gap: 14px; color: inherit; }
.post:hover { color: inherit; }
.post:hover .post-title { color: var(--red); }

.post-img {
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  overflow: hidden;
  background: #EAE4D5;
}
.post-img img { width: 100%; height: 100%; object-fit: cover; }

.post-date {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.post-title-row { display: flex; align-items: flex-start; gap: 12px; }
.post-title-row svg { margin-top: 6px; color: rgba(29, 33, 25, 0.4); }
.post-title {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.25;
  max-width: 26ch;
  transition: color .18s ease;
}

/* ---- contact ------------------------------------------------------- */

.contact-inner {
  padding-top: clamp(72px, 9vw, 140px);
  padding-bottom: clamp(72px, 9vw, 140px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.contact-lede {
  max-width: 60ch;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  color: rgba(241, 239, 228, 0.78);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  align-self: flex-start;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(200, 232, 112, 0.4);
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--lime);
  word-break: break-all;
}
.contact-email:hover { color: var(--cream); border-bottom-color: var(--cream); }

.contact-note {
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(241, 239, 228, 0.6);
}

/* ---- footer -------------------------------------------------------- */

.site-footer { background: var(--green-footer); color: rgba(241, 239, 228, 0.75); }

.footer-top {
  padding-top: clamp(44px, 5vw, 72px);
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  border-bottom: 1px solid rgba(241, 239, 228, 0.15);
}

.footer-brand { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-name { font-family: var(--serif); font-size: 20px; color: var(--cream); }

.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer a { color: rgba(241, 239, 228, 0.75); }
.site-footer a:hover { color: var(--lime); }

.footer-bottom {
  padding-top: 36px;
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: baseline;
}
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 34px);
  color: var(--lime);
}
.footer-copy {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(241, 239, 228, 0.45);
}

/* ---- responsive ---------------------------------------------------- */

@media (max-width: 720px) {
  :root { --gutter: 20px; }

  .site-header { padding: 12px var(--gutter); gap: 12px; }
  .header-right { gap: 14px; }
  .site-nav { display: none; }

  .hero { min-height: 72vh; }
  .hero-content { padding-top: 96px; padding-bottom: 56px; }

  .cards-top { flex-direction: column; }
  .cards-top > .card { width: 100%; flex: 0 0 auto; }
  .cards-bottom { grid-template-columns: 1fr; }
  .card-quarter { min-height: 190px; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-wide { grid-column: span 1; aspect-ratio: 4 / 5; height: auto; }

  .work-preview { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, .work-preview-frame img, .post-title { transition: none; }
}
