/* Micah Mapayo portfolio, Direction C */

:root {
  --bg: #F6F4F0;
  --surface: #ECE8E1;
  --line: #E2DDD5;
  --line-strong: #D8D3CB;
  --dash: #CFC8BD;
  --text: #171614;
  --muted: #6E6A63;
  --muted-2: #5F5B55;
  --accent: #A84B25;
  --on-accent: #F6F4F0;
  --peach: #F0D6C8;
  --peach-2: #F1B49D;
  --dark: #171614;
  --dark-muted: #B9B3A9;
  --ok: #2E7D4F;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --section: clamp(64px, 8vw, 112px);
  --radius: 20px;
  --pill: 999px;

  --h1: clamp(42px, 1.6rem + 4vw, 88px);
  --h2: clamp(30px, 1.3rem + 2vw, 52px);
  --lead: clamp(18px, 1.05rem + 0.3vw, 21px);
}

*, *::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: "Inter Tight", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover, button:hover { opacity: .85; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.dark a:focus-visible, .dark button:focus-visible { outline-color: var(--peach-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); }
.h2 { font-size: var(--h2); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.lead { font-size: var(--lead); line-height: 1.5; color: var(--muted); }
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 32px; }
.text-link { font-size: 16px; font-weight: 600; color: var(--accent); text-underline-offset: 5px; }
.sample-label { padding: 6px 12px; border: 1px dashed var(--accent); border-radius: 4px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; padding: 0 28px; border-radius: var(--pill);
  font: 600 17px/1 "Inter Tight", system-ui, sans-serif; text-decoration: none; cursor: pointer; border: 0;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--line-strong); font-weight: 500; padding: 0 24px; }
.btn-light { background: var(--bg); color: var(--text); }
.btn-dark { background: var(--dark); color: var(--bg); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246, 244, 240, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 17px; font-weight: 600; }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.nav-links { display: flex; align-items: center; gap: 24px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav { gap: 10px; }
}

/* Hero */
.hero { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(40px, 5vw, 56px); }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: var(--pill); background: var(--surface); font-size: 14px; font-weight: 500; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.hero h1 { max-width: 15ch; font-size: var(--h1); line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.hero h1 span { color: var(--accent); }
.hero .lead { max-width: 46ch; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.reassure { margin-top: -14px; font-size: 14px; color: var(--muted); }
.proof { padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--muted); }
.proof strong { color: var(--text); font-weight: 600; }

/* Logos */
.logos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos ul { list-style: none; margin: 0 auto; padding-top: 28px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 20px 32px; align-items: center; }
.logos li { height: 40px; display: flex; align-items: center; justify-content: center; }
.logos img { max-height: 32px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; }

/* Services */
.services, .steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 1100px) { .services, .steps { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .services, .steps { grid-template-columns: 1fr; } }
.service { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.4vw, 32px); border-radius: var(--radius); background: var(--surface); }
.service h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.service p { font-size: 16px; line-height: 1.55; opacity: .85; }
.service dl { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line-strong); display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.service dt { opacity: .75; }
.service dd { margin-top: 4px; font-size: 20px; font-weight: 600; }
.service.featured { background: var(--accent); color: var(--on-accent); }
.service.featured dl { border-top-color: rgba(246, 244, 240, .3); }
.service-label { align-self: flex-start; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--pill); background: var(--bg); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.service-cta { align-self: flex-start; margin-top: -4px; font-size: 15px; font-weight: 600; color: var(--accent); text-underline-offset: 4px; }
.service.featured .service-cta { color: var(--on-accent); }

.hourly { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 24px clamp(24px, 2.4vw, 32px); border-radius: var(--radius); border: 1px solid var(--line-strong); }
.hourly > div { display: flex; flex-direction: column; gap: 6px; }
.hourly h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.hourly p { font-size: 16px; line-height: 1.5; color: var(--muted); }
.hourly .rate { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.hourly .block { font-size: 15px; }
@media (max-width: 600px) { .hourly .rate { align-items: flex-start; text-align: left; } }
.hourly .rate strong { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }

/* Project cards */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 16px; }
.work-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); text-decoration: none; border: 0; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.work-card .thumb { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; padding: 4% 6%; }
.work-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.work-card .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 0 4px 4px; }
.work-card .name { font-size: 21px; font-weight: 600; }
.work-card .kind { font-size: 15px; color: var(--muted-2); }

