/* ═══════════════════════════════════════════════════════════
   STYLE E — "GALLERY MODERN"
   Blend: layout and component styles from "Canyon Modern"
   (floating pill nav, rounded translucent panels, chip labels,
   2×2 step grid, tilted story cards, glassy dusk panel) with
   the calm near-white palette of "Gallery" (warm walls, deep
   ink, single terracotta accent, ghosted scenery).
   ═══════════════════════════════════════════════════════════ */

:root {
  --sky: #f4f2ee;
  --sand-light: #e4ddd2;
  --terra: #b0573d;
  --terra-dark: #8f3d2c;
  --rock-mid: #201d1a;
  --rock-deep: #201d1a;
  --juniper: #6f6862;
  --juniper-dark: #4a453f;
  --sage: #8a8178;
  --ochre: #b0573d;
  --ink: #201d1a;
  --ink-soft: #6f6862;
  --cream: #fcfbf9;
  --card: rgba(252, 251, 249, .93);
  --radius: 22px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--sky); line-height: 1.7; }

h1, h2, h3, blockquote { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); line-height: 1.1; letter-spacing: -.012em; margin: .4em 0; }
h1 em { color: var(--terra); font-style: italic; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }

/* ── nav · floating pill ─────────────────────────── */
.topnav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 50; width: min(1140px, 94vw);
  display: flex; justify-content: space-between; align-items: center;
  padding: .7rem 1.2rem .7rem 1.6rem;
  background: rgba(252,251,249,.82); backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(32,29,26,.12);
}
.wordmark {
  display: inline-flex; align-items: center; gap: .15rem;
  font-family: var(--sans); font-size: 1rem; letter-spacing: .01em;
}
.wordmark .wm-main {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500; font-style: italic;
  font-size: 1.06rem;
  color: var(--ink);
}
.wordmark .wm-sub { color: var(--ink-soft); font-weight: 400; font-size: .8rem; }

.topnav nav { display: flex; gap: 1.5rem; align-items: center; font-size: .87rem; }
.topnav nav a:not(.cta):hover { color: var(--terra); }
@media (max-width: 920px) { .topnav nav { display: none; } }

.btn {
  display: inline-block; padding: .7rem 1.6rem; border-radius: 999px;
  font-size: .92rem; font-weight: 500;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--ink); color: var(--cream); box-shadow: 0 10px 26px rgba(32,29,26,.22); }
.btn.primary:hover { background: var(--terra-dark); }
.btn.ghost { background: rgba(252,251,249,.75); border: 1.5px solid rgba(32,29,26,.22); }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn.big { padding: .95rem 2.1rem; font-size: 1rem; }

/* ── scenery · gray ghosts (Gallery treatment) ───── */
.scenery { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.scenery-layer { position: absolute; bottom: 0; left: -50vw; width: 200vw; will-change: transform; filter: grayscale(1) contrast(.9); }
.scenery-layer img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; display: block; }
.mountains-far  { height: 42vh; opacity: .16; }
.mountains-near { height: 27vh; opacity: .11; }
.sand           { height: 10vh; opacity: .08; }

