/* ============================================================
   AfterFlood Solutions — streamlined respec (2026-10-27)
   Hero, a three-card timeline, one closing panel. No scroll choreography.
   Previous builds are in previous/.
   ============================================================ */

:root {
  --navy-deep: #0B1728;
  --navy:      #14263F;
  --azure:     #2B6CB0;
  --cornflower:#8FC1EA;
  --ice:       #EDF2F7;
  --slate:     #4A5A6A;
  --white:     #FFFFFF;
  --ink:       #101B2B;

  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --sans:  "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --spread: 68rem;                   /* the page's reading spine */
  --pad: clamp(1.25rem, 4vw, 3rem);
  --frame: clamp(8px, 1vw, 14px);    /* paper margin around each still */
  --bar-h: 3.5rem;
  --on-dark: rgba(255, 255, 255, .72);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ice);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: .02em; line-height: 1.08; }
h1 em, h2 em { font-style: italic; color: var(--cornflower); }

:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; }
.bar :focus-visible, .hero :focus-visible, .closing :focus-visible { outline-color: var(--cornflower); }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy-deep); color: var(--white); padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

.eyebrow {
  font-size: .8125rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--azure); margin-bottom: 1.25rem;
}
.eyebrow--light { color: var(--cornflower); }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  background: rgba(11, 23, 40, .86);
  color: var(--white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bar__mark { text-decoration: none; font-family: var(--serif); font-size: 1.25rem; letter-spacing: -.01em; }
.bar__mark-b { color: var(--cornflower); font-style: italic; }
.bar__call { text-decoration: none; display: flex; gap: .6rem; align-items: baseline; }
.bar__call-label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cornflower); }
.bar__call-num { font-weight: 500; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--cornflower); }
.bar__call:hover .bar__call-num { text-decoration-color: var(--white); }
@media (max-width: 480px) { .bar__call-label { display: none; } }

/* ---------- text links as actions ---------- */
.link-call, .link-more {
  display: inline-block; text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px;
  font-weight: 500;
}
.link-call { font-size: 1.125rem; }
.link-call--big { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-family: var(--serif); font-weight: 400; }
.link-more { color: var(--cornflower); text-decoration-color: rgba(143, 193, 234, .6); }
.link-more:hover, .link-call:hover { text-decoration-thickness: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  color: var(--white); background: var(--navy-deep);
  margin-top: calc(-1 * var(--bar-h));
}
.hero__pic, .hero__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__pic::after {
  content: ""; position: absolute; inset: 0;
  /* Heavy under the copy and form (bottom-left); light over the people (right). */
  background:
    linear-gradient(to top, rgba(11,23,40,.86) 0%, rgba(11,23,40,.42) 48%, rgba(11,23,40,0) 82%),
    linear-gradient(to right, rgba(11,23,40,.55) 0%, rgba(11,23,40,.18) 50%, rgba(11,23,40,0) 72%);
}
/* The people stand in the right half of the frame; keep them in view when a
   narrow-but-tall viewport crops the 16:9 photo. */
