/* ProAI Expert — Homepage Technology Transition R2
   Scope: Technology only. Conductive Seam / Material Relay with structural assembly.
   No ownership of Two Worlds or Work / Proof internals. */

.home-tech-r2,
.home-tech-r2 * { box-sizing: border-box; }

.home-tech-r2 {
  --tech-r2-pearl: #f2f0eb;
  --tech-r2-silver: #c9cdd1;
  --tech-r2-graphite: #242a31;
  --tech-r2-obsidian: #020304;
  --tech-r2-violet: #9189ad;
  --tech-r2-cold: #8ca0ad;
  --tech-r2-ease: cubic-bezier(.22,1,.36,1);
  position: relative;
  z-index: 4;
  width: 100%;
  min-height: clamp(286px, 34svh, 372px);
  overflow: clip;
  color: var(--tech-r2-pearl);
  background:
    radial-gradient(ellipse at 72% -28%, rgba(145,137,173,.065), transparent 38%),
    radial-gradient(ellipse at 38% 112%, rgba(140,160,173,.045), transparent 36%),
    linear-gradient(180deg, #020304 0%, #050607 54%, #07090b 100%);
  border-top: 1px solid rgba(242,240,235,.045);
  border-bottom: 1px solid rgba(242,240,235,.065);
  isolation: isolate;
}

.home-tech-r2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.011) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.008) 1px, transparent 1px);
  background-size: 8.333vw 100%, 100% 72px;
  opacity: .34;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 92%, transparent 100%);
}

.home-tech-r2__material {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .72;
  background:
    linear-gradient(112deg, transparent 0 39%, rgba(255,255,255,.018) 47%, rgba(145,137,173,.025) 51%, transparent 59%),
    linear-gradient(180deg, rgba(255,255,255,.008), transparent 44%);
  transform: translate3d(-5%,0,0);
}

.home-tech-r2.is-assembling .home-tech-r2__material {
  animation: home-tech-r2-material-pass 1050ms var(--tech-r2-ease) both;
}

.home-tech-r2__shell {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(calc(100% - 80px), 1600px);
  min-height: inherit;
  margin-inline: auto;
  grid-template-columns: minmax(250px,.29fr) minmax(0,.71fr);
  align-items: center;
  gap: clamp(44px,5.4vw,94px);
  padding: clamp(42px,5.2svh,62px) 0 clamp(48px,5.8svh,70px);
}

.home-tech-r2__heading {
  min-width: 0;
  align-self: center;
}

.home-tech-r2__eyebrow {
  margin: 0;
  color: rgba(201,205,209,.57);
  font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .19em;
  line-height: 1.45;
  text-transform: uppercase;
}

.home-tech-r2__heading h2 {
  max-width: 19ch;
  margin: 11px 0 0;
  color: rgba(242,240,235,.91);
  font-size: clamp(22px,1.86vw,31px);
  font-weight: 560;
  letter-spacing: -.034em;
  line-height: 1.02;
  text-wrap: balance;
}

.home-tech-r2__register {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  align-items: stretch;
  gap: clamp(18px,2vw,32px) clamp(24px,2.7vw,48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-tech-r2__identity {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 9px 0 11px;
  color: rgba(242,240,235,.74);
  opacity: .13;
  transform: translate3d(0,7px,0);
  clip-path: inset(0 100% 0 0);
  will-change: transform, opacity, clip-path;
}

.home-tech-r2__identity::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,205,209,.09), rgba(201,205,209,.035) 64%, transparent);
  transform: scaleX(.2);
  transform-origin: left center;
  opacity: .22;
}

.home-tech-r2__identity::after {
  content: "";
  position: absolute;
  inset: 4px -6px 5px -6px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(102deg, transparent 22%, rgba(242,240,235,.028) 46%, rgba(145,137,173,.04) 51%, transparent 72%);
  opacity: 0;
  transform: translate3d(-28%,0,0);
}

