:root {
  --paper: #f4f6f6;
  --ink: #18212a;
  --muted: #5d6871;
  --line: #cfd7dc;
  --panel: rgba(255, 255, 255, 0.9);
  --accent: #406177;
  --accent-soft: rgba(64, 97, 119, 0.13);
  --accent-green: #607e6f;
  --accent-warm: #9f7964;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: radial-gradient(130% 80% at 50% 0%, #ffffff 0%, var(--paper) 58%, #edf0f1 100%);
}

body {
  position: relative;
  min-height: 100vh;
  font-family: "ITC Avant Garde Gothic", "Avant Garde", "Century Gothic",
    "Futura", "Avenir Next", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(26vmax 22vmax at 16% 24%, rgba(120, 159, 184, 0.26), transparent 75%),
    radial-gradient(22vmax 20vmax at 86% 20%, rgba(149, 178, 158, 0.25), transparent 74%),
    radial-gradient(32vmax 24vmax at 50% 90%, rgba(188, 157, 137, 0.2), transparent 73%);
  filter: blur(46px);
  animation: drift 60s ease-in-out infinite alternate;
}

body.friday-portal {
  --hero-portrait-position: 50% 42%;
  --hero-portrait-filter: saturate(1.16) contrast(1.06) brightness(0.96);
  --hero-overlay:
    linear-gradient(102deg, rgba(12, 19, 25, 0.58) 0%, rgba(12, 19, 25, 0.36) 42%, rgba(12, 19, 25, 0.08) 70%, rgba(12, 19, 25, 0.3) 100%),
    radial-gradient(96% 130% at 82% 56%, rgba(0, 0, 0, 0) 42%, rgba(11, 16, 21, 0.34) 100%);
}

body.friday-portal.portrait-look-2 {
  --hero-portrait-position: 52% 40%;
  --hero-portrait-filter: saturate(1.24) contrast(1.09) brightness(0.98);
  --hero-overlay:
    linear-gradient(100deg, rgba(9, 17, 22, 0.52) 0%, rgba(9, 17, 22, 0.29) 40%, rgba(9, 17, 22, 0.06) 72%, rgba(9, 17, 22, 0.25) 100%),
    radial-gradient(96% 130% at 84% 55%, rgba(0, 0, 0, 0) 40%, rgba(11, 16, 21, 0.3) 100%);
}

body.friday-portal.portrait-look-3 {
  --hero-portrait-position: 49% 44%;
  --hero-portrait-filter: saturate(1.05) contrast(1.02) brightness(0.9);
  --hero-overlay:
    linear-gradient(104deg, rgba(13, 20, 27, 0.63) 0%, rgba(13, 20, 27, 0.4) 44%, rgba(13, 20, 27, 0.1) 72%, rgba(13, 20, 27, 0.34) 100%),
    radial-gradient(100% 140% at 80% 56%, rgba(0, 0, 0, 0) 42%, rgba(9, 14, 18, 0.38) 100%);
}

@keyframes drift {
  from {
    transform: translate3d(-1.2vmax, 1vmax, 0) scale(1);
  }
  to {
    transform: translate3d(1.3vmax, -1.1vmax, 0) scale(1.04);
  }
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.brand {
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--muted);
}

.back-link,
.home-link {
  text-decoration: none;
  color: var(--accent);
  border: 1px solid rgba(122, 153, 171, 0.5);
  padding: 0.45rem 0.72rem;
  border-radius: 0.6rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.74rem;
  background: rgba(235, 243, 246, 0.62);
}

.hero {
  border: 1px solid rgba(173, 187, 195, 0.78);
  border-radius: 1.1rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 247, 248, 0.84) 100%);
  backdrop-filter: blur(2px);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}

.friday-portal .hero {
  position: relative;
  min-height: clamp(220px, 26vw, 330px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-color: rgba(46, 56, 62, 0.5);
  background: #131a20;
  box-shadow: 0 24px 38px rgba(17, 26, 33, 0.2);
}

.friday-portal .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("./assets/joe-portrait.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--hero-portrait-position);
  filter: var(--hero-portrait-filter);
  transform: scale(1.03);
}

.friday-portal .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay);
}

.friday-portal .hero > * {
  position: relative;
  z-index: 2;
  max-width: min(78ch, 69%);
  color: #f4f7f9;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-green);
}

