/* Arvine Labs — opportunities page styles */
.subhero { background: var(--wine-night); color: var(--cream); position: relative; overflow: hidden;
  padding-top: 132px; padding-bottom: clamp(4rem,8vw,7rem); }
.subhero__topo { position:absolute; inset:0; opacity: 0.7; z-index:0; }
.subhero__topo path { fill: none; stroke: var(--ochre-light); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.subhero .wrap { position: relative; z-index: 1; }
.subhero .eyebrow { color: var(--ochre-light); }
.subhero h1 { color: var(--cream); font-size: clamp(2.6rem, 7vw, 4.5rem); margin: 1.4rem 0 1.6rem; max-width: 16ch; }
/* FR/DE headlines use an explicit <br class="dt-br"> for an exact two-line break on desktop;
   the default max-width would otherwise wrap the first segment too. EN is unaffected. */
@media (min-width: 761px) {
  html[lang="fr"] .subhero h1, html[lang="de"] .subhero h1 { max-width: none; }
}
.subhero p { color: rgba(243,237,226,0.72); max-width: 60ch; font-size: clamp(1.05rem,0.9rem+0.6vw,1.3rem); line-height: 1.55; }

/* toolbar — sits inside the dark cellar section, so it shares its background */
.opp-bar { background: transparent; position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid rgba(243,237,226,0.12); padding-block: 1rem;
  margin-bottom: clamp(1.8rem,3.2vw,2.8rem); }
.opp-bar.stuck { background: rgba(28,22,27,0.85); backdrop-filter: blur(12px); }
/* mobile: hide the toolbar on scroll-down, reveal on scroll-up */
@media (max-width: 760px) {
  .opp-bar { transition: transform .35s var(--ease); will-change: transform; }
  .opp-bar.hide { transform: translateY(-100%); }
}
.opp-bar .wrap { display:flex; }
.opp-controls { display:flex; align-items:center; gap:0.55rem; flex-wrap:wrap; width:100%; }
.opp-search { display:flex; align-items:center; gap:0.6em; flex:1 1 200px; min-width:160px; padding:0.6em 1em;
  border:1px solid rgba(243,237,226,0.18); border-radius:100px; background: rgba(243,237,226,0.06);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease); }
.opp-search:focus-within { border-color: var(--ochre); box-shadow: 0 0 0 3px rgba(226,200,133,0.18); }
.opp-search__icon { flex:none; width:16px; height:16px; stroke: rgba(243,237,226,0.5); fill:none; stroke-width:2; stroke-linecap:round; transition: stroke .35s var(--ease); }
.opp-search:focus-within .opp-search__icon { stroke: var(--ochre-light); }
.opp-search__input { flex:1; min-width:0; font-family:var(--mono); font-size:0.76rem; letter-spacing:0.03em; color: var(--cream);
  border:none; background:transparent; outline:none; padding:0; }
.opp-search__input::placeholder { color: rgba(243,237,226,0.4); }
.opp-search__input::-webkit-search-cancel-button { -webkit-appearance:none; appearance:none; }
/* pill dropdowns (sector / score / sort) */
.opp-select { font-family:var(--mono); font-size:0.72rem; letter-spacing:0.03em; color: rgba(243,237,226,0.78);
  background-color: rgba(243,237,226,0.06); border:1px solid rgba(243,237,226,0.18); border-radius:100px; cursor:pointer; max-width:100%;
  padding:0.66em 2.1em 0.66em 1em; -webkit-appearance:none; appearance:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23efeae2' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position: right 0.85em center; background-size: 0.6em;
  transition: border-color .35s var(--ease); }
