/* DigiSketcher — styles.css
   Palette: paper #FDFCF9 · ink #1C1B1A · graphite #59544E · marker #FFDE59 · line #E8E3DA
   Type: system sans everywhere; 'Caveat' (swap) for small hand-written accents only.
   Signature: marker-yellow highlighter swipes + hand-drawn SVG squiggle underlines. */

:root {
  --paper: #FDFCF9;
  --ink: #1C1B1A;
  --graphite: #59544E;
  --marker: #FFDE59;
  --marker-soft: #FFF3BF;
  --line: #E8E3DA;
  --card: #FFFFFF;
  --focus: #1D4ED8;
  --max: 1080px;
  --radius: 14px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: var(--marker-soft); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 252, 249, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 1.25rem; max-width: var(--max); margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand:hover { background: none; }
.brand img { height: clamp(56px, 9vw, 110px); width: auto; }
.brand .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--ink); border-radius: 8px;
  padding: 0.35rem 0.65rem; font: inherit; font-weight: 600; cursor: pointer;
}
.nav-links { display: flex; gap: 1.4rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 0.3rem 0.15rem; border-bottom: 2px solid transparent; }
.nav-links a:hover { background: none; border-bottom-color: var(--ink); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav-cta {
  background: var(--ink); color: var(--paper) !important; padding: 0.5rem 1.05rem !important;
  border-radius: 999px; border-bottom: none !important;
}
.nav-cta:hover { background: var(--graphite) !important; }

@media (max-width: 780px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 1rem 1.25rem 1.25rem; gap: 0.9rem; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Signature accents ---------- */
.hl { /* marker highlighter swipe — a thin stripe behind the text, not a full-height block,
         so it never overlaps into the line above/below when the phrase wraps */
  background-image: linear-gradient(104deg, transparent 0%, var(--marker) 4%, var(--marker) 96%, transparent 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.6em;
  background-position: 0 76%;
  padding: 0 0.15em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.squiggle { display: block; width: 160px; height: 14px; margin: 0.6rem 0 0; }
.squiggle.center { margin-left: auto; margin-right: auto; }
.divider { display: block; width: 100%; max-width: 340px; height: 16px; margin: 0 auto; color: var(--graphite); opacity: 0.55; }
.hand { font-family: var(--hand); font-size: 1.5em; line-height: 1.2; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: 4rem 0 2.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 2.5rem; } }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.3; margin: 0 0 1rem; letter-spacing: -0.02em; }
.lede { font-size: 1.2rem; color: var(--graphite); margin: 0 0 1.6rem; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.btn {
  display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none;
  font-weight: 700; padding: 0.8rem 1.5rem; border-radius: 999px; border: 2px solid var(--ink);
}
.btn:hover { background: var(--graphite); border-color: var(--graphite); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--marker-soft); }
.hero-art { position: relative; }
.hero-art img { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 34px rgba(28,27,26,0.12); transform: rotate(1.2deg); }
.hero-caption { font-size: 0.85rem; color: var(--graphite); margin-top: 0.7rem; text-align: right; }

/* ---------- Sections ---------- */
section { padding: 3.2rem 0; }
section.tint { background: #FAF7F0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.2; margin: 0 0 1rem; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.kicker { font-family: var(--hand); font-size: 1.35rem; color: var(--graphite); display: block; margin-bottom: 0.2rem; }
.prose { max-width: 44em; }
.prose p { margin: 0 0 1.1rem; }

/* Benefit cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; margin-top: 1.6rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.2rem; }
.card h3 { display: inline; background: linear-gradient(transparent 62%, var(--marker) 62%, var(--marker) 92%, transparent 92%); }
.card p { margin: 0.55rem 0 0; color: var(--graphite); font-size: 0.98rem; }

/* Client roster */
.roster { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; padding: 0; margin: 1.2rem 0 0; list-style: none; }
.roster li { border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.35rem 0.95rem; font-weight: 600; font-size: 0.92rem; background: var(--card); }

/* Two-path split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.4rem; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }
.path { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.path img { border-radius: 10px; border: 1px solid var(--line); margin-bottom: 1rem; }
.arrow-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--ink); }
.arrow-link:hover { background: var(--marker-soft); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; margin-top: 1.4rem; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.step .hand { color: var(--graphite); display: block; margin-bottom: 0.2rem; }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 1rem 0 0; max-width: 44em; }
.checks li { padding-left: 1.9em; position: relative; margin: 0 0 0.65rem; }
.checks li::before { content: "✓"; position: absolute; left: 0.2em; top: 0; font-weight: 800; background: var(--marker); border-radius: 4px; padding: 0 0.25em; line-height: 1.35; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0 1.6rem; }
.filter-btn { font: inherit; font-weight: 600; background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.4rem 1rem; cursor: pointer; }
.filter-btn[aria-pressed="true"] { background: var(--marker); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.work { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.work img { width: 100%; height: auto; }
.work figcaption { padding: 0.9rem 1.1rem 1.1rem; font-size: 0.94rem; color: var(--graphite); }
.work figcaption strong { color: var(--ink); display: block; margin-bottom: 0.15rem; }
.work[hidden] { display: none; }

/* Instagram embed — reserved height prevents layout shift while the
   third-party widget script is still lazy-loading (see js/main.js) */
.insta-embed { min-height: 320px; max-width: 900px; margin-left: auto; margin-right: auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.email-big { font-size: clamp(1.2rem, 3.2vw, 1.7rem); font-weight: 800; word-break: break-all; }
form { display: grid; gap: 0.9rem; }
label { font-weight: 700; font-size: 0.95rem; }
input, textarea {
  font: inherit; width: 100%; padding: 0.7rem 0.85rem; border: 1.5px solid var(--graphite);
  border-radius: 10px; background: var(--card); color: var(--ink);
}
input:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.hint { font-size: 0.85rem; color: var(--graphite); margin: -0.35rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 0 2.6rem; margin-top: 3rem; color: var(--graphite); font-size: 0.95rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1.2rem 2.5rem; justify-content: space-between; align-items: center; }
.site-footer a { color: inherit; }
.footer-social { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0;