/* =========================================================================
   GFTEAM APEX — Instructors page
   Loaded AFTER styles.css. Only blocks unique to this page live here;
   everything else (nav, buttons, stats, footer, modal) is shared.
   ========================================================================= */

.u-nowrap { white-space: nowrap; }

/* current page marker in the shared nav */
.nav__link[aria-current="page"]::after { width: 100%; }
.mobile-menu__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; }

/* ------------------------------------------------------------------- HERO */
/* Split hero: copy on black, portrait held at close to its native size so it
   stays sharp (no full-bleed upscaling of a 896px source). */
.instr-hero {
  min-height: 0;
  background: radial-gradient(120% 120% at 78% 0%, #151515 0%, #000 62%);
  padding-top: 148px;
  padding-bottom: clamp(56px, 7vw, 104px);
}
.instr-hero__inner {
  position: relative; z-index: 2; color: #fff;
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(40px, 5vw, 80px); align-items: center;
}
.instr-hero__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(52px, 7.4vw, 104px); line-height: 0.85; letter-spacing: 0.01em;
  margin: var(--s-3) 0;
}
.instr-hero__title span { display: block; }
.instr-hero__title-outline { color: transparent; -webkit-text-stroke: 1px #fff; }
.instr-hero__role {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(13px, 1.5vw, 17px); text-transform: uppercase;
  letter-spacing: 0.22em; color: #fff; margin-bottom: var(--s-3);
}
.instr-hero__text {
  color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.85;
  max-width: 52ch; margin-bottom: var(--s-4);
}
.instr-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.instr-hero__media { position: relative; max-width: 620px; justify-self: end; width: 100%; }
/* height:auto is required — the img's height attribute would otherwise win
   over aspect-ratio and stretch the frame to the source's pixel height. */
.instr-hero__img {
  width: 100%; height: auto; aspect-ratio: 5 / 4;
  object-fit: cover; object-position: 54% center;
  filter: grayscale(1) contrast(1.06);
}
/* offset outline that peeks out behind the photo's right/bottom edges */
.instr-hero__frame {
  position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border: 1px solid rgba(255,255,255,.38); pointer-events: none;
}
.instr-hero__tag {
  position: absolute; left: 0; bottom: 0;
  background: #fff; color: #000;
  font-family: var(--font-heading); font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em; padding: 10px 18px;
}

/* --------------------------------------------------------------- CHIP ROW */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-heading); font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em; padding: 8px 16px;
  border-radius: 100px; box-shadow: inset 0 0 0 1px var(--border); color: var(--text-primary);
}
.chip--light { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }

/* ---------------------------------------------------------------- THE BIO */
.bio__grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 5vw, 84px); align-items: start;
}
.bio__body p { color: var(--text-secondary); font-size: 16px; line-height: 1.85; }
.bio__body p + p { margin-top: var(--s-3); }
.bio__rail {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2px;
  margin-top: var(--s-6); border-top: 1px solid var(--border);
}
.bio__rail-item { padding: var(--s-3) clamp(0px, 1.5vw, 28px) 0; }
.bio__rail-item + .bio__rail-item { border-left: 1px solid var(--border); }
.bio__rail-key {
  font-family: var(--font-heading); font-weight: 400; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-muted);
}
.bio__rail-val {
  display: block; margin-top: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.4;
}

/* ------------------------------------------------------------- PHILOSOPHY */
.teach__grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 5.5vw, 88px); align-items: center;
}
.teach__media { position: relative; }
.teach__img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.teach__bracket {
  position: absolute; left: -1px; top: -1px; width: 56px; height: 56px;
  border-left: 1px solid #000; border-top: 1px solid #000;
}
.teach__body p { color: var(--text-secondary); font-size: 16px; line-height: 1.85; }
.teach__body p + p { margin-top: var(--s-3); }
.teach__chips-label {
  font-family: var(--font-heading); font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-muted);
  margin-top: var(--s-4); margin-bottom: 14px;
}

.pillars {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); gap: 2px;
  margin-top: var(--s-6); border-top: 1px solid var(--border);
}
.pillar { padding: var(--s-4) clamp(14px, 2vw, 30px) 0; }
.pillar + .pillar { border-left: 1px solid var(--border); }
.pillar__num { font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--text-muted); }
.pillar__title {
  font-family: var(--font-heading); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.07em; margin-top: 10px;
}
.pillar__text { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-top: 10px; }

