/* perioztekin.org — site-wide custom styles
 * Layered on top of /css/style.css
 */

:root {
  --peri-purple: #6c47b6;
  --peri-purple-deep: #3f2870;
  --peri-mint: #7ee8de;
}

/* === Brand cursor === */
#peri-rotator { color: var(--peri-mint); font-style: normal; }
#peri-rotator::after {
  content: '';
  display: inline-block;
  width: .55em;
  height: .85em;
  vertical-align: -.1em;
  background: var(--peri-mint);
  margin-left: .08em;
  animation: peri-blink .75s step-end infinite;
}
@keyframes peri-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* === Nav pill (sliding glass pill on hover) === */
#nav-pill {
  position: absolute;
  top: 3px; bottom: 3px;
  z-index: 0;
  border-radius: 6px;
  background: linear-gradient(160deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.07) 100%);
  border: 1px solid rgba(255,255,255,.25);
  border-bottom-color: rgba(255,255,255,.1);
  box-shadow: inset 0 1px rgba(255,255,255,.22), 0 2px 10px rgba(0,0,0,.3);
  backdrop-filter: blur(4px) saturate(1.4);
  -webkit-backdrop-filter: blur(4px) saturate(1.4);
  pointer-events: none;
  transition: left .35s cubic-bezier(.34,1.56,.64,1), width .35s cubic-bezier(.34,1.56,.64,1);
}
.no-trans { transition: none !important; }
.js .nav-links a:not(.nav-cta):hover { background: transparent; }
.js .nav-links a:not(.nav-cta).active { background: transparent; }

/* === Eyes mascot (cursor-tracking, animated via animate.js) === */
.eyes-mascot {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.25);
  padding: .5rem .85rem .5rem .65rem;
  border-radius: 30px;
  margin-bottom: 1.25rem;
  font-size: .85rem;
  color: rgba(255,255,255,.92);
  letter-spacing: .04em;
}
.eyes-mascot svg { display: block; }

/* === Hero === */
.peri-hero {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(108,71,182,.45) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(42,157,143,.30) 0%, transparent 55%),
    radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(140deg, #0f2540 0%, #1d2e63 50%, #2a1f55 100%);
  background-size: auto, auto, 28px 28px, auto;
  color: #fff;
  padding: 4.5rem 1.5rem 8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.peri-hero-inner { max-width: 880px; margin: 0 auto; position: relative; z-index: 2; }
.peri-hero h1 { color: #fff; font-size: 3rem; line-height: 1.15; margin-bottom: 1.1rem; letter-spacing: -.01em; }
.peri-hero p.lede { color: rgba(255,255,255,.92); font-size: 1.18rem; max-width: 700px; margin: 0 auto 1.75rem; line-height: 1.6; }
.peri-hero .hero-tag { display: inline-block; background: rgba(126,232,222,.18); color: var(--peri-mint); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .9rem; border-radius: 20px; margin-bottom: 1.25rem; }
.peri-hero .hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.eeg { position: absolute; left: 0; right: 0; bottom: 110px; width: 100%; height: 60px; opacity: .55; z-index: 1; pointer-events: none; }
.eeg path { fill: none; stroke: var(--peri-mint); stroke-width: 1.6; }
@media (max-width: 760px) {
  .peri-hero { padding: 3.5rem 1.25rem 7rem; }
  .peri-hero h1 { font-size: 2.1rem; }
  .peri-hero p.lede { font-size: 1.02rem; }
}
.peri-hero.compact { padding: 3.5rem 1.5rem 6rem; }
.peri-hero.compact h1 { font-size: 2.4rem; }
.peri-hero.compact p.lede { font-size: 1.05rem; margin-bottom: 0; }

/* === Hero with portrait variant === */
.peri-hero.with-portrait .peri-hero-inner { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 2.25rem; align-items: center; text-align: left; max-width: 1000px; }
.peri-hero.with-portrait h1 { text-align: left; }
.peri-hero.with-portrait p.lede { margin-left: 0; margin-right: 0; }
.peri-hero.with-portrait .hero-btns { justify-content: flex-start; }
.peri-hero.with-portrait .hero-tag { display: inline-block; }
.portrait-wrap {
  width: 220px; height: 220px;
  border-radius: 50%; overflow: hidden;
  border: 4px solid rgba(126,232,222,.45);
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
  background: rgba(255,255,255,.05);
}
.portrait-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .peri-hero.with-portrait .peri-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 1.25rem; }
  .peri-hero.with-portrait h1 { text-align: center; }
  .peri-hero.with-portrait .hero-btns { justify-content: center; }
  .portrait-wrap { width: 160px; height: 160px; margin: 0 auto; }
}

