/* ════════════════════════════════════════════════════════════
   Ornamental Land Design — Stylesheet
   ────────────────────────────────────────────────────────────
   1.  Fonts
   2.  Design tokens (:root)
   3.  Reset & utilities
   4.  Frame
   5.  Top bar (incl. nav + mobile menu)
   6.  Hero
   7.  Sections (generic header / title / intro)
   8.  About
   9.  Logo page
   10. Designer page
   11. Projects
   12. Badges
   13. Testimonials
   14. Contact
   15. Subpage frame & layout
   16. Gallery page (incl. lightbox)
   ════════════════════════════════════════════════════════════ */

/* ── Fonts ── */
@font-face {
  font-family: "PP Neue Montreal";
  src: url("assets/fonts/ppneuemontreal-book.otf");
}
@font-face {
  font-family: "PP Neue Montreal semi-bold";
  src: url("assets/fonts/ppneuemontreal-medium.otf");
}

@font-face {
  font-family: "Neue Haas Display";
  src: url("assets/fonts/NeueHaasDisplayRoman.ttf");
}

@font-face {
  font-family: "PP Mori";
  src: url("assets/fonts/PPMori-Regular.otf") format("opentype");
}

:root {
  --ethereal: #d8daca;
  --jewel: #0b453f;

  /* ── palette ── */
  --surface: #eef1eb;
  --surface-2: #ebe9e0;
  --brand-teal: #2c6e72;
  --brand-teal-r: 44;
  --brand-teal-g: 110;
  --brand-teal-b: 114;
  --brand-olive: #babd5b;
  --text: #494d4c;
  --text-muted: #68645a;
  --text-soft: #9b9779;
  --rule: #d3d8d490;
  --rule-strong: rgba(26, 29, 24, 0.18);
  --olive-bark: #6b5e1e;
  --dark-slate-grey: #153735;
  --ocean-deep: #5d7d76;
  --olive-orchard: #897d31;
  --frosty-fern: #ced7d3;
  --white-tea: #f0ede5;
  --grassland: #9f9e88;
  --flora: #848170;
  --cliff: #5a554c;
  --clay: #92a373;
  --clay-light: #bec8a6;

  /* ── On-dark text ── */
  --on-dark-strong: rgba(246, 242, 233, 0.85);
  --on-dark: rgba(246, 242, 233, 0.6);
  --on-dark-soft: rgba(246, 242, 233, 0.4);
  --on-dark-faint: rgba(246, 242, 233, 0.2);

  /* ── Typography ── */
  --font-display: "DM Sans", system-ui, sans-serif;
  --text-label: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-h1: clamp(2.45rem, 4.5vw, 3.2rem);

  /* ── Letter spacing ── */
  --track-tight: 0;
  --track-normal: 0;
  --track-label: 0.2em;

  /* ── Line height ── */
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-loose: 1.8;

  /* ── Spacing scale ── */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* ── Containers ──*/
  --container-max: 1300px;
  --container: min(90vw, var(--container-max));
  --container-readable: 1100px;

  /* ── Shape ── */
  --radius-sm: 4px;

  /* ── Motion ── */
  --motion-fast: 200ms;
  --motion-base: 400ms;
  --motion-slow: 800ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fast: ease;
}

/* ── Reset & utilities ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  background: var(--surface);
  scrollbar-gutter: stable;
  overscroll-behavior-y: none;
}

body {
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--text);
  background: var(--surface);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  font-weight: 400;
  font-size: var(--text-base);
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Frame ── */
.frame {
  max-width: 100vw;
  margin: 0 auto;
}
.frame.loading {
  overflow: hidden;
  height: 100vh;
  opacity: 0;
}

/* ── Top bar ── */
.top-bar {
  position: fixed;
  top: 0;
  z-index: 50;
  max-width: 100vw;
  width: 100vw;
  margin: 0;
  background: var(--surface);
  transition:
    transform var(--motion-base) var(--ease-out),
    background-color var(--motion-slow) var(--ease-out);
}
body.nav-over-projects .top-bar {
  background: var(--ocean-deep);
}
.top-bar.designer-nav {
  background: var(--clay-light);
}
body.nav-hidden .top-bar {
  transform: translateY(-100%);
}
body.nav-open .top-bar {
  transform: none;
}
.top-bar__inner {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(18px, 2.3vw, 24px) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo img {
  height: 5.8vh;
  justify-self: start;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
}
.brand-wordmark span {
  font-family: "Montserrat";
  font-size: clamp(1.25rem, 1.75vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--text);
  line-height: 1.2;
}

.brand-wordmark span:nth-of-type(2) {
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: clamp(1.06rem, calc(1.75vw * 0.85), 1.27rem);
}

.brand-wordmark.light span {
  color: var(--white-tea);
}

.brand-wordmark span,
.top-nav a {
  transition: color var(--motion-slow) var(--ease-out);
}
body.nav-light .brand-wordmark span,
body.nav-light .top-nav a {
  color: var(--surface);
}

body.nav-light .menu-toggle__bars span {
  background-color: var(--surface);
}

@media (max-width: 820px) {
  .top-bar__inner {
    width: 100%;
    margin-left: 0;
    padding-left: 4.2vw;
    padding-right: 4.2vw;
  }
  .brand-logo {
    margin-left: 0;
  }
  .brand-wordmark {
    font-size: 1.15rem;
  }
}

/* ── Nav (desktop: inline horizontal bar) ── */
.top-nav {
  display: flex;
  font-family: "Montserrat";
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  font-size: clamp(16.5px, 0.015vw, 18px);
  letter-spacing: 0.015em;
  text-transform: lowercase;
}
.top-nav a {
  padding: 0.4rem 0.1rem;
  font-weight: 450;
  position: relative;
  color: var(--text-muted);
  transition: color var(--motion-fast) var(--ease-fast);
}
.top-nav a::after {
  content: "";
  position: absolute;
  bottom: 0.1rem;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--grassland);
  transition: width var(--motion-fast) var(--ease-fast);
}
.top-nav a:hover,
.top-nav a.is-active {
  color: var(--cliff);
}
.top-nav a:hover::after,
.top-nav a.is-active::after {
  width: 100%;
}
.top-bar.designer-nav .top-nav a.is-active::after {
  background: var(--cliff);
}

