/* home.css - the sections of the home page: figures, promise, the day, pathways, results, visit. */

/* ------------------------------------------------------------------ figures */
/* The four numbers stand on the page as a block of their own rather than as another
   stripe the same colour as everything around them. */
.figures { background: var(--cream); padding: clamp(26px, 3.2vw, 44px) 0 clamp(12px, 1.6vw, 22px); }
.fig-card {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
/* the cells are columns so the small note sits on the same line in all four,
   even where a label runs to two lines */
.fig { padding: 32px 26px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.fig:last-child { border-right: 0; }
.fig b { font-family: var(--display); font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--navy); display: block; }
.fig .lab { font-family: var(--label); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-top: 10px; display: block; }
.fig .note { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; padding-top: 0; align-self: flex-start; }
.fig .lab { margin-bottom: auto; }

/* ------------------------------------------------------------------ promise */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.promise-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 20px; }
.promise-list li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; }
.promise-list .num {
  font-family: var(--display); font-size: 1.5rem; color: var(--sun-ink);
  width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--sun);
  display: grid; place-items: center;
}
.promise-list h3 { margin-bottom: 4px; }
.promise-list p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.photo-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.photo-frame::after { content: ""; position: absolute; inset: 14px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 12px; pointer-events: none; }
.photo-stamp {
  position: absolute; left: -18px; bottom: 28px; background: var(--navy); color: var(--white);
  font-family: var(--label); font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------------ the day */
.day-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.day-rail { display: flex; gap: 20px; overflow-x: auto; padding: 8px 0 28px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--sun) rgba(255, 255, 255, .15); }
.day-rail::-webkit-scrollbar { height: 8px; }
.day-rail::-webkit-scrollbar-thumb { background: var(--sun); border-radius: 999px; }
.day-rail::-webkit-scrollbar-track { background: rgba(255, 255, 255, .14); border-radius: 999px; }
.day-card {
  flex: 0 0 min(300px, 78vw); scroll-snap-align: start;
  background: var(--navy-mid); border: 1px solid var(--line-dark); border-radius: var(--r-lg);
  padding: 26px 24px 28px; position: relative;
}
.day-card time { font-family: var(--display); font-size: 2rem; color: var(--sun); display: block; line-height: 1; }
.day-card h3 { color: var(--white); margin: 12px 0 6px; font-size: 1.2rem; }
.day-card p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .82); }
.day-card::before { content: ""; position: absolute; top: 0; left: 24px; width: 40px; height: 3px; background: var(--sun); }
.rail-hint { font-family: var(--label); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sun); }

/* ------------------------------------------------------------------ pathways */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.path {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.path:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--sun); }
.path h3 { color: var(--navy); }
.path .line { color: var(--ink-2); font-size: 15.5px; margin-bottom: 18px; }
.path ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.path li { font-family: var(--label); font-size: 12px; font-weight: 700; letter-spacing: .04em; background: var(--sky-soft); color: var(--navy); padding: 6px 12px; border-radius: 999px; }
.path .leads { font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 14px; margin: 0; }
.path .leads b { color: var(--ink); }

/* ------------------------------------------------------------------ results */
.results-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.bars { display: flex; align-items: flex-end; gap: clamp(16px, 4vw, 40px); height: 280px; padding: 0 6px; border-bottom: 2px solid var(--line-dark); }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 12px; height: 100%; }
.bar .col {
  width: 100%; max-width: 90px; border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, var(--sun-light), var(--sun));
  height: 0; transition: height 1.1s cubic-bezier(.22, .9, .3, 1);
}
.bar.pale .col { background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .16)); }
.bar b { font-family: var(--display); font-size: 1.6rem; color: var(--white); }
.bar span { font-family: var(--label); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.bar .grade { font-family: var(--label); font-size: 12px; color: var(--sun); letter-spacing: .1em; }

/* ------------------------------------------------------------------ visit / apply */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.opens { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.opens li { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.opens .date { text-align: center; background: var(--navy); color: var(--white); border-radius: var(--r-sm); padding: 8px 6px; }
.opens .date b { font-family: var(--display); font-size: 1.5rem; display: block; line-height: 1; }
.opens .date span { font-family: var(--label); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.opens h3 { font-size: 1.1rem; margin: 0 0 2px; }
.opens p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

.quote { border-left: 3px solid var(--sun); padding-left: 24px; }
.quote p { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-style: italic; line-height: 1.35; margin-bottom: 14px; }
.quote cite { font-family: var(--label); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--sun); }

/* ------------------------------------------------------------------ gallery */
.gallery { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; gap: 18px; margin-top: 30px; }
.shot { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--navy); }
.shot.tall { grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform .6s cubic-bezier(.2, .8, .3, 1); }
.shot.tall img { aspect-ratio: 4 / 5; }
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute; inset: auto 0 0 0; padding: 46px 24px 20px; color: var(--white);
  background: linear-gradient(180deg, rgba(10, 18, 34, 0), rgba(10, 18, 34, .88));
}
.shot figcaption b { font-family: var(--display); font-size: 1.3rem; display: block; line-height: 1.1; }
.shot figcaption span { font-size: 14px; color: rgba(255, 255, 255, .8); }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } .shot.tall { grid-row: auto; } .shot.tall img { aspect-ratio: 16 / 10; } }

/* ------------------------------------------------------------------ the principal's welcome */
.welcome { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.welcome h2 { font-style: italic; font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
.welcome .sign { font-family: var(--display); font-size: 1.3rem; color: var(--navy); margin-top: 22px; }
.welcome .sign span { display: block; font-family: var(--label); font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sun-ink); margin-top: 4px; }
.welcome .photo-frame img { aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .welcome { grid-template-columns: 1fr; } .welcome .photo-frame img { aspect-ratio: 4 / 3; } }
