/* ============================================================
   Studio Nova — shared design system
   Used by every page. Page-specific rules live in each page's
   own <style> block. Class vocabulary (reuse these):

   Chrome:   .hero .site-header .logo .nav (.nav .is-current)
             .hero__mark (--bl / --tr)  .cta (footer)
   Sections: .band  (+ .band--dark / .band--sage / .band--sage2)
             .band-mark   .eyebrow (+ --mint / --muted / --nova / --white)
   Bits:     .btn (+ --light / --solid / --ghost)  .mark (diamond svg)
   Motion:   [data-hero-in] children rise; [data-reveal] fades in;
             [data-drift] rotates on scroll.
   ============================================================ */

:root {
  --cream: #F8F4EC;
  --ink: #2C3A31;
  --hero: #1E5C3C;
  --nova: #27754C;
  --nova-hover: #1E5C3C;
  --mint: #8FCBAA;
  --mint-deep: #3DA968;
  --muted: #4A5349;
  --sage: #E7F0E8;
  --sage2: #DCE4DB;
  --pad-x: clamp(28px, 4.4vw, 64px);
  --pad-y: clamp(56px, 7vw, 104px);
  --maxw: 1600px;
  /* Horizontal section padding: full-bleed background, content centered within
     --maxw on wide screens. Below the cap the calc goes negative and max()
     falls back to --pad-x. Reference this for every full-bleed section. */
  --pad-inline: max(var(--pad-x), calc((100% - var(--maxw)) / 2));
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Albert Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--nova); }
a:hover { color: var(--nova-hover); }

img { max-width: 100%; }

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow--mint  { color: var(--mint); }
.eyebrow--muted { color: var(--muted); }
.eyebrow--nova  { color: var(--nova); }
.eyebrow--white { color: #fff; }

/* ---------- Diamond mark ---------- */
.mark { display: block; }
.mark svg { display: block; width: 100%; height: auto; }

/* ---------- Hero shell ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero);
  color: #fff;
  padding: 32px var(--pad-inline) clamp(48px, 5vw, 64px);
  min-height: min(80vh, 720px);
  display: flex;
  flex-direction: column;
}
.hero--tall { min-height: min(88vh, 760px); }
.hero--short { min-height: 0; }

.hero__mark {
  position: absolute;
  display: block;
  pointer-events: none;
  will-change: transform;
}
.hero__mark svg { display: block; width: 100%; height: auto; }
.hero__mark--bl { left: -190px; bottom: -240px; width: min(640px, 60vw); }
.hero__mark--tr { right: -110px; top: -120px; width: min(520px, 46vw); }
.hero__mark--tr svg { animation: sn-mark 1.7s cubic-bezier(.2, .8, .2, 1) both; }

/* ---------- Header / nav ---------- */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 700;
  letter-spacing: -.015em;
  color: #fff;
  text-decoration: none;
}
.logo svg { width: .82em; height: .82em; display: block; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px clamp(16px, 2.4vw, 34px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav a { color: rgba(255, 255, 255, .68); text-decoration: none; transition: color .18s ease; }
.nav a:hover { color: #fff; }
.nav .is-current { color: #fff; }

/* ---------- Section band ---------- */
.band {
  position: relative;
  overflow: hidden;
  padding: var(--pad-y) var(--pad-inline);
}
.band--dark  { background: var(--ink);  color: #fff; }
.band--sage  { background: var(--sage); }
.band--sage2 { background: var(--sage2); }

.band-mark {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}
.band-mark svg { display: block; width: 100%; height: auto; }
.band > :not(.band-mark) { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.btn--light { background: #fff; color: var(--hero); }
.btn--light:hover { background: var(--sage); color: var(--hero); }
.btn--solid { background: var(--nova); color: #fff; }
.btn--solid:hover { background: var(--nova-hover); color: #fff; }
.btn--ghost {
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, .38);
  font-size: 15px;
  color: #fff;
}
.btn--ghost:hover { background: #fff; color: var(--hero); }

/* ---------- Footer CTA ---------- */
.cta {
  background: var(--ink);
  color: #fff;
  padding: var(--pad-y) var(--pad-inline);
  padding-bottom: 40px;
}
.cta__hello {
  display: block;
  font-size: clamp(46px, 7.4vw, 88px);
  line-height: .96;
  font-weight: 800;
  letter-spacing: -.045em;
  color: #fff;
  text-decoration: none;
  transition: color .18s ease;
}
.cta__hello:hover { color: var(--mint); }
.cta__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.cta__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta__email {
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 600;
  color: var(--mint);
  text-decoration: none;
  transition: color .18s ease;
}
.cta__email:hover { color: #fff; }
.cta__mark { display: block; width: 50px; will-change: transform; }
.cta__mark svg { display: block; width: 100%; height: auto; }
.cta__rule { height: 1px; background: rgba(255, 255, 255, .18); margin: clamp(32px, 4vw, 52px) 0 18px; }
.cta__legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}

/* ---------- Framed image fill ---------- */
.imgfill {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.imgfill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}
/* Screenshot fit: show the whole image (no crop) on a soft backdrop */
.imgfill--contain { background: #FAFAFA; }
.imgfill--contain img { object-fit: contain; }
/* Empty image placeholder (no upload in the source) */
.imgfill--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 58, 49, .06);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 24px;
}

/* ---------- Motion ---------- */
@keyframes sn-mark { from { opacity: 0; } to { opacity: 1; } }
@keyframes sn-up { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes sn-intro-mark { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.05); } 100% { opacity: 1; transform: scale(1); } }
@keyframes sn-intro-word { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: none; } }
@keyframes sn-intro-out { 0% { opacity: 1; visibility: visible; } 70% { opacity: 1; } 99% { opacity: 0; } 100% { opacity: 0; visibility: hidden; } }

[data-reveal] { opacity: 0; transition: opacity .8s var(--ease); }
[data-reveal].is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; }
}
