/* ==========================================================================
   Product Scope: DESIGN UPLIFT, one-off pages (preview pages under /uplift/ only)
   Contact, Privacy Policy, Terms, Resources, Herbie case study (short template), 404.
   Loaded AFTER /assets/css/styles.css and /uplift/css/uplift.css, on these six
   previews only. It adds nothing new to the system: same tokens, radii, shadows,
   type scale, bands, icon tiles/discs, buttons and motion as uplift.css.
   No new colours. All motion is inside prefers-reduced-motion: no-preference.
   See _source/drafts/uplift/rollout-oneoffs/NOTES.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. SHARED
   -------------------------------------------------------------------------- */
/* The straddling card sits on white; give the page its full bottom rhythm */
.u-oneoff .up-straddle { padding-bottom: var(--u-space); }
/* Header text column: a lone short line (date, one sentence) reads better bottom-right */
.u-oneoff .up-hero__text .btn-row { margin-top: 28px; }

/* --------------------------------------------------------------------------
   1. CONTACT: one white card across the header edge; the form sits on a
      pale-navy inset so the fields read as one tool
   -------------------------------------------------------------------------- */
.u-contact .contact-panel { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); background: #fff; border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow-lift); padding: clamp(24px, 4.4vw, 64px); }
.u-contact .contact-panel__intro { padding-top: clamp(0px, 1vw, 12px); }
.u-contact .contact-panel__intro > p { font-size: clamp(1.04rem, 1rem + .25vw, 1.16rem); line-height: 1.6; color: var(--u-ink-2); margin: 26px 0 0; }
.u-contact .contact-panel__intro > p + p { margin-top: 16px; }
.u-contact__meta { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); gap: 16px; }
.u-contact__meta li { display: flex; align-items: center; gap: 14px; padding-left: 0; font-family: var(--font-heading); font-size: 1rem; color: var(--heading); }
.u-contact__meta li::before { display: none; }
.u-contact__meta .u-disc { width: 44px; height: 44px; background: var(--brand-tint); }
.u-contact__meta .u-disc svg { width: 22px; height: 22px; }
.u-contact .contact-panel__form { background: var(--band-cool); border-radius: var(--u-radius); padding: clamp(20px, 3vw, 40px); }
.u-contact .contact-form--bare input, .u-contact .contact-form--bare textarea { min-height: 52px; border-radius: 10px; }
.u-contact .contact-form--bare textarea { min-height: 180px; }
.u-contact .contact-form .btn { width: 100%; justify-content: center; }
@media (max-width: 900px) { .u-contact .contact-panel { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .u-contact .contact-panel { padding: 24px 16px; } .u-contact .contact-panel__intro { padding-inline: 6px; } .u-contact .contact-panel__form { padding: 18px 14px; } }

/* --------------------------------------------------------------------------
   2. LEGAL (Privacy Policy, Terms): a white document sheet across the header
      edge; each heading sits in a left column beside its text (editorial grid)
   -------------------------------------------------------------------------- */
.u-updated { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 18px 10px 14px; border-radius: 999px; background: #fff; box-shadow: var(--u-shadow);
  font-family: var(--font-heading); font-size: .98rem !important; line-height: 1.4; color: var(--heading) !important; }
.u-updated svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--brand); }
@media (min-width: 861px) { .u-legal .up-hero__text { justify-self: end; } }

