/* ==========================================================================
   MISJ STUCO — 04 THE TEAMS
   Department network · mobile spine list · immersive department experience
   ========================================================================== */

.depts { padding-top: clamp(48px, 10vh, 88px); padding-bottom: clamp(32px, 8vh, 80px); }
.depts__count { font-size: min(7.68vw, 15.5rem); }
.depts__one { color: var(--yellow); margin-top: .12em; }
.depts__intro { text-align: center; }
.depts__intro .lede { margin-top: clamp(19.2px, 4.5vh, 38.4px); }

/* ---------- network ---------- */
.net { position: relative; height: 100vh; height: 100svh; min-height: 560px; margin-top: clamp(24px, 6vh, 64px); overflow: hidden; }
.net__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.net__lines path { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 1; transition: stroke .45s, opacity .45s, stroke-width .45s; }
.net__lines path.ring { stroke: rgba(255, 255, 255, .08); stroke-dasharray: 2 7; }
.net__lines path.on { stroke: var(--yellow); stroke-width: 1.6; stroke-dasharray: 6 6; animation: flow .9s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -12; } }
.net.has-active .net__lines path:not(.on) { opacity: .3; }

.net__core {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: var(--core, 240px); height: var(--core, 240px);
  margin: calc(var(--core, 240px) / -2) 0 0 calc(var(--core, 240px) / -2);
  border-radius: 50%; display: grid; place-items: center; text-align: center;
}
.net__core::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: radial-gradient(circle, rgba(26, 71, 214, .28), transparent 70%); }
.net__core::after { content: ""; position: absolute; inset: -16%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .09); animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.net__motif { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; opacity: 0; transition: opacity .7s; -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 71%); mask-image: radial-gradient(circle, #000 52%, transparent 71%); }
.net.has-active .net__motif { opacity: .9; }
.net__idle { position: relative; display: grid; gap: .55rem; transition: opacity .5s, transform .7s var(--ease); }
.net__idle .micro { color: var(--yellow); font-size: .62rem; }
.net__idle strong { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(2.6rem, 3.68vw, 5.4rem); margin-right: -.05em; }
.net.has-active .net__idle { opacity: 0; transform: scale(.9); }
.net__info { position: absolute; inset: 9%; display: grid; place-content: center; justify-items: center; gap: .7rem; opacity: 0; transition: opacity .5s; pointer-events: none; }
.net.has-active .net__info { opacity: 1; }
.ni { display: grid; justify-items: center; gap: .7rem; animation: spotIn .6s var(--ease) both; }
.ni__num { color: var(--yellow); }
.ni__name { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(1.1rem, 1.36vw, 1.9rem); max-width: 13ch; }
.ni__desc { font-size: .82rem; line-height: 1.4; color: rgba(255, 255, 255, .78); max-width: 28ch; }
.ni__keys { color: var(--white); font-size: .6rem; }
.ni__keys b { color: var(--yellow); font-weight: 500; }
.net--compact .ni__desc { display: none; }

.net__nodes { position: absolute; inset: 0; z-index: 2; }
.nnode { position: absolute; left: 0; top: 0; transition: opacity .5s; will-change: transform; }
.nnode__btn { position: relative; display: flex; align-items: center; gap: 11.2px; transform: translate(-7.2px, -50%); text-align: left; }
.nnode--l .nnode__btn { flex-direction: row-reverse; transform: translate(calc(-100% + 7.2px), -50%); text-align: right; }
.nnode__dot {
  position: relative; flex: none; width: 14.4px; height: 14.4px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .6); background: var(--navy-900);
  transition: transform .7s var(--ease), background .4s, border-color .4s, box-shadow .4s, border-radius .5s;
}
.nnode__dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--yellow); transition: transform .5s var(--ease); }
.nnode__txt { display: grid; gap: 3.2px; }
.nnode__num { color: var(--yellow); font-size: .6rem; }
.nnode__name { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; font-size: clamp(.8rem, .74vw, 1.05rem); max-width: 15ch; transition: transform .6s var(--ease), color .4s; }
.net.has-active .nnode:not(.is-on) { opacity: .26; }
.nnode.is-on { z-index: 3; }
.nnode.is-on .nnode__dot { transform: scale(1.75) rotate(45deg); border-radius: 4px; background: var(--yellow); border-color: var(--yellow); box-shadow: 0 0 0 8px rgba(255, 210, 31, .12), 0 0 30px var(--yellow-glow); }
.nnode.is-on .nnode__dot::after { transform: scale(0); }
.nnode.is-on .nnode__name { transform: translateX(6.4px); }
.nnode--l.is-on .nnode__name { transform: translateX(-6.4px); }
.net__hint { position: absolute; left: 50%; bottom: 20.8px; transform: translateX(-50%); color: var(--mist); white-space: nowrap; }

