/* ===========================================================
   IJCV Special Issue — MUCG
   Brand: IJCV deep teal + emerald green. Dark hero/footer,
   warm light body for readability.
   =========================================================== */

:root {
  /* palette */
  --paper:      #f7f4ec;   /* warm paper bg                 */
  --paper-2:    #ecebe1;   /* alt section / cards           */
  --ink:        #16201e;   /* primary text (slight teal)    */
  --ink-soft:   #46514e;   /* secondary text                */
  --ink-mute:   #868f89;   /* muted / placeholder           */
  --teal:       #0e3b47;   /* IJCV deep petrol — primary    */
  --teal-deep:  #092b34;   /* darker teal (hero/footer)     */
  --green:      #2fae46;   /* IJCV emerald — for dark bg    */
  --green-ink:  #19803a;   /* deeper green — for light bg   */
  --line:       rgba(22, 32, 30, 0.14);
  --line-soft:  rgba(22, 32, 30, 0.08);

  /* type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", system-ui, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, monospace;

  /* metrics */
  --maxw: 1080px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --r: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--green-ink); }

.muted { color: var(--ink-mute); font-style: italic; }
em { font-style: italic; }

/* ───────────────────── NAV ───────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
/* IJCV signature gradient top bar */
.nav::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--green) 0%, var(--teal) 78%);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: .85rem var(--pad);
  display: flex; align-items: center; gap: 1.5rem;
}
.nav__brand { display: flex; align-items: baseline; gap: .55rem; color: var(--ink); }
.nav__mark {
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem;
  letter-spacing: .02em; color: var(--teal);
}
.nav__brand-sub {
  font-family: var(--mono); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--ink-mute);
}
.nav__links { margin-left: auto; display: flex; gap: 1.4rem; }
.nav__links a {
  font-size: .9rem; color: var(--ink-soft); font-weight: 500;
  position: relative; padding: .2rem 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--green-ink); transition: width .25s ease;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { width: 100%; }
.nav__cta { margin-left: .25rem; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .3s; }

/* ───────────────────── BUTTONS ───────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--sans); font-weight: 600; font-size: .92rem;
  padding: .62rem 1.15rem; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer; transition: .22s ease;
}
.btn--solid { background: var(--teal); color: #fff; }
.btn--solid:hover { background: var(--teal-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(0,0,0,.02); }

/* ───────────────────── HERO (dark, IJCV brand) ───────────────────── */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  background:
    radial-gradient(115% 90% at 90% -15%, rgba(47,174,70,.22), transparent 55%),
    radial-gradient(95% 85% at -8% 115%, rgba(8,40,49,.7), transparent 60%),
    linear-gradient(155deg, var(--teal) 0%, var(--teal-deep) 100%);
}
/* keypoint motif: white vertical ticks + green square nodes — subtle, right side only */
.hero__grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='620' height='520'%3E%3Cg stroke='%23ffffff' stroke-opacity='0.12' stroke-width='2'%3E%3Cline x1='40' y1='300' x2='40' y2='470'/%3E%3Cline x1='120' y1='230' x2='120' y2='410'/%3E%3Cline x1='200' y1='150' x2='200' y2='340'/%3E%3Cline x1='290' y1='90' x2='290' y2='270'/%3E%3Cline x1='370' y1='150' x2='370' y2='330'/%3E%3Cline x1='450' y1='220' x2='450' y2='400'/%3E%3Cline x1='540' y1='130' x2='540' y2='320'/%3E%3Cline x1='610' y1='250' x2='610' y2='430'/%3E%3C/g%3E%3Cg fill='%232fae46' fill-opacity='0.5'%3E%3Crect x='34' y='360' width='11' height='11'/%3E%3Crect x='114' y='300' width='11' height='11'/%3E%3Crect x='194' y='235' width='11' height='11'/%3E%3Crect x='284' y='165' width='11' height='11'/%3E%3Crect x='364' y='235' width='11' height='11'/%3E%3Crect x='444' y='300' width='11' height='11'/%3E%3Crect x='534' y='205' width='11' height='11'/%3E%3Crect x='604' y='330' width='11' height='11'/%3E%3C/g%3E%3C/svg%3E")
    no-repeat right -2% center / auto 80%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 50%, #000 82%);
          mask-image: linear-gradient(to right, transparent 0%, transparent 50%, #000 82%);
}
.hero__inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 11vw, 8rem) var(--pad) clamp(3.5rem, 8vw, 6rem);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .76rem; text-transform: uppercase;
  letter-spacing: .16em; color: rgba(255,255,255,.78); margin: 0 0 1.5rem;
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(47,174,70,.22); }
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02;
  letter-spacing: -0.015em; margin: 0 0 1.4rem; color: #fff;
}
.hero__title em { color: var(--green); font-style: italic; }
.hero__lede {
  max-width: 46ch; font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.8); margin: 0 0 2rem;
}
.hero__lede strong { color: #fff; font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 3rem; }
.hero .btn--solid { background: var(--green); color: var(--teal-deep); }
.hero .btn--solid:hover { background: #38c451; color: var(--teal-deep); }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.hero__facts {
  list-style: none; margin: 0; padding: 1.6rem 0 0; border-top: 1px solid rgba(255,255,255,.2);
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; max-width: 640px;
}
.hero__facts-k { display: block; font-family: var(--mono); font-size: .7rem;
  text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.55); margin-bottom: .3rem; }
