/* =====================================================================
   37 Customs: final homepage refinements (sections BELOW the hero)
   Loaded after styles.css and corvette-hero.css by corvette-hero.html
   only. The hero (.cv) is deliberately left out of every rule here.
     1. Editorial serif for body copy, Old English accents, red periods
     2. Request a Quote: larger, easier form text
     3. Studio: no stats strip, tighter hand-off
     4. After Dark: three framed media, blue over purple on the right
     5. Performance strip removed: tighter section end
     6. Reviews and brand carousels
     7. Footer: slogan under the logo, no decorative rules
   ===================================================================== */

:root {
  --font-editorial: "Times New Roman", Times, "Liberation Serif", "Nimbus Roman", Tinos, serif;
  --accent-red: #d0141f;               /* the hero's red period */
}

/* No accidental sideways scrolling on phones ('clip' keeps the sticky hero working). */
html, body { overflow-x: clip; }

/* ---------- 1. Typography ---------- */
/* Body copy below the hero: an elegant editorial serif instead of the
   rounded sans. Display headlines, mono labels and buttons keep their own
   faces (they set font-family themselves). */
#main > section:not(.cv),
.site-footer {
  --font-body: var(--font-editorial);
  font-family: var(--font-editorial);
  font-size: 1.125rem;
  line-height: 1.6;
}
#main > section:not(.cv) .lead { font-size: clamp(1.2rem, 1.05rem + .55vw, 1.5rem); line-height: 1.5; }
.dept__desc, .builds__intro { font-size: clamp(1.12rem, 1.05rem + .25vw, 1.3rem); line-height: 1.55; }
.svc__name { font-size: 1.12rem; }
.svc__desc { font-size: 1.05rem; line-height: 1.5; }
.file__work { font-size: 1.12rem; }
.why__list h4, .step__title { font-weight: 700; letter-spacing: .005em; }
.why__list p, .steps p { font-size: 1.1rem; line-height: 1.6; }

/* Old English accents: the hero's Chomsky, used sparingly on a few words in
   major headings. One weight exists, so it is kept light by size and
   spacing, never by distorting the letters; a gentle slant gives the
   italic feel of the words it replaces. */
.oe {
  display: inline-block;
  font-family: "Chomsky", "Old English Text MT", "UnifrakturMaguntia", serif;
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-variation-settings: normal;
  text-transform: none;
  letter-spacing: .012em;
  color: #f1eee8;
  transform: skewX(-6deg);
  transform-origin: 0 100%;
}
.oe .dot,
.site-footer__slogan .dot { color: var(--accent-red); }
.section-title .oe { font-size: .78em; line-height: 1; }

/* ---------- 2. Request a Quote ---------- */
.quote__title .oe { display: block; font-size: .74em; line-height: 1.02; margin-top: .06em; padding-left: .04em; }
.quote-form { gap: 1.75rem; }
.quote .field { gap: .6rem; }
.quote .field label, .quote .field legend { font-size: .82rem; letter-spacing: .14em; color: rgba(236, 235, 231, .82); }
.quote .field__hint { font-size: .95em; }
.quote .field input[type="text"], .quote .field input[type="tel"], .quote .field input[type="email"], .quote .field textarea {
  font-size: 1.15rem;
  min-height: 3.3rem;
  padding: .9rem 1rem;
}
.quote .field__error { font-size: 1rem; }
.quote .chips__label { font-size: .76rem; letter-spacing: .14em; }
.quote .chips__group { gap: .55rem; }
.quote .chip span, .quote .radio span { font-size: 1.08rem; min-height: 2.95rem; padding: .65rem 1.1rem; }
.quote-form .btn--block { min-height: 3.8rem; font-size: .9rem; }
.quote .quote__direct a { font-size: 1.25rem; }
.quote .quote__book .mono-label { font-size: .78rem; }
.quote-form__status { font-size: 1.05rem; }
.quote-form > .proto-note { font-size: .95rem; }

/* ---------- 3. Studio ---------- */
/* The stats strip is gone; the section ends just below the team photo and
   After Dark follows with breathing room, not an empty band. */
.studio { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.after-dark { padding-top: clamp(3.5rem, 6vw, 5.5rem); }

/* ---------- 4. After Dark ---------- */
/* All three media share one thin white frame (the angled LED outline is
   retired here); the red starlight film leads on the left, the blue
   ambient clip sits over the purple one in a matching right column. */
.after-dark .portal { --c: 0px; border: 1px solid rgba(255, 255, 255, .72); }
.after-dark .portal__lines { display: none; }
.after-dark__glow { width: 100%; justify-self: stretch; }
.after-dark__glow .portal { --c: 0px; }
.after-dark__ambient .portal__media,
.after-dark__glow .portal__media { aspect-ratio: 4 / 5; }
.after-dark__grid { align-items: start; }
.after-dark__text { align-self: center; }
.after-dark__main, .after-dark__side { align-self: start; }
.after-dark__side { gap: clamp(1rem, 1.8vw, 1.5rem); }
@media (min-width: 961px) {
  .after-dark__text { grid-column: 1 / span 4; }
  .after-dark__main { grid-column: 5 / span 5; }
  .after-dark__side { grid-column: 10 / -1; }
}
@media (max-width: 960px) {
}
@media (max-width: 600px) {
  .after-dark__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem .85rem; }
  .after-dark__text { grid-column: 1 / -1; }
  .after-dark__main { grid-column: 1; }
  .after-dark__side { grid-column: 2; grid-template-columns: 1fr; gap: .85rem; }
  .after-dark__glow .portal__media { aspect-ratio: 4 / 5; }
  .after-dark figure .mono-label { font-size: .6rem; }
}