.top-nav a.is-active::after {
  background: var(--brand-olive);
}
.top-nav a:hover::after {
  background: var(--olive-orchard);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  z-index: 70;
  position: relative;
}
.menu-toggle__bars {
  display: grid;
  gap: 5px;
}
.menu-toggle__bars span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--dark-slate-grey);
  transition:
    background-color var(--motion-slow) var(--ease-out),
    transform var(--motion-fast) var(--ease-fast),
    opacity 180ms var(--ease-fast);
}
body.nav-open .menu-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.nav-open .menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}
body.nav-open .menu-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 966px) {
  .menu-toggle {
    display: flex;
  }
  .top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: 100vh;
    background: rgba(
      var(--brand-teal-r),
      var(--brand-teal-g),
      var(--brand-teal-b),
      0.96
    );
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.6rem, 2.2vh, 1.1rem);
    padding: clamp(5rem, 13vh, 7rem) var(--space-5) clamp(2rem, 6vh, 3.2rem);
    font-size: 1.1rem;
    letter-spacing: var(--track-label);
    z-index: 55;
    visibility: hidden;
    pointer-events: none;
    clip-path: inset(0 0 100% 0);
    transition:
      clip-path 460ms var(--ease-out),
      visibility 0s linear 460ms;
  }
  body.nav-open .top-nav {
    visibility: visible;
    pointer-events: auto;
    clip-path: inset(0 0 0% 0);
    transition:
      clip-path 460ms var(--ease-out),
      visibility 0s;
  }
  body.nav-open .top-bar {
    z-index: 65;
    background: transparent;
    transform: none;
  }
  body.nav-open .brand-logo {
    position: relative;
    z-index: 66;
  }
  .top-nav a,
  body.nav-open .top-nav a {
    color: var(--white-tea);
    padding: 0.5rem 0.4rem;
  }
  .top-nav a:hover,
  .top-nav a.is-active {
    color: var(--brand-olive);
  }
  body.nav-open .menu-toggle__bars span {
    background-color: var(--white-tea);
  }
  body.nav-open {
    overflow: hidden;
  }
}

@media (min-width: 821px) and (max-width: 966px) {
  .top-nav {
    left: calc(6.25vw + max(340px, 39.375vw));
    right: 0;
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .top-nav {
    align-items: flex-start;
    justify-content: center;
    gap: clamp(1.1rem, 3.5vh, 1.9rem);
    padding: clamp(6rem, 20vh, 9rem) clamp(1.75rem, 7vw, 2.5rem)
      clamp(2.5rem, 8vh, 3.5rem);
    font-size: clamp(1.6rem, 7vw, 2rem);
    text-transform: none;
    letter-spacing: 0.005em;
  }
  .top-nav a,
  body.nav-open .top-nav a {
    padding: 0.35rem 0;
  }
}

@media (max-width: 820px) {
  body.nav-open .brand-wordmark span {
    color: var(--white-tea);
  }
  body.nav-over-hero:not(.nav-open) .top-bar {
    background: var(--brand-teal);
  }
  body.nav-over-hero:not(.nav-open) .brand-wordmark span {
    color: var(--white-tea);
  }
  body.nav-over-hero:not(.nav-open) .menu-toggle__bars span {
    background-color: var(--white-tea);
  }
}

/* ── Hero ── */
.hero {
  width: var(--container);
  margin: clamp(7.5rem, 13vh, 11rem) auto clamp(2.75rem, 6vh, 4.5rem);
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  height: min(75vh, 860px);
  min-height: 560px;
  background: transparent;
  overflow: hidden;
}
.hero__text-top {
  padding: clamp(40px, 4.45vw, 50px);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: var(--brand-teal);
}
.hero__right {
  position: relative;
  overflow: hidden;
  background-color: var(--brand-teal);
}
.hero-kicker {
  font-size: clamp(17.5px, 1.5vw, 26px);
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: var(--brand-olive);
  margin-top: clamp(30px, 3.5vw, 40px);
  display: flex;
  min-width: 100%;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-family: "Libre Franklin";
  font-weight: 400;
}
.hero-title {
  font-family: "Montserrat";
  font-size: clamp(50px, 4.6vw, 70px);
  font-weight: 430;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--surface);
  max-width: none;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  text-align: left;
}
.hero-title span {
  display: block;
}
.hero__right .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: url("assets/photos/details/JUL02877.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 40% 20%;
}
@media (max-width: 820px) {
  :root {
    --hero-inset: 28px;
  }
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(220px, 38vh);
    height: 100vh;
    min-height: 640px;
    margin: 0;
    width: 100%;
  }
  .hero__text-top {
    min-height: 0;
    padding: 0 var(--hero-inset) 52px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    text-align: left;
  }
  .hero-kicker {
    font-size: clamp(22px, 2.45vw, 24px);
  }
  .hero-kicker span {
    min-width: 0;
  }
  .hero-title {
    text-align: left;
    font-size: clamp(40px, 9vw, 56px);
    margin-bottom: 0.4em;
    max-width: none;
  }
  .hero__right {
    height: auto;
  }
}

/* ── Sections ── */
.section {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}
.section-header {
  margin-bottom: clamp(2.4rem, 5vh, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(20rem, 1fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: end;
}
.section-kicker {
  grid-column: 1;
  grid-row: 1;
  font-size: 1rem;
  letter-spacing: 0.175em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  overflow: hidden;
  font-family: "DM Sans";
}
.section-kicker::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--text-soft);
  flex-shrink: 0;
}
.section-title {
  grid-column: 1;
  grid-row: 2;
  font-family: "Poppins";
  font-size: clamp(2.2rem, 2.8vw, 2.8rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: var(--track-tight);
  color: var(--text);
  max-width: 17em;
}
.section-intro {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0;
  font-size: var(--text-base);
  line-height: 1.78;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 44rem;
}

@media (max-width: 820px) {
  .section {
    width: min(90vw, var(--container-readable));
    padding: clamp(3.8rem, 10vw, 5.5rem) 0;
  }
  .section-header,
  section#projects .section-header {
    width: min(90vw, var(--container-readable));
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: var(--space-6);
  }
  .section-kicker,
  .section-title,
  .section-intro {
    grid-column: auto;
    grid-row: auto;
  }
  .section-intro {
    margin-top: 1rem;
  }
}

