/* RapidEdge — Marketing kit styles. Loads after colors_and_type.css. */

* { box-sizing: border-box; }
/* Cream paper with a faint engineering graph-paper grid. Two layers:
   a 20 px minor grid and a 100 px major grid, both in brass at very
   low opacity so the texture reads as “printed on graph paper,” not
   a designed background. Fixed attachment so the grid stays anchored
   while content scrolls — same way real paper sits under the work. */
html, body, .re-peek-inner {
  background-color: var(--paper);
  background-image:
    linear-gradient(to right,  color-mix(in oklab, var(--brass-deep) 16%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--brass-deep) 16%, transparent) 1px, transparent 1px),
    linear-gradient(to right,  color-mix(in oklab, var(--brass-deep) 8%, transparent)  1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--brass-deep) 8%, transparent)  1px, transparent 1px);
  background-size:
    100px 100px,
    100px 100px,
    20px 20px,
    20px 20px;
  background-position: 0 0;
  background-attachment: fixed;
}
body { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.re-app { min-height: 100vh; padding: 0 48px 96px; max-width: 1280px; margin: 0 auto; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Header / masthead */
.re-header { padding-top: 18px; }
.re-masthead { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.re-mark { font-family: var(--serif); font-size: 28px; color: var(--oxblood); letter-spacing: -0.01em; line-height: 1; text-decoration: none; white-space: nowrap; }
.re-mark-name { font-weight: 600; }
.re-mark-sol  { font-weight: 400; font-style: italic; margin-left: 0.18em; }
.re-mast-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.re-mast-tab { font-family: var(--sans); font-size: 13.5px; padding: 6px 12px; color: var(--ink-3); letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid transparent; transition: color 80ms, border-color 80ms; }
.re-mast-tab:hover { color: var(--oxblood); border-bottom-color: var(--oxblood); }
.re-mast-cta { margin-left: 10px; }

/* Hero */
.re-hero { padding: 28px 0 40px; border-bottom: var(--hair); text-align: center; }
.re-hero-eyebrow { font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--forest); }
.re-hero-title {
  font-family: var(--serif); font-variation-settings: "opsz" 60;
  font-weight: 500; font-size: 88px; line-height: 1.05; letter-spacing: -0.018em;
  margin: 0 0 28px; color: var(--ink);
}
.re-hero-l1, .re-hero-l2 { display: block; white-space: nowrap; overflow: visible; }
.re-hero-l1 { padding-bottom: 0; }
.re-hero-l2 { margin-top: 0.04em; padding-top: 0; }
.re-hero-title { text-align: center; }
.re-hero-title em { color: var(--oxblood); font-style: italic; font-weight: 500; }
.re-hero > .re-eyebrow { display: block; margin: 28px 0 18px; }
.re-hero-foot { display: grid; grid-template-columns: 5fr 3fr; gap: 48px; padding-top: 28px; margin-top: 28px; border-top: var(--hair); text-align: left; }
.re-hero-lede { font-family: var(--serif); font-size: 20px; line-height: 1.65; color: var(--ink); margin: 0; }
.re-hero-meta { display: flex; flex-direction: column; gap: 12px; margin: 0; font-family: var(--sans); font-size: 15.5px; color: var(--ink-2); }
.re-hero-meta-item { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid color-mix(in oklab, var(--brass) 60%, transparent); }
.re-hero-meta dt { align-self: center; }
.re-hero-meta dd { margin: 0; }
.re-hero-cta { display: flex; gap: 18px; justify-content: center; padding: 28px 0 4px; }
.re-hero-cta .re-btn, .re-hero-cta .re-btn-out, .re-hero-cta .re-btn-lg { flex: 1 1 0; max-width: 380px; }
.re-btn-lg { font-size: 17px !important; padding: 24px 32px !important; letter-spacing: 0.04em; text-align: center; justify-content: center; }
.re-btn-out { font-family: var(--sans); font-weight: 500; font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink); background: transparent; border: 1.5px solid var(--ink); padding: 11px 18px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; transition: background 80ms, color 80ms; }
.re-btn-out:hover { background: var(--ink); color: var(--paper-cream); }
.re-btn-out:active { box-shadow: inset 0 1px 0 rgba(0,0,0,0.35); }
.re-eyebrow { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--forest); }
.re-mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; color: var(--ink-2); }