.u-doc .u-doc__sheet { max-width: none; background: #fff; border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow-lift); padding: clamp(24px, 5vw, 72px) clamp(20px, 5.5vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); column-gap: clamp(28px, 5vw, 72px); align-items: start; }
.u-doc__sheet > * { grid-column: 2; max-width: 72ch; }
.u-doc__sheet > .lead { grid-column: 1 / -1; max-width: 60ch; margin: 0 0 clamp(8px, 1.5vw, 20px); padding-left: clamp(18px, 2vw, 28px); border-left: 4px solid var(--brand);
  font-size: var(--u-lead-size); line-height: 1.5; color: var(--heading); }
.u-doc__sheet > h2 { grid-column: 1; margin: 0; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.3; letter-spacing: -.005em; }
.u-doc__sheet > h2::before { content: ""; display: block; width: 40px; height: 3px; border-radius: 2px; background: var(--brand); margin-bottom: 14px; }
.u-doc__sheet > h2, .u-doc__sheet > h2 + * { margin-top: clamp(28px, 3.4vw, 44px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.u-doc__sheet p { line-height: 1.75; }
.u-doc__sheet > p:last-child { margin-bottom: 0; }
.u-doc__products { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.u-doc__products li { margin: 0; padding: 14px 18px; border-radius: 12px; background: var(--band-warm); }
@media (max-width: 900px) {
  .u-doc .u-doc__sheet { display: block; }
  .u-doc__sheet > h2 { margin-bottom: .6em; }
  .u-doc__sheet > h2 + * { margin-top: 0; padding-top: 0; border-top: 0; }
}

/* --------------------------------------------------------------------------
   3. RESOURCES
   -------------------------------------------------------------------------- */
/* Featured resource: white card across the header edge, blush backing behind the screen */
.u-resfeat .u-resfeat__card { background: #fff; box-shadow: var(--u-shadow-lift); border-radius: var(--u-radius-lg); padding: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.u-resfeat__media { position: relative; isolation: isolate; padding: clamp(14px, 2vw, 26px) 0; }
.u-resfeat__media::before { content: ""; position: absolute; z-index: -1; inset: 0 12% 0 -6%; border-radius: var(--u-radius-lg); background: var(--band-warm); }
.u-resfeat__media a { display: block; border-radius: var(--u-radius); }
.u-resfeat__media img { border-radius: var(--u-radius); box-shadow: var(--u-shadow-lift); }
.u-resfeat .split__label { font-size: .8rem; letter-spacing: .12em; }
.u-resfeat .split__body h2::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 2px; background: var(--brand); margin-top: 22px; }
.u-resfeat .split__body p:not(.split__label) { font-size: 1.04rem; line-height: 1.7; }
.u-resfeat .split__actions { gap: 12px; }
@media (max-width: 960px) {
  .u-resfeat .u-resfeat__card { grid-template-columns: 1fr; }
  .u-resfeat__media::before { inset: 0 4% 0 -3%; }
}

/* Why it is built this way: white icon cards on champagne */
.u-why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--u-gap); }
.u-why .u-card { padding: clamp(24px, 2.6vw, 34px); }
.u-why .u-card h3 { font-size: clamp(1.12rem, 1rem + .4vw, 1.28rem); }
.u-why .u-card p { font-size: 1rem; line-height: 1.6; }
@media (max-width: 860px) { .u-why__grid { grid-template-columns: 1fr; gap: 16px; } }

/* Guides: outlined numerals (the Home "How I Help" pattern) and a rule that grows on hover */
.u-guides .deliver2-grid { gap: clamp(40px, 4.4vw, 60px) clamp(28px, 3.6vw, 52px); }
.u-guides .deliver2 { position: relative; border-top: 2px solid rgba(128, 0, 32, .16); padding-top: 26px; }
.u-guides .deliver2::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 64px; background: var(--brand); }
.u-guides .deliver2__num { margin: 0 0 18px; font-size: clamp(2.8rem, 4.4vw, 3.8rem); line-height: 1; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px var(--brand); }
.u-guides .deliver2:hover .deliver2__num { color: var(--brand); }
.u-guides .deliver2 h3 { font-size: clamp(1.2rem, 1rem + .5vw, 1.38rem); }
.u-guides .deliver2 p { color: var(--ink); }
.u-guides .deliver2 p + p { margin-top: 14px; font-size: .95rem; color: var(--u-ink-2); }
@media (min-width: 761px) and (max-width: 1000px) { .u-guides .deliver2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   4. HERBIE (short case-study template, cs2-*)
   -------------------------------------------------------------------------- */
/* Header: pale-navy band, split; the framed mock-up drops below the band edge */
.u-cs2head { position: relative; isolation: isolate; overflow-x: clip; background: var(--band-cool); padding: var(--u-head-top) 0 var(--u-head-bottom); }
/* Title runs across the band (long case-study titles keep the full --u-h1); the split is lead | mock-up */
.u-cs2head__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "back back" "title title" "lead media"; gap: 0 clamp(36px, 5vw, 80px); align-items: start; }
.u-cs2head__text { display: contents; }
.u-cs2head .back-link { grid-area: back; justify-self: start; display: inline-flex; align-items: center; margin-bottom: clamp(14px, 2vw, 24px); }
.u-cs2head h1 { grid-area: title; max-width: 20ch; font-size: var(--u-h1); line-height: 1.04; letter-spacing: -.02em; font-weight: 600; margin: 0 0 clamp(28px, 3.4vw, 48px); text-wrap: balance; }
.u-cs2head .cs2-lead { grid-area: lead; }
.u-cs2head__media { grid-area: media; }
.u-cs2head h1::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 2px; background: var(--brand); margin-top: 22px; transform-origin: left center; }
.u-cs2head .cs2-lead { margin: 0; max-width: 46ch; font-family: var(--font-heading); font-size: var(--u-lead-size); line-height: 1.5; color: var(--heading); text-wrap: pretty; }
/* bottom-aligned, then pulled through the band's bottom padding and over the edge by --u-overlap */
.u-cs2head__media { align-self: end; margin-bottom: calc(-1 * (var(--u-overlap) + var(--u-head-bottom))); }
.u-cs2head__media img { position: relative; border-radius: var(--u-radius); box-shadow: var(--u-shadow-photo); background: #fff; }
.u-cs2head__media.u-layer::after { inset: 24% -26px -26px 30%; }

/* The rule: white, big quote mark, statement type (makes room for the mock-up above) */
.section.u-cs2quote { padding-top: calc(var(--u-overlap) + clamp(48px, 6vw, 88px)); }
.u-cs2quote .container { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.u-cs2quote .u-quote { margin: 6px 0 0; }
.u-cs2quote .cs2-pull { margin: 0; padding: 0; border: 0; max-width: 28ch; font-family: var(--font-heading); font-weight: 500; font-size: clamp(1.6rem, 1.05rem + 2.2vw, 2.7rem); line-height: 1.22; letter-spacing: -.015em; color: var(--heading); text-wrap: balance; }
.u-cs2quote .cs2-pull small { margin-top: 22px; font-family: var(--font-heading); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }

/* Overview band: prose + the Details panel as a floating white card */
.u-cs2 .prose h2.h2-rule { font-size: var(--u-h2); line-height: 1.1; letter-spacing: -.015em; margin-bottom: .7em; }
.u-cs2over .cs2-two { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); }
.u-cs2over .prose p { font-size: 1.06rem; }
.u-cs2over .prose h2 + p { font-family: var(--font-heading); font-size: var(--u-lead-size); line-height: 1.5; color: var(--heading); }
.u-cs2 .pd-card.pd-details { background: #fff; border: 0; border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow-lift); padding: clamp(24px, 3vw, 38px); }
.u-cs2 .pd-details .pd-facts { gap: 18px; }
.u-cs2 .pd-details .pd-facts dd { font-size: .98rem; }

/* Objectives: blush panel, five white icon cards (3 + 2) */
.u-cs2obj .panel { border-radius: var(--u-radius-lg); padding: clamp(24px, 4.4vw, 64px); }
.u-cs2obj .u-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.u-cs2obj .u-cards .deliver { grid-column: span 2; }
.u-cs2obj .u-cards .deliver:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 960px) {
  .u-cs2obj .u-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u-cs2obj .u-cards .deliver, .u-cs2obj .u-cards .deliver:nth-child(n+4) { grid-column: span 1; }
  .u-cs2obj .u-cards .deliver:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .u-cs2obj .u-cards { grid-template-columns: 1fr; } .u-cs2obj .u-cards .deliver:last-child { grid-column: auto; } }

/* My Role: editorial (title left, reading column right), lead type */
.u-cs2role .u-editorial__body .lead { margin: 0; font-size: var(--u-lead-size); line-height: 1.55; color: var(--heading); }

/* Decisions: white rows on pale navy; the Result reads strongest (result-led) */
.u-cs2dec .cs2-rows { border-top: 0; display: grid; gap: 16px; }
.u-cs2dec .cs2-row { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); padding: clamp(20px, 2.6vw, 32px); border: 0; border-radius: var(--u-radius); background: #fff; box-shadow: var(--u-shadow); align-items: center; }
.u-cs2dec .cs2-row__head { align-items: center; }
.u-cs2dec .cs2-row__head h3 { font-size: clamp(1.08rem, 1rem + .35vw, 1.24rem); }
.u-cs2dec .cs2-row__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-tint); }
.u-cs2dec .cs2-row__ico svg { width: 24px; height: 24px; }
.u-cs2dec .cs2-row__cols > div + div { border-left: 1px solid var(--line); padding-left: clamp(16px, 2vw, 28px); }
.u-cs2dec .cs2-row__cols dt { font-size: .74rem; }
.u-cs2dec .cs2-row__cols dd { color: var(--u-ink-2); }
.u-cs2dec .cs2-row__cols > div:last-child dd { font-family: var(--font-heading); font-weight: 500; color: var(--heading); }
@media (max-width: 860px) {
  .u-cs2dec .cs2-row__cols > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
}