/* ── About ── */
section#about {
  margin-top: clamp(1.1rem, 2.5vh, 2rem);
  padding-bottom: clamp(0.55rem, 1vh, 1rem);
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: max(5vw, calc(50vw - 650px));
  margin-bottom: -clamp(3rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
  background: var(--surface);
}
section#about .section-title {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  padding-bottom: 0.1em;
  font-size: clamp(28px, 3vw, 40px);
}
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  grid-template-areas:
    "glyph ."
    "quote card"
    ". card";
  column-gap: clamp(5rem, 7.5vw, 500px);
  row-gap: 0;
  align-items: start;
  margin-top: clamp(2.5rem, 4vw, 3rem);
}
.about-quote-mark {
  grid-area: glyph;
  margin: 0 0 -0.5rem;
  font-family: "Libre Franklin";
  font-size: clamp(3.3rem, 5.3vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  color: rgba(166, 172, 52, 0.684);
}
.about-quote {
  grid-area: quote;
  margin: 0;
  font-family: "Montserrat";
  font-size: clamp(20px, 1.8vw, 22px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--brand-teal);
}
.about-card {
  --card-pad-y: clamp(2rem, 7vw, 4.5rem);
  grid-column: 2;
  grid-row: 2 / 4;
  align-self: start;
  position: relative;
  z-index: 2;
  /* Pull the card up by exactly its top padding so .about-copy's first line
     starts level with the top of .about-quote (top-aligned). The bottom bleed
     (overlapping the projects band below) is unchanged. */
  margin: calc(-1 * var(--card-pad-y)) 0 calc(-1 * clamp(2.5rem, 7.5vw, 7.5rem));
  padding: var(--card-pad-y) clamp(2rem, 5vw, 3.5rem);
  background: var(--clay-light);
}
.about-copy {
  grid-area: copy;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  text-align: left;
  text-wrap: pretty;
  font-family: "DM Sans";
}
.about-copy p span.sparkle {
  color: var(--dark-slate-grey);
  font-style: italic;
}
.about-copy p {
  margin-bottom: 1.5rem;
}
.about-copy p:last-of-type {
  margin-bottom: 0;
}
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 14px;
  letter-spacing: 0.15em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid rgba(80, 77, 69, 0.65);
  padding-bottom: 3px;
  cursor: pointer;
  transition:
    color var(--motion-fast) var(--ease-fast),
    border-color var(--motion-fast) var(--ease-fast);
}
.inline-link__arrow {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  transition: transform var(--motion-fast) var(--ease-fast);
}
.inline-link:hover {
  color: var(--brand-teal);
  border-bottom-color: var(--brand-teal);
}
.inline-link:hover .inline-link__arrow {
  transform: translate(2px, -2px);
}
.about-links {
  grid-area: links;
  display: flex;
  justify-content: flex-end;
  gap: clamp(2rem, 5vw, 6rem);
  flex-wrap: wrap;
  align-items: center;
  margin-top: 7.5vh;
}
.about-links .inline-link {
  font-size: 13px;
  letter-spacing: 0.18em;
  padding-bottom: 5px;
}
@media (max-width: 820px) {
  section#about {
    width: min(90vw, var(--container-readable));
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    margin-bottom: 0;
  }
  .about-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "glyph"
      "quote"
      "card";
    padding-bottom: 9vh;
  }
  .about-card {
    grid-column: auto;
    grid-row: auto;
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    z-index: auto;
  }
  .about-quote {
    margin-bottom: 4rem;
  }
  .about-copy {
    margin-top: var(--space-6);
    text-align: left;
  }
  .about-links {
    justify-content: center;
  }
}

/* ── Logo page layout ── */
#logo {
  width: min(85vw, 1225px);
  margin-inline: auto;
}
.subpage-section.logo-editorial {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.logo-page-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(3.3rem, 4vw, 4.1rem);
  padding: clamp(6.5rem, 10vw, 13rem) 0 0;
  margin: 0;
  font-family: "Poppins";
}

.logo-page-header .subpage-back-link {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  line-height: 1;
}

.logo-page-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1;
  color: var(--text-soft);
  margin: 0;
  margin-bottom: 2rem;
  justify-self: end;
  justify-content: flex-end;
  align-self: start;
  width: min(42vw, 40rem);
  text-align: right;
  grid-column: 2;
}
.logo-page-title::after {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--text-soft);
  flex-shrink: 0;
}

.logo-page-header .subpage-back {
  margin-bottom: 0;
}

.logo-page-layout {
  position: relative;
  display: grid;
  grid-template-columns: 25vw minmax(18rem, 42vw);
  justify-content: space-between;
  align-items: start;
  column-gap: clamp(2rem, 5vw, 5rem);
  padding: 0 0 clamp(4rem, 7vw, 7rem);
}

.logo-page-mark-wrap {
  width: 30vw;
  min-width: 250px;
  max-width: 380px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem, 2vw, 2.5rem);
}

.logo-mark-large {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 90%;
  margin-inline: auto;
  aspect-ratio: 0.974;
  background-image: url("assets/photos/succulent_extracted.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: saturate(0.9) contrast(1.04);
}

.logo-page-mark-wrap figcaption {
  position: static;
  z-index: 1;
  max-width: none;
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  color: var(--cliff);
}

.logo-copy {
  display: flex;
  flex-direction: column;
  padding-right: clamp(0rem, 3vw, 3rem);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 33rem;
  font-family: "PP Mori";
  grid-column: 2;
  justify-self: end;
  width: min(45vw, 40rem);
  padding: 0;
  text-align: left;
  font-size: 15px;
  line-height: 1.8;
  text-wrap: pretty;
}

.logo-copy p {
  max-width: none;
  margin-bottom: 24px;
}
.logo-copy p:last-child {
  margin-bottom: 0;
}

.logo-copy-lede {
  margin-bottom: 2.5rem;
  font-weight: 400;
  color: var(--brand-teal);
  text-wrap: balance;
  font-family: "Neue Haas Display";
  grid-column: 2;
  margin-top: 0.5rem;
  width: 200%;
  justify-self: flex-end;
  text-align: right;
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1.45;
}

@media (max-width: 820px) {
  .logo-page-header {
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 1.4rem);
    margin-bottom: clamp(0.5rem, 2vw, 1.25rem);
  }

  .logo-page-header .subpage-back,
  .logo-page-header .section-kicker,
  .logo-page-header .section-intro {
    grid-column: auto;
    grid-row: auto;
  }

  .logo-page-header .section-intro {
    margin-top: 1rem;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .subpage-section.logo-editorial {
    width: 100%;
    max-width: none;
  }

  /* Genuinely collapse to a single column: the lede and copy were pinned to the
     old column 2 (and the lede was 200% wide), which kept the grid two-up and
     pushed content off-screen. Span every child across the single track. */
  .logo-page-layout {
    grid-template-columns: 1fr;
  }
  .logo-copy-lede,
  .logo-page-mark-wrap,
  .logo-copy {
    grid-column: 1;
  }
  .logo-copy-lede,
  .logo-copy {
    width: 100%;
    justify-self: stretch;
  }
  .logo-copy-lede {
    margin-top: 0;
  }
  /* the section title is always right-aligned */
  #logo-page-title {
    grid-column: 1;
    width: 100%;
    justify-self: stretch;
    justify-content: flex-end;
    text-align: right;
  }
}

@media (max-width: 600px) {
  .logo-mark-large {
    width: min(90%, 18rem);
  }
}

/* ── Designer ── */

.subpage-section.designer-editorial {
  padding-bottom: 0;
}

#designer {
  background: var(--clay-light);
}

