/* About page — editorial treatment. Flat navy (#011a45), hairline rules,
   baseline-set figures, underline links. Typography inherits the site font. */

.ab-shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ---------- Reveal on scroll ---------- */
.ab-reveal {
  opacity: 0;
  transform: translateY(18px);
}

.ab-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
  .ab-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Links ---------- */
.ab-link {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #011a45;
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid #011a45;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ab-link:hover {
  color: #0356f0;
  border-color: #0356f0;
}

.ab-link--light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.ab-link--light:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* ---------- Intro: A 27-Year-Long Tradition ---------- */
.ab-intro {
  background: #ffffff;
  padding: 7rem 0 5.5rem;
}

.ab-intro__heading {
  margin: 0 0 3rem;
  max-width: 54rem;
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: #0d0c0b;
}

.ab-intro__row {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #e7e0d8;
  padding-top: 2.5rem;
}

.ab-intro__col {
  max-width: 36rem;
}

.ab-intro__text {
  margin: 0 0 2rem;
  font-size: 1.16rem;
  line-height: 1.8;
  color: #4c4642;
}

/* ---------- Button ---------- */
.ab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  background: #011a45;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.ab-row:hover .ab-btn,
.ab-btn:hover {
  background: #0356f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(3, 86, 240, 0.35);
}

.ab-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ab-btn--ghost {
  background: transparent;
  color: #011a45;
  box-shadow: inset 0 0 0 2px #011a45;
}

.ab-btn--ghost:hover {
  background: #011a45;
  color: #ffffff;
  box-shadow: inset 0 0 0 2px #011a45, 0 6px 16px rgba(1, 26, 69, 0.3);
}

/* ---------- Split rows (homepage committees) ---------- */
.ab-split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem 4rem;
  padding: 2.75rem 0;
  border-top: 1px solid #e2d9cf;
}

.ab-split:last-child {
  border-bottom: 1px solid #e2d9cf;
}

.ab-split__title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: #0d0c0b;
}

.ab-split__body p {
  margin: 0 0 1.5rem;
  font-size: 1.13rem;
  line-height: 1.8;
  color: #4c4642;
}

.ab-split__body p:last-child {
  margin-bottom: 0;
}

.ab-split__body .ab-link {
  margin-top: 0.25rem;
}

/* ---------- Navy panel (homepage theme) ---------- */
.ab-panel {
  background: #011a45;
  padding: 7rem 0;
}

.ab-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem 5rem;
  align-items: start;
}

.ab-panel__text {
  margin: 0 0 2.25rem;
  font-size: 1.13rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Letter (homepage) ---------- */
.ab-letter {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3rem 5rem;
  align-items: start;
}

.ab-letter__heading {
  margin: 0 0 2.5rem;
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #0d0c0b;
}

.ab-letter__figure {
  margin: 0;
  position: sticky;
  top: 6rem;
}

.ab-letter__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e7e0d8;
}

/* Coat-of-arms still (homepage SG letter) — navy crests on a transparent
   ground, floating directly on the page background. The box follows the
   still's own ratio (cropped tight to the crest grid); very short viewports
   cap the height and the cover crop eats evenly into the small padding. */
.ab-letter__figure--collage {
  overflow: hidden;
  height: auto;
  aspect-ratio: 1022 / 1372; /* intrinsic ratio of coa-still-portrait.png */
  max-height: min(calc(100vh - 8rem), 46rem);
  border: 0;
  background: none;
}

.ab-letter__figure--collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  display: block;
}

/* ---------- Countdown (homepage) ---------- */
.ab-countdown {
  position: relative;
  overflow: hidden;
  background: #011a45;
  padding: 8rem 0;
  text-align: center;
}

/* ::after so the wash paints above the collage tiles (children) */
.ab-countdown::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 13, 35, 0.86) 0%, rgba(1, 20, 55, 0.78) 55%, rgba(1, 10, 28, 0.9) 100%);
}

.ab-countdown .ab-shell {
  position: relative;
  z-index: 1;
}

.ab-countdown .home-hero-collage {
  z-index: 0;
}

