/* ============================================================
   FINNS — Article detail, 360° viewer, Career detail & Apply
   ============================================================ */

/* ---------- Article detail ---------- */
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; color: var(--text-dim); font-size: 0.9rem; align-items: center; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-dim); }
.article-cover { aspect-ratio: 16/8; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: clamp(36px, 5vw, 56px); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 760px; margin-inline: auto; }
.article-body p { color: var(--text-muted); font-size: 1.08rem; line-height: 1.75; }
.article-body p + p { margin-top: 20px; }
.article-body h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 40px 0 14px; }
.article-foot { max-width: 760px; margin: clamp(40px,5vw,60px) auto 0; padding-top: 30px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }

/* ---------- 360 panorama (Pannellum) ---------- */
.viewer-block { margin-top: 18px; }
.viewer-tabs { display: inline-flex; gap: 6px; padding: 6px; border: 1px solid var(--line-2); border-radius: 999px; margin-bottom: 16px; }
.viewer-tab { border: 0; background: transparent; color: var(--text-muted); font-weight: 600; font-size: 0.88rem; padding: 9px 18px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.viewer-tab.is-active { background: var(--gold); color: #1A1405; }
.pano, .model-wrap { position: relative; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); overflow: hidden; background:
  radial-gradient(80% 80% at 50% 0%, rgba(201,162,74,0.12), transparent 60%), var(--bg-elev); aspect-ratio: 16/9; }
.pano > div { width: 100%; height: 100%; }
.model-wrap model-viewer { width: 100%; height: 100%; background: transparent; }

/* generic media frame (wraps 3D / 360 / video / youtube) */
.media-frame { position: relative; }
.vid-wrap { position: relative; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); overflow: hidden; background: #000; aspect-ratio: 16/9; }
.vid-wrap video, .vid-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: contain; background: #000; }
.vid-wrap .ph { position: absolute; inset: 0; }
.viewer-pane { display: none; }
.viewer-pane.is-active { display: block; }
.viewer-hint { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 20px; display: flex; align-items: center; gap: 11px; background: linear-gradient(0deg, rgba(8,9,11,0.82), transparent); font-size: 0.84rem; color: var(--text-muted); pointer-events: none; z-index: 5; }
.viewer-hint svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }

/* multiple-file thumbnails under each viewer */
.viewer-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.vthumb {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px 9px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg-elev); color: var(--text-muted);
  font-family: var(--font-body); font-weight: 600; font-size: 0.86rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.vthumb:hover { border-color: var(--gold-line); color: var(--text); }
.vthumb.is-active { border-color: var(--gold); color: var(--gold-bright); background: var(--gold-soft); }
.vthumb__n {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 0.74rem;
  background: var(--bg-elev-3); color: var(--text); border: 1px solid var(--line-2);
}
.vthumb.is-active .vthumb__n { background: var(--gold); color: #1A1405; border-color: var(--gold-deep); }

/* expand-to-lightbox button on each immersive media */
.media-frame { position: relative; }
.media-expand {
  position: absolute; top: 14px; right: 14px; z-index: 6;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(8,9,11,0.72); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 999px; padding: 8px 14px 8px 11px; font-family: var(--font-body);
  font-weight: 600; font-size: 0.8rem; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.media-expand svg { width: 15px; height: 15px; color: var(--gold); }
.media-expand:hover { border-color: var(--gold-line); color: var(--gold-bright); background: rgba(8,9,11,0.9); }

/* lightbox media types */
.lb__fig--model3d model-viewer { width: min(1100px, 92vw); height: min(78vh, 720px); background: transparent; }
.lb__fig--pano360 .lb-pano { width: min(1100px, 92vw); height: min(78vh, 720px); border-radius: var(--radius); overflow: hidden; }
.lb__fig--video video,
.lb__fig--youtube iframe { width: min(1100px, 92vw); height: min(78vh, 620px); border: 0; border-radius: var(--radius); background: #000; display: block; }
.lb__fig--video .ph,
.lb__fig--image .ph { width: min(1100px, 88vw); aspect-ratio: 16/9; max-height: 78vh; border-radius: var(--radius); }

/* ---------- Career detail ---------- */
.job-head__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.job-detail { display: grid; grid-template-columns: 1fr 0.5fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
.job-detail__main h3 { font-size: var(--fs-h3); margin: 30px 0 14px; }
.job-detail__main h3:first-child { margin-top: 0; }
.job-detail__main p { color: var(--text-muted); }
.job-list { margin-top: 12px; display: grid; gap: 12px; }
.job-list li { display: flex; gap: 12px; color: var(--text-muted); }
.job-list li svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.job-aside { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); padding: 28px; }
.job-aside h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }

/* ---------- Apply form ---------- */
.apply { max-width: 720px; }
.dropzone { border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--text-muted); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--gold); background: var(--gold-soft); }
.dropzone svg { width: 26px; height: 26px; color: var(--gold); margin-bottom: 10px; }
.dropzone input { display: none; }
.dropzone__name { color: var(--gold-bright); font-weight: 600; font-size: 0.9rem; margin-top: 10px; }
.captcha-mock { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg-elev); }
.captcha-mock .box { width: 26px; height: 26px; border-radius: 6px; border: 2px solid var(--line-2); flex-shrink: 0; transition: background 0.2s, border-color 0.2s; }
.captcha-mock.is-checked .box { background: var(--gold); border-color: var(--gold-deep); }
.captcha-mock .lbl { font-size: 0.92rem; color: var(--text-muted); }
.captcha-mock .brand { margin-left: auto; font-size: 0.7rem; color: var(--text-dim); text-align: right; line-height: 1.3; }

