/* =========================================================
   Coastal Futures, call for applications page (v2)
   ========================================================= */

/* Hero ----------------------------------------------------- */
.cfc-hero {
  position: relative;
  background: var(--agi-olive-deep);
  color: #fff;
  padding: 72px 0 96px;
  overflow: hidden;
}
.cfc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 12% 100%, rgba(178, 47, 40, 0.16), transparent 50%);
}
.cfc-arcs { position: absolute; top: -84px; right: -70px; width: min(44vw, 580px); z-index: 0; opacity: 0.4; }
@media (max-width: 1100px) { .cfc-arcs { width: min(72vw, 440px); top: -54px; right: -96px; } }
.cfc-hero .wrap { position: relative; z-index: 1; }
.cfc-hero .crumbs { color: rgba(248, 242, 226, 0.6); margin-bottom: 44px; }
.cfc-hero .crumbs a { color: rgba(248, 242, 226, 0.85); }
.cfc-hero .crumbs a:hover { color: var(--agi-yellow); }
.cfc-hero .crumbs .now { color: var(--agi-yellow); }

.cfc-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(40px, 5vw, 90px);
  align-items: center;
}
.cfc-copy .eyebrow { margin-bottom: 22px; }
.cfc-copy h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 26px;
  text-wrap: balance;
}
.cfc-copy h1 em { font-style: italic; font-weight: 400; color: var(--agi-yellow); }
.cfc-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(248, 242, 226, 0.82);
  max-width: 54ch;
  margin: 0 0 36px;
}
.cfc-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Key-facts panel, cream like the article data panel -------- */
.cfc-panel {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  border-radius: 18px;
  padding: 36px 36px 16px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.cfc-stamp {
  position: absolute;
  top: -17px;
  right: 24px;
  transform: rotate(-3deg);
  background: var(--agi-red);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}
.cfc-deadline .k {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.cfc-deadline .v {
  font-family: var(--serif);
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
}
.cfc-stripe { display: flex; height: 4px; margin: 22px 0 4px; border-radius: 2px; overflow: hidden; }
.cfc-stripe span { flex: 1; }
.cfc-stripe span:nth-child(1) { background: var(--agi-olive); }
.cfc-stripe span:nth-child(2) { background: var(--agi-orange); }
.cfc-stripe span:nth-child(3) { background: var(--agi-yellow); }
.cfc-stripe span:nth-child(4) { background: var(--agi-red); }
.cfc-meta { list-style: none; margin: 0; padding: 0; }
.cfc-meta li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cfc-meta li:last-child { border-bottom: none; }
.cfc-meta .k { color: var(--ink-3); }
.cfc-meta .v { color: var(--ink); font-weight: 500; text-align: right; }

/* Eligibility ----------------------------------------------- */
.cfc-who { background: var(--paper); padding: 100px 0 0; }
.cfc-who-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(44px, 6vw, 110px);
  align-items: start;
}
.cfc-who .eyebrow { margin-bottom: 18px; }
.cfc-who .h-section { margin-bottom: 24px; }
.cfc-who-lead { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin: 0 0 30px; max-width: 46ch; }
.cfc-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--cream);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 480px;
}
.cfc-note svg { flex-shrink: 0; color: var(--agi-olive); margin-top: 2px; }

/* Profile index, editorial list */
.cfc-roster { list-style: none; margin: 0; padding: 0; }
.cfc-roster li {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.cfc-roster li:first-child { border-top: 1px solid var(--line-2); }
.cfc-roster .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  flex-shrink: 0;
  color: var(--agi-red);
}
.cfc-roster .who {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.cfc-roster .det {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-3);
  text-align: right;
}

/* Wide photo strip */
.cfc-strip { margin: 84px 0 0; }
.cfc-strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 3.1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
}
.cfc-strip figcaption {
  font-size: 13px;
  color: var(--ink-3);
  padding: 12px var(--gutter) 0;
  max-width: var(--maxw);
  margin: 0 auto;
}
@media (max-width: 720px) { .cfc-strip img { aspect-ratio: 16 / 8; } }

