/* ============================================================================
   HOMI — content sections after the pinned hero + "3.0" process
   Intro · Stats (count-up) · Projects (grid) · Team. Tokens from hero.css.
   Reveal base styles ([data-reveal]) live in hero.css.
   ==========================================================================*/

/* Content wrapper — follows the light/dark theme (night sections inside
   paint their own dark surfaces on top). */
.after { background: var(--bg); color: var(--text); }

/* Shared section heading */
.sec-head { text-align: center; margin: 0 auto clamp(34px, 5vh, 66px); }
.sec-eyebrow {
  font-size: 12px; letter-spacing: .4em;
  color: var(--accent-strong, #b7852a); margin: 0 0 .9em;
}
.sec-title {
  font-family: var(--font-serif); font-weight: 500; color: var(--heading);
  font-size: clamp(22px, 5vw, 50px); letter-spacing: -.01em; margin: 0;
}

/* ── Intro ──────────────────────────────────────────────────────────── */
.intro {
  max-width: 1040px; margin: 0 auto;
  padding: clamp(84px, 15vh, 190px) clamp(24px, 6vw, 80px);
  text-align: center;
}
.intro__eyebrow {
  font-size: 12px; letter-spacing: .4em;
  color: var(--accent-strong, #b7852a); margin: 0 0 1.6em;
}
.intro__big {
  font-family: var(--font-serif); color: var(--heading);
  font-size: clamp(20px, 5vw, 52px); line-height: 1.18; letter-spacing: -.01em;
  margin: 0;
}

/* ── Stats band ─────────────────────────────────────────────────────── */
/* Theme-aware band: a subtly-offset surface in both modes so the count-up
   numbers read on light AND dark. */
.stats {
  background: var(--bg-alt); color: var(--text);
  padding: clamp(56px, 10vh, 120px) clamp(24px, 6vw, 80px);
}
.stats__row {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 5vw, 72px); text-align: center;
}
.stat b {
  display: block; font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(26px, 6.5vw, 68px); line-height: 1; color: var(--heading);
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block; margin-top: 1em;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-soft);
}

/* ── Projects ───────────────────────────────────────────────────────── */
.projects {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(74px, 12vh, 155px) clamp(24px, 5vw, 60px);
}
.projects__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.card {
  display: block; text-decoration: none; color: inherit;
  border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; transition: transform .7s var(--ease);
}
.card__body {
  padding: 18px 20px; background: var(--surface); color: var(--text);
  display: flex; flex-direction: column; gap: 4px;
}
.card__body b { font-size: 18px; color: var(--heading); }
.card__body span { font-size: 13px; color: var(--text-soft); letter-spacing: .04em; }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px var(--shadow); }
.card:hover img { transform: scale(1.06); }

/* ── Team ───────────────────────────────────────────────────────────── */
.team {
  background: var(--surface-2); color: var(--text);
  padding: clamp(74px, 12vh, 155px) clamp(24px, 5vw, 60px);
}
.team__grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(26px, 3vw, 46px);
}
.member {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  text-align: center;
}
.avatar {
  width: clamp(64px, 7vw, 94px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 8px;
  /* Brand navy chip with gold initials — reads in both themes. */
  background: linear-gradient(140deg, var(--navy-2), var(--navy));
  color: var(--gold); font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 28px); letter-spacing: .04em;
  box-shadow: 0 8px 24px var(--shadow);
}
.avatar--photo { padding: 0; overflow: hidden; }
.avatar--photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.member b { font-size: 15px; color: var(--heading); }
.member span:last-child {
  font-size: 12px; color: var(--text-soft); letter-spacing: .1em; text-transform: uppercase;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .stats__row { grid-template-columns: repeat(2, 1fr); row-gap: 46px; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .team__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .projects__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile enrichment (added by mobile.js: .homi-idle on <html>) ────── */
.homi-gyro-prompt {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 60; padding: 12px 22px; border-radius: 999px;
  border: 1px solid rgba(240, 196, 121, .5); background: rgba(11, 15, 38, .82);
  color: var(--ink); font-size: 13px; letter-spacing: .06em;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
@media (prefers-reduced-motion: no-preference) {
  /* Idle float AVATARLARDA — .member gyro paralaksı için serbest kalır. */
  .homi-idle .card,
  .homi-idle .avatar { animation: homiFloat 5.5s ease-in-out infinite; }
  .homi-idle .member:nth-child(2n) .avatar { animation-delay: -1.4s; }
  .homi-idle .member:nth-child(3n) .avatar { animation-delay: -2.8s; }
  .homi-idle .card:nth-child(2n) { animation-delay: -2s; }
  .homi-idle .card:nth-child(3n) { animation-delay: -3.3s; }
  @keyframes homiFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
  }
}

/* ── Mobile "3.0" → vertical timeline (built by process.js) ──────────── */
.proc__timeline { display: none; }
.proc.is-timeline .proc__svg,
.proc.is-timeline .proc__head { display: none; }
.proc.is-timeline .proc__stage {
  position: static; height: auto; display: block;
  padding: clamp(80px, 12vh, 130px) clamp(22px, 7vw, 40px);
}
.proc.is-timeline .proc__track { height: auto; }
.proc.is-timeline .proc__timeline { display: block; position: relative; margin: 0 auto; max-width: 460px; }
.proc__tl-line {
  position: absolute; left: 15px; top: 0; bottom: 0; width: 2px;
  background: rgba(122, 138, 194, .22);
}
.proc__tl-fill {
  position: absolute; left: 15px; top: 0; width: 2px; height: 0;
  background: linear-gradient(var(--gold), #fff); transition: height .1s linear;
}
.proc__tl-item {
  position: relative; padding: 0 0 clamp(26px, 5vh, 42px) 44px;
  opacity: .35; transition: opacity .4s var(--ease);
}
.proc__tl-item.is-lit { opacity: 1; }
.proc__tl-dot {
  position: absolute; left: 8px; top: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--navy-2); border: 2px solid rgba(122, 138, 194, .4);
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.proc__tl-item.is-lit .proc__tl-dot {
  background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 12px rgba(240, 196, 121, .6);
}
.proc__tl-num { font-size: 12px; letter-spacing: .1em; color: var(--gold); }
.proc__tl-phase {
  margin: 2px 0 0; font-family: var(--font-serif);
  font-size: clamp(18px, 5vw, 24px); color: var(--ink); line-height: 1.2;
}
