:root {
  --bg: #fbf9f6;
  --ink: #16181d;
  --muted: #5b6270;
  --orange: #f2601f;
  --orange-2: #f7853a;
  --line: #ece7e0;
  --card: #ffffff;
  --tan: #f3ece3;
  --paper: #f4ecdf;
  --shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 8px 28px rgba(20, 20, 30, .06);
  --hand: "Gochi Hand", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { letter-spacing: -.02em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* Soft background color washes */
.blobs { position: absolute; left: 0; right: 0; top: 0; height: 1200px; overflow: hidden; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.blob-1 { width: 420px; height: 420px; left: -180px; top: 260px; background: #e3f0df; }
.blob-2 { width: 520px; height: 520px; right: -160px; top: -60px; background: #fde7d8; }

/* Header */
/* Header: one floating pill on the right (menu + Let's Connect), no name or logo */
header { position: sticky; top: 12px; z-index: 50; padding-top: 12px; display: flex; justify-content: flex-end; pointer-events: none; }
.topbar { pointer-events: auto; display: inline-flex; align-items: center; gap: 24px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(0,0,0,.04); border-radius: 999px; box-shadow: var(--shadow); padding: 7px 7px 7px 26px; }
.nav { display: flex; gap: 24px; font-size: 14px; font-weight: 500; }
.nav a { position: relative; padding: 4px 0; color: #2a2e36; white-space: nowrap; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--orange); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, var(--orange-2), var(--orange)); color: #fff; font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: 999px; box-shadow: 0 8px 20px rgba(242, 96, 31, .28); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(242, 96, 31, .34); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 11px 22px; font-size: 14px; }
.nav-cta.active { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--orange); } /* on the Contact page */
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }

.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #4a505c; margin: 0 0 10px; }
.eyebrow .sep { margin: 0 8px; color: #9aa0aa; }
.eyebrow .nw { white-space: nowrap; } /* a phrase never splits across lines */

/* Hero */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; padding-top: 46px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; font-weight: 600; margin: 16px 0 20px; }
.hero h1 b { font-weight: 700; font-size: 1.1em; }
.hero h1 strong { color: var(--orange); font-weight: 700; }
.rotator { display: block; white-space: nowrap; min-height: 1.1em; }
.caret { display: inline-block; width: 3px; height: .9em; margin-left: 4px; vertical-align: -.08em; background: var(--orange); border-radius: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lede { font-size: 16px; line-height: 1.6; color: #3d434e; max-width: 480px; margin: 0 0 26px; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0; }
.facts li { display: flex; align-items: center; gap: 12px; font-size: 13px; padding: 0 24px; border-left: 1px solid var(--line); }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts svg { width: 26px; height: 26px; color: var(--orange); flex: none; }
.facts span { display: flex; flex-direction: column; color: var(--muted); line-height: 1.35; }
.facts b { color: var(--ink); font-weight: 600; }
.facts b.plain { font-weight: 500; }

.hero-visual { position: relative; padding: 0 40px 0 0; width: 100%; max-width: 360px; justify-self: center; }
.peach { position: absolute; right: 10px; top: 60px; bottom: 30px; width: 70%; border-radius: 48% 52% 40% 60% / 50% 40% 60% 50%; background: linear-gradient(160deg, #fbd2bb, #f8b896); opacity: .75; }
/* Pop-out portrait: the frame starts --pop below the top, the full photo is clipped to the frame,
   and a background-free cutout of the same photo sits on top so the head rises past the frame's edge. */
.portrait { position: relative; margin: 0; aspect-ratio: 1 / 1.16; }
.frame-bg { position: absolute; inset: var(--pop, 0%) 0 0 0; border-radius: 22px; background: linear-gradient(160deg, #eef0ea, #dfe3dc); box-shadow: 0 20px 50px rgba(30, 30, 40, .14); }
/* Clip the zoomed photo sideways here (not on .portrait) so the frame's shadow can still spread */
.layer { position: absolute; inset: 0; overflow-x: clip; }
.layer-photo { clip-path: inset(var(--pop, 0%) 0 0 0 round 22px); }
.layer-cutout { clip-path: inset(-10% 0 0 0 round 0 0 22px 22px); pointer-events: none; }
/* --zoom and --focus crop a wide or full-body photo down to head and shoulders */
.layer img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: var(--focus, center); transform: scale(var(--zoom, 1)); transform-origin: var(--focus, center); }
.portrait-empty { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; color: #6b7280; border: 2px dashed #c9cfc6; border-radius: 22px; }
.portrait-empty svg { width: 90px; height: 90px; color: #b5bcb2; stroke-width: 1.2; margin-bottom: 6px; }
.portrait-empty b { color: #3f4650; font-size: 16px; }
.portrait-empty span { font-size: 13px; font-family: ui-monospace, monospace; }
.portrait.missing .layer, .portrait.missing .frame-bg { display: none; }
.portrait.missing .portrait-empty { display: flex; }

/* What I do */
.panel { background: rgba(255, 255, 255, .8); border: 1px solid rgba(0,0,0,.03); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 22px; }
.panel-head h2, .section-head h2, .feedback h2 { font-size: clamp(24px, 2.8vw, 30px); font-weight: 600; margin: 0; }
.panel-head > p { max-width: 330px; font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service { position: relative; border-radius: 18px; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; column-gap: 14px; align-items: center; border: 1px solid rgba(0,0,0,.03); transition: transform .25s, box-shadow .25s; }
.service:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(30, 30, 40, .08); }
.s-orange { background: linear-gradient(160deg, #fff5ee, #fde6d8); --accent: linear-gradient(135deg, #f8945a, #f2601f); }
.s-blue   { background: linear-gradient(160deg, #f1f6ff, #dde9fb); --accent: linear-gradient(135deg, #4c9bf5, #1f6fe0); }
.s-green  { background: linear-gradient(160deg, #f3faf1, #dff0db); --accent: linear-gradient(135deg, #6cc46a, #3a9b3c); }
.num { position: absolute; right: 18px; top: 14px; font-size: 14px; color: #b9bec6; }
.ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.ico svg { width: 22px; height: 22px; stroke-width: 2; }
.service h3 { font-size: 17px; font-weight: 600; line-height: 1.25; margin: 0; padding-right: 22px; }
.service p { grid-column: 1 / -1; align-self: start; font-size: 13px; line-height: 1.5; color: #4a505c; margin: 12px 0 14px; }
.chip-link { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 14px; font-size: 13.5px; font-weight: 500; background: rgba(255,255,255,.75); border: 1px solid rgba(0,0,0,.06); border-radius: 999px; padding: 9px 20px; transition: background .2s, gap .2s; }
.chip-link:hover { background: #fff; gap: 18px; }
.chip-link svg { width: 15px; height: 15px; }

/* Projects */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 46px 0 22px; scroll-margin-top: 100px; }
.sub { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.view-all { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; border-bottom: 1.5px solid var(--ink); padding-bottom: 4px; white-space: nowrap; }
.view-all svg { width: 16px; height: 16px; transition: transform .2s; }
.view-all:hover svg { transform: translateX(3px); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.03); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.project:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(30, 30, 40, .1); }
.project-img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: #fff; }
/* contain: the whole photo shows, on white, instead of being cropped to the box */
.project-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px 12px 0; display: block; transition: transform .5s; }
.project:hover .project-img img { transform: scale(1.04); }
.project-img.fill img { object-fit: cover; padding: 0; }
/* "Personal Project" label: marks personal projects that sit alongside the business work */
.badge-fun { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; background: #7c3aed; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.project-img .badge-fun { position: absolute; top: 12px; left: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.modal-content .tags .badge-fun { padding: 5px 11px; background: #7c3aed; color: #fff; }
.art-ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--art); color: rgba(255,255,255,.95); }
.art-ph svg { width: 40px; height: 40px; stroke-width: 1.6; }
.project-body { padding: 14px 14px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.project h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.project p { font-size: 12.5px; line-height: 1.45; color: #4a505c; margin: 0 0 14px; flex: 1; max-width: 270px; }
.project-foot { display: flex; align-items: center; gap: 8px; }
.project-foot .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-right: auto; }
.tags span { font-size: 11px; color: #3d434e; background: #f4f4f2; border-radius: 999px; padding: 5px 12px; }
.go { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #e3e3e0; display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.go svg { width: 16px; height: 16px; }
.project:hover .go { background: var(--orange); color: #fff; border-color: var(--orange); }
.project { cursor: pointer; }
.project:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.project:focus-visible .go { background: var(--orange); color: #fff; border-color: var(--orange); }

/* Project details pop-up */
html.modal-open { overflow: hidden; }
.modal { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(20, 20, 30, .3); overflow: auto; }
.modal::backdrop { background: rgba(18, 20, 26, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .3s cubic-bezier(.2, .8, .2, 1); }
.modal[open]::backdrop { animation: backdrop-in .3s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.modal-close { position: sticky; top: 14px; float: right; margin: 14px 14px -54px 0; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.15); display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: background .2s, color .2s; }
.modal-close:hover { background: var(--orange); color: #fff; }
.modal-close svg { width: 18px; height: 18px; stroke-width: 2.2; }
.modal-media { aspect-ratio: 16 / 7; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.modal-media img { width: 100%; height: 100%; object-fit: contain; padding: 16px; display: block; }
.modal-media.fill img { padding: 0; }
.modal-media .art-ph svg { width: 56px; height: 56px; }
.modal-content { padding: 26px 32px 30px; }
.modal-content h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; margin: 14px 0 8px; }
.modal-lede { font-size: 16px; line-height: 1.6; color: #3d434e; margin: 0 0 6px; }
.modal-content section { margin-top: 22px; }
.modal-content h3 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin: 0 0 8px; }
.modal-content section p { font-size: 15px; line-height: 1.65; color: #2a2e36; margin: 0; }
.modal-content ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 15px; line-height: 1.55; color: #2a2e36; }
.modal-content li::marker { color: var(--orange); }
.modal-content blockquote { margin: 24px 0 0; padding: 16px 20px; border-left: 3px solid var(--orange); background: #fbf7f3; border-radius: 0 12px 12px 0; font-size: 15px; line-height: 1.6; font-style: italic; color: #2a2e36; }
.modal-content blockquote cite { display: block; margin-top: 8px; font-size: 12.5px; font-style: normal; color: var(--muted); }
.modal-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Feedback */
.feedback { margin: 46px 0 10px; background: rgba(255,255,255,.8); border-radius: 24px; padding: 28px 30px 22px; box-shadow: var(--shadow); }
.feedback-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.arrows { display: flex; gap: 10px; }
.arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e3e3e0; background: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.arrow:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.arrow svg { width: 18px; height: 18px; }
.slide { display: flex; align-items: center; gap: 28px; min-height: 110px; }
.slide.enter { animation: slide-in .5s ease; }
@keyframes slide-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.avatar { flex: none; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #4c9bf5, #a8d0f0); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 28px; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.logo { background: #fff; }
.avatar.logo img { object-fit: contain; padding: 10px; }
.slide blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: #2a2e36; }
.slide cite { display: block; font-style: normal; margin-top: 12px; font-size: 13px; color: var(--muted); }
.slide cite b { color: var(--ink); margin-right: 6px; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: #d6d6d2; cursor: pointer; transition: width .25s; }
.dots button.active { background: var(--orange); width: 22px; }

/* Footer */
.site-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; padding-bottom: 34px; font-size: 13px; color: var(--muted); }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--ink); transition: color .2s; }
.social svg { width: 18px; height: 18px; }
#footer-linkedin svg { fill: currentColor; stroke: none; }
.social a:hover { color: var(--orange); }

/* Contact */
.contact { margin: 46px 0 30px; padding: 46px; max-width: 760px; }
.contact h1 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 600; line-height: 1.15; margin: 6px 0 18px; }
.contact h1 strong { color: var(--orange); font-weight: 700; }
.contact p { font-size: 16px; line-height: 1.6; color: #3d434e; }
.contact-form { margin: 28px 0 8px; }
.contact-alt { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; }
.contact-alt .muted { margin: 0; }
.muted { color: var(--muted); font-size: 14px !important; }

/* Off the Clock mosaic: the family photo takes a 2x2 tile and the rest fit around it */
/* The collage fits the window height (below the header and title) and keeps its shape by narrowing to match */
#page-off-the-clock { padding-bottom: 20px; --mosaic-h: clamp(520px, calc(100vh - 250px), 860px); --mosaic-w: calc(var(--mosaic-h) * 1.26); }
.otc-head { margin: 36px auto 18px; max-width: var(--mosaic-w); }
.mosaic { display: grid; gap: 8px; height: var(--mosaic-h); max-width: var(--mosaic-w); margin: 0 auto; padding: 8px; border-radius: 24px; background: #0e0e0f; box-shadow: var(--shadow);
  grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr 1.3fr;
  grid-template-areas: "fam fam cow dogs" "fam fam bass fish" "hike guit bass friends"; }
.mosaic figure { position: relative; margin: 0; min-height: 0; border-radius: 16px; overflow: hidden; background: #222; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption { position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-weight: 600; font-size: 14px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.mosaic figure:hover figcaption { opacity: 1; transform: none; }

.page { animation: fade .35s ease; }
@keyframes fade { from { transform: translateY(6px); } to { transform: none; } }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { max-width: 360px; width: 100%; margin: 0 auto; }
  .services { grid-template-columns: 1fr; }
  .panel-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .projects { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar { padding: 5px 5px 5px 18px; gap: 14px; }
  .nav { gap: 16px; }
  .btn-sm { padding: 9px 14px; font-size: 13px; }
  .btn-sm svg { display: none; }
  .hero { padding-top: 28px; padding-bottom: 32px; }
  .facts { flex-direction: column; gap: 14px; }
  .facts li { padding: 0; border-left: 0; }
  .hero-visual { padding: 0; max-width: 280px; }
  .panel { padding: 20px 16px; border-radius: 20px; }
  .projects { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .feedback { padding: 22px 16px; }
  .slide { flex-direction: column; text-align: center; gap: 16px; }
  .contact { padding: 28px 20px; }
  .modal { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 18px; }
  .modal-content { padding: 20px 18px 24px; }
  .modal-media { aspect-ratio: 16 / 9; }
  .mosaic { height: auto; max-width: none; grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 195px; gap: 5px; padding: 5px; border-radius: 18px;
    grid-template-areas: "fam fam" "fam fam" "cow cow" "bass dogs" "bass fish" "guit friends" "hike hike"; }
  .mosaic figure { border-radius: 12px; }
  .otc-head { max-width: none; }
  .mosaic figcaption { opacity: 1; transform: none; font-size: 11px; padding: 18px 8px 7px; }
}
