/* home-extras.css: interactive pieces added to the homepage on Sep 24, 2026.
   "Where does it bother you?" body map, and the animated-guide feature card.
   Site tokens only; motion only when the visitor has not asked for less. */

/* ---------- Where does it bother you? ---------- */
.where { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "map head" "map panel"; grid-template-rows: auto 1fr; column-gap: 40px; row-gap: 0; align-items: start; border: 1px solid var(--line-dark); background: var(--paper); padding: 30px; margin-bottom: 32px; }
.where-head { grid-area: head; }
.where-map { grid-area: map; margin: 0; }
.where-panel { grid-area: panel; }
.where-svg { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); }
.where-orient { font-size: 0.85rem; color: var(--ink-faint); margin-top: 8px; }
.where-spot { cursor: pointer; }
.where-spot .hit { fill: transparent; }
.where-spot .ring { fill: none; stroke: var(--accent); stroke-width: 5; opacity: 0.55; }
.where-spot .dot { fill: var(--accent); stroke: #fff; stroke-width: 5; }
@media (hover: hover) { .where-spot:hover .ring { opacity: 1; } }
.where.has-pick .where-spot { opacity: 0.35; }
.where.has-pick .where-spot.is-on { opacity: 1; }
.where-spot.is-on .ring { opacity: 1; stroke-width: 7; }
.where-scar { fill: none; stroke: #7C3620; stroke-width: 5; stroke-dasharray: 3 9; stroke-linecap: round; opacity: 0.8; }
.where-q { font-family: var(--serif); font-weight: 550; font-size: 1.55rem; line-height: 1.2; margin-bottom: 6px; }
.where-sub { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 16px; }
.where-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.where-chip, .where-chip:visited { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 0.95rem; background: transparent; transition: background 0.2s ease, color 0.2s ease; }
@media (hover: hover) { .where-chip:hover { background: var(--ink); color: var(--paper); } }
.where-chip[aria-pressed="true"], .where-chip[aria-pressed="true"]:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.where-chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.where-card { border-top: 2px solid var(--ink); padding-top: 16px; }
.where-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.where-card p { color: var(--ink-soft); margin-bottom: 12px; }
.where-links { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.where-links a { font-weight: 600; }
.where-hint { color: var(--ink-faint); font-style: italic; border-top: 2px solid var(--line); padding-top: 16px; }
.where-fine { font-size: 0.85rem; color: var(--ink-faint); margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- Animated guide feature ---------- */
.feature-anim, .feature-anim:visited { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; margin-top: 32px; border: 1px solid var(--line-dark); background: var(--paper); color: var(--ink); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.feature-anim:hover { box-shadow: 8px 8px 0 var(--paper), 8px 8px 0 1px var(--line-dark); transform: translate(-2px, -2px); color: var(--ink); }
.feature-anim img { width: 100%; height: 100%; object-fit: cover; background: #fff; border-right: 1px solid var(--line); }
.feature-anim-copy { display: block; padding: 30px 32px; align-self: center; }
.feature-anim-copy .tag { margin-bottom: 12px; }
.feature-anim-copy h3 { font-size: 1.45rem; line-height: 1.25; margin-bottom: 12px; }
.feature-anim-copy p { font-size: 0.96rem; color: var(--ink-soft); margin-bottom: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .where-spot .ring { animation: where-pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
  .where.has-pick .where-spot .ring { animation: none; }
  @keyframes where-pulse { 0% { transform: scale(0.7); opacity: 0.8; } 70% { transform: scale(1.35); opacity: 0; } 100% { transform: scale(1.35); opacity: 0; } }
  .where-card { animation: where-in 0.35s ease-out; }
  @keyframes where-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 860px) {
  .where { grid-template-columns: 1fr; grid-template-areas: "head" "map" "panel"; grid-template-rows: auto; row-gap: 14px; padding: 20px; }
  .where-map { max-width: 440px; }
  .feature-anim, .feature-anim:visited { grid-template-columns: 1fr; }
  .feature-anim img { border-right: 0; border-bottom: 1px solid var(--line); height: auto; }
  .feature-anim-copy { padding: 22px 22px 24px; }
}

/* ======================================================================
   Sep 24, 2026 rework, phase 2: hero, doors, tool tiles, counters,
   "What I do most", robotic or open chooser, wait line.
   ====================================================================== */

/* body map inside its own section: no heading row */
.where.where-plain { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "chips chips" "map panel"; grid-template-rows: auto auto; row-gap: 22px; }
.where-plain .where-chips { grid-area: chips; flex-wrap: nowrap; margin-bottom: 0; }
.where-plain .where-map { max-width: none; }
@media (max-width: 860px) { .where.where-plain { grid-template-columns: 1fr; grid-template-areas: "chips" "map" "panel"; } .where-plain .where-chips { flex-wrap: wrap; } .where-plain .where-map { max-width: 440px; } }
.feature-anim, .feature-anim:visited { margin: 0 0 32px; }

/* hero line: each half rises in, 120 ms apart */
.hero-h1 .h1-line { display: inline; text-wrap: balance; }
@media (prefers-reduced-motion: no-preference) {
  .hero-h1 .h1-line { display: inline-block; animation: h1-rise 0.7s var(--ease-out, ease-out) both; }
  .hero-h1 .h1-line + .h1-line { animation-delay: 0.12s; }
  @keyframes h1-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- The guides: two doors ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 44px; }
.door { border: 1px solid var(--line-dark); background: var(--paper); padding: 26px 30px 28px; }
.door .tag { margin-bottom: 8px; }
.door h3 { font-size: 1.55rem; margin-bottom: 10px; }
.door h3 a { color: var(--ink); }
.door-qs { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.door-qs li { border-bottom: 1px solid var(--line); }
.door-qs a, .door-qs a:visited { display: block; padding: 10px 0; color: var(--ink); font-weight: 500; }
.door-qs a::after { content: " \2192"; color: var(--accent); }
.door-qs a:hover { color: var(--accent-dark); }
.door-frame { display: block; overflow: hidden; margin: -26px -30px 18px; border-bottom: 1px solid var(--line-dark); background: #fff; aspect-ratio: 720 / 440; }
.door-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.door-more { font-size: 0.9rem; color: var(--ink-soft); margin: -4px 0 14px; }
.door-foot { margin: -18px 0 0; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .door-art { transition: transform 0.6s var(--ease-out, ease-out); }
  .door:hover .door-art { transform: scale(1.04); }
}
.d-line, .d-wall { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.d-duct { stroke: #1f4e5f; }
.d-wall-2 { stroke: #c9695f; }
.d-stone { fill: #a67c10; }
.d-bulge { fill: var(--accent); opacity: 0.85; }
.d-lab { font: 500 12px var(--sans); fill: var(--ink-faint); }
.list-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
@media (prefers-reduced-motion: no-preference) {
  /* each drawing plays once as it scrolls into view */
  html.js .door .d-line, html.js .door .d-wall { stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 1.2s var(--ease-out, ease-out); }
  html.js .door.revealed .d-line, html.js .door.revealed .d-wall { stroke-dashoffset: 0; }
  html.js .door .d-stone { transform: translate(0, 0); transition: transform 1.1s var(--ease-out, ease-out) 1s; }
  html.js .door.revealed .d-stone { transform: translate(38px, -44px); }
  html.js .door.revealed .d-stone-2 { transform: translate(4px, -10px); }
  html.js .door .d-bulge { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); transition: transform 0.9s var(--ease-out, ease-out) 1s; }
  html.js .door.revealed .d-bulge { transform: scaleY(1); }
}
/* without motion, or without JavaScript, the stone sits in the duct neck */
@media (prefers-reduced-motion: reduce) { .door .d-stone { transform: translate(38px, -44px); } .door .d-stone-2 { transform: translate(4px, -10px); } }

/* ---------- Tool tiles with a small preview that plays on hover ---------- */
.tool-grid.tool-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tool-ico { display: block; width: 120px; height: 40px; margin-bottom: 14px; }
.ico-timeline .ti-line { stroke: var(--line); stroke-width: 3; }
.ico-timeline circle { fill: var(--paper); stroke: var(--accent); stroke-width: 2.5; }
.ico-check .ck-box { fill: none; stroke: var(--ink-faint); stroke-width: 2; }
.ico-check .ck { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.ico-games .gc { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.ico-games .gc-3 { fill: var(--accent); stroke: var(--accent); }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .ico-timeline circle { transition: fill var(--dur-base, 250ms) ease; }
  .tool-card:hover .ico-timeline circle { fill: var(--accent); }
  .tool-card:hover .ico-timeline circle:nth-of-type(2) { transition-delay: 0.1s; }
  .tool-card:hover .ico-timeline circle:nth-of-type(3) { transition-delay: 0.2s; }
  .tool-card:hover .ico-timeline circle:nth-of-type(4) { transition-delay: 0.3s; }
  .tool-card:hover .ico-timeline circle:nth-of-type(5) { transition-delay: 0.4s; }
  .ico-check .ck { stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset 0.3s var(--ease-out, ease-out); }
  .tool-card:hover .ico-check .ck { stroke-dashoffset: 0; }
  .tool-card:hover .ico-check .ck-2 { transition-delay: 0.15s; }
  .tool-card:hover .ico-check .ck-3 { transition-delay: 0.3s; }
  .ico-games .gc { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.35s var(--ease-out, ease-out); }
  .tool-card:hover .ico-games .gc-1 { transform: rotate(-14deg); }
  .tool-card:hover .ico-games .gc-3 { transform: rotate(14deg); }
}
/* touch screens and reduced motion show the finished state */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .ico-timeline circle { fill: var(--accent); }
  .ico-games .gc-1 { transform: rotate(-14deg); transform-box: fill-box; transform-origin: 50% 100%; }
  .ico-games .gc-3 { transform: rotate(14deg); transform-box: fill-box; transform-origin: 50% 100%; }
}

/* ---------- What I do most ---------- */
.most { margin-top: 36px; border-top: 2px solid var(--ink); padding-top: 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px 28px; align-items: baseline; }
.most-label { font-family: var(--serif); font-weight: 550; font-size: 1.3rem; margin: 0; }
.most-list { list-style: none; counter-reset: most; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.most-list li { counter-increment: most; font-weight: 600; }
.most-list li::before { content: counter(most); font-family: var(--serif); font-style: italic; color: var(--accent); margin-right: 8px; }
.most-list a, .most-list a:visited { color: var(--ink); border-bottom: 1px solid var(--line); }
.most-list a:hover { color: var(--accent-dark); border-color: var(--accent); }
.most-note { margin: 0; color: var(--ink-soft); font-style: italic; }

/* ---------- Visit: wait line ---------- */
.wait-line { font-weight: 600; color: var(--ink); }

@media (max-width: 860px) {
  .doors, .tool-grid.tool-grid-3 { grid-template-columns: 1fr; }
  .door { padding: 22px 22px 24px; }
  .door-frame { margin: -22px -22px 16px; }
  .most { grid-template-columns: 1fr; }
}

/* ======================================================================
   v50 remake (Sep 25, 2026): headshot hero, doors with the robotic/open
   switch for each hernia, restyled body map and "What I do most".
   ====================================================================== */
.hero.hx .hero-h1 .h1-line { display: block; }
.d2-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 48px; align-items: end; margin-bottom: 30px; }
.d2-head h2 { margin-bottom: 0; }
.d2-head .section-lead { margin-bottom: 0; }
.doors2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 28px; align-items: stretch; }
.door2 { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--dur-base) ease, transform var(--dur-base) var(--ease-out); }
.door2:hover { box-shadow: var(--shadow-lift); }
.d2-top { display: flex; gap: 18px; align-items: flex-start; padding: 26px 28px 20px; }
.d2-top .ico { width: 56px; height: 56px; margin-top: 4px; }
.d2-label { display: block; font-family: var(--display); font-stretch: 100%; font-size: 0.74rem; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.door2 h3 { font-size: 1.75rem; margin-bottom: 6px; }
.door2 h3 a, .door2 h3 a:visited { color: var(--ink); }
.door2 h3 a:hover { color: var(--accent); }
.d2-top p { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.d2-qs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.d2-qs a, .d2-qs a:visited { padding: 14px 28px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 10px; line-height: 1.35; }
.d2-qs a::after { content: "\2192"; color: var(--accent); transition: transform var(--dur-base) var(--ease-out); }
.d2-qs a:nth-child(odd) { border-right: 1px solid var(--line); }
.d2-qs a:hover { background: var(--paper); color: var(--accent-dark); }
.d2-rows { border-top: 1px solid var(--line); }
.d2-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 28px; border-bottom: 1px solid var(--line); }
.d2-name, .d2-name:visited { font-weight: 700; color: var(--ink); line-height: 1.3; }
.d2-name small { display: block; font-weight: 400; color: var(--ink-faint); font-size: 0.88rem; }
.d2-name:hover { color: var(--accent-dark); }
.d2-check .d2-go { color: var(--accent); font-weight: 700; }
.door2 .seg a:visited { color: var(--ink); }
.door2 .seg a:hover { background: var(--ink); color: var(--paper); }
.d2-foot, .d2-foot:visited { margin-top: auto; background: var(--paper-deep); padding: 16px 28px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.d2-foot:hover { background: var(--ink); color: var(--paper); }
.d2-foot:hover .d2-n { color: var(--saffron); }
.d2-play { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: inline-grid; place-items: center; flex: 0 0 auto; }
.d2-play::after { content: ""; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.d2-n { margin-left: auto; font-size: 0.9rem; color: var(--ink-faint); font-weight: 700; }
.door-foot { margin: 0; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .d2-qs a:hover::after { transform: translateX(4px); }
  .d2-foot:hover .d2-play { transform: scale(1.08); }
  .d2-play { transition: transform var(--dur-base) var(--ease-out); }
}
/* the body map and "What I do most", in the v50 look */
.where { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.where-svg { border-radius: var(--r-md); border-color: var(--line); }
.where-q { font-family: var(--display); font-weight: 780; }
.where-card { border-top: 3px solid var(--saffron); }
.where-chip, .where-chip:visited { border-width: 2px; }
.most { border-top: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 24px; margin-top: 22px; align-items: center; }
.most-label { font-family: var(--display); font-weight: 780; }
.most-list li::before { font-family: var(--display); font-style: normal; font-weight: 800; color: var(--ink); background: var(--saffron); border-radius: 999px; display: inline-grid; place-items: center; width: 24px; height: 24px; font-size: 0.8rem; }
.most-note { font-style: normal; font-weight: 700; color: var(--sage); }
@media (max-width: 1080px) {
  .d2-head { grid-template-columns: 1fr; }
  .doors2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .d2-top { padding: 20px 20px 16px; gap: 14px; }
  .d2-top .ico { width: 44px; height: 44px; }
  .door2 h3 { font-size: 1.45rem; }
  .d2-qs { grid-template-columns: 1fr; }
  .d2-qs a:nth-child(odd) { border-right: 0; }
  .d2-qs a, .d2-qs a:visited { padding: 13px 20px; }
  .d2-row { grid-template-columns: 1fr; gap: 8px; padding: 12px 20px; }
  .d2-check { grid-template-columns: 1fr auto; }
  .door2 .seg { width: 100%; }
  .door2 .seg a { flex: 1; text-align: center; padding: 9px 4px; }
  .d2-foot { padding: 14px 20px; }
}
.d2-n { white-space: nowrap; }
@media (max-width: 760px) {
  .hero.hx .hero-grid { grid-template-columns: 1fr; }
  .hx-port { order: -1; width: 112px; max-width: 112px; justify-self: start; margin-bottom: 4px; }
  .hx-port .hx-back { inset: 8px -8px -8px 8px; border-radius: 999px 999px 14px 14px; }
  .hx-port img { border-width: 3px; border-radius: 999px 999px 14px 14px; }
  .hx-chip { left: 134px; right: auto; top: 50%; bottom: auto; transform: translateY(-50%); width: max-content; max-width: calc(100vw - 170px); background: transparent; box-shadow: none; padding: 0; color: var(--paper); }
  .hx-chip b { color: var(--paper); font-size: 1.02rem; }
  .hx-chip span { color: var(--on-ink-soft); font-size: 0.84rem; align-items: flex-start; }
  .hx-chip span::before { margin-top: 0.45em; flex: 0 0 auto; }
  .hero.hx .badge-row img { height: 64px; }
  .hx-strip span:last-child { display: none; }
  .hx-strip .wrap { font-size: 0.92rem; gap: 6px 18px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .hx-chip { animation-name: hx-fade; }
  @keyframes hx-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* Sept 27, 2026: the Watch strips stand out (CRod): navy band, green play button */
.d2-foot, .d2-foot:visited { background: var(--navy-text, #0F1C2E); color: #fff; padding: 20px 28px; font-size: 1.12rem; gap: 14px; border-top: 3px solid var(--green-stroke, #4CC94A); }
.d2-foot:hover { background: var(--dress, #2B4360); color: #fff; }
.d2-play { width: 44px; height: 44px; background: var(--green-stroke, #4CC94A); }
.d2-play::after { border-left: 14px solid var(--navy-text, #0F1C2E); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.d2-n, .d2-foot:hover .d2-n { color: var(--green, #9BE77A); }
@media (max-width: 760px) { .d2-foot { padding: 16px 20px; font-size: 1.05rem; } }
