/* ==========================================================================
Peter Okiti Portfolio
Design tokens
========================================================================== */
:root {
--white: #FFFFFF;
--paper: #FAF9F6;
--ink: #15181C;
--ink-soft: #5B6169;
--ink-faint: #9AA0A6;
--line: #E8E5DE;
--line-soft: #F0EEE8;

--orange: #FF5A1F;
--orange-deep: #C2410C;
--orange-tint: #FFF0E6;
--orange-glow: rgba(255, 90, 31, 0.18);

--term-bg: #12100E;
--term-line: #2A2620;
--term-text: #F4E9DE;
--term-muted: #8A8177;

--font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
--font-body: 'Inter', 'Segoe UI', sans-serif;
--font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

--radius-sm: 8px;
--radius-md: 14px;
--radius-lg: 22px;

--shadow-card: 0 1px 2px rgba(21,24,28,0.04), 0 10px 30px -14px rgba(21,24,28,0.14);
--shadow-hover: 0 10px 24px -8px rgba(255,90,31,0.28);

--ease: cubic-bezier(.22,.61,.36,1);
}

/* ==========================================================================
Reset
========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
margin: 0;
background: var(--white);
color: var(--ink);
font-family: var(--font-body);
font-size: 16px;
line-height: 1.55;
-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.skip-link {
position: absolute; left: -999px; top: 0;
background: var(--ink); color: var(--white);
padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

.text-orange { color: var(--orange); }

/* ==========================================================================
Eyebrow / mono labels
========================================================================== */
.eyebrow {
font-family: var(--font-mono);
font-size: 12.5px;
letter-spacing: 0.04em;
color: var(--orange-deep);
text-transform: lowercase;
margin: 0 0 14px;
display: inline-flex;
align-items: center;
gap: 6px;
}
.eyebrow-sep { color: var(--ink-faint); }

/* ==========================================================================
Buttons
========================================================================== */
.btn {
display: inline-flex; align-items: center; justify-content: center;
gap: 8px;
padding: 13px 24px;
border-radius: 999px;
font-family: var(--font-body);
font-weight: 600;
font-size: 14.5px;
border: 1px solid transparent;
transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
white-space: nowrap;
}
.btn-primary {
background: var(--orange);
color: var(--white);
box-shadow: var(--shadow-hover);
}
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-2px); }
.btn-ghost {
background: transparent;
color: var(--ink);
border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-deep); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ==========================================================================
Header
========================================================================== */
.site-header {
position: sticky; top: 0; z-index: 100;
background: rgba(255,255,255,0.86);
backdrop-filter: blur(10px);
border-bottom: 1px solid transparent;
transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
border-bottom-color: var(--line);
box-shadow: 0 1px 0 rgba(21,24,28,0.02);
}
.header-inner {
display: flex; align-items: center; justify-content: space-between;
height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; color: var(--orange); }
.brand-word {
font-family: var(--font-display);
font-weight: 600;
font-size: 16px;
line-height: 1.15;
display: flex; flex-direction: column;
}
.brand-word em {
font-style: normal;
font-family: var(--font-mono);
font-size: 10.5px;
font-weight: 400;
color: var(--ink-faint);
letter-spacing: 0.01em;
}
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
position: relative; padding: 4px 0;
transition: color .2s var(--ease);
}
.site-nav a::after {
content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
background: var(--orange); transition: right .25s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
display: none; flex-direction: column; justify-content: center; gap: 5px;
width: 38px; height: 38px; background: none; border: 1px solid var(--line); border-radius: 10px;
}
.nav-toggle span { display: block; width: 16px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
Reveal-on-scroll
========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; }

