/* Prince Dzorkpe — portfolio design system (cream / orange / ink) */
:root {
  --orange: #ef7d3b;
  --orange-dark: #d3651f;
  --orange-light: #fbe4d1;
  --ink: #16140f;
  --ink-2: #221f19;
  --paper: #ffffff;
  --cream: #f3ede1;
  --cream-2: #ece2cf;
  --line: #ddd2ba;
  --muted: #6e6a5c;
  --success: #177245;
  --shadow-sm: 0 8px 24px rgba(22,20,15,.08);
  --shadow-lg: 0 30px 80px rgba(22,20,15,.18);
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 34px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(239,125,59,.4); outline-offset: 3px; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; background: var(--ink); color: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-sm { padding: 54px 0; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--orange-dark); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--orange); border-radius: 999px; }
.display { font-size: clamp(2.75rem, 7vw, 6.9rem); line-height: .92; letter-spacing: -.045em; margin: 18px 0 24px; max-width: 950px; font-weight: 900; }
.h1 { font-size: clamp(2.4rem, 5vw, 5rem); line-height: .98; letter-spacing: -.04em; margin: 16px 0 22px; font-weight: 900; }
.h2 { font-size: clamp(2rem, 4vw, 3.65rem); line-height: 1.02; letter-spacing: -.035em; margin: 14px 0 18px; font-weight: 900; }
.h3 { font-size: 1.25rem; line-height: 1.2; margin: 0 0 10px; font-weight: 800; }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: #4a483d; max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.text-orange { color: var(--orange); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

.topline { background: var(--ink); color: #d9d5c8; font-size: .82rem; }
.topline .container { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; }
.topline a { color: var(--orange); font-weight: 800; }
.site-header { position: sticky; top: 0; z-index: 80; background: rgba(243,237,225,.97); border-bottom: 1px solid rgba(22,20,15,.08); }
@media (min-width: 1041px) { .site-header { background: rgba(243,237,225,.88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); } }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 950; letter-spacing: .03em; }
.brand-mark { height: 50px; width: auto; display: block; }
.brand-mark-lg { height: 76px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-weight: 750; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; }
.nav-links a { position: relative; padding: 28px 0 24px; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 17px; height: 3px; background: var(--orange); transition: right .2s ease; }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.nav-toggle span { display:block; width:21px; height:2px; background:var(--ink); margin:5px auto; transition:.2s; }

.btn { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 50px; padding: 11px 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 850; text-transform: uppercase; font-size: .84rem; letter-spacing: .03em; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: 0 14px 28px rgba(239,125,59,.28); }
.btn-primary:hover { background: var(--orange-dark); color: white; }
.btn-dark { background: var(--ink); color: white; }
.btn-dark:hover { background: #000; }
.btn-light { background: white; color: var(--ink); border-color: var(--line); }
.btn-ghost { background: transparent; border-color: #c7bda1; }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: .78rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---- Hero ---- */
.hero-modern { position: relative; overflow: hidden; padding: 54px 0 0; }
.hero-shape { position: absolute; z-index: 0; }
.hero-shape-1 { width: 210px; height: 210px; background: var(--orange); left: 6%; top: 30%; transform: rotate(45deg); border-radius: 28px; opacity: .95; }
.hero-shape-2 { width: 120px; height: 120px; background: var(--ink); right: 10%; top: 12%; transform: rotate(20deg); border-radius: 20px; opacity: .08; }
.hero-text-block { position: relative; text-align: center; z-index: 1; }
.hero-line { display: block; font-size: clamp(3rem, 10vw, 8.4rem); font-weight: 950; line-height: .94; letter-spacing: -.035em; text-transform: uppercase; color: var(--ink); }
.hero-line.outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.hero-photo-wrap { position: relative; z-index: 2; max-width: 360px; margin: -70px auto 0; }
.hero-photo-frame { border-radius: 999px 999px 40px 40px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--cream-2); aspect-ratio: 3/4; }
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.05); }
.scroll-badge { position: relative; z-index: 3; width: 118px; height: 118px; margin: -30px auto 40px; }
.scroll-badge svg { width: 100%; height: 100%; animation: spin 14s linear infinite; }
.scroll-badge .hub { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; }
.scroll-badge .hub svg { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Dark hello / stats band ---- */
.hello-band { background: var(--ink); color: white; overflow: hidden; }
.hello-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; padding: 90px 0; }
.hello-copy .eyebrow { color: #a9a698; }
.hello-copy .eyebrow::before { background: var(--orange); }
.hello-copy h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 950; margin: 6px 0 20px; letter-spacing: -.03em; }
.hello-copy p { color: #c7c4b6; max-width: 480px; }
.check-stats { margin-top: 30px; display: grid; gap: 4px; }
.check-stat { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.check-stat:last-child { border-bottom: 0; }
.check-stat .tick { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: white; color: var(--ink); display: grid; place-items: center; font-weight: 950; font-size: .95rem; }
.check-stat strong { font-size: 1.5rem; font-weight: 950; margin-right: 10px; }
.check-stat span.label { color: #c7c4b6; font-weight: 650; }
.hello-visual { position: relative; min-height: 380px; }
.hello-photo-grid { position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 66px, transparent 66px 132px), repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 66px, transparent 66px 132px); z-index: 0; }
.hello-photo-frame { position: relative; z-index: 1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); height: 100%; }
.hello-photo-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) contrast(1.05); }
.hello-squiggle { position: absolute; z-index: 2; stroke: var(--orange); }