#designer
  :is(
    .section-kicker,
    .subpage-back,
    .section-header,
    .subpage-section,
    .subpage-back-link
  ) {
  color: var(--olive-bark);
}
#designer .section-kicker::before {
  background: var(--olive-bark);
}
#designer .section-header {
  margin: 0 auto;
  width: var(--container);
}
#designer .designer-page-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.7rem, 5vw, 5rem);
}
.designer-page-header .subpage-back {
  margin-bottom: 0;
}
.designer-row.biography a.subpage-back-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
}
.designer-page-layout {
  /* gutter = distance from the window edge to the centered container edge */
  --gutter: calc((100vw - var(--container)) / 2);
  display: grid;
  gap: clamp(0.8rem, 1.8vw, 1.6rem);
  margin: clamp(2rem, 4vw, 3.25rem) auto 0; /* clearance below the crumb */
  width: var(--container);
}
.designer-row.biography {
  position: relative;
  z-index: 2;
  justify-self: stretch;
  width: auto;
  margin-left: clamp(4rem, 16vw, 21rem);
  margin-right: calc(-1 * var(--gutter));
  background: var(--surface);
  padding: clamp(1.75rem, 3.5vw, 3.25rem) clamp(3.5rem, 7vw, 7.5rem)
    clamp(1.75rem, 3.5vw, 3.25rem) clamp(1.75rem, 3.5vw, 3.25rem);
  display: grid;
  grid-template-columns: clamp(118px, 15vw, 164px) 1fr;
  grid-template-areas:
    "back back"
    "portrait head"
    "cols cols";
  column-gap: clamp(1.5rem, 3vw, 2.75rem);
  row-gap: clamp(1.75rem, 3.5vw, 2.75rem);
  align-items: start;
}
.designer-row.biography .subpage-back {
  grid-area: back;
  margin-bottom: 0;
}
.designer-page-photo-wrap {
  grid-area: portrait;
  align-self: start;
  width: 100%;
  margin-left: 0;
}
.designer-page-photo {
  aspect-ratio: 0.75;
  width: 100%;
  background: var(--surface-2) url("assets/photos/Dianne\ Image.png") center
    top / cover no-repeat;
}
.hero-head {
  grid-area: head;
  align-self: start;
}
.card-eyebrow {
  margin: 0 0 clamp(0.6rem, 1.2vw, 0.95rem);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-muted);
}
.card-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--brand-teal);
}
.hero-cols {
  grid-area: cols;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(1.5rem, 3vw, 3rem);
  row-gap: clamp(1.5rem, 3vw, 2rem);
}
.hero-col {
  align-self: end;
}
.designer-identity {
  margin: 0 0 clamp(0.85rem, 1.8vw, 1.3rem);
}
.designer-name {
  font-size: 17px;
  font-weight: 500;
  font-family: "PP Neue Montreal semi-bold";
  color: var(--olive-bark);
}
p.designer-sub {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.designer-copy {
  margin: 0;
  max-width: none;
  font-family: "PP Mori";
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-muted);
}
.designer-row.highlight {
  --cp-offset: clamp(1.5rem, 10%, 7rem);
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  /* full window width + overlap under the card */
  margin: clamp(-6.5rem, -15vw, -15rem) calc(-1 * var(--gutter)) 0;
  /* extra top padding */
  padding: clamp(6.5rem, 15vw, 15rem) clamp(3.25rem, 8vw, 8rem)
    clamp(2.4rem, 5vw, 4.5rem);
  background: var(--ocean-deep);
  color: var(--surface);
}
.core {
  position: relative;
  width: fit-content;
  margin: 0 0 clamp(2.25rem, 5vw, 3.75rem);
  padding: 0;
  font-family: "Poppins";
  font-weight: 300;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--surface);
}

.points {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.25rem, 4.5vw, 3.25rem);
  padding-left: calc(var(--cp-offset) + clamp(0.5rem, 1vw, 1rem));
  counter-reset: practice;
}
.point {
  display: flex;
  flex-direction: column;
  max-width: 760px;
  padding: 0;
  border: 0;
  counter-increment: practice;
}
.point::before {
  content: "0" counter(practice);
  margin-bottom: 16px;
  font-family: "Montserrat";
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--brand-olive);
}
.point .block {
  display: none;
}
.point .t {
  display: grid;
  gap: 0;
}
.point h3 {
  margin-bottom: 18px;
  font-family: "Montserrat";
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--surface);
}
.point p {
  margin: 0;
  max-width: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(238, 241, 235, 0.8);
}
@media (min-width: 1080px) {
  .points {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(2.5rem, 5vw, 5rem);
  }
}
@media (min-width: 781px) {
  .core {
    margin-top: -1 * calc(calc(100vw - 1071px) / 1300px);
  }
}
@media (max-width: 760px) {
  .designer-row.biography {
    margin-left: clamp(2rem, 9vw, 6rem);
    margin-right: calc(-1 * var(--gutter));
    grid-template-columns: clamp(96px, 22vw, 140px) 1fr;
    grid-template-areas:
      "back back"
      "portrait head"
      "cols cols";
    column-gap: clamp(1rem, 3vw, 1.75rem);
    row-gap: clamp(1.25rem, 4vw, 1.85rem);
    padding: clamp(1.5rem, 5vw, 2.5rem) clamp(2rem, 6vw, 4rem)
      clamp(1.5rem, 5vw, 2.5rem) clamp(1.5rem, 5vw, 2.25rem);
  }
  .designer-page-photo-wrap {
    width: 100%;
    margin-left: 0;
    justify-self: stretch;
  }
  .hero-cols {
    grid-template-columns: 1fr;
    row-gap: clamp(1.25rem, 4vw, 1.75rem);
  }
  .core {
    margin-top: 4.5rem;
    margin-bottom: 3.2rem;
  }
}

@media (max-width: 720px) {
  #designer .subpage-back,
  #designer .section-header {
    margin-left: 0;
  }
  #designer .section-header {
    width: 100%;
  }
  .designer-page-layout {
    width: 100%;
    gap: var(--space-7);
  }
  .designer-row.highlight {
    --cp-offset: 0;
    padding: clamp(3.25rem, 10vw, 4rem) clamp(1.75rem, 7vw, 3rem) var(--space-5);
  }
  .core,
  .points {
    padding-inline: clamp(0.75rem, 4vw, 1.75rem);
  }
  .core {
    margin-bottom: var(--space-5);
  }
  .core::after {
    display: none;
  }
  .point h3 {
    font-size: 14px;
  }
}

/* ── Projects ── */
section#projects {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  background: var(--ocean-deep);
  padding: clamp(5rem, 10vw, 10rem) 0 clamp(3.5rem, 5vw, 5rem);
}
section#projects .section-header {
  width: var(--container);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(2rem, 3.25vw, 3.25rem);
  padding: 0;
  display: block;
}
#projects-title {
  color: var(--on-dark-strong);
  grid-column: none;
  grid-row: none;
  max-width: none;
  padding-bottom: 1.2rem;
}

