
/* =========================================================
   V0.10 — dynamic layer
   Interactivity without changing the art direction.
   ========================================================= */

/* shared CSS is the final authority for nav/type */
body{background:var(--paper)}

/* nav active state */
nav{transition:box-shadow .22s ease}
nav.is-scrolled{box-shadow:0 8px 28px rgba(44,47,39,.055)}

/* subtle reveal */
.js-reveal{
  opacity:0;
  transform:translateY(12px);
  transition:opacity .55s ease,transform .55s cubic-bezier(.2,.7,.2,1);
}
.js-reveal.is-visible{opacity:1;transform:none}

/* interactive institutional rows */
.service{
  position:relative;
  margin:0 -18px;
  padding-left:18px;
  padding-right:18px;
  border-radius:14px;
  cursor:pointer;
  transition:background .22s ease,transform .22s ease,box-shadow .22s ease;
}
.service::after{
  content:"↗";
  position:absolute;
  right:18px;
  top:18px;
  width:27px;
  height:27px;
  border:1px solid rgba(41,40,33,.12);
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:10px;
  color:#777168;
  opacity:0;
  transform:translateY(3px);
  transition:.18s ease;
}
.service:hover,
.service.is-selected{
  background:rgba(255,253,248,.66);
  transform:translateY(-1px);
  box-shadow:0 13px 34px rgba(49,65,55,.055);
}
.service:hover::after,
.service.is-selected::after{opacity:1;transform:none}
.service.is-selected{
  box-shadow:inset 3px 0 0 var(--service-accent,var(--botanical)),0 13px 34px rgba(49,65,55,.055);
}
.service:nth-child(1){--service-accent:var(--botanical)}
.service:nth-child(2){--service-accent:var(--rust)}
.service:nth-child(3){--service-accent:var(--ochre)}
.service:nth-child(4){--service-accent:var(--bark)}
.service:nth-child(5){--service-accent:var(--olive)}
.service:nth-child(6){--service-accent:var(--indigo)}

.step,
.timeline-row,
.layer{
  transition:background .2s ease,transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.step:hover,.timeline-row:hover{
  background:rgba(255,253,248,.24);
  transform:translateX(3px);
}
.layer{
  cursor:pointer;
  position:relative;
}
.layer:hover,.layer.is-selected{
  transform:translateY(-3px);
  background:rgba(255,253,248,.86);
  border-color:rgba(49,65,55,.18);
  box-shadow:0 14px 34px rgba(49,65,55,.06);
}
.layer.is-selected::before{
  content:"";
  position:absolute;
  left:16px;right:16px;top:0;height:2px;
  background:var(--rust);
}
.sector{transition:background .18s ease,transform .18s ease,border-color .18s ease}
.sector:hover{background:rgba(255,253,248,.5);transform:translateY(-1px);border-color:rgba(49,65,55,.2)}

/* ---- interactive wheel ---- */
.radar-svg{overflow:hidden}
.radar-target{cursor:pointer;outline:none}
.radar-sector{
  fill:transparent;
  transition:fill .22s ease;
  pointer-events:all;
}
.radar-axis{
  stroke:rgba(49,65,55,.14);
  stroke-width:1;
  transition:stroke .22s ease,stroke-width .22s ease,opacity .22s ease;
}
.radar-gap-line{
  stroke:var(--rust);
  stroke-width:3;
  stroke-linecap:round;
  opacity:0;
  transition:opacity .22s ease;
}
.radar-required-dot{
  fill:var(--white);
  stroke:var(--rust);
  stroke-width:2;
  opacity:0;
  transition:opacity .22s ease;
}
.radar-target .current-dot{
  transition:stroke .22s ease,stroke-width .22s ease,opacity .22s ease;
}
.radar-click-label{
  cursor:pointer;
}
.radar-click-label .label-bg{
  fill:rgba(255,253,248,0);
  stroke:rgba(49,65,55,0);
  transition:fill .22s ease,stroke .22s ease;
}
.radar-click-label .svg-label,
.radar-click-label .svg-value{
  transition:fill .22s ease,opacity .22s ease,font-weight .22s ease;
}
.radar-svg.has-active .radar-target:not(.is-active) .radar-axis,
.radar-svg.has-active .radar-target:not(.is-active) .current-dot{
  opacity:.36;
}
.radar-target.is-active .radar-sector{fill:rgba(151,81,60,.055)}
.radar-target.is-active .radar-axis{stroke:var(--rust);stroke-width:2}
.radar-target.is-active .radar-gap-line{opacity:1}
.radar-target.is-active .radar-required-dot{opacity:1}
.radar-target.is-active .current-dot{
  stroke:var(--rust);
  stroke-width:4;
  opacity:1;
}
.radar-click-label.is-active .label-bg{
  fill:rgba(255,253,248,.94);
  stroke:rgba(151,81,60,.22);
}
.radar-click-label.is-active .svg-label{fill:var(--rust);font-weight:760}
.radar-click-label.is-active .svg-value{fill:var(--botanical)}
.radar-click-label:focus-visible .label-bg{
  stroke:var(--botanical);
  stroke-width:1.5;
}

.wheel-legend .legend-item{
  cursor:pointer;
  user-select:none;
  padding:5px 7px;
  margin-left:-7px;
  border-radius:999px;
  transition:background .18s ease,opacity .18s ease;
}
.wheel-legend .legend-item:hover{background:rgba(255,253,248,.68)}
.wheel-legend .legend-item.is-muted{opacity:.35}
.radar-svg.hide-current .current-poly,
.radar-svg.hide-current .current-dot{opacity:0!important}
.radar-svg.hide-required .required-poly,
.radar-svg.hide-required .radar-required-dot{opacity:0!important}

.wheel-interaction-hint{
  display:flex;
  align-items:center;
  gap:8px;
  margin:12px 0 0;
  font-size:10px;
  color:#77736b;
}
.wheel-interaction-hint::before{
  content:"";
  width:6px;height:6px;border-radius:50%;background:var(--rust);
  box-shadow:0 0 0 4px rgba(151,81,60,.08);
}
.wheel-focus{
  margin-top:14px;
  padding:15px 16px;
  border:1px solid rgba(49,65,55,.10);
  border-radius:13px;
  background:#ece4d7;
  transition:background .2s ease,border-color .2s ease;
}
.wheel-focus-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.wheel-focus-title{
  font-size:13px;
  font-weight:650;
  color:var(--botanical);
}
.wheel-focus-status{
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.09em;
  font-weight:720;
  color:var(--rust);
  white-space:nowrap;
}
.wheel-focus-copy{
  margin:7px 0 0;
  font-size:11.5px;
  line-height:1.45;
  color:#5e615a;
}
.wheel-metrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
  margin-top:11px;
}
.wheel-metric{
  padding:8px 9px;
  border-radius:9px;
  background:rgba(255,253,248,.56);
}
.wheel-metric span{
  display:block;
  font-size:8px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#827d72;
}
.wheel-metric b{
  display:block;
  margin-top:2px;
  font-size:13px;
  font-weight:650;
  color:var(--ink);
}