@media (max-width: 980px) {
  .job-detail { grid-template-columns: 1fr; }
  .job-aside { position: static; }
}

/* ---------- Search results ---------- */
.search-results { display: grid; gap: 12px; max-width: 860px; }
.sresult { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.sresult:hover { border-color: var(--gold-line); transform: translateX(3px); }
.sresult__cat { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--gold-bright); border: 1px solid var(--gold-line); border-radius: 999px; padding: 6px 12px; flex-shrink: 0; background: var(--gold-soft); white-space: nowrap; }
.sresult__main h3 { font-family: var(--font-body); font-size: 1.12rem; font-weight: 600; }
.sresult__main p { color: var(--text-muted); font-size: 0.92rem; margin-top: 5px; }
.sresult__arrow { margin-left: auto; color: var(--text-dim); align-self: center; flex-shrink: 0; }
.sresult:hover .sresult__arrow { color: var(--gold); }
.sresult__arrow svg { width: 20px; height: 20px; }
.search-summary { color: var(--text-muted); margin-bottom: 28px; }
.search-summary b { color: var(--text); }
.search-empty { padding: 50px 30px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--text-muted); }
@media (max-width: 600px) {
  .sresult { flex-wrap: wrap; gap: 12px; }
  .sresult__arrow { display: none; }
}

/* ---------- Error pages (404 / 500) ---------- */
.errpage {
  position: relative; overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center;
}
.errpage__bg { position: absolute; inset: 0; z-index: 0; }
.errpage__inner { position: relative; z-index: 1; text-align: center; max-width: 640px; margin-inline: auto; padding-block: clamp(60px, 10vw, 120px); }
.errcode {
  font-family: var(--font-display); font-weight: 700; line-height: 0.9;
  font-size: clamp(6rem, 22vw, 12rem); letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 12px 40px rgba(201,162,74,0.25));
}
.errpage h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 8px 0 18px; }
.errpage p { color: var(--text-muted); font-size: var(--fs-lead); max-width: 46ch; margin-inline: auto; }
.errpage__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.errpage__links { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; align-items: center; }
.errpage__links .lbl { color: var(--text-dim); font-size: 0.86rem; }
.errpage__links a { color: var(--text-muted); font-size: 0.92rem; font-weight: 600; }
.errpage__links a:hover { color: var(--gold-bright); }

/* ---------- Press releases ---------- */
.press-list { display: grid; gap: 14px; max-width: 880px; }
.prelease { display: block; position: relative; padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.prelease:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.prelease__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.prelease__tag { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--gold-bright); border: 1px solid var(--gold-line); border-radius: 999px; padding: 5px 12px; background: var(--gold-soft); }
.prelease__date { color: var(--text-dim); font-size: 0.85rem; }
.prelease h3 { font-family: var(--font-body); font-size: 1.3rem; line-height: 1.3; max-width: 60ch; }
.prelease p { color: var(--text-muted); font-size: 0.96rem; margin-top: 10px; max-width: 70ch; }
.prelease__more { position: absolute; top: 28px; right: 28px; color: var(--text-dim); transition: color 0.2s, transform 0.2s; }
.prelease:hover .prelease__more { color: var(--gold); transform: translateX(3px); }
.prelease__more svg { width: 22px; height: 22px; }
@media (max-width: 600px) { .prelease__more { display: none; } }

/* ---------- FAQ / Team / Status / Sitemap (extra FE pages) ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: transparent; border: 0; color: var(--text); font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; padding: 20px 22px; cursor: pointer; position: relative; padding-right: 50px; }
.faq-q::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--gold); transition: transform 0.2s; }
.faq-item.is-open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-item.is-open .faq-a { max-height: 320px; }
.faq-a p { color: var(--text-muted); padding: 0 22px 20px; line-height: 1.7; }
.status-all { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--gold-bright); padding: 22px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: var(--gold-soft); margin-bottom: 22px; }
.status-list { display: grid; gap: 10px; }
.status-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); font-weight: 500; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: #5BD08B; font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #1FAA53; box-shadow: 0 0 0 3px rgba(31,170,83,0.18); }
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.sitemap-col h3 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.sitemap-col a { display: block; color: var(--text-muted); padding: 8px 0; border-bottom: 1px solid var(--line); }
.sitemap-col a:hover { color: var(--gold-bright); }
@media (max-width: 720px) { .sitemap-grid { grid-template-columns: 1fr; } }
.legal { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); padding: 22px; }
.legal__toc h4 { font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.legal__toc a { display: block; color: var(--text-muted); font-size: 0.9rem; padding: 7px 0; border-top: 1px solid var(--line); }
.legal__toc a:first-of-type { border-top: 0; }
.legal__toc a:hover { color: var(--gold-bright); }
.legal__body { max-width: 760px; }
.legal__body h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 36px 0 14px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p { color: var(--text-muted); line-height: 1.75; }
.legal__body p + p { margin-top: 14px; }
.legal__body ul.legal-list { margin: 14px 0; display: grid; gap: 10px; }
.legal__body ul.legal-list li { display: flex; gap: 12px; color: var(--text-muted); line-height: 1.6; }
.legal__body ul.legal-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 9px; }
.legal__updated { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--text-dim); margin-top: 14px; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal__toc { position: static; } }