/* ==========================================================================
Hero
========================================================================== */
.hero { padding: 68px 0 96px; overflow: hidden; }
.hero-grid {
display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-copy h1 {
font-size: clamp(2.3rem, 4.4vw, 3.6rem);
line-height: 1.06;
margin-bottom: 22px;
}
.hero-sub {
font-size: 17px; color: var(--ink-soft); max-width: 46ch; margin-bottom: 30px;
}
.hero-sub em { font-style: normal; color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-meta {
display: flex; flex-wrap: wrap; gap: 10px;
}
.hero-meta li {
font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft);
background: var(--paper); border: 1px solid var(--line);
padding: 8px 13px; border-radius: 999px;
}
.hero-meta li strong { color: var(--orange-deep); font-weight: 600; }

.hero-visual { position: relative; }
.hero-visual-glow {
position: absolute; inset: -40px; z-index: -1;
background: radial-gradient(closest-side, var(--orange-glow), transparent 72%);
filter: blur(6px);
}
.terminal {
background: var(--term-bg);
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: 0 30px 60px -20px rgba(18,16,14,0.45);
border: 1px solid #2a2620;
}
.terminal-bar {
display: flex; align-items: center; gap: 7px;
padding: 13px 16px;
border-bottom: 1px solid var(--term-line);
}
.term-dot { width: 9px; height: 9px; border-radius: 50%; background: #4a443c; }
.terminal-title {
margin-left: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--term-muted);
}
.terminal-body {
margin: 0; padding: 22px 22px 30px;
font-family: var(--font-mono); font-size: 13.4px; line-height: 1.75;
color: var(--term-text); min-height: 260px;
white-space: pre-wrap; word-break: break-word;
}
.term-cursor { color: var(--orange); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
Section base
========================================================================== */
.section { padding: 100px 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 14px; }
.section-lede { color: var(--ink-soft); font-size: 16px; }
.section-foot { margin-top: 40px; text-align: center; }

/* ==========================================================================
Stat rows
========================================================================== */
.stat-row {
display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
margin-bottom: 56px;
}
.stat-card {
background: var(--white);
border: 1px solid var(--line);
border-radius: var(--radius-md);
padding: 22px 20px;
display: flex; flex-direction: column; gap: 6px;
}
.stat-row-compact .stat-card { padding: 16px 18px; }
.section-alt .stat-card { background: var(--white); }
.stat-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--ink); line-height: 1; }
.stat-card-sm .stat-num { font-size: 1.5rem; }
.stat-star { color: var(--orange); font-size: 1.1rem; margin-left: 2px; }
.stat-unit { font-size: 1rem; color: var(--ink-faint); font-weight: 500; }
.stat-label { font-size: 13px; color: var(--ink-soft); }

/* ==========================================================================
Work section
========================================================================== */
.work-columns {
display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px;
}
.work-services h3, .work-links h3 { font-size: 15px; margin-bottom: 18px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li {
font-family: var(--font-mono); font-size: 13px;
background: var(--orange-tint); color: var(--orange-deep);
padding: 9px 14px; border-radius: 8px;
border: 1px solid rgba(194,65,12,0.12);
}
.platform-link {
display: flex; align-items: center; justify-content: space-between;
padding: 15px 18px; margin-bottom: 10px;
border: 1px solid var(--line); border-radius: var(--radius-sm);
font-weight: 500; font-size: 14.5px;
transition: border-color .2s var(--ease), background .2s var(--ease);
}
.platform-link:hover { border-color: var(--orange); background: var(--orange-tint); }
.platform-link .arrow { color: var(--orange); }
.work-note { font-size: 13px; color: var(--ink-faint); margin-top: 14px; line-height: 1.6; }

/* ==========================================================================
Projects: two cards per row, full Behance cover images
========================================================================== */
.project-grid {
display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px;
}
.project-card {
background: var(--white);
border: 1px solid var(--line);
border-radius: var(--radius-md);
overflow: hidden;
display: flex; flex-direction: column;
transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: var(--line); }
/* Behance covers are 808 x 632, so the frame matches and nothing gets cropped */
.project-thumb { display: block; aspect-ratio: 808 / 632; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s var(--ease); }
.project-card:hover .project-thumb img { transform: scale(1.04); }
.project-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.project-tag {
font-family: var(--font-mono); font-size: 11px; color: var(--orange-deep);
text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; display: block;
}
.project-body h3 { font-size: 17.5px; margin-bottom: 8px; }
.project-body p { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.project-link { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.project-link .arrow { color: var(--orange); transition: transform .2s var(--ease); }
.project-card:hover .project-link .arrow { transform: translate(2px,-2px); }

/* ==========================================================================
Career / timeline
========================================================================== */
.career-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: start; }
.career-copy p { color: var(--ink-soft); font-size: 16px; margin-bottom: 18px; }
.career-copy h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 20px; }

.timeline { position: relative; padding-left: 30px; }
.timeline::before {
content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px;
background: var(--line);
}
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
position: absolute; left: -30px; top: 4px; width: 11px; height: 11px; border-radius: 50%;
background: var(--white); border: 2px solid var(--ink-faint);
}
.timeline-item.is-done .timeline-marker { border-color: var(--ink); background: var(--ink); }
.timeline-item.is-active .timeline-marker { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 0 4px var(--orange-tint); }
.timeline-item.is-next .timeline-marker { border-color: var(--line); background: var(--white); }
.timeline-item h4 { font-size: 15.5px; margin-bottom: 5px; display: flex; align-items: center; gap: 10px; }
.timeline-item p { font-size: 14px; color: var(--ink-soft); }
.pill {
font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.03em;
color: var(--orange-deep); background: var(--orange-tint); padding: 3px 9px; border-radius: 999px;
}