section#projects .section-intro {
  color: var(--on-dark);
}
.projects-strip-wrap {
  --arrow-pad: clamp(2rem, 4vw, 4.5rem);
  --arrow-size: calc(var(--arrow-pad) * 0.6);
  --strip-gap: clamp(1.9rem, 4vw, 3rem);
  position: relative;
  box-sizing: border-box;
  width: min(100vw, calc(var(--container) + 2 * var(--arrow-pad)));
  margin: 0 0 0
    max(0px, calc((100vw - var(--container)) / 2 - var(--arrow-pad)));
  padding-inline: var(--arrow-pad);
}
.projects-strip {
  width: 100%;
  max-width: none;
  margin: 0;
  /* Grid (not flex) so every panel shares the same three rows: image / title /
     body. Each panel is a subgrid spanning those rows, so the title row height
     and the body row height are equalized across all cards (2a). */
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--strip-gap)) / 2);
  grid-template-rows: auto auto 1fr;
  column-gap: var(--strip-gap);
  row-gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-6);
}
.strip-arrow {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--arrow-size);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand-teal);
  cursor: pointer;
  transition:
    opacity var(--motion-base) var(--ease-fast),
    background var(--motion-fast) var(--ease-fast),
    border-color var(--motion-fast) var(--ease-fast),
    color var(--motion-fast) var(--ease-fast);
}
.strip-arrow:hover {
  background: var(--brand-olive);
  border-color: var(--brand-olive);
  color: var(--surface);
}
.strip-arrow svg {
  width: 65%;
  height: 65%;
}
.strip-arrow--prev {
  left: 0;
}
.strip-arrow--next {
  right: 0;
}
.strip-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.projects-strip::-webkit-scrollbar {
  height: 1px;
}
.projects-strip::-webkit-scrollbar-track {
  background: var(--on-dark-faint);
}
.project-panel {
  min-width: 0;
  scroll-snap-align: start;
  /* Subgrid: inherit the strip's three rows so titles align with titles and
     bodies with bodies across every card. Row gap comes from the parent. */
  display: grid;
  grid-row: 1 / span 3;
  grid-template-rows: subgrid;
  grid-template-columns: minmax(0, 1fr);
}
.project-image {
  height: auto;
  aspect-ratio: 1.32;
  background-color: var(--ocean-deep);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
  border-radius: 2px;
}

.project-image.one {
  background-image: url("assets/photos/co/JA_08928.jpeg");
}
.project-image.two {
  background-image: url("assets/photos/zr/JUL00438.jpeg");
}
.project-image.three {
  background-image: url("assets/photos/kim/2744 14th St-471.jpeg");
}
.project-image.four {
  background-image: url("assets/photos/ki/kirkby2 2-2.jpeg");
  background-position: 15% 14%;
}
.project-image.five {
  background-image: url("assets/photos/hi/IMAG0935updated-2.jpeg");
}
.project-image.six {
  background-image: url("assets/photos/gr/IMG_9030.jpeg");
}
.project-image.seven {
  background-image: url("assets/photos/montclair/JUL03695.jpeg");
}
.project-image.eight {
  background-image: url("assets/photos/details/JA_08965.jpeg");
}
.project-image.nine {
  background-image: url("assets/photos/roof/SAN PABLO BASE 012023 copy.jpeg");
}

.project-caption-title {
  margin-top: 0.55rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(246, 242, 233, 0.16);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: var(--leading-snug);
  letter-spacing: var(--track-tight);
  color: var(--on-dark-strong);
}
.project-caption-body {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--on-dark);
  line-height: 1.72;
  max-width: 38rem;
}
.project-image-link {
  display: block;
  overflow: hidden;
  position: relative;
}
.project-image-link .project-image {
  transition: transform var(--motion-slow) var(--ease-out);
}
.project-image-link:hover .project-image {
  transform: scale(1.05);
}
.project-caption-title--link {
  display: block;
  color: var(--on-dark-strong);
  transition: color var(--motion-fast) var(--ease-fast);
  cursor: pointer;
}
.project-caption-title--link:hover {
  color: var(--on-dark);
}
/* ── Badges ── */
.badges {
  width: min(var(--container), var(--container-readable));
  max-width: none;
  margin: clamp(3.8rem, 8vh, 8rem) auto 0;
  padding: clamp(2.8rem, 5vh, 5rem) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.badges-label {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.badges-label::before,
.badges-label::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--text-soft);
  opacity: 0.6;
  flex-shrink: 0;
}
.badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 4rem);
}
.badge-item {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity var(--motion-fast) var(--ease-fast);
}
.badge-item:hover {
  opacity: 1;
}
.badges__img {
  height: clamp(46px, 5vw, 66px);
  width: auto;
  display: block;
}

@media (max-width: 820px) {
  .badges,
  .testimonials-band {
    width: min(90vw, var(--container-readable));
  }
}

/* ── Testimonials ── */
.testimonials-band {
  width: min(var(--container), var(--container-readable));
  max-width: none;
  margin: clamp(4.5rem, 8vw, 7rem) auto 0;
  padding: clamp(2.2rem, 3.6vw, 3.4rem) clamp(1.8rem, 4.4vw, 4.2rem)
    clamp(2.75rem, 5vw, 4rem);
  background: var(--brand-teal);
  color: var(--surface);
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(21, 55, 53, 0.1);
}
.testimonials-inner {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(2.4rem, 4.25vw, 5rem);
  align-items: start;
  position: relative;
  z-index: 1;
}
.testimonials-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--brand-olive);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.testimonials-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--brand-olive);
}
.testimonial-title-stack {
  position: relative;
  min-height: 5rem;
  display: grid;
}
.testimonials-title {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 300;
  line-height: var(--leading-snug);
  letter-spacing: var(--track-tight);
  color: var(--surface);
  max-width: 20rem;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--motion-slow) var(--ease-out),
    transform var(--motion-slow) var(--ease-out);
  grid-area: 1/1;
  display: flex;
  align-items: flex-start;
}
.testimonials-title.is-active {
  opacity: 1;
  transform: translateY(0);
}
.testimonials-title.leaving {
  opacity: 0;
  transform: translateY(-7px);
  transition:
    opacity var(--motion-base) var(--ease-out),
    transform var(--motion-base) var(--ease-out);
}
.testimonials-right {
  position: relative;
  display: grid;
  min-height: clamp(160px, 22vh, 220px);
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--motion-slow) var(--ease-out),
    transform var(--motion-slow) var(--ease-out);
  grid-area: 1/1;
  pointer-events: none;
}
.testimonial-card.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
}
.testimonial-card.leaving {
  opacity: 0;
  transform: translateY(-9px);
  pointer-events: none;
  transition:
    opacity var(--motion-base) var(--ease-out),
    transform var(--motion-base) var(--ease-out);
}
.testimonial-quote {
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.7em;
  color: var(--on-dark-strong);
  margin-bottom: 0.8rem;
}
.testimonial-more {
  display: none;
}
.testimonial-card.is-expanded .testimonial-more {
  display: inline;
}
.testimonial-card.is-expanded .testimonial-ellipsis {
  display: none;
}
.testimonial-readmore {
  align-self: flex-start;
  margin-top: -0.5rem;
  padding: 0 0 2px;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brand-olive);
  cursor: pointer;
  transition:
    border-color var(--motion-fast) var(--ease-fast),
    opacity var(--motion-fast) var(--ease-fast);
}
.testimonial-readmore:hover {
  border-bottom-color: var(--brand-olive);
}
.testimonial-name {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--brand-olive);
  margin-top: auto;
  padding-top: 0.4rem;
}
.testimonial-secondary {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--on-dark-soft);
  line-height: var(--leading-loose);
}
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: 1.2rem;
  position: relative;
  z-index: 1;
}
.testimonial-dots {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--on-dark-faint);
  cursor: pointer;
  transition: background var(--motion-fast) var(--ease-fast);
}
.testimonial-dot:hover {
  background: var(--on-dark-soft);
}
.testimonial-dot.is-active {
  background: var(--brand-olive);
}
.testimonial-prev,
.testimonial-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: none;
  border: 1px solid var(--on-dark-faint);
  color: var(--on-dark-soft);
  cursor: pointer;
  transition:
    border-color var(--motion-fast) var(--ease-fast),
    color var(--motion-fast) var(--ease-fast);
  flex-shrink: 0;
  padding: 0;
  border-radius: var(--radius-sm);
}
.testimonial-prev:hover,
.testimonial-next:hover {
  border-color: var(--on-dark-soft);
  color: var(--on-dark-strong);
}
.testimonial-prev svg,
.testimonial-next svg {
  width: 11px;
  height: 11px;
  display: block;
}

