/*
Theme Name: Sahmih
Theme URI: https://sahmih.com
Description: A custom theme for Samuel Odumosu's portfolio site
Version: 1.0.0
Author: Samuel Odumosu
Author URI: https://sahmih.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sahmih
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #FAF9F6;
  --ink: #1A1916;
  --muted: #6B6860;
  --accent: #2D5016;
  --accent-light: #EEF3E8;
  --border: #E5E2DA;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 4rem;
  background: rgba(250,249,246,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.nav-logo { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a { font-size: 0.875rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-resume { border: 1px solid var(--ink); color: var(--ink)!important; padding: 0.5rem 1.1rem; border-radius: 100px; font-size: 0.8rem!important; font-weight: 500; transition: all 0.2s!important; text-decoration: none; }
.nav-resume:hover { background: var(--ink); color: var(--cream)!important; }
.nav-cta { background: var(--ink)!important; color: var(--cream)!important; padding: 0.55rem 1.25rem; border-radius: 100px; font-size: 0.875rem!important; transition: background 0.2s!important; text-decoration: none; }
.nav-cta:hover { background: var(--accent)!important; }

/* ── BURGER MENU ── */
.nav-burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; z-index: 1001; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; transform-origin: center; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; position: fixed; inset: 0; background: var(--cream); flex-direction: column; justify-content: center; align-items: center; z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a { font-family: var(--serif); font-size: clamp(1.6rem, 6vw, 2.2rem); color: var(--ink); text-decoration: none; padding: 0.85rem 2rem; width: 100%; text-align: center; border-bottom: 1px solid var(--border); transition: color 0.2s, background 0.2s; }
.mobile-menu a:first-child { border-top: 1px solid var(--border); }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--accent); background: var(--accent-light); }
.mobile-menu .mobile-cta { margin-top: 2rem; background: var(--ink); color: var(--cream)!important; border-radius: 100px; font-family: var(--sans)!important; font-size: 1rem!important; padding: 0.9rem 2.5rem; width: auto; border: none; }

/* ── HOME HERO ── */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 7rem 4rem 4rem; gap: 4rem; max-width: 1200px; margin: 0 auto; }
.hero-text { max-width: 520px; }
.hero-label { display: inline-block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); background: var(--accent-light); padding: 0.3rem 0.85rem; border-radius: 100px; margin-bottom: 2rem; }
.hero-name { font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4.5rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 0.5rem; }
.hero-name em { font-style: italic; color: var(--accent); }
.hero-tagline { font-size: 1.05rem; color: var(--muted); font-weight: 300; margin-bottom: 2.5rem; line-height: 1.65; max-width: 440px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { display: inline-block; background: var(--ink); color: var(--cream); padding: 0.8rem 1.8rem; border-radius: 100px; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: background 0.2s, transform 0.15s; }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-secondary { display: inline-block; background: transparent; color: var(--ink); padding: 0.8rem 1.8rem; border-radius: 100px; border: 1px solid var(--border); text-decoration: none; font-size: 0.9rem; transition: border-color 0.2s, transform 0.15s; }
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-1px); }
.hero-image-wrap { display: flex; justify-content: center; align-items: center; }
.hero-image-frame { width: 380px; height: 480px; border-radius: 200px 200px 160px 160px; overflow: hidden; border: 1px solid var(--border); }
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