.role-tag { position: absolute; top: 18px; left: 18px; z-index: 1; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--pill); font-size: 13px; font-weight: 600; }
.role-both { background: var(--accent); color: var(--on-accent); }
.role-build { background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.role-design { background: var(--peach); color: var(--text); }

.placeholder { width: 100%; height: 100%; border: 2px dashed var(--dash); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; color: var(--muted); font-size: 15px; }
.placeholder strong { color: var(--text); font-size: 18px; font-weight: 600; }

/* CRO review */
.review { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .review { grid-template-columns: 1fr; } }
.review-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.review-intro .lead { max-width: 44ch; }
.review-includes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.review-includes li { display: flex; gap: 10px; align-items: baseline; }
.review-includes li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.review-credit { margin-top: -8px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.review-credit strong { color: var(--accent); font-weight: 600; }
.review-method { font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 44ch; }
.review-alt { font-size: 14px; line-height: 1.5; color: var(--muted); }
.review-alt a { color: var(--text); text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (max-width: 560px) { .findings .finding-extra { display: none; } .findings li:nth-last-child(2) { border-bottom: 0; padding-bottom: 0; } .mock .pin-extra { display: none; } }
.review-price { display: flex; gap: 40px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); align-self: stretch; }
.review-price dt { font-size: 14px; color: var(--muted); }
.review-price dd { margin-top: 4px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }

.review-sample { border-radius: var(--radius); background: var(--surface); padding: clamp(18px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 20px; }
.review-sample figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 14px; color: var(--muted); }
.review-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 560px) { .review-body { grid-template-columns: 1fr; } .mock { max-width: 200px; margin: 0 auto; } }

.pin { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; }
.mock .pin { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px var(--surface); }

.mock { position: relative; width: 100%; padding: 12px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 10px; }
.mock > * { position: relative; }
.mock-bar { height: 8px; width: 40%; border-radius: 4px; background: var(--line-strong); }
.mock-img { height: 120px; border-radius: 12px; background: linear-gradient(135deg, #E7DCD0, #D9C6B5); }
.mock-line { height: 8px; border-radius: 4px; background: var(--line-strong); }
.mock-line.w80 { width: 80%; } .mock-line.w50 { width: 50%; } .mock-line.w90 { width: 90%; } .mock-line.w70 { width: 70%; }
.mock-btn { height: 30px; width: 70%; border-radius: var(--pill); background: #3A3734; }
.mock-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-cards span:not(.pin) { height: 46px; border-radius: 8px; background: var(--line); }

.findings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.findings li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-strong); }
.findings li:first-child { padding-top: 0; }
.findings li:last-child { border-bottom: 0; padding-bottom: 0; }
.findings p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.findings .finding-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 4px; font-size: 16px; font-weight: 600; color: var(--text); }
.prio { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--pill); font-size: 12px; font-weight: 600; }
.prio.high { background: var(--accent); color: var(--on-accent); }
.prio.mid { background: var(--peach); color: var(--text); }
.prio.low { background: var(--bg); color: var(--muted-2); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 28px; border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 12px; min-height: 260px; }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step-num { font-size: 76px; line-height: .9; font-weight: 600; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.step-arrow { font-size: 13px; font-weight: 600; color: var(--muted); }
.step h3 { margin-top: auto; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.step p { font-size: 16px; line-height: 1.5; color: var(--muted); }
.step.last { background: var(--dark); color: var(--bg); }
.step.last .step-num { -webkit-text-stroke-color: var(--peach-2); }
.step.last .step-arrow, .step.last p { color: var(--dark-muted); }

/* About */
.about { display: flex; flex-wrap: wrap; align-items: center; gap: 32px clamp(32px, 5vw, 72px); padding: clamp(20px, 3vw, 32px); border-radius: 28px; background: var(--surface); }
.about img { flex: 0 1 360px; width: 100%; max-width: 360px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); }
.about-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.about-text p { max-width: 40ch; font-size: var(--lead); line-height: 1.5; color: #3B3833; }

/* FAQ */
.faq { max-width: 880px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 19px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-top: 12px; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* CTA */
.cta { padding-top: var(--section); padding-bottom: var(--section); }
.cta-box { border-radius: 28px; background: var(--dark); color: var(--bg); padding: clamp(36px, 6vw, 80px); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.cta-box h2 { max-width: 20ch; font-size: clamp(34px, 1.4rem + 3vw, 68px); line-height: 1.02; font-weight: 600; letter-spacing: -0.04em; }
.cta-box .btn-row { align-items: center; gap: 12px 24px; }
.cta-box .email { font-size: 17px; text-underline-offset: 5px; overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { text-decoration: none; }

/* All work page */
.page-head { display: flex; flex-direction: column; gap: 20px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: var(--h1); line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.page-head .lead { max-width: 52ch; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 500 15px/1 "Inter Tight", system-ui, sans-serif; cursor: pointer; }
.filter span { font-size: 13px; opacity: .7; }
.filter[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: var(--bg); }

.all-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 48px 24px; padding-bottom: var(--section); }
.project { display: flex; flex-direction: column; gap: 16px; text-decoration: none; border: 0; padding: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.project[hidden] { display: none; }
.project .thumb { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 16px; background: var(--surface); display: flex; align-items: center; justify-content: center; padding: 6% 8%; overflow: hidden; }
.project .thumb img { width: 100%; height: 100%; object-fit: contain; }
.project .role-tag { top: 14px; left: 14px; }
.project .info { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.project .title { display: flex; align-items: baseline; gap: 10px; }
.project .num { font-size: 13px; font-weight: 600; color: var(--accent); }
.project h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.project .type { font-size: 14px; color: var(--muted-2); }
.project .desc { font-size: 16px; line-height: 1.5; color: #3B3833; }
.project .go { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--accent); }
.project .placeholder { border-radius: 10px; padding: 16px; }
.project .placeholder strong { font-size: 17px; }
.empty { padding: 40px 0; color: var(--muted); }

/* Design pop-up */
.design-modal { width: min(1200px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 24px; background: var(--bg); color: var(--text); }
.design-modal::backdrop { background: rgba(23, 22, 20, .72); }
.modal-inner { padding: clamp(20px, 3vw, 40px); display: flex; flex-direction: column; gap: 28px; }
.modal-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-head .role-tag { position: static; align-self: flex-start; }
.modal-head > div { display: flex; flex-direction: column; gap: 10px; }
.modal-head h2 { font-size: clamp(28px, 1.2rem + 1.6vw, 44px); font-weight: 600; letter-spacing: -0.03em; }
.modal-head p { font-size: 16px; color: var(--muted); }
.close-btn { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); font-size: 22px; line-height: 1; cursor: pointer; color: var(--text); }
.frames { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.browser { flex: 999 1 560px; min-width: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: #fff; }
.browser-bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--line-strong); font-size: 12px; color: var(--muted); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--dash); }
.browser-bar span { margin-left: 12px; }
.scroll { height: min(560px, 60vh); overflow-y: auto; overscroll-behavior: contain; }
.phone { flex: 1 1 260px; max-width: 300px; margin: 0 auto; padding: 12px; border-radius: 40px; background: var(--dark); }
.phone .scroll { border-radius: 30px; background: #fff; }
.shot { width: 100%; height: auto; display: block; }
.shot-placeholder { margin: 16px; border: 2px dashed var(--dash); border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--muted); font-size: 15px; }
.shot-placeholder strong { font-size: 20px; color: var(--text); }
.shot-desktop { height: 2400px; }
.shot-mobile { height: 1800px; margin: 10px; border-radius: 22px; padding:0; font-size: 14px; }
.shot-mobile strong { font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.facts > div { padding: 20px; border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.facts dt { font-size: 14px; font-weight: 600; color: var(--accent); }
.facts dd { font-size: 16px; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
