/* The Next Giant applicant portal. Same family as wanderinggiants.co.uk: Geist, Instrument Serif, the dawn gradient. */
:root { --bg: #FCFBF8; --fg: #121211; --muted: #6b6a66; --card: #fff; --edge: #e8e5df; --sunk: #f3f1ec; --ok: #2f8f5b; --bad: #c2412d;
  --dawn: linear-gradient(100deg, #F08A4B, #E2689A 50%, #6F8FF0); --soft: 0 1px 2px rgba(0,0,0,.04), 0 18px 50px -28px rgba(30,20,40,.35);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif; --serif: 'Instrument Serif', Georgia, serif; --ease: cubic-bezier(.2,.7,.2,1); color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --bg: #121211; --fg: #f4f1ec; --muted: #a29f98; --card: #1b1b1a; --edge: #2c2b29; --sunk: #222120; --soft: 0 1px 2px rgba(0,0,0,.4), 0 24px 60px -30px rgba(0,0,0,.8);
  --dawn: linear-gradient(100deg, #FFB98A, #F7A8C8 50%, #A9C2FF); color-scheme: dark; } }
* { box-sizing: border-box; margin: 0; }
body { font: 400 16px/1.55 var(--font); background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; } em { font-family: var(--serif); font-weight: 400; }
h1 { font-weight: 600; letter-spacing: -.05em; line-height: .98; font-size: clamp(2.2rem, 5vw, 3.6rem); }
h1 em { background: var(--dawn); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
h2 { font-size: 1.25rem; letter-spacing: -.03em; margin-bottom: .7rem; }
.k { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.lede { font-size: 1.08rem; color: var(--muted); margin-top: .7rem; max-width: 46rem; } .lede b { color: var(--fg); }
.muted { color: var(--muted); } .small { font-size: .88rem; color: var(--muted); margin-top: .8rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .8rem 1.3rem; border-radius: 999px; background: var(--fg); color: var(--bg); border: 1px solid var(--fg); font: 600 .98rem var(--font); text-decoration: none; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; }
.pill:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -14px rgba(226,104,154,.7); }
.ghost { display: inline-flex; align-items: center; padding: .55rem 1rem; border-radius: 999px; background: transparent; color: var(--fg); border: 1px solid var(--edge); font: 500 .9rem var(--font); text-decoration: none; cursor: pointer; }
.ghost:hover { border-color: var(--fg); } .ghost.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--edge)); }
.err, .ok, .note { padding: .8rem 1rem; border-radius: 14px; margin: 0 0 1rem; font-weight: 500; }
.err { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); } .ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.note { background: var(--sunk); color: var(--muted); }
/* top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem max(16px, 2vw); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--edge); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 600; letter-spacing: -.02em; }
.mark { width: 1.7rem; height: 1.7rem; } .mark rect:first-child { fill: var(--fg); } .mark rect + rect { fill: var(--bg); }
.who { display: flex; align-items: center; gap: .8rem; } .who .nm { font-weight: 500; color: var(--muted); font-size: .92rem; } @media (max-width: 520px) { .who .nm { display: none; } }
/* layout */
.frame { width: min(1180px, 100% - 32px); margin: clamp(1.5rem, 4vw, 2.5rem) auto 3rem; flex: 1; }
.frame.withside { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
@media (max-width: 900px) { .frame.withside { grid-template-columns: minmax(0, 1fr); } }
main { display: grid; gap: 1.1rem; min-width: 0; }
.foot { text-align: center; font-size: .8rem; color: var(--muted); padding: 1.5rem 16px 2rem; border-top: 1px solid var(--edge); }
/* side journey */
.side { position: sticky; top: 5.2rem; } .side .k { margin: 0 0 .7rem .7rem; }
.steps { list-style: none; padding: 0; display: grid; gap: .15rem; position: relative; }
.steps a { display: flex; gap: .75rem; align-items: center; padding: .55rem .7rem; border-radius: 14px; text-decoration: none; color: var(--muted); }
.steps a:hover { background: var(--sunk); }
.steps i { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; font: 600 .78rem var(--font); font-style: normal; border: 1.5px solid var(--edge); background: var(--bg); }
.steps span { display: flex; flex-direction: column; line-height: 1.25; } .steps b { font-weight: 600; font-size: .95rem; } .steps small { font-size: .78rem; }
.steps li.done a, .steps li.open a, .steps li.ready a, .steps li.wait a { color: var(--fg); }
.steps li.done i { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.steps li.open i, .steps li.ready i { border-color: transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--dawn) border-box; }
.steps li.locked a { opacity: .55; } .steps li.on a { background: var(--card); box-shadow: inset 0 0 0 1px var(--edge); }
.sidelink { display: block; margin-top: .3rem; padding: .55rem .9rem; border-radius: 12px; text-decoration: none; font-weight: 500; font-size: .92rem; color: var(--muted); } .sidelink:hover, .sidelink.on { background: var(--sunk); color: var(--fg); }
.side nav { padding-bottom: .5rem; }
@media (max-width: 900px) { .side { position: static; } .steps { display: flex; overflow-x: auto; gap: .4rem; padding-bottom: .4rem; scrollbar-width: none; } .steps li { flex: none; } .steps small { display: none; } .sidelink { display: inline-block; } }
/* cards and forms */
.card { background: var(--card); border: 1px solid var(--edge); border-radius: 24px; padding: clamp(1.2rem, 3vw, 1.8rem); box-shadow: var(--soft); }
.form { display: grid; gap: 1.1rem; } .form.big { gap: 1.4rem; } .narrow { max-width: 30rem; margin-inline: auto; width: 100%; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; } @media (max-width: 640px) { .two { grid-template-columns: minmax(0, 1fr); } }
.fld, .form > label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.lab { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem; }
.fld small, .form label small, fieldset small { font-weight: 400; color: var(--muted); font-size: .86rem; }
.opt { font-family: var(--font); font-style: normal; font-weight: 500; font-size: .75rem; color: var(--muted); margin-left: .45rem; padding: .1rem .5rem; border-radius: 999px; background: var(--sunk); }
input, select, textarea { width: 100%; font: 400 1rem/1.5 var(--font); color: var(--fg); background: var(--bg); border: 1.5px solid var(--edge); border-radius: 14px; padding: .75rem .9rem; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; min-height: 7rem; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--dawn) border-box; box-shadow: 0 10px 30px -18px rgba(226,104,154,.8); }
input:disabled, textarea:disabled, select:disabled { opacity: .6; }
fieldset { border: 0; padding: 0; display: grid; gap: .45rem; } legend { font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.opts { display: flex; flex-wrap: wrap; gap: .45rem; }
.optb { position: relative; } .optb input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.optb span { display: inline-flex; padding: .6rem 1rem; border-radius: 999px; border: 1.5px solid var(--edge); background: var(--bg); font-weight: 500; font-size: .94rem; cursor: pointer; transition: all .2s; }
.optb input:checked + span { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--dawn) border-box; box-shadow: 0 8px 22px -14px rgba(226,104,154,.9); }
.optb input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.tick { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 400 !important; } .tick input { width: auto; margin-top: .3rem; }
.count { font-size: .78rem; font-weight: 500; color: var(--muted); } .count.good { color: var(--ok); }
.savebar { position: sticky; bottom: 0; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin: .4rem calc(-1 * clamp(1.2rem, 3vw, 1.8rem)) calc(-1 * clamp(1.2rem, 3vw, 1.8rem)); padding: .9rem clamp(1.2rem, 3vw, 1.8rem); border-top: 1px solid var(--edge); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 0 0 24px 24px; }
.savebar .grow { flex: 1; } .saved { font-size: .85rem; color: var(--muted); } .saved.on { color: var(--ok); } .saved.bad { color: var(--bad); }
.gaps { padding: 1rem 1.2rem; border-radius: 18px; border: 1px dashed color-mix(in srgb, var(--bad) 45%, var(--edge)); } .gaps ul { margin: .4rem 0 0 1.1rem; color: var(--muted); }
/* page header */
.phead { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: clamp(1.6rem, 4vw, 2.6rem); min-height: 13rem; display: flex; flex-direction: column; justify-content: flex-end; background: var(--sunk); }
.phead[style] { color: #fff; } .phead[style]::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img) center / cover; }
.phead[style]::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,8,18,.25), rgba(8,8,18,.82)); }
.phead[style] .k, .phead[style] .lede { color: rgba(255,255,255,.82); }
.phead[style] h1 em { background: linear-gradient(100deg, #FFB98A, #F7A8C8 50%, #A9C2FF); -webkit-background-clip: text; background-clip: text; }
/* welcome */
body.out .frame { width: min(1180px, 100% - 32px); }
.banner { position: fixed; inset: 0; z-index: -2; background: var(--img) center / cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(8,8,18,.92) 0%, rgba(8,8,18,.75) 45%, rgba(8,8,18,.45) 100%); }
body.out .top { background: transparent; border-color: transparent; color: #fff; } body.out .top .mark rect:first-child { fill: #fff; } body.out .top .mark rect + rect { fill: #111; }
body.out .top .ghost { color: #fff; border-color: rgba(255,255,255,.35); } body.out .foot { color: rgba(255,255,255,.65); border-color: rgba(255,255,255,.12); } body.out .foot a { color: #fff; }
.welcome { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 27rem); gap: clamp(2rem, 6vw, 5rem); align-items: center; min-height: calc(100svh - 12rem); color: #fff; }
@media (max-width: 900px) { .welcome { grid-template-columns: minmax(0, 1fr); } }
.welcome h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-top: .8rem; } .welcome h1 em { background: linear-gradient(100deg, #FFB98A, #F7A8C8 50%, #A9C2FF); -webkit-background-clip: text; background-clip: text; }
.welcome .k { color: rgba(255,255,255,.7); } .welcome .lede { color: rgba(255,255,255,.82); }
.mini { list-style: none; padding: 0; margin-top: 1.8rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; counter-reset: m; }
.mini li { counter-increment: m; padding: .9rem 1rem; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); display: grid; gap: .15rem; }
.mini li::before { content: "0" counter(m); font-size: .75rem; font-weight: 600; opacity: .6; } .mini b { font-weight: 600; } .mini span { font-size: .86rem; opacity: .75; }
.auth { color: var(--fg); } .tabs { display: flex; gap: .3rem; padding: .3rem; border-radius: 999px; background: rgba(255,255,255,.14); margin-bottom: .8rem; width: max-content; }
.tab { padding: .5rem 1rem; border-radius: 999px; text-decoration: none; color: #fff; font-weight: 600; font-size: .9rem; } .tab.on { background: #fff; color: #111; }
.centre { display: grid; place-items: center; min-height: 50svh; }
/* overview */
.hello { display: flex; justify-content: space-between; gap: 2rem; align-items: center; flex-wrap: wrap; padding: clamp(1.4rem, 3vw, 2rem); border-radius: 28px; background: var(--card); border: 1px solid var(--edge); box-shadow: var(--soft); }
.hello .pill { margin-top: 1.2rem; }
.ring { --p: 0; width: 9.5rem; height: 9.5rem; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, var(--card) 79%, transparent 80% 100%), conic-gradient(#E2689A calc(var(--p) * 1%), var(--sunk) 0); }
.ring b { font-size: 2.2rem; letter-spacing: -.05em; line-height: 1; } .ring b small { font-size: 1rem; color: var(--muted); } .ring span { font-size: .78rem; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; } @media (max-width: 760px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.dates { list-style: none; padding: 0; display: grid; gap: .55rem; } .dates li { display: grid; grid-template-columns: 9.5rem 1fr; gap: .8rem; padding-bottom: .55rem; border-bottom: 1px solid var(--edge); } .dates li:last-child { border: 0; }
.dates b { font-weight: 600; font-size: .92rem; } .dates span { color: var(--muted); font-size: .92rem; }
.updates { list-style: none; padding: 0; display: grid; gap: 1rem; } .updates small { color: var(--muted); font-size: .78rem; } .updates b { display: block; } .updates p { color: var(--muted); font-size: .94rem; margin-top: .2rem; }
.list { margin: 0 0 1rem 1.1rem; color: var(--muted); } .list li { margin-bottom: .3rem; }
/* brief, tip, people */
.brief ol { margin: .3rem 0 0 1.2rem; display: grid; gap: .6rem; } .brief li { color: var(--muted); } .brief b { color: var(--fg); }
.tip { border-style: dashed; box-shadow: none; } .tip p { color: var(--muted); margin-top: .3rem; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: .8rem; }
.person { padding: 1.1rem; border-radius: 20px; border: 1px solid var(--edge); background: var(--card); display: grid; gap: .25rem; } .person small { color: var(--muted); } .person p { font-size: .92rem; } .person p em { font-family: var(--font); font-style: normal; color: var(--muted); }
.file { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; } .file small { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* ---------- Prelims: the evidence portfolio ---------- */
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 1.1rem; align-items: start; }
.pmain, .pform { display: grid; gap: 1.1rem; min-width: 0; }
.paside { position: sticky; top: 5.2rem; display: grid; gap: 1.1rem; }
@media (max-width: 1180px) { .pgrid { grid-template-columns: minmax(0, 1fr); } .paside { position: static; order: -1; } }
.psec { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1rem; }
.pnum { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--dawn); box-shadow: 0 8px 20px -10px rgba(226,104,154,.9); }
.pbody { display: grid; gap: 1.1rem; min-width: 0; } .pbody > h2 { margin: .35rem 0 0; font-size: 1.4rem; } .pbody > .muted { margin-top: -.6rem; }
@media (max-width: 600px) { .psec { grid-template-columns: minmax(0, 1fr); } }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; } .four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 760px) { .three, .four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.convos { display: grid; gap: .7rem; counter-reset: c; }
.convo { position: relative; display: grid; gap: .7rem; padding: 1rem 1rem 1rem 3rem; border-radius: 18px; border: 1.5px dashed var(--edge); background: var(--bg); }
.convo.filled { border-style: solid; background: color-mix(in srgb, var(--card) 60%, var(--bg)); }
.convo .cn { position: absolute; left: .9rem; top: 1rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--sunk); color: var(--muted); }
.convo.filled .cn { background: var(--fg); color: var(--bg); }
.convo.hidden { display: none; } .addconvo { justify-self: start; }
.convo .fld { font-size: .85rem; } .convo input, .convo select, .convo textarea { padding: .6rem .75rem; font-size: .95rem; }
.attach { display: grid; gap: .6rem; padding: 1rem; border-radius: 18px; background: var(--sunk); }
.ahead b { display: block; font-size: .95rem; } .ahead small { color: var(--muted); font-size: .84rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .6rem; }
.thumb { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--edge); display: grid; }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.thumb .pdf { aspect-ratio: 4 / 3; display: grid; place-content: center; text-align: center; text-decoration: none; font-weight: 700; font-size: 1.3rem; background: linear-gradient(135deg, #fde7da, #f6d5e5); color: #8a2f55; }
.thumb .pdf small { display: block; font-size: .72rem; font-weight: 500; padding: 0 .5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 9rem; }
.thumb figcaption { padding: .35rem; } .thumb figcaption input { padding: .35rem .5rem; font-size: .8rem; border-radius: 9px; }
.thumb .x { position: absolute; top: .35rem; right: .35rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.drop { display: grid; place-items: center; min-height: 6.5rem; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, var(--fg) 25%, var(--edge)); cursor: pointer; color: var(--muted); font-weight: 600; font-size: .9rem; text-align: center; padding: .5rem; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: #E2689A; background: color-mix(in srgb, #F7A8C8 12%, transparent); color: var(--fg); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.honest small { display: block; margin-bottom: .3rem; }
.pbar { position: sticky; bottom: .8rem; z-index: 5; padding-block: 0; }
.pbar .savebar { position: static; margin: 0 calc(-1 * clamp(1.2rem, 3vw, 1.8rem)); border-radius: 24px; border-top: 0; }
.meter .mtop { display: grid; gap: .6rem; } .mscore { font-size: 2.8rem; letter-spacing: -.06em; line-height: 1; } .mscore small { font-size: 1rem; color: var(--muted); }
.mbar { height: .55rem; border-radius: 999px; background: var(--sunk); overflow: hidden; } .mbar i { display: block; height: 100%; border-radius: inherit; background: var(--dawn); transition: width .6s var(--ease); }
.mtips { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: .45rem; } .mtips li { font-size: .9rem; display: flex; justify-content: space-between; gap: .6rem; }
.mtips em { font-family: var(--font); font-style: normal; font-weight: 700; color: var(--ok); }
.rbar { display: flex; gap: .3rem; height: 2.6rem; margin-bottom: .8rem; }
.rbar span { flex: 0 0 calc(var(--w) - .23rem); border-radius: 10px; color: #fff; font-size: 0; display: grid; place-items: center; }
.rbar span b { font-size: .85rem; } .rbar span:nth-child(1) { background: #F08A4B; } .rbar span:nth-child(2) { background: #E2689A; } .rbar span:nth-child(3) { background: #9a7be0; } .rbar span:nth-child(4) { background: #6F8FF0; }
.rlist { list-style: none; padding: 0; display: grid; gap: .45rem; font-size: .88rem; color: var(--muted); } .rlist b { color: var(--fg); display: block; font-size: .92rem; }
/* Money Board card */
.money h2 em { background: var(--dawn); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mlist { list-style: none; padding: 0; display: grid; gap: .4rem; margin-top: .6rem; } .mlist b { font-size: 1.05rem; margin-right: .3rem; }
.st { font-weight: 600; } .st.verified { color: var(--ok); } .st.rejected { color: var(--bad); } .st.pending { color: var(--muted); }
/* teams and peer reviews */
.teamcard h2 em { background: var(--dawn); -webkit-background-clip: text; background-clip: text; color: transparent; }
.teamcard .code { margin: .3rem 0 .8rem; } .teamcard .code b { font: 700 1.3rem/1 ui-monospace, Menlo, monospace; letter-spacing: .15em; padding: .25rem .6rem; border-radius: 10px; background: var(--sunk); } .teamcard .code small { display: block; color: var(--muted); margin-top: .5rem; }
.tm { list-style: none; padding: 0; display: grid; gap: .4rem; margin-bottom: .8rem; } .tm li { display: grid; } .tm small { color: var(--muted); }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; margin: .6rem 0; } .inline-form select { flex: 1; min-width: 14rem; }
.teamcard form + form { margin-top: .4rem; } .teamcard h3 { margin: 1.2rem 0 .6rem; font-size: 1rem; }
.done { color: var(--ok); font-size: .85rem; font-weight: 600; }