.home-tech-r2.is-assembling .home-tech-r2__identity,
.home-tech-r2.is-settled .home-tech-r2__identity {
  animation: home-tech-r2-identity-in 620ms var(--tech-r2-ease) both;
  animation-delay: calc(155ms + (var(--tech-phase) * 112ms));
}

.home-tech-r2.is-assembling .home-tech-r2__identity::before,
.home-tech-r2.is-settled .home-tech-r2__identity::before {
  animation: home-tech-r2-rule-in 520ms var(--tech-r2-ease) both;
  animation-delay: calc(250ms + (var(--tech-phase) * 112ms));
}

.home-tech-r2.is-assembling .home-tech-r2__identity::after {
  animation: home-tech-r2-local-sheen 560ms var(--tech-r2-ease) both;
  animation-delay: calc(245ms + (var(--tech-phase) * 112ms));
}

.home-tech-r2__mark {
  position: relative;
  display: grid;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  place-items: center;
}

.home-tech-r2__mark img {
  display: block;
  width: auto;
  height: auto;
  max-width: 28px;
  max-height: 28px;
  opacity: .74;
  filter: grayscale(1) saturate(0) brightness(1.12) contrast(.96);
  transition: opacity 220ms ease, filter 220ms ease, transform 260ms var(--tech-r2-ease);
  user-select: none;
  -webkit-user-drag: none;
}

.home-tech-r2 [data-brand="openai"] .home-tech-r2__mark img { width: 27px; }
.home-tech-r2 [data-brand="claude"] .home-tech-r2__mark img { width: 26px; }
.home-tech-r2 [data-brand="gemini"] .home-tech-r2__mark img { width: 27px; }
.home-tech-r2 [data-brand="n8n"] .home-tech-r2__mark img { width: 29px; }
.home-tech-r2 [data-brand="make"] .home-tech-r2__mark img { width: 29px; }
.home-tech-r2 [data-brand="twilio"] .home-tech-r2__mark img { width: 27px; }
.home-tech-r2 [data-brand="vercel"] .home-tech-r2__mark img { width: 27px; }
.home-tech-r2 [data-brand="gmail"] .home-tech-r2__mark img { width: 28px; }
.home-tech-r2 [data-brand="zapier"] .home-tech-r2__mark img { width: 27px; }
.home-tech-r2 [data-brand="github"] .home-tech-r2__mark img { width: 27px; }

.home-tech-r2__name {
  min-width: 0;
  overflow: hidden;
  color: rgba(242,240,235,.67);
  font-size: clamp(11px,.83vw,13px);
  font-weight: 590;
  letter-spacing: -.012em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 220ms ease, transform 260ms var(--tech-r2-ease);
}

