/* Everything below the hero. Loads after hero-kit.css.
 * Section rhythm follows meridianmonogram.com: hero, marquee, the pitch,
 * proof, service split, FAQ, closing CTA.
 *
 * Two rules, do not break them:
 *  1. Never set font-size/color on a bare element inside a container selector.
 *     It outranks single-class modifiers and silently kills them.
 *  2. CSS math needs whitespace around + and -.
 */

.wrap { max-width: 78rem; margin-inline: auto; padding-inline: clamp(1.25rem, 3vw, 3rem); }
.wrap--mid { max-width: 56rem; }

.sec { padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem); position: relative; isolation: isolate; }
.sec--paper2 { background: var(--color-paper-2); }
.sec--paper3 { background: var(--color-paper-3); }

.head { margin-bottom: clamp(2rem, 1rem + 2.5vw, 3.2rem); max-width: 36ch; }
.head--center { margin-inline: auto; text-align: center; max-width: 42ch; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); line-height: 1.2; margin: 0 0 .8rem; font-weight: 400; }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 .3rem; font-weight: 400; }
.sec p { color: var(--color-ink-2); }
.sec p:not([class]) { max-width: 46ch; }

/* Section labels. The chip-and-stitch-dash version was rejected outright, so
   this is the plain answer: the same label, just decisively bigger, heavier and
   tracked, in thread. No decoration. */
/* the TITLE LABEL sits on its own small paper tag; the heading and copy stay
   on the ground. Soft rectangle, no pill, no dashes. */
.eyebrow.eyebrow--dark {
  display: inline-block;
  font-size: clamp(.88rem, .8rem + .34vw, 1.02rem);
  font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--color-thread);
  background: #FFFFFF;   /* every section ground is cream, so the tag is white */
  border: 1px solid color-mix(in srgb, var(--color-blue-mid) 32%, transparent);
  border-radius: 8px;
  padding: .55em .95em .5em;
  box-shadow: 0 2px 0 0 color-mix(in srgb, var(--color-blue-mid) 16%, transparent);
  margin: 0 0 1.15rem;
}
.foot__head .eyebrow, .statement .panel .eyebrow {
  display: block; background: none; border: 0; padding: 0;
  font-size: clamp(.88rem, .8rem + .34vw, 1.02rem);
  font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  margin: 0 0 1.15rem;
}
.foot__head .eyebrow { color: var(--color-thread-soft); }
.statement .panel .eyebrow { color: var(--color-thread); }

/* Copy card. On a textured ground body copy needs its own paper or it sits in
   the pattern. Same DNA as .panel but sized to its column instead of centred. */
.notebox {
  position: relative;
  background: #FFFFFF;   /* never the same colour as the cream ground */
  border: 1px solid color-mix(in srgb, var(--color-blue-mid) 30%, transparent);
  border-radius: 12px;
  padding: clamp(1.4rem, 1.1rem + 1.2vw, 2rem) clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
  box-shadow: 0 10px 28px -20px rgba(20,35,50,.4);
}
.notebox > p:last-child { margin-bottom: 0; }
.notebox p { max-width: none; }

.split { display: grid; gap: clamp(2rem, 1rem + 3.5vw, 4.5rem); align-items: center; }
@media (min-width: 54rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--flip > :first-child { order: 2; }
}