/* ── SKILLS STRIP ── */
.skills-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; padding: 1.5rem 4rem; }
.skills-inner { display: flex; gap: 2.5rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.skill-pill { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: var(--muted); }
.skill-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ── SECTIONS ── */
section { max-width: 1200px; margin: 0 auto; padding: 6rem 4rem; }
.section-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.section-heading { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 2rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.about-body { font-size: 1rem; color: var(--muted); line-height: 1.8; }
.about-body p + p { margin-top: 1.25rem; }
.about-body strong { color: var(--ink); font-weight: 500; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-top: 0.5rem; }
.stat-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.stat-num { font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--ink); margin-bottom: 0.4rem; }
.stat-label { font-size: 0.8rem; color: var(--muted); }

/* ── TIMELINE ── */
.timeline { margin-top: 2rem; }
.timeline-item { display: grid; grid-template-columns: 140px 1fr; gap: 2rem; padding: 1.5rem 0; border-top: 1px solid var(--border); }
.timeline-year { font-size: 0.78rem; color: var(--muted); padding-top: 0.2rem; }
.timeline-content h4 { font-weight: 500; font-size: 0.95rem; color: var(--ink); margin-bottom: 0.2rem; }
.timeline-content p { font-size: 0.85rem; color: var(--muted); }
.timeline-content .badge { display: inline-block; font-size: 0.7rem; font-weight: 500; color: var(--accent); background: var(--accent-light); padding: 0.2rem 0.6rem; border-radius: 100px; margin-top: 0.4rem; }

/* ── EXPERTISE ── */
.expertise-section { background: var(--ink); border-radius: 24px; padding: 5rem; max-width: 1200px; margin: 0 auto 6rem; }
.expertise-section .section-label { color: rgba(255,255,255,0.4); }
.expertise-section .section-heading { color: #fff; }
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.expertise-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 2rem; text-decoration: none; display: block; transition: background 0.25s, transform 0.2s; }
.expertise-card:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); }
.card-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.2rem; }
.expertise-card .card-title { font-family: var(--serif); font-size: 1.35rem; color: #fff; margin-bottom: 0.6rem; }
.card-desc { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.65; margin-bottom: 1.25rem; }
.card-link { font-size: 0.8rem; color: rgba(255,255,255,0.35); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; }
.expertise-card:hover .card-link { color: rgba(255,255,255,0.7); }

/* ── SERVICE PAGE HERO ── */
.page-hero { padding: 9rem 4rem 4rem; max-width: 1200px; margin: 0 auto; border-bottom: 1px solid var(--border); }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--muted); text-decoration: none; margin-bottom: 2rem; transition: color 0.2s; }
.back-link:hover { color: var(--ink); }
.skill-badge { display: inline-block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: var(--accent-light); padding: 0.3rem 0.85rem; border-radius: 100px; margin-bottom: 1.5rem; }
.page-title { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 1rem; }
.page-desc { font-size: 1rem; color: var(--muted); max-width: 560px; font-weight: 300; }