/* ----------------------------------------------------------------- SERVICE */
.section--dark .section__lead { color: rgba(255,255,255,.74); }
/* the ghost section number is tuned for light sections — invert it here */
.section--dark .ghost-num { color: rgba(255,255,255,.055); }
.service__grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 5vw, 80px); align-items: start;
}
.service__body p { color: rgba(255,255,255,.74); font-size: 16px; line-height: 1.85; }
.service__body p + p { margin-top: var(--s-3); }
.service__list { display: grid; gap: 14px; margin-top: var(--s-4); }
.service__list-item {
  position: relative; padding-left: 30px;
  font-family: var(--font-heading); font-weight: 400; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,.85);
}
.service__list-item::before {
  content: ''; position: absolute; left: 0; top: 0.7em; width: 18px; height: 1px; background: #fff;
}

.award { border: 1px solid rgba(255,255,255,.2); padding: clamp(26px, 3vw, 40px); }
.award__icon { display: block; width: 56px; height: 56px; color: #fff; margin-bottom: var(--s-3); }
.award__icon svg { width: 100%; height: 100%; }
.award__label {
  font-family: var(--font-heading); font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em; color: rgba(255,255,255,.6);
}
.award__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(28px, 3vw, 40px); line-height: 0.95; letter-spacing: 0.02em; margin-top: 12px;
}
.award__text { color: rgba(255,255,255,.74); font-size: 15px; line-height: 1.8; margin-top: var(--s-2); }
.award__meta {
  margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid rgba(255,255,255,.2);
  font-family: var(--font-heading); font-weight: 400; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255,255,255,.55);
}

/* ------------------------------------------------------------- THE RECORD */
.record__grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 28px);
}
.record-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column;
}
.record-card__head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: var(--s-2); border-bottom: 1px solid var(--border);
}
.record-card__title {
  font-family: var(--font-heading); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.07em;
}
.record-card__list { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.record-item__name { color: var(--text-primary); font-size: 15px; line-height: 1.55; }
.record-item__years {
  display: block; margin-top: 4px;
  font-family: var(--font-display); font-size: 19px; letter-spacing: 0.06em; color: var(--text-muted);
}

.record-card--feature { background: #000; border-color: #000; color: #fff; }
.record-card--feature .record-card__head { border-bottom-color: rgba(255,255,255,.22); }
.record-card--feature .offer__marker { background: #fff; }
.record-card--feature .record-item__name { color: #fff; }
.record-card--feature .record-item__years { color: rgba(255,255,255,.6); }

/* ----------------------------------------------------------------- MISSION */
.mission__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.quote {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(32px, 4.6vw, 68px); line-height: 0.98; letter-spacing: 0.02em;
  max-width: 24ch; margin-top: var(--s-3);
}
.quote span { display: block; }
.quote__outline { color: transparent; -webkit-text-stroke: 1px #000; }
.mission__text {
  color: var(--text-secondary); font-size: 16px; line-height: 1.85;
  max-width: 62ch; margin-top: var(--s-4);
}
.mission__divider { width: 60px; height: 2px; background: #000; margin: var(--s-5) 0 var(--s-3); }
.mission__sign {
  font-family: var(--font-heading); font-weight: 500; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted);
}

/* ------------------------------------------------------------- RESPONSIVE */
@media (max-width: 1024px) {
  .instr-hero__inner { grid-template-columns: 1fr; }
  .instr-hero__media { justify-self: start; max-width: 560px; }
  .bio__grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .teach__grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .teach__media { max-width: 460px; }
  .service__grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .record__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .instr-hero { padding-top: 124px; }
  .bio__rail-item + .bio__rail-item,
  .pillar + .pillar { border-left: 0; }
  .bio__rail-item, .pillar { border-top: 1px solid var(--border); }
  .bio__rail, .pillars { border-top: 0; gap: 0; }
  .record__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .instr-hero__actions .btn { width: 100%; }
  .instr-hero__frame { display: none; }
}