.btn--ink {
  display: inline-block; font-family: inherit; font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  padding: 1.05rem 2.2rem; border-radius: 999px;
  border: 1.5px solid var(--color-thread); background: var(--color-thread); color: #fff;
  transition: background-color .2s, color .2s;
}
.btn--ink:hover { background: var(--color-band); border-color: var(--color-band); }
.btn--ghost {
  display: inline-block; font-family: inherit; font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  padding: 1.05rem 2.2rem; border-radius: 999px;
  border: 1.5px solid var(--color-thread); background: transparent; color: var(--color-thread);
  transition: background-color .2s, color .2s;
}
.btn--ghost:hover { background: var(--color-thread); color: #fff; }
/* on a textured ground a transparent button lets the pattern read through the
   middle of it, which looks like a mistake. Use the solid one there. */
.btn--solid {
  display: inline-block; font-family: inherit; font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  padding: 1.05rem 2.2rem; border-radius: 999px;
  border: 1.5px solid var(--color-band); background: var(--color-band); color: #fff;
  transition: background-color .2s, border-color .2s;
}
.btn--solid:hover { background: var(--color-thread); border-color: var(--color-thread); }

/* ---------------- timeline ----------------
   Ride Renew's shape rotated vertical. No card borders: the medallion, the
   dashed connector and the type carry it. Boxes were what made it read boxy. */
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; position: relative; }
.tl::before {
  content: ""; position: absolute; left: 37px; top: 52px; bottom: 52px;
  border-left: 2px dashed color-mix(in srgb, var(--color-thread) 38%, transparent);
}
.tl li { display: grid; grid-template-columns: 76px 1fr; gap: 1.5rem; align-items: start; }
.tl__n {
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; position: relative; z-index: 1;
  background: color-mix(in srgb, var(--color-thread) 12%, var(--color-paper));
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--color-thread) 5%, transparent),
              inset 0 0 0 1px color-mix(in srgb, var(--color-thread) 22%, transparent);
  color: var(--color-thread);
  font-family: "Cormorant Infant", serif; font-style: italic; font-size: 1.6rem;
}
.tl__body { padding-top: .55rem; }
.tl__body h3 { margin-bottom: .3rem; font-size: 1.28rem; }
.tl__body p { font-size: .99rem; margin: 0; max-width: 46ch; }
.tl li:hover .tl__n {
  background: color-mix(in srgb, var(--color-thread) 20%, var(--color-paper));
}

/* auto-fit was landing 2 up and orphaning the third on its own row. Three of
   them, so say three. */
/* Three short facts. The script face at 1.4rem and a tiny tracked caps line
   under it were the unreadable part, and the 2+1 fallback left one card mostly
   empty. Serif italic for the label, sentence case for the value, three across
   from tablet up. The dashed thread bar on top is gone. */
.facts {
  display: grid; gap: .7rem; margin-top: 2.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 30rem) { .facts { grid-template-columns: 1fr 1fr; }
  .facts > :last-child { grid-column: 1 / -1; } }
.fact {
  border: 1px solid color-mix(in srgb, var(--color-blue-mid) 34%, transparent);
  border-radius: 14px;
  padding: 1.6rem 1.1rem 1.4rem; background: #FFFFFF; text-align: center;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 3px 0 0 color-mix(in srgb, var(--color-blue-mid) 20%, transparent);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.fact:hover { transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--color-thread) 40%, transparent);
  box-shadow: 0 12px 26px -14px rgba(20,35,50,.42); }
.fact b {
  display: block; font-weight: 400; font-style: italic;
  font-size: clamp(1.1rem, .95rem + .55vw, 1.5rem); line-height: 1.2;
  color: var(--color-band); margin: 0 0 .7rem; text-wrap: balance;
}
/* a hairline between label and value, solid, not the dashed bar */
.fact b::after {
  content: ""; display: block; width: 26px; height: 1px; margin: .7rem auto 0;
  background: color-mix(in srgb, var(--color-thread) 46%, transparent);
}
.fact span {
  display: block; font-size: .92rem; line-height: 1.4;
  letter-spacing: 0; text-transform: none; color: var(--color-ink-2);
}

/* ---------------- photo in a patterned mat ---------------- */
.plate { position: relative; margin: 0; padding: 17px; background-color: var(--color-blue);
  border: 1px solid var(--color-band); border-radius: 16px; }
.plate img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border: 4px solid var(--color-paper); border-radius: 10px; }
.plate__tag { position: absolute; left: 17px; bottom: 17px; border-radius: 0 8px 0 10px;
  background: var(--color-thread); color: var(--color-paper);
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; padding: .45rem .95rem; }

