/* ═══════════════════════════════════════════════════════════════
   BLUEFIELD & STONE — Landscape Design LLC · site v2
   White, quiet, photographic. Serif voice, script accents,
   deep blue at the close.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --white: #fdfdfb;
  --paper: #f7f5f0;
  --ink: #23271f;
  --soft: #5c6156;
  --faint: #979b90;
  --hair: #e4e1d8;
  --navy: #2b3a5e;
  --deep: #1a2640;
  --peach: #f8c994;
  --gold: #ad843c;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --script: "Pinyon Script", cursive;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); font-weight: 300; line-height: 1.75;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; font-size: 16.5px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; }
em { font-style: italic; }
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: 820px; }

/* ── header ── */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  background: color-mix(in srgb, var(--white) 92%, transparent);
  backdrop-filter: blur(8px);
  transition: box-shadow .3s;
}
.top.scrolled { box-shadow: 0 1px 0 var(--hair); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 2px; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; letter-spacing: .04em; white-space: nowrap; }
.brand em { font-style: normal; font-size: .55rem; letter-spacing: .3em; text-transform: uppercase; color: var(--soft); }
.menu-btn {
  display: flex; align-items: center; gap: .7rem;
  background: none; border: 0; cursor: pointer; padding: .4rem 0;
  font-family: var(--sans); font-size: .72rem; letter-spacing: .3em; color: var(--ink);
}
.menu-btn .bars { display: flex; flex-direction: column; gap: 5px; }
.menu-btn .bars i { width: 26px; height: 1.5px; background: var(--ink); transition: all .3s; }
.menu-open .menu-btn .bars i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-btn .bars i:nth-child(2) { opacity: 0; }
.menu-open .menu-btn .bars i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── full-screen menu ── */
.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--deep); color: #f3efe4;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-open .top { background: transparent; backdrop-filter: none; box-shadow: none; }
.menu-open .top .brand strong, .menu-open .menu-btn { color: #f3efe4; }
.menu-open .top .brand em { color: var(--peach); }
.menu-open .menu-btn .bars i { background: #f3efe4; }
.menu ul { list-style: none; padding: 0; text-align: center; }
.menu a {
  display: block; text-decoration: none; padding: .42rem 2rem;
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 4.2vh, 2.5rem);
  line-height: 1.4; color: #f3efe4; transition: color .25s;
  opacity: 0; transform: translateY(14px);
}
.menu a:hover, .menu a.here { color: var(--peach); }
.menu a:hover {
  font-family: var(--script);
  /* the script reads small — enlarge it, with line-height compensated
     so the row height never shifts (1.4 / 1.22) */
  font-size: calc(clamp(1.7rem, 4.2vh, 2.5rem) * 1.22);
  line-height: 1.148;
}
.menu-open .menu a { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease, color .25s; }
.menu-open .menu li:nth-child(n) a { transition-delay: calc(.06s * var(--i, 0)); }

/* ── homepage slideshow ── */
.show { position: relative; height: 100svh; overflow: hidden; background: var(--deep); }
.show figure {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 1.8s ease; z-index: 1;
}
.show figure.on { opacity: 1; z-index: 2; }
.show img { width: 100%; height: 100%; object-fit: cover; }
/* drift is applied per-slide from site.js so an outgoing slide keeps its
   motion while it fades — re-keying it to .on snaps the old frame */
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.show-line {
  position: absolute; inset: auto 0 0 0; z-index: 5; pointer-events: none;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 var(--pad) clamp(4rem, 12vh, 7rem);
  background: linear-gradient(to top, rgba(16, 22, 38, .45), transparent 55%);
  opacity: 0; transition: opacity 1.6s ease .4s;
}
.show-line.on { opacity: 1; }
.show-line p {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem); color: #fdfaf2; text-align: center;
  line-height: 1.15;
  text-shadow:
    0 1px 3px rgba(10, 14, 30, .55),
    0 4px 16px rgba(10, 14, 30, .5),
    0 12px 46px rgba(10, 14, 30, .45);
}
.show-dots { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; gap: .55rem; }
.show-dots button { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: rgba(253, 250, 242, .45); transition: all .3s; }
.show-dots button.on { background: #fdfaf2; transform: scale(1.3); }

/* ── page hero (inner pages) ── */
.page { padding-top: clamp(7rem, 14vh, 9.5rem); padding-bottom: clamp(4rem, 9vh, 7rem); }
.kicker { font-family: var(--script); font-size: clamp(2.3rem, 4vw, 3.3rem); color: var(--gold); margin-bottom: .5rem; line-height: 1.2; }
.page h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); margin-bottom: 1.4rem; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--soft); max-width: 60ch; }
.page section { margin-top: clamp(3rem, 7vh, 5rem); }
.page h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 1rem; }
.page h3 { font-size: 1.45rem; margin: 1.6rem 0 .5rem; }
.page p { color: var(--soft); max-width: 68ch; margin-bottom: 1rem; }
.page ul { color: var(--soft); max-width: 68ch; padding-left: 1.2rem; }
.page li { margin-bottom: .4rem; }
.rule { border: 0; border-top: 1px solid var(--hair); margin: clamp(2.5rem, 6vh, 4rem) 0; }
.centered { text-align: center; margin-inline: auto; }
.centered p, .centered ul { margin-inline: auto; }