.hero__facts-v { display: block; font-family: var(--serif); font-size: 1.1rem; color: #fff; }

/* ───────────────────── SECTIONS ───────────────────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) var(--pad); }
/* alt sections: identical content geometry, full-bleed background painted behind */
.section--alt { position: relative; }
.section--alt::before {
  content: ""; position: absolute; z-index: -1;
  top: 0; bottom: 0; left: 50%; margin-left: -50vw; width: 100vw;
  background: var(--paper-2); border-block: 1px solid var(--line-soft);
}

.section__head { margin-bottom: 2rem; }
.section__index { display: block; font-family: var(--mono); font-size: .8rem; color: var(--green-ink);
  letter-spacing: .1em; margin-bottom: .5rem; }
.section__title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.01em; margin: 0; color: var(--ink);
}
.section__intro { color: var(--ink-soft); margin: 0 0 2.2rem; }

/* prose */
.prose { max-width: none; }
.prose p { margin: 0 0 1.2rem; color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.dropcap {
  float: left; font-family: var(--serif); font-weight: 600; font-size: 3.4rem;
  line-height: .82; padding: .1rem .5rem .1rem 0; color: var(--teal);
}

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.8rem; }
.pillar { padding: 1.5rem 1.4rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); position: relative; transition: .25s; }
.section--alt .pillar { background: var(--paper); }
.pillar:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 12px 30px -18px rgba(9,43,52,.55); }
.pillar__num { font-family: var(--mono); font-size: .8rem; color: var(--green-ink); }
.pillar h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin: .5rem 0 .5rem; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* scope (Aims & Scope — 6 cards) */
.scope { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.scope__card { position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.6rem 1.4rem; transition: .25s; }
.scope__card:hover { border-color: var(--teal); box-shadow: 0 12px 30px -18px rgba(9,43,52,.55); }
.scope__num { position: absolute; top: 1rem; right: 1.2rem; font-family: var(--serif);
  font-size: 1.6rem; color: var(--line); font-weight: 600; }
.scope__head { font-family: var(--serif); font-weight: 500; font-size: 1.18rem; color: var(--ink);
  margin: 0 0 .9rem; padding-right: 2rem; }
.scope__list { list-style: none; margin: 0; padding: 0; }
.scope__list li { position: relative; padding: .4rem 0 .4rem 1.4rem; color: var(--ink-soft);
  font-size: .92rem; line-height: 1.45; }
.scope__list li::before { content: "→"; position: absolute; left: 0; top: .4rem; color: var(--green-ink); }

/* submission */
.submit { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.submit__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.submit__card { background: var(--teal); color: #fff; border-radius: var(--r); padding: 1.8rem; }
.submit__card-title { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin: 0 0 1.2rem;
  color: #fff; }
.kv { margin: 0; }
.kv dt { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--green); margin-top: 1rem; }
.kv dt:first-child { margin-top: 0; }
.kv dd { margin: .15rem 0 0; font-size: .98rem; }

/* timeline — horizontal */
.timeline { list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.timeline::before { content: ""; position: absolute; top: 6px; left: 7px; right: 7px;
  height: 2px; background: var(--line); }
.timeline__item { position: relative; padding: 2rem 1.1rem 0 0; }
.timeline__item::before { content: ""; position: absolute; left: 0; top: 0;
  width: 14px; height: 14px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--teal); }
.timeline__item--end::before { background: var(--green-ink); border-color: var(--green-ink);
  box-shadow: 0 0 0 4px rgba(25,128,58,.18); }
.timeline__date { font-family: var(--mono); font-size: .8rem; color: var(--green-ink);
  display: block; letter-spacing: .03em; margin-bottom: .35rem; }
.timeline__label { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); line-height: 1.3; }

@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { top: 7px; bottom: 7px; left: 6px; right: auto; width: 2px; height: auto; }
  .timeline__item { padding: 0 0 1.6rem 2.2rem; }
  .timeline__item::before { top: .15rem; }
}

/* countdown */
.countdown { margin: 0 0 2.8rem; }
.countdown__label { font-family: var(--mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--ink-mute); margin: 0 0 .8rem; }
.countdown__grid { display: inline-flex; align-items: flex-start; gap: .5rem; }
.countdown__unit { display: flex; flex-direction: column; align-items: center;
  min-width: 4.6rem; padding: .8rem .6rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r); }