/* Themes ---------------------------------------------------- */
.cfc-themes { background: var(--cream); padding: 100px 0; margin-top: 84px; }
.cfc-themes-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 64px;
}
.cfc-themes-head .eyebrow { margin-bottom: 18px; }
.cfc-themes-head .cnt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  padding-bottom: 10px;
}
.cfc-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(44px, 6vw, 110px);
}
.cfc-theme {
  border-top: 1px solid var(--line-2);
  padding: 30px 0 44px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 6px 22px;
}
.cfc-theme .tc-num {
  grid-row: span 2;
  font-size: 44px;
  line-height: 0.9;
  color: var(--agi-red);
}
.cfc-theme h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.28;
  margin: 0;
  text-wrap: balance;
}
.cfc-theme p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-3); max-width: 44ch; }

/* The programme, article echo -------------------------------- */
.cfc-prog {
  position: relative;
  background: var(--agi-red-dark);
  color: var(--cream);
  padding: 104px 0;
  overflow: hidden;
}
.cfc-prog::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 88% 10%, rgba(232, 185, 54, 0.14), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(42, 50, 16, 0.35), transparent 55%);
}
.cfc-prog .wrap { position: relative; z-index: 1; }
.cfc-prog-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(44px, 6vw, 100px);
  align-items: center;
}
.cfc-prog figure { margin: 0; }
.cfc-prog figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
}
.cfc-prog figcaption { font-size: 13px; color: rgba(248, 242, 226, 0.6); margin-top: 12px; }
.cfc-prog .eyebrow { margin-bottom: 18px; }
.cfc-prog .h-section { color: #F8F2E2; margin-bottom: 26px; }
.cfc-prog-body p { margin: 0 0 20px; font-size: 16px; line-height: 1.7; color: rgba(248, 242, 226, 0.82); }
.cfc-quote {
  margin: 32px 0;
  padding: 0;
  border: none;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.3;
  color: var(--agi-yellow);
}
.cfc-quote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  color: rgba(248, 242, 226, 0.65);
}
.cfc-prog-stats {
  display: flex;
  gap: 48px;
  margin: 36px 0 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(248, 242, 226, 0.2);
}
.cfc-prog-stats > div { display: flex; flex-direction: column; gap: 4px; }
.cfc-prog-stats .num {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  color: var(--agi-yellow);
  line-height: 1;
}
.cfc-prog-stats .lbl { font-size: 13px; color: rgba(248, 242, 226, 0.7); letter-spacing: 0.02em; }

/* Responsive ------------------------------------------------- */
@media (max-width: 980px) {
  .cfc-grid { grid-template-columns: 1fr; gap: 52px; align-items: start; }
  .cfc-panel { max-width: 480px; }
  .cfc-who-grid { grid-template-columns: 1fr; gap: 44px; }
  .cfc-theme-grid { grid-template-columns: 1fr; }
  .cfc-theme { padding-bottom: 34px; }
  .cfc-prog-grid { grid-template-columns: 1fr; gap: 44px; }
  .cfc-prog figure { max-width: 420px; }
}
@media (max-width: 720px) {
  .cfc-hero { padding: 52px 0 72px; }
  .cfc-who { padding-top: 72px; }
  .cfc-strip { margin-top: 60px; }
  .cfc-themes { padding: 72px 0; margin-top: 60px; }
  .cfc-prog { padding: 76px 0; }
  .cfc-themes-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 44px; }
  .cfc-roster .det { display: none; }
  .cfc-roster .who { font-size: 22px; }
  .cfc-prog-stats { flex-wrap: wrap; gap: 28px 40px; }
  .cfc-actions .btn { width: 100%; justify-content: center; }
  .cfc-panel { padding: 32px 26px 12px; }
}