.btn {
  display: inline-block; font-family: var(--sans); font-weight: 400; font-size: .78rem;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  padding: 1.05rem 1.9rem; border: 1px solid var(--navy); color: var(--navy);
  background: transparent; cursor: pointer; transition: all .3s;
}
.btn:hover { background: var(--navy); color: var(--white); }
.btn-solid { background: var(--navy); color: #fdfaf2; }
.btn-solid:hover { background: var(--deep); border-color: var(--deep); }

/* ── about ── */
.bio-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.bio-grid figure { margin: 0; position: sticky; top: 7rem; }
.bio-grid figcaption { margin-top: .7rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 860px) { .bio-grid { grid-template-columns: 1fr; } .bio-grid figure { position: static; max-width: 440px; } }

/* the blue field — sunburst band with the script name */
.sunband { position: relative; min-height: 66vh; overflow: hidden; display: flex; margin-top: clamp(3rem, 7vh, 5rem); }
.sunband img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 38%; }
.sunband::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 21, 41, .55), transparent 50%); }
.sunband-inner {
  position: relative; z-index: 1; width: 100%; min-height: 66vh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  text-align: center; padding: 3rem var(--pad) 3rem;
}
.sunband-name { font-family: var(--script); font-size: clamp(3rem, 7vw, 5.2rem); color: #fdfaf2; line-height: 1.1; text-shadow: 0 2px 26px rgba(10, 14, 30, .5); }
.sunband-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 1.8vw, 1.4rem); color: var(--peach); margin-top: .4rem; }

/* ── services acts ── */
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.8rem, 3.5vw, 3rem); }
.act { border-top: 2px solid var(--navy); padding-top: 1.4rem; }
.act .no { font-size: .66rem; letter-spacing: .26em; color: var(--gold); }
.act h2 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); margin: .5rem 0 .7rem; }
.act p { font-size: .95rem; }
.act ul { list-style: none; padding: 0; margin-top: 1rem; }
.act li { padding: .5rem 0; border-top: 1px solid var(--hair); font-size: .92rem; }
.act li strong { font-weight: 500; color: var(--ink); }
@media (max-width: 880px) { .acts { grid-template-columns: 1fr; } }

/* ── method line ── */
.method-line { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; position: relative; }
.method-line::before { content: ""; position: absolute; top: 13px; left: 0; right: 0; height: 1px; background: color-mix(in srgb, var(--gold) 50%, transparent); }
.method-line li { position: relative; padding-top: 2.4rem; }
.method-line li::before { content: ""; position: absolute; top: 7px; left: 0; width: 13px; height: 13px; border: 1px solid var(--gold); background: var(--white); border-radius: 50%; }
.method-line .no { font-size: .66rem; letter-spacing: .2em; color: var(--gold); }
.method-line h2 { font-size: 1.45rem; margin: .3rem 0 .5rem; }
.method-line p { font-size: .9rem; }
@media (max-width: 950px) {
  .method-line { grid-template-columns: 1fr; gap: 2rem; padding-left: 2rem; }
  .method-line::before { top: 0; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; }
  .method-line li { padding-top: 0; }
  .method-line li::before { left: -2rem; }
}

/* ── frames & galleries ── */
.plate { margin: 0; background: #fff; border: 1px solid var(--hair); padding: clamp(10px, 1.4vw, 16px); box-shadow: 0 26px 60px -42px rgba(26, 38, 64, .5); }
.plate figcaption { padding-top: .7rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.9rem, 2vw, 1.5rem); margin-top: 1.5rem; }
@media (max-width: 700px) { .strip { grid-template-columns: 1fr; } }

.proj-list { list-style: none; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.8vw, 2.2rem); }
.proj-list li { border: 1px solid var(--hair); background: #fff; }
.proj-list .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); display: grid; place-items: center; }
.proj-list .ph img { width: 100%; height: 100%; object-fit: cover; }
.proj-list .ph span { font-size: .62rem; letter-spacing: .22em; color: var(--faint); text-transform: uppercase; }
.proj-list h2 { font-size: 1.5rem; padding: .9rem 1.1rem 1rem; }
@media (max-width: 920px) { .proj-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .proj-list { grid-template-columns: 1fr; } }

.art-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem); }
@media (max-width: 720px) { .art-grid { grid-template-columns: 1fr; } }

/* ── contact ── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1.4rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--hair); padding: .55rem .05rem;
  border-radius: 0; transition: border-color .25s;
}
.field textarea { border: 1px solid var(--hair); padding: .8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.form-note { font-size: .82rem; color: var(--gold); }
.contact-info p { margin-bottom: .9rem; }
.contact-info .lbl { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: .15rem; }

/* ── footer ── */
.foot { background: var(--deep); color: #e9e4d6; margin-top: clamp(4rem, 10vh, 7rem); }
.home .foot { margin-top: 0; }
.foot-in {
  max-width: var(--maxw); margin-inline: auto; padding: 3.2rem var(--pad) 2.6rem;
  display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr)); gap: 2rem;
}
.foot img { width: clamp(150px, 15vw, 190px); border-radius: 2px; }
.foot h4 { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--peach); margin-bottom: .6rem; font-weight: 400; font-family: var(--sans); }
.foot p, .foot a { font-size: .88rem; color: color-mix(in srgb, #e9e4d6 80%, transparent); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--peach); }
.foot-verse { border-top: 1px solid color-mix(in srgb, #e9e4d6 14%, transparent); padding: 1.6rem var(--pad) 1.8rem; text-align: center; }
.foot-verse p { font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 1.6vw, 1.2rem); color: color-mix(in srgb, #e9e4d6 72%, transparent); }
.foot-verse span { font-style: normal; font-size: .68rem; letter-spacing: .22em; color: color-mix(in srgb, #e9e4d6 45%, transparent); display: block; margin-top: .4rem; }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-in { grid-template-columns: 1fr; } }

/* ── reveal ── */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .show img { animation: none !important; }
}
