/* ──────────────────────────────────────────────────────────────
   USA Dream® — homepage version 2: "architectural site study"
   Layered on top of styles.css (tokens, buttons, reveals, preloader,
   menu, footer, marquee, slider and scroll type all come from there).
   ────────────────────────────────────────────────────────────── */
.v2 { --deep: 8, 26, 54; --bar-h: 64px; --bar-gap: 12px; }
.v2-h2, .v2-hero__title, .journey__title, .jpanel h3, .bento h3, .v2-cta__title, .v2-stats__num, .v2-founder__num span {
  font-family: "Inter", system-ui, sans-serif; font-variation-settings: "opsz" 32;
}

/* ── Floating header bar (white, so the logo keeps its true colours over photography) ── */
.v2 .site-header {
  top: var(--bar-gap); left: var(--bar-gap); right: var(--bar-gap); height: var(--bar-h);
  border-radius: 16px; background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 12px 40px -22px rgba(var(--deep), .55);
}
.v2 .site-header.is-scrolled { background: rgba(255, 255, 255, .96); box-shadow: 0 12px 40px -22px rgba(var(--deep), .45), 0 0 0 1px var(--line); }
.v2 .site-header.is-hidden { transform: translateY(calc(-100% - var(--bar-gap) - 4px)); }
.v2 .site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; padding: 0 10px 0 20px; }
@media (max-width: 1023px) { .v2 { --bar-h: 58px; --bar-gap: 8px; } .v2 .site-header__inner { padding: 0 6px 0 16px; } }

/* ── 01 Hero ──────────────────────────────────────────────── */
.v2-hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; color: var(--white); background: #0d2a4f; }
.v2-hero__media { position: absolute; inset: 0; }
.v2-hero__img, .v2-hero__img picture, .v2-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.v2-hero__img img { object-fit: cover; object-position: 50% 32%; }
.v2-hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(var(--deep), .6) 0%, rgba(var(--deep), .22) 28%, rgba(var(--deep), 0) 44%),
    linear-gradient(0deg, rgba(var(--deep), .5) 0%, rgba(var(--deep), 0) 24%);
}
.v2-hero__head { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); top: calc(var(--bar-gap) + var(--bar-h) + clamp(26px, 5vh, 56px)); }
.v2-hero__eyebrow { color: #d9ebfa; }
.v2-hero__title {
  margin-top: 16px; color: var(--white);
  font-size: clamp(2.6rem, 6.1vw, 7rem); line-height: .93; letter-spacing: -.052em; font-weight: 600;
  text-shadow: 0 2px 40px rgba(var(--deep), .35);
}
.v2-line { display: block; }
.v2-hero__title em { font-style: normal; font-weight: 300; color: #b4dbfa; }

/* map pins (positioned by v2.js from photo coordinates) */
.pin { position: absolute; z-index: 2; width: 0; height: 0; left: -999px; }
.pin__dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(255, 255, 255, .95); }
.pin__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .9); animation: pinPulse 2.6s var(--ease) infinite; }
@keyframes pinPulse { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.pin__label {
  position: absolute; left: 16px; top: -14px; white-space: nowrap;
  padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--ink);
  font-size: .72rem; font-weight: 600; letter-spacing: -.005em; box-shadow: 0 8px 24px -12px rgba(var(--deep), .6);
}
.pin--main .pin__line { position: absolute; left: 0; top: -.5px; width: 150px; height: 1px; background: rgba(255, 255, 255, .9); }
.pin--main .pin__label { left: 150px; top: -26px; display: grid; padding: 8px 14px; border-radius: 12px; line-height: 1.3; }
.pin--main .pin__label strong { font-size: .86rem; font-weight: 700; }
.pin__sub { font-size: .7rem; font-weight: 500; color: var(--muted); }
@media (max-width: 767px) {
  /* on phones the label sits to the left of the parcel, over the neighbouring roof, so it never runs off-screen */
  .pin--main .pin__line { left: -74px; width: 74px; }
  .pin--main .pin__label { left: auto; right: 74px; top: -18px; padding: 6px 10px; }
  .pin--main .pin__label strong { font-size: .76rem; }
  .pin__sub { display: none; }
  .pin__label { font-size: .66rem; }
}