/* === Highlight strip (above the fold, post-hero) === */
.highlight-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .85rem;
  max-width: 1200px; margin: -4rem auto 3rem; position: relative; z-index: 5;
  padding: 0 1.5rem;
}
.highlight-card {
  background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.14);
  padding: 1.25rem 1.1rem; text-align: left; border-top: 3px solid var(--peri-purple);
  display: flex; flex-direction: column; gap: .35rem;
  transition: transform .2s, box-shadow .2s;
}
.highlight-card:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,.18); }
.highlight-card .hbig { font-size: 1.55rem; font-weight: 800; color: var(--peri-purple-deep); line-height: 1.1; }
.highlight-card .hlbl { font-size: .73rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted, #607080); font-weight: 600; }
.highlight-card .hsub { font-size: .9rem; color: var(--text, #2c3e50); margin-top: .25rem; }
@media (max-width: 880px) { .highlight-strip { grid-template-columns: repeat(2, 1fr); margin-top: -3rem; } }

/* Stat strip (kept for academics page) */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 980px; margin: -4.5rem auto 3rem; position: relative; z-index: 5; padding: 0 1.5rem; }
.stat-card { background: #fff; border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.14); padding: 1.25rem 1rem; text-align: center; border-top: 3px solid var(--peri-purple); }
.stat-card .num { font-size: 1.9rem; font-weight: 800; color: var(--peri-purple-deep); line-height: 1.1; display: block; }
.stat-card .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted, #607080); margin-top: .35rem; font-weight: 600; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); margin-top: -3rem; } }

/* === Pull quote (essay snippets) === */
.pull-quote {
  border-left: 4px solid var(--peri-purple);
  background: linear-gradient(180deg, #fbfaff 0%, #f4f0fa 100%);
  padding: 1.5rem 1.75rem;
  border-radius: 0 12px 12px 0;
  margin: 2rem 0;
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--navy, #1b3a5c);
}
.pull-quote .qmark { color: var(--peri-purple); font-size: 1.6rem; font-weight: 800; line-height: 1; margin-right: .15rem; }
.pull-quote .attribution { display: block; margin-top: .85rem; font-size: .85rem; color: var(--muted, #607080); font-style: italic; font-weight: normal; }

/* === Project cards === */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 2rem 0; }
@media (max-width: 800px) { .project-grid { grid-template-columns: 1fr; } }
.proj { background: #fff; border: 1px solid #dde4ec; border-radius: 12px; padding: 1.75rem; box-shadow: 0 4px 16px rgba(0,0,0,.06); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.proj:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.proj .badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 20px; background: rgba(108,71,182,.12); color: var(--peri-purple); align-self: flex-start; margin-bottom: .8rem; }
.proj .badge.live { background: rgba(39,174,96,.13); color: #1e9450; }
.proj .badge.concept { background: rgba(231,111,81,.13); color: #c8553d; }
.proj .badge.upcoming { background: rgba(42,157,143,.15); color: var(--teal-dark, #1f7a6f); }
.proj h3 { font-size: 1.4rem; margin: 0 0 .5rem; color: var(--peri-purple-deep); }
.proj .role { font-size: .9rem; color: var(--muted, #607080); margin-bottom: .8rem; font-style: italic; }
.proj p { color: var(--text, #2c3e50); }
.proj ul { margin-top: .5rem; }
.proj ul li { font-size: .95rem; }
.proj .more { margin-top: auto; padding-top: 1rem; font-weight: 700; color: var(--peri-purple); font-size: .95rem; }
.proj .more a { color: var(--peri-purple); }
.proj .more a:hover { color: var(--peri-purple-deep); }

/* === Skills (kept) === */
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2rem 0; }
@media (max-width: 880px) { .skill-grid { grid-template-columns: 1fr; } }
.skill-card { background: #fff; border-radius: 10px; padding: 1.5rem; border-top: 3px solid var(--peri-purple); box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.skill-card h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--peri-purple); margin: 0 0 1rem; font-weight: 700; }
.skill-card.t-eng { border-top-color: var(--teal, #2a9d8f); }
.skill-card.t-eng h4 { color: var(--teal-dark, #1f7a6f); }
.skill-card.t-tools { border-top-color: #e76f51; }
.skill-card.t-tools h4 { color: #c8553d; }
.skill-card ul { padding-left: 1.1rem; margin: 0; }
.skill-card li { margin-bottom: .45rem; line-height: 1.5; }
.skill-card li strong { color: var(--navy, #1b3a5c); }

/* === Cert grid === */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.cert { background: #fff; border: 1px solid #dde4ec; border-radius: 8px; padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.cert:hover { transform: translateY(-2px); border-color: var(--peri-purple); box-shadow: 0 8px 24px rgba(108,71,182,.18); text-decoration: none; }
.cert .issuer { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted, #607080); font-weight: 700; }
.cert .name { font-weight: 700; color: var(--navy, #1b3a5c); font-size: 1.05rem; }
.cert .date { font-size: .85rem; color: var(--muted, #607080); }
.cert .view { margin-top: .4rem; font-size: .8rem; color: var(--peri-purple); font-weight: 600; letter-spacing: .04em; }
.cert .view::after { content: ' \2192'; }

/* === Course rows === */
.course-list { background: #fff; border-radius: 10px; padding: .5rem 1.25rem; box-shadow: 0 4px 16px rgba(0,0,0,.06); margin-top: 1rem; }
.course-row { display: flex; justify-content: space-between; align-items: center; padding: .8rem 0; border-bottom: 1px solid #e7ecf2; flex-wrap: wrap; gap: .5rem; }
.course-row:last-child { border-bottom: none; }
.course-row .ctitle { font-weight: 600; color: var(--navy, #1b3a5c); }
.course-row .cmeta { font-size: .85rem; color: var(--muted, #607080); }
.course-row .cgrade { font-weight: 700; color: #1e9450; font-size: .9rem; background: rgba(39,174,96,.10); padding: .2rem .7rem; border-radius: 12px; }
.course-row .cgrade.cert-mark { color: #6c47b6; background: rgba(108,71,182,.10); }
.course-row .cgrade.in-prog { color: #c8553d; background: rgba(231,111,81,.12); }

/* === Roadmap === */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 880px) { .roadmap { grid-template-columns: 1fr; } }
.road-step { background: linear-gradient(160deg, #fff 0%, #f7f4fc 100%); border-radius: 10px; padding: 1.5rem; border-left: 4px solid var(--peri-purple); }
.road-step .when { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--peri-purple); font-weight: 700; }
.road-step h4 { margin: .4rem 0 .5rem; color: var(--peri-purple-deep); }

/* === CTA === */
.peri-cta { background: linear-gradient(135deg, var(--peri-purple) 0%, #2a9d8f 100%); color: #fff; padding: 3rem 2rem; border-radius: 14px; text-align: center; margin: 3rem 0 1rem; }
.peri-cta h2 { color: #fff; margin: 0 0 .75rem; }
.peri-cta p { color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 1.5rem; }
.peri-cta a.email { color: #fff; font-weight: 700; text-decoration: none; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4); padding: .7rem 1.4rem; border-radius: 6px; display: inline-block; transition: background .2s; }
.peri-cta a.email:hover { background: rgba(255,255,255,.3); text-decoration: none; }

/* === Reveal on scroll for custom Peri elements === */
.peri-rev { opacity: 0; transform: translateY(28px) scale(.97); transition: opacity .55s ease, transform .55s ease; transition-delay: calc(var(--ri, 0) * 70ms); }
.peri-rev.peri-in { opacity: 1; transform: none; }

/* === Deep-dive page sections === */
.deep-section { background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,.06); margin-bottom: 1.5rem; }
.deep-section h3 { color: var(--peri-purple-deep); margin-top: 0; }
.deep-section h4 { color: var(--peri-purple); }
.figure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.figure-grid figure { margin: 0; background: #f4f7f9; border-radius: 8px; overflow: hidden; }
.figure-grid img { width: 100%; height: auto; display: block; }
.figure-grid figcaption { padding: .6rem .85rem; font-size: .85rem; color: var(--muted, #607080); border-top: 1px solid #e7ecf2; }

.pdf-embed { width: 100%; aspect-ratio: 4 / 3; border: 1px solid #dde4ec; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.08); background: #f4f7f9; }
@media (max-width: 760px) { .pdf-embed { aspect-ratio: 3 / 4; } }

/* Code blocks */
pre.code { background: #1a2030; color: #d8eaf0; border-radius: 8px; padding: 1.25rem; overflow-x: auto; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .85rem; line-height: 1.55; }
pre.code .c { color: #7ee8de; }
pre.code .k { color: #e9c46a; }

/* Timeline (academics) */
.timeline { display: flex; flex-direction: column; gap: 1.25rem; }
.timeline-row { background: #fff; border-radius: 12px; padding: 1.5rem 1.75rem; box-shadow: 0 4px 16px rgba(0,0,0,.07); border-left: 4px solid var(--peri-purple); }
.timeline-row.t-current { border-left-color: var(--teal, #2a9d8f); }
.timeline-row.t-future { border-left-color: #e76f51; opacity: .92; }
.timeline-row .year { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--peri-purple); font-weight: 800; }
.timeline-row h3 { margin: .25rem 0 .5rem; color: var(--peri-purple-deep); }
.timeline-row .school { font-size: .95rem; color: var(--muted, #607080); margin-bottom: .8rem; font-style: italic; }
.gpa-pill { display: inline-block; background: rgba(39,174,96,.12); color: #1e9450; padding: .2rem .8rem; border-radius: 20px; font-size: .82rem; font-weight: 700; margin-left: .5rem; }
.gpa-pill.purple { background: rgba(108,71,182,.13); color: var(--peri-purple); }
.gpa-pill.orange { background: rgba(231,111,81,.13); color: #c8553d; }

/* Activities list */
.activities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.activity-card { background: #fff; border-radius: 10px; padding: 1.1rem 1.25rem; border-top: 3px solid var(--peri-mint); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.activity-card h4 { margin: 0 0 .35rem; color: var(--navy, #1b3a5c); font-size: 1.05rem; }
.activity-card p { margin: 0; font-size: .9rem; color: var(--muted, #607080); }

/* Wellbeing — stat highlights */
.wb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
@media (max-width: 760px) { .wb-stats { grid-template-columns: 1fr; } }
.wb-stat { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 16px rgba(0,0,0,.07); border-left: 4px solid #e76f51; }
.wb-stat .big { font-size: 2.2rem; font-weight: 800; color: #c8553d; line-height: 1.1; }
.wb-stat p { margin: .5rem 0 0; font-size: .92rem; color: var(--text, #2c3e50); }
.wb-stat cite { display: block; margin-top: .6rem; font-size: .78rem; color: var(--muted, #607080); font-style: italic; }

/* Wellbeing — protocol cards */
.protocol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.protocol { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 16px rgba(0,0,0,.07); border-top: 3px solid var(--peri-mint); }
.protocol .icon { font-size: 1.8rem; }
.protocol h4 { color: var(--peri-purple-deep); margin: .5rem 0 .35rem; font-size: 1.1rem; }
.protocol p.proto-claim { color: var(--text, #2c3e50); font-size: .95rem; margin: 0 0 .5rem; }
.protocol .proto-source { font-size: .8rem; color: var(--muted, #607080); }

/* Crisis box */
.crisis-box {
  background: linear-gradient(135deg, #c8553d 0%, #b03a55 100%);
  color: #fff;
  padding: 1.75rem;
  border-radius: 12px;
  margin: 1.5rem 0;
}
.crisis-box h3 { color: #fff; margin: 0 0 .75rem; font-size: 1.15rem; }
.crisis-box ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.crisis-box li { margin-bottom: .45rem; }
.crisis-box a { color: #ffe5d3; font-weight: 700; }
.crisis-box a:hover { color: #fff; text-decoration: underline; }

/* Blog post cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.post-card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 16px rgba(0,0,0,.07); transition: transform .2s, box-shadow .2s; border-top: 3px solid var(--peri-purple); }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.post-card .date { font-size: .8rem; color: var(--muted, #607080); text-transform: uppercase; letter-spacing: .08em; }
.post-card h3 { margin: .35rem 0 .6rem; color: var(--peri-purple-deep); }
.post-card .excerpt { font-size: .95rem; color: var(--text, #2c3e50); margin-bottom: 1rem; }
.post-card a.read { color: var(--peri-purple); font-weight: 700; }

/* Empty state */
.empty { text-align: center; padding: 3rem 1.5rem; background: #f8f5fc; border: 2px dashed #d4c8e8; border-radius: 12px; color: var(--muted, #607080); }
.empty h3 { color: var(--peri-purple-deep); margin-top: 0; }

/* Disclaimer note */
.note-box { background: #f4f7f9; border: 1px solid #dde4ec; border-radius: 8px; padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: .92rem; color: var(--muted, #607080); }
.note-box strong { color: var(--navy, #1b3a5c); }

/* === Newsletter card === */
.newsletter-card {
  background: linear-gradient(160deg, #fff 0%, #f6f3fc 100%);
  border: 1px solid #e3dcf3;
  border-radius: 14px;
  padding: 2rem 2.25rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: 0 6px 24px rgba(108,71,182,.08);
}
.newsletter-card h2 { color: var(--peri-purple-deep); margin: .5rem 0 .75rem; font-size: 1.6rem; }
.newsletter-card p { color: var(--text, #2c3e50); max-width: 560px; margin: 0 auto 1.25rem; }
.newsletter-form { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; max-width: 480px; margin: 0 auto; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 240px; padding: .7rem 1rem;
  border: 1px solid #d4c8e8; border-radius: 6px;
  font-size: 1rem; font-family: inherit; color: var(--text, #2c3e50);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.newsletter-form input[type="email"]:focus {
  outline: none; border-color: var(--peri-purple);
  box-shadow: 0 0 0 3px rgba(108,71,182,.15);
}
.newsletter-form button {
  padding: .7rem 1.5rem; border: none; border-radius: 6px;
  background: var(--peri-purple); color: #fff;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.newsletter-form button:hover { background: var(--peri-purple-deep); }
.newsletter-note { font-size: .8rem; color: var(--muted, #607080); margin-top: 1rem !important; }

/* === Impact / metrics dashboard === */
.impact-headline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin: 2rem 0 3rem;
}
@media (max-width: 880px) { .impact-headline { grid-template-columns: repeat(2, 1fr); } }
.impact-headline-card {
  background: linear-gradient(160deg, #fff 0%, #f8f5ff 100%);
  border-radius: 14px; padding: 1.5rem 1.25rem;
  border-top: 4px solid var(--peri-purple);
  box-shadow: 0 8px 24px rgba(108,71,182,.10);
  display: flex; flex-direction: column; gap: .35rem;
  transition: transform .2s, box-shadow .2s;
}
.impact-headline-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(108,71,182,.18); }
.impact-headline-card .impact-num { font-size: 2.4rem; font-weight: 800; color: var(--peri-purple-deep); line-height: 1; letter-spacing: -.01em; }
.impact-headline-card .impact-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--peri-purple); font-weight: 700; margin-top: .35rem; }
.impact-headline-card .impact-note { font-size: .85rem; color: var(--text, #2c3e50); margin-top: .35rem; line-height: 1.5; }
.impact-headline-card .impact-source { font-size: .72rem; color: var(--muted, #607080); margin-top: .35rem; font-style: italic; }

/* Mini impact row (home page) */
.home-mini-impact {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem;
  margin: 0.5rem 0 2.5rem;
  max-width: 980px;
  margin-left: auto; margin-right: auto;
  padding: 0 1.5rem;
}
@media (max-width: 760px) { .home-mini-impact { grid-template-columns: repeat(2, 1fr); } }
.mini-impact {
  background: rgba(255,255,255,.92);
  border-radius: 10px; padding: 1rem .9rem; text-align: center;
  border-left: 3px solid var(--peri-mint);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.mini-impact .mn { font-size: 1.4rem; font-weight: 800; color: var(--peri-purple-deep); display: block; line-height: 1.1; }
.mini-impact .ml { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted, #607080); margin-top: .25rem; display: block; }

/* Goals with progress bars */
.goals-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }
@media (max-width: 760px) { .goals-list { grid-template-columns: 1fr; } }
.goal {
  background: #fff; border-radius: 12px; padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
  border-left: 4px solid var(--peri-purple);
}
.goal[data-status="done"] { border-left-color: #1e9450; }
.goal[data-status="started"] { border-left-color: var(--peri-purple); }
.goal[data-status="pending"] { border-left-color: #c8553d; opacity: .9; }
.goal-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.goal h4 { margin: 0; color: var(--navy, #1b3a5c); font-size: 1.02rem; }
.goal-pct { font-weight: 800; font-size: 1.1rem; color: var(--peri-purple-deep); }
.goal-bar { background: #e7ecf2; border-radius: 6px; height: 7px; overflow: hidden; margin: .65rem 0; }
.goal-fill { background: linear-gradient(90deg, var(--peri-purple), var(--peri-mint)); height: 100%; border-radius: 6px; transition: width .8s cubic-bezier(.34,1.56,.64,1); }
.goal[data-status="done"] .goal-fill { background: linear-gradient(90deg, #1e9450, #7ee8de); }
.goal-target { margin: .35rem 0 0; font-size: .9rem; color: var(--text, #2c3e50); }
.goal-due { margin: .15rem 0 0; font-size: .8rem; color: var(--muted, #607080); }
.goal-notes { margin: .35rem 0 0; font-size: .82rem; color: var(--muted, #607080); font-style: italic; }

/* Credential rows */
.cred-list { list-style: none; padding: 0; margin: 1rem 0; background: #fff; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.cred-row { display: grid; grid-template-columns: 2fr 1.2fr 1fr; gap: 1rem; padding: .8rem 1.25rem; border-bottom: 1px solid #e7ecf2; align-items: baseline; }
.cred-row:last-child { border-bottom: none; }
@media (max-width: 760px) { .cred-row { grid-template-columns: 1fr; gap: .25rem; } }
.cred-row .cred-name { font-weight: 600; color: var(--navy, #1b3a5c); }
.cred-row .cred-issuer { font-size: .85rem; color: var(--muted, #607080); }
.cred-row .cred-meta { font-size: .85rem; color: var(--peri-purple); font-weight: 600; text-align: right; }
@media (max-width: 760px) { .cred-row .cred-meta { text-align: left; } }

/* Project rows on impact */
.proj-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 1rem 0; }
.proj-row { background: #fff; border-radius: 12px; padding: 1.25rem 1.4rem; box-shadow: 0 4px 16px rgba(0,0,0,.07); border-top: 3px solid var(--peri-mint); }
.proj-row h4 { margin: .4rem 0 .35rem; color: var(--peri-purple-deep); font-size: 1.1rem; }
.proj-status { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; padding: .2rem .65rem; border-radius: 14px; font-weight: 700; }
.proj-row .proj-shipped { background: rgba(39,174,96,.13); color: #1e9450; }
.proj-row .proj-concept { background: rgba(231,111,81,.13); color: #c8553d; }
.proj-row .proj-in-development { background: rgba(108,71,182,.13); color: var(--peri-purple); }
.proj-row .proj-context { font-size: .85rem; color: var(--muted, #607080); margin: 0 0 .5rem; font-style: italic; }
.proj-row .proj-metric { font-size: .92rem; color: var(--text, #2c3e50); margin: 0; }

/* Honors list */
.honors-list { list-style: none; padding: 0; margin: 1rem 0; }
.honor-row { background: #fff; border-radius: 10px; padding: .9rem 1.25rem; margin-bottom: .65rem; box-shadow: 0 4px 12px rgba(0,0,0,.05); border-left: 3px solid var(--peri-mint); display: grid; grid-template-columns: 80px 1fr; gap: 1rem; align-items: baseline; }
.honor-year { color: var(--peri-purple); font-weight: 800; font-size: .92rem; }
.honor-name { color: var(--navy, #1b3a5c); font-weight: 600; }
.honor-ctx { display: block; font-size: .82rem; color: var(--muted, #607080); margin-top: .15rem; }

/* Last-updated stamp */
.impact-updated { color: var(--muted, #607080); font-size: .82rem; font-style: italic; text-align: center; margin: 0 0 1.5rem; }

/* "Featured" callout for top of site */
.featured-row { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; margin: 2rem 0; }
.featured-row .feat-main { background: linear-gradient(135deg, var(--peri-purple) 0%, var(--peri-purple-deep) 100%); color: #fff; padding: 2.25rem; border-radius: 14px; box-shadow: 0 12px 36px rgba(108,71,182,.25); }
.featured-row .feat-main h3 { color: #fff; margin: 0 0 .5rem; font-size: 1.5rem; }
.featured-row .feat-main p { color: rgba(255,255,255,.92); margin: 0 0 1rem; }
.featured-row .feat-main a.btn-feat { background: #fff; color: var(--peri-purple-deep); padding: .65rem 1.3rem; border-radius: 6px; font-weight: 700; text-decoration: none; display: inline-block; }
.featured-row .feat-main a.btn-feat:hover { background: var(--peri-mint); }
.featured-row .feat-side { display: flex; flex-direction: column; gap: 1rem; }
.featured-row .feat-side .small-feat { background: #fff; border-radius: 12px; padding: 1.1rem 1.25rem; border-left: 4px solid var(--peri-mint); box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.featured-row .feat-side .small-feat h4 { margin: 0 0 .25rem; color: var(--peri-purple-deep); font-size: 1rem; }
.featured-row .feat-side .small-feat p { margin: 0; font-size: .88rem; color: var(--muted, #607080); }
@media (max-width: 800px) { .featured-row { grid-template-columns: 1fr; } }