.ab-countdown__heading {
  margin: 0 0 2.25rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.ab-countdown .js-clock {
  display: flex;
  justify-content: center;
  align-items: stretch;
  margin: 0 0 2.25rem;
}

.ab-countdown .box {
  /* override webflow's .box (width: 120px; margin: 0 30px) */
  width: auto;
  margin: 0;
  padding: 0 clamp(0.5rem, 1.2vw, 1.1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ab-countdown .clock-number {
  font-size: clamp(2.7rem, 10vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.ab-countdown .clock-label {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #7d94c9;
}

.ab-countdown__progress {
  max-width: 34rem;
  height: 6px;
  margin: 0 auto 1.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.ab-countdown__bar {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f6cb0 0%, #ffffff 100%);
  box-shadow: 0 0 12px rgba(174, 191, 227, 0.5);
  transition: width 1.6s cubic-bezier(0.25, 0.8, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .ab-countdown__bar {
    transition: none;
  }
}

.ab-countdown__date {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Editorial rows (registration landing) ---------- */
.ab-rows {
  border-top: 1px solid #e7e0d8;
}

.ab-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
  padding: 2.4rem 0;
  border-bottom: 1px solid #e7e0d8;
  text-decoration: none;
}

.ab-row__title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: #0d0c0b;
  transition: color 0.2s ease, transform 0.25s ease;
}

a.ab-row:hover .ab-row__title {
  color: #0356f0;
  transform: translateX(0.5rem);
}

.ab-row__note {
  font-size: 1.02rem;
  line-height: 1.5;
  color: #8b847c;
}

.ab-row--closed .ab-row__title {
  color: #9a938c;
}

/* closed rows can be anchors (form-status.js blocks the click) — no hover invite */
a.ab-row--closed {
  cursor: default;
}

a.ab-row--closed:hover .ab-row__title {
  color: #9a938c;
  transform: none;
}

@media (max-width: 800px) {
  .ab-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.9rem 0;
  }
}

/* ---------- Stats band ---------- */
.ab-stats {
  background: #011a45;
  padding: 5.5rem 0;
}

.ab-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 4rem;
}

.ab-stat {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 1.75rem;
}

.ab-stat__figure {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.ab-stat__number {
  font-size: clamp(2.75rem, 4.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.ab-stat__unit {
  font-size: 1.2rem;
  font-weight: 600;
  color: #aebfe3;
}

.ab-stat__label {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- Story ---------- */
.ab-story {
  background: #faf6f2;
  padding: 6.5rem 0;
}

.ab-story__inner {
  max-width: 44rem;
  margin: 0 auto;
}

.ab-story__p {
  margin: 0 0 1.8em;
  /* ≥20px keeps macOS on the SF Pro Display optical face — below that the
     system silently swaps to SF Pro Text, which reads as a different font
     next to the 1.32rem lead paragraph. */
  font-size: 1.25rem;
  line-height: 1.8;
  color: #14110f; /* same ink black as the lead paragraph */
}

.ab-story__p:last-child {
  margin-bottom: 0;
}

.ab-story__p--lead {
  font-size: 1.32rem;
  line-height: 1.7;
  color: #14110f;
}

/* ---------- Koç School callout ---------- */
.ab-callout {
  position: relative;
  overflow: hidden;
  padding: 8.5rem 0;
}

.ab-callout__bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/66bcd5e33348e60c4e5bfb3f_DJI_0207_Emre_Dorter_Koc_Lisesi-min-1-2048x1364.702b3664.jpg");
  background-size: cover;
  background-position: center;
}

.ab-callout__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(1, 15, 40, 0.88) 0%, rgba(1, 15, 40, 0.6) 55%, rgba(1, 15, 40, 0.28) 100%);
}

.ab-callout .ab-shell {
  position: relative;
  z-index: 1;
}

.ab-callout__content {
  max-width: 37rem;
}

.ab-callout__kicker {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #c6d3ee;
}

.ab-callout__heading {
  margin: 0 0 1.75rem;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #ffffff;
}

.ab-callout__text {
  margin: 0 0 2.25rem;
  font-size: 1.14rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .ab-shell {
    padding: 0 1.5rem;
  }
  .ab-intro {
    padding: 4.5rem 0 4rem;
  }
  .ab-intro__heading {
    margin-bottom: 2rem;
  }
  .ab-intro__row {
    padding-top: 2rem;
  }
  .ab-story {
    padding: 4.5rem 0;
  }
  .ab-callout {
    padding: 5.5rem 0;
  }
  .ab-stats {
    padding: 4rem 0;
  }
  .ab-stats__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .ab-split,
  .ab-panel__grid,
  .ab-letter {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .ab-split {
    padding: 2rem 0;
  }
  .ab-panel {
    padding: 4.5rem 0;
  }
  .ab-letter__figure {
    position: static;
  }
  .ab-letter__figure--collage {
    height: 22rem;
  }
  .ab-countdown {
    padding: 4rem 0;
  }
  .ab-countdown .box {
    padding: 0 0.9rem;
  }
}
