/* ============================================================
   FINNS — Inner page components
   ============================================================ */

/* generic split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--narrow { grid-template-columns: 0.9fr 1.1fr; }
.split__media { aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.prose p { color: var(--text-muted); }
.prose p + p { margin-top: 18px; }
.prose h3 { margin-bottom: 14px; }

/* big stat row */
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.statbox { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.statbox .n { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; color: #fff; line-height: 1; }
.statbox .n span { color: var(--gold); }
.statbox .l { color: var(--text-muted); font-size: 0.92rem; margin-top: 10px; }

/* mission / vision cards */
.mvcards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mvcard { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); position: relative; overflow: hidden; }
.mvcard__ico { width: 50px; height: 50px; border-radius: 13px; background: var(--gold-soft); border: 1px solid var(--gold-line); display: grid; place-items: center; color: var(--gold-bright); margin-bottom: 20px; }
.mvcard__ico svg { width: 24px; height: 24px; }
.mvcard h3 { font-size: 1.4rem; margin-bottom: 12px; }
.mvcard p { color: var(--text-muted); }

/* timeline */
.timeline { position: relative; margin-top: 20px; }
.tline { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 22px 0; border-top: 1px solid var(--line); }
.tline__year { font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: 1.05rem; }
.tline h4 { font-family: var(--font-body); font-size: 1.1rem; margin-bottom: 6px; }
.tline p { color: var(--text-muted); font-size: 0.95rem; }

/* team grid */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.member__photo { aspect-ratio: 1/1.1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 16px; }
.member h4 { font-family: var(--font-body); font-size: 1.05rem; }
.member .role { color: var(--gold); font-size: 0.85rem; margin-top: 4px; font-weight: 600; }

/* ---------- Services detail ---------- */
.svc-detail { display: grid; grid-template-columns: 0.4fr 1fr; gap: clamp(28px, 4vw, 56px); padding: clamp(34px, 4vw, 52px) 0; border-top: 1px solid var(--line); align-items: start; }
.svc-detail__head { position: sticky; top: calc(var(--header-h) + 24px); }
.svc-detail__num { font-family: var(--font-display); font-size: 0.85rem; color: var(--gold); font-weight: 700; letter-spacing: 0.1em; }
.svc-detail__head h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin: 10px 0 16px; }
.svc-detail__head p { color: var(--text-muted); font-size: 0.96rem; }
.svc-detail__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feat { display: flex; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.feat svg { width: 19px; height: 19px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.feat h5 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.feat p { color: var(--text-muted); font-size: 0.88rem; }

/* process steps */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.pstep { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); position: relative; }
.pstep__n { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--gold-soft); line-height: 1; }
.pstep h4 { font-family: var(--font-body); font-size: 1.1rem; margin: 8px 0 8px; }
.pstep p { color: var(--text-muted); font-size: 0.9rem; }

/* 3D viewer slot */
.viewer3d { 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/10; }
.viewer3d model-viewer { width: 100%; height: 100%; background: transparent; --poster-color: transparent; }
.viewer3d__hint { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 22px; display: flex; align-items: center; gap: 12px; background: linear-gradient(0deg, rgba(8,9,11,0.85), transparent); font-size: 0.86rem; color: var(--text-muted); }
.viewer3d__hint svg { width: 18px; height: 18px; color: var(--gold); }

/* ---------- Portfolio ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-muted); font-weight: 600; font-size: 0.9rem; transition: all 0.2s var(--ease); }
.filter:hover { border-color: var(--gold-line); color: var(--text); }
.filter.is-active { background: var(--gold); color: #1A1405; border-color: var(--gold-deep); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.work:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.work__media { position: absolute; inset: 0; }
.work__body { position: relative; z-index: 1; padding: 22px; background: linear-gradient(0deg, rgba(8,9,11,0.94) 10%, rgba(8,9,11,0.0)); }
.work__cat { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.work h4 { font-family: var(--font-body); font-size: 1.18rem; margin: 6px 0 6px; }
.work p { color: var(--text-muted); font-size: 0.88rem; }
.work.is-hidden { display: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.cform { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-elev); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 11px; padding: 14px 16px; font-family: inherit; font-size: 0.98rem; transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 130px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cinfo { display: grid; gap: 14px; }
.cinfo__item { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.cinfo__ico { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--gold-line); display: grid; place-items: center; color: var(--gold-bright); flex-shrink: 0; }
.cinfo__ico svg { width: 21px; height: 21px; }
.cinfo__item h4 { font-family: var(--font-body); font-size: 1rem; margin-bottom: 3px; }
.cinfo__item a, .cinfo__item p { color: var(--text-muted); font-size: 0.94rem; }
.cinfo__item a:hover { color: var(--gold-bright); }
.map { margin-top: 16px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/7; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) invert(0.9) hue-rotate(180deg) contrast(0.9); }
.formnote { font-size: 0.84rem; color: var(--text-dim); }
.formok { display: none; padding: 16px 18px; border: 1px solid var(--gold-line); background: var(--gold-soft); border-radius: 11px; color: var(--gold-bright); font-weight: 600; font-size: 0.92rem; }
.formok.show { display: block; }

/* ---------- Careers ---------- */
.jobs { display: grid; gap: 14px; }
.job { display: flex; align-items: center; gap: 20px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); transition: border-color 0.2s, transform 0.2s; flex-wrap: wrap; }
.job:hover { border-color: var(--gold-line); transform: translateX(3px); }
.job__main { flex: 1; min-width: 220px; }
.job h4 { font-family: var(--font-body); font-size: 1.15rem; }
.job__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.tag { font-size: 0.78rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-muted); }
.tag--gold { color: var(--gold-bright); border-color: var(--gold-line); background: var(--gold-soft); }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.perk { padding: 24px; border-top: 1px solid var(--gold-line); }
.perk h4 { font-family: var(--font-body); font-size: 1.05rem; margin-bottom: 8px; }
.perk p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Insights ---------- */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-elev); display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.2s; }
.article:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.article__media { aspect-ratio: 16/9; }
.article__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article__cat { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.article h3 { font-family: var(--font-body); font-size: 1.18rem; line-height: 1.3; }
.article p { color: var(--text-muted); font-size: 0.9rem; }
.article__meta { margin-top: auto; padding-top: 12px; color: var(--text-dim); font-size: 0.82rem; border-top: 1px solid var(--line); }
.article--feat { grid-column: span 2; }
.article--feat .article__media { aspect-ratio: auto; }

/* section heading shared on inner pages */
.ihead { max-width: 700px; margin-bottom: clamp(32px, 4vw, 52px); }
.ihead h2 { margin-top: 14px; }
.ihead p { margin-top: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split__media { aspect-ratio: 16/10; }
  .statrow { grid-template-columns: repeat(2, 1fr); }
  .mvcards { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .svc-detail { grid-template-columns: 1fr; }
  .svc-detail__head { position: static; }
  .svc-detail__list { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .articles { grid-template-columns: 1fr 1fr; }
  .article--feat { grid-column: span 2; }
  .perks { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .statrow, .team, .process, .work-grid, .articles, .field--row { grid-template-columns: 1fr; }
  .article--feat { grid-column: span 1; }
  .tline { grid-template-columns: 70px 1fr; gap: 16px; }
}