h1 {
  margin: 0.35rem 0 0.45rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.subtitle {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
}

.friday-portal .eyebrow {
  color: rgba(255, 228, 173, 0.94);
}

.friday-portal h1 {
  color: #f7fafc;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.friday-portal .subtitle {
  color: rgba(236, 243, 246, 0.94);
}

body.day-choice-page {
  --hero-portrait-position: 50% 42%;
  --hero-portrait-filter: saturate(1.16) contrast(1.06) brightness(0.96);
  --hero-overlay:
    linear-gradient(102deg, rgba(12, 19, 25, 0.58) 0%, rgba(12, 19, 25, 0.36) 42%, rgba(12, 19, 25, 0.08) 70%, rgba(12, 19, 25, 0.3) 100%),
    radial-gradient(96% 130% at 82% 56%, rgba(0, 0, 0, 0) 42%, rgba(11, 16, 21, 0.34) 100%);
  color: #e7eff9;
  background:
    radial-gradient(130% 95% at 16% 12%, #173764 0%, #10294c 38%, #0a1b34 66%, #050f1f 100%);
  overflow: hidden;
}

body.day-choice-page::before {
  background:
    radial-gradient(28vmax 26vmax at 10% 18%, rgba(92, 154, 216, 0.25), transparent 74%),
    radial-gradient(24vmax 20vmax at 84% 22%, rgba(83, 130, 197, 0.2), transparent 74%),
    radial-gradient(40vmax 30vmax at 54% 96%, rgba(21, 56, 106, 0.4), transparent 76%);
  filter: blur(52px);
  opacity: 0.92;
}

body.day-choice-page .shell {
  width: 100vw;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 1rem 1.2rem 1.1rem;
  position: relative;
  overflow: hidden;
}

body.day-choice-page .topbar {
  position: absolute;
  top: 1rem;
  left: 1.2rem;
  right: 1.2rem;
  z-index: 6;
  margin: 0;
  justify-content: space-between;
  gap: 0.62rem;
}

body.day-choice-page .brand {
  font-size: 0.64rem;
  color: rgba(201, 216, 234, 0.76);
}

body.day-choice-page .home-link {
  color: #d9ecff;
  border-color: rgba(132, 166, 202, 0.52);
  background: rgba(8, 22, 42, 0.48);
  margin-left: auto;
}

body.day-choice-page .hero--portrait {
  position: absolute;
  top: 2.8rem;
  left: 1.2rem;
  z-index: 5;
  width: min(360px, 33vw);
  min-height: clamp(98px, 9.2vw, 126px);
  margin: 0;
  padding: 0.62rem 0.78rem 0.7rem;
  border-radius: 0.78rem;
  background: #0a1a30;
  border-color: rgba(105, 136, 167, 0.42);
  box-shadow: 0 14px 28px rgba(3, 9, 18, 0.36);
}

body.day-choice-page .hero--portrait > * {
  max-width: 100%;
}

body.day-choice-page .hero--portrait .eyebrow {
  font-size: 0.49rem;
  letter-spacing: 0.24em;
  color: rgba(255, 218, 161, 0.92);
}

body.day-choice-page .hero--portrait h1 {
  margin: 0.24rem 0 0;
  font-size: clamp(0.95rem, 1.56vw, 1.36rem);
  letter-spacing: 0.16em;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

body.day-choice-page .hero--portrait .subtitle {
  display: none;
}

body.day-choice-page .day-picker {
  position: absolute;
  inset: 0;
  display: block;
  max-width: none;
  margin: 0;
  z-index: 2;
}

body.day-choice-page .day-token {
  position: absolute;
  width: auto;
  max-width: none;
  min-height: 0;
}

body.day-choice-page .day-token__text {
  font-size: clamp(8.4rem, 20vw, 20rem);
  letter-spacing: 0.03em;
  filter: drop-shadow(0 0.06em 0 var(--token-edge));
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.58),
    0 2px 0 rgba(67, 141, 173, 0.13),
    0 3px 0 rgba(67, 141, 173, 0.16),
    0 5px 9px rgba(57, 126, 157, 0.15);
}

body.day-choice-page .day-token--jeu {
  top: 55%;
  left: 22%;
  transform: translate(-50%, -50%);
}

body.day-choice-page .day-token--ven {
  top: 53%;
  left: 50%;
  transform: translate(-50%, -50%);
}

body.day-choice-page .day-token--sam {
  top: 56%;
  left: 78%;
  transform: translate(-50%, -50%);
}

body.day-choice-page .day-token::after {
  width: 80%;
  height: 0.82em;
  bottom: 0.02em;
  left: 10%;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(20, 42, 70, 0.24) 0%,
    rgba(20, 42, 70, 0.14) 40%,
    rgba(20, 42, 70, 0) 78%
  );
  transform: translateY(0.24em) scale(1.03, 0.72);
  filter: blur(6px);
  opacity: 0.34;
  transition: opacity 110ms linear, transform 140ms ease, filter 140ms ease;
}

body.day-choice-page .day-token::before {
  inset: -0.1em -0.08em -0.5em -0.08em;
  background: radial-gradient(
    ellipse at 50% 46%,
    color-mix(in srgb, var(--token-halo) 86%, white 14%) 0%,
    color-mix(in srgb, var(--token-halo) 56%, white 6%) 34%,
    color-mix(in srgb, var(--token-halo) 24%, transparent) 62%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: scale(0.98, 1.14);
  opacity: 0.28;
  filter: blur(8px);
  transition: transform 160ms ease, opacity 120ms linear, filter 180ms ease;
}

body.day-choice-page .day-token:hover .day-token__text,
body.day-choice-page .day-token:focus-visible .day-token__text,
body.day-choice-page .day-token.is-hovered .day-token__text {
  filter:
    drop-shadow(0 0 0.14em rgba(255, 255, 255, 0.26))
    drop-shadow(0 0.06em 0 var(--token-edge))
    brightness(1.13)
    saturate(1.34);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.52),
    0 0 14px rgba(255, 255, 255, 0.24),
    0 2px 0 color-mix(in srgb, var(--token-edge) 55%, transparent),
    0 3px 0 color-mix(in srgb, var(--token-halo) 34%, transparent),
    0 0 14px color-mix(in srgb, var(--token-halo) 38%, transparent);
}

body.day-choice-page .day-token:hover::before,
body.day-choice-page .day-token:focus-visible::before,
body.day-choice-page .day-token.is-hovered::before {
  background: radial-gradient(
    ellipse at 50% 44%,
    rgba(255, 255, 255, 0.52) 0%,
    color-mix(in srgb, var(--token-halo) 70%, white 30%) 30%,
    color-mix(in srgb, var(--token-halo) 30%, transparent) 62%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0.92;
  transform: scale(1.07, 1.28);
  filter: blur(13px);
}

body.day-choice-page .day-token:hover::after,
body.day-choice-page .day-token:focus-visible::after,
body.day-choice-page .day-token.is-hovered::after {
  opacity: 0.84;
  transform: translateY(0.32em) scale(1.18, 0.78);
  filter: blur(10px);
}

.hero--portrait {
  position: relative;
  min-height: clamp(220px, 26vw, 330px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-color: rgba(46, 56, 62, 0.5);
  background: #131a20;
  box-shadow: 0 24px 38px rgba(17, 26, 33, 0.2);
}

.hero--portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("./assets/joe-portrait.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--hero-portrait-position, 50% 42%);
  filter: var(--hero-portrait-filter, saturate(1.16) contrast(1.06) brightness(0.96));
  transform: scale(1.03);
}

.hero--portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(
    --hero-overlay,
    linear-gradient(102deg, rgba(12, 19, 25, 0.58) 0%, rgba(12, 19, 25, 0.36) 42%, rgba(12, 19, 25, 0.08) 70%, rgba(12, 19, 25, 0.3) 100%),
    radial-gradient(96% 130% at 82% 56%, rgba(0, 0, 0, 0) 42%, rgba(11, 16, 21, 0.34) 100%)
  );
}

.hero--portrait > * {
  position: relative;
  z-index: 2;
  max-width: min(78ch, 69%);
  color: #f4f7f9;
}

.hero--portrait .eyebrow {
  color: rgba(255, 228, 173, 0.94);
}

.hero--portrait h1 {
  color: #f7fafc;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.hero--portrait .subtitle {
  color: rgba(236, 243, 246, 0.94);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.card {
  border: 1px solid rgba(181, 193, 200, 0.86);
  border-left: 3px solid rgba(97, 130, 151, 0.6);
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94) 0%, rgba(238, 245, 247, 0.9) 100%);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.card h2 {
  margin: 0;
  font-size: 1.02rem;
  color: #2d4758;
}

.card p {
  margin: 0.52rem 0 0.88rem;
  color: var(--muted);
}

.cta {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(135deg, #2a4051 0%, #3e6077 100%);
  color: #f4f7fb;
  padding: 0.55rem 0.86rem;
  border-radius: 0.62rem;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-top: auto;
  align-self: flex-start;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  align-items: start;
}

.day-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  align-items: center;
  gap: clamp(1rem, 2.8vw, 2.6rem);
  max-width: min(1120px, 96vw);
  margin: 1.1rem auto 0;
}

.day-token {
  --token-top: #ffffff;
  --token-mid: #a9ebff;
  --token-bottom: #71ccf1;
  --token-stroke: rgba(54, 128, 163, 0.26);
  --token-edge: rgba(108, 198, 238, 0.28);
  --token-halo: rgba(89, 206, 255, 0.5);
  --token-float-delay: 0s;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 21rem;
  min-height: clamp(8.4rem, 14vw, 11.2rem);
  padding: 0;
  border-radius: 0.9rem;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  isolation: isolate;
  transition: opacity 120ms linear;
}

.day-token::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 58%, var(--token-halo) 0%, rgba(255, 255, 255, 0) 68%);
  transform: scale(0.9);
  opacity: 0.16;
  border-radius: 50%;
  transition: transform 120ms ease, opacity 80ms linear;
  pointer-events: none;
}