/* Buttons + links */
.re-btn {
  font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: 0.005em;
  padding: 10px 18px; border: 0; cursor: pointer;
  background: var(--oxblood); color: var(--paper);
  border-radius: 0; text-decoration: none;
  transition: background 80ms;
  display: inline-flex; align-items: center; gap: 6px;
}
.re-btn:hover { background: var(--oxblood-deep); }
.re-btn:active { box-shadow: inset 0 1px 0 rgba(0,0,0,0.35); }
.re-btn:disabled { background: var(--ink-4); cursor: not-allowed; }
.re-btn-sm { padding: 7px 12px; font-size: 14px; }
.re-btn-block { width: 100%; justify-content: center; padding: 12px; }

.re-link { font-family: var(--sans); font-size: 14.5px; color: var(--oxblood); text-decoration: none; border-bottom: 1px solid color-mix(in oklab, var(--oxblood) 60%, transparent); transition: border-color 80ms; cursor: pointer; }
.re-link:hover { border-bottom-color: var(--brass); }

/* Why one shop — trilemma thesis */
.re-svc-hero { padding: 72px 0 64px; border-bottom: 1.5px solid var(--ink); }
.re-svc-h1 { font-family: var(--serif); font-variation-settings: "opsz" 60; font-weight: 600; font-size: 96px; line-height: 1.0; letter-spacing: -0.02em; color: var(--ink); margin: 14px 0 28px; }
.re-svc-h1 em { color: var(--oxblood); font-style: italic; font-weight: 500; }
.re-svc-thesis {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
  max-width: 1180px;
  padding-bottom: 36px;
  border-bottom: 1px solid color-mix(in oklab, var(--brass) 60%, transparent);
}
.re-svc-thesis > p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}
.re-svc-thesis em { color: var(--oxblood); font-style: italic; }

/* Trilemma figure — bare triangle, brass dashed, RE seal at centroid.
   The triangle inside the SVG is positioned so its centroid lies at
   the centre of the viewBox; equal padding above/below the stage then
   makes the figure's vertical centre identical to the centroid, so
   `align-items: center` on the parent grid lines it up with the
   paragraph's centre. */
.re-trilemma {
  margin: 0;
  padding: 40px 0 38px;
  display: flex; justify-content: center;
}
.re-trilemma-stage {
  position: relative;
  width: 100%;
  max-width: 380px;
}
.re-trilemma-svg {
  display: block;
  width: 100%; height: auto;
  overflow: visible;
}
.re-trilemma-edge {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.5;
  stroke-linejoin: miter;
  stroke-linecap: round;
  stroke-dasharray: 5 4;
  vector-effect: non-scaling-stroke;
}
.re-trilemma-mark {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
  fill: var(--oxblood);
  letter-spacing: -0.04em;
  /* dominant-baseline=central + small leftward shift on x compensate
     for the visual mass shift introduced by the italic slant. */
}
.re-trilemma-label {
  position: absolute;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  white-space: nowrap;
}
.re-trilemma-label-quality {
  /* Sits just above the apex (apex is at SVG top) */
  top: 0; left: 50%;
  transform: translate(-50%, calc(-100% - 10px));
}
.re-trilemma-label-cost {
  /* Sits on the line that's the triangle's left edge extended past the
     base. Left-edge ray: x = 50 - 0.5775*y. At viewBox y=70, x=9.57. */
  top: 87.5%;     /* 70 / 80 of viewBox height */
  left: 9.57%;    /* on the extended left ray */
  transform: translate(-50%, -50%);
}
.re-trilemma-label-speed {
  /* Mirror of cost: extended right ray, x = 50 + 0.5775*y. */
  top: 87.5%;
  left: 90.43%;
  transform: translate(-50%, -50%);
}


/* Services — section intro above the three disciplines */
.re-svc-list-head { padding: 72px 0 8px; max-width: 760px; }
.re-svc-list-head h2 { text-wrap: balance; font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; margin: 8px 0 14px; color: var(--ink); }
.re-svc-list-head p { font-family: var(--serif); font-size: 20px; line-height: 1.65; color: var(--ink-2); margin: 0; }

/* (2) Disciplines */
/* Each divider sits at the top of the section it introduces, so the peek
   (a copy of that top edge) lines up with the real section pixel for pixel. */