.home-tech-r2__relay {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.home-tech-r2__relay--desktop {
  top: 0;
  right: max(20px,calc((100% - min(calc(100% - 80px),1600px))/2));
  width: min(73vw,1160px);
  height: 100%;
  opacity: .72;
}

.home-tech-r2__relay--mobile { display: none; }

.home-tech-r2__relay-base,
.home-tech-r2__relay-active,
.home-tech-r2__relay-branches path {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-tech-r2__relay-base {
  stroke: rgba(201,205,209,.105);
  stroke-width: 1;
}

.home-tech-r2__relay-active {
  stroke: rgba(201,205,209,.82);
  stroke-width: 1.15;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}

.home-tech-r2.is-assembling .home-tech-r2__relay-active {
  animation: home-tech-r2-relay 980ms var(--tech-r2-ease) 40ms both;
}

.home-tech-r2.is-settled .home-tech-r2__relay-active {
  stroke-dashoffset: 0;
  opacity: .22;
}

.home-tech-r2__handoff {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 38%;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.home-tech-r2__handoff span {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,205,209,.26) 26%, rgba(145,137,173,.18) 58%, rgba(201,205,209,.07));
  transform: translateX(-100%);
}

.home-tech-r2.is-assembling .home-tech-r2__handoff span,
.home-tech-r2.is-settled .home-tech-r2__handoff span {
  animation: home-tech-r2-handoff 520ms var(--tech-r2-ease) 900ms both;
}

@media (hover:hover) and (pointer:fine) {
  .home-tech-r2__identity {
    transition: color 220ms ease, transform 260ms var(--tech-r2-ease);
  }
  .home-tech-r2__identity:hover {
    color: var(--tech-r2-pearl);
    transform: translate3d(1px,-1px,0);
  }
  .home-tech-r2__identity:hover::before {
    opacity: .78;
    background: linear-gradient(90deg, rgba(201,205,209,.34), rgba(145,137,173,.15) 56%, transparent);
  }
  .home-tech-r2__identity:hover .home-tech-r2__mark img {
    opacity: .96;
    filter: grayscale(1) saturate(0) brightness(1.28) contrast(1);
    transform: translate3d(1px,0,0);
  }
  .home-tech-r2__identity:hover .home-tech-r2__name { color: rgba(255,255,255,.92); transform: translate3d(1px,0,0); }
}

@media (max-width:1100px) and (min-width:701px) {
  .home-tech-r2 { min-height: clamp(300px,31svh,356px); }
  .home-tech-r2__shell {
    width: calc(100% - 56px);
    grid-template-columns: minmax(220px,.31fr) minmax(0,.69fr);
    gap: 36px;
  }
  .home-tech-r2__register { gap: 17px 23px; }
  .home-tech-r2__identity { gap: 9px; }
  .home-tech-r2__name { font-size: 11px; }
}

@media (max-width:700px) {
  .home-tech-r2 {
    min-height: 0;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(145,137,173,.045), transparent 34%),
      linear-gradient(180deg,#020304 0%,#050607 58%,#07090b 100%);
  }
  .home-tech-r2::before {
    background-size: 64px 100%,100% 68px;
    opacity: .24;
    -webkit-mask-image: linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent);
    mask-image: linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent);
  }
  .home-tech-r2__material { opacity: .48; }
  .home-tech-r2__shell {
    display: block;
    width: min(calc(100% - 32px),720px);
    min-height: 0;
    padding: 38px 0 36px;
  }
  .home-tech-r2__heading {
    position: relative;
    z-index: 3;
    max-width: 92%;
  }
  .home-tech-r2__eyebrow { font-size: 8.5px; letter-spacing: .17em; }
  .home-tech-r2__heading h2 {
    max-width: 17ch;
    margin-top: 9px;
    font-size: clamp(23px,6.7vw,29px);
    line-height: 1.01;
  }
  .home-tech-r2__register {
    z-index: 3;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0 34px;
    margin-top: 28px;
  }
  .home-tech-r2__identity {
    min-height: 54px;
    gap: 10px;
    padding: 8px 0 9px;
  }
  .home-tech-r2__identity:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
  }
  .home-tech-r2__identity::before {
    opacity: .18;
    background: linear-gradient(90deg,transparent,rgba(201,205,209,.08));
  }
  .home-tech-r2__identity:nth-child(even)::before {
    background: linear-gradient(90deg,rgba(201,205,209,.08),transparent);
  }
  .home-tech-r2__mark { flex-basis: 29px; width: 29px; height: 29px; }
  .home-tech-r2__mark img { max-width: 26px; max-height: 26px; }
  .home-tech-r2__name { font-size: 11.5px; }
  .home-tech-r2__relay--desktop { display: none; }
  .home-tech-r2__relay--mobile {
    display: block;
    top: 0;
    left: 50%;
    width: min(calc(100% - 24px),430px);
    height: 100%;
    transform: translateX(-50%);
    opacity: .54;
  }
  .home-tech-r2__relay-branches {
    stroke: rgba(201,205,209,.065);
    stroke-width: 1;
  }
  .home-tech-r2__relay--mobile .home-tech-r2__relay-active {
    stroke: rgba(169,167,184,.58);
  }
  .home-tech-r2__handoff { width: 50%; }

  .home-tech-r2.is-assembling .home-tech-r2__identity:nth-child(1),
  .home-tech-r2.is-assembling .home-tech-r2__identity:nth-child(2),
  .home-tech-r2.is-settled .home-tech-r2__identity:nth-child(1),
  .home-tech-r2.is-settled .home-tech-r2__identity:nth-child(2) { animation-delay: 190ms; }
  .home-tech-r2.is-assembling .home-tech-r2__identity:nth-child(3),
  .home-tech-r2.is-assembling .home-tech-r2__identity:nth-child(4),
  .home-tech-r2.is-settled .home-tech-r2__identity:nth-child(3),
  .home-tech-r2.is-settled .home-tech-r2__identity:nth-child(4) { animation-delay: 300ms; }
  .home-tech-r2.is-assembling .home-tech-r2__identity:nth-child(5),
  .home-tech-r2.is-assembling .home-tech-r2__identity:nth-child(6),
  .home-tech-r2.is-settled .home-tech-r2__identity:nth-child(5),
  .home-tech-r2.is-settled .home-tech-r2__identity:nth-child(6) { animation-delay: 410ms; }
  .home-tech-r2.is-assembling .home-tech-r2__identity:nth-child(7),
  .home-tech-r2.is-assembling .home-tech-r2__identity:nth-child(8),
  .home-tech-r2.is-settled .home-tech-r2__identity:nth-child(7),
  .home-tech-r2.is-settled .home-tech-r2__identity:nth-child(8) { animation-delay: 520ms; }
  .home-tech-r2.is-assembling .home-tech-r2__identity:nth-child(9),
  .home-tech-r2.is-assembling .home-tech-r2__identity:nth-child(10),
  .home-tech-r2.is-settled .home-tech-r2__identity:nth-child(9),
  .home-tech-r2.is-settled .home-tech-r2__identity:nth-child(10) { animation-delay: 630ms; }
}