/* ==========================================================================
Reviews
========================================================================== */
.reviews-wrap { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.review-rating-badge {
display: flex; align-items: center; gap: 12px;
font-family: var(--font-mono);
}
.review-stars { color: var(--orange); font-size: 20px; letter-spacing: 2px; }
.review-score { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.review-score-label { color: var(--ink-soft); font-size: 13.5px; }

.carousel { width: 100%; max-width: 760px; }
.carousel-track { position: relative; min-height: 150px; }
.testimonial-card {
background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
padding: 34px 36px; text-align: center;
display: none;
}
.testimonial-card.is-active { display: block; }
.testimonial-quote { font-size: 18px; line-height: 1.6; color: var(--ink); margin-bottom: 22px; }
.testimonial-quote::before { content: "\201C"; color: var(--orange); }
.testimonial-quote::after { content: "\201D"; color: var(--orange); }
.testimonial-foot { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.testimonial-who { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 6px; }
.testimonial-author { font-weight: 600; font-size: 14.5px; }
.testimonial-rating { font-family: var(--font-mono); font-size: 12.5px; color: var(--orange-deep); background: var(--orange-tint); padding: 2px 9px; border-radius: 999px; }
.testimonial-project { font-size: 14px; color: var(--ink); font-weight: 500; margin-bottom: 3px; }
.testimonial-date { font-size: 12.5px; color: var(--ink-faint); }
.testimonial-empty {
border: 1px dashed var(--line); border-radius: var(--radius-md);
padding: 40px 30px; text-align: center; color: var(--ink-soft); font-size: 15px;
}
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.carousel-btn {
width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
transition: border-color .2s var(--ease), background .2s var(--ease);
}
.carousel-btn:hover { border-color: var(--orange); background: var(--orange-tint); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); border: none; padding: 0; }
.carousel-dot.is-active { background: var(--orange); }

/* ==========================================================================
Connect / footer
========================================================================== */
.connect { padding-top: 96px; padding-bottom: 96px; }
.connect-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 64px; align-items: start; }
.connect h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 8px 0 16px; }
.connect .section-lede { margin-bottom: 30px; }

.social-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.social-list a {
display: flex; align-items: center; gap: 12px;
padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
font-weight: 500; font-size: 14px;
transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.social-list svg { width: 19px; height: 19px; color: var(--ink-soft); transition: color .2s var(--ease); }
.social-list a:hover { border-color: var(--orange); background: var(--orange-tint); transform: translateY(-2px); }
.social-list a:hover svg { color: var(--orange-deep); }

.contact-form {
background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
padding: 32px; display: flex; flex-direction: column; gap: 6px;
}
.contact-form label { font-size: 13px; font-weight: 600; margin-top: 14px; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
padding: 12px 14px; background: var(--white); resize: vertical;
transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus {
border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-tint); outline: none;
}
.contact-form button { margin-top: 20px; }
.form-note { font-size: 12px; color: var(--ink-faint); text-align: center; margin-top: 12px; }
.hidden-field { position: absolute; left: -9999px; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.brand-footer .brand-mark { width: 26px; height: 26px; }
.brand-footer .brand-word { font-size: 14px; }
.footer-copy { font-size: 13px; color: var(--ink-faint); }

/* ==========================================================================
Responsive
========================================================================== */
@media (max-width: 1000px) {
.hero-grid { grid-template-columns: 1fr; gap: 48px; }
.hero-visual { order: -1; max-width: 460px; }
.career-grid { grid-template-columns: 1fr; gap: 40px; }
.connect-grid { grid-template-columns: 1fr; }
.work-columns { grid-template-columns: 1fr; gap: 32px; }
.project-grid { gap: 20px; }
}

@media (max-width: 780px) {
.site-nav {
position: fixed; inset: 76px 0 0 0; background: var(--white);
flex-direction: column; align-items: flex-start; gap: 4px;
padding: 20px 28px; transform: translateY(-8px); opacity: 0; pointer-events: none;
transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.site-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.site-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
.nav-toggle { display: flex; }
.header-actions .btn-sm.btn-primary { display: none; }
.stat-row { grid-template-columns: repeat(2, 1fr); }
.social-list { grid-template-columns: 1fr; }
}

/* Phones: one card per row so covers stay readable */
@media (max-width: 600px) {
.project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
.wrap { padding: 0 20px; }
.hero { padding: 44px 0 64px; }
.section { padding: 72px 0; }
.hero-cta { flex-direction: column; align-items: stretch; }
.hero-cta .btn { text-align: center; }
}