.re-disc { position: relative; display: flow-root; border-top: 1.5px solid var(--ink); }
.re-disc-sticky { position: sticky; top: 0; }
.re-disc-pad { padding: 56px 0 48px; }
.re-disc-spacer { height: calc((var(--steps, 4) - 1) * 30vh); }
/* Preview of the next section: pinned directly under the content and filling
   the rest of the viewport. The sticky box itself is zero height (so it takes
   no layout space and every browser unpins it exactly where the real next
   section begins); the visible copy hangs below it. It carries the page grid
   (fixed, so it lines up) to hide the real section scrolling up behind it. */
.re-peek {
  position: sticky; top: var(--content-h, 0px);
  height: 0;
  pointer-events: none;
}
.re-peek-inner {
  position: absolute; left: 0; right: 0; top: 0;
  height: max(0px, calc(100vh - var(--content-h, 100vh)));
  overflow: hidden;
}
.re-peek.is-hidden { display: none; }
.re-peek-disc { border-top: 1.5px solid var(--ink); }
.re-disc-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 28px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid color-mix(in oklab, var(--brass) 60%, transparent);
  margin-bottom: 36px;
}
.re-disc-bignum {
  grid-row: 1 / 3;
  font-family: var(--serif);
  font-variation-settings: "opsz" 60;
  font-weight: 500;
  font-size: 96px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--oxblood);
  font-style: italic;
}
.re-disc-eyebrow { align-self: end; padding-bottom: 6px; }
.re-disc-q {
  grid-column: 2;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
  max-width: 22ch;
}

/* Scroll-driven stepper. The section is taller than the viewport and its
   content is sticky; scroll position picks the active step. */
.re-steps { position: relative; padding-bottom: 28px; border-bottom: var(--hair); }
.re-steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 4), 1fr); position: relative; }
.re-steps-track {
  position: absolute;
  top: 42px;
  left: calc(100% / (var(--steps, 4) * 2));
  right: calc(100% / (var(--steps, 4) * 2));
  height: 1px;
  background: var(--brass);
}
.re-steps-fill { position: absolute; left: 0; top: -1px; height: 3px; background: var(--oxblood); transition: width 200ms cubic-bezier(0.2, 0, 0, 1); }
.re-step {
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 8px;
  background: none; border: 0;
  text-align: center;
  color: var(--ink-3);
}
.re-step:focus-visible { outline: 1.5px solid var(--oxblood); outline-offset: 4px; }
.re-step-n { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.16em; height: 18px; margin-bottom: 16px; }
.re-step-dot {
  position: relative; z-index: 1;
  display: block; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink-4);
  box-shadow: 0 0 0 5px var(--paper);
  transition: background 120ms, border-color 120ms;
}
.re-step-name { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.2; margin-top: 14px; max-width: 16ch; transition: color 120ms; }
.re-step:hover { color: var(--ink); }
.re-step:hover .re-step-dot { border-color: var(--oxblood); }
.re-step.is-past .re-step-dot { background: var(--oxblood); border-color: var(--oxblood); }
.re-step.is-past { color: var(--ink-2); }
.re-step.is-active { color: var(--ink); }
.re-step.is-active .re-step-n { color: var(--oxblood); }
.re-step.is-active .re-step-dot { background: var(--oxblood); border-color: var(--oxblood); box-shadow: 0 0 0 5px var(--paper), 0 0 0 6.5px var(--oxblood); }

/* All panels share one grid cell so the block keeps the height of the
   tallest panel and nothing below it jumps when the step changes. */
.re-step-panels { display: grid; padding-top: 32px; max-width: 760px; }
.re-step-panel {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 160ms cubic-bezier(0.2, 0, 0, 1), transform 160ms cubic-bezier(0.2, 0, 0, 1), visibility 0s linear 160ms;
}
.re-step-panel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.re-step-title { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0; }
.re-step-desc { font-family: var(--serif); font-size: 20px; line-height: 1.6; color: var(--ink); margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .re-step-panel, .re-steps-fill { transition: none; }
}
.re-svc-item-no { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; color: var(--oxblood); }

/* (4) How we work */
.re-how { padding: 64px 0; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.re-how-head { max-width: 800px; margin-bottom: 8px; }
.re-how-head h2 { font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1.1; margin: 8px 0 0; color: var(--ink); }
.re-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding-top: 24px; border-top: 1.5px solid var(--ink); margin-top: 24px; }
.re-how-grid > div { display: flex; flex-direction: column; gap: 10px; }
.re-how-grid p { font-family: var(--serif); font-size: 18px; line-height: 1.6; color: var(--ink); margin: 0; }