.day-token::after {
  content: "";
  position: absolute;
  width: 86%;
  height: 0.52em;
  bottom: 0.46rem;
  left: 7%;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(20, 34, 46, 0.18) 0%, rgba(20, 34, 46, 0) 72%);
  transform: translateY(0.2em) scale(1);
  z-index: 0;
  transition: opacity 80ms linear;
  pointer-events: none;
}

.day-token:hover,
.day-token:focus-visible,
.day-token.is-hovered {
  opacity: 1;
  filter: saturate(1.15);
  z-index: 4;
}

.day-token:hover::before,
.day-token:focus-visible::before,
.day-token.is-hovered::before {
  opacity: 0.96;
  transform: scale(1.08);
}

.day-token:hover::after,
.day-token:focus-visible::after,
.day-token.is-hovered::after {
  opacity: 0.9;
}

.day-token:focus-visible {
  outline: 3px solid rgba(24, 33, 42, 0.3);
  outline-offset: 3px;
}

.day-token__text {
  position: relative;
  z-index: 2;
  pointer-events: none;
  font-weight: 900;
  letter-spacing: 0.055em;
  font-size: clamp(5.8rem, 13vw, 11.8rem);
  line-height: 0.82;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--token-top) 0%, var(--token-mid) 44%, var(--token-bottom) 100%);
  background-size: 100% 135%;
  background-position: 50% 38%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.9px var(--token-stroke);
  filter: drop-shadow(0 0.06em 0 var(--token-edge));
  transform-origin: 50% 78%;
  animation: dayTokenGlyphFloat 4.6s cubic-bezier(0.46, 0.04, 0.22, 0.96) infinite;
  animation-delay: var(--token-float-delay);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.58),
    0 2px 0 rgba(67, 141, 173, 0.13),
    0 3px 0 rgba(67, 141, 173, 0.16),
    0 5px 9px rgba(57, 126, 157, 0.15);
  transition: filter 120ms ease, text-shadow 120ms ease;
}