/* interactive reading stack */
.reading{
  padding-left:10px;
  padding-right:10px;
  margin-left:-10px;
  margin-right:-10px;
  border-radius:10px;
  transition:background .2s ease,transform .2s ease;
}
.reading.is-linked{
  background:rgba(255,253,248,.5);
  transform:translateX(4px);
}

/* maintain restraint */
@media(max-width:640px){
  .service::after{display:none}
  .wheel-focus-top{display:block}
  .wheel-focus-status{display:block;margin-top:4px}
  .wheel-metrics{grid-template-columns:repeat(3,1fr)}
}

/* accessibility */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
  }
  .js-reveal{opacity:1;transform:none}
}


/* V0.11 — structured service lines */
.service{
  grid-template-columns:56px minmax(260px,.78fr) minmax(420px,1.22fr);
  align-items:start;
}
.service-lines{
  min-width:0;
  padding-right:44px;
}
.service-lines-label{
  display:block;
  margin-bottom:10px;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:700;
  color:#7b776e;
}
.service-line-list{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.service-line{
  appearance:none;
  border:1px solid rgba(49,65,55,.12);
  background:rgba(255,253,248,.42);
  color:#4e5751;
  border-radius:999px;
  padding:8px 10px;
  font-size:10.5px;
  line-height:1.1;
  font-weight:610;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}
.service-line:hover{
  background:rgba(255,253,248,.86);
  border-color:rgba(49,65,55,.20);
  transform:translateY(-1px);
}
.service-line.is-active{
  background:var(--botanical);
  color:#fff;
  border-color:var(--botanical);
}
.service-detail{
  min-height:0;
  max-height:0;
  overflow:hidden;
  opacity:0;
  margin-top:0;
  padding-top:0;
  border-top:1px solid transparent;
  font-size:11.5px;
  line-height:1.48;
  color:#62645e;
  transition:max-height .22s ease,opacity .22s ease,margin-top .22s ease,padding-top .22s ease,border-color .22s ease;
}
.service-detail.is-visible{
  max-height:120px;
  opacity:1;
  margin-top:12px;
  padding-top:10px;
  border-color:rgba(49,65,55,.09);
}
@media(max-width:980px){
  .service{
    grid-template-columns:48px 1fr;
  }
  .service-lines{
    grid-column:2;
    padding-right:0;
    margin-top:4px;
  }
}
@media(max-width:640px){
  .service-line-list{gap:6px}
  .service-line{font-size:10px;padding:7px 9px}
}