@media (max-width: 1024px) {
  .testimonials-inner {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .testimonial-controls {
    justify-content: flex-start;
  }
}

#contact {
  padding-bottom: clamp(7rem, 14vw, 12rem);
}
#contact .section-header {
  row-gap: 0.5em;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2.4rem, 7vw, 6.5rem);
  align-items: start;
  padding-top: clamp(0.8rem, 2vw, 1.5rem);
}
.contact-block {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-muted);
  display: grid;
  gap: 0.45rem;
  line-height: 1.4em;
}
.contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 1rem;
}
.contact-label:first-child {
  margin-top: 0;
}
.contact-block :not(.contact-label, .social-link) {
  font-size: 1rem;
}
.contact-social {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.4rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  color: var(--text-muted);
  transition:
    color var(--motion-fast) var(--ease-fast),
    transform var(--motion-fast) var(--ease-fast);
}
.social-link svg {
  width: 100%;
  height: 100%;
  display: block;
}
.social-link:hover {
  color: var(--brand-teal);
  transform: translateY(-1px);
}
.social-link--houzz {
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 3px;
}
.contact-layout form {
  display: grid;
  gap: var(--space-4);
  padding-top: 0.2rem;
}
.field {
  display: grid;
  gap: 0.3rem;
}
.field label {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field label:has(~ :required)::after {
  content: "*";
  color: var(--brand-teal);
  font-size: 0.9rem;
  height: 95%;
  padding-left: 0.1em;
}
.field input,
.field textarea {
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  background: transparent;
  padding: 0.65rem 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 40px;
  transition: border-color var(--motion-fast) var(--ease-fast);
  border-radius: 0;
}
.field textarea {
  min-height: 88px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #9f9f8f;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--olive-orchard);
}
.btn-line {
  justify-self: center;
  background: none;
  border: none;
  padding: 0.55rem 1em;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--dark-slate-grey);
  background-color: var(--brand-olive);
  cursor: pointer;
  text-align: center;
  margin-top: 2rem;
  transition:
    background-color var(--motion-fast) var(--ease-fast),
    color var(--motion-fast) var(--ease-fast);
  border-radius: var(--radius-sm);
}
.btn-line:hover {
  background-color: var(--brand-teal);
  color: var(--ethereal);
}
.btn-line span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.btn-line svg {
  width: 14px;
  height: 14px;
  transition: transform var(--motion-fast) var(--ease-fast);
}
.btn-line:hover svg {
  transform: translate(3px, -1px);
}
.form-note {
  font-size: var(--text-label);
  font-weight: 400;
  color: #8d8d8a;
  margin-top: 0.2rem;
  text-align: center;
}

@media (min-width: 1025px) {
  #contact .section-header {
    grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
    column-gap: clamp(2.4rem, 7vw, 6.5rem);
    align-items: end;
  }
}
@media (max-width: 1024px) {
  .contact-layout,
  #contact .section-header {
    grid-template-columns: 1fr;
  }
  #contact .section-header .section-kicker,
  #contact .section-header .section-title,
  #contact .section-header .section-intro {
    grid-column: auto;
    grid-row: auto;
  }
  #contact .section-header .section-intro {
    margin-top: 1rem;
  }
}

/* ── Subpage frame entrance ── */
.subpage .frame.loading,
.subpage.frame.loading {
  opacity: 0;
  overflow: hidden;
  height: 100vh;
}
.subpage .frame:not(.loading) {
  animation: subpageEnter var(--motion-slow) var(--ease-out) forwards;
}
/* Body-as-frame must avoid transform — it would become the containing block
   for the fixed nav. */
.subpage.frame:not(.loading) {
  animation: subpageEnterFade var(--motion-slow) var(--ease-out) forwards;
}
@keyframes subpageEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes subpageEnterFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.frame.page-exit,
.gallery-page.page-exit {
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity var(--motion-base) var(--ease-fast),
    transform var(--motion-base) var(--ease-fast);
  pointer-events: none;
}

/* ── Page transitions (View Transitions; JS fallback above) ── */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 420ms;
  animation-timing-function: var(--ease-out);
}
::view-transition-old(root) {
  animation-name: vt-fade-out;
}
::view-transition-new(root) {
  animation-name: vt-fade-in;
}
@keyframes vt-fade-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@keyframes vt-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Directional transitions for subpages (Our Story / About the Logo):
   forward (into a subpage) = slide left→right, back (to index) = right→left */
html:active-view-transition-type(to-subpage)::view-transition-old(root) {
  animation-name: vt-slide-out-left;
}
html:active-view-transition-type(to-subpage)::view-transition-new(root) {
  animation-name: vt-slide-in-right;
}
html:active-view-transition-type(from-subpage)::view-transition-old(root) {
  animation-name: vt-slide-out-right;
}
html:active-view-transition-type(from-subpage)::view-transition-new(root) {
  animation-name: vt-slide-in-left;
}
@keyframes vt-slide-out-left {
  to {
    opacity: 0;
    transform: translateX(-5%);
  }
}
@keyframes vt-slide-in-right {
  from {
    opacity: 0;
    transform: translateX(5%);
  }
}
@keyframes vt-slide-out-right {
  to {
    opacity: 0;
    transform: translateX(5%);
  }
}
@keyframes vt-slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-5%);
  }
}

.brand-wordmark {
  view-transition-name: brand-wordmark;
}

/* Shared-element morph: the gallery header image is the only element on a
   gallery page carrying this name; the matching index strip thumbnail is
   named dynamically (one at a time) right before navigating. */
.gallery-hero img {
  view-transition-name: gallery-photo;
}
@media (prefers-reduced-motion: reduce) {
  .gallery-hero img {
    view-transition-name: none;
  }
}

html.vt-active .frame.loading,
html.vt-active .gallery-page.loading {
  opacity: 1;
  height: auto;
  overflow: visible;
}