/* ---------- 5. Performance & Fabrication ---------- */
/* The P.01-P.04 strip is gone; the section ends after its headline. */
.heat { padding-bottom: clamp(3.5rem, 6vw, 5.5rem); }
.heat + .process { padding-top: clamp(3.5rem, 6vw, 5.5rem); }

/* ---------- 6. Reviews and brand carousels ---------- */
.proof { grid-column: 1 / -1; display: grid; gap: clamp(2.75rem, 5vw, 4rem); margin-top: clamp(.5rem, 2vw, 1.5rem); min-width: 0; }
.proof__block { display: grid; gap: 1.25rem; min-width: 0; }
.proof__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.proof__head .mono-label { color: var(--bone); }
.proof__nav { display: flex; gap: .5rem; }
.proof__btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.1rem;
  transition: border-color .3s, background-color .3s, color .3s;
}
.proof__btn:hover, .proof__btn:focus-visible { border-color: var(--bone); background: rgba(236, 235, 231, .06); }

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: .25rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.marquee:focus-visible { outline: 2px solid var(--led); outline-offset: 4px; }
.marquee__track { display: flex; gap: clamp(1rem, 2vw, 1.5rem); width: max-content; margin: 0; padding: 0; list-style: none; will-change: transform; }

.review {
  flex: none;
  width: clamp(16.5rem, 30vw, 24rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border: 1px solid rgba(236, 235, 231, .2);
  background: rgba(236, 235, 231, .025);
}
.review__stars { font-size: 1rem; letter-spacing: .2em; color: var(--bone); }
.review__text { margin: 0; font-family: var(--font-editorial); font-size: 1.15rem; line-height: 1.55; color: rgba(236, 235, 231, .92); }
.review__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.review__name { font-family: var(--font-editorial); font-size: 1.05rem; font-weight: 700; color: var(--bone); }
.review__src { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.review--empty { border-style: dashed; background: none; }
.review--empty .review__stars { color: rgba(236, 235, 231, .25); }
.review--empty .review__text { color: var(--steel); font-style: italic; }

.brand {
  flex: none;
  width: clamp(9.5rem, 15vw, 12.5rem);
  height: clamp(7rem, 9.5vw, 8.5rem);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .7rem;
  border: 1px solid rgba(236, 235, 231, .14);
}
.brand img { width: auto; height: clamp(2.4rem, 3.4vw, 3.1rem); opacity: .94; }
.brand__word { font-family: var(--font-editorial); font-size: clamp(1.2rem, 1.6vw, 1.5rem); letter-spacing: .06em; color: rgba(236, 235, 231, .9); line-height: 1; }
.brand__name { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.brand--pending { border-style: dashed; }

@media (max-width: 600px) {
  .review { width: min(82vw, 21rem); }
  .proof__btn { width: 2.9rem; height: 2.9rem; }
}

/* ---------- 7. Footer ---------- */
.site-footer__mark { margin-bottom: clamp(3rem, 6vw, 5rem); }
.site-footer__slogan {
  margin: clamp(1rem, 2vw, 1.6rem) 0 0;
  text-align: center;
  font-family: "Chomsky", "Old English Text MT", serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  line-height: 1;
  letter-spacing: .01em;
  color: #f1eee8;
}

/* ---------- 8. Recent work: confirmed service lists ----------
   A short line always shows; the full list of work opens under the
   active file (hover, focus or tap), so the list stays clean. */
.file__link { grid-template-areas: "no title arrow" "no work arrow" "no specs arrow"; }
.file__specs {
  grid-area: specs;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .6s var(--ease), opacity .4s, margin .4s;
}
.file__specs span {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(236, 235, 231, .8);
  padding: .3rem .55rem;
  border: 1px solid var(--line-strong);
}
.file.is-active .file__specs { max-height: 12rem; opacity: 1; margin-top: .4rem; }
@media (max-width: 600px) {
  .file__link { grid-template-areas: "no arrow" "title arrow" "work arrow" "specs arrow"; }
  .file__specs { max-height: none; opacity: 1; margin-top: .4rem; }
}

/* ---------- 9. Brand logos (official files, proportions and colours kept) ---------- */
.brand { padding: 0 1.1rem; }
.brand img { width: auto; height: auto; max-width: 100%; max-height: clamp(2rem, 2.8vw, 2.6rem); opacity: 1; }
.brand img.brand__mark { max-height: clamp(4.2rem, 6vw, 5.4rem); }
.brand--light { background: #f1efea; border-color: #f1efea; }

/* ---------- 10. Reviews and brand partners, their own section ----------
   "One studio. Every discipline." is gone; the carousels follow The
   Process with ordinary breathing room. */
.process { padding-bottom: clamp(3rem, 5vw, 4.5rem); }
.partners { padding-top: clamp(2.5rem, 4.5vw, 4rem); padding-bottom: clamp(4rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.partners .proof { margin-top: 0; }
.brand--light { background: #f4f2ee; border-color: #f4f2ee; }
/* The edge fade would half-dissolve Rayno's light card; brand tiles enter and leave cleanly instead. */
.marquee--brands { -webkit-mask-image: none; mask-image: none; }

/* ---------- 11. Google reviews (Trustindex) ----------
   The widget is Trustindex's own (layout, slider, stars, review text and
   counts all come from the plugin). These rules only bring its type and
   colours into the theme, scoped to this block; Trustindex's own styles
   load with !important, hence the !important here. For the closest match,
   pick a dark style in Trustindex (e.g. "Dark minimal" or "Dark border"). */
.t37-reviews__source { color: var(--steel); }
.t37-reviews__widget { min-height: 12rem; }
.t37-reviews .ti-widget { color: var(--bone); }
.t37-reviews .ti-widget,
.t37-reviews .ti-widget .ti-name,
.t37-reviews .ti-widget .ti-review-content,
.t37-reviews .ti-widget .ti-review-text-container { font-family: var(--font-editorial) !important; }
.t37-reviews .ti-widget .ti-widget-container { margin-inline: 0 !important; }
.t37-reviews .ti-widget .ti-review-item > .ti-inner {
  background: rgba(236, 235, 231, .025) !important;
  border: 1px solid rgba(236, 235, 231, .2) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.t37-reviews .ti-widget .ti-name { color: var(--bone) !important; font-weight: 700 !important; font-size: 1.05rem !important; }
.t37-reviews .ti-widget .ti-review-content,
.t37-reviews .ti-widget .ti-review-text-container { color: rgba(236, 235, 231, .92) !important; font-size: 1.08rem !important; line-height: 1.55 !important; }
.t37-reviews .ti-widget .ti-date,
.t37-reviews .ti-widget .ti-footer,
.t37-reviews .ti-widget .ti-rating-text { color: var(--steel) !important; }
.t37-reviews .ti-widget .ti-date { font-family: var(--font-mono) !important; font-size: .7rem !important; letter-spacing: .12em !important; text-transform: uppercase; }
.t37-reviews .ti-widget .ti-read-more span,
.t37-reviews .ti-widget .ti-read-more a { color: var(--led) !important; }

/* Placeholder: shown only on the local test site, or to a logged-in admin
   when the widget is not available. No review content of any kind. */
.t37-reviews__placeholder {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px dashed var(--line-strong);
}
.t37-reviews__ph-text { display: grid; gap: .8rem; }
.t37-reviews__ph-title { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); line-height: 1.2; color: var(--bone); }
.t37-reviews__ph-copy { font-size: 1rem; line-height: 1.55; color: var(--text-dim); }
.t37-reviews__ph-copy code { font-family: var(--font-mono); font-size: .85em; color: var(--bone); background: rgba(236, 235, 231, .06); padding: .1em .35em; }
.t37-reviews__ph-notice { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .04em; color: #d9c38f; }
.t37-reviews__ph-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.t37-reviews__ph-cards li {
  height: 11rem;
  border: 1px solid rgba(236, 235, 231, .14);
  background:
    linear-gradient(rgba(236, 235, 231, .07), rgba(236, 235, 231, .07)) 1.25rem 1.4rem / 5rem .55rem no-repeat,
    linear-gradient(rgba(236, 235, 231, .05), rgba(236, 235, 231, .05)) 1.25rem 3rem / calc(100% - 2.5rem) .45rem no-repeat,
    linear-gradient(rgba(236, 235, 231, .05), rgba(236, 235, 231, .05)) 1.25rem 3.9rem / calc(100% - 4rem) .45rem no-repeat,
    linear-gradient(rgba(236, 235, 231, .05), rgba(236, 235, 231, .05)) 1.25rem 4.8rem / 55% .45rem no-repeat,
    linear-gradient(rgba(236, 235, 231, .08), rgba(236, 235, 231, .08)) 1.25rem calc(100% - 1.4rem) / 6rem .5rem no-repeat,
    rgba(236, 235, 231, .02);
}
@media (max-width: 960px) {
  .t37-reviews__placeholder { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .t37-reviews__ph-cards { grid-template-columns: 1fr; }
  .t37-reviews__ph-cards li:nth-child(n+2) { display: none; }
}