/* ── hero ────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 8vw 120px;
  background: linear-gradient(180deg, rgba(252,251,249,.4), rgba(252,251,249,.05));
}
.hero-inner {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: center;
  max-width: 1100px; margin: 0 auto;
}
@media (max-width: 850px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-photo { order: 2; }
  .hero-copy  { order: 1; }
}
.kicker {
  display: inline-block; font-size: .74rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--terra-dark);
  background: rgba(252,251,249,.85); border-radius: 999px;
  padding: .4rem 1.1rem; margin-bottom: 1.2rem;
  box-shadow: 0 4px 14px rgba(32,29,26,.06);
}
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 34rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }

.hero-photo { justify-self: center; position: relative; }
.photo-placeholder {
  width: 310px; height: 390px; max-width: 100%;
  background: linear-gradient(160deg, #e4ddd2, #c9bda9);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #786a56; font-style: italic; font-family: var(--serif);
  text-align: center; padding: 1rem;
  box-shadow: 0 30px 70px rgba(32,29,26,.16);
}
.arch-caption {
  margin-top: 1rem; text-align: center; font-family: var(--sans);
  font-size: .85rem; color: var(--ink-soft);
}

/* ── sections · translucent neutral panels over ghost scenery ── */
.section { position: relative; padding: 7rem 8vw; z-index: 1; }
#about { background: linear-gradient(180deg, rgba(252,251,249,.42), rgba(252,251,249,.52)); }
#approach { background: linear-gradient(180deg, rgba(252,251,249,.52), rgba(252,251,249,.58)); }
.section.green { background: linear-gradient(180deg, rgba(252,251,249,.62), rgba(250,246,240,.68)); }
#journal { background: linear-gradient(180deg, rgba(250,246,240,.68), rgba(246,238,230,.72)); }
.section.redrock { background: linear-gradient(180deg, rgba(244,236,228,.74), rgba(240,230,220,.8)); }
.section.dusk { background: #171412; color: #efe9df; overflow: hidden; }

.section-head { max-width: 640px; margin: 0 auto 4rem; text-align: center; }
.station {
  display: inline-block; font-size: .74rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--terra-dark);
  background: rgba(252,251,249,.9); border-radius: 999px;
  padding: .35rem 1rem; margin-bottom: .9rem;
  box-shadow: 0 4px 14px rgba(32,29,26,.06);
}
.section.redrock .station, .dusk .station { color: #e9e2d6; background: rgba(255,255,255,.08); box-shadow: none; }
.station-sub { font-family: var(--sans); color: var(--ink-soft); margin-top: .3rem; font-size: .98rem; }
.section.redrock .station-sub, .dusk .station-sub { color: rgba(239,233,223,.8); }

/* ── about ── */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.4rem; max-width: 1040px; margin: 0 auto; align-items: start; }
@media (max-width: 850px) { .split { grid-template-columns: 1fr; } }
.split .col {
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(32,29,26,.08);
  padding: 2.8rem 2.4rem;
}
.dropcap::first-letter {
  font-family: var(--serif); font-size: 3.2em; float: left;
  line-height: .85; padding-right: .13em; color: var(--terra);
}
.split p + p { margin-top: 1rem; }
.facts { list-style: none; margin-top: 1.6rem; display: grid; gap: .55rem; }
.facts li { background: rgba(32,29,26,.05); border-radius: 12px; padding: .55rem .95rem; color: var(--ink-soft); font-size: .93rem; }
.facts strong { color: var(--ink); }
.photo-placeholder.small { width: 100%; height: 200px; border-radius: 14px; box-shadow: none; background: linear-gradient(160deg, #ddd5c8, #bfb2a0); }
.pullquote {
  margin-top: 1.6rem; font-family: var(--serif); font-style: italic;
  font-size: 1.3rem; line-height: 1.5; color: var(--ink);
}

/* ── approach · soft cards, 2×2 ── */
.steps { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps::before { display: none; }
.step {
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(32,29,26,.07);
  padding: 1.9rem 1.8rem; display: block;
}
.step-num {
  display: inline-flex; width: 2.6rem; height: 2.6rem; border-radius: 999px;
  background: var(--terra); color: #fff;
  align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.1rem; margin-bottom: .9rem;
  border: none;
}
.step h3 { font-size: 1.22rem; margin-bottom: .35rem; }
.step p { color: var(--ink-soft); font-size: .95rem; }

/* ── ways to work ── */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; max-width: 1080px; margin: 0 auto 2.6rem; }
@media (max-width: 900px) { .formats { grid-template-columns: 1fr; max-width: 450px; } }
.format {
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(32,29,26,.08);
  padding: 2.4rem 2rem;
}
.format h3 {
  display: inline-block; font-size: 1.12rem; color: var(--terra-dark);
  background: rgba(176,87,61,.1); border-radius: 999px;
  padding: .45rem 1.1rem; margin-bottom: 1rem;
}
.format p { color: var(--ink-soft); font-size: .95rem; }
.formats-note {
  max-width: 600px; margin: 0 auto 2rem; text-align: center;
  font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 1.05rem;
}
.centered-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── field notes ── */
.entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; max-width: 1080px; margin: 0 auto; }
@media (max-width: 900px) { .entries { grid-template-columns: 1fr; max-width: 440px; } }
.entry {
  display: block; background: var(--card); border-radius: 18px;
  padding: 1.9rem; box-shadow: 0 12px 36px rgba(32,29,26,.08);
  transition: transform .25s, box-shadow .25s;
}
.entry:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(32,29,26,.13); }
.entry h3 { font-size: 1.16rem; margin: .6rem 0; }
.entry p { color: var(--ink-soft); font-size: .93rem; }
.entry-date { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); }
.entry-more { display: inline-block; margin-top: 1rem; color: var(--terra); font-size: .88rem; }
.centered { text-align: center; margin-top: 2.6rem; }