/* title block — like the information panel on an architectural drawing */
.titleblock {
  position: absolute; z-index: 3; left: var(--bar-gap); right: var(--bar-gap); bottom: var(--bar-gap);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  border-radius: 16px; overflow: hidden; color: var(--ink);
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px -26px rgba(var(--deep), .6);
}
.titleblock__dl { display: contents; }
.titleblock__dl > div { padding: 15px 20px 16px; border-right: 1px solid var(--line); min-width: 0; }
.titleblock dt { font-size: .58rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); }
.titleblock dd { margin-top: 4px; font-size: .9rem; font-weight: 600; letter-spacing: -.012em; line-height: 1.3; }
.titleblock__cta { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 28px; background: var(--royal); color: var(--white); font-weight: 700; font-size: .86rem; transition: background-color .35s var(--ease); }
.titleblock__cta:hover { background: var(--royal-deep); }
.titleblock__cta svg { transition: transform .45s var(--ease); }
.titleblock__cta:hover svg { transform: translateX(4px); }
@media (max-width: 1023px) {
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock__dl > div { padding: 11px 14px 12px; border-bottom: 1px solid var(--line); }
  .titleblock__dl > div:nth-child(2n) { border-right: 0; }
  .titleblock dd { font-size: .8rem; }
  .titleblock__cta { grid-column: 1 / -1; min-height: 50px; }
}
@media (max-width: 767px) {
  .titleblock__dl > div:nth-child(3) { display: none; }
  .titleblock__dl > div:nth-child(4) { grid-column: 1 / -1; border-right: 0; }
  .v2-hero__title { font-size: clamp(2.3rem, 10.6vw, 3.1rem); }
  .v2-hero__img img { object-position: 50% 50%; }
}

/* ── 02 Manifesto ─────────────────────────────────────────── */
.v2-manifesto { padding: clamp(72px, 8vw, 128px) 0 clamp(52px, 6vw, 92px); }
.v2-manifesto__text { margin-top: 22px; max-width: 24em; font-size: clamp(1.8rem, 3.7vw, 3.75rem); line-height: 1.1; letter-spacing: -.042em; }
.v2-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line-strong); }
.v2-stats > div { padding: 22px 24px 0 0; }
.v2-stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.v2-stats > div:last-child { border-left: 0; align-self: center; padding-top: 22px; }
.v2-stats__num { display: block; font-size: clamp(2.6rem, 4.4vw, 4.4rem); font-weight: 500; line-height: 1; letter-spacing: -.055em; color: var(--royal); font-variant-numeric: tabular-nums; }
.v2-stats__num small { font-size: .36em; margin-left: 6px; letter-spacing: -.01em; color: var(--ink); }
.v2-stats__lbl { display: block; margin-top: 10px; max-width: 17em; font-size: .86rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 1023px) {
  .v2-stats { grid-template-columns: 1fr 1fr; }
  .v2-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .v2-stats > div:last-child { grid-column: 1 / -1; padding: 28px 0 0; }
}
.v2 .marquee { padding-block: clamp(18px, 2.4vw, 36px); }

