/* Red Barn Woodworks — bespoke landing styles (built on theme.css tokens) */

/* ---------- Header lockup extension ---------- */

/* the landing lockup carries a third line, so the barn grows by that line plus
   the gap above it */
.brand {
  --brand-tag-size: 0.6rem;
  --brand-tag-leading: 1.65;
  --brand-lockup-gap: 0.15rem;
  --brand-mark-height: calc(
    2 * var(--brand-name-size) * var(--brand-name-leading)
    + var(--brand-lockup-gap)
    + var(--brand-tag-size) * var(--brand-tag-leading)
  );
}

.brand-lockup { display: flex; flex-direction: column; gap: var(--brand-lockup-gap); }

.brand-tag {
  font-size: var(--brand-tag-size);
  line-height: var(--brand-tag-leading);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  /* the studio line is the widest part of the lockup and must stay on one line,
     otherwise the barn mark grows to match a four-line text block */
  white-space: nowrap;
  color: var(--color-ink-muted);
}

/* ---------- Mobile nav toggle (hidden until the drawer breakpoint) ---------- */

.nav-toggle {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  cursor: pointer;
}

.nav-toggle:hover { color: var(--color-brand); border-color: var(--color-border); }

.nav-toggle-bars {
  display: block;
  position: relative;
  width: 22px;
  height: 14px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }

.nav-toggle.is-open .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-bars span { transition: none; }
}

/* Nav dropdown caret (lucide chevron-down) */

.nav-caret {
  width: 11px;
  height: 11px;
  margin-left: 0.4em;
  vertical-align: -1px;
  stroke-width: 2.4;
}

/* Ghost button (outline on dark / red surfaces) */

.btn-ghost {
  background: transparent;
  color: #f6efe0;
  border-color: rgba(246, 239, 224, 0.85);
}

.btn-ghost:hover {
  background: rgba(246, 239, 224, 0.12);
  border-color: #f6efe0;
  color: #fff;
}

/* ---------- Hero ---------- */

