/* Full Circle homepage. Needs fonts.css and site.css. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  scrollbar-color: var(--teal) var(--cream-2);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--coral); color: var(--ink); }
:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .hero :focus-visible, .cta-band :focus-visible, footer :focus-visible { outline-color: var(--cream); }

.wrap { width: min(1200px, 100% - 64px); margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { background: var(--teal); color: var(--cream); position: relative; overflow: hidden; padding-block: 0; }
.hero-in {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "copy orbit" "facts orbit"; align-content: center; align-items: center; column-gap: 56px; row-gap: 0;
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 112px);
  min-height: min(84vh, 780px);
}
.hero-copy { grid-area: copy; align-self: end; }
.hero-copy .hero-actions { margin-bottom: 0; }
.orbit { grid-area: orbit; }
.hero-facts { grid-area: facts; align-self: start; margin-top: 40px; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.75rem); line-height: 1.2; color: var(--cream); margin-bottom: 26px; }
.hero h1 .mark { position: relative; white-space: nowrap; z-index: 0; }
.hero h1 .mark::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .12em; z-index: -1;
  background: var(--coral); border-radius: 999px; transform-origin: left center;
  animation: underline 1s .5s var(--ease) both;
}
.hero-lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.6; max-width: 34em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; font-weight: 600; font-size: 1rem; }
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); flex-shrink: 0; }

.orbit { position: relative; width: min(100%, 500px); margin-inline: auto; }
.orbit .disc { position: relative; aspect-ratio: 1; width: 100%; }
.orbit .photo { position: absolute; inset: 5%; border-radius: 50%; overflow: hidden; background: var(--teal-deep); }
.orbit .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 40%; }
.orbit svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.orbit svg.ring circle { fill: none; stroke: var(--coral); stroke-width: .9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1.8s .25s var(--ease) both; }

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Sections ---------- */
section { padding-block: clamp(72px, 10vw, 136px); }
.sec-title { font-size: clamp(2.125rem, 4.4vw, 3.5rem); margin-bottom: 20px; }
.sec-sub { font-size: 1.1875rem; color: var(--soft); max-width: 30em; }

/* Programs: an index with a path rail */
.programs-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.programs-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.index { list-style: none; position: relative; padding-left: 44px; }
.index::before { content: ''; position: absolute; left: 11px; top: 28px; bottom: 28px; width: 0; border-left: 2px dashed rgba(27, 42, 59, .35); }
.index li { position: relative; }
.index li + li { border-top: 1px solid var(--rule); }
.index li::before {
  content: ''; position: absolute; left: -44px; top: 34px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--hue); border: 5px solid var(--cream); box-shadow: 0 0 0 2px var(--hue);
  transition: transform .35s var(--ease);
}
.index li:hover::before, .index li:focus-within::before { transform: scale(1.25); }
.row { display: block; padding: 28px 24px 30px 0; text-decoration: none; border-radius: 14px; transition: background-color .25s, padding .3s var(--ease); }
.row:hover { background: rgba(236, 228, 214, .7); padding-left: 20px; }
.row .kind { display: block; font: 600 1rem/1.3 var(--sans); color: var(--coral-ink); margin-bottom: 12px; }
.row h3 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); margin-bottom: 6px; }
.row p { color: var(--soft); max-width: 34em; margin-bottom: 14px; }
.index li.close::before { background: var(--cream); border-color: var(--cream); box-shadow: 0 0 0 2px var(--coral-ink); }
.close .row { padding-bottom: 8px; }
.close .row:hover { background: none; padding-left: 0; }
.close .btn { margin-top: 8px; }
.row .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal); }
.row .go svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.row:hover .go svg { transform: translateX(6px); }
.row:hover h3 { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: .18em; }

/* Why */
.why { background: var(--cream-2); position: relative; overflow: hidden; }
.why::after {
  content: ''; position: absolute; width: 560px; height: 560px; left: -300px; bottom: -330px;
  border: 3px solid var(--coral); border-radius: 50%; pointer-events: none;
}
.why-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 8vw, 128px); position: relative; z-index: 1; }
.who { margin-top: 28px; max-width: 30em; font-weight: 500; }
.who a { color: var(--teal); font-weight: 700; }
.why-list { list-style: none; }
.why-list li { padding-block: 30px; border-top: 2px solid var(--navy); }
.why-list li:first-child { padding-top: 28px; }
.why-list h3 { font-size: 1.75rem; margin-bottom: 10px; }
.why-list p { color: var(--soft); max-width: 32em; }