/* ── 03 Journey — stacked by default; horizontal pinned scroll on desktop (v2.js adds .journey--h) ── */
.journey { background: var(--coast); border-block: 1px solid var(--line); padding-block: clamp(64px, 7vw, 104px); }
.journey__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 14px 40px; margin-bottom: clamp(28px, 3.4vw, 48px); }
.journey__head .eyebrow { grid-column: 1 / -1; }
.journey__title { max-width: 17em; font-size: clamp(1.9rem, 3.3vw, 3.3rem); font-weight: 500; line-height: 1.04; letter-spacing: -.042em; color: var(--ink); }
.journey__title em { font-style: normal; font-weight: 300; color: var(--royal); }
.journey__progress { display: none; width: 200px; height: 2px; margin-bottom: 14px; background: var(--line-strong); }
.journey__progress span { display: block; height: 100%; background: var(--royal); transform-origin: left; transform: scaleX(0); }
.journey__track { display: grid; gap: clamp(16px, 2vw, 28px); padding-inline: var(--gutter); max-width: 1600px; margin-inline: auto; }
.jpanel { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(20px, 2.6vw, 44px); padding: clamp(12px, 1.3vw, 18px); border-radius: 24px; background: var(--white); border: 1px solid var(--line); }
.jpanel__media { aspect-ratio: 4 / 3.1; border-radius: 16px; }
.jpanel__media--diagram { display: flex; align-items: center; background: var(--coast); overflow: hidden; }
.jpanel__media--diagram svg { width: 100%; height: auto; }
.jpanel__copy { padding: 10px clamp(8px, 1.6vw, 24px) 10px 0; }
.jpanel__n { display: block; margin-bottom: 14px; font-size: clamp(3rem, 5vw, 5.2rem); font-weight: 300; line-height: .85; letter-spacing: -.06em; color: #b9d4ea; }
.jpanel h3 { margin: 8px 0 14px; font-size: clamp(1.5rem, 2.3vw, 2.3rem); font-weight: 500; line-height: 1.08; letter-spacing: -.038em; color: var(--ink); }
.jpanel p:not(.label):not(.caption) { font-size: .98rem; }
.jpanel .caption { margin-top: 16px; }
@media (max-width: 767px) {
  .jpanel { grid-template-columns: 1fr; }
  .jpanel__copy { padding: 4px 6px 10px; }
}
/* horizontal mode */
.journey--h { padding-block: 0; }
.journey--h .journey__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--bar-gap) + var(--bar-h) + 8px); overflow: hidden; }
.journey--h .journey__progress { display: block; }
.journey--h .journey__track { display: flex; width: max-content; max-width: none; margin: 0; will-change: transform; }
.journey--h .jpanel { width: min(74vw, 1120px); flex: none; }
.journey--h .jpanel__media { max-height: calc(100svh - 300px); width: 100%; }

/* ── 04 Project feature ───────────────────────────────────── */
.v2-project { padding-block: clamp(72px, 8vw, 128px); }
.v2-project__head { display: grid; grid-template-columns: 1.35fr 1fr; align-items: end; gap: 24px 72px; margin-bottom: clamp(28px, 3.4vw, 48px); }
.v2-h2 { margin-top: 16px; font-size: clamp(2.1rem, 4.4vw, 4.4rem); font-weight: 500; line-height: 1; letter-spacing: -.047em; color: var(--ink); }
.v2-h2 em { font-style: normal; font-weight: 300; color: var(--royal); }
.v2-project__logo { width: 190px; height: auto; margin-bottom: 16px; }
.v2-project__intro p { margin-bottom: 16px; max-width: 32em; }
.v2 .v2-project__ba { aspect-ratio: 16 / 8.4; max-height: 86svh; border-radius: 24px; }
.v2-project__hint { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: rgba(var(--deep), .55); color: var(--white); font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; pointer-events: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.v2-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; border-top: 1px solid var(--line-strong); }
.v2-facts > div { padding: 16px 20px 0 0; }
.v2-facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.v2-facts dt { font-size: .62rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); }
.v2-facts dd { margin-top: 6px; font-weight: 600; color: var(--ink); font-size: .95rem; letter-spacing: -.01em; }
@media (max-width: 1023px) {
  .v2-project__head { grid-template-columns: 1fr; }
  .v2-facts { grid-template-columns: 1fr 1fr; }
  .v2-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .v2-facts > div:nth-child(n + 3) { margin-top: 14px; }
}
@media (max-width: 767px) { .v2 .v2-project__ba { aspect-ratio: 4 / 4.6; border-radius: 18px; } }