/* ---- Layout & cards ---- */
.grid-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.section-head { display:flex; justify-content:space-between; gap:30px; align-items:end; margin-bottom:38px; }
.section-head > div:first-child { max-width:800px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; margin-inline: auto; }

.card { background:white; border:1px solid var(--line); border-radius:var(--radius); padding:26px; box-shadow:0 1px 0 rgba(0,0,0,.02); }
.card-hover { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card-hover:hover { transform:translateY(-6px); box-shadow:var(--shadow-sm); border-color:#cbbf9d; }
.icon-box { width:52px; height:52px; border-radius:15px; display:grid; place-items:center; background:var(--orange-light); color:var(--orange-dark); font-size:1.35rem; font-weight:950; margin-bottom:22px; }
.dark-section { background:var(--ink); color:white; }
.dark-section .muted, .dark-section .lede { color:#c7c4b6; }
.dark-section .card { background:#221f19; border-color:#37332a; }
.dark-section .eyebrow { color:#f2a877; }

.meta { display:flex; flex-wrap:wrap; gap:8px 15px; align-items:center; color:var(--muted); font-size:.82rem; margin-bottom:12px; }
.tag { display:inline-flex; align-items:center; min-height:28px; padding:4px 12px; border-radius:999px; background:var(--orange-light); color:var(--orange-dark); font-size:.72rem; font-weight:850; text-transform:uppercase; letter-spacing:.06em; }
.card-link { display:inline-flex; align-items:center; gap:8px; color:var(--orange-dark); font-weight:850; margin-top:10px; }

.cta-band { background:var(--ink); color:white; border-radius:var(--radius-lg); padding:48px; display:grid; grid-template-columns:1fr auto; gap:30px; align-items:center; }
.cta-band .lede { color:#c7c4b6; }

.page-hero { background:var(--cream-2); border-bottom:1px solid var(--line); overflow:hidden; }
.page-hero .container { padding:76px 0 72px; position:relative; }
.page-hero .container::after { content:""; position:absolute; width:280px; height:95px; background:var(--orange); right:20px; top:62px; transform:skewX(-22deg) rotate(8deg); opacity:.9; border-radius: 10px; }
.page-hero .h1, .page-hero .lede, .page-hero .eyebrow { position:relative; z-index:2; }
.page-hero .lede { max-width:760px; }

.filters { display:flex; flex-wrap:wrap; gap:9px; margin: 0 0 32px; }
.filter-btn { border:1px solid var(--line); background:white; padding:9px 16px; border-radius:999px; font-weight:750; font-size: .85rem; }
.filter-btn.active, .filter-btn:hover { color:white; background:var(--ink); border-color:var(--ink); }

.form-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr); gap:32px; align-items:start; }
.form-card { background:white; border:1px solid var(--line); border-radius:var(--radius); padding:30px; box-shadow:var(--shadow-sm); }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.field { display:flex; flex-direction:column; gap:7px; }
.field.full { grid-column:1/-1; }
.field label { font-weight:800; font-size:.92rem; }
.field small { color:var(--muted); }
input, textarea, select { width:100%; border:1px solid #d8cdb2; background:white; border-radius:12px; padding:13px 14px; color:var(--ink); transition:border .15s, box-shadow .15s; }
textarea { min-height:145px; resize:vertical; }
input:focus, textarea:focus, select:focus { border-color:var(--orange); box-shadow:0 0 0 4px rgba(239,125,59,.14); outline:0; }
.form-status { min-height:24px; margin-top:14px; font-weight:750; }
.form-status.success { color:var(--success); }
.form-status.error { color:#b42318; }
.sidebar-card { background:var(--ink); color:white; border-radius:var(--radius); padding:26px; position:sticky; top:105px; }
.sidebar-card .muted { color:#c7c4b6; }
.clean-list { padding:0; margin:16px 0 0; list-style:none; }
.clean-list li { position:relative; padding:10px 0 10px 25px; border-bottom:1px solid rgba(255,255,255,.12); }
.clean-list li::before { content:"✓"; position:absolute; left:0; color:var(--orange); font-weight:950; }
.clean-list li:last-child { border-bottom:0; }

.timeline { position:relative; padding-left:28px; margin-top:20px; }
.timeline::before { content:""; position:absolute; left:7px; top:8px; bottom:8px; width:2px; background:var(--line); }
.timeline-item { position:relative; padding:0 0 34px; }
.timeline-item:last-child { padding-bottom:0; }
.timeline-item::before { content:""; position:absolute; width:14px; height:14px; border-radius:50%; background:var(--orange); left:-28px; top:5px; box-shadow:0 0 0 5px var(--orange-light); }
.timeline-item h3 { margin:0 0 4px; font-size:1.2rem; }
.timeline-item .role-meta { display:flex; flex-wrap:wrap; gap:6px 14px; color:var(--muted); font-weight:750; font-size:.9rem; margin-bottom:10px; }
.timeline-item ul { margin:0; padding-left:20px; color:#3a3729; display:grid; gap:6px; }
.timeline-item .sub { margin: 10px 0 0 0; padding: 12px 0 0 16px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.timeline-item .sub strong { display: block; font-size: .96rem; }

/* ---- Project cards ---- */
.project-card { display:flex; flex-direction:column; gap:0; padding: 0; overflow: hidden; }
.project-media { aspect-ratio: 16/10; position: relative; background: linear-gradient(135deg, var(--ink), #35311f); overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-media .mockchrome { position: absolute; inset: 14px; border-radius: 14px; background: #0e0d09; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.project-media .mockchrome .dots { display:flex; gap:6px; padding: 10px 12px; }
.project-media .mockchrome .dots i { width:8px; height:8px; border-radius:50%; background:#3a3729; }
.project-media .mockchrome .lines { padding: 8px 16px 16px; display: grid; gap: 9px; }
.project-media .mockchrome .lines i { display:block; height:8px; border-radius:4px; background: linear-gradient(90deg, var(--orange) 0%, rgba(239,125,59,.25) 100%); }
.project-media .mockchrome .lines i:nth-child(2) { width: 70%; background: rgba(255,255,255,.14); }
.project-media .mockchrome .lines i:nth-child(3) { width: 45%; background: rgba(255,255,255,.14); }
.project-media .mockchrome .lines i:nth-child(4) { width: 85%; background: rgba(255,255,255,.14); }
.project-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-body h3 { font-size:1.16rem; margin: 2px 0 0; }
.project-body .role { color: var(--orange-dark); font-weight: 800; font-size: .82rem; }
.project-body p { color: var(--muted); margin: 0; flex: 1; }
.tech-pills { display:flex; flex-wrap:wrap; gap:6px; }
.tech-pill { border:1px solid var(--line); border-radius:999px; padding:4px 10px; font-size:.74rem; font-weight:750; color:var(--ink-2); background:var(--cream); }
.project-link { display:inline-flex; align-items:center; gap:6px; color:var(--orange-dark); font-weight:850; font-size:.88rem; margin-top:4px; }

.skill-tags { display:flex; flex-wrap:wrap; gap:10px; }
.skill-tag { border:1px solid var(--line); background:white; border-radius:999px; padding:9px 16px; font-weight:750; font-size:.92rem; }

.footer { background:var(--ink); color:white; padding:66px 0 28px; }
.footer-grid { display:grid; grid-template-columns:1.25fr repeat(3,.75fr); gap:44px; }
.footer p, .footer a { color:#b9b6a8; }
.footer a:hover { color:var(--orange); }
.footer h4 { margin:0 0 14px; }
.footer-links { display:grid; gap:9px; }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; border-top:1px solid #322e24; padding-top:24px; margin-top:50px; color:#8c8878; font-size:.85rem; }
.footer-easter { opacity:.5; font-family:ui-monospace,Menlo,Consolas,monospace; }
.footer-easter:hover { opacity:1; }

@media (max-width: 1040px) {
  .nav-links { display:none; position:fixed; inset:79px 0 0; background:var(--cream); padding:28px 24px; flex-direction:column; align-items:stretch; gap:0; overflow:auto; }
  .nav-links.open { display:flex; }
  .nav-links a { padding:18px 0; border-bottom:1px solid var(--line); font-size:1.1rem; }
  .nav-links a::after { display:none; }
  .nav-toggle { display:block; }
  .nav-actions .btn-sm { display:none; }
  .grid-4 { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:1.2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column:2/4; }
  .page-hero .container::after { opacity:.18; }
  .cta-band { grid-template-columns:1fr; }
  .hello-grid { grid-template-columns:1fr; padding: 64px 0; }
  .hello-visual { min-height:320px; order: -1; }
}

@media (max-width: 760px) {
  .container { width:min(100% - 28px, var(--max)); }
  .section { padding:68px 0; }
  .topline .container { justify-content:center; text-align:center; }
  .topline span:last-child { display:none; }
  .brand-text { font-size:.98rem; }
  .hero-line { font-size: clamp(2.4rem, 13vw, 4rem); }
  .hero-photo-wrap { margin-top: -40px; max-width: 240px; }
  .scroll-badge { width: 92px; height: 92px; margin: -22px auto 28px; }
  .grid-2, .grid-3, .form-layout { grid-template-columns:1fr; }
  .grid-4 { grid-template-columns:1fr; }
  .section-head { align-items:start; flex-direction:column; }
  .cta-band { grid-template-columns:1fr; padding:32px; }
  .form-grid { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .sidebar-card { position:static; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column:1/-1; }
  .footer-bottom { flex-direction:column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
  .scroll-badge svg { animation: none; }
}