/* Voices */
.voices-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: start; margin-top: 56px; }
.big-quote { margin: 0; }
.big-quote p { font: 400 clamp(1.5rem, 2.7vw, 2.25rem)/1.3 var(--serif); letter-spacing: -.01em; margin-bottom: 28px; text-wrap: pretty; }
.big-quote::before { content: '\201C'; display: block; font: 400 7rem/.6 var(--serif); color: var(--coral); margin-bottom: 18px; height: 56px; }
cite { font-style: normal; display: block; font-weight: 700; }
cite span { display: block; font-weight: 500; color: var(--soft); }
.small-quotes { display: grid; gap: 28px; }
.small-quote { margin: 0; padding: 28px 30px; background: var(--cream-2); border-radius: 22px; }
.small-quote p { margin-bottom: 18px; }
.more { margin-top: 48px; }

/* CTA band */
.cta-band { background: var(--coral); color: var(--ink); text-align: center; position: relative; overflow: hidden; padding-block: clamp(80px, 11vw, 144px); }
.cta-band::before, .cta-band::after { content: ''; position: absolute; border-radius: 50%; border: 3px solid rgba(20, 32, 45, .22); pointer-events: none; }
.cta-band::before { width: 520px; height: 520px; left: -200px; top: -240px; }
.cta-band::after { width: 380px; height: 380px; right: -140px; bottom: -190px; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(2.25rem, 5.2vw, 4.25rem); max-width: 14em; margin: 0 auto 22px; }
.cta-band p { font-size: 1.25rem; max-width: 30em; margin: 0 auto 36px; }
.cta-band .row-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }


/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .wrap { width: min(1200px, 100% - 40px); }
  .hero-in { grid-template-columns: 1fr; grid-template-areas: "copy" "orbit" "facts"; row-gap: 40px; min-height: 0; padding-top: 40px; }
  .hero-copy { align-self: start; }
  .hero-facts { margin-top: 0; }
  .orbit { width: min(72%, 380px); }
  .programs-in, .why-in, .voices-in { grid-template-columns: 1fr; }
  .programs-head { position: static; }
  .why::after { width: 380px; height: 380px; left: -220px; bottom: -330px; }
}
@media (max-width: 560px) {
  .hero-actions .btn { width: 100%; }
  .index { padding-left: 38px; }
  .index li::before { left: -38px; }
  .row { padding-right: 0; }
  .orbit { width: 100%; display: flex; flex-direction: column; align-items: center; }
  .orbit .disc { width: min(76%, 300px); }
  .cta-band .btn { width: 100%; }
}

/* ---------- results banner ---------- */
.results { background: var(--cream-2); border-block: 1px solid var(--border); padding: 22px 0; }
.results-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 32px; }
.results-label { font-weight: 700; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-ink); white-space: nowrap; }
.marquee { display: flex; overflow: hidden; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee .track { display: flex; flex-shrink: 0; align-items: center; list-style: none; min-width: 100%; justify-content: space-around; animation: slide 150s linear infinite; }
.marquee .track[hidden] { display: flex; }
.marquee .track li { font-family: var(--serif); font-size: 1.375rem; line-height: 1.2; color: var(--teal-deep); white-space: nowrap; padding-inline: 28px; position: relative; }
.marquee .track li::after { content: ''; position: absolute; right: -4px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--coral); }
.marquee:hover .track, .marquee:focus-within .track { animation-play-state: paused; }
.results-link { font-weight: 600; color: var(--teal-deep); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.results-link:hover { color: var(--coral-ink); }
@keyframes slide { to { transform: translateX(-100%); } }
@media (max-width: 760px) {
  .results-in { grid-template-columns: 1fr; }
  .marquee .track li { font-size: 1.1875rem; padding-inline: 20px; }
}

.results-actions { display: flex; align-items: center; gap: 18px; }
.mq-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mq-btn { cursor: pointer; font-weight: 600; font-size: .875rem; color: var(--teal-deep); border: 1.5px solid var(--teal-deep); border-radius: 999px; padding: 5px 14px; line-height: 1.2; white-space: nowrap; }
.mq-btn:hover { background: var(--teal-deep); color: var(--cream); }
.mq-toggle:focus-visible + .marquee, .mq-toggle:focus-visible ~ .results-actions .mq-btn { outline: 3px solid var(--coral-ink); outline-offset: 3px; }
.mq-btn .when-paused { display: none; }
.mq-toggle:checked ~ .results-actions .when-playing { display: none; }
.mq-toggle:checked ~ .results-actions .when-paused { display: inline; }
.mq-toggle:checked ~ .marquee .track { animation-play-state: paused; }
@media (max-width: 760px) { .results-actions { justify-content: space-between; } }

/* The college banner keeps scrolling for everyone and has its own Pause button,
   so it is exempt from the site wide reduced motion rule in site.css. */
@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: slide 150s linear infinite !important; }
  .marquee:hover .track,
  .marquee:focus-within .track,
  .mq-toggle:checked ~ .marquee .track { animation-play-state: paused !important; }
}