/* ── 05 Vision bento ──────────────────────────────────────── */
.v2-vision { padding-block: clamp(72px, 8vw, 128px); background: linear-gradient(180deg, var(--sky) 0%, var(--coast) 100%); border-top: 1px solid var(--line); }
.v2-vision__head { margin-bottom: clamp(28px, 3.4vw, 48px); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(230px, 21vw, 320px); gap: clamp(12px, 1.3vw, 20px); }
.bento__cell { position: relative; overflow: hidden; border-radius: 22px; }
.bento__cell img { transition: transform 1.2s var(--ease); }
.bento__cell:hover img { transform: scale(1.04); }
.bento__cell figcaption { position: absolute; top: 14px; left: 14px; z-index: 1; }
.bento__cell--a { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento__cell--b { grid-column: 3; grid-row: 2; }
.bento__cell--text { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 2vw, 30px); background: var(--white); border: 1px solid var(--line); }
.bento__cell--blue { background: var(--royal); border-color: transparent; color: #dbe9f7; }
.bento__cell--blue h3 { color: var(--white); }
.bento__cell--blue .bento__n { color: #9fcaf0; }
.bento__n { font-size: .9rem; font-weight: 600; color: var(--azure); }
.bento h3 { font-size: clamp(1.35rem, 1.8vw, 1.75rem); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; color: var(--ink); }
.bento__cell--text p { margin-top: 10px; font-size: .92rem; line-height: 1.55; }
.v2-vision__note { margin-top: 16px; }
@media (max-width: 1023px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .bento__cell--a { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
  .bento__cell--b { grid-column: auto; grid-row: auto; min-height: 220px; }
  .bento__cell--text { min-height: 220px; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .bento__cell--text { min-height: 0; gap: 28px; }
}

/* ── 06 Founder ───────────────────────────────────────────── */
.v2-founder { padding-block: clamp(72px, 8vw, 128px); }
.v2-founder__grid { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: clamp(32px, 5vw, 96px); }
.v2-founder__photo { aspect-ratio: 4 / 4.6; border-radius: 24px; }
.v2-founder__photo img { object-position: 50% 30%; }
.v2-founder__num { display: flex; align-items: flex-end; gap: 16px; margin: 24px 0 22px; padding: 18px 0; border-block: 1px solid var(--line); }
.v2-founder__num span { font-size: clamp(4.4rem, 8.6vw, 8.4rem); font-weight: 500; line-height: .8; letter-spacing: -.065em; color: var(--royal); font-variant-numeric: tabular-nums; }
.v2-founder__num small { padding-bottom: 6px; font-size: .68rem; font-weight: 700; line-height: 1.6; letter-spacing: .17em; text-transform: uppercase; color: var(--ink); }
.v2-founder__copy > p { max-width: 34em; margin-bottom: 22px; font-size: 1.04rem; }
@media (max-width: 1023px) {
  .v2-founder__grid { grid-template-columns: 1fr; }
  .v2-founder__photo { max-width: 440px; }
}

/* ── 07 Closing CTA over dusk photography ─────────────────── */
.v2-cta { position: relative; display: flex; align-items: flex-end; min-height: min(92svh, 860px); overflow: hidden; isolation: isolate; color: var(--white); background: #0d2a4f; }
.v2-cta__media { position: absolute; inset: 0; z-index: -2; }
.v2-cta__media img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 40%; }
.v2-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(var(--deep), .9) 0%, rgba(var(--deep), .5) 48%, rgba(var(--deep), .2) 100%); }
.v2-cta__inner { padding-block: clamp(110px, 13vw, 190px) clamp(32px, 4vw, 56px); }
.v2-cta__eyebrow { color: #d9ebfa; }
.v2-cta__title { max-width: 11ch; margin-top: 18px; font-size: clamp(2.7rem, 7.2vw, 7.6rem); font-weight: 600; line-height: .94; letter-spacing: -.055em; color: var(--white); }
.v2-cta__title em { font-style: normal; font-weight: 300; color: #b4dbfa; }
.v2-cta__lede { max-width: 34em; margin-top: 24px; font-size: clamp(1rem, 1.2vw, 1.15rem); color: rgba(255, 255, 255, .88); }
.v2-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
.v2-cta__link { color: var(--white); }
.v2-cta__cap { margin-top: clamp(40px, 5vw, 72px); font-size: .74rem; color: rgba(255, 255, 255, .7); }
@media (max-width: 767px) { .v2-cta__actions .btn { flex: 1 1 100%; } }

/* ═════════ Inner pages in the v2 design ═════════ */
/* hero variants */
.v2-hero--project .v2-hero__title em { display: block; margin-top: .3em; font-size: .46em; font-weight: 400; letter-spacing: -.03em; }
.v2-hero__lede { max-width: 34em; margin-top: 20px; font-size: clamp(1rem, 1.15vw, 1.14rem); line-height: 1.6; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 18px rgba(var(--deep), .5); }
.v2-hero--about .v2-hero__img img { object-position: 50% 62%; }
.v2-hero--about .v2-hero__shade {
  background:
    linear-gradient(180deg, rgba(var(--deep), .7) 0%, rgba(var(--deep), .35) 34%, rgba(var(--deep), 0) 58%),
    linear-gradient(0deg, rgba(var(--deep), .5) 0%, rgba(var(--deep), 0) 24%);
}

/* rounded frames for photography, sliders and diagrams */
.v2 .frame, .v2 .diagram-figure { border-radius: 20px; }
.v2 .ba { border-radius: 24px; }
.v2 .split__media .frame, .v2 .founder__frame { border-radius: 22px; }
.v2 .design-note { border-radius: 16px; }

/* headings on the v2 scale */
.v2 .h1 { font-size: clamp(2.2rem, 4.4vw, 4.4rem); letter-spacing: -.047em; line-height: 1; }
.v2 .h2 { font-size: clamp(2rem, 3.6vw, 3.6rem); letter-spacing: -.045em; line-height: 1.02; }

/* the closing call to action becomes an inset rounded card */
.v2 .cta { margin: 0 var(--bar-gap) var(--bar-gap); border-radius: 28px; }

/* contact: photo panel beside the form card */
.v2 .contact { padding: calc(var(--bar-gap) * 2 + var(--bar-h)) var(--bar-gap) var(--bar-gap); background: var(--sky); }
.v2 .contact > .wrap { max-width: none; padding-inline: 0; column-gap: var(--bar-gap); align-items: stretch; }
.v2 .v2-contact__panel {
  position: relative; top: auto; isolation: isolate; overflow: hidden; border-radius: 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: calc(100svh - var(--bar-h) - var(--bar-gap) * 3); padding: clamp(28px, 3.6vw, 56px); color: var(--white);
}
.v2-contact__media { position: absolute; inset: 0; z-index: -2; }
.v2-contact__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.v2-contact__panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(var(--deep), .94) 0%, rgba(var(--deep), .62) 52%, rgba(var(--deep), .22) 100%); }
.v2 .v2-contact__panel .eyebrow { color: #d9ebfa; }
.v2 .v2-contact__panel .display { margin: 18px 0 20px; font-size: clamp(2.4rem, 4.4vw, 4.6rem); font-weight: 600; letter-spacing: -.05em; color: var(--white); }
.v2 .v2-contact__panel .display em { font-weight: 300; color: #b4dbfa; }
.v2 .v2-contact__panel .lede { color: rgba(255, 255, 255, .9); }
.v2 .v2-contact__panel .contact__notes { border-bottom-color: rgba(255, 255, 255, .22); }
.v2 .v2-contact__panel .contact__notes li { border-top-color: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .9); }
.v2 .contact .inquiry { grid-column: 6 / 13; display: flex; flex-direction: column; justify-content: center; border-radius: 24px; padding: clamp(28px, 3.6vw, 60px); box-shadow: none; }
@media (max-width: 1023px) {
  .v2 .v2-contact__panel { grid-column: 1 / -1; min-height: 0; padding-top: 180px; }
  .v2 .contact .inquiry { grid-column: 1 / -1; }
  .v2 .contact > .wrap { row-gap: var(--bar-gap); }
}
