/* ============================================================
   OWNERSHIP — the fish and the rod, four positions in a row.

   Anatomy is the main site's Process Accordian, measured off
   selrai.com.au 2026-08-19: one card open at a time, open card flex 3
   against flex 1, 10px gap, radius 30, hover drives it, spring widen.

   Three deliberate departures, all Luke's call (2026-08-19):
     - FOUR cards, and the last two are ours: 01 the agency and 02 the
       software company open in the site's ink #242424, 03 the day and
       04 what you keep open in PURPLE #6736E2. Reading across, the row
       changes colour when it reaches the answer.
     - the name of each position is readable while the card is CLOSED,
       so all four can be taken in at once
     - no "Phase" word. The number carries the order, the name carries
       the meaning
   ============================================================ */

#ownership.selr-own {
  background: linear-gradient(180deg,
    #FAF9F5 0%, #F6F3EC 40%, #F6F3EC 62%, #FAF9F5 100%) !important;
  scroll-margin-top: 90px;
}
#ownership.selr-own .selr-sec-inner { gap: 50px; }

/* ---- head ---- */
.selr-own-head {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 18px; width: 100%;
}
.selr-own-head .selr-section-kicker { margin: 0; }
#ownership.selr-own .selr-own-head h2 { text-align: left; max-width: 900px; }
.selr-own-tone { color: #616161; }
.selr-own-sub {
  font-family: "Manrope Variable", Manrope, sans-serif;
  font-weight: 600; font-size: 20px; line-height: 27px; letter-spacing: -0.6px;
  color: #616161; max-width: 640px; margin: 0;
}

/* ---- the row ---- */
.selr-own-acc {
  display: flex; gap: 10px; width: 100%; height: 360px;
  align-items: stretch;
}

.selr-own-card {
  position: relative;
  /* explicit widths, not flex ratios: the copy inside carries a fixed width so
     it cannot re-wrap while the card moves, and a flex base would let that
     width push the row out of proportion. Four cards, 3 closed + 1 open = 100%. */
  flex: none;
  width: calc((100% - 30px) * 0.16667);
  min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left;
  padding: 34px;
  border: 1px solid rgba(227, 227, 227, 0.45);
  border-radius: 30px;
  background: #FFFFFA;
  color: #242424;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  -webkit-appearance: none; appearance: none;
  transition:
    width 550ms cubic-bezier(.22, 1, .36, 1),
    background-color 400ms cubic-bezier(.44, 0, .56, 1),
    border-color 400ms cubic-bezier(.44, 0, .56, 1);
}
/* closed: the two Selr cards already read purple, so the change is visible
   before you get there */
.selr-own-card.is-selr { border-color: rgba(103, 54, 226, 0.28); }
.selr-own-card:not(.is-open):hover { background: #FCFCFA; }

/* open: ink for the two routes that are not us, purple for the two that are */
.selr-own-card.is-open {
  width: calc((100% - 30px) * 0.5);
  background: #242424;
  border-color: #242424;
  color: #FFFFFA;
}
.selr-own-card.is-selr.is-open {
  background: #6736E2;
  border-color: #6736E2;
}
.selr-own-card:focus-visible { outline: 2px solid #6736E2; outline-offset: 2px; }

/* ---- top rail: the number, and the dots on the open card ---- */
.selr-own-rail {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; width: 100%;
}
.selr-own-num {
  font-family: "Manrope Variable", Manrope, sans-serif;
  font-weight: 600; font-size: 15px; line-height: 1.4; letter-spacing: -0.03em;
  color: #616161;
  transition: color 400ms cubic-bezier(.44, 0, .56, 1);
}
.selr-own-card.is-selr .selr-own-num { color: #6736E2; }
.selr-own-card.is-open .selr-own-num { color: rgba(255, 255, 250, 0.75); }

.selr-own-dots { display: flex; align-items: center; gap: 6px; }
.selr-own-card:not(.is-open) .selr-own-dots { display: none; }
.selr-own-dots i {
  display: block; width: 6px; height: 6px; border-radius: 100%;
  background: rgba(255, 255, 255, 0.4);
  transition: width 400ms cubic-bezier(.22, 1, .36, 1),
              background-color 300ms cubic-bezier(.44, 0, .56, 1);
}
.selr-own-dots i.is-live { width: 22px; height: 4px; border-radius: 40px; background: #FFFFFA; }

/* ---- icon ---- */
.selr-own-icon {
  display: flex; align-items: center; justify-content: center;
  width: 43px; height: 43px; flex: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  margin-top: auto; margin-bottom: 16px;
  opacity: 0.001;
  transition: opacity 400ms cubic-bezier(.4, 0, .2, 1);
}
.selr-own-card:not(.is-open) .selr-own-icon { display: none; }
.selr-own-card.is-open .selr-own-icon { opacity: 1; transition-delay: 140ms; }
.selr-own-icon svg { width: 25px; height: 25px; display: block; }
.selr-own-icon svg path, .selr-own-icon svg circle {
  stroke: #FFFFFA; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  fill: none;
}
.selr-own-card.is-open .selr-own-icon svg path {
  stroke-dasharray: 90;
  animation: selr-own-draw 700ms cubic-bezier(.22, 1, .36, 1) 200ms backwards;
}
@keyframes selr-own-draw {
  from { stroke-dashoffset: 90; opacity: 0.001; }
  to   { stroke-dashoffset: 0;  opacity: 1; }
}

/* ---- the name: readable whether the card is open or closed ---- */
.selr-own-name {
  font-family: "Manrope Variable", Manrope, sans-serif;
  font-weight: 600; font-size: 17px; line-height: 1.35; letter-spacing: -0.03em;
  color: #242424;
  margin-bottom: 10px;
  transition: color 400ms cubic-bezier(.44, 0, .56, 1);
}
.selr-own-card.is-selr .selr-own-name { color: #6736E2; }
.selr-own-card:not(.is-open) .selr-own-name { margin-top: auto; margin-bottom: 0; }
.selr-own-card.is-open .selr-own-name { color: rgba(255, 255, 250, 0.75); }

/* ---- title and copy: only on the open card ---- */
.selr-own-title, .selr-own-copy {
  opacity: 0.001; transform: translateY(8px);
  transition: opacity 400ms cubic-bezier(.4, 0, .2, 1),
              transform 400ms cubic-bezier(.22, 1, .36, 1);
}
.selr-own-card:not(.is-open) .selr-own-title,
.selr-own-card:not(.is-open) .selr-own-copy {
  height: 0; margin: 0; overflow: hidden;
}
.selr-own-card.is-open .selr-own-title { opacity: 1; transform: none; transition-delay: 200ms; }
.selr-own-card.is-open .selr-own-copy  { opacity: 1; transform: none; transition-delay: 250ms; }

.selr-own-title {
  font-family: "Manrope Variable", Manrope, sans-serif;
  font-weight: 400; font-variation-settings: "wght" 585;
  font-size: 35px; line-height: 1.15; letter-spacing: -0.04em;
  color: #FFFFFA;
  width: 500px; margin-bottom: 14px;
}
.selr-own-copy {
  font-family: "Manrope Variable", Manrope, sans-serif;
  font-weight: 600; font-size: 17px; line-height: 1.5; letter-spacing: -0.03em;
  color: rgba(255, 255, 250, 0.75);
  width: 500px;
}
.selr-own-card.is-selr .selr-own-copy { color: #EEE8FF; }

/* ---- tablet ---- */
@media (max-width: 1199.98px) {
  .selr-own-acc { height: 360px; }
  .selr-own-card { padding: 26px; }
  .selr-own-name { font-size: 15px; }
  .selr-own-title { font-size: 27px; width: 380px; }
  .selr-own-copy { font-size: 15px; width: 380px; }
}

/* ---- mobile: the row becomes a stack, the copy collapses ---- */
@media (max-width: 809.98px) {
  #ownership.selr-own .selr-sec-inner { gap: 28px; }
  .selr-own-sub { font-size: 17px; line-height: 1.5; letter-spacing: -0.02em; }
  .selr-own-acc { flex-direction: column; height: auto; gap: 10px; }
  .selr-own-card,
  .selr-own-card.is-open {
    width: 100%; padding: 24px; border-radius: 30px;
    display: grid; grid-template-rows: auto auto auto 0fr; gap: 0;
    transition: grid-template-rows 450ms cubic-bezier(.22, 1, .36, 1),
                background-color 400ms cubic-bezier(.44, 0, .56, 1),
                border-color 400ms cubic-bezier(.44, 0, .56, 1);
  }
  .selr-own-card.is-open { grid-template-rows: auto auto auto 1fr; }
  .selr-own-icon { display: none !important; }
  .selr-own-name { margin: 14px 0 4px !important; }
  .selr-own-title {
    width: 100%; font-size: 20px; margin: 0;
    opacity: 1; transform: none; height: auto;
  }
  .selr-own-card:not(.is-open) .selr-own-title { height: auto; }
  .selr-own-card:not(.is-open) .selr-own-title { color: #242424; }
  .selr-own-card.is-selr:not(.is-open) .selr-own-title { color: #242424; }
  .selr-own-copy {
    width: 100%; font-size: 15px; margin: 0; height: auto;
    overflow: hidden; opacity: 1; transform: none;
  }
  .selr-own-card:not(.is-open) .selr-own-copy { height: auto; }
  .selr-own-card.is-open .selr-own-copy { padding-top: 12px; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .selr-own-card, .selr-own-icon, .selr-own-name,
  .selr-own-title, .selr-own-copy, .selr-own-dots i { transition-duration: 1ms !important; }
  .selr-own-card.is-open .selr-own-icon svg path { animation: none; }
}