.day-token:hover .day-token__text,
.day-token:focus-visible .day-token__text,
.day-token.is-hovered .day-token__text {
  filter: drop-shadow(0 0.06em 0 var(--token-edge)) brightness(1.05) saturate(1.44);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.46),
    0 2px 0 var(--token-edge),
    0 4px 8px rgba(57, 126, 157, 0.18),
    0 0 14px var(--token-halo);
}

.day-token--jeu {
  --token-top: #fffef0;
  --token-mid: #ffef8d;
  --token-bottom: #ffd35f;
  --token-stroke: rgba(160, 111, 28, 0.28);
  --token-edge: rgba(255, 212, 108, 0.3);
  --token-halo: rgba(255, 201, 70, 0.62);
  --token-float-delay: -0.4s;
}

.day-token--ven {
  --token-top: #f4feff;
  --token-mid: #8fe3ff;
  --token-bottom: #56cbf4;
  --token-stroke: rgba(34, 112, 146, 0.28);
  --token-edge: rgba(109, 212, 248, 0.32);
  --token-halo: rgba(70, 206, 255, 0.6);
  --token-float-delay: -0.1s;
}

.day-token--sam {
  --token-top: #f6fff0;
  --token-mid: #a8eb86;
  --token-bottom: #6fd77a;
  --token-stroke: rgba(57, 122, 54, 0.28);
  --token-edge: rgba(136, 227, 134, 0.32);
  --token-halo: rgba(107, 222, 104, 0.58);
  --token-float-delay: -0.7s;
}

@keyframes dayTokenGlyphFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotateX(0deg);
  }
  28% {
    transform: translate3d(0, -0.018em, 0) rotateX(4deg);
  }
  52% {
    transform: translate3d(0, -0.034em, 0) rotateX(7deg);
  }
  78% {
    transform: translate3d(0, -0.016em, 0) rotateX(3deg);
  }
}

.block {
  border: 1px solid rgba(181, 193, 200, 0.86);
  border-radius: 1rem;
  background: var(--panel);
  padding: 1rem;
}

.block h2 {
  margin: 0 0 0.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: #34556a;
}

.block ul {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
}

.block li {
  margin-bottom: 0.42rem;
}