.opp-select:hover { border-color: rgba(243,237,226,0.4); }
.opp-select:focus-visible { outline:2px solid var(--ochre); outline-offset:2px; }
.opp-select option { color: var(--ink); }
/* liked filter toggle */
.opp-like-toggle { display:inline-flex; align-items:center; gap:0.5em; font-family:var(--mono); font-size:0.7rem;
  letter-spacing:0.06em; text-transform:uppercase; color: rgba(243,237,226,0.78); background: rgba(243,237,226,0.06);
  border:1px solid rgba(243,237,226,0.18); border-radius:100px; padding:0.6em 1em; cursor:pointer; white-space:nowrap;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.opp-like-toggle svg { width:14px; height:14px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; transition: fill .3s var(--ease); }
.opp-like-toggle:hover { border-color: rgba(243,237,226,0.4); }
.opp-like-toggle.on { background: var(--ochre); border-color: var(--ochre); color: var(--wine-deep); }
.opp-like-toggle.on svg { fill: var(--wine-deep); stroke: var(--wine-deep); }
.opp-like-toggle:focus-visible { outline:2px solid var(--ochre); outline-offset:2px; }
@media (max-width: 600px){ .opp-search { flex:1 1 100%; } .opp-select, .opp-like-toggle { flex:1 1 auto; justify-content:center; } }

/* grid */
.opp-sec { background: linear-gradient(180deg, #1c161b 0%, var(--wine-night) 55%); color: var(--cream);
  padding-block: clamp(3rem,5vw,5.5rem) clamp(4rem,8vw,7rem);
  box-shadow: inset 0 24px 52px -34px rgba(0,0,0,0.9); }
.opp-count { font-family:var(--mono); font-size:0.7rem; letter-spacing:0.12em; text-transform:uppercase;
  color: var(--ink-45); margin-bottom:1.6rem; }
.opp-sec .opp-count { color: rgba(239,234,226,0.5); }
.opp-sec .opp-empty { color: rgba(239,234,226,0.55); }
.opp-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: clamp(0.9rem,1.6vw,1.3rem); }
.opp-empty { grid-column:1/-1; font-family:var(--mono); font-size:0.8rem; letter-spacing:0.04em; color: var(--ink-45); padding:2.5rem 0; }
.opp-wrap { position:relative; display:flex; }
.opp { text-align:left; background: var(--paper); border:1px solid var(--line); border-radius:7px;
  padding: clamp(1.3rem,2vw,1.7rem); display:flex; flex-direction:column; gap:0.9rem; cursor:pointer;
  position:relative; overflow:hidden; min-height: 230px; flex:1; width:100%;
  opacity:0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.opp:focus-visible { outline:2px solid var(--wine); outline-offset:2px; }
.opp.seen { opacity:1; transform:none; }
.opp::after { content:""; position:absolute; left:0; right:0; bottom:0; height:3px;
  background: linear-gradient(90deg, var(--wine), var(--ochre)); transform: scaleX(0); transform-origin:left;
  transition: transform .5s var(--ease); }
.opp:hover { border-color: transparent; box-shadow: 0 22px 50px -26px rgba(33,30,26,0.45); transform: translateY(-5px); }
.opp:hover::after { transform: scaleX(1); }

.opp__top { display:flex; align-items:center; justify-content:flex-start; gap:0.5rem; }
.opp__code { font-family:var(--mono); font-weight:600; font-size:0.66rem; letter-spacing:0.1em;
  color: var(--ochre); border:1px solid var(--ochre-soft); border-radius:4px; padding:0.3em 0.55em; }
.opp__like { position:absolute; z-index:2; top: clamp(1.3rem,2vw,1.7rem); right: clamp(1.3rem,2vw,1.7rem);
  display:inline-flex; align-items:center; gap:0.4em; font-family:var(--mono); font-size:0.74rem;
  color: var(--ink-45); padding:0.25em 0.4em; border-radius:100px; cursor:pointer; background:transparent; border:0;
  transition: color .3s var(--ease); }
.opp__like:hover { color: var(--wine-bright); }
.opp__like:focus-visible { outline:2px solid var(--wine); outline-offset:2px; }
.opp__like svg { fill: none; stroke: currentColor; stroke-width:1.8; transition: fill .3s var(--ease), transform .3s var(--ease); }
.opp__like.on { color: var(--wine-bright); }
.opp__like.on svg { fill: var(--wine-bright); stroke: var(--wine-bright); }
.opp__like.pop svg { animation: likepop .4s var(--ease); }
@keyframes likepop { 0%{transform:scale(1)} 40%{transform:scale(1.35)} 100%{transform:scale(1)} }
.opp__name { font-size: clamp(1.4rem,2vw,1.8rem); font-weight:500; }
.opp__desc { color: var(--ink-70); font-size:0.96rem; line-height:1.5; flex:1; }
.opp__tp { display:flex; align-items:center; justify-content:space-between; gap:0.7rem; }
.opp__tp-label { font-family:var(--mono); font-size:0.58rem; letter-spacing:0.14em; text-transform:uppercase; color: var(--ink-45); }
.opp__radar { width:56px; height:56px; flex:none; overflow:visible; }
.opp__radar-web, .opp__radar-axis { fill:none; stroke: var(--line); stroke-width:1; vector-effect:non-scaling-stroke; }
.opp__radar-val { fill: rgba(184,154,90,0.28); stroke: var(--wine); stroke-width:1.5; stroke-linejoin:round;
  vector-effect:non-scaling-stroke; transition: fill .35s var(--ease); }
.opp:hover .opp__radar-val { fill: rgba(184,154,90,0.45); }
.opp__foot { display:flex; align-items:center; gap:0.8rem; margin-top:auto; padding-top:0.4rem; }
.opp__score { font-size:1.05rem; color: var(--ink); }
.opp__of { color: var(--ink-45); font-size:0.7em; }
.opp__open { margin-left:auto; font-family:var(--mono); font-size:0.66rem; letter-spacing:0.08em; text-transform:uppercase;
  color: var(--ink-45); display:inline-flex; gap:0.4em; transition: color .3s var(--ease); }
.opp:hover .opp__open { color: var(--wine); }
.opp:hover .opp__open .arrow { transform: translateX(3px); }
.opp__open .arrow { transition: transform .4s var(--ease); }

/* drawer */
.opp-backdrop { position: fixed; inset:0; background: rgba(20,10,14,0.55); backdrop-filter: blur(3px);
  opacity:0; pointer-events:none; transition: opacity .45s var(--ease); z-index: 250; }
.opp-backdrop.show { opacity:1; pointer-events:auto; }
.opp-drawer { position: fixed; top:0; right:0; bottom:0; width: min(560px, 94vw); background: var(--wine-night);
  color: var(--cream); z-index: 260; transform: translateX(100%); transition: transform .55s var(--ease);
  overflow-y:auto; padding: clamp(2rem,4vw,3.2rem); }
.opp-drawer.open { transform: none; box-shadow: -30px 0 80px -30px rgba(0,0,0,0.6); }
.d-close { position:absolute; top:1.4rem; right:1.6rem; width:40px; height:40px; border-radius:50%;
  border:1px solid rgba(243,237,226,0.2); color: var(--cream); font-size:1.4rem; line-height:1;
  display:flex; align-items:center; justify-content:center; transition: all .3s var(--ease); }
.d-close:hover { background: rgba(243,237,226,0.1); border-color: var(--ochre-light); }
.d-top { position:absolute; top:1.4rem; right:1.6rem; display:flex; align-items:center; gap:0.6rem; z-index:3; }
.d-top .d-close { position:static; top:auto; right:auto; }
.d-like { display:flex; align-items:center; gap:0.45rem; height:40px; padding:0 1rem; border-radius:100px;
  border:1px solid rgba(243,237,226,0.2); background: rgba(243,237,226,0.06); color: var(--cream); cursor:pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.d-like:hover { background: rgba(243,237,226,0.12); border-color: rgba(243,237,226,0.34); }
.d-like svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round;
  transition: fill .25s var(--ease), transform .25s var(--ease); }
.d-like__c { font-family:var(--mono); font-size:0.8rem; line-height:1; }
.d-like.on { background: rgba(201,168,76,0.18); border-color: var(--ochre); color: var(--ochre-light); }
.d-like.on svg { fill: currentColor; }
.d-like.pop svg { animation: likepop .4s var(--ease); }
.d-sector { padding-right: 7rem; }
.d-sector { font-family:var(--mono); font-size:0.7rem; letter-spacing:0.08em; color: rgba(243,237,226,0.6);
  display:flex; align-items:center; gap:0.6em; margin-bottom:1.2rem; }
.d-sector .opp__code { color: var(--ochre-light); border-color: rgba(192,160,92,0.4); }
.d-name { font-size: clamp(2.2rem,5vw,3rem); color: var(--cream); line-height:1.02; }
.d-desc { color: rgba(243,237,226,0.74); font-size:1.08rem; line-height:1.55; margin-top:1rem; max-width:42ch; }
.d-grid { margin-top: 2rem; padding-top:2rem; border-top:1px solid rgba(243,237,226,0.12);
  display:grid; grid-template-columns: 1fr; gap:1.6rem; }
.d-vizbox { display:flex; flex-direction:column; align-items:center; gap:1rem; }
.d-radar { width:100%; max-width:280px; overflow:visible; }
.d-radar .r-web { fill:none; stroke: rgba(243,237,226,0.12); }
.d-radar .r-axis { stroke: rgba(243,237,226,0.16); }
.d-radar .r-label { fill: rgba(243,237,226,0.62); font-family:var(--mono); font-size:9px; }
.d-radar .r-val { fill: rgba(192,160,92,0.22); stroke: var(--ochre-light); stroke-width:2; stroke-linejoin:round; }
.d-radar .r-dot { fill: var(--cream); stroke: var(--ochre-light); stroke-width:1.6; }
.d-scoreline { display:flex; align-items:center; gap:1rem; }
.d-total { font-family:var(--serif); font-size:2.6rem; line-height:1; color: var(--cream); }
.d-of { color: rgba(243,237,226,0.4); font-size:0.4em; }
.d-profile { }
.d-ptitle { font-family:var(--mono); font-size:0.66rem; letter-spacing:0.16em; text-transform:uppercase;
  color: var(--ochre-light); margin-bottom:1rem; }
.d-row { display:grid; grid-template-columns: 8.5em 1fr 1.4em; align-items:center; gap:0.8rem; padding:0.5rem 0; }
.d-dim { font-size:0.9rem; color: rgba(243,237,226,0.8); }
.d-bar { height:5px; background: rgba(243,237,226,0.12); border-radius:100px; overflow:hidden; }
.d-bar i { display:block; height:100%; background: linear-gradient(90deg, var(--wine-bright), var(--ochre-light)); border-radius:100px; }
.d-sv { font-family:var(--mono); font-size:0.8rem; color: var(--ochre-light); text-align:right; }
.d-actions { margin-top:2rem; padding-top:1.6rem; border-top:1px solid rgba(243,237,226,0.12);
  display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
/* ---- comments ---- */
.d-comments { margin-top: 2rem; }
.d-comments-head { display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(243,237,226,0.5); margin-bottom: 1.1rem; }
.d-ccount { background: rgba(243,237,226,0.1); border-radius: 100px;
  padding: 0.15em 0.55em; font-size: 0.8em; color: var(--ochre-light); }
.d-comments-list { display: flex; flex-direction: column; gap: 0.9rem;
  max-height: 260px; overflow-y: auto; padding-right: 0.2rem; margin-bottom: 1.2rem; }
.dc-item { background: rgba(243,237,226,0.05); border-radius: 8px; padding: 0.8em 1em; }
.dc-item p { color: rgba(243,237,226,0.88); font-size: 0.94rem; line-height: 1.5; margin-bottom: 0.35em; }
.dc-item time { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(243,237,226,0.32); }
.dc-empty { color: rgba(243,237,226,0.32); font-size: 0.9rem; font-style: italic; }
.d-comment-form { display: flex; flex-direction: column; gap: 0.7rem; }
.d-comment-form textarea { background: rgba(243,237,226,0.06); border: 1px solid rgba(243,237,226,0.16);
  border-radius: 8px; color: var(--cream); font-size: 0.94rem; line-height: 1.5;
  padding: 0.75em 1em; resize: none; font-family: inherit; width: 100%;
  transition: border-color 0.2s var(--ease); }
.d-comment-form textarea::placeholder { color: rgba(243,237,226,0.28); }
.d-comment-form textarea:focus { outline: none; border-color: rgba(201,168,76,0.5); }
.d-comment-submit { align-self: flex-end; background: rgba(243,237,226,0.08);
  border: 1px solid rgba(243,237,226,0.2); border-radius: 100px; color: var(--cream);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.6em 1.4em; cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease); }
.d-comment-submit:hover { background: rgba(243,237,226,0.15); border-color: rgba(243,237,226,0.35); }

.d-likebtn.on { background: var(--ochre); color: var(--wine-night); }
.d-actions .tlink { color: var(--ochre-light); }

/* deep-dive content */
.d-deep { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(243,237,226,0.12);
  display: flex; flex-direction: column; gap: 1.5rem; }
.d-blabel { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ochre-light); margin-bottom: 0.5rem; }
.d-block p { color: rgba(243,237,226,0.8); font-size: 1.02rem; line-height: 1.6; }
.d-bm { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(243,237,226,0.12); }
.d-bm .d-ptitle { margin-bottom: 1.3rem; }
.d-bm-streams { margin-bottom: 1.6rem; }
.d-bm-streams .d-blabel { color: rgba(243,237,226,0.5); margin-bottom: 0.75rem; }
.d-streams { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.d-streams li { position: relative; padding-left: 1.4rem; color: rgba(243,237,226,0.84);
  font-size: 0.98rem; line-height: 1.45; }
.d-streams li::before { content: ""; position: absolute; left: 0; top: 0.56em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--ochre-light); }
.d-bm-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.d-mini .d-blabel { color: rgba(243,237,226,0.5); margin-bottom: 0.4rem; }
.d-mini p { color: rgba(243,237,226,0.74); font-size: 0.94rem; line-height: 1.5; }
.d-tags { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.d-tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.03em; color: rgba(243,237,226,0.72);
  border: 1px solid rgba(243,237,226,0.18); border-radius: 100px; padding: 0.42em 0.9em; }
@media (min-width: 560px){ .d-bm-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 520px){ .d-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Submit-an-idea button + modal
   ============================================================ */
.opp-add-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cream); background: var(--wine); border: 1px solid var(--wine); border-radius: 100px;
  padding: 0.62em 1.15em; cursor: pointer; white-space: nowrap;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.opp-add-btn svg { width: 14px; height: 14px; flex: none; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.opp-add-btn:hover { background: var(--wine-night); border-color: var(--wine-night); }
.opp-add-btn:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
@media (max-width: 600px){ .opp-add-btn { margin-left: 0; flex: 1 1 100%; justify-content: center; } }

.imodal { position: fixed; inset: 0; z-index: 220; display: flex; align-items: center; justify-content: center;
  padding: 1.2rem; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.imodal.open { opacity: 1; pointer-events: auto; }
.imodal__backdrop { position: absolute; inset: 0; background: rgba(15,8,11,0.6); backdrop-filter: blur(3px); }
.imodal__panel { position: relative; z-index: 1; width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto;
  background: var(--cream); border-radius: 18px; padding: 2.4rem clamp(1.4rem, 4vw, 2.6rem);
  box-shadow: 0 30px 80px rgba(15,8,11,0.35); transform: translateY(16px) scale(0.98); opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease); }
.imodal.open .imodal__panel { transform: none; opacity: 1; }
.imodal__close { position: absolute; top: 1rem; right: 1.1rem; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink-70); font-size: 1.5rem; line-height: 1;
  cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.imodal__close:hover { background: var(--wine); color: var(--cream); border-color: var(--wine); }
.imodal__head { margin-bottom: 1.6rem; max-width: 46ch; }
.imodal__head .eyebrow { color: var(--ochre); }
.imodal__head .eyebrow::before { display: none; }
.imodal__title { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.0; margin: 0.7rem 0 0.7rem; }
.imodal__sub { color: var(--ink-70); font-size: 0.98rem; line-height: 1.5; }

.iform { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.iform__full { grid-column: 1 / -1; }
.ifield { position: relative; }
.ifield input, .ifield textarea, .ifield select { width: 100%; font-family: var(--sans); font-size: 0.96rem; color: var(--ink);
  background: rgba(255,255,255,0.6); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1rem 0.55rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.ifield textarea { min-height: 92px; line-height: 1.5; resize: vertical; }
.ifield select { padding-top: 0.78rem; padding-bottom: 0.78rem; color: var(--ink); cursor: pointer; }
.ifield label { position: absolute; left: 1rem; top: 0.92rem; color: var(--ink-45); font-size: 0.96rem;
  pointer-events: none; transition: transform .2s var(--ease), color .2s var(--ease), font-size .2s var(--ease); }
.ifield--select label { position: static; display: block; margin-bottom: 0.4rem; font-family: var(--mono);
  font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-45); }
.ifield input:focus, .ifield textarea:focus, .ifield select:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px var(--ochre-soft); }
.ifield input:focus + label, .ifield input:not(:placeholder-shown) + label,
.ifield textarea:focus + label, .ifield textarea:not(:placeholder-shown) + label {
  transform: translateY(-0.7rem); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--wine); font-family: var(--mono); }
.ifield__opt { text-transform: none; letter-spacing: 0; opacity: 0.7; }
.iform__submit { grid-column: 1 / -1; justify-self: start; margin-top: 0.3rem; }
.iform__submit:disabled { opacity: 0.55; cursor: default; }
.iform__status { grid-column: 1 / -1; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--ink-70); min-height: 1em; }
@media (max-width: 560px){ .iform { grid-template-columns: 1fr; } }

