/* shared/chrome.css
 * Site-wide chrome: tokens, base resets, starfield, marquee, page layout, forms, footer, sparkle.
 * Page-specific styles live in each page's <style> block.
 */

/* ===== base + tokens ===== */
    :root {
      --bg: #000;
      --star: #fff;
      --cream: #f6e9c1;
      --gold: #ffcc33;
      --hot: #ff3399;
      --planet-brian: #b87333;
      --planet-penny: #c0844a;
      --planet-multi: #ff8c42;
      --planet-future: #6a3aae;
      --planet-team: #2d7d8a;
      --planet-hire: #ff3399;
    }

    * { box-sizing: border-box; }
    html { background: #000; }
    html, body {
      margin: 0;
      padding: 0;
      background: transparent;
      color: var(--cream);
      font-family: "VT323", "Courier New", monospace;
      font-size: 18px;
      overflow: hidden;
      height: 100vh;
    }
    /* Subpages scroll normally — the viewport-locked layout above is only for
       the home page's fixed planet/sun universe. */
    html:has(body.subpage-body),
    body.subpage-body {
      overflow: auto;
      height: auto;
      min-height: 100vh;
    }
    body.subpage-body {
      padding: 28px 16px 0;
      align-items: center;
    }
    /* Lift subpage content above the fixed starfield (z-index 1).
       Scoped to the specific elements that need it, NOT a broad `> *` selector —
       a broad rule would override .sparkle's position:fixed (higher specificity
       than the .sparkle class), yanking each transient sparkle into the flex
       flow for 900ms and causing continuous layout jitter. */
    body.subpage-body > .subpage-inner,
    body.subpage-body > .hiring-footer,
    body.subpage-body > .footer-line {
      position: relative;
      z-index: 50;
    }
    body {
      display: flex;
      flex-direction: column;
    }

    a { color: var(--gold); text-decoration: none; }
    a:hover { color: var(--hot); }


/* ===== starfield ===== */
    /* ================= STARFIELD ================= */
    .starfield {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 24px 28px, rgba(255,255,255,0.9) 0 1px, transparent 1.6px),
        radial-gradient(circle at 82px 62px, rgba(255,233,168,0.82) 0 1px, transparent 1.5px),
        radial-gradient(circle at 132px 104px, rgba(255,255,255,0.7) 0 1.4px, transparent 2px),
        radial-gradient(ellipse 800px 600px at 15% 20%, rgba(106, 58, 174, 0.35) 0%, transparent 70%),
        radial-gradient(ellipse 700px 500px at 85% 80%, rgba(255, 51, 153, 0.22) 0%, transparent 70%),
        radial-gradient(ellipse 600px 400px at 70% 15%, rgba(45, 125, 138, 0.25) 0%, transparent 70%),
        radial-gradient(ellipse 900px 700px at 30% 90%, rgba(255, 122, 0, 0.15) 0%, transparent 70%),
        #000;
      background-size: 160px 130px, 220px 170px, 300px 250px, auto, auto, auto, auto, auto;
    }
    .stars {
      position: fixed;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      overflow: hidden;
    }
    .star {
      position: absolute;
      background: #fff;
      border-radius: 50%;
      box-shadow: 0 0 4px #fff;
    }
    .star.twinkle { animation: twinkle 3s ease-in-out infinite; }
    .star.gold { background: #ffe9a8; box-shadow: 0 0 6px #ffcc66; }
    @keyframes twinkle {
      0%, 100% { opacity: 1; transform: scale(1); }
      50%      { opacity: 0.25; transform: scale(0.7); }
    }
    .shooting-star {
      position: absolute;
      width: 80px;
      height: 1px;
      background: linear-gradient(90deg, transparent, #fff, transparent);
      opacity: 0;
      animation: shoot 8s linear infinite;
      top: 20%;
      left: -10%;
    }
    .shooting-star:nth-child(2) { top: 65%; animation-delay: 4s; animation-duration: 11s; }
    @keyframes shoot {
      0%   { transform: translateX(0) translateY(0) rotate(15deg); opacity: 0; }
      5%   { opacity: 1; }
      20%  { opacity: 1; }
      30%  { opacity: 0; transform: translateX(120vw) translateY(40vh) rotate(15deg); }
      100% { opacity: 0; transform: translateX(120vw) translateY(40vh) rotate(15deg); }
    }


/* ===== top marquee ===== */
    /* ================= TOP MARQUEE ================= */
    .top-marquee {
      position: relative;
      background: #1a0033;
      color: var(--gold);
      border-bottom: 1px solid #330066;
      font-family: "VT323", monospace;
      font-size: 18px;
      overflow: hidden;
      white-space: nowrap;
      padding: 4px 0;
      z-index: 2;
    }
    .top-marquee .roll {
      display: inline-block;
      padding-left: 100%;
      animation: scroll-left 38s linear infinite;
    }
    @keyframes scroll-left {
      0%   { transform: translateX(0); }
      100% { transform: translateX(-100%); }
    }
    .blink { animation: blink 0.9s steps(2, start) infinite; }
    @keyframes blink { to { visibility: hidden; } }


/* ===== page layout (replaces .subpage overlays from monolith) ===== */
    /* ================= SUB-PAGES (overlays) ================= */
    .subpage {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.96);
      z-index: 50;
      display: none;
      overflow-y: auto;
      padding: 28px 16px 0;
    }
    .subpage.open {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .subpage-inner {
      max-width: 800px;
      margin: 0 auto;
      background: #0e0623;
      border: 2px solid var(--gold);
      box-shadow: 0 0 40px rgba(255, 204, 51, 0.25);
      padding: 24px 28px 32px;
      color: var(--cream);
      font-family: "VT323", monospace;
      font-size: 19px;
      line-height: 1.45;
    }
    .subpage h1, .subpage-inner h1 {
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 30px;
      letter-spacing: 2px;
      color: var(--gold);
      margin: 0 0 4px;
      text-shadow: 2px 2px 0 #ff3399;
    }
    .subpage h2, .subpage-inner h2 {
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 18px;
      letter-spacing: 1.5px;
      color: var(--hot);
      margin: 24px 0 8px;
    }
    .subpage h3, .subpage-inner h3 {
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 14px;
      color: var(--gold);
      letter-spacing: 1px;
      margin: 16px 0 4px;
    }
    .subpage p, .subpage-inner p { margin: 0 0 12px; }
    .subpage ul, .subpage-inner ul { padding-left: 22px; margin: 0 0 12px; }
    .subpage li, .subpage-inner li { margin: 4px 0; }
    .subpage .meta-strip, .subpage-inner .meta-strip {
      font-family: "VT323", monospace;
      font-size: 16px;
      color: var(--gold);
      margin-bottom: 14px;
      border-bottom: 1px dashed rgba(255, 204, 51, 0.3);
      padding-bottom: 8px;
    }
    .subpage .meta-strip span, .subpage-inner .meta-strip span { margin-right: 16px; }
    .placeholder-flag {
      color: var(--hot);
      font-style: italic;
      font-size: 13px;
      opacity: 0.8;
    }
    .page-logo {
      display: block;
      text-align: center;
      margin: 4px 0 22px;
      cursor: pointer;
      transition: transform 0.2s ease;
    }
    .page-logo:hover { transform: scale(1.02); }
    .page-logo-ramp {
      font-family: "Bungee", "Impact", sans-serif;
      font-size: clamp(40px, 9vmin, 80px);
      font-weight: 700;
      letter-spacing: 5px;
      line-height: 0.9;
      color: var(--gold);
      text-shadow:
        4px 4px 0 var(--hot),
        8px 8px 0 #4a002a,
        0 0 30px rgba(255, 204, 51, 0.5);
      transform: skewX(-6deg);
      display: inline-block;
    }
    .page-logo-sub {
      display: inline-block;
      margin-top: 8px;
      font-family: "Bungee", "Impact", sans-serif;
      font-size: clamp(10px, 1.5vmin, 14px);
      letter-spacing: 3px;
      color: var(--cream);
      text-shadow: 1px 1px 0 var(--hot);
      padding: 4px 14px;
      border-top: 1px solid var(--gold);
      border-bottom: 1px solid var(--gold);
    }

    .hiring-footer {
      margin-top: auto;
      padding: 48px 16px 32px;
      text-align: center;
      max-width: 800px;
      width: 100%;
    }
    .hiring-footer-link {
      font-family: "VT323", monospace;
      font-size: 16px;
      font-weight: normal;
      color: var(--cream);
      text-decoration: none;
      cursor: pointer;
      opacity: 0.7;
      transition: opacity 0.2s ease, color 0.2s ease;
    }
    .hiring-footer-link:hover {
      opacity: 1;
      color: var(--gold);
    }
    .back-to-space {
      display: inline-block;
      margin-bottom: 14px;
      padding: 4px 10px;
      background: var(--gold);
      color: #1a0033;
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 13px;
      letter-spacing: 1px;
      text-decoration: none;
      cursor: pointer;
    }
    .back-to-space:hover { background: var(--hot); color: #fff; }

    .hero-art {
      height: 160px;
      background: linear-gradient(135deg, #1a0033 0%, #4a002a 100%);
      border: 1px solid var(--gold);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 36px;
      letter-spacing: 2px;
      color: var(--gold);
      text-shadow: 3px 3px 0 var(--hot);
      margin-bottom: 16px;
    }
    .hero-image {
      position: relative;
      overflow: hidden;
      height: 210px;
      border: 2px solid var(--gold);
      margin-bottom: 16px;
      background: #0a0014;
      box-shadow: inset 0 0 0 3px #1a0033;
    }
    .hero-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      filter: saturate(1.08) contrast(1.06);
    }
    .hero-image.bare::after { display: none; }
    .hero-image::after {
      content: attr(data-caption);
      position: absolute;
      left: 8px;
      right: 8px;
      bottom: 8px;
      background: rgba(10, 0, 20, 0.82);
      border: 1px dashed var(--gold);
      color: var(--gold);
      font-family: "Press Start 2P", "VT323", monospace;
      font-size: 9px;
      line-height: 1.5;
      letter-spacing: 1px;
      padding: 7px 8px;
      text-transform: uppercase;
    }

    .media-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      margin: 14px 0 20px;
    }
    @media (max-width: 560px) { .media-grid { grid-template-columns: 1fr; } }
    .media-card {
      background: #1a0033;
      border: 1px solid var(--hot);
      overflow: hidden;
      position: relative;
    }
    .media-card img,
    .media-card video {
      width: 100%;
      aspect-ratio: 16/9;
      object-fit: cover;
      display: block;
    }
    .media-card .caption {
      padding: 6px 10px;
      font-size: 13px;
      color: var(--cream);
      border-top: 1px dashed rgba(255, 51, 153, 0.4);
    }
    .media-card.placeholder {
      background:
        repeating-linear-gradient(45deg, #1a0033 0 12px, #2a0040 12px 24px);
      aspect-ratio: 16/9;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 16px;
      color: var(--gold);
      text-align: center;
      padding: 12px;
      gap: 4px;
    }
    .media-card.placeholder .label {
      font-size: 12px;
      color: var(--cream);
      opacity: 0.7;
      font-family: "VT323", monospace;
      letter-spacing: 1px;
    }
    .media-card.video iframe {
      width: 100%;
      aspect-ratio: 16/9;
      border: 0;
      display: block;
    }
    .site-card {
      display: block;
      margin: 22px 0 6px;
      padding: 28px 24px;
      text-align: center;
      text-decoration: none;
      background: linear-gradient(135deg, rgba(255, 204, 51, 0.10) 0%, rgba(255, 51, 153, 0.14) 100%);
      border: 2px solid var(--gold);
      box-shadow: 4px 4px 0 var(--hot);
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .site-card:hover {
      transform: translate(-2px, -2px);
      box-shadow: 6px 6px 0 var(--hot);
    }
    .site-card-eyebrow {
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 13px;
      letter-spacing: 2px;
      color: var(--hot);
      margin-bottom: 10px;
    }
    .site-card-url {
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 30px;
      letter-spacing: 1px;
      color: var(--gold);
      text-shadow: 2px 2px 0 #000;
      margin-bottom: 8px;
    }
    .site-card-cta {
      font-family: "VT323", monospace;
      font-size: 18px;
      color: var(--cream);
      opacity: 0.85;
    }
    .pullquote {
      margin: 24px 0;
      padding: 22px 26px;
      border-left: 4px solid var(--gold);
      border-right: 4px solid var(--hot);
      background: linear-gradient(135deg, rgba(255, 204, 51, 0.08) 0%, rgba(255, 51, 153, 0.10) 100%);
      position: relative;
    }
    .pullquote::before {
      content: "\201C";
      position: absolute;
      top: -14px;
      left: 14px;
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 72px;
      line-height: 1;
      color: var(--gold);
      text-shadow: 2px 2px 0 #000;
    }
    .pullquote p {
      margin: 0 0 10px;
      font-size: 22px;
      line-height: 1.4;
      color: var(--cream);
    }
    .pullquote p:last-child { margin-bottom: 0; }
    .pullquote .kicker {
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 18px;
      color: var(--hot);
      letter-spacing: 1px;
      margin-top: 12px;
    }
    .media-card.photo {
      padding: 0;
      overflow: hidden;
      display: block;
      background: #000;
    }
    .media-card.photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      aspect-ratio: 4/5;
    }
    .media-card.photo.wide img { aspect-ratio: 3/2; }
    .media-card.photo.fullbleed { padding: 0; background: #fff; }
    .media-card.photo.fullbleed img {
      width: 100%;
      height: auto;
      aspect-ratio: auto;
      object-fit: contain;
      display: block;
    }
    .media-card.photo .caption {
      padding: 6px 10px;
      font-size: 13px;
      color: var(--cream);
      border-top: 1px dashed rgba(255, 51, 153, 0.4);
    }
    .media-card.tall iframe {
      width: 100%;
      aspect-ratio: 9/14;
      border: 0;
      display: block;
    }
    .media-card.article {
      display: flex;
      flex-direction: column;
      text-decoration: none;
      color: var(--cream);
      transition: transform 0.2s ease, border-color 0.2s ease;
    }
    .media-card.article:hover {
      transform: translateY(-2px);
      border-color: var(--gold);
    }
    .media-card.article .article-bg {
      aspect-ratio: 16/9;
      background:
        radial-gradient(ellipse 60% 80% at 30% 30%, rgba(255, 204, 51, 0.2), transparent 70%),
        linear-gradient(135deg, #1a0033 0%, #4a002a 100%);
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 38px;
      border-bottom: 1px dashed rgba(255, 51, 153, 0.4);
    }
    .media-card.article .article-bg.has-image {
      background-image: var(--bg-img);
      background-size: cover;
      background-position: center;
      background-blend-mode: normal;
      font-size: 0;
    }
    .media-card.article .caption {
      padding: 8px 10px;
      border-top: none;
      font-size: 13px;
      line-height: 1.35;
    }
    .media-card.article .caption .outlet {
      display: block;
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 11px;
      color: var(--gold);
      letter-spacing: 1px;
      margin-bottom: 3px;
    }
    .media-card.reddit-embed-wrap {
      padding: 0;
      background: transparent;
      border: none;
      overflow: hidden;
    }
    .media-card.reddit-embed-wrap iframe {
      width: 100% !important;
      border: 0;
      display: block;
    }
    .video-embed {
      position: relative;
      width: 100%;
      aspect-ratio: 9/16;
      overflow: hidden;
      background: #000;
    }
    .video-embed.horizontal { aspect-ratio: 16/9; }
    .video-embed iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }
    .media-card.tall {
      grid-row: span 2;
    }
    .media-card.tall .video-embed {
      aspect-ratio: 9/16;
    }

    .stat-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin: 14px 0;
    }
    .stat-cell {
      background: #1a0033;
      border: 1px solid var(--hot);
      padding: 10px 12px;
      text-align: center;
    }
    .stat-cell .num {
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 24px;
      color: var(--gold);
    }
    .stat-cell .lbl {
      font-size: 14px;
      color: var(--cream);
      opacity: 0.8;
    }

    .pill-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 10px 0;
    }
    .pill {
      background: #1a0033;
      border: 1px solid var(--gold);
      color: var(--gold);
      padding: 3px 10px;
      font-size: 14px;
    }

    .card {
      background: #1a0033;
      border: 1px solid var(--hot);
      padding: 12px 14px;
      margin-bottom: 10px;
    }
    .card .card-title {
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 14px;
      color: var(--gold);
      letter-spacing: 1px;
      margin-bottom: 4px;
    }
    .card .card-meta {
      font-size: 14px;
      opacity: 0.75;
      margin-bottom: 6px;
    }

    .team-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }
    @media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }
    .team-card {
      background: #1a0033;
      border: 1px solid var(--gold);
      padding: 12px;
      display: flex;
      gap: 10px;
      align-items: center;
      text-decoration: none;
      color: inherit;
      transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    }
    a.team-card:hover {
      border-color: var(--hot);
      box-shadow: 0 0 0 1px var(--hot), 0 0 18px rgba(255,51,153,0.35);
      transform: translate(-1px, -1px);
    }
    .team-avatar {
      width: 60px; height: 60px;
      border-radius: 50%;
      background: radial-gradient(circle at 30% 25%, #ffd2e6 0%, #ff3399 50%, #4a002a 100%);
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 22px;
      color: #fff;
      overflow: hidden;
    }
    .team-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .team-avatar.outline {
      background: #0a0014;
      border: 2px dashed rgba(255,204,51,0.55);
      color: rgba(246,233,193,0.55);
      font-size: 30px;
    }
    .team-name {
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 14px;
      color: var(--gold);
    }
    .team-tag {
      display: inline-block;
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 9px;
      letter-spacing: 1px;
      color: #1a0033;
      background: var(--hot);
      padding: 2px 5px;
      margin-left: 4px;
      vertical-align: middle;
      position: relative;
      top: -2px;
    }
    .team-role { font-size: 15px; opacity: 0.85; }


/* ===== forms ===== */
    /* ================= FORMS ================= */
    .form-row { margin: 10px 0; }
    .form-row label {
      display: block;
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 12px;
      color: var(--gold);
      letter-spacing: 1px;
      margin-bottom: 4px;
    }
    .form-row input, .form-row textarea {
      width: 100%;
      padding: 8px 10px;
      background: #0a0014;
      color: var(--cream);
      border: 1px solid var(--gold);
      font-family: "VT323", monospace;
      font-size: 18px;
    }
    .form-row textarea { min-height: 70px; resize: vertical; }
    .submit-btn {
      background: var(--gold);
      color: #1a0033;
      border: 2px solid var(--hot);
      padding: 10px 22px;
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 16px;
      letter-spacing: 2px;
      cursor: pointer;
      box-shadow: 4px 4px 0 var(--hot);
    }
    .submit-btn:hover { background: var(--hot); color: #fff; }
    .form-success {
      display: none;
      margin-top: 14px;
      padding: 14px;
      background: #4a002a;
      border: 2px dashed var(--gold);
      text-align: center;
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 16px;
      color: var(--gold);
      letter-spacing: 1px;
    }
    .form-success.show { display: block; }


/* ===== footer ===== */
    /* ================= FOOTER ================= */
    .bottom-marquee {
      background: #1a0033;
      color: var(--hot);
      font-family: "VT323", monospace;
      font-size: 16px;
      border-top: 1px solid #330066;
      padding: 4px 0;
      overflow: hidden;
      white-space: nowrap;
      position: relative;
      z-index: 2;
    }
    .footer-line {
      text-align: center;
      font-family: "VT323", monospace;
      font-size: clamp(11px, 1.4vmin, 14px);
      color: var(--cream);
      opacity: 0.6;
      padding: 6px 16px 10px;
      position: relative;
      z-index: 2;
      flex-shrink: 0;
    }
    .footer-line a {
      color: inherit;
      text-decoration: none;
      border-bottom: 1px dotted currentColor;
      transition: color 0.15s ease;
    }
    .footer-line a:hover {
      color: var(--gold);
      border-bottom-color: var(--gold);
    }
    .footer-line--subpage {
      margin-top: auto;
      padding-top: 24px;
      padding-bottom: 18px;
    }


/* ===== sparkle cursor ===== */
    /* ================= SPARKLE ================= */
    .sparkle {
      position: fixed;
      pointer-events: none;
      color: var(--gold);
      font-size: 14px;
      z-index: 9999;
      animation: sparkle-fade 0.9s linear forwards;
    }
    @keyframes sparkle-fade {
      0%   { opacity: 1; transform: translateY(0) scale(1); }
      100% { opacity: 0; transform: translateY(-30px) scale(0.4); }
    }


/* ===== role banner + job columns + perks strip (was: HIRING SUB-PAGE) ===== */
    .role-banner {
      background: linear-gradient(90deg, var(--hot) 0%, var(--gold) 50%, var(--hot) 100%);
      background-size: 200% 100%;
      animation: rainbow 4s linear infinite;
      color: #1a0033;
      padding: 12px;
      text-align: center;
      font-family: "Bungee", "Impact", sans-serif;
      font-size: 18px;
      letter-spacing: 2px;
      margin-bottom: 16px;
      border: 2px dashed #1a0033;
    }
    @keyframes rainbow {
      0%   { background-position: 0% 50%; }
      100% { background-position: 200% 50%; }
    }

    .job-cols {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }
    @media (max-width: 600px) { .job-cols { grid-template-columns: 1fr; } }
    .job-col h3 { margin-top: 0; }

    .perks-strip {
      background: #4a002a;
      border: 2px dashed var(--gold);
      padding: 10px 14px;
      text-align: center;
      margin: 14px 0;
      font-size: 17px;
      color: var(--cream);
    }
    .perks-strip strong { color: var(--gold); }

/* ===== inline refer section (revealed by quiz or skip button) ===== */
    /* CSS grid trick: animating grid-template-rows 0fr ↔ 1fr smoothly grows
       and collapses the section based on its actual content height, no JS
       measurement needed. The inner div uses min-height:0 + overflow:hidden
       so its content can clip during the transition. */
    #refer-section {
      display: grid;
      grid-template-rows: 0fr;
      opacity: 0;
      transition: grid-template-rows 0.4s ease-out, opacity 0.25s ease-out;
    }
    #refer-section > .refer-section-inner {
      overflow: hidden;
      min-height: 0;
    }
    #refer-section.is-open {
      grid-template-rows: 1fr;
      opacity: 1;
    }