/* ---------------- statement band, awning stripe ---------------- */
.statement {
  background-color: var(--color-band); color: var(--color-paper); text-align: center;
  --stmt-pad: clamp(2.4rem, 1.6rem + 2.6vw, 4rem);
  padding-block: var(--stmt-pad) calc(var(--stmt-pad) + 30px);   /* +30 = scallop */
  position: relative; isolation: isolate;
}
.statement .script {
  font-family: "Great Vibes", cursive; font-weight: 400;
  font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.8rem); line-height: 1.08;
  color: var(--color-paper); margin: 0 auto 1rem; max-width: 20ch; padding-block: .04em;
}
.statement p { color: color-mix(in srgb, var(--color-paper) 88%, transparent);
  max-width: 46ch; margin-inline: auto; }
.statement .btn { margin-top: 1.8rem; }

/* ---------------- work grid ---------------- */
.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 52rem) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { margin: 0; background: #fff; padding: 12px; border: 1px solid var(--color-blue);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 0 0 color-mix(in srgb, var(--color-blue-mid) 22%, transparent);
  transition: transform .3s var(--ease-out, ease); }
.tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px;
  transition: transform .6s; }
.tile:hover { transform: translateY(-3px);
  box-shadow: 0 12px 26px -14px rgba(20,35,50,.4); }
.tile:hover img { transform: scale(1.03); }
.tile figcaption { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--color-ink-2); padding-top: .7rem; }
.tile figcaption i { display: block; font-style: normal; color: var(--color-muted); font-size: .92em; }

/* ---------------- faq ---------------- */
.faq { display: grid; gap: .6rem; }
.faq details {
  background: #FFFFFF;                     /* white on the cream ground */
  border: 1px solid var(--color-rule);
  border-radius: 10px;
  padding: 0 1.5rem;
  box-shadow: 0 2px 0 0 color-mix(in srgb, var(--color-blue-mid) 22%, transparent);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.faq details:hover { transform: translateY(-1px);
  box-shadow: 0 6px 18px -10px rgba(20,35,50,.35); }
.faq details[open] {
  box-shadow: 0 6px 20px -12px rgba(20,35,50,.4);
  border-left: 3px solid var(--color-thread);
}
.faq details[open] {
  border-color: color-mix(in srgb, var(--color-blue-mid) 70%, transparent);
  border-left-color: var(--color-thread);   /* AFTER border-color, or it is reset */
}
.faq summary { list-style: none; cursor: pointer; position: relative;
  padding: 1.4rem 3rem 1.4rem 0; font-size: 1.2rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 50%;
  width: 13px; height: 13px;
  border-right: 2px solid var(--color-thread); border-bottom: 2px solid var(--color-thread);
  transform: translateY(-60%) rotate(45deg); transition: transform .22s; }
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq summary:hover { color: var(--color-thread); }
.faq__a { padding: 0 3rem 1.6rem 0; color: var(--color-ink-2); }
.faq__a p { max-width: 62ch; }
.tbc { color: var(--color-muted); font-size: .92em; }

/* ---------------- footer + form ---------------- */
.foot {
  background: linear-gradient(168deg, var(--color-band) 0%, var(--color-band-2) 100%);
  color: var(--color-paper);
  padding-block: clamp(3.5rem, 2rem + 5vw, 6rem) clamp(2rem, 1.5rem + 2vw, 3rem);
  position: relative; isolation: isolate;
}
.foot__head { text-align: center; max-width: 44ch; margin: 0 auto clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.foot__head .eyebrow { color: var(--color-thread-soft); font-size: .8rem; font-weight: 600; letter-spacing: .28em; }
.field label { color: var(--color-blue); }
.foot__head .script {
  font-family: "Great Vibes", cursive; font-weight: 400;
  font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem); line-height: 1.08;
  color: var(--color-paper); margin: 0 0 .8rem; padding-block: .04em;
}
.foot__lede { color: color-mix(in srgb, var(--color-paper) 88%, transparent); }
.form {
  background: var(--color-paper);           /* fully opaque, nothing behind it */
  border: 1px solid var(--color-rule);
  border-radius: 14px;
  padding: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  box-shadow: 0 26px 60px -30px rgba(10,25,40,.6);
}
.form .field label { color: var(--color-accent); }
.form .hint { color: var(--color-muted); }
.foot__grid { display: grid; gap: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
@media (min-width: 54rem) { .foot__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }

.row { display: grid; gap: 1.2rem; }
@media (min-width: 40rem) { .row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; margin-bottom: 1.2rem; min-width: 0; }
.field label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--color-blue); }
.hint { font-size: .88rem; color: color-mix(in srgb, var(--color-paper) 70%, transparent); }