.imodal__success { text-align: center; padding: 1.5rem 0 0.5rem; }
.imodal__check { width: 72px; height: 72px; margin: 0 auto 1.4rem; }
.imodal__check svg { width: 100%; height: 100%; }
.imodal__check-c { stroke: var(--ochre); stroke-width: 2; fill: none; stroke-dasharray: 151; stroke-dashoffset: 151; }
.imodal__check-m { stroke: var(--wine); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 48; stroke-dashoffset: 48; }
.imodal__success.show .imodal__check-c { animation: imCircle .5s var(--ease) forwards; }
.imodal__success.show .imodal__check-m { animation: imCheck .35s var(--ease) .45s forwards; }
.imodal__success h3 { font-size: 1.6rem; margin-bottom: 0.5rem; outline: none; }
.imodal__success p { color: var(--ink-70); max-width: 40ch; margin: 0 auto; }
@keyframes imCircle { to { stroke-dashoffset: 0; } }
@keyframes imCheck { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce){
  .imodal, .imodal__panel { transition: opacity .2s linear; }
  .imodal__success.show .imodal__check-c, .imodal__success.show .imodal__check-m { animation: none; stroke-dashoffset: 0; }
}


/* ============================================================
   Idea Swipe — hero trigger + rating modal
   ============================================================ */