/* What I Learned: champagne panel, hairline rules, white icon discs (Services "Working With Me") */
.u-cs2learn .cs-phase { border-radius: var(--u-radius-lg); padding: clamp(24px, 4.4vw, 56px); }
.u-cs2learn .cs-steps { gap: clamp(28px, 3.4vw, 44px) clamp(28px, 4vw, 56px); }
.u-cs2learn .cs-step { border-top: 1px solid rgba(128, 0, 32, .22); padding-top: 24px; }
.u-cs2learn .cs-step__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; margin-bottom: 16px; }
.u-cs2learn .cs-step__icon svg { width: 24px; height: 24px; }
.u-cs2learn .cs-step h4 { font-size: clamp(1.08rem, 1rem + .35vw, 1.22rem); }
.u-cs2learn .cs-step p { color: var(--ink); font-size: 1rem; line-height: 1.6; }

/* The full story: blush feature panel */
.u-cs2story .cs2-next { border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow); }
.u-cs2story .cs2-next__media { min-height: 340px; overflow: hidden; }
.u-cs2story .cs2-next__body { padding: clamp(24px, 4vw, 56px); }
.u-cs2story .cs2-next__label { font-size: .8rem; }
.u-cs2story .cs2-next__body h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.15; letter-spacing: -.01em; margin-bottom: 16px; }
.u-cs2story .cs2-next__body > p:not(.cs2-next__label) { color: var(--ink); font-size: 1.04rem; margin-bottom: 26px; }
.u-cs2story .cs2-next__also { gap: 0; margin-top: 28px; }
.u-cs2story .cs2-next__also a { display: inline-block; padding: 10px 0; }