.hero__pic img { object-position: 70% 50%; }
/* The copy column grows with the screen so a wide monitor is not 80% photograph. */
.hero__copy {
  position: relative;
  padding: 8rem clamp(1.25rem, 5vw, 6rem) clamp(3rem, 7vh, 5.5rem);
  max-width: 72rem;
}
.hero__eyebrow {
  font-size: clamp(.8125rem, .8vw, 1rem); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--cornflower); margin-bottom: clamp(1.25rem, 1.4vw, 1.75rem);
}
.hero h1 { font-size: clamp(2.25rem, 4.6vw, 4.75rem); text-wrap: balance; }
.hero__sub { margin-top: clamp(1.5rem, 2vw, 2rem); max-width: 44rem; font-size: clamp(1.0625rem, 1.2vw, 1.5rem); line-height: 1.55; color: #E2ECF6; }
.hero__or { margin-top: clamp(1.5rem, 1.8vw, 2rem); font-size: clamp(.9375rem, 1vw, 1.1875rem); color: var(--on-dark); }
.hero__or .link-call { font-size: inherit; color: var(--white); }

/* hero form: one row, the button sits on the baseline of the fields */
.reach--hero { margin-top: clamp(2.25rem, 3vw, 3.5rem); max-width: 50rem; }
.reach--hero .reach__h { color: #E2ECF6; font-size: clamp(1.0625rem, 1.1vw, 1.375rem); }
.reach--hero .field__label { font-size: clamp(.8125rem, .85vw, 1rem); }
.reach--hero .field__input { font-size: clamp(1.0625rem, 1.2vw, 1.5rem); padding-bottom: clamp(.625rem, .8vw, 1rem); }
.reach--hero .reach__send { font-size: clamp(1rem, 1.05vw, 1.3125rem); }
.reach--hero .reach__row { margin-top: 1.25rem; }
@media (min-width: 701px) {
  .reach--hero .reach__row--inline { grid-template-columns: 1fr 1fr auto; gap: clamp(1.25rem, 1.6vw, 2rem); align-items: end; }
  .reach--hero .reach__row--inline .reach__send { margin-top: 0; padding: clamp(.75rem, .9vw, 1.1rem) clamp(1.5rem, 1.8vw, 2.25rem); white-space: nowrap; }
}

@media (max-width: 700px) {
  /* Phone: the photo is a band across the top (the same landscape frame, held
     to its right half so all three people stay in view); the copy and form sit
     on navy below it, the band fading into the panel. */
  .hero { align-items: end; }
  .hero__pic { inset: 0 0 auto 0; height: 52svh; }
  .hero__pic img { object-position: 100% 50%; }
  .hero__pic::after {
    background: linear-gradient(to top,
      var(--navy-deep) 0%, rgba(11,23,40,.7) 28%, rgba(11,23,40,.15) 60%, rgba(11,23,40,.35) 100%);
  }
  .hero__copy { padding-top: calc(var(--bar-h) + 36svh); padding-bottom: 2.5rem; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero__sub { font-size: 1.125rem; margin-top: 1.25rem; }
  .reach--hero { margin-top: 1.75rem; }
  .reach--hero .reach__row--inline { grid-template-columns: 1fr; gap: 1.125rem; }
  .reach--hero .reach__row--inline .reach__send { margin-top: .25rem; width: 100%; }
  .hero__or { font-size: 1rem; }
}

/* ---------- what happens next ----------
   Headline left, lede right, on the same spine as the cards. */
.next__head {
  max-width: calc(var(--spread) + 2 * var(--pad));
  margin-inline: auto;
  padding: clamp(4.5rem, 11vh, 7.5rem) var(--pad) clamp(2.5rem, 6vh, 4rem);
}
.next__head h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); text-wrap: balance; }
.next__head h2 em { color: var(--azure); }
.next__lede { color: var(--slate); font-size: 1.0625rem; max-width: var(--measure); text-wrap: pretty; }

@media (min-width: 861px) {
  .next__head {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 0 clamp(3rem, 6vw, 5.5rem);
    align-items: end;
  }
}
@media (max-width: 860px) {
  .next__lede { margin-top: 1.5rem; }
}
@media (max-width: 700px) {
  .next__head { padding-top: clamp(3.5rem, 9vh, 5rem); }
  .next__lede { font-size: 1.125rem; }
}

/* ---------- cards ----------
   Three plain cards on the spine: photo, marker, title, two short passages.
   No pinning, no scroll animation. */
.cards {
  list-style: none; margin: 0 auto; padding: 0 var(--pad) clamp(4rem, 10vh, 6.5rem);
  max-width: calc(var(--spread) + 2 * var(--pad));
  display: grid; gap: clamp(1.25rem, 2.5vw, 2rem);
}
@media (min-width: 861px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 561px) and (max-width: 860px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card { background: var(--white); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.card__marker { font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--azure); margin-bottom: .5rem; }
.card__title { font-size: clamp(1.5rem, 2vw, 1.75rem); }
.card__you { margin-top: 1rem; font-family: var(--serif); font-size: 1.125rem; line-height: 1.4; color: var(--ink); }
.card__us { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid rgba(43, 108, 176, .2); color: var(--slate); font-size: .9375rem; line-height: 1.6; }
.card__us-label { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--azure); font-weight: 500; margin-bottom: .4rem; }
.card__us > .card__us-label + p { margin-top: 0; }

@media (max-width: 700px) {
  .card__body { padding: 1.375rem 1.25rem 1.5rem; }
  .card__you { font-size: 1.25rem; }
  .card__us { font-size: 1.0625rem; }
}

/* ---------- closing ----------
   One held photograph, one panel. The panel is the whole pitch: cost, the
   call, the form, the founder. No scroll choreography; it just sits there. */
.closing { background: var(--navy-deep); color: var(--white); padding: var(--frame); }
.closing__media { border-radius: 4px; overflow: hidden; background: var(--navy); }
.closing__media img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 701px) {
  .closing {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem); align-items: start;
  }
  .closing__media {
    position: sticky; top: calc(var(--bar-h) + var(--frame));
    height: calc(100svh - var(--bar-h) - var(--frame) * 2);
  }
  .closing__panel { padding-block: clamp(4rem, 10vh, 7rem); }
}
@media (max-width: 700px) {
  .closing__media { height: 46svh; margin-bottom: clamp(2.5rem, 7vh, 4rem); }
  .closing__panel { padding: 0 calc(var(--pad) - var(--frame)) clamp(2.5rem, 7vh, 4rem); }
}