/* ── client stories ── */
/* client stories · carousel (3 visible on desktop, JS cycles) */
.stories-wrap { position: relative; max-width: 1080px; margin: 0 auto; }
.stories { display: flex; overflow: hidden; transition: opacity .18s ease; }
.stories.t-fade { opacity: .3; }
.story {
  flex: 0 0 calc((100% - 4rem) / 3);
  margin-right: 2rem;
  background: rgba(252,251,249,.95); border-radius: 20px;
  box-shadow: 0 14px 40px rgba(32,29,26,.1);
  padding: 2.2rem 1.9rem 1.8rem;
  transform: rotate(-.6deg);
}
.story:nth-child(3n-1) { transform: rotate(.5deg); }
.story:nth-child(3n) { transform: rotate(-.35deg); }
.story:hover { transform: rotate(0) translateY(-5px); }
.story.is-hidden { display: none; }
.t-controls { display: flex; justify-content: center; gap: 1rem; margin-top: 1.8rem; }
.t-prev, .t-next {
  width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid rgba(32,29,26,.3); background: none;
  cursor: pointer; font-size: 1.35rem; line-height: 1;
  color: var(--ink); display: flex; align-items: center; justify-content: center;
}
.t-prev:hover, .t-next:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.story blockquote { font-size: 1.04rem; font-style: italic; }
.story figcaption { margin-top: 1.1rem; font-size: .85rem; color: var(--ink); }
.story figcaption span { color: var(--ink-soft); }