/* Opaque fields. Translucent inputs let the striped ground read straight
   through them, which made the form look unfinished. */
input, select, textarea {
  width: 100%; min-width: 0; font-family: inherit; font-size: 1.02rem;
  color: var(--color-ink); background: #FFFDF8;
  border: 1px solid color-mix(in srgb, var(--color-blue-mid) 42%, var(--color-rule));
  border-radius: 9px;
  box-shadow: inset 0 1px 2px color-mix(in srgb, var(--color-band) 12%, transparent);
  padding: .9rem 1rem; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; line-height: 1.6; }
input:hover, select:hover, textarea:hover { border-color: var(--color-blue-mid); }
input:focus, select:focus, textarea:focus { outline: none;
  border-color: var(--color-band);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-blue) 45%, transparent); }
select option { color: var(--color-ink); background: var(--color-paper); }
::placeholder { color: var(--color-muted); }

.form-ok { text-align: center; padding: 2rem 0; }
.form-ok .script { font-family: "Great Vibes", cursive; font-size: 2.4rem; color: var(--color-paper); margin: 0 0 .6rem; }
.foot__nav { display: grid; gap: .5rem; margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--color-paper) 22%, transparent); }
.foot__nav b { font-size: .68rem; font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; color: var(--color-thread-soft); margin-bottom: .3rem; }
.foot__nav a { color: color-mix(in srgb, var(--color-paper) 86%, transparent);
  text-decoration: none; width: fit-content;
  border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.foot__nav a:hover { color: var(--color-paper); border-bottom-color: var(--color-thread-soft); }
.foot__aside { font-size: .96rem; color: color-mix(in srgb, var(--color-paper) 84%, transparent); }
.foot__mark { width: 200px; height: auto; margin-bottom: 1.2rem; }
.foot__aside a { color: var(--color-paper); }
.foot__meta { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding: 1.4rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--color-paper) 16%, transparent);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem;
  font-size: .92rem; color: color-mix(in srgb, var(--color-paper) 90%, transparent); }

/* ---------------- gallery page ---------------- */
/* six pieces, two clean rows of three, capped so the tiles stay card-sized
   instead of blowing up to a third of a wide monitor */
.gal { display: grid; gap: 1.3rem; grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 58rem; margin-inline: auto; }
@media (min-width: 46rem) { .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }


/* ---------------- text panel ----------------
   Copy on a striped or patterned ground needs its own paper behind it or it
   dissolves into the pattern. This is the depth layer used on the other builds. */
.panel {
  background: color-mix(in srgb, var(--color-paper) 94%, transparent);
  color: var(--color-ink);
  padding: clamp(2rem, 1.4rem + 2.4vw, 3.4rem) clamp(1.5rem, 1rem + 2.6vw, 3rem);
  max-width: 46rem; margin-inline: auto; position: relative; border-radius: 16px;
  box-shadow: 0 22px 50px -26px rgba(20,35,50,.45);
}
.panel::after {
  content: ""; position: absolute; inset: 11px; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--color-blue-mid) 55%, transparent);
  border-radius: 8px;
}
.statement .panel .script { color: var(--color-band); }
.statement .panel p { color: var(--color-ink-2); }
.statement .panel .eyebrow { color: var(--color-accent); }