.ids-cta { position:relative; isolation:isolate; overflow:visible; display:inline-flex; align-items:center; gap:1rem; margin-top:1.9rem;
  background: linear-gradient(135deg, #f2d684 0%, var(--ochre) 52%, #c79a3e 100%);
  border:1px solid rgba(255,255,255,0.35); border-radius:22px 22px 22px 7px; padding:1.05rem 1.5rem;
  cursor:pointer; color: var(--wine-deep); text-align:left; box-shadow:0 16px 40px -16px rgba(184,154,90,0.6);
  opacity:0; transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), scale .3s var(--ease), box-shadow .3s var(--ease); }
.ids-cta.in { opacity:1; transform:none; animation: idsGlow 3.4s ease-in-out infinite; }
/* sheen sweep — clipped to the rounded shape via border-radius:inherit */
.ids-cta::before { content:""; position:absolute; inset:0; z-index:0; pointer-events:none; border-radius:inherit;
  background: linear-gradient(105deg, transparent 36%, rgba(255,255,255,0.55) 50%, transparent 64%);
  background-size:230% 100%; background-position:150% 0; }
.ids-cta.in::before { animation: idsSheen 4.6s var(--ease) 1s infinite; }
/* speech-bubble tail */
.ids-cta::after { content:""; position:absolute; left:24px; bottom:-8px; width:18px; height:18px; background:var(--ochre);
  border-radius:0 0 5px 0; transform: rotate(45deg); }
