/* =========================================================
   jkorequaye.com — styles
   Change the whole look from the variables below.
   ========================================================= */
:root {
  --bg: #0a0a0f;            /* page background (deep underground) */
  --bg-2: #111117;          /* card background */
  --line: #23232c;          /* borders */
  --text: #f3ede4;          /* main text (warm off-white) */
  --muted: #a39d94;         /* secondary text */
  --accent: #f05a1a;        /* primary orange */
  --accent-2: #e9a23b;      /* amber (gradient end) */
  --grad: linear-gradient(90deg, var(--accent), var(--accent-2));

  --f-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --f-serif: "IBM Plex Serif", Georgia, serif;

  --radius: 14px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-serif);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
strong { font-weight: 600; color: var(--text); }
.accent { color: var(--accent-2); }

.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.section { padding: 110px 0 40px; position: relative; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
  display: flex; align-items: center; gap: 14px;
}
.section > .container > .eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--accent); }
.eyebrow.amber { color: var(--accent-2); }
.h2 {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(48px, 8vw, 96px); line-height: .92; margin: 0 0 28px; letter-spacing: .01em;
}
.h2.xl { font-size: clamp(64px, 12vw, 150px); }
.h3 {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: 28px; line-height: 1.05; margin: 0 0 10px; letter-spacing: .02em;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2vw, 22px); color: #d9d2c7; max-width: 62ch; margin: 0 0 48px; }
.lead.small { font-size: 18px; color: var(--muted); }
.slash { color: var(--accent); margin: 0 .35em; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 66px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
  transition: background .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10,10,15,.82); backdrop-filter: blur(12px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px; background: var(--accent);
  display: grid; place-items: center; font-family: var(--f-display); font-size: 20px; color: #fff;
}
.brand-name { font-family: var(--f-mono); font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.menu-btn {
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: transparent;
  display: grid; place-content: center; gap: 4px; cursor: pointer;
}
.menu-btn span { width: 14px; height: 1.5px; background: var(--text); transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.menu {
  position: absolute; top: 66px; right: 24px; min-width: 220px; padding: 10px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  display: none; flex-direction: column;
}
.menu.open { display: flex; }
.menu a {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .15em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); padding: 10px 14px; border-radius: 8px;
}
.menu a:hover { color: var(--text); background: #1a1a22; }
.menu a.menu-cta { color: var(--accent); border: 1px solid var(--accent); margin-top: 6px; }
.menu a.menu-cta:hover { color: #fff; background: var(--accent); }
.venture-link { margin-top: 18px; padding: 12px 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden;
  padding: 120px 0 80px;
  background:
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(240,90,26,.20), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(240,90,26,.10), transparent 70%);
}
.hero::before { /* faint engineering grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-rings { position: absolute; left: 50%; top: 58%; transform: translate(-50%,-50%); pointer-events: none; }
.hero-rings i {
  position: absolute; left: 50%; top: 50%; border: 1px solid rgba(255,255,255,.05); border-radius: 50%;
  transform: translate(-50%,-50%);
}
.hero-rings i:nth-child(1){ width: 120px; height: 120px; }
.hero-rings i:nth-child(2){ width: 280px; height: 280px; }
.hero-rings i:nth-child(3){ width: 480px; height: 480px; }
.hero-rings i:nth-child(4){ width: 760px; height: 760px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; margin: 0 0 24px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(17,17,23,.7);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(240,90,26,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(240,90,26,0); } 100% { box-shadow: 0 0 0 0 rgba(240,90,26,0); } }
.hero-title {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(72px, 12vw, 150px); line-height: .88; margin: 0 0 24px;
}
.hero-role {
  font-family: var(--f-mono); font-size: 14px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 28px;
}
.hero-quote { font-style: italic; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.5; max-width: 26ch; margin: 0 0 36px; color: #e7e0d5; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 6px;
  background: var(--accent); color: #fff; text-decoration: none; border: 1px solid var(--accent);
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(240,90,26,.7); }
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); }

.portrait-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.portrait {
  width: min(340px, 70vw); aspect-ratio: 1; border-radius: 50%; padding: 6px;
  background: var(--grad); position: relative; box-shadow: 0 30px 80px -20px rgba(240,90,26,.45);
}
.portrait img, .portrait .ph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg); }
.portrait .ph { display: none; place-items: center; background: var(--bg-2); font-family: var(--f-display); font-size: 96px; color: var(--accent); }
.portrait.no-img .ph { display: grid; }
.portrait-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0; }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- cards & grids ---------- */
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; margin-bottom: 24px; transition: border-color .25s, transform .25s;
}
.card p { color: #cfc8bd; margin: 0; }
.grid-2, .grid-3 { display: grid; gap: 24px; margin-bottom: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 .card, .grid-3 .card { margin-bottom: 0; }
.idx { display: block; font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: .2em; margin-bottom: 18px; }
.comp:hover, .project:hover, .venture:hover { border-color: rgba(240,90,26,.55); transform: translateY(-3px); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 40px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden;
}
.stat { padding: 32px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.num { display: block; font-family: var(--f-display); font-size: 64px; line-height: 1; color: var(--accent); }
.lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.roots { padding: 44px; }
.roots .h3 { font-size: 34px; margin-bottom: 18px; }
.roots p { font-size: 18px; }

.feature-img { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; position: relative; border: 1px solid var(--line); min-height: 220px; background: linear-gradient(135deg, #17171f, #0e0e13); }
.feature-img img { width: 100%; height: 440px; object-fit: cover; }
.feature-img figcaption {
  position: absolute; inset: auto 0 0 0; padding: 60px 32px 28px; color: #e7e0d5; font-size: 17px;
  background: linear-gradient(transparent, rgba(10,10,15,.92));
}
.feature-img.no-img figcaption { position: static; background: none; padding: 40px 32px; }
.why { padding: 40px; }
.why-text { font-size: clamp(18px, 2vw, 21px); color: #e7e0d5 !important; }

.divider { height: 60px; margin: 40px 0 0; background:
  repeating-linear-gradient(0deg, transparent 0 6px, rgba(255,255,255,.04) 6px 7px);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }

/* ---------- projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); cursor: pointer; transition: all .2s;
}
.chip:hover { color: var(--text); border-color: #3a3a46; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; transition: border-color .25s, transform .25s, opacity .3s;
}
.project.hidden { display: none; }
.project p { color: #cfc8bd; margin: 0 0 20px; }
.meta { font-family: var(--f-mono); font-size: 12px !important; letter-spacing: .18em; text-transform: uppercase; color: var(--muted) !important; margin: 0 0 12px !important; }
.tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--accent-2);
}
.tags.big li { font-size: 12px; padding: 10px 14px; color: var(--text); }

/* ---------- credentials ---------- */
.edu { padding: 18px 0; border-bottom: 1px solid var(--line); position: relative; padding-right: 70px; }
.edu:last-child { border-bottom: 0; padding-bottom: 0; }
.edu .h3 { font-size: 24px; margin-bottom: 4px; }
.year { position: absolute; right: 0; top: 22px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .15em; color: var(--accent); }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 14px 0 14px 24px; border-bottom: 1px solid var(--line); position: relative; color: #cfc8bd; }
.list li:last-child { border-bottom: 0; }
.list li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }

/* ---------- galleries ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.photo {
  margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-2); display: flex; flex-direction: column;
}
.photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .5s; }
.photo:hover img { transform: scale(1.04); }
.photo.no-img::before {
  content: "Add photo"; aspect-ratio: 4/5; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #4a4650;
  background: repeating-linear-gradient(45deg, #121218 0 12px, #15151c 12px 24px);
}
.photo figcaption { padding: 18px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.photo figcaption .meta { display: block; font-size: 10px !important; margin-bottom: 8px !important; color: var(--accent) !important; }
.photo figcaption strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 22px; text-transform: uppercase; color: var(--text); margin-bottom: 6px; line-height: 1.05; }
.record { list-style: none; padding: 0; margin: 0; }
.record li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.record li:last-child { border-bottom: 0; }
.record em { font-style: normal; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: var(--muted); white-space: nowrap; }

/* ---------- contact & footer ---------- */
.contact { padding-bottom: 120px; text-align: left;
  background: radial-gradient(ellipse 60% 60% at 20% 80%, rgba(240,90,26,.12), transparent 70%); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: #08080c; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer p { color: var(--muted); font-size: 15px; max-width: 46ch; }
.footer .quote { font-style: italic; color: #d9d2c7; }
.footer-grid > div > a:not(.brand) { display: block; color: var(--muted); text-decoration: none; font-size: 15px; padding: 4px 0; }
.footer-grid > div > a:not(.brand):hover { color: var(--accent); }
.footer .brand { margin-bottom: 16px; }
.footer .brand-name { color: var(--text); letter-spacing: .1em; }
.copyright { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #5f5a63; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  * { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait-wrap { order: 2; }
  .grid-2, .grid-3, .projects { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .card, .roots, .why { padding: 26px; }
  .record li { flex-direction: column; gap: 2px; }
  .hero-role { letter-spacing: .16em; font-size: 12px; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .num { font-size: 52px; }
}

/* ---------- blog (homepage #blog section, /blog/ list and /blog/<post>/ pages) ---------- */
.posts-3 { grid-template-columns: repeat(3, 1fr); }
.post-card { text-decoration: none; color: inherit; }
.post-card:hover { border-color: rgba(240,90,26,.55); transform: translateY(-3px); }
.post-card .h3 { margin-bottom: 14px; }
.post-card p:not(.meta):not(.post-date) { flex: 1; }
.post-date { margin: 0 !important; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted) !important;
  display: flex; justify-content: space-between; gap: 12px; }
.read-more { color: var(--accent); margin-left: auto; }
.post-card.featured { grid-column: 1 / -1; padding: 44px; background: linear-gradient(135deg, rgba(240,90,26,.10), var(--bg-2) 55%); }
.post-card.featured .h3 { font-size: clamp(34px, 4.5vw, 52px); }
.post-card.featured p:not(.meta):not(.post-date) { font-size: 19px; max-width: 62ch; }
.all-posts { margin-top: 32px; }
.blog-hero { padding-top: 150px; }
.blog-hero .h2 { margin-bottom: 20px; }

.container.narrow { width: min(760px, 100% - 48px); }
.article { padding-top: 140px; }
.back-link { display: inline-block; margin-bottom: 28px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--accent); }
.article .eyebrow { flex-wrap: wrap; gap: 0; }
.article .eyebrow::before { margin-right: 14px; }
.article-title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(44px, 7vw, 80px); line-height: .95; margin: 0 0 24px; }
.article .lead { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.article-body { font-size: 18px; line-height: 1.8; color: #d9d2c7; }
.article-body p { margin: 0 0 22px; }
.article-body h2 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 4vw, 40px); line-height: 1.05; color: var(--text); margin: 52px 0 18px; letter-spacing: .01em; }
.article-body h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 26px; color: var(--accent-2); margin: 36px 0 12px; letter-spacing: .02em; }
.article-body ul { margin: 0 0 24px; padding-left: 22px; }
.article-body li { margin-bottom: 10px; }
.article-body li::marker { color: var(--accent); }
.article-body blockquote { margin: 40px 0; padding: 8px 0 8px 26px; border-left: 2px solid var(--accent); font-style: italic; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.55; color: var(--text); }
.author-box { display: flex; gap: 22px; align-items: center; margin: 56px 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.author-box img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--accent); }
.author-box .eyebrow { margin-bottom: 4px; }
.author-name { font-family: var(--f-display); font-size: 28px; text-transform: uppercase; margin: 0 0 6px; line-height: 1; }
.author-box p:last-child { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.more-label { margin-bottom: 18px; }
@media (max-width: 980px) { .posts-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .posts-3 { grid-template-columns: 1fr; }
  .post-card.featured { padding: 28px; }
  .author-box { flex-direction: column; align-items: flex-start; }
  .article-body { font-size: 17px; }
}