/* More case studies: photo tiles, scope brackets on hover (uplift.css) */
.u-cs2more .cs2-tiles { gap: var(--u-gap); }
.u-cs2more .cs2-tiles .home-tile { min-height: clamp(300px, 27vw, 380px); }

@media (max-width: 860px) {
  .u-cs2head__grid { grid-template-columns: 1fr; grid-template-areas: "back" "title" "lead" "media"; }
  .u-cs2head h1 { margin-bottom: 26px; }
  .u-cs2head__media { margin: 40px 8px calc(-1 * (56px + var(--u-head-bottom))); }
  .section.u-cs2quote { padding-top: calc(56px + 48px); }
  .u-cs2over .cs2-two { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .u-cs2head__media.u-layer::after { inset: 24% -12px -12px 30%; }
  .u-cs2quote .container { grid-template-columns: 1fr; gap: 14px; }
  .u-cs2dec .cs2-row { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   5. 404: the page is one pale-navy band; the logo's brackets frame a detour
   -------------------------------------------------------------------------- */
.page-404 > main.u-404 { display: flex; flex-direction: column; }
.u-404 .u-404__band { flex: 1 0 auto; display: flex; align-items: center; background: var(--band-cool); padding: var(--u-head-top) 0 var(--u-space); text-align: left; }
.u-404__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(36px, 6vw, 96px); align-items: center; width: 100%; }
.u-404 h1 { font-size: var(--u-h1); line-height: 1.04; letter-spacing: -.02em; font-weight: 600; margin: 0; max-width: 15ch; text-wrap: balance; }
.u-404 h1::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 2px; background: var(--brand); margin-top: 22px; transform-origin: left center; }
.u-404 .error-lead { margin: 26px 0 0; max-width: 42ch; font-family: var(--font-heading); font-size: var(--u-lead-size); line-height: 1.5; color: var(--heading); text-wrap: pretty; }
.u-404 .error-actions { justify-content: flex-start; gap: 12px; margin: 34px 0 0; }
.u-404__art { position: relative; aspect-ratio: 1; max-width: 400px; width: 100%; justify-self: end; color: var(--brand); }
.u-404__mark { position: absolute; inset: 0; width: 100%; height: 100%; }
.u-404__route { position: absolute; inset: 18%; width: 64%; height: 64%; color: var(--cta-blue); }
.u-404__path { stroke-dasharray: 6 9; }
@media (max-width: 760px) {
  .u-404__grid { grid-template-columns: 1fr; }
  .u-404__art { display: none; }
}

/* --------------------------------------------------------------------------
   6. MOTION (all of it skipped under prefers-reduced-motion)
   -------------------------------------------------------------------------- */
@keyframes u-route { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  /* the header entrance sequence of uplift.css, for the two headers it does not cover */
  .u-cs2head h1, .u-404 h1 { animation: u-rise .8s var(--u-ease) both; }
  .u-cs2head h1::after, .u-404 h1::after { animation: u-rule .8s .4s var(--u-ease) both; }
  .u-cs2head .cs2-lead, .u-404 .error-lead { animation: u-rise .8s .15s var(--u-ease) both; }
  .u-404 .error-actions { animation: u-rise .8s .27s var(--u-ease) both; }
  .u-cs2head__media img { animation: u-unveil 1.2s .2s var(--u-ease) both; }
  .u-404__mark { animation: u-frame-in 1.2s .3s var(--u-ease) both; }
  .u-404__path { animation: u-route 2.4s .5s var(--u-ease) both; }

  /* hover */
  .u-guides .deliver2::before { transition: width .6s var(--u-ease); }
  .u-guides .deliver2:hover::before { width: 100%; }
  .u-guides .deliver2__num { transition: color .4s ease; }
  .u-resfeat__media img { transition: transform .9s var(--u-ease); }
  .u-resfeat__media:hover img { transform: translateY(-6px) scale(1.02); }
  .u-why .u-card:hover, .u-cs2dec .cs2-row:hover { transform: translateY(-6px); }
  .u-cs2dec .cs2-row { transition: transform .4s var(--u-ease), box-shadow .4s ease; }
  .u-cs2dec .cs2-row:hover { box-shadow: var(--u-shadow-lift); }
  .u-cs2story .cs2-next__media img { transition: transform 1.1s var(--u-ease); }
  .u-cs2story .cs2-next:hover .cs2-next__media img { transform: scale(1.06); }
  .u-why .u-card:hover .u-chip { transform: rotate(-6deg); }

}