.ids-cta:hover { scale:1.05; animation:none; box-shadow:0 22px 52px -14px rgba(201,168,76,0.85); }
.ids-cta:hover .ids-cta__ar { transform: translateX(5px); }
.ids-cta:focus-visible { outline:2px solid var(--wine-deep); outline-offset:3px; }
.ids-cta__ic, .ids-cta__tx, .ids-cta__ar { position:relative; z-index:1; }
.ids-cta__ic { width:44px; height:44px; flex:none; color:var(--wine-deep); transform-origin:50% 72%; }
.ids-cta.in .ids-cta__ic { animation: idsTilt 3.6s ease-in-out infinite; }
.ids-cta__ic svg { width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.ids-cta__ic rect { fill: rgba(255,255,255,0.3); }
.ids-cta__hrt { fill: var(--wine-deep); stroke:none; transform-box:fill-box; transform-origin:center; }
.ids-cta.in .ids-cta__hrt { animation: idsBeat 1.7s ease-in-out infinite; }
.ids-cta__tx { display:flex; flex-direction:column; line-height:1.2; }
.ids-cta__tx b { font-size:1.15rem; font-weight:600; }
.ids-cta__tx small { font-family:var(--mono); font-size:0.62rem; letter-spacing:0.05em; text-transform:uppercase;
  color: rgba(39,29,34,0.62); margin-top:0.3rem; }
.ids-cta__ar { color:var(--wine-deep); font-size:1.25rem; margin-left:0.2rem; transition: transform .25s var(--ease); }
@keyframes idsGlow { 0%,100%{ box-shadow:0 16px 40px -16px rgba(184,154,90,0.55); } 50%{ box-shadow:0 20px 50px -14px rgba(201,168,76,0.8); } }
@keyframes idsSheen { 0%{ background-position:150% 0; } 32%,100%{ background-position:-55% 0; } }
@keyframes idsTilt { 0%,100%{ transform:rotate(0); } 22%{ transform:rotate(-8deg); } 58%{ transform:rotate(8deg); } 80%{ transform:rotate(0); } }
@keyframes idsBeat { 0%,28%,100%{ transform:rotate(-8deg) scale(1); } 12%{ transform:rotate(-8deg) scale(1.22); } 20%{ transform:rotate(-8deg) scale(1); } }
@media (max-width: 600px){
  .ids-cta { gap:0.6rem; padding:0.6rem 0.9rem; margin:2.4rem 0 1.6rem; border-radius:16px 16px 16px 5px; }
  .ids-cta__ic { width:30px; height:30px; }
  .ids-cta__tx b { font-size:0.9rem; }
  .ids-cta__tx small { font-size:0.52rem; margin-top:0.15rem; }
  .ids-cta__ar { font-size:1rem; }
  .ids-cta::after { left:16px; width:14px; height:14px; bottom:-6px; }
}

/* modal */
.ids { position:fixed; inset:0; z-index:240; display:flex; align-items:center; justify-content:center; padding:1.1rem;
  opacity:0; pointer-events:none; transition: opacity .3s var(--ease); }
.ids.open { opacity:1; pointer-events:auto; }
.ids__bg { position:absolute; inset:0; background: rgba(15,8,11,0.72); backdrop-filter: blur(4px); }
.ids__panel { position:relative; z-index:1; width:100%; max-width:520px; max-height:94vh; overflow-y:auto;
  background: var(--wine-night); color: var(--cream); border:1px solid rgba(243,237,226,0.12); border-radius:20px;
  padding: clamp(1.4rem,3.4vw,2rem); box-shadow:0 40px 110px -30px rgba(0,0,0,0.7);
  transform: translateY(18px) scale(0.97); opacity:0; transition: transform .4s var(--ease), opacity .4s var(--ease);
  display:flex; flex-direction:column; }
.ids.open .ids__panel { transform:none; opacity:1; }
@media (min-width: 700px){ .ids__panel { max-width:640px; } }
.ids__x { position:absolute; top:0.8rem; right:0.9rem; z-index:5; width:36px; height:36px; border-radius:50%;
  border:1px solid rgba(243,237,226,0.18); background:transparent; color: rgba(243,237,226,0.7); font-size:1.4rem; cursor:pointer;
  transition: all .3s var(--ease); }
.ids__x:hover { background: var(--ochre); color: var(--wine-night); border-color: var(--ochre); }
.ids__head { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:0.9rem; padding-right:2rem; }
.ids__title { font-size: clamp(1.4rem,3vw,1.9rem); line-height:1.05; }
.ids__sub { color: rgba(243,237,226,0.6); font-size:0.82rem; line-height:1.4; margin-top:0.35rem; max-width:40ch; }
.ids__prog { flex:none; font-family:var(--mono); font-size:0.72rem; letter-spacing:0.1em; color: var(--ochre-light);
  border:1px solid rgba(226,200,133,0.35); border-radius:100px; padding:0.35em 0.7em; white-space:nowrap; }

/* stage: side arrows flank the deck */
.ids__stage { display:flex; align-items:center; gap:0.6rem; margin-bottom:1rem; }
.ids__deck { position:relative; flex:1 1 auto; min-width:0; height: clamp(380px, 62vh, 520px); }
.ids__side { flex:none; width:50px; display:flex; flex-direction:column; align-items:center; gap:0.45rem;
  background:none; border:none; padding:0.3rem; cursor:pointer; border-radius:12px;
  transition: transform .25s var(--ease), background .25s var(--ease); }
.ids__side:hover { transform: scale(1.12); background: rgba(243,237,226,0.05); }
.ids__side:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.ids__side svg { width:30px; height:30px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.ids__side span { font-family:var(--mono); font-size:0.58rem; letter-spacing:0.08em; text-transform:uppercase; }
.ids__side--no { color:#d77c6c; }
.ids__side--yes { color:#5fbf86; }
@media (prefers-reduced-motion: no-preference){
  .ids__side--no svg { animation: idsNudgeL 1.8s var(--ease) infinite; }
  .ids__side--yes svg { animation: idsNudgeR 1.8s var(--ease) infinite; }
}
@keyframes idsNudgeL { 0%,100%{transform:translateX(0);opacity:0.6} 50%{transform:translateX(-5px);opacity:1} }
@keyframes idsNudgeR { 0%,100%{transform:translateX(0);opacity:0.6} 50%{transform:translateX(5px);opacity:1} }
@media (max-width: 700px){ .ids__side { display:none; } }

/* card */
.idc { position:absolute; inset:0; background: var(--paper); color: var(--ink); border-radius:16px; border:1px solid var(--line);
  padding: clamp(1.3rem,3.2vw,1.8rem); display:flex; flex-direction:column; overflow:hidden;
  box-shadow:0 18px 44px -22px rgba(0,0,0,0.55); transform-origin:center bottom; touch-action:pan-y; will-change:transform;
  transition: transform .35s var(--ease), opacity .35s var(--ease); }
.idc.is-top { cursor:grab; }
.idc.drag { transition:none; cursor:grabbing; }
.idc__top { flex:none; display:flex; align-items:center; gap:0.55rem; }
.idc__sector { font-family:var(--mono); font-size:0.6rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--ink-45); }
.idc__score { margin-left:auto; font-family:var(--mono); font-weight:600; font-size:1.4rem; color:var(--wine); line-height:1; }
.idc__score span { font-size:0.6rem; color:var(--ink-45); }
.idc__name { flex:none; font-size: clamp(1.5rem,3.4vw,2.05rem); font-weight:500; line-height:1.05; margin:0.6rem 0 0.2rem; }
.idc__sol { flex:1 1 auto; min-height:0; color:var(--ink-70); font-size:1.02rem; line-height:1.55; margin:0.8rem 0 0; overflow:hidden; }
.idc__more { flex:none; align-self:flex-start; margin-top:0.6rem; font-family:var(--mono); font-size:0.62rem;
  letter-spacing:0.08em; text-transform:uppercase; color:var(--wine); background:none; border:none; padding:0.2rem 0; cursor:pointer;
  display:inline-flex; align-items:center; gap:0.4em; transition: color .25s var(--ease); }
.idc__more .arrow { transition: transform .25s var(--ease); }
.idc__more:hover { color:var(--ochre); }
.idc__more:hover .arrow { transform: translateX(3px); }
.idc__cm { flex:none; margin-top:0.6rem; }
.idc__cm textarea { width:100%; box-sizing:border-box; font-family:var(--sans); font-size:0.88rem; color:var(--ink); background:var(--cream);
  border:1px solid var(--line); border-radius:9px; padding:0.55rem 0.7rem; resize:none; line-height:1.4; overflow:hidden; }
.idc__cm textarea:focus { outline:none; border-color:var(--wine); box-shadow:0 0 0 3px var(--ochre-soft); }
.idc__stamp { position:absolute; top:1.2rem; z-index:3; font-family:var(--mono); font-weight:600; font-size:1.05rem;
  letter-spacing:0.12em; text-transform:uppercase; padding:0.25em 0.6em; border:2.5px solid; border-radius:8px; opacity:0; pointer-events:none; }
.idc__stamp--yes { right:1.2rem; color:#3c8c5a; border-color:#3c8c5a; transform: rotate(14deg); }
.idc__stamp--no  { left:1.2rem; color:#b4503f; border-color:#b4503f; transform: rotate(-14deg); }
.idc__stamp--up  { left:50%; transform: translateX(-50%); color:var(--ochre); border-color:var(--ochre); }

/* controls */
.ids__ctrl { display:flex; align-items:center; justify-content:center; gap:1.1rem; }
.ids__btn { width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  border:1.5px solid rgba(243,237,226,0.22); background: rgba(243,237,226,0.04); cursor:pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.ids__btn svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ids__btn--up svg { fill:currentColor; stroke-width:1; }
.ids__btn:hover { transform: translateY(-3px) scale(1.06); }
.ids__btn--no { color:#d77c6c; } .ids__btn--no:hover { border-color:#b4503f; background: rgba(180,80,63,0.14); }
.ids__btn--up { width:48px; height:48px; color:var(--ochre-light); }
.ids__btn--up:hover { border-color:var(--ochre); background: rgba(226,200,133,0.16); box-shadow:0 0 22px -4px rgba(226,200,133,0.6); }
.ids__btn--yes { color:#5fbf86; } .ids__btn--yes:hover { border-color:#3c8c5a; background: rgba(60,140,90,0.14); }
.ids__btn--yes svg { fill: currentColor; stroke: none; }
.ids__btn:focus-visible { outline:2px solid var(--ochre-light); outline-offset:2px; }

/* end / success */
.ids__end, .ids__ok { text-align:center; padding:1rem 0.5rem 0.5rem; }
.ids__end-ic { font-size:1.8rem; color:var(--ochre-light); }
.ids__end-n { font-size:1.4rem; margin:0.6rem 0 0.3rem; color:var(--cream); }
.ids__end-s { color: rgba(243,237,226,0.6); font-size:0.92rem; margin-bottom:1.3rem; }
.ids__send { display:flex; flex-direction:column; gap:0.8rem; max-width:360px; margin:0 auto; text-align:left; }
.ids__f { position:relative; }
.ids__f input, .ids__f textarea { width:100%; font-family:var(--sans); font-size:0.95rem; color:var(--cream);
  background: rgba(243,237,226,0.06); border:1px solid rgba(243,237,226,0.18); border-radius:9px; padding:1.1rem 0.85rem 0.45rem; resize:vertical; }
.ids__f textarea { min-height:64px; line-height:1.45; }
.ids__f label { position:absolute; left:0.85rem; top:0.85rem; color: rgba(243,237,226,0.5); font-size:0.95rem; pointer-events:none;
  transition: transform .2s var(--ease), color .2s var(--ease), font-size .2s var(--ease); }
.ids__f input:focus, .ids__f textarea:focus { outline:none; border-color:var(--ochre); box-shadow:0 0 0 3px rgba(226,200,133,0.18); }
.ids__f input:focus + label, .ids__f input:not(:placeholder-shown) + label,
.ids__f textarea:focus + label, .ids__f textarea:not(:placeholder-shown) + label {
  transform: translateY(-0.7rem); font-size:0.6rem; letter-spacing:0.05em; text-transform:uppercase; color:var(--ochre-light); }
.ids__end-act { display:flex; flex-direction:column; gap:0.7rem; }
.ids__end-act .btn { justify-content:center; }
.ids__end .btn--ghost { color:var(--cream); border-color: rgba(243,237,226,0.3); }
.ids__end .btn--ghost:hover { border-color:var(--cream); background: rgba(243,237,226,0.06); }
.ids__status { font-family:var(--mono); font-size:0.7rem; letter-spacing:0.04em; color: rgba(243,237,226,0.7); min-height:1em; }
.ids__ok-c { width:64px; height:64px; margin:0 auto 1.2rem; }
.ids__ok-c svg { width:100%; height:100%; }
.ids__ok-c circle { fill:none; stroke:var(--ochre); stroke-width:2; }
.ids__ok-c path { fill:none; stroke:var(--ochre-light); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.ids__ok h3 { font-size:1.5rem; color:var(--cream); margin-bottom:0.4rem; }
.ids__ok p { color: rgba(243,237,226,0.65); max-width:34ch; margin:0 auto; }

@media (max-width: 600px){
  .ids__deck { height: clamp(360px, 64vh, 500px); }
  .idc__sol { font-size:0.92rem; line-height:1.45; margin-top:0.6rem; }
  .idc__cm textarea { min-height:0; }
}
@media (prefers-reduced-motion: reduce){ .ids, .ids__panel, .idc { transition: opacity .2s linear; } }
@media (prefers-reduced-motion: reduce){
  .ids-cta.in, .ids-cta.in::before, .ids-cta.in .ids-cta__ic, .ids-cta.in .ids-cta__hrt { animation: none; }
}

/* ============================================================
   Ventures in development — featured active builds
   ============================================================ */
.vid { background: var(--cream); padding-block: clamp(2.5rem,5vw,4.5rem) clamp(3.5rem,6vw,5.5rem); }
.vid-head { max-width: 680px; margin-bottom: clamp(1.6rem,3vw,2.4rem); }
.vid-title { font-size: clamp(2.4rem,5.2vw,3.7rem); margin: 0 0 0.7rem; }
.vid-lede { color: var(--ink-70); }
.vid-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem,2vw,1.6rem); }
@media (max-width: 720px){ .vid-grid { grid-template-columns: 1fr; } }

.vid-card {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--wine) 0%, var(--wine-deep) 68%, var(--wine-night) 100%);
  color: var(--cream);
  border: 1px solid rgba(243,237,226,0.10);
  border-radius: 14px;
  padding: clamp(1.4rem,2.4vw,2rem);
  min-height: 290px;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.vid-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px -22px rgba(20,16,19,0.85); border-color: rgba(226,200,133,0.32); }
.vid-card__glow { position:absolute; top:-45%; right:-30%; width:62%; height:85%;
  background: radial-gradient(circle, rgba(226,200,133,0.20), transparent 65%); pointer-events:none; }
.vid-card__top { display:flex; align-items:center; justify-content:space-between; position:relative; z-index:1; }
.vid-card__idx { font-family: var(--mono); font-size:0.72rem; letter-spacing:0.16em; color: var(--ochre-light); }
.vid-card__status { display:inline-flex; align-items:center; gap:0.45rem; font-family: var(--mono);
  font-size:0.6rem; letter-spacing:0.14em; text-transform:uppercase; color: var(--cream); opacity:0.82; }
.vid-card__dot { width:7px; height:7px; border-radius:50%; background: var(--ochre-light); animation: vidPulse 2.4s ease infinite; }
@keyframes vidPulse {
  0%   { box-shadow: 0 0 0 0 rgba(226,200,133,0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(226,200,133,0); }
  100% { box-shadow: 0 0 0 0 rgba(226,200,133,0); }
}
.vid-card__name { font-family: var(--serif); font-size: clamp(1.7rem,3vw,2.3rem); margin: 0.85rem 0 0.15rem; position:relative; z-index:1; }
.vid-card__tag { color: var(--ochre-light); font-size: 1rem; margin: 0 0 0.85rem; position:relative; z-index:1; }
.vid-card__desc { color: rgba(239,234,226,0.78); font-size: 0.92rem; line-height: 1.52; margin: 0 0 1.2rem; position:relative; z-index:1; }
.vid-card__needs { margin-top:auto; padding-top: 1rem; border-top: 1px solid rgba(243,237,226,0.12);
  display:flex; flex-direction:column; gap:0.65rem; position:relative; z-index:1; }
.vid-card__needs-label { font-family: var(--mono); font-size:0.68rem; letter-spacing:0.12em; text-transform:uppercase; color: rgba(239,234,226,0.65); }
.vid-card__roles { display:flex; flex-wrap:wrap; gap:0.5rem; }
.vid-card__role { font-family: var(--mono); font-size:0.78rem; letter-spacing:0.02em; color: var(--ochre-light);
  border:1px solid rgba(226,200,133,0.35); background: rgba(226,200,133,0.08); border-radius:100px; padding:0.4em 0.95em; }
.vid-card__divider { height:1px; background: rgba(243,237,226,0.16); margin-top: 1.15rem; position:relative; z-index:1; }
.vid-card__link { margin-top: 1.15rem; align-self: flex-start; color: var(--ochre-light); position:relative; z-index:1; }

.vid-cta { margin-top: clamp(1.8rem,3vw,2.6rem); padding-top: clamp(1.6rem,2.6vw,2.2rem);
  border-top: 1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between; gap:1.2rem; flex-wrap:wrap; }
.vid-cta p { margin:0; font-size: clamp(1.4rem,2vw,1.75rem); line-height:1.32; color: var(--ink-70); }
.vid-cta .btn { font-size: 0.92rem; padding: 1.15em 2em; }
@media (max-width: 560px){ .vid-cta { flex-direction:column; align-items:flex-start; } }

/* ============================================================
   Cellar of ideas — opportunities racked by sector, stacked by score
   ============================================================ */
.cellar-head { margin-bottom: clamp(1.4rem,2.8vw,2.2rem); }
.cellar-head__row { display:flex; align-items:center; justify-content:space-between;
  gap: 1rem clamp(1rem,3vw,2.5rem); flex-wrap:wrap; margin-bottom: 0.7rem; }
.cellar-head__row .cellar-title { flex:1 1 auto; min-width:0; margin:0; }
.cellar-head__row .ids-cta { flex:none; margin-top:0; }
.cellar-title { font-size: clamp(2.4rem,5.2vw,3.7rem); margin: 0 0 0.7rem; color: var(--cream); }
.cellar-sub { color: rgba(239,234,226,0.72); max-width: 600px; margin: 0 0 1rem; }

.cellar-scroll { overflow: visible; }
.cellar { display:flex; gap: clamp(0.35rem,0.9vw,0.95rem); align-items:flex-start; padding-top: 0.3rem; }
.cellar-col { flex: 1 1 0; min-width: 0; display:flex; flex-direction:column; }
.cellar-col__head { display:flex; flex-direction:column; align-items:center; text-align:center; gap:0.12rem;
  padding-bottom: 0.7rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(243,237,226,0.16); min-height: 3.6em; }
.cellar-col__code { font-family: var(--mono); font-weight:600; font-size:0.62rem; letter-spacing:0.12em; color: var(--ochre-light); }
.cellar-col__name { font-size:0.74rem; line-height:1.18; color: rgba(239,234,226,0.82); }
.cellar-col__n { font-family: var(--mono); font-size:0.58rem; color: rgba(239,234,226,0.45); }
.cellar-rack { display:flex; flex-direction:column; align-items:center; gap: clamp(0.5rem,1vw,0.85rem); }
.cellar-slot { position: relative; z-index: 1; isolation: isolate; }
/* lift the hovered/focused slot above every sibling column, the cellar header and the sticky
   toolbar; promote it to its own compositing layer too (sticky siblings can otherwise paint
   over later content despite a lower z-index in some browsers). */
.cellar-slot:hover, .cellar-slot:focus-within { z-index: 245; will-change: transform; }

.cellar-bottle {
  --bd: clamp(62px, 6.8vw, 84px);
  display: block;
  position: relative; width: var(--bd); height: var(--bd);
  border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 50%;
  opacity: 0; transform: translateY(8px) scale(0.85);
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.cellar-bottle.seen { opacity: 1; transform: none; }
.cellar-bottle__punt {
  position:absolute; inset:0; border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0.58) 0 10%, rgba(0,0,0,0) 14%),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 47%, rgba(0,0,0,0.34) 59%, rgba(0,0,0,0) 68%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 85%, rgba(255,255,255,0.26) 92%, rgba(255,255,255,0) 97%),
    radial-gradient(circle at 38% 30%, rgba(255,255,255,0.5), rgba(255,255,255,0) 44%),
    radial-gradient(circle at 50% 62%, var(--g-lo), var(--g-hi) 86%);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,0.32),
    inset 0 -5px 9px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 6px 12px -2px rgba(0,0,0,0.55),
    0 1px 2px rgba(0,0,0,0.4);
  border: 1px solid rgba(20,16,19,0.35);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cellar-bottle--flagship    { --g-lo:#8a7480; --g-hi:#2a2026; }
.cellar-bottle--promising   { --g-lo:#d8bd78; --g-hi:#574620; }
.cellar-bottle--exploratory { --g-lo:#8fa06f; --g-hi:#333e28; }
.cellar-bottle--longshot    { --g-lo:#a59d92; --g-hi:#423f3a; }
.cellar-bottle:hover .cellar-bottle__punt {
  transform: scale(1.13);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,0.36),
    inset 0 -5px 10px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 10px 20px -3px rgba(0,0,0,0.6),
    0 2px 3px rgba(0,0,0,0.45);
}
.cellar-bottle:focus-visible { outline: none; }
.cellar-bottle:focus-visible .cellar-bottle__punt { outline: 2px solid var(--ochre); outline-offset: 3px; transform: scale(1.13); }

/* idea name written on the bottle bottom */
.cellar-bottle__label { position:absolute; inset:0; z-index:1; display:flex; align-items:center; justify-content:center;
  padding: 13%; pointer-events:none; border-radius:50%;
  background: radial-gradient(circle at 50% 52%, rgba(18,14,17,0.44), rgba(18,14,17,0) 70%);
  transition: transform .25s var(--ease); }
.cellar-bottle__label-t { font-family: var(--mono); font-weight:600; line-height:1.14; text-align:center;
  font-size: clamp(0.44rem, 1vw, 0.58rem); letter-spacing:0.01em; color: var(--cream);
  text-shadow: 0 1px 2px rgba(0,0,0,0.9);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
@media (min-width: 761px){
  .cellar-bottle__label-t { font-size: clamp(0.6rem, 1.05vw, 0.74rem); }
}
.cellar-bottle:hover .cellar-bottle__label,
.cellar-bottle:focus-visible .cellar-bottle__label { transform: scale(1.12); }

/* hover preview — the full opportunity card, reusing the .opp__* styles */
.cellar-card {
  position:absolute; left:50%; bottom: calc(100% + 14px); transform: translate(-50%, 8px);
  width: min(310px, 80vw); background: var(--paper); color: var(--ink);
  border:1px solid var(--line); border-radius:9px; padding: 1.1rem 1.2rem 1.2rem;
  display:flex; flex-direction:column; gap:0.7rem; text-align:left;
  box-shadow: 0 30px 64px -26px rgba(0,0,0,0.7);
  opacity:0; pointer-events:none; z-index:245; will-change: transform;
  transition: opacity .2s ease, transform .2s ease;
}
.cellar-card::after { content:''; position:absolute; top:100%; left:50%; transform:translateX(-50%);
  border:8px solid transparent; border-top-color: var(--paper); }
.cellar-card .opp__name { font-size: clamp(1.3rem,1.6vw,1.55rem); }
.cellar-card .opp__desc { font-size:0.88rem; }
.cellar-card .opp__radar-val { fill: rgba(184,154,90,0.42); }
.cellar-card .opp__open { color: var(--wine); }
.cellar-slot:hover .cellar-card,
.cellar-bottle:focus-visible + .cellar-card { opacity:1; transform: translate(-50%, 0); pointer-events:auto; }

/* keep the preview on-screen at the rack edges */
.cellar-col:first-child .cellar-card { left:0; transform: translate(0, 8px); }
.cellar-col:first-child .cellar-slot:hover .cellar-card,
.cellar-col:first-child .cellar-bottle:focus-visible + .cellar-card { transform: translate(0,0); }
.cellar-col:first-child .cellar-card::after { left:34px; }
.cellar-col:last-child .cellar-card { left:auto; right:0; transform: translate(0, 8px); }
.cellar-col:last-child .cellar-slot:hover .cellar-card,
.cellar-col:last-child .cellar-bottle:focus-visible + .cellar-card { transform: translate(0,0); }
.cellar-col:last-child .cellar-card::after { left:auto; right:34px; }

@media (max-width: 760px){
  /* split the sectors into two rows of four columns so the cellar fits without horizontal scrolling */
  .cellar-scroll { overflow: visible; }
  .cellar { display:grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem 0.4rem; }
  .cellar-col { flex: none; min-width: 0; }
  .cellar-col__head { min-height: 4.4em; }
  .cellar-col__name { font-size: 0.62rem; }
  .cellar-bottle { --bd: 56px; }
  .cellar-card { display:none; }
}

@media (prefers-reduced-motion: reduce){
  .cellar-bottle { transition: opacity .2s linear; transform: none; }
  .vid-card__dot { animation: none; }
}
