/* ===========================================================================
   GradPath — "First Light"
   Warm paper · deep ink · sunrise gradient · pine grounding · the path motif
   =========================================================================== */

:root {
  /* palette */
  --paper:        #FCF8F1;
  --paper-2:      #F6EEDF;
  --ink:          #211B17;
  --ink-soft:     #5C5147;
  --pine:         #173E33;
  --pine-2:       #0F2C24;
  --marigold:     #F6A33B;
  --coral:        #FB6A4A;
  --rose:         #F0577E;
  --line:         #E4D7C2;
  --card:         #FFFDF8;
  --good:         #2F7d5b;

  --sunrise: linear-gradient(100deg, var(--marigold) 0%, var(--coral) 52%, var(--rose) 100%);
  --sunrise-soft: linear-gradient(160deg, #FFE6C2 0%, #FFD2C0 55%, #FBD0DC 100%);

  --shadow-sm: 0 1px 2px rgba(33,27,23,.06), 0 2px 8px rgba(33,27,23,.05);
  --shadow-md: 0 8px 30px rgba(33,27,23,.10);
  --shadow-lg: 0 24px 60px rgba(33,27,23,.16);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1080px;
  --step: clamp(1rem, 0.6rem + 1.4vw, 1.4rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  /* grain + faint sunrise haze in the corner for atmosphere */
  background-image:
    radial-gradient(120% 80% at 100% 0%, rgba(251,106,74,.10), transparent 60%),
    radial-gradient(90% 60% at 0% 5%, rgba(246,163,59,.08), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, scroll;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- accessibility ---- */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--pine); color: #fff; padding: 10px 16px; border-radius: 0 0 12px 12px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  border-radius: 4px;
}

a { color: var(--pine); text-underline-offset: 3px; }

/* ===========================================================================
   Header / Footer
   =========================================================================== */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.1rem clamp(1rem, 4vw, 3rem);
  max-width: var(--maxw); margin: 0 auto;
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand-mark svg { display: block; }
.brand-mark .sun { fill: var(--coral); }
.brand-mark .ridge { fill: none; stroke: var(--pine); stroke-width: 2.4; stroke-linecap: round; }
.brand-word { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; letter-spacing: -.01em; }
.brand-word em { font-style: normal; background: var(--sunrise); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav { display: flex; gap: .4rem; }
.site-nav a {
  font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink-soft);
  padding: .5rem .85rem; border-radius: 999px; transition: background .2s, color .2s;
}
.site-nav a:hover { background: var(--paper-2); color: var(--ink); }

.site-footer { margin-top: 5rem; background: var(--pine); color: #EAF3EE; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem clamp(1rem,4vw,3rem); }
.footer-tag { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 1.4rem; color: #fff; }
.attributions { display: flex; flex-wrap: wrap; gap: 2rem 3rem; font-size: .8rem; color: #B9CFC5; max-width: 760px; }
.attributions p { margin: .3rem 0; }
.attributions a { color: #FFD9A8; }
.attributions .attr { display: flex; flex-direction: column; gap: .2rem; }
.attributions img { display: block; margin-bottom: .5rem; background: var(--paper); padding: 8px 12px; border-radius: 8px; width: max-content; max-width: 100%; }

/* ===========================================================================
   Layout primitives
   =========================================================================== */
main { display: block; }
.view { max-width: var(--maxw); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 4vw, 3rem); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 700;
  color: var(--coral); margin: 0 0 1rem;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 900; line-height: 1.04; letter-spacing: -.02em; margin: 0; }
.lead { font-size: var(--step); color: var(--ink-soft); max-width: 46ch; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; line-height: 1;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--sunrise); color: #2A0F08; box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-ghost:hover { background: var(--pine); color: #fff; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ===========================================================================
   Landing
   =========================================================================== */
.hero { position: relative; padding-top: clamp(2rem, 6vw, 5rem); }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); max-width: 14ch; }
.hero h1 .glow { background: var(--sunrise); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 1.4rem; font-size: clamp(1.1rem, 2.2vw, 1.4rem); }

/* the path motif: a winding trail under the hero */
.trail { width: 100%; height: 80px; margin: 1.5rem 0 .5rem; overflow: visible; }
.trail path { fill: none; stroke-width: 3; stroke-linecap: round; }
.trail .trail-line { stroke: var(--line); stroke-dasharray: 2 12; }
.trail .trail-walk { stroke: url(#sun); stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s ease forwards .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.onramps { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.5rem; }
.onramp {
  position: relative; display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .25s, border-color .2s; overflow: hidden;
}
.onramp::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--sunrise);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.onramp:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.onramp:hover::before { transform: scaleX(1); }
.onramp .num { font-family: var(--font-display); font-weight: 900; font-size: 1rem; color: var(--coral); }
.onramp h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: .6rem 0 .5rem; }
.onramp p { color: var(--ink-soft); margin: 0 0 1.2rem; }
.onramp .go { font-weight: 700; color: var(--pine); display: inline-flex; align-items: center; gap: .4rem; }
.onramp .go svg { transition: transform .2s; }
.onramp:hover .go svg { transform: translateX(5px); }

/* ===========================================================================
   Cards / generic
   =========================================================================== */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
}
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---- loading + states ---- */
.loader { display: inline-block; width: 38px; height: 38px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--coral); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.state { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.banner { padding: 1rem 1.25rem; border-radius: var(--r-md); background: #FBEEE8; border: 1px solid #F2C9B8; color: #8A3B22; }

/* ===========================================================================
   Assessment
   =========================================================================== */
.progress-wrap { margin: 0 0 2rem; }
.progress-meta { display: flex; justify-content: space-between; font-weight: 600; font-size: .85rem; color: var(--ink-soft); margin-bottom: .5rem; }
.progress-track { height: 10px; background: var(--paper-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress-fill { height: 100%; background: var(--sunrise); border-radius: 999px; transition: width .4s cubic-bezier(.4,0,.2,1); }

.q-fieldset { border: none; padding: 0; margin: 0 0 1.5rem; }
.q-legend { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; padding: 0; margin-bottom: 1rem; display: block; }
.q-legend .q-num { color: var(--coral); font-weight: 900; margin-right: .5rem; }
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.likert label {
  display: flex; flex-direction: column; align-items: center; gap: .5rem; cursor: pointer;
  padding: .85rem .4rem; border-radius: var(--r-md); border: 1.5px solid var(--line);
  background: var(--paper); text-align: center; font-size: .72rem; font-weight: 600; color: var(--ink-soft);
  transition: border-color .15s, background .15s, transform .1s;
}
.likert input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.likert .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink-soft); transition: all .15s; }
.likert label:hover { border-color: var(--coral); transform: translateY(-2px); }
.likert input:checked + .dot { background: var(--sunrise); border-color: transparent; box-shadow: 0 0 0 3px rgba(251,106,74,.25); }
.likert input:checked ~ .lab { color: var(--ink); }
.likert input:focus-visible + .dot { outline: 3px solid var(--coral); outline-offset: 2px; }
.q-card { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px dashed var(--line); }
.q-card:last-of-type { border-bottom: none; }

.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }

/* ===========================================================================
   Degree typeahead
   =========================================================================== */
.search-wrap { position: relative; max-width: 560px; }
.search-input {
  width: 100%; font-family: var(--font-body); font-size: 1.15rem; padding: 1rem 1.25rem;
  border: 2px solid var(--line); border-radius: var(--r-md); background: var(--card); color: var(--ink);
}
.search-input:focus { border-color: var(--coral); outline: none; }
.results-list { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .5rem; }
.results-list button {
  width: 100%; text-align: left; cursor: pointer; font-family: var(--font-body); font-size: 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: .9rem 1.1rem;
  color: var(--ink); transition: border-color .15s, transform .1s, box-shadow .15s;
}
.results-list button:hover { border-color: var(--coral); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.results-list .cip { font-size: .75rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ===========================================================================
   Results / RIASEC
   =========================================================================== */
.riasec { display: grid; gap: .7rem; margin: 1.5rem 0 0; }
.riasec-row { display: grid; grid-template-columns: 130px 1fr 38px; align-items: center; gap: .8rem; }
.riasec-row .name { font-weight: 600; font-size: .9rem; }
.riasec-bar { height: 14px; background: var(--paper-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.riasec-bar span { display: block; height: 100%; background: var(--pine); border-radius: 999px; transition: width .8s cubic-bezier(.4,0,.2,1); }
.riasec-row.top .riasec-bar span { background: var(--sunrise); }
.riasec-row .val { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; color: var(--ink-soft); }
.top-code { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 900;
  font-size: 1.05rem; background: var(--pine); color: #fff; padding: .4rem 1rem; border-radius: 999px; }
.top-code b { background: var(--sunrise); -webkit-background-clip: text; background-clip: text; color: transparent; }

.occ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.occ-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.25rem;
  text-decoration: none; color: inherit; transition: transform .15s, box-shadow .2s, border-color .15s; min-height: 120px;
}
.occ-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.occ-card .soc { font-size: .72rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.occ-card .title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.15; }
.occ-card .arrow { align-self: flex-end; color: var(--coral); }

/* ===========================================================================
   Occupation detail
   =========================================================================== */
.occ-head { display: grid; gap: 1.5rem; }
.stat-chips { display: flex; flex-wrap: wrap; gap: .75rem; }
.chip { display: inline-flex; flex-direction: column; gap: .15rem; padding: .7rem 1.1rem; border-radius: var(--r-md);
  background: var(--paper-2); border: 1px solid var(--line); }
.chip .k { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); font-weight: 700; }
.chip .v { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.chip.accent { background: var(--sunrise-soft); border-color: #F4C9A8; }

.jobs-head { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; margin: 2.5rem 0 1rem; }
.jobs-head h2 { font-size: 1.8rem; }
.loc-form { display: flex; gap: .5rem; }
.loc-form input { font-family: var(--font-body); font-size: 1rem; padding: .7rem 1rem; border: 2px solid var(--line);
  border-radius: 999px; background: var(--card); color: var(--ink); width: 200px; }
.loc-form input:focus { border-color: var(--coral); outline: none; }
.job-list { display: grid; gap: .8rem; }
.job-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.35rem;
  text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .2s; }
.job-card:hover { border-color: var(--coral); box-shadow: var(--shadow-sm); }
.job-card .j-main .j-title { font-weight: 700; font-size: 1.05rem; }
.job-card .j-main .j-meta { color: var(--ink-soft); font-size: .85rem; }
.job-card .apply { font-weight: 700; color: var(--pine); white-space: nowrap; }

.backlink { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; margin-bottom: 1.25rem; }
.backlink:hover { color: var(--coral); }

/* ===========================================================================
   Reveal animation
   =========================================================================== */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .6s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ===========================================================================
   Responsive
   =========================================================================== */
@media (max-width: 720px) {
  .onramps { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .likert { grid-template-columns: repeat(5, 1fr); gap: .3rem; }
  .likert label { font-size: 0; padding: .7rem .2rem; }
  .likert label .lab { display: none; }
  .riasec-row { grid-template-columns: 96px 1fr 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .trail .trail-walk { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}