@media (max-width:390px) {
  .home-tech-r2__shell { width: calc(100% - 28px); }
  .home-tech-r2__register { gap: 0 26px; }
  .home-tech-r2__identity { min-height: 52px; }
  .home-tech-r2__name { font-size: 11px; }
}

@media (hover:none), (pointer:coarse) {
  .home-tech-r2__identity,
  .home-tech-r2__mark img,
  .home-tech-r2__name { transition: none; }
}

@media (prefers-reduced-motion:reduce) {
  .home-tech-r2__material,
  .home-tech-r2__identity,
  .home-tech-r2__identity::before,
  .home-tech-r2__identity::after,
  .home-tech-r2__relay-active,
  .home-tech-r2__handoff span {
    animation: none !important;
    transition: none !important;
  }
  .home-tech-r2__material { transform: none; }
  .home-tech-r2__identity {
    opacity: 1;
    transform: none;
    clip-path: none;
    will-change: auto;
  }
  .home-tech-r2__identity::before { transform: scaleX(1); opacity: .36; }
  .home-tech-r2__identity::after { display: none; }
  .home-tech-r2__relay-active { stroke-dashoffset: 0; opacity: .18; }
  .home-tech-r2__handoff span { transform: none; }
}

@media (forced-colors:active) {
  .home-tech-r2 { border-color: CanvasText; }
  .home-tech-r2__relay,
  .home-tech-r2__material { display: none; }
  .home-tech-r2__identity { opacity: 1; clip-path: none; transform: none; }
  .home-tech-r2__identity::before { background: CanvasText; opacity: .5; }
}

@keyframes home-tech-r2-relay {
  0% { stroke-dashoffset: 1; opacity: 0; }
  10% { opacity: .34; }
  58% { opacity: .88; }
  100% { stroke-dashoffset: 0; opacity: .22; }
}