/* ---------- mobile spine list (the journey line runs through the dots) ---------- */
.dlist { display: none; }
.dl__btn { position: relative; display: grid; gap: 4.8px; width: 100%; padding: 19.2px 32px 19.2px 0; text-align: left; border-bottom: 1px solid var(--hair); }
.dl__dot { position: absolute; left: calc(7.2px - var(--gutter) - 5.2px); top: 24px; width: 10.4px; height: 10.4px; border-radius: 50%; border: 1px solid var(--yellow); background: var(--navy-900); }
.dl__num { color: var(--yellow); }
.dl__name { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(1.6rem, 5.76vw, 2.8rem); }
.dl__keys { color: var(--mist); font-size: .6rem; }
.dl__go { position: absolute; right: 0; top: 20.8px; color: var(--yellow); font-size: 1.4rem; transition: transform .5s var(--ease); }
.dl__btn:active .dl__dot, .dl__btn:focus-visible .dl__dot { background: var(--yellow); }
.dl__btn:hover .dl__go { transform: translateX(3.2px); }

@media (max-width: 900px) {
  .net { height: min(100svh, 100vw); min-height: 520px; }
  .dlist { display: block; margin-top: 40px; }
}
/* phones: numbered dots round the ring, tap one to see it in the core */
@media (max-width: 599px) {
  .net { height: min(124vw, 640px); min-height: 0; }
  .net__hint { display: none; }
}
.net--small .nnode__btn, .net--small .nnode--l .nnode__btn { transform: translate(-50%, -50%); }
.net--small .nnode__txt { display: none; }
.net--small .nnode__dot { width: 36px; height: 36px; border-color: rgba(255, 255, 255, .45); }
.net--small .nnode__dot::after {
  content: attr(data-n); inset: 0; display: grid; place-items: center; border-radius: 50%; background: none;
  font: 600 .66rem/1 var(--f-label); color: var(--yellow); font-variant-numeric: tabular-nums;
}
.net--small .nnode.is-on .nnode__dot { transform: scale(1.25); border-radius: 50%; }
.net--small .nnode.is-on .nnode__dot::after { transform: none; color: var(--navy-950); }
.net--small .net__idle strong { font-size: clamp(2rem, 9vw, 2.6rem); }
.net--small .ni { gap: .45rem; }
.net--small .ni__name { font-size: clamp(1rem, 4.4vw, 1.25rem); }

