/* =========================================================
   HOME PAGE
========================================================= */

body.home {
  --home-navy: #08111f;
  --home-blue: #173ea8;
  --home-sky: #2d8cff;
  --home-text: #0f172a;
  --home-muted: #64748b;
  --home-border: #e5e7eb;
  --home-soft: #f8fbff;
  --home-soft-2: #eef4fb;

  background: #f7f9fc;
  color: var(--home-text);
}

/* =========================
   Generic
========================= */

.home-page {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 84px;
}

.home-section + .home-section {
  margin-top: 72px;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head-row h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--home-muted);
  line-height: 1.7;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  background: rgba(23, 62, 168, 0.08);
  border: 1px solid rgba(23, 62, 168, 0.10);
  color: var(--home-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--home-border);
  background: #ffffff;
  color: var(--home-text);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border-color: #cfd8e3;
}

/* =========================
   HERO - TWO IMAGES
========================= */

.home-hero-dual {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #020817;
  padding: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  gap: 0;
  width: 100%;
  margin: 0;
  height: 68vh;
  min-height: 420px;
  max-height: 760px;
}

.hero-item {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.hero-item img {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  margin: 0;
}

.hero-item-result {
  background: #020817;
}

.hero-item-result img {
  object-fit: cover;
  object-position: center;
}

.hero-item-poster {
  background: #020817;
}

.hero-item-poster img {
  object-fit: contain;
  object-position: center;
  background: #020817;
}

/* =========================
   PHILOSOPHY
========================= */

.philosophy-section {
  margin-top: 0;
}

.philosophy-head {
  margin-bottom: 18px;
}

.philosophy-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(8, 17, 31, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.98) 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.philosophy-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--home-blue) 0%, var(--home-sky) 100%);
}

.philosophy-body {
  padding: 34px 36px 34px 40px;
}

.philosophy-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
  color: #1e293b;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

.philosophy-body p + p {
  margin-top: 22px;
}

/* =========================
   SHOWCASE / SLIDER
========================= */

.home-showcase-card {
  padding: 18px;
  border: 1px solid var(--home-border);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, var(--home-soft) 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.photo-slider {
  position: relative;
  width: 100%;
}

.slider-viewport {
  overflow: hidden;
  border-radius: 22px;
}

.slider-track {
  display: flex;
  transition: transform 0.55s ease;
}

.slider-image {
  min-width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(8, 17, 31, 0.58);
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease;
}

.slider-btn:hover {
  background: rgba(8, 17, 31, 0.82);
}

.slider-btn.prev {
  left: 16px;
}

.slider-btn.next {
  right: 16px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
}

.slider-dots .dot.active {
  background: var(--home-navy);
}

/* =========================
   NEWS
========================= */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: 18px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--home-blue), var(--home-sky));
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.news-meta {
  font-size: 12px;
  color: var(--home-muted);
  margin-bottom: 8px;
}

.news-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.news-desc {
  margin: 0 0 12px;
  font-size: 14px;
  color: #475569;
  line-height: 1.75;
}

.news-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--home-text);
  text-decoration: none;
}

.news-link:hover {
  text-decoration: underline;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1024px) {
  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slider-image {
    height: 500px;
  }

  .hero-grid {
    grid-template-columns: 1.35fr 0.95fr;
    height: 60vh;
    min-height: 380px;
  }

  .philosophy-body {
    padding: 30px 30px 30px 34px;
  }
}