.absences-block {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.absences-support {
  display: grid;
  gap: 0.3rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(184, 197, 205, 0.72);
}

.links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.calendar-tools {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.calendar-tools label {
  margin: 0;
}

.calendar-block {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.friday-cockpit {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.cockpit-screen {
  border: 1px solid rgba(120, 142, 157, 0.62);
  border-radius: 0.86rem;
  padding: 0.82rem;
  background:
    linear-gradient(165deg, rgba(42, 57, 67, 0.96) 0%, rgba(32, 45, 55, 0.95) 70%),
    radial-gradient(circle at 50% 0%, rgba(98, 133, 155, 0.33) 0%, transparent 55%);
  color: #e8eef3;
}

.cockpit-label {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 221, 236, 0.88);
}

.cockpit-screen h3 {
  margin: 0.28rem 0 0.68rem;
  font-size: clamp(1.08rem, 2.2vw, 1.32rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.screen-slots {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
}

.screen-slots li {
  display: grid;
  grid-template-columns: 4.1rem 1fr;
  gap: 0.4rem;
  align-items: baseline;
  padding: 0.22rem 0;
  border-bottom: 1px dashed rgba(175, 200, 216, 0.35);
}

.screen-slots li.screen-slot--absence {
  grid-template-columns: max-content 1fr;
}

.screen-slots li:last-child {
  border-bottom: none;
}

.screen-slot-time {
  color: rgba(175, 212, 237, 0.98);
  font-weight: 600;
}

.screen-slot-name {
  color: rgba(235, 241, 247, 0.95);
}

.ball-stage {
  position: relative;
  padding: 0.85rem 0.78rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(56, 76, 89, 0.45);
  background:
    radial-gradient(circle at 50% 40%, rgba(75, 124, 141, 0.34) 0%, rgba(75, 124, 141, 0) 58%),
    linear-gradient(165deg, rgba(28, 37, 44, 0.94) 0%, rgba(36, 49, 58, 0.95) 52%, rgba(25, 36, 28, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -10px 20px rgba(0, 0, 0, 0.28);
}

.ball-stage > * {
  position: relative;
  z-index: 1;
}

.ball-layout {
  display: grid;
  grid-template-columns: auto minmax(7.6rem, auto);
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.ball-shell {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.ball-shell::before {
  content: "";
  position: absolute;
  width: min(52vw, 270px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 161, 0.22) 0%, rgba(255, 240, 161, 0) 70%);
  filter: blur(8px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  pointer-events: none;
}

.date-ball {
  position: relative;
  width: min(42vw, 198px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(190, 214, 226, 0.34);
  background: radial-gradient(
    circle at 50% 28%,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(97, 140, 159, 0.12) 44%,
    rgba(30, 43, 51, 0.24) 100%
  );
  box-shadow:
    0 12px 26px rgba(10, 22, 32, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -20px 36px rgba(0, 0, 0, 0.24);
  transform-style: preserve-3d;
  will-change: box-shadow;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}

.date-ball__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.date-ball * {
  user-select: none;
  -webkit-user-select: none;
}

.ball-gesture-indicator {
  display: grid;
  justify-items: start;
  gap: 0.24rem;
  color: rgba(230, 239, 244, 0.82);
  pointer-events: auto;
}

.gesture-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.gesture-nav {
  appearance: none;
  border: 1px solid rgba(184, 193, 171, 0.5);
  border-radius: 999px;
  width: 1.86rem;
  height: 1.86rem;
  display: grid;
  place-items: center;
  padding: 0;
  color: #eaf1e8;
  background: linear-gradient(180deg, rgba(82, 113, 65, 0.52) 0%, rgba(54, 78, 62, 0.62) 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.26);
  cursor: pointer;
}

.gesture-nav:hover:not(:disabled) {
  border-color: rgba(255, 240, 161, 0.7);
  transform: translateY(-1px);
}

.gesture-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gesture-label {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(228, 239, 234, 0.94);
}

.gesture-arrow {
  font-size: 0.76rem;
  line-height: 1;
  opacity: 0.9;
}

.gesture-track {
  width: 4px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 240, 161, 0.45) 0%, rgba(75, 124, 141, 0.35) 100%);
  position: relative;
  overflow: hidden;
  margin-left: 0.88rem;
}

.gesture-dot {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  display: block;
  animation: gesture-pulse 1.55s ease-in-out infinite;
}

.gesture-text {
  margin-top: 0.14rem;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 240, 161, 0.82);
  margin-left: 0.06rem;
}

@keyframes gesture-pulse {
  0% {
    transform: translateY(0);
    opacity: 0.95;
  }
  50% {
    transform: translateY(20px);
    opacity: 0.75;
  }
  100% {
    transform: translateY(0);
    opacity: 0.95;
  }
}

.date-ball::before {
  content: "";
  position: absolute;
  inset: 4.8%;
  border-radius: 50%;
  border: 1px solid rgba(255, 242, 189, 0.42);
  box-shadow:
    inset 0 0 8px rgba(255, 255, 255, 0.24),
    0 0 12px rgba(151, 203, 225, 0.2);
  z-index: 5;
  pointer-events: none;
}

.date-ball::after {
  content: "";
  position: absolute;
  inset: auto 15% 6% 15%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(9, 16, 23, 0.24) 0%, rgba(9, 16, 23, 0) 72%);
  filter: blur(6px);
  z-index: 2;
  pointer-events: none;
}

.date-ball.is-grabbing {
  cursor: grabbing;
  box-shadow:
    0 14px 30px rgba(7, 18, 26, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -22px 40px rgba(0, 0, 0, 0.28);
}

.date-ball.is-wheeling {
  box-shadow:
    0 14px 28px rgba(7, 18, 26, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -20px 38px rgba(0, 0, 0, 0.28);
}

.date-ball:focus-visible {
  outline: 2px solid rgba(56, 96, 120, 0.9);
  outline-offset: 4px;
}

.date-ball__gloss {
  position: absolute;
  inset: 14% 22% 48% 18%;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 248, 212, 0.48) 0%, rgba(255, 255, 255, 0.04) 80%);
  z-index: 4;
  pointer-events: none;
}

.date-ball__core {
  position: absolute;
  inset: 0;
  overflow: hidden;
  text-align: center;
  z-index: 6;
  pointer-events: none;
}

.date-ball.is-ready .date-ball__core {
  opacity: 0;
}

.date-ball.is-ready .date-ball__gloss {
  opacity: 0;
}

.date-ball.is-ready {
  overflow: visible;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.date-ball.is-ready .date-ball__canvas {
  border-radius: 0;
}

.date-ball.is-ready::before,
.date-ball.is-ready::after {
  opacity: 0;
}

.date-ball__peek {
  position: absolute;
  left: 50%;
  max-width: 76%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
  transform: translateX(-50%) scale(0.92);
  font-size: clamp(0.54rem, 1.4vw, 0.66rem);
  letter-spacing: 0.16em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(232, 241, 246, 0.8);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 7;
}

.date-ball__peek--top {
  top: 0;
}

.date-ball__peek--bottom {
  bottom: 0;
}

.date-ball__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-transform: uppercase;
  color: #f7f7f7;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.36);
  transform: translateY(0%);
  pointer-events: none;
  z-index: 8;
}

#friday-ball-next {
  transform: translateY(-100%);
}

.date-ball--fallback {
  border: 1px solid rgba(82, 113, 65, 0.5);
  background:
    radial-gradient(
      circle at 30% 21%,
      #ffffff 0%,
      #fffffa 20%,
      #f2f2f2 35%,
      #e1d5be 52%,
      #b1b09e 68%,
      #4b7c8d 84%,
      #527141 100%
    );
}

.date-ball--fallback .date-ball__canvas {
  display: none;
}

.date-ball__month {
  display: inline-block;
  justify-self: center;
  font-size: clamp(0.72rem, 1.7vw, 0.82rem);
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #1f2d24;
  background: linear-gradient(180deg, rgba(255, 240, 161, 0.9) 0%, rgba(225, 213, 190, 0.94) 100%);
  border: 1px solid rgba(82, 113, 65, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.46rem 0.13rem;
  text-shadow: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.date-ball__day {
  font-size: clamp(2rem, 6vw, 2.5rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.46);
}

.quick-dock {
  display: grid;
  gap: 0.65rem;
}

.quick-dock--stack {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .quick-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-dock--stack {
    grid-template-columns: 1fr;
  }
}

.quick-panel {
  border: 1px solid rgba(184, 198, 207, 0.86);
  border-radius: 0.7rem;
  background: linear-gradient(164deg, rgba(255, 255, 255, 0.94) 0%, rgba(239, 246, 248, 0.93) 100%);
  padding: 0.25rem 0.62rem 0.62rem;
}

.quick-panel summary {
  cursor: pointer;
  list-style: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #335368;
  font-size: 0.76rem;
  padding: 0.48rem 0.1rem 0.28rem;
}

.quick-panel summary::-webkit-details-marker {
  display: none;
}

.quick-panel .links {
  max-height: 14rem;
  overflow: auto;
  padding-right: 0.1rem;
}

.quick-dock--stack .quick-panel .links {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.choir-roster {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.28rem;
  color: var(--muted);
}

.choir-roster li {
  margin: 0;
}

.resources-panel {
  padding-top: 0.7rem;
}

.panel-title {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #335368;
  font-size: 0.76rem;
}

.resource-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
}

.resource-item {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0.26rem;
  --resource-bg: linear-gradient(140deg, rgba(225, 213, 190, 0.88) 0%, rgba(255, 255, 255, 0.96) 100%);
  --resource-border: rgba(179, 164, 138, 0.65);
  --resource-ink: #223a49;
  --resource-shadow: rgba(30, 47, 58, 0.24);
}

.resource-symbol {
  text-decoration: none;
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 34%;
  display: grid;
  place-items: center;
  border: 1px solid var(--resource-border);
  background: var(--resource-bg);
  color: var(--resource-ink);
  box-shadow:
    0 11px 24px var(--resource-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 170ms ease, box-shadow 170ms ease, filter 170ms ease;
}

.resource-symbol:hover,
.resource-item:focus-within .resource-symbol {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 16px 30px var(--resource-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  filter: saturate(1.12);
}

.resource-symbol span {
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: 0.01em;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.resource-copy {
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-7px);
  transition: max-height 210ms ease, opacity 180ms ease, transform 210ms ease;
  text-align: center;
}

.resource-item:hover .resource-copy,
.resource-item:focus-within .resource-copy {
  max-height: 7.2rem;
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.45rem;
}

.resource-copy strong {
  display: block;
  color: #223a49;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.06rem;
  text-transform: uppercase;
}

.resource-copy span {
  display: block;
  color: #405767;
  font-size: 0.82rem;
  line-height: 1.35;
}

.resource-item--notation {
  --resource-bg: linear-gradient(145deg, rgba(255, 240, 161, 0.96) 0%, rgba(225, 213, 190, 0.95) 52%, rgba(255, 255, 255, 0.95) 100%);
  --resource-border: rgba(188, 162, 107, 0.84);
  --resource-ink: #2d3f1f;
  --resource-shadow: rgba(139, 115, 48, 0.27);
}

.resource-item--notation .resource-symbol {
  border-radius: 26% 40% 30% 44%;
  transform: rotate(-6deg);
}

.resource-item--notation .resource-symbol:hover,
.resource-item--notation:focus-within .resource-symbol {
  transform: rotate(-6deg) translateY(-2px) scale(1.02);
}

.resource-item--archive {
  --resource-bg: transparent;
  --resource-border: transparent;
  --resource-ink: #315769;
  --resource-shadow: rgba(42, 70, 85, 0.32);
}

.resource-item--archive .resource-symbol {
  width: 6.6rem;
  height: 5.5rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.resource-item--syllabus {
  --resource-bg: transparent;
  --resource-border: transparent;
  --resource-ink: #255669;
  --resource-shadow: rgba(45, 84, 70, 0.34);
}

.resource-item--syllabus .resource-symbol {
  width: 6.6rem;
  height: 5.5rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.resource-symbol--books .books-stack {
  position: relative;
  width: 6rem;
  height: 5rem;
  display: block;
}

.resource-symbol--books .book {
  position: absolute;
  bottom: 0.35rem;
  width: 1.08rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(37, 72, 88, 0.36);
  box-shadow:
    0 5px 10px rgba(37, 72, 88, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, rgba(186, 214, 228, 0.9) 0%, rgba(75, 124, 141, 0.92) 100%);
}

.resource-symbol--books .book::before {
  content: "";
  position: absolute;
  inset: 0.3rem 0.22rem auto 0.22rem;
  height: 0.22rem;
  border-radius: 999px;
  background: rgba(240, 251, 255, 0.74);
}

.resource-symbol--books .book--one {
  left: 2.14rem;
  height: 4.25rem;
}

.resource-symbol--books .book--two {
  left: 3.34rem;
  height: 4.45rem;
  background: linear-gradient(180deg, rgba(255, 240, 161, 0.93) 0%, rgba(196, 167, 102, 0.92) 100%);
  border-color: rgba(152, 119, 56, 0.4);
}

.resource-symbol--books .book--three {
  left: 4.54rem;
  height: 4rem;
  background: linear-gradient(180deg, rgba(191, 205, 173, 0.92) 0%, rgba(82, 113, 65, 0.92) 100%);
  border-color: rgba(66, 91, 52, 0.44);
}

.resource-symbol--books .book--lean {
  left: 1.04rem;
  height: 4.22rem;
  transform: rotate(-17deg);
  transform-origin: bottom right;
  background: linear-gradient(180deg, rgba(230, 238, 244, 0.96) 0%, rgba(133, 160, 177, 0.95) 100%);
}

.resource-symbol--info .info-glyph {
  font-size: 5.8rem;
  line-height: 0.78;
  letter-spacing: -0.06em;
  font-weight: 800;
  color: #2e5f72;
  text-shadow:
    0 6px 12px rgba(59, 97, 116, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.7);
}

.resource-item--archive .resource-symbol:hover,
.resource-item--archive:focus-within .resource-symbol,
.resource-item--syllabus .resource-symbol:hover,
.resource-item--syllabus:focus-within .resource-symbol {
  transform: translateY(-3px) scale(1.03);
  filter: saturate(1.12);
  box-shadow: none;
}

@media (hover: none), (pointer: coarse) {
  .resource-buttons {
    grid-template-columns: 1fr;
  }

  .resource-item {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
    gap: 0.84rem;
  }

  .resource-copy {
    max-height: none;
    opacity: 1;
    overflow: visible;
    transform: none;
    margin-top: 0;
    text-align: left;
  }
}

.accordion {
  display: grid;
  gap: 0.48rem;
}

.accordion details {
  border: 1px solid rgba(191, 202, 209, 0.92);
  border-radius: 0.72rem;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 246, 248, 0.92) 100%);
  overflow: clip;
}

.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 0.7rem 0.78rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2f4e63;
  background: rgba(224, 236, 242, 0.48);
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion details[open] > summary {
  border-bottom: 1px solid rgba(191, 202, 209, 0.75);
  background: rgba(214, 230, 238, 0.62);
}

.slot-list {
  margin: 0;
  padding: 0.62rem 0.78rem 0.72rem;
  list-style: none;
}

.slot-list li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.25rem 0;
  border-bottom: 1px dashed rgba(203, 211, 218, 0.8);
}

.slot-list li.slot-list--absence {
  grid-template-columns: max-content 1fr;
}

.slot-list li:last-child {
  border-bottom: none;
}

.slot-time {
  color: #35566b;
  font-weight: 600;
}

.slot-name {
  color: #293540;
}

.resource {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(194, 204, 210, 0.9);
  border-radius: 0.62rem;
  padding: 0.38rem 0.58rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(242, 247, 248, 0.92) 100%);
}

.resource strong {
  display: block;
  color: #2d4a5c;
  margin-bottom: 0.02rem;
  font-size: 0.84rem;
  line-height: 1.2;
}

.resource span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.16;
}

.quick-panel .links {
  gap: 0.36rem;
}

form {
  display: grid;
  gap: 0.72rem;
}

.row {
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 0.34rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

input,
textarea,
button,
select {
  font: inherit;
}

input,
textarea,
select {
  border: 1px solid rgba(191, 202, 209, 0.95);
  border-radius: 0.64rem;
  padding: 0.62rem 0.74rem;
  color: var(--ink);
  background: #ffffff;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(86, 126, 148, 0.82);
  box-shadow: 0 0 0 3px rgba(90, 132, 154, 0.14);
}

textarea {
  min-height: 5.2rem;
  resize: vertical;
}

button:not(.gesture-nav) {
  border: none;
  border-radius: 0.64rem;
  background: linear-gradient(135deg, #294153 0%, #3f6177 100%);
  color: #f4f7fb;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.72rem 0.85rem;
  cursor: pointer;
}

button:not(.gesture-nav):disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  min-height: 1.2rem;
  margin: 0.15rem 0 0;
  color: #3f5f75;
}

.hint {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.friday-portal .hint {
  margin-top: 0;
}

.friday-portal .block h2 {
  margin: 0;
}

.friday-portal .calendar-block {
  gap: 0.16rem;
}

.friday-portal .absences-support {
  gap: 0.16rem;
}

.trap {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

body.portfolio-page {
  background:
    radial-gradient(140% 88% at 50% -12%, #ffffff 0%, #f5f7f7 52%, #edf1f2 100%);
}

body.portfolio-page::before {
  background:
    radial-gradient(26vmax 22vmax at 12% 18%, rgba(128, 161, 186, 0.18), transparent 74%),
    radial-gradient(24vmax 22vmax at 88% 20%, rgba(150, 179, 160, 0.18), transparent 74%),
    radial-gradient(32vmax 24vmax at 50% 94%, rgba(188, 157, 137, 0.15), transparent 76%);
  filter: blur(54px);
}

.portfolio-page .shell {
  width: min(1280px, 95vw);
}

.portfolio-top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.portfolio-page .hero {
  margin-bottom: 0.9rem;
  border-color: rgba(169, 183, 191, 0.74);
  background: linear-gradient(162deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 247, 248, 0.9) 100%);
}

.portfolio-page .eyebrow {
  color: #5b7868;
}

.portfolio-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.portfolio-summary p {
  margin: 0;
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(185, 197, 204, 0.86);
  border-radius: 999px;
  color: #355367;
  background: rgba(247, 251, 252, 0.82);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.portfolio-card {
  display: grid;
  gap: 0.85rem;
  border: 1px solid rgba(182, 194, 201, 0.9);
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 248, 249, 0.94) 100%);
  box-shadow: 0 9px 20px rgba(26, 42, 55, 0.06);
}

.portfolio-card__header {
  display: grid;
  gap: 0.24rem;
}

.portfolio-card__type {
  margin: 0;
  color: #577468;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.portfolio-card h2 {
  margin: 0;
  color: #253746;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.portfolio-meta {
  margin: 0;
  display: grid;
  gap: 0.46rem;
}

.portfolio-meta div {
  display: grid;
  gap: 0.12rem;
  padding-top: 0.44rem;
  border-top: 1px solid rgba(196, 206, 212, 0.78);
}

.portfolio-meta div:first-child {
  padding-top: 0;
  border-top: none;
}

.portfolio-meta dt {
  margin: 0;
  color: #5a6670;
  font-size: 0.7rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.portfolio-meta dd {
  margin: 0;
  color: #202a33;
  font-size: 0.92rem;
  line-height: 1.42;
}

.portfolio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.portfolio-action {
  text-decoration: none;
  border: 1px solid rgba(95, 130, 149, 0.44);
  border-radius: 0.62rem;
  padding: 0.43rem 0.72rem;
  background: linear-gradient(142deg, rgba(35, 62, 82, 0.95) 0%, rgba(62, 103, 127, 0.9) 100%);
  color: #f4f7fa;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.portfolio-action--ghost {
  color: #2f5368;
  border-color: rgba(129, 161, 179, 0.6);
  background: rgba(233, 243, 247, 0.74);
}

.portfolio-audio-list {
  display: grid;
  gap: 0.66rem;
}

.portfolio-audio {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.portfolio-audio figcaption {
  color: #586773;
  font-size: 0.8rem;
}

.portfolio-audio audio {
  width: 100%;
}

.portfolio-video {
  border: 1px solid rgba(184, 196, 203, 0.88);
  border-radius: 0.72rem;
  overflow: hidden;
  background: #0f1720;
  aspect-ratio: 16 / 9;
}

.portfolio-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.portfolio-video video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #0f1720;
}

.portfolio-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.52rem;
}

@media (max-width: 980px) {
  .hero--portrait {
    min-height: clamp(200px, 34vw, 290px);
  }

  .hero--portrait > * {
    max-width: min(74ch, 84%);
  }

  .day-choice-page {
    --hero-portrait-position: 52% 36%;
  }

  body.day-choice-page .topbar {
    top: 0.85rem;
    left: 0.9rem;
    right: 0.9rem;
  }

  body.day-choice-page .hero--portrait {
    top: 2.5rem;
    left: 0.9rem;
    width: min(300px, 44vw);
  }

  body.day-choice-page .day-token__text {
    font-size: clamp(6.5rem, 20vw, 14rem);
  }

  body.day-choice-page .day-token--jeu {
    left: 24%;
    top: 57%;
  }

  body.day-choice-page .day-token--ven {
    left: 50%;
    top: 54%;
  }

  body.day-choice-page .day-token--sam {
    left: 76%;
    top: 58%;
  }

  .cards,
  .portal-grid,
  .row,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .date-ball {
    width: min(66vw, 210px);
  }

  .friday-portal .hero {
    min-height: clamp(200px, 34vw, 290px);
  }

  .friday-portal .hero > * {
    max-width: min(74ch, 84%);
  }

  body.friday-portal,
  body.friday-portal.portrait-look-2,
  body.friday-portal.portrait-look-3 {
    --hero-portrait-position: 52% 36%;
  }
}

@media (max-width: 760px) {
  .portfolio-summary {
    gap: 0.48rem;
  }

  .portfolio-summary p {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .portfolio-video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.day-choice-page .topbar {
    left: 0.72rem;
    top: 0.7rem;
    right: 0.72rem;
  }

  body.day-choice-page .brand {
    display: none;
  }

  body.day-choice-page .hero--portrait {
    left: 0.72rem;
    top: 2.2rem;
    width: min(250px, 72vw);
    min-height: 84px;
    padding: 0.52rem 0.66rem 0.58rem;
  }

  body.day-choice-page .hero--portrait h1 {
    font-size: clamp(0.84rem, 3.8vw, 1.1rem);
  }

  body.day-choice-page .day-token__text {
    font-size: clamp(5.2rem, 20vw, 9rem);
  }

  body.day-choice-page .day-token--jeu {
    left: 30%;
    top: 60%;
  }

  body.day-choice-page .day-token--ven {
    left: 50%;
    top: 56%;
  }

  body.day-choice-page .day-token--sam {
    left: 70%;
    top: 61%;
  }

  .ball-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.7rem;
  }

  .ball-gesture-indicator {
    justify-items: center;
  }

  .gesture-track {
    margin-left: 0;
  }

  .gesture-text {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}