/* ---------- department experience ---------- */
.dview {
  position: fixed; inset: 0; z-index: 70; background: var(--navy-900);
  clip-path: circle(0px at var(--ox, 50%) var(--oy, 50%));
  transition: clip-path 1.05s var(--ease-io);
}
.dview.open { clip-path: circle(170vmax at var(--ox, 50%) var(--oy, 50%)); }
.dview__motif { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .6; pointer-events: none; }
.dview::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(5, 15, 51, .92), rgba(5, 15, 51, .2) 55%, rgba(5, 15, 51, .5)); }
.dview__bar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 9.6px; padding: clamp(11.2px, 2vw, 22.4px) var(--gutter); pointer-events: none; }
.dview__bar > * { pointer-events: auto; }
.dview__back { padding: 1em 1.3em; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(3, 10, 34, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .3s; }
.dview__back:hover { border-color: var(--yellow); }
.dview__count { color: var(--mist); padding: 1em 1.3em; border-radius: 999px; background: rgba(3, 10, 34, .4); }
.dview__count b { color: var(--yellow); font-weight: 500; }
.dview__scroll { position: absolute; inset: 0; z-index: 2; overflow-y: auto; overscroll-behavior: contain; outline: none; }
.dview__content { transition: opacity .45s var(--ease), transform .6s var(--ease); }
.dview__content.is-out { opacity: 0; transform: translateY(-28.8px); }

.dv-hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 112px var(--gutter) clamp(35.2px, 9vh, 80px); }
.dv-num { color: var(--yellow); margin-bottom: clamp(14.4px, 3vh, 27.2px); }
.dv-title { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-size: var(--fs, 8vw); }
.dv-title > span { display: block; overflow: hidden; padding: .06em 0; margin: -.06em 0; }
.dv-title > span > span { display: inline-block; white-space: nowrap; transform: translate3d(0, 105%, 0); transition: transform 1.2s var(--ease); }
.dv-title > span:nth-child(2) > span { transition-delay: .1s; }
.dview.ready .dv-title > span > span { transform: none; }
.dv-tag { margin-top: clamp(17.6px, 3.4vh, 32px); display: flex; align-items: center; font-weight: 500; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(1.1rem, 1.6vw, 2.1rem); }
.dv-keys { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .7em; color: var(--mist); }
.dv-keys b { color: var(--yellow); font-weight: 500; }
.dv-image { height: min(82svh, 60vw); margin-inline: var(--gutter); }
.dv-block { display: grid; grid-template-columns: minmax(170px, .45fr) 1.55fr; gap: 4vw; padding: clamp(56px, 13vh, 120px) var(--gutter); border-top: 1px solid var(--hair); }
.dv-block--first { border-top: 0; }
.dv-block--full { grid-template-columns: 1fr; padding-inline: 0; }
.dv-block--full .dv-label { padding-inline: var(--gutter); }
.dv-label { color: var(--yellow); padding-top: .7em; }
.dv-mission { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.04; font-size: clamp(1.8rem, 3.2vw, 4.8rem); max-width: 22ch; }
.dv-do li { display: grid; grid-template-columns: auto 1fr; gap: 2.4vw; align-items: baseline; padding: clamp(12.8px, 2.8vh, 24px) 0; border-bottom: 1px solid var(--hair); font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1; font-size: clamp(1.25rem, 2vw, 3rem); }
.dv-do li:first-child { border-top: 1px solid var(--hair); }
.dv-do li span { color: var(--yellow); }
.dv-people { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: 4vw; align-items: end; }
.dv-head .media { aspect-ratio: 3 / 4; }
.dv-head__cap { margin-top: 1rem; display: grid; gap: .35rem; }
.dv-head__cap .micro { color: var(--yellow); }
.dv-head__cap strong { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.dv-head__cap q { color: var(--mist); }
.dv-members { display: flex; flex-wrap: wrap; gap: .1em .45em; font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.02; font-size: clamp(1.5rem, 2.72vw, 4rem); }
.dv-members li { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .55); transition: color .3s; }
.dv-members li:hover { color: var(--white); }
.dv-members li:not(:last-child)::after { content: " /"; color: var(--yellow); -webkit-text-stroke: 0; }
.dv-members-label { color: var(--mist); margin-bottom: 1.2rem; }
.dv-projects li + li { border-top: 0; }
.dv-proj { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 2.4vw; width: 100%; padding: clamp(14.4px, 3vh, 24px) 0; border-bottom: 1px solid var(--hair); text-align: left; }
.dv-projects li:first-child .dv-proj { border-top: 1px solid var(--hair); }
.dv-proj__title { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(1.4rem, 2.32vw, 3.4rem); transition: transform .7s var(--ease), color .3s; }
.dv-proj:hover .dv-proj__title, .dv-proj:focus-visible .dv-proj__title { color: var(--yellow); transform: translateX(.2em); }
.dv-proj .micro { color: var(--mist); }
.dv-empty { color: var(--mist); }
.dv-stats { display: flex; flex-wrap: wrap; gap: 4vw 7vw; }
.dv-stat__num { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(3.6rem, 7.2vw, 10.5rem); font-variant-numeric: tabular-nums; }
.dv-stat__num span { color: var(--yellow); }
.dv-stat__label { color: var(--mist); margin-top: 1rem; }
.dv-gallery { display: flex; gap: clamp(11.2px, 2vw, 22.4px); overflow-x: auto; padding: 0 var(--gutter) 14.4px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--yellow) transparent; }
.dv-gallery .media { flex: none; width: clamp(208px, 44vw, 640px); aspect-ratio: 3 / 2; scroll-snap-align: start; }
.dv-gallery .media:nth-child(3n+2) { width: clamp(160px, 26vw, 376px); aspect-ratio: 4 / 5; }
.dv-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hair); }
.dv-nav button { display: grid; gap: .7rem; align-content: start; padding: clamp(25.6px, 7vh, 57.6px) var(--gutter); text-align: left; transition: background .5s; }
.dv-nav button:hover { background: rgba(255, 255, 255, .045); }
.dv-nav button:last-child { text-align: right; justify-items: end; border-left: 1px solid var(--hair); }
.dv-nav__dir { color: var(--yellow); }
.dv-nav__name { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(1.3rem, 2.4vw, 3.3rem); }
.dv-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22.4px var(--gutter) 35.2px; border-top: 1px solid var(--hair); }
.dv-foot button { color: var(--white); }
.dv-foot button:hover { color: var(--yellow); }
.dv-foot .micro:last-child { color: var(--mist); }

@media (max-width: 900px) {
  .dv-block { grid-template-columns: 1fr; gap: 19.2px; }
  .dv-people { grid-template-columns: 1fr; }
  .dv-head { max-width: 224px; }
  .dv-proj { grid-template-columns: 1fr auto; }
  .dv-proj .micro:last-child { display: none; }
  .dv-image { height: 62vw; }
  .dview__count { display: none; }
}

.reduce .dview, .reduce .dview__content, .reduce .dv-title > span > span { transition-duration: .01s !important; transition-delay: 0s !important; }
.reduce .net__core::after, .reduce .net__lines path.on { animation: none; }
