/* ═══════════════════════════════════════════════════════════════
   ROUND TWO, SHARED STRUCTURE (2026-10-06)

   Blake: white site, black hero at the top, black footer at the bottom,
   crystal clear, premium, professional motion, well structured cards.
   This sheet holds only what the three iterations share: the menu that
   sits transparent over the black hero and turns into a white bar over
   the white page, the phone menu, the footer frame, and the one reveal.
   Every visual choice is a variable each iteration sets.
═══════════════════════════════════════════════════════════════ */

.r2 {
  --page: #FFFFFF;
  --ink: #0B0C0E;
  --text: #16181B;
  --text-2: #4A4F55;
  --text-3: #6E747B;
  --line: #E4E5E7;
  --accent: #2DD4BF;
  --accent-ink: #0E7C70;     /* teal for text on white: 5.1:1 */
  --bar-h: 72px;
  --wrap: 1280px;
  --gutter: 24px;
  background: var(--page);
  color: var(--text);
}
.r2 .r2-wrap { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ── Menu bar ── */
.r2 .mn { position: fixed; top: 0; left: 0; right: 0; z-index: 100; color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.38s cubic-bezier(0.2, 0.6, 0.2, 1); }
/* The bar slides away as the page scrolls down and returns on the first
   scroll up (base.js sets is-hidden, never while a menu is open). */
.r2 .mn.is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .r2 .mn { transition-duration: 0.3s, 0.3s, 0.3s, 0s; } }
.r2 .mn-bar { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: var(--bar-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.r2 .mn-logo { justify-self: start; position: relative; display: block; line-height: 0; }
.r2 .mn-logo img { height: 36px; width: auto; display: block; transition: opacity 0.3s ease; }
.r2 .mn-logo .mn-logo-on-light { position: absolute; left: 0; top: 0; opacity: 0; }
.r2 .mn-links { display: flex; align-items: center; gap: 2px; }
.r2 .mn-right { justify-self: end; display: flex; align-items: center; gap: 20px; }
.r2 .mn-top { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.94rem; font-weight: 500;
  color: inherit; opacity: 0.86; padding: 10px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease; }
.r2 .mn-top:hover, .r2 .mn-dd.is-open .mn-top { opacity: 1; }
.r2 .mn-top svg { width: 12px; height: 12px; transition: transform 0.2s ease; }
.r2 .mn-dd.is-open .mn-top svg { transform: rotate(180deg); }
.r2 .mn-quiet { font-size: 0.92rem; font-weight: 500; color: inherit; opacity: 0.8; white-space: nowrap; transition: opacity 0.2s ease; }
.r2 .mn-quiet:hover { opacity: 1; }
.r2 .mn-cta.btn { padding: 10px 20px; font-size: 0.9rem; white-space: nowrap; }
.r2 .mn-burger { display: none; }
/* Over the white page: a white bar, dark type, the dark logo. */
.r2 .mn.is-light, .r2 .mn.has-open.is-light { background: rgba(255,255,255,0.94); color: var(--text);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line); }
.r2 .mn.is-light .mn-logo-on-dark { opacity: 0; }
.r2 .mn.is-light .mn-logo-on-light { opacity: 1; }
/* Over the hero once moved: a solid black bar so the links stay readable. */
.r2 .mn.is-moved:not(.is-light) { background: rgba(11,12,14,0.92); }

/* Dropdown panels: white in every state, one shape per iteration. */
.r2 .mn-dd { position: relative; }
.r2 .mn-panel { position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 6px); opacity: 0; visibility: hidden;
  background: #FFFFFF; color: var(--text); border-radius: var(--panel-radius, 14px); padding: 10px;
  box-shadow: 0 24px 60px -24px rgba(11,12,14,0.35), 0 0 0 1px rgba(11,12,14,0.06);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 560px;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s; }