/* ---------------- divider, sitting ON the seam ----------------
   Giving the divider its own ground boxed it off, which is what made the vine
   look parked in a container. Instead the band is split down the middle: the
   top half is the section above, the bottom half is the section below, so the
   vine straddles the actual colour change. */
.divider {
  position: relative; height: 0; z-index: 3;
  /* No background. A flat band between two textured sections reads as a box,
     which is exactly what it looked like. With zero height and an overlaid
     vine, the divider has no ground of its own and sits on the real seam. */
}
.divider .vineband {
  position: absolute; left: 0; right: 0; top: -46px; height: 92px;
  background-color: transparent;
}
.divider--sm .vineband { top: -33px; height: 66px; }

/* ---------------- instagram mark ---------------- */
.ig { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.ig svg { width: 18px; height: 18px; flex: none; }


/* horizontal awning stripe, for mats where vertical bars fight the photo */
.p-awning-h {
  background-image: repeating-linear-gradient(
    to bottom,
    color-mix(in srgb, var(--color-paper) 38%, transparent) 0 17px,
    transparent 17px 34px);
}

/* Preview-state note under the submit button. Remove this rule and the markup
   in build_index.py the moment the form has a real endpoint. */
.form-note {
  margin: .9rem 0 0; font-size: .82rem; font-style: italic;
  color: var(--color-muted);
}
.form-ok b { color: var(--color-thread-soft); }

/* the .secplate experiment (whole header on a card) was rejected as lazy;
   the ground now lives on the eyebrow label alone, see .eyebrow--dark */

/* ---- Nextcut credit: the house shimmer, ported from Ride Renew / Rolling
   Lawns and recoloured for this footer's navy. Bottom centre, own row. ---- */

.foot__credit {
  font-size: 1rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: color-mix(in srgb, var(--color-paper) 72%, transparent);
  transition: letter-spacing .3s ease-out;
}
.foot__credit:hover { letter-spacing: .22em; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .foot__credit {
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(90deg,
      oklch(96% 0.02 75),
      oklch(80% 0.13 250) 32%,
      oklch(78% 0.14 22) 50%,
      oklch(80% 0.13 250) 68%,
      oklch(96% 0.02 75));
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: credit-shimmer 3s linear infinite;
  }
  .foot__credit:hover { animation-duration: 1.5s; }
}
@keyframes credit-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* gallery CTA: flush with the grid, not floating in the whitespace */
.gal__cta { max-width: 58rem; margin: 1.5rem auto 0; }


/* ============================= mobile sections ============================= */
@media (max-width: 40rem) {
  /* timeline scales down, same shape */
  .tl { gap: 1.4rem; }
  .tl::before { left: 27px; top: 40px; bottom: 40px; }
  .tl__n { width: 56px; height: 56px; font-size: 1.25rem;
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--color-thread) 5%, transparent),
                inset 0 0 0 1px color-mix(in srgb, var(--color-thread) 22%, transparent); }
  .foot__meta { flex-direction: column; align-items: center; gap: .7rem; text-align: center; }
  /* 1rem nowrap tracked caps is wider than a phone; scale, never clip */
  .foot__credit { font-size: .72rem; letter-spacing: .15em; }
  .secplate, .notebox { border-radius: 10px; }
}

/* iOS gives date inputs an intrinsic size that ignores width:100% and pokes
   out of the panel; flattening the native appearance makes it obey */
input[type="date"] {
  -webkit-appearance: none; appearance: none;
  max-width: 100%; min-height: 3.1rem; display: block;
}
@media (max-width: 46rem) {
  .gal__cta { text-align: center; }
}
