/* pages.css — hero & page-specific compositions */

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, #ffffff 30%, rgba(255,255,255,.82) 52%, rgba(255,255,255,.34) 100%);
}
@media (max-width: 900px) {
  .hero-bg::after {
    background: linear-gradient(180deg, #ffffff 38%, rgba(255,255,255,.66) 100%);
  }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 95%, var(--paper-3) 95%),
    linear-gradient(90deg, transparent 95%, var(--paper-3) 95%);
  background-size: 48px 48px;
  opacity: 0.6;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: var(--space-7) 0 var(--space-6);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.hero h1 .accent { color: var(--red); }
.hero .lead { margin-bottom: var(--space-5); }
.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-visual .ring {
  position: absolute;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
}
.hero-visual .ring.r1 { inset: 8%; }
.hero-visual .ring.r2 { inset: 22%; }
.hero-visual .ring.r3 { inset: 36%; border-color: rgba(228,0,43,.5); }
.hero-visual .ball {
  width: 32%; height: 32%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 38%, #d6d6d6 60%, #9a9a9a 100%);
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.6);
}
.hero-visual .ball::before,
.hero-visual .ball::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.hero-visual .ball::before {
  width: 26%; height: 26%;
  top: 32%; left: 37%;
  clip-path: polygon(50% 0,100% 38%,82% 100%,18% 100%,0 38%);
}
.hero-visual .big-num {
  position: absolute;
  bottom: 16px; left: 18px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: .9;
  color: var(--red);
  z-index: 3;
}
.hero-visual .big-num small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: #c9c9cc;
  font-weight: 500;
}
.hero-visual .corner-tag {
  position: absolute;
  top: 16px; right: 18px;
  font-family: var(--ff-display);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  z-index: 3;
  border: 1px solid rgba(255,255,255,.25);
  padding: 4px 10px;
  border-radius: 99px;
}

/* page banner (interior pages) */
.page-banner {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 360px; height: 360px;
  border: 60px solid rgba(228,0,43,.18);
  border-radius: 50%;
  z-index: 1;
}
.page-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.page-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13,13,15,.92) 38%, rgba(13,13,15,.72) 68%, rgba(13,13,15,.55) 100%);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner-inner { padding: var(--space-6) 0; max-width: 760px; }
.page-banner h1 { color: #fff; }
.page-banner .lead { color: #c9c9cc; }
.breadcrumb {
  font-family: var(--ff-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #9a9aa0;
  margin-bottom: var(--space-3);
}
.breadcrumb a { color: #c9c9cc; }
.breadcrumb a:hover { color: #fff; }

/* section heading block */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.section-head .lead { margin-bottom: 0; }

/* two-col content + sidebar */
.layout-split {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-6);
  align-items: start;
}
.sidebar { position: sticky; top: 90px; }
.sidebar .panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}
.sidebar .panel h4 {
  font-family: var(--ff-display);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mono);
  margin-bottom: var(--space-3);
}
.toc { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: var(--space-2); }
.toc a { font-size: 0.92rem; }

/* about team */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-4); }
.person { text-align: left; }
.person .avatar {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ink), #34343c);
  display: grid; place-items: center;
  margin-bottom: var(--space-3);
  position: relative;
  overflow: hidden;
}
.person .avatar span {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--red);
}
.person h4 { margin-bottom: 2px; }
.person .role { font-family: var(--ff-display); font-size: 0.82rem; color: var(--mono); }

/* contact rows */
.contact-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}
.contact-row .ico {
  width: 46px; height: 46px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid; place-items: center;
}
.contact-row .ico svg { width: 20px; height: 20px; stroke: var(--red); }
.contact-row .label { font-family: var(--ff-display); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mono); }
.contact-row .value { font-family: var(--ff-display); font-weight: 600; font-size: 1.1rem; }
.contact-row a.value:hover { color: var(--red); }

/* photo block (unsplash) */
.photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo--ratio { aspect-ratio: 16/10; }

.hero-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13,13,15,.5));
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero-visual { max-width: 380px; }
  .layout-split { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
