/* =========================================================
   home.css — loaded only by index.html
   The four team columns, the About section and the team list
   in the Recruitment section.
   ========================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 24px 110px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* Faint curved mesh behind the text, fading out towards the top */
.hero-mesh {
  position: absolute;
  left: 50%;
  bottom: -4%;
  width: min(1500px, 140vw);
  transform: translateX(-50%);
  opacity: .16;
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent 90%);
  mask-image: linear-gradient(to top, #000 35%, transparent 90%);
  pointer-events: none;
}
.hero .sparkle-a { top: 20%; right: 16%; }
.hero .sparkle-b { top: 27%; right: 13%; }
.hero .sparkle-c { bottom: 26%; left: 12%; }
.hero-inner { position: relative; max-width: 1100px; }
.hero-eyebrow { margin-bottom: 32px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 6.4vw, 92px);
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: 32px;
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero-lead {
  max-width: 520px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.hero-scroll:hover { color: var(--ink); }
.hero-scroll span { display: inline-block; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* Text rises in on load */
.hero-inner > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-inner > :nth-child(2) { animation-delay: .1s; }
.hero-inner > :nth-child(3) { animation-delay: .25s; }
.hero-inner > :nth-child(4) { animation-delay: .35s; }
.hero-inner > :nth-child(5) { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Team columns ---------- */
.teams {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 100vh;
  min-height: 100svh;
}
.team {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 24px 56px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.team:last-child { border-right: none; }
.team-copy {
  position: relative;
  text-align: center;
  /* Title, summary, "meet the team", apply link. The last row is reserved even when a
     team has no apply link, so every column's text lines up. */
  display: grid;
  grid-template-rows: auto auto auto 1.5em;
  transition: transform .4s;
}
.team:hover .team-copy { transform: translateY(-6px); }
.team h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 38px);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  /* Room for two lines ("Marketing & Sales"), bottom-aligned so every column's title shares a baseline */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 2.3em;
  line-height: 1.15;
}
.team h2 a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.team p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 260px;
  margin: 0 auto 16px;
  min-height: 4.5em; /* same height in every column so the titles line up */
}
/* "meet the team" link to the team page */
.team-more {
  display: block;
  width: fit-content;
  min-height: 1.5em;
  margin: 0 auto 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  opacity: .8;
}
.team-more:hover { opacity: 1; text-decoration: underline; }
/* "apply to …" link; colour comes from --accent on the link */
.team-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
.team-link:hover { text-decoration: underline; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px 24px;
}
.about-mark { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.about-mark img { width: 200px; height: auto; }
.wordmark {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: .02em;
}
.about-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--soft);
  text-align: justify;
}

/* ---------- Recruitment team list ---------- */
.recruit-teams {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  margin: 44px 0 48px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--soft);
}
.recruit-teams a { transition: color .2s; }
.recruit-teams a:hover { color: var(--amber); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .teams { grid-template-columns: repeat(2, 1fr); }
  .team { min-height: 60vh; border-bottom: 1px solid var(--line); }
  .team:nth-child(2n) { border-right: none; }
  .about { grid-template-columns: 1fr; gap: 36px; padding: 100px 24px; }
}
@media (max-width: 640px) {
  .teams { grid-template-columns: 1fr; }
  .team { min-height: 88vh; min-height: 88svh; border-right: none; padding: 0 16px 44px; }
  .about { padding-left: 16px; padding-right: 16px; }
  .about-text { text-align: left; font-size: 16px; }
  .wordmark { font-size: 28px; }
  .about-mark img { width: 160px; }
  .recruit-teams { font-size: 18px; gap: 10px 24px; }
  .hero { padding: 110px 16px 96px; }
  .hero-eyebrow { margin-bottom: 24px; }
  .hero-title { margin-bottom: 24px; }
  .hero-lead { font-size: 15px; }
  .hero-actions a { width: 100%; max-width: 320px; }
  .hero .sparkle-a { top: 14%; right: 10%; }
  .hero .sparkle-b { display: none; }
  .hero .sparkle-c { bottom: 16%; left: 8%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-inner > *, .hero-scroll span { animation: none; }
}