.countdown__num { font-family: var(--mono); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1; color: var(--teal); font-variant-numeric: tabular-nums; }
.countdown__cap { font-family: var(--mono); font-size: .62rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink-mute); margin-top: .5rem; }
.countdown__sep { font-family: var(--mono); font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1;
  color: var(--line); padding-top: .7rem; }
.countdown.is-expired .countdown__grid { display: none; }
.countdown__closed { display: none; font-family: var(--serif); font-size: 1.3rem; color: var(--green-ink); }
.countdown.is-expired .countdown__closed { display: block; }

.dates__note { margin: 2.2rem 0 0; font-family: var(--mono); font-size: .78rem;
  color: var(--ink-mute); letter-spacing: .02em; }
.dates__note strong { color: var(--ink-soft); font-weight: 600; }

@media (max-width: 480px) {
  .countdown__unit { min-width: 0; flex: 1; }
  .countdown__grid { display: flex; width: 100%; }
}

/* editors */
.editors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
.editor { display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.8rem 1rem; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--paper); transition: .25s; }
.editor:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -20px rgba(9,43,52,.55); }
.editor__avatar { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 1rem;
  border-radius: 50%; background: linear-gradient(145deg, var(--teal), var(--teal-deep)); color: #fff;
  font-family: var(--serif); font-size: 1.5rem; }
.editor__avatar::after { content: attr(data-initials); }
.editor__name { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; margin: 0 0 .25rem; }
.editor__aff { font-size: .85rem; color: var(--ink-soft); margin: 0 0 .9rem; }
.editor__link { font-family: var(--mono); font-size: .78rem; margin-top: auto; padding-top: .3rem; }

/* faq */
.faq { max-width: none; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; position: relative;
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 1rem; font-family: var(--mono);
  font-size: 1.4rem; color: var(--green-ink); transition: transform .25s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 0 1.2rem; }
.faq__body p { margin: 0; color: var(--ink-soft); }

/* ───────────────────── FOOTER ───────────────────── */
.footer { background: var(--teal-deep); color: rgba(255,255,255,.82); padding: 3.5rem var(--pad) 2rem;
  position: relative; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--green) 0%, var(--teal) 78%);
}
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer .nav__mark { color: #fff; }
.footer__brand p { margin: .4rem 0 0; font-size: .9rem; max-width: 32ch; color: rgba(255,255,255,.6); }
.footer__label { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--green); margin: 0 0 .3rem; }
.footer__contact a { color: #fff; font-family: var(--serif); font-size: 1.2rem; }
.footer__contact a:hover { color: var(--green); }
.footer__fine { max-width: var(--maxw); margin: 1.5rem auto 0; font-size: .8rem; color: rgba(255,255,255,.45); }
.footer__fine .muted { color: rgba(255,255,255,.4); }

/* ───────────────────── REVEAL ANIMATION ───────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ───────────────────── RESPONSIVE ───────────────────── */
@media (max-width: 980px) {
  .scope { grid-template-columns: 1fr 1fr; }
  .editors { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .pillars, .submit { grid-template-columns: 1fr; }
  .editors { grid-template-columns: repeat(3, 1fr); }
  .hero__facts { grid-template-columns: 1fr; gap: 1.1rem; }
  .hero__grain { opacity: .4; }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem var(--pad); gap: .9rem;
  }
}
@media (max-width: 620px) {
  .scope { grid-template-columns: 1fr; }
  .editors { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .editors { grid-template-columns: 1fr; }
}