@keyframes home-tech-r2-identity-in {
  0% { opacity: .13; transform: translate3d(0,7px,0); clip-path: inset(0 100% 0 0); }
  38% { opacity: .44; }
  100% { opacity: 1; transform: none; clip-path: inset(0); }
}

@keyframes home-tech-r2-rule-in {
  from { transform: scaleX(.2); opacity: .12; }
  to { transform: scaleX(1); opacity: .44; }
}

@keyframes home-tech-r2-local-sheen {
  0% { opacity: 0; transform: translate3d(-28%,0,0); }
  38% { opacity: .76; }
  100% { opacity: 0; transform: translate3d(34%,0,0); }
}

@keyframes home-tech-r2-material-pass {
  0% { opacity: .34; transform: translate3d(-9%,0,0); }
  48% { opacity: .9; }
  100% { opacity: .72; transform: translate3d(5%,0,0); }
}

@keyframes home-tech-r2-handoff {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* Technology relay signal R1 — targeted micro-polish only.
   Extends the existing R2 state architecture; no layout or content ownership. */
.home-tech-r2__relay-signal {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke: rgba(231,231,227,.9);
  stroke-width: 1.55;
  stroke-dasharray: .068 .932;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, stroke 220ms ease;
}

.home-tech-r2.is-assembling .home-tech-r2__relay-signal {
  animation: home-tech-r2-signal-pass 1320ms cubic-bezier(.32,.02,.2,1) 90ms both;
}

.home-tech-r2.is-assembling .home-tech-r2__handoff span,
.home-tech-r2.is-settled .home-tech-r2__handoff span {
  animation-delay: 1180ms;
}

@media (hover:hover) and (pointer:fine) {
  .home-tech-r2.is-settled.is-local-active .home-tech-r2__relay--desktop .home-tech-r2__relay-active {
    opacity: .29;
    transition: opacity 220ms ease;
  }

  .home-tech-r2.is-settled.is-local-active .home-tech-r2__relay--desktop .home-tech-r2__relay-signal {
    stroke: rgba(177,173,194,.9);
    stroke-dashoffset: var(--tech-r2-local-offset, -.44);
    animation: home-tech-r2-local-relay-catch 380ms var(--tech-r2-ease) both;
  }
}

@media (max-width:700px) {
  .home-tech-r2__relay--mobile .home-tech-r2__relay-signal {
    stroke: rgba(220,220,217,.76);
    stroke-width: 1.25;
    stroke-dasharray: .052 .948;
  }

  .home-tech-r2.is-assembling .home-tech-r2__relay--mobile .home-tech-r2__relay-signal {
    animation: home-tech-r2-signal-pass-mobile 1160ms cubic-bezier(.32,.02,.2,1) 80ms both;
  }
}

@media (hover:none), (pointer:coarse) {
  .home-tech-r2__relay-signal { transition: none; }
}

@media (prefers-reduced-motion:reduce) {
  .home-tech-r2__relay-signal {
    animation: none !important;
    transition: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 0 !important;
  }

  .home-tech-r2.is-local-active .home-tech-r2__relay-active { opacity: .18; }
}

@keyframes home-tech-r2-signal-pass {
  0% { stroke-dashoffset: .02; opacity: 0; }
  8% { opacity: .2; }
  19% { opacity: .76; }
  76% { opacity: .8; }
  92% { opacity: .3; }
  100% { stroke-dashoffset: -1; opacity: 0; }
}

@keyframes home-tech-r2-signal-pass-mobile {
  0% { stroke-dashoffset: .02; opacity: 0; }
  10% { opacity: .16; }
  22% { opacity: .56; }
  76% { opacity: .6; }
  92% { opacity: .22; }
  100% { stroke-dashoffset: -1; opacity: 0; }
}

@keyframes home-tech-r2-local-relay-catch {
  0% { opacity: 0; }
  48% { opacity: .62; }
  100% { opacity: .3; }
}