.closing__panel { max-width: 34rem; margin-inline: auto; }
.closing__panel h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.closing__sub { margin-top: 1.5rem; font-size: 1.0625rem; line-height: 1.65; color: var(--on-dark); text-wrap: pretty; }
.closing__list { list-style: none; margin: 1.75rem 0 2.25rem; padding: 0; display: grid; gap: .5rem; color: var(--on-dark); }
.closing__list li { padding-left: 1.25rem; position: relative; }
.closing__list li::before { content: ""; position: absolute; left: 0; top: .75em; width: .5rem; height: 1px; background: var(--cornflower); }

.quote { margin: 3.5rem 0 0; padding-top: 2.5rem; border-top: 1px solid rgba(143, 193, 234, .25); }
.quote blockquote {
  margin: 0; padding-left: 1.25rem; border-left: 2px solid var(--cornflower);
  font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.4;
}
.quote figcaption { margin-top: 1.25rem; padding-left: 1.375rem; color: var(--cornflower); font-size: .9375rem; letter-spacing: .02em; }
.quote figcaption strong { color: var(--white); font-weight: 500; }

/* ---------- reach form ----------
   Fields are ruled lines, not boxes: the page's affordance is the underline. */
.reach { margin-top: 2.75rem; }
.reach__h {
  font-family: var(--sans); font-weight: 400; font-size: 1.0625rem;
  letter-spacing: 0; line-height: 1.5; color: var(--on-dark);
}
.reach__row { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
@media (min-width: 32rem) { .reach__row { grid-template-columns: 1fr 1fr; } }

.field__label {
  display: block; font-size: .8125rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cornflower);
  margin-bottom: .5rem;
}
.field__input {
  width: 100%; display: block;
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.4; color: var(--white);
  background: transparent; border: 0; border-bottom: 1px solid rgba(143, 193, 234, .5);
  border-radius: 0; padding: .5rem 0 .625rem;
  transition: border-color .15s;
}
.field__input:hover, .field__input:focus { border-bottom-color: var(--cornflower); }
.field__input[aria-invalid="true"] { border-bottom-color: #F3A0A0; border-bottom-width: 2px; }
.field__error { margin-top: .5rem; font-size: .875rem; color: #F3A0A0; }

.reach__send {
  margin-top: 2rem; display: inline-block; cursor: pointer;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--white);
  background: var(--azure); border: 1px solid var(--azure); border-radius: 2px;
  padding: .875rem 1.75rem;
  transition: background-color .15s, border-color .15s;
}
.reach__send:hover { background: #245D99; border-color: #245D99; }

.reach__note { margin-top: 1.5rem; font-size: .875rem; line-height: 1.55; color: var(--on-dark); }
.reach__status:not(:empty) {
  margin-top: 1.25rem; font-size: .9375rem; line-height: 1.55; color: var(--white);
  border-left: 2px solid var(--cornflower); padding-left: .875rem;
}

/* ---------- footer ---------- */
.foot { padding: 2.5rem var(--pad) 3rem; color: var(--slate); font-size: .9375rem; }
.foot p + p { margin-top: .5rem; }
.foot strong { color: var(--ink); font-weight: 500; }
.foot .foot__small { font-size: .8125rem; max-width: var(--measure); margin-top: 1.25rem; }