@media (max-width: 768px) {
  .home-page {
    width: min(1160px, calc(100% - 24px));
    padding: 28px 0 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 46vh 54vh;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .slider-image {
    height: 400px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .hero-item-result img {
    object-fit: contain;
  }

  .philosophy-card {
    border-radius: 22px;
  }

  .philosophy-body {
    padding: 26px 22px 26px 26px;
  }

  .philosophy-body p {
    font-size: 15px;
    line-height: 1.9;
  }
}

@media (max-width: 480px) {
  .home-page {
    padding: 24px 0 64px;
  }

  .home-showcase-card {
    padding: 12px;
    border-radius: 20px;
  }

  .slider-image {
    height: 300px;
  }

  .slider-btn {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .hero-grid {
    grid-template-rows: 230px 310px;
  }

  .philosophy-body {
    padding: 22px 18px 22px 22px;
  }

  .philosophy-body p {
    font-size: 14px;
    line-height: 1.85;
  }
}
/* =========================================================
   REMAP RECRUITMENT ADDITIONS
========================================================= */

/* ---- Text hero ---- */
.remap-hero{
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  padding: clamp(2rem, 5vw, 3.4rem);
  border-radius: 30px;
  background: linear-gradient(135deg, #08111f 0%, #0f2347 45%, #173ea8 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(8, 17, 31, 0.22);
}
.remap-hero::after{
  content:"";
  position:absolute; inset:auto -80px -120px auto;
  width:340px; height:340px; border-radius:50%;
  background: radial-gradient(circle, rgba(45,140,255,0.45) 0%, rgba(45,140,255,0) 70%);
}
.remap-hero-inner{ position: relative; z-index: 1; max-width: 920px; }
.remap-kicker{
  display:inline-flex; align-items:center;
  margin-bottom: 16px; padding: 0.45rem 0.9rem;
  border-radius:999px;
  background: rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.18);
  font-size:12px; font-weight:800; letter-spacing:0.08em; text-transform:uppercase;
}
.remap-hero h1{
  margin:0; font-size: clamp(30px, 4.4vw, 50px); line-height:1.12; letter-spacing:-0.02em;
}
.remap-hero-sub{
  margin: 18px 0 0; max-width: 820px;
  font-size:17px; line-height:1.8; color: rgba(255,255,255,0.9);
}
.remap-hero-sub strong{ color:#fff; }
.remap-hero-actions{ display:flex; flex-wrap:wrap; gap:0.8rem; margin-top: 26px; }

.remap-btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:50px; padding:0.85rem 1.5rem; border-radius:999px;
  font-weight:800; text-decoration:none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.remap-btn:hover{ transform: translateY(-2px); }
.remap-btn-primary{ background:#fff; color:#0f2347; box-shadow:0 14px 30px rgba(255,255,255,0.16); }
.remap-btn-primary:hover{ background:#eef4ff; }
.remap-btn-ghost{ background:rgba(255,255,255,0.08); color:#fff; border:1px solid rgba(255,255,255,0.24); }
.remap-btn-ghost:hover{ background:rgba(255,255,255,0.16); }

.remap-hero-meta{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:14px;
  margin-top: 30px; padding-top: 24px;
  border-top:1px solid rgba(255,255,255,0.16);
}
.remap-hero-meta div{ display:flex; flex-direction:column; gap:2px; }
.remap-hero-meta strong{ font-size:18px; }
.remap-hero-meta span{ font-size:12.5px; color: rgba(255,255,255,0.72); }

/* ---- Figure band ---- */
.figure-band{ margin: 22px 0 0; }
.figure-band img{
  width:100%; display:block; border-radius:22px;
  border:1px solid var(--home-border);
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
  background:#fff;
}
.figure-band figcaption{
  margin-top:10px; font-size:13.5px; color: var(--home-muted); line-height:1.6; text-align:center;
}

/* ---- Hypothesis cards ---- */
.hypo-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap:20px; }
.hypo-card{
  position:relative; overflow:hidden;
  padding:28px 30px; border-radius:24px;
  border:1px solid rgba(8,17,31,0.08);
  background: linear-gradient(180deg, #ffffff 0%, var(--home-soft) 100%);
  box-shadow:0 14px 34px rgba(15,23,42,0.05);
}
.hypo-card::before{
  content:""; position:absolute; inset:0 auto 0 0; width:5px;
  background: linear-gradient(180deg, var(--home-blue), var(--home-sky));
}
.hypo-tag{
  display:inline-block; margin-bottom:10px; padding:0.32rem 0.7rem;
  border-radius:999px; background:#eff6ff; color:#1d4ed8;
  font-size:12px; font-weight:800;
}
.hypo-card h3{ margin:0 0 10px; font-size:22px; color:#0b1730; }
.hypo-card p{ margin:0; font-size:15.5px; line-height:1.85; color:#1e293b; }

/* ---- Facts ---- */
.facts-grid{
  display:grid; grid-template-columns: repeat(2, 1fr); gap:0;
  border:1px solid var(--home-border); border-radius:20px; overflow:hidden;
  background:#fff; box-shadow:0 14px 34px rgba(15,23,42,0.05);
}
.fact-row{
  display:flex; flex-direction:column; gap:4px;
  padding:18px 22px; border-top:1px solid #eef2f7; border-left:1px solid #eef2f7;
}
.fact-row:nth-child(-n+2){ border-top:0; }
.fact-row:nth-child(odd){ border-left:0; }
.fact-row span{ font-size:12px; font-weight:800; letter-spacing:0.06em; text-transform:uppercase; color:var(--home-muted); }
.fact-row strong{ font-size:15px; color:#0f172a; line-height:1.5; }

/* ---- CTA ---- */
.remap-cta{
  display:flex; justify-content:space-between; align-items:center; gap:1.2rem;
  padding: clamp(1.8rem, 4vw, 2.6rem); border-radius:28px;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%); color:#fff;
  box-shadow:0 22px 48px rgba(15,23,42,0.18);
}
.remap-cta h2{ margin:0; font-size:clamp(1.5rem,2.6vw,2.1rem); line-height:1.2; }
.remap-cta p{ margin:0.7rem 0 0; max-width:680px; color:rgba(255,255,255,0.86); line-height:1.75; }
.remap-cta-links{ display:flex; flex-wrap:wrap; gap:0.7rem; }

@media (max-width: 900px){
  .remap-hero-meta{ grid-template-columns: repeat(2, 1fr); }
  .hypo-grid{ grid-template-columns:1fr; }
  .facts-grid{ grid-template-columns:1fr; }
  .fact-row{ border-left:0; }
  .fact-row:nth-child(2){ border-top:1px solid #eef2f7; }
  .remap-cta{ flex-direction:column; align-items:flex-start; }
}
@media (max-width: 480px){
  .remap-hero-meta{ grid-template-columns:1fr; }
}