.r2 .mn-dd.is-open .mn-panel { transform: translate(-50%, 0); opacity: 1; visibility: visible;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s; }
.r2 .mn-item { display: block; padding: 14px 16px; border-radius: calc(var(--panel-radius, 14px) - 6px); }
.r2 .mn-item:hover, .r2 .mn-item:focus-visible { background: var(--panel-hover, #F4F5F6); outline: none; }
.r2 .mn-item b { display: block; font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.r2 .mn-item span { display: block; font-size: 0.86rem; line-height: 1.4; color: var(--text-3); }

/* Phone menu: white sheet. */
.r2 .mn-menu { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column;
  padding: 0 var(--gutter) 28px; overflow-y: auto; background: #FFFFFF; color: var(--text);
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0s linear 0.2s; }
.r2 .mn-menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.2s ease, visibility 0s; }
.r2 .mn-menu-head { height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.r2 .mn-menu-head img { height: 32px; width: auto; content: url('/iterations/brand/logo-black.svg'); }
.r2 .mn-menu-close { font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; padding: 10px 0; color: var(--text); }
.r2 .mn-menu-body { display: flex; flex-direction: column; margin-top: 12px; }
.r2 .mn-acc, .r2 .mn-menu-link { display: flex; justify-content: space-between; align-items: center; width: 100%;
  font: inherit; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; text-align: left; color: var(--text);
  background: none; border: 0; border-bottom: 1px solid var(--line); padding: 16px 0; cursor: pointer; }
.r2 .mn-acc::after { content: '+'; font-weight: 400; color: var(--text-3); }
.r2 .mn-acc[aria-expanded="true"]::after { content: '\2212'; }
.r2 .mn-menu-quiet { font-size: 1.05rem; font-weight: 500; color: var(--text-2); }
.r2 .mn-acc-panel { padding: 4px 0 12px; border-bottom: 1px solid var(--line); }
.r2 .mn-acc-panel a { display: block; padding: 10px 0; font-size: 1.02rem; color: var(--text-2); }
.r2 .mn-menu-cta.btn { margin-top: 28px; justify-content: center; }

@media (max-width: 1080px) {
  .r2 .mn-links, .r2 .mn-quiet { display: none; }
  .r2 .mn-bar { grid-template-columns: 1fr auto; }
  .r2 .mn-burger { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 600; font-size: 0.92rem;
    color: inherit; background: none; border: 0; cursor: pointer; padding: 10px 0; }
  .r2 .mn-burger i { display: block; width: 18px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
}
@media (max-width: 560px) {
  .r2 { --bar-h: 62px; --gutter: 18px; }
  .r2 .mn-bar { gap: 12px; }
  .r2 .mn-logo img { height: 30px; }
  .r2 .mn-cta.btn { padding: 9px 14px; font-size: 0.8rem; }
  .r2 .mn-burger span { display: none; }
}

/* ── Footer frame (black) ── */
.r2 .ft { background: var(--ink); color: rgba(255,255,255,0.68); }
.r2 .ft-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.r2 .ft-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.r2 .ft-brand img { height: 34px; width: auto; display: block; margin-bottom: 22px; }
.r2 .ft-brand p { margin: 0 0 12px; font-size: 0.95rem; line-height: 1.6; max-width: 320px; }
.r2 .ft-mission { color: #fff; font-weight: 600; }
.r2 .ft-contact a { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.r2 .ft-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.r2 .ft-h { margin: 0 0 14px; font-size: 0.92rem; font-weight: 600; color: #fff; }
.r2 .ft-cols a { display: block; padding: 6px 0; font-size: 0.95rem; color: rgba(255,255,255,0.66); transition: color 0.2s ease; }
.r2 .ft-cols a:hover { color: #fff; }
.r2 .ft-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.86rem; }
.r2 .ft-bottom p { margin: 0; }
.r2 .ft-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.r2 .ft-legal a { color: rgba(255,255,255,0.62); }
.r2 .ft-legal a:hover { color: #fff; }
@media (max-width: 960px) {
  .r2 .ft-top { grid-template-columns: 1fr; }
  .r2 .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
}

/* ── The one reveal: a settle and a sharpening, once (2026-10-07). Text
   rises 18px over 0.9s on a settle curve while a faint blur clears, and
   each --d step lands 90ms after the one before, so a heading arrives a
   beat before its paragraph. Photographs and cards settle without the
   blur: it would soften them and costs paint. ── */
.r2-reveal [data-reveal] { opacity: 0; transform: translateY(18px); filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 90ms); }
.r2-reveal [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.r2-reveal :is(img, figure, .a-tile, .a-svc, .a-door, .a-doors, .a-cand-card, .a-trig, .a-fig, .a-post, .pt-card-w, .pg-tile, .pg-step, .pg-steps, .pg-cell, .pg-row, .pg-figs, .a-founder-card, .a-seats)[data-reveal] { filter: none; }
@media (prefers-reduced-motion: reduce) {
  .r2-reveal [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ── Pages crossfade (2026-10-07). A cross-document view transition: the
   old page fades out as the new one fades in, and the bar keeps its place
   as a group of its own. A browser without it loads the page as before. ── */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.32s; animation-timing-function: cubic-bezier(0.2, 0.6, 0.2, 1); }
.r2 .mn { view-transition-name: mn; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Shared helpers */
.r2 .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.r2 :focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