/* ── discovery call · the black gallery room, glassy panel ── */
.dusk-inner {
  text-align: center; max-width: 680px; margin: 0 auto;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px; padding: 3.5rem 2.5rem;
  backdrop-filter: blur(4px);
}
.dusk h2 { color: #efe9df; }
.dusk-lede { max-width: 600px; margin: 1rem auto 2.4rem; color: #b9ac9c; font-size: 1.07rem; }
.section.dusk .dusk-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; align-items: stretch; }
.dusk-actions .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: .6rem 2rem;
  font-size: 1rem;
}
.dusk .btn.primary { background: #efe9df; color: #171412; box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.dusk .btn.primary:hover { background: var(--terra); color: #fff; }
.btn.light-ghost { border: 1.5px solid rgba(255,255,255,.35); color: #cfc5b8; }
.btn.light-ghost:hover { background: #efe9df; color: #171412; }
.dusk-note { margin-top: 1.7rem; font-size: .8rem; color: #7c7266; }

/* ── footer ── */
footer.night {
  position: relative; z-index: 1; padding: 3.4rem 1rem; text-align: center;
  font-size: .85rem; color: #8a8178;
  background: #100e0c;
}
footer p + p { margin-top: .35rem; }
.foot-links a:hover { color: #fff; }
.fineprint { font-family: var(--serif); font-style: italic; margin-top: .9rem !important; }

/* ── scroll-reveal ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }

/* stories heading stays on one line on wide screens */
#testimonials .section-head { max-width: 900px; }
@media (min-width: 1100px) { #testimonials h2 { white-space: nowrap; } }

/* style chip (mockup preview aid) */
.style-chip {
  position: fixed; bottom: 18px; right: 18px; z-index: 60;
  font-family: var(--sans); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(23,20,18,.65); color: #efe9df;
  padding: 5px 13px; border-radius: 999px; pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mountains-far, .mountains-near, .sand { opacity: .1; }
}
/* ═══════════════════════════════════════════════════════════
   JOURNAL & POST PAGES
   ═══════════════════════════════════════════════════════════ */

:root { --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; }

.journal-page { background: linear-gradient(180deg, rgba(252,251,249,.55), rgba(252,251,249,.75)); min-height: 72vh; }

/* journal index tweak: cards carry links nicely */
.entries .entry { min-height: 0; }

/* individual post */
.post {
  max-width: 720px; margin: 0 auto;
  background: var(--card); border-radius: 26px;
  box-shadow: 0 18px 50px rgba(32,29,26,.09);
  padding: 3rem 3rem 2.5rem;
}
@media (max-width: 760px) { .post { padding: 2.2rem 1.5rem; } }

.post-meta {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 1rem;
}
.post-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15;
  letter-spacing: -.015em; margin: 0 0 1.6rem;
}
.post-body h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.55rem; letter-spacing: -.01em;
  margin: 2rem 0 .8rem;
}
.post-body h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.22rem; margin: 1.6rem 0 .6rem;
}
.post-body p { margin-bottom: 1.05rem; }
.post-body ul { margin: 0 0 1.05rem 1.3rem; }
.post-body li { margin-bottom: .4rem; }
.post-body strong { font-weight: 600; color: var(--rock-deep); }
.post-body blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: 1.12rem; color: var(--terra-dark);
  border-left: 3px solid var(--terra); padding-left: 1.1rem;
  margin: 1.6rem 0;
}
.post-body code {
  font-family: var(--mono); font-size: .88em;
  background: rgba(32,29,26,.06); padding: .1em .4em; border-radius: 4px;
}
.back-link { display: inline-block; margin-top: 2.2rem; font-size: .88rem; color: var(--terra); }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ═══════════════════════════════════════════════════════════
   TESTIMONIAL MODAL + post-format touches
   ═══════════════════════════════════════════════════════════ */

/* cards are clickable; the button carries keyboard access */
.story-more {
  margin-top: 1.1rem; background: none; border: none; padding: 0;
  color: var(--terra); font-family: var(--sans); font-size: .85rem;
  cursor: pointer; text-align: left;
}
.story-more:hover { text-decoration: underline; text-underline-offset: 4px; }

.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  background: rgba(23,20,18,.55); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card {
  position: relative;
  background: #fcfbf9; border-radius: 26px;
  max-width: 640px; width: 100%; max-height: 85vh;
  padding: 0; overflow: hidden;         /* card owns only the corners, never scrolls */
  box-shadow: 0 40px 90px rgba(0,0,0,.35);
  transform: translateY(14px); transition: transform .25s ease;
}
/* the scroller: native scrollbar fully hidden; the JS rail below does the visuals.
   The inner box stays inset inside the rounded card, clear of the corners. */
.modal-scroll {
  max-height: 85vh;
  margin: 10px 10px 10px 0;
  padding: 2.6rem 2.9rem 2.2rem 2.6rem;
  overflow-y: auto;
  scrollbar-width: none;                 /* Firefox */
  -ms-overflow-style: none;              /* legacy Edge */
}
.modal-scroll::-webkit-scrollbar { display: none; }

/* custom rail + thumb: always identical caps on every browser */
.scroll-rail {
  position: absolute; top: 14px; bottom: 14px; right: 8px; width: 6px;
  border-radius: 999px; background: rgba(32,29,26,.08);
}
.scroll-thumb {
  position: absolute; right: 0; width: 6px;
  border-radius: 999px; background: var(--terra); cursor: grab;
}
.scroll-thumb:hover { background: var(--terra-dark); }
.scroll-thumb.is-dragging { background: var(--terra-dark); }
.modal.open .modal-card { transform: none; }
.modal-name {
  font-family: var(--serif); font-weight: 450;
  font-size: 1.05rem; color: var(--terra-dark);
  margin-bottom: 1.1rem; padding-right: 2.4rem;
}
.modal-body-md p { margin-bottom: 1rem; color: var(--ink); font-size: .99rem; }
.modal-body-md p:last-child { margin-bottom: 0; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid rgba(32,29,26,.18); background: #fff;
  cursor: pointer; font-size: 1.05rem; line-height: 1; color: var(--ink);
}
.modal-close:hover { background: var(--terra); border-color: var(--terra); color: #fff; }

/* journal entry format note: cards are uniform in style;
   only the small meta label carries the format name */
.entry--note { background: #fcfbf9; }

@media (prefers-reduced-motion: reduce) {
  .modal, .modal-card { transition: none; }
}

/* ── photos: auto-picked-up by filename ──
   site/assets/headshot.* → hero photo
   site/assets/about.*    → about photo
   (jpg, jpeg, png, webp, avif, gif) */
.hero-photo img {
  width: 310px; height: 390px; max-width: 100%;
  object-fit: cover; display: block;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(32,29,26,.16);
}
.about-photo {
  width: 100%; height: 220px; object-fit: cover; display: block;
  border-radius: 14px;
}

/* ── nav logo (site/assets/logo.*) ── */
.wordmark-logo {
  width: 27px; height: 27px;
  display: block;
  border-radius: 6px;
}

/* ── footer signature mark (site/assets/white.png) ── */
.footer-mark {
  width: 52px; height: 52px;
  display: block; margin: 0 auto 1rem;
  opacity: .9;
}