.gallery-page.loading {
  opacity: 0;
}
html:not(.vt-active) .gallery-page:not(.loading) {
  animation: pageFadeIn var(--motion-slow) var(--ease-out);
}
@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

html.js-reveal .about-intro .section-kicker,
html.js-reveal .about-intro .section-title,
html.js-reveal .about-quote-mark,
html.js-reveal .about-quote,
html.js-reveal .about-copy p,
html.js-reveal .about-links .inline-link,
html.js-reveal .badges-label,
html.js-reveal .badge-item,
html.js-reveal #projects .section-title,
html.js-reveal .project-caption-label,
html.js-reveal .project-caption-title,
html.js-reveal .project-caption-body,
html.js-reveal .testimonials-inner,
html.js-reveal #contact .section-kicker,
html.js-reveal #contact .section-title,
html.js-reveal #contact .section-intro,
html.js-reveal .contact-block,
html.js-reveal .contact-form .field,
html.js-reveal .contact-form .btn-line,
html.js-reveal #designer .designer-row.biography .subpage-back,
html.js-reveal #designer .designer-row.biography .hero-head,
html.js-reveal #designer .designer-row.biography .designer-page-photo-wrap,
html.js-reveal #designer .designer-row.biography .hero-col,
html.js-reveal #designer .designer-row.highlight .core,
html.js-reveal #designer .designer-row.highlight .point,
html.js-reveal #logo .logo-page-layout > *,
html.js-reveal .gallery-intro,
html.js-reveal .gallery-specs,
html.js-reveal .gallery-copy {
  opacity: 0;
  transform: translateY(14px);
  will-change: opacity, transform;
}
html.js-reveal .project-image {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(8px);
  will-change: opacity, transform, filter;
}

/* Gallery header image: full hero zoom on direct (non-morph) entry only */
.gallery-hero img {
  transform-origin: center;
}
body.gallery-zoom .gallery-hero img {
  animation: galleryHeroZoom 1.3s var(--ease-out) both;
}
@keyframes galleryHeroZoom {
  from {
    transform: scale(1.18);
    filter: blur(16px);
  }
  to {
    transform: scale(1);
    filter: blur(0);
  }
}

/* Gallery header text: staggered load-in (sequenced after entrance) */
body.gallery-entered .gallery-intro {
  animation: galleryText 0.6s var(--ease-out) both;
}
body.gallery-entered .gallery-specs {
  animation: galleryText 0.6s var(--ease-out) 0.12s both;
}
body.gallery-entered .gallery-copy {
  animation: galleryText 0.6s var(--ease-out) 0.24s both;
}
@keyframes galleryText {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
  html.js-reveal .about-intro .section-kicker,
  html.js-reveal .about-intro .section-title,
  html.js-reveal .about-quote-mark,
  html.js-reveal .about-quote,
  html.js-reveal .about-copy p,
  html.js-reveal .about-links .inline-link,
  html.js-reveal .badges-label,
  html.js-reveal .badge-item,
  html.js-reveal #projects .section-title,
  html.js-reveal .project-caption-label,
  html.js-reveal .project-caption-title,
  html.js-reveal .project-caption-body,
  html.js-reveal .project-image,
  html.js-reveal .testimonials-inner,
  html.js-reveal #contact .section-kicker,
  html.js-reveal #contact .section-title,
  html.js-reveal #contact .section-intro,
  html.js-reveal .contact-block,
  html.js-reveal .contact-form .field,
  html.js-reveal .contact-form .btn-line,
  html.js-reveal #designer .designer-row.biography .subpage-back,
  html.js-reveal #designer .designer-row.biography .hero-head,
  html.js-reveal #designer .designer-row.biography .designer-page-photo-wrap,
  html.js-reveal #designer .designer-row.biography .hero-col,
  html.js-reveal #designer .designer-row.highlight .core,
  html.js-reveal #designer .designer-row.highlight .point,
  html.js-reveal #logo .logo-page-layout > *,
  html.js-reveal .gallery-intro,
  html.js-reveal .gallery-specs,
  html.js-reveal .gallery-copy {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .gallery-hero img,
  body.gallery-zoom .gallery-hero img,
  body.gallery-entered .gallery-intro,
  body.gallery-entered .gallery-specs,
  body.gallery-entered .gallery-copy {
    animation: none !important;
  }
}

/* ── Subpage layout ── */
.subpage-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(6rem, 11vh, 8rem) 0 clamp(5rem, 9vh, 9rem);
}
.subpage-back {
  margin-bottom: var(--space-6);
}
.subpage-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--motion-fast) var(--ease-fast);
}
.subpage-back-link:hover {
  color: var(--dark-slate-grey);
}
.subpage-back-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform var(--motion-fast) var(--ease-fast);
}
.subpage-back-link:hover svg {
  transform: translateX(-3px);
}

@media (max-width: 768px) {
  .subpage-section {
    max-width: 92vw;
  }
}

/* ── Gallery page ── */
.gallery-page {
  min-height: 100vh;
  background: var(--surface);
}
.gallery-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  padding-top: var(--space-6);
  text-transform: uppercase;
  color: var(--flora);
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-fast);
  margin: var(--space-6) 0;
}
.gallery-back:hover {
  color: var(--jewel);
}
.gallery-back svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform var(--motion-fast) var(--ease-fast);
}
.gallery-back:hover svg {
  transform: translateX(-3px);
}

.gallery-header {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2.6rem, 5vh, 5rem) 0 clamp(2.4rem, 4vh, 4rem);
  border-bottom: 1px solid var(--rule);
}
.gallery-title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 300;
  line-height: var(--leading-tight);
  letter-spacing: var(--track-tight);
  color: var(--text);
}
.gallery-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2.2rem, 4vh, 4rem) 0 clamp(5rem, 9vh, 9rem);
}
/* Masonry as explicit flex columns (3f). gallery.js distributes the items
   round-robin into these columns in source order (item i → column i % cols),
   which yields strict left-to-right reading order across each visual row while
   each column still stacks independently for the staggered masonry look —
   something pure CSS `columns` (top-to-bottom fill) cannot do. --gallery-cols
   tells the JS how many columns to build at the current breakpoint. */
.gallery-masonry {
  --gallery-cols: 4;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}
.gallery-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--surface-2);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 29, 24, 0);
  transition: background var(--motion-base) var(--ease-fast);
  pointer-events: none;
}
.gallery-item:hover::after {
  background: rgba(26, 29, 24, 0.12);
}
/* Subtle top-left corner ribbon on "before" photos (3d). The item already
   clips overflow, so the rotated banner reads as a clean diagonal corner. */