/* (6) Closing */
.re-close { padding: 64px 0 24px; }
.re-close-frame { background: var(--paper-aged); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: 44px 48px; display: flex; flex-direction: column; gap: 18px; }
.re-close-h { font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); margin: 8px 0 0; max-width: 22ch; }
.re-close-body { font-family: var(--serif); font-size: 19px; line-height: 1.65; color: var(--ink); margin: 0; max-width: 70ch; }
.re-close-cta { display: flex; gap: 24px; align-items: center; padding-top: 12px; flex-wrap: wrap; }
.re-close-cta code { font-family: var(--mono); font-size: 13px; color: var(--oxblood); }

/* Calendly inline embed — paper card with brass hairline. */
.re-calendly-wrap {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 12px;
}
.re-calendly {
  width: 100%;
  height: 720px;
  background: var(--paper);
  border: 1px solid var(--brass);
  box-shadow: var(--plate);
}
.re-calendly iframe { display: block; width: 100%; height: 100%; border: 0; }
.re-calendly-note {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
}

/* Contact — person card beside the Calendly embed */
.re-close-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 12px; }
.re-person { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.re-person-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-pulp); border: 1px solid var(--brass); box-shadow: var(--plate); filter: saturate(0.85); }
.re-person-name { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0; }
.re-person-role { font-family: var(--sans); font-size: 15px; color: var(--ink-2); margin: 4px 0 0; }
.re-person-list { border-top: 1.5px solid var(--ink); }
.re-person-row { display: grid; grid-template-columns: 24px 88px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid color-mix(in oklab, var(--brass) 60%, transparent); font-family: var(--sans); font-size: 16px; color: var(--ink); text-decoration: none; transition: color 80ms; }
a.re-person-row:hover { color: var(--oxblood); }
.re-person-row i { font-size: 20px; color: var(--oxblood); }
.re-person-label { font-weight: 500; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--forest); }
.re-person-value { overflow-wrap: anywhere; }
.re-person-value.is-sealed { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--ink-3); }

/* Footer */
.re-footer { margin-top: 64px; }
.re-footer-rule { border-top: 1.5px solid var(--ink); }
.re-footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 36px 0 24px; font-family: var(--sans); font-size: 15px; color: var(--ink-2); }
.re-footer-mark { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.re-footer-mark p { margin: 0; }
.re-footer-addr { font-family: var(--sans); font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.re-footer-coda { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid color-mix(in oklab, var(--brass) 60%, transparent); font-family: var(--sans); font-size: 13px; color: var(--ink-3); letter-spacing: 0.04em; }

/* Narrow screens */
@media (max-width: 1100px) {
  .re-hero-title { font-size: 64px; }
  .re-svc-h1 { font-size: 72px; }
}
@media (max-width: 820px) {
  .re-app { padding: 0 20px 64px; }
  .re-masthead { flex-wrap: wrap; }
  .re-mark { font-size: 24px; }
  .re-mast-nav { margin-left: 0; flex-wrap: wrap; }
  .re-mast-tab { padding: 6px 8px 6px 0; margin-right: 6px; }
  .re-mast-cta { margin-left: 0; }
  .re-hero { text-align: left; }
  .re-hero-title { font-size: 44px; text-align: left; }
  .re-hero-l1, .re-hero-l2 { white-space: normal; }
  .re-hero-cta { flex-direction: column; }
  .re-hero-cta .re-btn-lg, .re-hero-cta .re-btn-out { max-width: none; }
  .re-btn-lg { padding: 18px 24px !important; }
  .re-hero-foot,
  .re-svc-thesis,
  .re-how-grid,
  .re-close-grid,
  .re-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .re-svc-h1 { font-size: 52px; }
  .re-svc-list-head h2, .re-close-h { font-size: 34px; }
  .re-disc-bignum { font-size: 64px; }
  .re-disc-q { font-size: 28px; }
  .re-step { padding: 0 2px; }
  .re-step-name { font-size: 15px; }
  .re-step-n { font-size: 11px; letter-spacing: 0.1em; }
  .re-step-title { font-size: 24px; }
  .re-step-desc { font-size: 18px; }
  .re-disc-pad { padding: 32px 0; }
  .re-close-frame { padding: 28px 20px; }
  .re-person { margin-top: 0; max-width: 360px; }
  .re-calendly { height: 1000px; }
  .re-footer-coda { flex-direction: column; gap: 6px; }
}