/* ── CAPABILITIES ── */
.cap-strip { max-width: 1200px; margin: 0 auto; padding: 3rem 4rem 0; }
.cap-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.cap-chip { padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 12px; background:#fff; }
.cap-chip strong { display: block; font-weight: 500; font-size: 0.875rem; color: var(--ink); margin-bottom: 0.2rem; }
.cap-chip span { font-size: 0.78rem; color: var(--muted); }

/* ── FEATURED CARD ── */
.featured-wrap { max-width: 1200px; margin: 0 auto; padding: 4rem 4rem 2rem; }
.featured-wrap .section-label { margin-bottom: 1.5rem; }
.gallery-wrap { max-width: 1200px; margin: 0 auto; padding: 4rem; }
.gallery-wrap .section-label { margin-bottom: 2rem; }

.featured-card { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: #fff; transition: box-shadow 0.25s, transform 0.2s; cursor: pointer; text-decoration: none; color: inherit; }
.featured-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.08); transform: translateY(-2px); }
.featured-img { background: #EEF3E8; min-height: 340px; display: flex; align-items: center; justify-content: center; padding: 2.5rem; border-right: 1px solid var(--border); }
.featured-img.li-bg { background: #0A66C2; border-right: 1px solid rgba(255,255,255,0.1); }
.featured-body { padding: 2.75rem; display: flex; flex-direction: column; justify-content: center; }
.featured-tag { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.featured-title { font-family: var(--serif); font-size: clamp(1.3rem, 2.5vw, 1.75rem); color: var(--ink); margin-bottom: 0.75rem; line-height: 1.2; }
.featured-excerpt { font-size: 0.88rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.25rem; }
.kw-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.5rem; }
.kw-chip { font-size: 0.68rem; background: var(--accent-light); color: var(--accent); padding: 0.22rem 0.65rem; border-radius: 100px; font-weight: 500; }
.featured-meta { display: flex; gap: 1.25rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.meta-item { display: flex; flex-direction: column; gap: 0.15rem; }
.meta-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.meta-value { font-size: 0.85rem; font-weight: 500; color: var(--ink); }
.btn-outline { display: inline-block; border: 1px solid var(--ink); color: var(--ink); padding: 0.65rem 1.5rem; border-radius: 100px; font-size: 0.875rem; text-decoration: none; transition: background 0.2s, color 0.2s; }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* ── PROJECTS GRID ── */
.projects-wrap { max-width: 1200px; margin: 0 auto; padding: 2rem 4rem 5rem; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; text-decoration: none; color: inherit; display: block; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.07); }
.card-thumb { width: 100%; height: 190px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); padding: 1.25rem; position: relative; }
.card-body { padding: 1.4rem 1.5rem; }
.card-tag { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem; }
.project-card .card-title { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); margin-bottom: 0.4rem; line-height: 1.3; }
.card-excerpt { font-size: 0.83rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-client { font-size: 0.72rem; color: var(--muted); }
.card-cta { font-size: 0.78rem; font-weight: 500; color: var(--accent); }

/* ── PREVIEW COMPONENTS ── */
/* LinkedIn Preview */
.li-preview { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.2); max-width: 280px; width: 100%; text-align: left; }
.li-topbar { background: #0A66C2; padding: 0.7rem 1rem; display: flex; align-items: center; gap: 0.6rem; }
.li-in { font-size: 1rem; color: #fff; font-weight: 700; background: rgba(255,255,255,0.2); width: 24px; height: 24px; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.li-pagename { font-size: 0.65rem; color: rgba(255,255,255,0.9); font-weight: 500; }
.li-postbody { padding: 0.9rem 1rem; }
.li-postheader { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.65rem; }
.li-avatar { width: 32px; height: 32px; border-radius: 50%; background: #1a7070; display: flex; align-items: center; justify-content: center; font-size: 0.56rem; color: #fff; font-weight: 700; flex-shrink: 0; }
.li-org { font-size: 0.65rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.li-sub { font-size: 0.56rem; color: var(--muted); }
.li-posttext { font-size: 0.65rem; color: var(--ink); line-height: 1.6; margin-bottom: 0.55rem; }
.li-tags { font-size: 0.58rem; color: #0A66C2; margin-bottom: 0.6rem; line-height: 1.5; }
.li-img { background: #1a7070; height: 65px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 0.58rem; color: rgba(255,255,255,0.65); margin-bottom: 0.5rem; }
.li-reactions { font-size: 0.58rem; color: var(--muted); padding-top: 0.4rem; border-top: 1px solid var(--border); }

/* Doc/Walmart Preview */
.mini-doc { background: #fff; border-radius: 8px; padding: 0.9rem 1.1rem; box-shadow: 0 2px 12px rgba(0,0,0,0.08); width: 100%; max-width: 220px; text-align: left; }
.mt { font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; margin-bottom: 0.3rem; }
.mh { font-size: 0.68rem; font-weight: 500; color: var(--ink); margin-bottom: 0.45rem; line-height: 1.3; }
.ml { height: 4px; background: #edeae3; border-radius: 3px; margin-bottom: 4px; }
.ml.s { width: 55%; } .ml.m { width: 78%; } .ml.l { width: 100%; }

/* Newsletter Preview */
.mini-nl { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); width: 100%; max-width: 200px; text-align: left; }
.nl-head { background: #1a7070; padding: 0.5rem 0.8rem; display: flex; align-items: center; gap: 0.45rem; }
.nl-logo { width: 18px; height: 18px; background: #fff; border-radius: 50%; flex-shrink: 0; }
.nl-brand { font-size: 0.58rem; font-weight: 600; color: #fff; }
.nl-body { padding: 0.6rem 0.8rem; }
.nl-tagline { font-size: 0.56rem; color: #1a7070; font-style: italic; margin-bottom: 0.35rem; }
.nl-h { font-size: 0.64rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; line-height: 1.3; }
.nl-l { height: 3px; background: #edeae3; border-radius: 3px; margin-bottom: 3px; }
.nl-l.s { width: 55%; } .nl-l.m { width: 78%; } .nl-l.l { width: 100%; }
.nl-impact { font-size: 0.56rem; color: #1a7070; font-weight: 600; margin-top: 0.45rem; margin-bottom: 0.25rem; }
.nl-quote { font-size: 0.56rem; color: var(--muted); font-style: italic; line-height: 1.4; }

/* Masonville Preview */
.mason-preview { width: 100%; max-width: 250px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.1); }
.mason-preview img { width: 100%; display: block; object-fit: cover; height: 95px; }
.mason-preview-label { background: #1565C0; padding: 0.35rem 0.7rem; font-size: 0.6rem; color: #fff; font-weight: 500; text-align: left; }

/* Doc Preview (Featured Writing) */
.doc-preview { background: #fff; border-radius: 12px; padding: 1.5rem 1.75rem; box-shadow: 0 4px 20px rgba(0,0,0,0.08); max-width: 280px; width: 100%; text-align: left; }
.dp-tag { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; margin-bottom: 0.4rem; }
.dp-title { font-family: var(--serif); font-size: 0.95rem; color: var(--ink); margin-bottom: 0.35rem; line-height: 1.3; }
.dp-by { font-size: 0.68rem; color: var(--muted); font-style: italic; margin-bottom: 0.9rem; }
.dp-line { height: 5px; background: #edeae3; border-radius: 3px; margin-bottom: 6px; }
.dp-line.s { width: 55%; } .dp-line.m { width: 80%; } .dp-line.l { width: 100%; }

/* ── VIDEO COMPONENTS ── */
.video-card-featured { border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background:#fff; display: grid; grid-template-columns: 1fr 1fr; transition: box-shadow 0.2s, transform 0.2s; text-decoration: none; color: inherit; }
.video-card-featured:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.09); transform: translateY(-2px); }
.video-thumb { position: relative; display: flex; align-items: center; justify-content: center; min-height: 280px; overflow: hidden; width: 100%; }
.tint-purple { background: linear-gradient(135deg,#1a0a2e 0%,#3d1a6e 100%); }
.tint-orange { background: linear-gradient(135deg,#1a0800 0%,#6e2800 100%); }
.tint-green { background: linear-gradient(135deg,#001a0a 0%,#0a3d1a 100%); }
.tint-teal { background: linear-gradient(135deg,#001a1a 0%,#0a3d3d 100%); }
.play-btn { width: 60px; height: 60px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; transition: border-color 0.2s, transform 0.2s; text-decoration: none; }
.play-btn:hover { border-color:#fff; transform: scale(1.08); }
.play-btn::after { content:''; border-left: 19px solid rgba(255,255,255,0.85); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.video-type-tag { position: absolute; top: 1.1rem; left: 1.1rem; background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 0.3rem 0.7rem; font-size: 0.65rem; color: rgba(255,255,255,0.85); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.video-info { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.video-tag { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.video-title { font-family: var(--serif); font-size: clamp(1.3rem, 2.5vw, 1.6rem); color: var(--ink); margin-bottom: 0.75rem; line-height: 1.2; }
.video-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; }
.video-meta { display: flex; gap: 1.25rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.btn-watch { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--ink); color: var(--cream); padding: 0.7rem 1.5rem; border-radius: 100px; font-size: 0.875rem; font-weight: 500; text-decoration: none; width: fit-content; transition: background 0.2s, transform 0.15s; }
.btn-watch:hover { background: var(--accent); transform: translateY(-1px); }

.card-play { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; transition: border-color 0.2s, transform 0.2s; text-decoration: none; }
.card-play:hover { border-color:rgba(255,255,255,0.9); transform: scale(1.08); }
.card-play::after { content:''; border-left: 13px solid rgba(255,255,255,0.8); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }

/* ── BENTO GRID ── */
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.cell-uber { grid-column: 1/6; grid-row: 1; }
.cell-ttc { grid-column: 6/9; grid-row: 1/3; }
.cell-gemini { grid-column: 9/13; grid-row: 1/3; }
.cell-mason-social { grid-column: 1/4; grid-row: 2; }
.cell-mason-web { grid-column: 4/6; grid-row: 2; }
.design-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #fff; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; height: 100%; }
.design-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.design-img { width: 100%; overflow: hidden; flex: 1; display: flex; align-items: center; justify-content: center; background: #f0ece4; }
.design-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.design-card:hover .design-img img { transform: scale(1.03); }
.cell-uber .design-img { height: 280px; }
.cell-ttc .design-img { height: 100%; min-height: 480px; }
.cell-gemini .design-img { height: 100%; min-height: 480px; }
.cell-mason-social .design-img { height: 220px; }
.cell-mason-web .design-img { height: 220px; }
.design-info { padding: 1rem 1.25rem; border-top: 1px solid var(--border); background: #fff; flex-shrink: 0; text-align: left; }
.design-tag { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.design-title { font-family: var(--serif); font-size: 0.95rem; color: var(--ink); line-height: 1.3; }

/* ── MODALS ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,10,8,0.6); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--cream); border-radius: 20px; max-width: 800px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; text-align: left; padding: 0; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.9); border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--ink); font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: background 0.2s; z-index: 10; }
.modal-close:hover { background: #fff; }

/* Modal Image behavior (Graphic Design) */
.modal-img { width: 100%; max-height: 460px; object-fit: contain; background: #f0ece4; display: block; border-radius: 20px 20px 0 0; margin-bottom: 0; }
.modal-img.portrait { object-fit: contain; max-height: 580px; background: #f9f9f9; width: 100%; }

/* Modal Header/Top section (Writing/Digital - when no img) */
.modal > .modal-tag, 
.modal > .modal-title, 
.modal > .modal-client, 
.modal > .modal-divider { margin-left: 2.5rem; margin-right: 2.5rem; }
.modal > .modal-tag { margin-top: 2.5rem; }

/* Specific modal elements */
.modal-tag { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.modal-title { font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 1.75rem); color: var(--ink); margin-bottom: 0.4rem; line-height: 1.2; }
.modal-client { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; }
.modal-divider { height: 1px; background: var(--border); margin-bottom: 1.25rem; }

/* Modal Body */
.modal-body, .modal-desc { padding: 2rem; font-size: 0.88rem; color: var(--muted); line-height: 1.85; }
/* When there is no image (Text modals), use more padding at the bottom and sides */
.modal > .modal-body { padding: 1.25rem 2.5rem 2.5rem; }

.modal-body p + p, .modal-desc p + p { margin-top: 0.85rem; }
.modal-body strong, .modal-desc strong { color: var(--ink); font-weight: 500; }
.modal-body h4, .modal-desc h4 { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin: 1.1rem 0 0.3rem; }
.modal-body ul, .modal-desc ul { margin: 0.4rem 0 0.4rem 1.1rem; padding-left: 0; }
.modal-body ul li, .modal-desc ul li { margin-bottom: 0.35rem; font-size: 0.85rem; list-style: disc; }
.modal-body blockquote, .modal-desc blockquote { border-left: 3px solid var(--border); padding-left: 1.25rem; margin: 1.25rem 0; font-style: italic; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.modal-kw { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.65rem; }
.modal-kw span { font-size: 0.7rem; background: var(--accent-light); color: var(--accent); padding: 0.2rem 0.6rem; border-radius: 100px; font-weight: 500; }

/* ── CTA SECTION ── */
.cta-section { max-width: 1200px; margin: 0 auto; padding: 6rem 4rem; text-align: center; border-top: 1px solid var(--border); }
.cta-section .section-heading { margin-bottom: 1.5rem; }
.cta-section p { font-size: 1.1rem; color: var(--muted); margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 2rem 4rem; display: flex; align-items: center; justify-content: space-between; }
footer p { font-size: 0.8rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.8rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--ink); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu { display: flex; }
  body.menu-open { overflow: hidden; }

  .hero { grid-template-columns: 1fr; padding: 6rem 1.25rem 3rem; gap: 2.5rem; min-height: auto; }
  .hero-image-wrap { order: -1; }
  .hero-image-frame { width: 220px; height: 280px; border-radius: 120px 120px 100px 100px; }
  .hero-name { font-size: clamp(2.4rem, 10vw, 3.2rem); }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; width: 100%; }

  .skills-strip { padding: 1.25rem; }
  .skills-inner { gap: 1rem; justify-content: flex-start; }
  section { padding: 3.5rem 1.25rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.25rem; }
  .expertise-section { padding: 2.5rem 1.25rem; margin: 0 1.25rem 3rem; border-radius: 16px; }
  .cards-grid { grid-template-columns: 1fr; gap: 1rem; }

  .page-hero { padding: 7rem 1.25rem 3rem; }
  .cap-strip { padding: 0 1.25rem; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-wrap { padding: 2rem 1.25rem; }
  .featured-wrap, .projects-wrap { padding: 2rem 1.25rem; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { border-right: none; border-bottom: 1px solid var(--border); min-height: 200px; padding: 1.75rem; }
  .featured-body { padding: 1.75rem; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .video-card-featured { grid-template-columns: 1fr; }
  .video-thumb { min-height: 220px; }
  .video-info { padding: 1.75rem; }

  .bento-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .cell-uber, .cell-ttc, .cell-gemini, .cell-mason-social, .cell-mason-web { grid-column: auto; grid-row: auto; }
  .cell-ttc .design-img, .cell-gemini .design-img { min-height: 240px; }
  .cell-uber .design-img, .cell-mason-social .design-img, .cell-mason-web .design-img { height: 200px; }

  .cta-section { padding: 4rem 1.25rem; }

  .modal { width: 95%; margin: 10px; }
  .modal > .modal-tag, .modal > .modal-title, .modal > .modal-client, .modal > .modal-divider { margin-left: 1.5rem; margin-right: 1.5rem; }
  .modal > .modal-tag { margin-top: 1.5rem; }
  .modal-body, .modal-desc { padding: 1.5rem; }
  .modal > .modal-body { padding: 1rem 1.5rem 1.5rem; }

  footer { flex-direction: column; gap: 1rem; padding: 2rem 1.25rem; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .cap-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}