.gallery-item.before::before {
  content: "Before";
  position: absolute;
  z-index: 3;
  top: 1.05rem;
  left: -2.6rem;
  width: 9rem;
  padding: 0.32rem 0;
  transform: rotate(-45deg);
  background: var(--brand-olive);
  color: var(--surface);
  text-align: center;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(26, 29, 24, 0.18);
  pointer-events: none;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--motion-slow) var(--ease-out);
}
.gallery-item:hover img {
  transform: scale(1.03);
}
.gallery-item__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 1.6rem 0.95rem 0.8rem;
  background: linear-gradient(to top, rgba(22, 25, 20, 0.74), transparent);
  color: var(--surface);
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity var(--motion-base) var(--ease-out),
    transform var(--motion-base) var(--ease-out);
  pointer-events: none;
}
.gallery-item:hover .gallery-item__meta,
.gallery-item:focus-visible .gallery-item__meta {
  opacity: 1;
  transform: none;
}
.gallery-item__title {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
/* The grid overlay shows only the image title, and only on hover (3c). The long
   caption text stays in the DOM (gallery.js reads its textContent for the
   lightbox) but is never painted over the thumbnail. */
.gallery-item__caption {
  display: none;
}
.gallery-header__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-areas:
    "intro hero"
    "specs hero"
    "copy  copy";
  column-gap: var(--space-8);
  row-gap: 1.6rem;
  align-items: start;
}
.gallery-intro {
  grid-area: intro;
}
.gallery-hero {
  grid-area: hero;
}
.gallery-specs {
  grid-area: specs;
  /* The hero image spans the intro+specs rows; dropping specs to the bottom of
     its row lines its baseline up with the bottom of the header image (3g). */
  align-self: end;
}
.gallery-copy {
  grid-area: copy;
}
.gallery-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.gallery-specs {
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: var(--space-6);
  row-gap: 1rem;
}
.gallery-specs__item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.gallery-specs__label {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-soft);
}
.gallery-specs__value {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.gallery-copy {
  --copy-col-gap: clamp(2rem, 4vw, 3.5rem);
  position: relative;
  columns: 2;
  column-gap: var(--copy-col-gap);
  margin-top: clamp(1.4rem, 3vw, 2.6rem);
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: var(--leading-loose);
}
.gallery-copy .photo-cred {
  font-size: var(--text-sm);
  margin: 0;
  color: var(--text-soft);
  /* No rules, no full-width break — the credit keeps the width and horizontal
     position of its (right) column, but drops to the bottom of the copy so it
     lines up with the header bottom rather than ending wherever the shorter
     column happens to run out of text (3e). */
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc((100% - var(--copy-col-gap)) / 2);
}
.gallery-copy p {
  margin: 0 0 1em;
  /* Prevent stranded single lines at a column break (3a). We use orphans/widows
     rather than `break-inside: avoid`: the latter disables WebKit's multicol
     balancing, which pushes the second column's top down so the two columns no
     longer start level. orphans/widows keeps short paragraphs whole and forces
     any longer break to leave at least 3 lines on each side, while balancing
     stays on so both column tops align. */
  orphans: 3;
  widows: 3;
}
@media (max-width: 760px) {
  .gallery-header__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "hero"
      "specs"
      "copy";
    row-gap: 1.6rem;
  }
  .gallery-hero {
    margin-top: 1rem;
  }
  .gallery-copy {
    columns: 1;
  }
  /* Single column: the credit returns to normal flow at the end of the copy. */
  .gallery-copy .photo-cred {
    position: static;
    width: auto;
    margin-top: clamp(1.4rem, 3vw, 2.4rem);
  }
}
/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(22, 25, 20, 0.97);
  z-index: 300;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 220ms var(--ease-fast);
}
.gallery-lightbox.open {
  display: flex;
}
.gallery-lightbox.visible {
  opacity: 1;
}
.gallery-lightbox__img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(1120px, calc(100vw - 7rem));
  max-height: 84vh;
}
.gallery-lightbox__img {
  max-width: min(1120px, calc(100vw - 7rem));
  max-height: 84vh;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.2s var(--ease-out);
}
.gallery-lightbox__img.loaded {
  opacity: 1;
}
.gallery-lightbox__meta {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: min(1120px, calc(100vw - 7rem));
  margin-top: 1.1rem;
  padding: 0 1rem;
  text-align: center;
  pointer-events: none;
}
.gallery-lightbox__title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--surface);
}
.gallery-lightbox__caption {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-strong);
}

/* ── Gallery bottom CTA bar ── */
.gallery-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.9rem, 2.5vw, 2rem);
  padding: clamp(0.85rem, 1.7vw, 1.2rem) clamp(1.25rem, 5vw, 3rem);
  background: var(--brand-teal);
  color: var(--white-tea);
  box-shadow: 0 -10px 30px rgba(21, 55, 53, 0.16);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--motion-base) var(--ease-out),
    opacity var(--motion-base) var(--ease-out);
}
.gallery-cta-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.gallery-cta-bar__text {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--white-tea);
  margin: 0;
  text-align: center;
  font-family: "Montserrat";
}
.gallery-cta-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  flex-shrink: 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 400;
  text-transform: uppercase;
  font-family: "PP Neue Montreal semi-bold";
  color: var(--dark-slate-grey);
  background: var(--brand-olive);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  transition:
    background var(--motion-fast) var(--ease-fast),
    transform var(--motion-fast) var(--ease-fast);
}
.gallery-cta-bar__btn svg {
  width: 14px;
  height: 14px;
}
.gallery-cta-bar__btn:hover {
  background: var(--surface);
  transform: translateY(-1px);
}
body.gallery-page {
  padding-bottom: clamp(4.5rem, 9vw, 6.5rem);
}
@media (max-width: 560px) {
  .gallery-cta-bar {
    flex-direction: column;
    gap: 0.7rem;
    text-align: center;
  }
}
.gallery-lightbox__close {
  position: fixed;
  top: 1.8rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--on-dark-soft);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  font-family: "DM Sans", system-ui, sans-serif;
  transition: color var(--motion-fast) var(--ease-fast);
  padding: 0.4rem 0;
  border-radius: var(--radius-sm);
}
.gallery-lightbox__close:hover {
  color: var(--surface);
}
.gallery-lightbox__prev,
.gallery-lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--on-dark-soft);
  cursor: pointer;
  padding: clamp(0.4rem, 1.4vw, 0.9rem) clamp(0.55rem, 1.2vw, 1.1rem);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-weight: 300;
  line-height: 1;
  transition: color var(--motion-fast) var(--ease-fast);
}
.gallery-lightbox__prev {
  left: 0.2rem;
}
.gallery-lightbox__next {
  right: 0.2rem;
}
.gallery-lightbox__prev:hover,
.gallery-lightbox__next:hover {
  color: var(--on-dark-strong);
}
@media (max-width: 1280px) {
  .gallery-masonry {
    --gallery-cols: 3;
  }
}
@media (max-width: 1024px) {
  .gallery-masonry {
    --gallery-cols: 2;
  }
  .gallery-header__inner {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .gallery-meta {
    align-self: start;
    padding-bottom: 0;
  }
}
@media (max-width: 580px) {
  .gallery-header,
  .gallery-section {
    max-width: 92vw;
  }
  .gallery-lightbox__prev {
    left: 0;
  }
  .gallery-lightbox__next {
    right: 0;
  }
}