.hero {
  color: #f2ead9;
  background-color: var(--color-wood-deep);
  background-image:
    /* darkening toward the left for legible copy */
    linear-gradient(96deg, rgba(20, 12, 5, 0.9) 0%, rgba(24, 15, 7, 0.72) 38%, rgba(28, 18, 8, 0.2) 72%, rgba(20, 12, 5, 0.42) 100%),
    /* workshop photo */
    url(../../assets/img/red-barn/hero.webp),
    /* painted fallback: warm glow + timber streaks */
    radial-gradient(ellipse 62% 85% at 74% 58%, rgba(197, 132, 62, 0.42), transparent 68%),
    repeating-linear-gradient(
      90deg,
      rgba(60, 39, 18, 0.5) 0px,
      rgba(38, 24, 10, 0.55) 22px,
      rgba(74, 49, 24, 0.4) 45px,
      rgba(30, 19, 8, 0.55) 70px,
      rgba(66, 44, 21, 0.42) 96px
    ),
    linear-gradient(180deg, #33220f, #1c1106);
  background-size: auto, cover, auto, auto, auto;
  background-position: center, center, center, center, center;
  background-repeat: no-repeat;
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: 540px;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-copy { max-width: 33rem; }

.hero-eyebrow {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #d8c9a8;
  margin-bottom: 1.3rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.16;
  color: #f8f2e2;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #d9cdb4;
  max-width: 27rem;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Featured projects ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.4rem;
}

.project {
  display: flex;
  flex-direction: column;
  text-align: center;
  text-decoration: none;
  color: var(--color-ink);
}

.project-photo {
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.9rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.project:hover .project-photo {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* real project photos layered over the painted-grain fallback */
.project-photo,
.about-photo,
.journal-thumb,
.gallery-thumb {
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  /* photos run ungraded — no sepia wash */
}

.project-photo--1 {
  background-image:
    url(../../assets/img/red-barn/proj-dining-table.webp),
    linear-gradient(112deg, #6b4a28 0%, #543a20 34%, #3c2a16 68%, #2c1e0f 100%);
}
.project-photo--2 {
  background-image:
    url(../../assets/img/red-barn/proj-bookcase.webp),
    linear-gradient(112deg, #6b4a28 0%, #543a20 34%, #3c2a16 68%, #2c1e0f 100%);
}
.project-photo--3 {
  background-image:
    url(../../assets/img/red-barn/proj-coffee-table.webp),
    linear-gradient(112deg, #6b4a28 0%, #543a20 34%, #3c2a16 68%, #2c1e0f 100%);
}
.project-photo--4 {
  background-image:
    url(../../assets/img/red-barn/proj-barn-door.webp),
    linear-gradient(112deg, #6b4a28 0%, #543a20 34%, #3c2a16 68%, #2c1e0f 100%);
}
.project-photo--5 {
  background-image:
    url(../../assets/img/red-barn/proj-vanity.webp),
    linear-gradient(112deg, #6b4a28 0%, #543a20 34%, #3c2a16 68%, #2c1e0f 100%);
}

.project-name {
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-room {
  font-size: 0.78rem;
  color: var(--color-ink-muted);
  margin-top: 0.25rem;
}

.project:hover .project-name { color: var(--color-brand); }

/* the call to action is the last item in the project grid. While the five
   photos fill a single row it takes a row of its own and reads as a centered
   button; once they wrap and leave a slot open it becomes a photo tile
   (see the responsive block). The row gap supplies 1.4rem of the 2.6rem
   that separates it from the photos above. */
.project-all {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 1.2rem;
}

/* ---------- Process band ---------- */

.process {
  background-color: var(--color-wood-dark);
  background-image:
    /* dark overlay + real woodgrain texture, kept low-contrast */
    linear-gradient(rgba(36, 23, 10, 0.88), rgba(26, 16, 7, 0.92)),
    url(../../assets/img/pack/texture-woodgrain.webp),
    radial-gradient(ellipse 90% 100% at 50% -20%, rgba(122, 78, 38, 0.25), transparent 70%),
    repeating-linear-gradient(
      93deg,
      rgba(20, 12, 5, 0.35) 0px,
      rgba(58, 38, 18, 0.28) 26px,
      rgba(24, 15, 6, 0.4) 55px,
      rgba(66, 44, 22, 0.24) 84px
    ),
    linear-gradient(180deg, #34230f, #241708);
  background-size: auto, cover, auto, auto, auto;
  background-position: center;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, no-repeat;
  color: #e7dcc3;
}

.process-inner {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  align-items: stretch;
}

.process-steps {
  padding: 4rem 3rem 4rem max(3rem, calc((100vw - var(--container-max)) / 2 + 1.5rem));
}

.process-title {
  font-size: 1.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f2ead9;
  text-align: center;
  margin-bottom: 2.75rem;
}

.steps {
  /* the tallest hand-drawn icon; every icon box is this tall and the chevrons
     between steps center on the same band */
  --icon-row-height: 59px;

  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 1.2rem;
  align-items: start;
}

.step { text-align: center; }

.step-icon {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  height: var(--icon-row-height);
  color: #d9c69c;
  margin-bottom: 1.1rem;
}

.step-icon img { display: block; }

.step-name {
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f2ead9;
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #b7a888;
  margin: 0;
}

.step-arrow {
  align-self: start;
  height: var(--icon-row-height);
  width: 30px;
  color: #8a7452;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-arrow svg { display: block; width: 24px; height: 24px; stroke-width: 1.4; }

/* craftsman photo panel on the right */
.process-photo {
  min-height: 100%;
  background-color: #3d2a14;
  background-image:
    /* faint warm cast so the photo sits with the band */
    linear-gradient(rgba(36, 23, 10, 0.16), rgba(20, 12, 5, 0.28)),
    url(../../assets/img/red-barn/process.webp),
    /* painted fallback */
    radial-gradient(ellipse 70% 55% at 46% 38%, rgba(222, 168, 100, 0.4), transparent 62%),
    radial-gradient(ellipse 120% 60% at 50% 108%, rgba(16, 10, 4, 0.9), transparent 70%),
    repeating-linear-gradient(86deg, rgba(24, 15, 6, 0.3) 0px, rgba(90, 60, 30, 0.22) 30px, rgba(24, 15, 6, 0.34) 62px),
    linear-gradient(160deg, #59401f, #2a1b0a);
  background-size: auto, cover, auto, auto, auto, auto;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Craftsman / quote / journal ---------- */

.tri-band {
  display: grid;
  /* the about column carries both a full-height photo and body copy, so it
     needs the extra measure */
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 0;
}

.tri-col { padding: 0 2.25rem; }

.tri-col + .tri-col { border-left: 1px solid var(--color-border); }

.tri-col:first-child { padding-left: 0; }
.tri-col:last-child { padding-right: 0; }

.tri-heading {
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.75rem;
}

/* about */

.about-body { display: flex; gap: 1.4rem; align-items: stretch; }

.about-photo {
  width: 160px;
  flex: none;
  /* the photo runs the full height of the column rather than a fixed ratio,
     so it finishes level with the text beside it */
  aspect-ratio: auto;
  border: 1px solid var(--color-border);
  background-image:
    url(../../assets/img/red-barn/about-portrait.webp),
    linear-gradient(112deg, #6b4a28 0%, #543a20 34%, #3c2a16 68%, #2c1e0f 100%);
  /* cover-crop horizontally; the craftsman sits left of centre in the source */
  background-size: cover, cover;
  background-position: 20% center, center;
}

.about-text { font-size: 0.9rem; color: var(--color-ink-muted); }

.about-text p { margin-bottom: 0.9em; }

.about-text .btn { margin-top: 0.4rem; }

/* quote */

.quote-col { text-align: center; }

/* every testimonial sits in the same grid cell, so the block is as tall as the
   tallest slide and nothing shifts when the reader switches quotes */
.quote-slides { display: grid; }

.big-quote {
  margin: 0;
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.big-quote.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s linear 0s;
}

.quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 0.6;
  color: var(--color-brand);
  margin-bottom: 1rem;
}

.big-quote p {
  font-family: var(--font-accent);
  font-size: 1.14rem;
  line-height: 1.65;
  color: var(--color-ink);
  margin-bottom: 1.4rem;
}

.big-quote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.quote-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

/* The button is the tap target and the ::before is the visible dot, so the dot
   stays 7px while --dot-hit alone decides how big a finger target it carries. */
.quote-dot {
  --dot-hit: 7px;
  position: relative;
  display: block;
  box-sizing: border-box;
  width: var(--dot-hit);
  height: var(--dot-hit);
  padding: 0;
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.quote-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--color-border);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.quote-dot:hover::before { border-color: var(--color-brand); }

.quote-dot:focus-visible { outline: none; }

.quote-dot:focus-visible::before {
  outline: 2px solid var(--color-brand);
  outline-offset: 4px;
}

.quote-dot.is-active::before { background: var(--color-brand); border-color: var(--color-brand); }

@media (prefers-reduced-motion: reduce) {
  .big-quote,
  .big-quote.is-active,
  .quote-dot::before { transition: none; }
}

/* journal */

.journal-list { display: flex; flex-direction: column; gap: 1.1rem; }

.journal-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  color: var(--color-ink);
}

.journal-thumb {
  width: 64px;
  flex: none;
  border: 1px solid var(--color-border);
}

.journal-item:nth-child(1) .journal-thumb {
  background-image:
    url(../../assets/img/red-barn/journal-wood.webp),
    linear-gradient(112deg, #6b4a28 0%, #543a20 34%, #3c2a16 68%, #2c1e0f 100%);
}
.journal-item:nth-child(2) .journal-thumb {
  background-image:
    url(../../assets/img/red-barn/journal-surface.webp),
    linear-gradient(112deg, #6b4a28 0%, #543a20 34%, #3c2a16 68%, #2c1e0f 100%);
}
.journal-item:nth-child(3) .journal-thumb {
  background-image:
    url(../../assets/img/red-barn/journal-sketch.webp),
    linear-gradient(112deg, #6b4a28 0%, #543a20 34%, #3c2a16 68%, #2c1e0f 100%);
}

.journal-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1.35;
}

.journal-item:hover .journal-title { color: var(--color-brand); }

.journal-date {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-top: 0.3rem;
}

.journal-all {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-ink);
}

.journal-all:hover { color: var(--color-brand); }

/* ---------- CTA band ---------- */

/* Photograph of a mahogany tabletop with a live-edge trunk slab lying on its
   right side (Codex-generated raster); a faint red wash keeps it on brand and
   the copy legible over the table half. */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(94deg,
      rgba(104, 33, 27, 0.4) 0%,
      rgba(104, 33, 27, 0.25) 45%,
      rgba(46, 12, 8, 0.12) 100%),
    url(../../assets/img/red-barn/cta-wood-slab.webp) center / cover no-repeat,
    var(--color-brand);
  color: var(--color-on-brand);
  text-align: center;
  /* planked edges: dark seam plus a warm highlight along each rail */
  border-top: 3px solid #4a1610;
  border-bottom: 3px solid #4a1610;
  box-shadow:
    inset 0 1px 0 rgba(246, 220, 190, 0.34),
    inset 0 -1px 0 rgba(246, 220, 190, 0.22);
}

/* The copy centers over the table half and leaves the slab clear. */
.cta-inner {
  position: relative;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  padding-right: 32%;
}

.cta-title { text-shadow: 0 1px 2px rgba(46, 12, 8, 0.45); }

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #f8f2e2;
  margin-bottom: 0.5rem;
}

.cta-sub {
  font-size: 0.95rem;
  color: #e4cfc0;
  margin-bottom: 1.75rem;
}

/* ---------- Gallery strip ---------- */

.gallery-section { padding-bottom: 0; }

.gallery-head { margin-bottom: 2rem; }

/* six photos plus the call to action, all on the same square tile grid */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.gallery-thumb { border: 1px solid var(--color-border); }

.gallery-thumb--1 {
  background-image:
    url(../../assets/img/red-barn/gallery-1.webp),
    linear-gradient(112deg, #6b4a28 0%, #543a20 34%, #3c2a16 68%, #2c1e0f 100%);
}
.gallery-thumb--2 {
  background-image:
    url(../../assets/img/red-barn/gallery-2.webp),
    linear-gradient(112deg, #6b4a28 0%, #543a20 34%, #3c2a16 68%, #2c1e0f 100%);
}
.gallery-thumb--3 {
  background-image:
    url(../../assets/img/red-barn/gallery-3.webp),
    linear-gradient(112deg, #6b4a28 0%, #543a20 34%, #3c2a16 68%, #2c1e0f 100%);
}
.gallery-thumb--4 {
  background-image:
    url(../../assets/img/red-barn/gallery-4.webp),
    linear-gradient(112deg, #6b4a28 0%, #543a20 34%, #3c2a16 68%, #2c1e0f 100%);
}
.gallery-thumb--5 {
  background-image:
    url(../../assets/img/red-barn/gallery-5.webp),
    linear-gradient(112deg, #6b4a28 0%, #543a20 34%, #3c2a16 68%, #2c1e0f 100%);
}
.gallery-thumb--6 {
  background-image:
    url(../../assets/img/red-barn/gallery-6.webp),
    linear-gradient(112deg, #6b4a28 0%, #543a20 34%, #3c2a16 68%, #2c1e0f 100%);
}

/* the call to action is a tile, not a pill: same square footprint as a photo */
.gallery-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 0.9rem;
  line-height: 1.5;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.gallery-btn:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-on-brand);
}

/* ---------- Footer additions ---------- */

.landing-footer { margin-top: var(--section-pad); }

/* brand block, the two link columns, then contact + info stacked in one column */
.landing-footer-grid { grid-template-columns: 1.55fr 0.95fr 1.2fr 1.15fr; }

.landing-footer .brand-tag { color: #9c8f79; }

/* contact details read as single lines or not at all */
.footer-connect .footer-link { white-space: nowrap; }

/* secondary pages ride in the bottom bar rather than as a fifth column */
.footer-utility {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.15rem;
}

.footer-utility .footer-link {
  font-size: 0.82rem;
  padding: 0;
  white-space: nowrap;
}

/* circular stamp badge (extracted seal artwork), closing the contact column */

.stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin-top: 1.75rem;
  opacity: 0.85;
}

.stamp img { display: block; width: 100%; height: auto; }

/* social row */

.footer-social {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.social-link {
  display: inline-flex;
  color: #cfc4ad;
}

.social-link:hover { color: #f6efe0; }

.social-link svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step-arrow { display: none; }
  .process-inner { grid-template-columns: 1fr; }
  .process-photo { min-height: 260px; }
  .process-steps { padding: 3.5rem 1.5rem; }
  .landing-footer-grid { grid-template-columns: 1fr 1fr; }

  .project-grid { grid-template-columns: repeat(3, 1fr); }

  /* the five photos no longer fill their row, so the call to action takes the
     slot they leave open, shaped like the photo tiles beside it */
  .project-all {
    grid-column: auto;
    justify-self: stretch;
    align-self: start;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* matches .media-ph--tall, the project photo ratio */
    aspect-ratio: 3 / 4;
    padding: 0.9rem;
    line-height: 1.5;
  }

  .tri-band { grid-template-columns: 1fr; gap: 3rem; }
  .tri-col, .tri-col:first-child, .tri-col:last-child { padding: 0; }
  .tri-col + .tri-col { border-left: 0; border-top: 1px solid var(--color-border); padding-top: 3rem; }

  /* six photos divide evenly into the narrower grid but the call to action is
     left over, so it stops being a tile and becomes the bar under them */
  .gallery-row { grid-template-columns: repeat(3, 1fr); }
  .gallery-btn { grid-column: 1 / -1; aspect-ratio: auto; padding: 1rem 1.2rem; }
}

@media (max-width: 640px) {
  .hero-inner { min-height: 460px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  /* one step per row: the band is wider than a comfortable measure, so the
     text holds its own width instead of running the full column */
  .step-text { max-width: 30ch; margin-left: auto; margin-right: auto; }
  .about-body { flex-direction: column; }
  /* stacked, the photo has the whole column, so it crops wide rather than
     running tall; the crop sits high to keep the craftsman in frame */
  .about-photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-position: 50% 8%, center;
  }
  .gallery-row { grid-template-columns: repeat(2, 1fr); }
  .landing-footer-grid { grid-template-columns: 1fr; }

  /* the studio line no longer fits beside the barn at full size, and the
     lockup has to leave room for the nav toggle on the narrowest phones */
  .brand { --brand-tag-size: 0.54rem; }
  .brand-tag { letter-spacing: 0.16em; }

  /* the CTA copy no longer has a slab half to stay clear of */
  .cta-inner { padding-right: 1.5rem; }
}

/* ==========================================================
   Mobile nav drawer
   Below the tablet breakpoint the six links plus the CTA no longer sit on one
   row beside the brand lockup, so they collapse behind a toggle and drop as a
   layer over the page instead of pushing the hero down.
   ========================================================== */

@media (max-width: 1024px) {
  .page-landing .site-header { position: relative; z-index: 20; }

  /* theme.css stacks the header at 720px; the drawer keeps it a single row */
  .page-landing .site-header-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
  }

  .page-landing .nav-toggle { display: inline-flex; }

  .page-landing .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0.25rem 1.5rem 1.25rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

  .page-landing .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .page-landing .site-nav .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.7rem 0.1rem;
    border-bottom: 1px solid var(--color-paper-line);
  }

  .page-landing .site-nav .nav-cta {
    margin-left: 0;
    margin-top: 1.1rem;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
  }

}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  .page-landing .site-nav { transition: none; }
}

/* ==========================================================
   Mobile refinements
   ========================================================== */

@media (max-width: 640px) {
  /* hero copy centers so the stacked action row reads as deliberate */
  .hero-copy { max-width: none; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  /* stacked footer columns need room between them and taller link targets */
  .landing-footer-grid { gap: 2.25rem; }

  .landing-footer-grid .footer-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.2rem 0;
  }

  .footer-social { gap: 0.25rem; margin-left: -0.75rem; }
  .social-link { padding: 0.75rem; }

  .footer-bottom { gap: 0.75rem; }

  .footer-utility { gap: 0 1.25rem; }
  .footer-utility .footer-link { padding: 0.8rem 0; }

  /* the carousel dots stay 7px but the hit area grows to a thumb */
  .quote-dots { gap: 0.25rem; margin-top: 1.2rem; }
  .quote-dot { --dot-hit: 44px; }

  /* every remaining tap target on the page clears the 44px thumb minimum */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .journal-all {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* side by side the two hero buttons no longer fit the measure */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }
}
