/* Backend Bestie® brand system: shared by every page */
:root {
    --oxblood: #350A0E;
    --red: #D42A1F;
    --red-dark: #B5221A;
    --blush: #FBE3DE;
    --lavender: #E4D8EE;
    --chambray: #A8C3E2;
    --cognac: #B0602C;
    --paper: #FFF9F6;
    --white: #FFFFFF;
    --ink-70: rgba(53, 10, 14, 0.78);
    --line: rgba(53, 10, 14, 0.14);
    --blush-70: rgba(251, 227, 222, 0.78);
    --blush-line: rgba(251, 227, 222, 0.18);

    --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --accent: 'Fraunces', Georgia, serif;
    --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
    --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--oxblood);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

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

/* ---------- Type ---------- */
h1, h2, h3, .display {
    font-family: var(--display);
    font-stretch: 125%;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 0.97;
}
h2 { font-size: clamp(30px, 4.4vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 800; line-height: 1.05; }

/* Accent: Fraunces italic, lowercase, 1–2 words, red full stop */
h1 em, h2 em, h3 em, .display em, .accent {
    font-family: var(--accent);
    font-style: italic;
    font-weight: 600;
    font-stretch: 100%;
    font-variation-settings: "opsz" 144;
    text-transform: lowercase;
    letter-spacing: -0.01em;
    font-size: 1.18em;
    line-height: 0.9;
    color: var(--red);
}
.stop { color: var(--red); }

.eyebrow, .mono {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.6;
}
.eyebrow { color: var(--red); display: inline-flex; gap: 10px; align-items: center; }
.eyebrow b { font-weight: 500; }
.eyebrow b::after { content: ""; display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 10px; }

/* ---------- Buttons ---------- */
.btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 999px;
    font-family: var(--body);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--red); color: var(--blush); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: currentColor; color: var(--oxblood); background: transparent; }
.btn-ghost:hover { background: var(--oxblood); color: var(--blush); border-color: var(--oxblood); }
.btn-dark { background: var(--oxblood); color: var(--blush); }
.btn-dark:hover { background: #200507; }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Logo ---------- */
.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.28em;
    text-decoration: none;
    color: var(--oxblood);
    font-size: 19px;
    line-height: 1;
    white-space: nowrap;
    min-width: 140px;
}
.logo-b { font-family: var(--display); font-stretch: 125%; font-weight: 900; letter-spacing: -0.01em; }
.logo-i { font-family: var(--accent); font-style: italic; font-weight: 600; font-variation-settings: "opsz" 144; font-size: 1.28em; letter-spacing: -0.01em; }
.logo sup { font-family: var(--body); font-size: 0.42em; font-weight: 700; position: relative; top: -1.1em; margin-left: -0.15em; }
.on-dark .logo, .logo.on-dark { color: var(--blush); }

/* ---------- Nav ---------- */
nav.site-nav, body > nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 249, 246, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--oxblood); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current] { color: var(--red); }
.nav-links .btn { padding: 11px 22px; font-size: 18px; }
.nav-links .btn-primary, .nav-links .btn-primary:hover { color: var(--blush); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { margin-top: 18px; }
.section-head p { margin-top: 18px; color: var(--ink-70); font-size: 18px; max-width: 600px; }
.bg-blush, section.sand { background: var(--blush); }
.bg-lavender, section.tint { background: var(--lavender); }
.bg-white { background: var(--white); }
.bg-oxblood, .on-dark { background: var(--oxblood); color: var(--blush); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--blush); }
.on-dark h1 em, .on-dark h2 em, .on-dark h3 em { color: var(--blush); }
.on-dark .section-head p, .on-dark p { color: var(--blush-70); }
.on-dark .eyebrow { color: var(--blush); }
.on-dark .eyebrow b { color: var(--blush); }
.grid-paper {
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(53,10,14,0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(53,10,14,0.12) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* ---------- Home hero ---------- */
.hero { background: var(--blush); padding: 72px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: end; }
.hero-copy { padding-bottom: 80px; }
.hero h1.eyebrow { font-family: var(--mono); font-weight: 500; text-transform: uppercase; font-stretch: 100%; line-height: 1.6; letter-spacing: 0.14em; font-size: 12px; }
.hero-title {
    font-size: clamp(46px, 7.4vw, 72px);
    margin: 26px 0 28px;
    max-width: 11ch;
}
.hero-title em { display: inline-block; }
.lede { font-size: 19px; max-width: 540px; color: var(--ink-70); margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px 36px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-proof div { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-70); }
.hero-proof strong { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 24px; letter-spacing: -0.01em; color: var(--oxblood); margin-bottom: 4px; }
.portrait {
    position: relative;
    border-radius: 28px 28px 0 0;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--oxblood);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(53,10,14,0.92) 0%, rgba(53,10,14,0) 42%); }
.portrait figcaption { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 1; color: var(--blush); }
.portrait figcaption .who { font-family: var(--display); font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 22px; line-height: 1; display: block; margin-bottom: 6px; }

/* Press strip */
.press { background: var(--oxblood); color: var(--blush); padding: 22px 0; }
.press .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 40px; }
.press .label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blush-70); }
.press a { font-family: var(--accent); font-style: italic; font-weight: 600; font-size: 24px; text-decoration: none; color: var(--blush); }
.press a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.services-grid .service:last-child:nth-child(odd) { grid-column: 1 / -1; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 40px 36px; display: flex; flex-direction: column; }
.service-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.service-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--red); }
.service-icon { color: var(--cognac); display: grid; place-items: center; }
.service h3 { margin-bottom: 14px; }
.service p { color: var(--ink-70); }
.service-link { margin-top: auto; padding-top: 22px; font-weight: 700; color: var(--oxblood); text-decoration: none; }
.service-link:hover { color: var(--red); }
.services-note, .industry-note { margin-top: 28px; text-align: center; color: var(--blush-70); }
.services-note a, .industry-note a { color: var(--blush); font-weight: 700; }

/* ---------- Industries (dark) ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.industry { border: 1px solid var(--blush-line); border-radius: 20px; padding: 30px 28px; display: flex; flex-direction: column; }
.industry h3 { color: var(--blush); margin-bottom: 12px; font-size: 21px; }
.industry p { color: var(--blush-70); font-size: 16px; margin-bottom: 20px; }
.industry-icon { color: var(--cognac); margin-bottom: 20px; }
.industry.featured { background: var(--blush); border-color: var(--blush); }
.industry.featured h3 { color: var(--oxblood); }
.industry.featured p { color: var(--ink-70); }
.industry.featured .industry-icon { color: var(--red); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tags span, .pill {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--chambray);
    color: var(--oxblood);
}

/* ---------- Folder-tab steps ---------- */
.folders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-top: 34px; }
.folder { position: relative; border-radius: 0 18px 18px 18px; padding: 34px 28px 32px; min-height: 230px; }
.folder::before {
    content: attr(data-step);
    position: absolute;
    top: -32px;
    left: 0;
    height: 33px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    border-radius: 12px 12px 0 0;
    background: inherit;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.folder h3 { margin-bottom: 12px; }
.folder:nth-child(4n+1) { background: var(--oxblood); color: var(--blush); }
.folder:nth-child(4n+2) { background: var(--red); color: var(--blush); }
.folder:nth-child(4n+2) p { font-size: 18px; font-weight: 700; }
.folder:nth-child(4n+3) { background: var(--white); color: var(--oxblood); box-shadow: 0 0 0 1px var(--line); }
.folder:nth-child(4n+3)::before { box-shadow: 0 0 0 1px var(--line); clip-path: inset(-1px -1px 0 -1px); }
.folder:nth-child(4n+4) { background: var(--chambray); color: var(--oxblood); }
.folder:nth-child(4n+2)::before { left: 22%; }
.folder:nth-child(4n+3)::before { left: 44%; }
.folder:nth-child(4n+4)::before { left: auto; right: 0; }
.folder:nth-child(4n+4) { border-radius: 18px 0 18px 18px; }
.folder:nth-child(4n+2), .folder:nth-child(4n+3) { border-radius: 18px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.headshot { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; }
.headshot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.about-copy p { color: var(--ink-70); margin-bottom: 18px; font-size: 18px; }
.about-copy a { color: var(--oxblood); font-weight: 700; }
.pull {
    background: var(--lavender);
    border-radius: 18px;
    padding: 26px 28px;
    margin: 28px 0;
    font-family: var(--accent);
    font-style: italic;
    font-weight: 600;
    font-variation-settings: "opsz" 144;
    font-size: 26px;
    line-height: 1.25;
    color: var(--oxblood) !important;
}
.sectors { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sectors span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--chambray); }

/* Pinned notes */
.notes { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; }
.note {
    position: relative;
    aspect-ratio: 1 / 1;
    padding: 30px 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 10px 22px rgba(53,10,14,0.12);
}
.note::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 2px 0 rgba(53,10,14,0.35);
}
.note strong { font-family: var(--display); font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 19px; line-height: 1.02; display: block; margin-bottom: 8px; }
.note span { font-size: 15px; line-height: 1.4; }
.note:nth-child(4n+1) { background: var(--oxblood); color: var(--blush); transform: rotate(-2deg); }
.note:nth-child(4n+2) { background: var(--blush); color: var(--oxblood); transform: rotate(1.5deg); }
.note:nth-child(4n+3) { background: var(--lavender); color: var(--oxblood); transform: rotate(-1deg); }
.note:nth-child(4n+4) { background: var(--red); color: var(--blush); transform: rotate(2deg); }
.note:nth-child(4n+4)::before { background: var(--oxblood); }
.note:nth-child(4n+4) span { font-size: 18px; font-weight: 700; }

/* ---------- Reviews ---------- */
.rec-badge { display: inline-block; margin-right: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; background: var(--oxblood); color: var(--blush); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { background: var(--lavender); border-radius: 20px; padding: 30px 28px 26px; display: flex; flex-direction: column; gap: 20px; position: relative; }
.review::before { content: "“"; font-family: var(--accent); font-style: italic; font-weight: 600; font-size: 64px; line-height: 0.6; color: var(--red); height: 22px; }
.review blockquote { font-size: 17px; line-height: 1.55; }
.review figcaption { margin-top: auto; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-70); }
.review figcaption strong { display: block; font-family: var(--body); font-size: 16px; letter-spacing: 0; text-transform: none; font-weight: 700; color: var(--oxblood); }
.reviews-more { margin-top: 32px; text-align: center; }
.reviews-more a { font-weight: 700; color: var(--oxblood); }
.reviews-more a:hover { color: var(--red); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; }
.faq-list details, .faq details { border-bottom: 1px solid var(--line); }
.faq-list summary, .faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    font-family: var(--body);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font-family: var(--mono); font-size: 24px; color: var(--red); transition: transform 0.2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--ink-70); padding: 0 40px 24px 0; }
.faq-list details p a { color: var(--oxblood); font-weight: 700; }

/* ---------- CTA ---------- */
.cta { background: var(--blush); text-align: center; }
.cta h2 { font-size: clamp(36px, 6vw, 60px); margin: 18px auto 22px; max-width: 16ch; }
.cta p { color: var(--ink-70); max-width: 560px; margin: 0 auto 36px; font-size: 18px; }
.cta-email { display: block; margin-top: 20px; font-weight: 600; text-decoration: none; color: var(--oxblood); }
.cta-email:hover { color: var(--red); }
.signoff { margin-top: 44px; font-family: var(--accent); font-style: italic; font-weight: 600; font-variation-settings: "opsz" 144; font-size: 24px; }
.signoff .mono { display: block; margin-top: 6px; font-style: normal; color: var(--ink-70); }

/* ---------- Footer ---------- */
footer, footer.site-footer { background: var(--oxblood); color: var(--blush-70); padding: 64px 0 34px; font-size: 15px; }
footer a { text-decoration: none; color: var(--blush-70); }
footer a:hover { color: var(--blush); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-grid h3 { font-family: var(--mono); font-stretch: 100%; font-weight: 500; font-size: 12px; letter-spacing: 0.14em; color: var(--blush); margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid .logo { color: var(--blush); margin-bottom: 14px; }
.footer-grid p { max-width: 320px; }
.pull, .signoff, .definition, .footer-tag, .project .tagline { letter-spacing: 0.005em; }
.footer-tag { font-family: var(--accent); font-style: italic; font-weight: 600; font-size: 20px; color: var(--blush); margin-top: 6px; }
.footer-base { border-top: 1px solid var(--blush-line); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Service pages ---------- */
.page-hero { background: var(--blush); padding: 36px 0 88px; }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-70); margin-bottom: 64px; }
.crumbs a { text-decoration: none; color: var(--oxblood); }
.crumbs a:hover { color: var(--red); }
.crumbs span[aria-hidden] { margin: 0 10px; }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 60px); margin: 22px 0 24px; max-width: 17ch; }
.page-hero .lede { margin-bottom: 36px; max-width: 640px; }

.prose p { color: var(--ink-70); font-size: 18px; margin-bottom: 18px; }
.prose p strong { color: var(--oxblood); }
.prose h2 { margin: 18px 0 26px; }
.prose a { color: var(--oxblood); font-weight: 700; }
.definition {
    background: var(--lavender);
    border-left: 4px solid var(--red);
    border-radius: 0 16px 16px 0;
    padding: 20px 24px;
    margin: 8px 0 28px;
    font-family: var(--accent);
    font-style: italic;
    font-weight: 600;
    font-variation-settings: "opsz" 144;
    font-size: 22px;
    line-height: 1.35;
    color: var(--oxblood) !important;
}
.check-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBE3DE' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--paper); border-radius: 18px; padding: 30px 28px; }
.card h3 { margin-bottom: 12px; font-size: 20px; }
.card p { color: var(--ink-70); font-size: 16px; }
.uses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.use { background: var(--paper); border-radius: 18px; padding: 28px 26px; }
.use h3 { font-size: 19px; margin-bottom: 10px; }
.use p { color: var(--ink-70); font-size: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.creds { background: var(--oxblood); color: var(--blush); border-radius: 22px; padding: 36px; }
.creds .eyebrow { color: var(--blush); }
.creds ul { list-style: none; margin-top: 16px; }
.creds li { padding: 16px 0; border-bottom: 1px solid var(--blush-line); color: var(--blush-70); font-size: 16px; }
.creds li:last-child { border-bottom: none; }
.creds li strong { display: block; color: var(--blush); font-weight: 700; }
.compare { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 18px; overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 16px; vertical-align: top; }
.compare th { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; background: var(--oxblood); color: var(--blush); }
.compare td { color: var(--ink-70); }
.compare td:first-child { color: var(--oxblood); font-weight: 700; }
.compare tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px; text-decoration: none; transition: border-color 0.2s ease; }
.related a:hover { border-color: var(--oxblood); }
.related h3 { font-size: 20px; margin-bottom: 10px; }
.related p { color: var(--ink-70); font-size: 16px; }
.related .go { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--red); }

/* ---------- Projects page ---------- */
.page-head { background: var(--blush); padding: 88px 0 80px; }
.page-head h1 { font-size: clamp(46px, 7vw, 72px); margin: 22px 0 24px; }
.page-head p { font-size: 19px; color: var(--ink-70); max-width: 620px; }
.project { padding: 96px 0; }
.project.alt { background: var(--blush); }
.project-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.project-intro.reverse > figure { order: -1; }
.project-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.pill.status { background: var(--oxblood); color: var(--blush); }
.project h2 { font-size: clamp(36px, 5vw, 52px); }
.project .tagline { font-family: var(--accent); font-style: italic; font-weight: 600; font-variation-settings: "opsz" 144; font-size: 26px; line-height: 1.2; margin: 12px 0 20px; }
.project-copy p { color: var(--ink-70); margin-bottom: 16px; }
.project-copy .tagline { color: var(--oxblood); }
.project-link { margin-top: 10px; }
.shot { border-radius: 18px; overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(53,10,14,0.10); }
.shot img { width: 100%; height: auto; }
figure figcaption { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-70); margin-top: 14px; line-height: 1.5; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; }
.project.alt .feature { background: var(--paper); border-color: transparent; }
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { color: var(--ink-70); font-size: 16px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px; }
.stack { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.stack ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.stack li { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--chambray); }
.more { background: var(--oxblood); color: var(--blush); text-align: center; }
.more h2 { color: var(--blush); font-size: clamp(36px, 6vw, 56px); margin: 18px auto 20px; max-width: 15ch; }
.more h2 em { color: var(--blush); }
.more p { color: var(--blush-70); max-width: 560px; margin: 0 auto 34px; font-size: 18px; }
.more .eyebrow { color: var(--blush); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.contact-grid .section-head { margin-bottom: 0; }
.contact-alt { font-weight: 600; }
.contact-alt a { color: var(--oxblood); }
.contact-form { background: var(--lavender); border-radius: 24px; padding: 36px; display: grid; gap: 18px; color: var(--oxblood); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-form .opt { text-transform: none; letter-spacing: 0; color: var(--ink-70); }
.contact-form input, .contact-form select, .contact-form textarea {
    font-family: var(--body); font-size: 17px; letter-spacing: 0; text-transform: none;
    color: var(--oxblood); background: var(--paper);
    border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 1px; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 700px) { .field-row { grid-template-columns: 1fr; } .contact-form { padding: 26px 20px; } .contact-form .btn { justify-self: stretch; justify-content: center; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .btn .arrow { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 0; }
    .hero-copy { padding-bottom: 48px; }
    .portrait { max-width: 520px; aspect-ratio: 1 / 1; }
    .folders { grid-template-columns: 1fr 1fr; row-gap: 52px; }
    .industry-grid, .review-grid, .cards, .related, .features { grid-template-columns: 1fr 1fr; }
    .about-grid, .split, .project-intro { grid-template-columns: 1fr; gap: 44px; }
    .project-intro.reverse > figure { order: 0; }
    .headshot { max-width: 420px; }
    .notes { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    body { font-size: 17px; }
    .wrap { padding: 0 18px; }
    .nav-links a:not(.btn) { display: none; }
    .nav-links .btn { padding: 9px 16px; }
    .hero-actions .btn { white-space: normal; }
    nav .wrap { height: 64px; }
    .logo { font-size: 15px; min-width: 0; }
    section, .project { padding: 64px 0; }
    .hero { padding-top: 44px; }
    .services-grid, .industry-grid, .review-grid, .cards, .related, .features, .uses, .gallery, .check-list, .folders { grid-template-columns: 1fr; }
    .folder { min-height: 0; }
    .service { padding: 32px 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-base { flex-direction: column; }
    .page-head { padding: 60px 0 56px; }
    .creds { padding: 28px 22px; }
}
@media (max-width: 520px) {
    .notes { grid-template-columns: 1fr; gap: 22px; }
    .note { aspect-ratio: auto; min-height: 150px; }
}

/* ---------- Home hero: "clutter" layout ---------- */
.clutter-hero { position: relative; padding: 0; min-height: min(920px, 100vh); display: grid; place-items: center; overflow: hidden; }
.ch-copy { position: relative; z-index: 2; text-align: center; padding-top: 150px; padding-bottom: 150px; max-width: 900px; }
.ch-eyebrow { color: var(--red) !important; }
.ch-title { font-size: clamp(38px, 9.4vw, 96px); line-height: .95; margin: 22px auto 26px; max-width: none; }
.ch-title .line { white-space: nowrap; }
.ch-title .line { display: inline-block; opacity: 0; transform: translateY(22px); animation: lineIn .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 140ms + 100ms); }
.ch-title .acc { display: block; }
.ch-title em { font-size: 1.12em; line-height: 1; }
@keyframes lineIn { to { opacity: 1; transform: none; } }
.ch-lede { margin: 0 auto 34px; max-width: 640px; font-size: 20px; }
.ch-cta { display: inline-flex; align-items: center; gap: 14px; position: relative; }
.scribble { position: absolute; left: calc(100% + 10px); top: -16px; display: flex; flex-direction: column; color: var(--oxblood); text-align: left; white-space: nowrap; }
.scribble svg { color: var(--red); margin-left: -6px; }
.scribble path { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .9s ease forwards 1.6s; }
.scribble em { opacity: 0; animation: lineIn .6s ease forwards 2.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.badge { cursor: default; }
.scribble em { font-family: var(--accent); font-style: italic; font-weight: 600; font-size: 18px; line-height: 1.05; transform: rotate(4deg); display: block; margin-top: 2px; }
.ch-fine { margin-top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-70); }

.clutter { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cl { position: absolute; left: var(--x); top: var(--y); max-width: 240px; pointer-events: auto; cursor: pointer;
      --px: 0px; --py: 0px;
      transform: translate(var(--px), var(--py)) rotate(var(--r));
      transition: transform .6s cubic-bezier(.2,.7,.2,1);
      opacity: 0;
      animation: clIn .9s cubic-bezier(.2,.9,.25,1.2) forwards, drift calc(6s + var(--d) * .7s) ease-in-out infinite;
      animation-delay: calc(var(--d) * 140ms + 450ms), calc(var(--d) * -1.1s); }
.cl:hover { z-index: 3; }
.cl:hover > * { scale: 1.04; }
.cl > * { transition: scale .25s ease; }
@keyframes clIn { 0% { opacity: 0; scale: .6; } 70% { opacity: 1; scale: 1.04; } 100% { opacity: 1; scale: 1; } }
@keyframes drift { 0%, 100% { translate: 0 0; rotate: 0deg; } 33% { translate: 4px -9px; rotate: .8deg; } 66% { translate: -3px -4px; rotate: -.6deg; } }
/* Tossed: tap a card, or "Book" clears them all */
.cl.gone { animation: toss .75s cubic-bezier(.55,0,.75,.2) forwards !important; pointer-events: none; }
@keyframes toss { 0% { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; } 25% { translate: calc(var(--tx, 60px) * -.15) -24px; } 100% { opacity: 0; translate: var(--tx, 60px) 120vh; rotate: var(--tr, 40deg); scale: .9; } }
.done-msg { margin-top: 18px; font-family: var(--accent); font-style: italic; font-weight: 600; font-size: 24px; color: var(--red); animation: lineIn .5s ease forwards; }
.clutter-hero.cleared .scribble { opacity: 0; transition: opacity .3s; }
.cl .mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-70); display: block; }
.cl, .cl b { color: var(--oxblood); }

.note { width: 170px; height: 170px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 16px 30px -18px rgba(53,10,14,.5); }
.note em { color: var(--oxblood); font-family: var(--accent); font-style: italic; font-weight: 600; font-size: 22px; line-height: 1.1; }
.note.lav { background: var(--lavender); }
.note.red { background: var(--red); }
.note.red .mono, .note.red em { color: var(--blush) !important; }
.note.blank { background: var(--white); height: 150px; }
.pin::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 2px 3px rgba(53,10,14,.35); }
.note.red.pin::before { background: var(--oxblood); }

.tabs { width: 220px; display: grid; gap: 0; }
.tabs span { display: block; font-size: 13px; padding: 9px 12px; border-radius: 8px 8px 0 0; background: var(--lavender); box-shadow: 0 8px 18px -12px rgba(53,10,14,.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs .w { background: var(--white); margin-left: 8px; }
.tabs .b { background: var(--chambray); margin-left: 16px; }
.tabs .dk { background: var(--oxblood); color: var(--blush) !important; border-radius: 0 0 8px 8px; margin-left: 16px; }

.cal { width: 220px; background: var(--white); border-radius: 12px; padding: 12px 14px; box-shadow: 0 16px 30px -18px rgba(53,10,14,.5); display: grid; gap: 8px; }
.cal .row { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: center; }
.cal .row b { font-size: 13px; font-weight: 600; background: var(--blush); border-left: 3px solid var(--red); padding: 6px 8px; border-radius: 4px; }
.cal .row b.lav { background: var(--lavender); border-left-color: var(--oxblood); }

.file { width: 230px; background: var(--white); border-radius: 12px; padding: 12px 14px; box-shadow: 0 16px 30px -18px rgba(53,10,14,.5); display: grid; gap: 6px; }
.file b { font-size: 14px; word-break: break-all; }
.file .bar { display: block; height: 6px; border-radius: 99px; background: var(--blush); overflow: hidden; }
.file .bar i { display: block; height: 100%; background: var(--red); }

.text { background: var(--oxblood); color: var(--blush) !important; border-radius: 14px; padding: 10px 16px 12px; font-size: 14px; max-width: 260px; box-shadow: 0 16px 30px -18px rgba(53,10,14,.6); }
.text .mono { color: var(--blush-70); }

.saved, .doc { display: flex; gap: 10px; align-items: center; background: var(--white); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.35; width: 250px; max-width: 250px; box-shadow: 0 16px 30px -18px rgba(53,10,14,.5); }
.saved .heart { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--red); color: var(--blush); display: grid; place-items: center; font-size: 13px; }
.doc { width: 220px; }
.doc .ic { flex: none; width: 30px; height: 36px; border-radius: 4px; background: var(--lavender); clip-path: polygon(0 0, 70% 0, 100% 26%, 100% 100%, 0 100%); }
.doc b { font-size: 14px; display: block; }

.todo { width: 200px; background: var(--white); border-radius: 12px; padding: 12px 14px; box-shadow: 0 16px 30px -18px rgba(53,10,14,.5); display: grid; gap: 5px; font-size: 13px; }
.todo label { display: flex; align-items: center; gap: 8px; }
.todo label i { width: 12px; height: 12px; border: 1.5px solid var(--oxblood); border-radius: 3px; flex: none; }
.todo label.done { text-decoration: line-through; color: var(--red); }
.todo label.done i { background: var(--red); border-color: var(--red); }

.badge { width: 130px; height: 130px; max-width: none; filter: drop-shadow(0 10px 18px rgba(53,10,14,.3)); }
.spin-ring { transform-origin: 120px 120px; animation: spin 18s linear infinite !important; }
@keyframes spin { to { transform: rotate(360deg); } }

.ticker { background: var(--red); color: var(--blush); overflow: hidden; padding: 14px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker span { font-family: var(--display); font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 20px; letter-spacing: -.01em; white-space: nowrap; padding-right: 22px; }
.ticker em { font-family: var(--accent); font-style: italic; font-weight: 600; padding-left: 18px; color: var(--oxblood); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Make room for the copy on mid-size screens */
@media (max-width: 1280px) {
    .cl { scale: .86; }
    .tabs, .file { display: none; }
}
@media (min-width: 1101px) { .ch-title { font-size: min(6.6vw, 104px); } }
@media (max-width: 1100px) { .cal { display: none; } }
@media (max-width: 900px) {
    .scribble { position: static; margin-top: 10px; align-items: center; text-align: center; }
    .scribble svg { display: none; }
    .ch-cta { flex-direction: column; }
    .note.red { --y: 80% !important; }
    .ch-copy { padding-top: 230px; padding-bottom: 210px; }
    .badge { display: none; }
}
@media (max-width: 1024px) {
    .text, .doc, .todo, .note.blank { display: none; }
    .note.lav { --x: 3% !important; --y: 6% !important; }
    .cal { --y: 70% !important; }
}
@media (max-width: 760px) {
    .clutter-hero { min-height: 0; }
    .ch-copy { padding-top: 150px; padding-bottom: 170px; padding-left: 18px; padding-right: 18px; }
    .ch-eyebrow { font-size: 11px !important; letter-spacing: .1em !important; }
    .ch-lede { font-size: 18px; }
    .scribble { position: static; margin-top: 10px; align-items: center; text-align: center; }
    .scribble svg { display: none; }
    .ch-cta { flex-direction: column; }
    .cal, .badge { display: none; }
    .cl { scale: .62; }
    .note.lav { --x: -4% !important; --y: 1% !important; }
    .saved { --x: 36% !important; --y: 3% !important; }
    .note.red { --x: 68% !important; --y: 84% !important; }
    .file { display: block; --x: -6% !important; --y: 87% !important; }
}
@media (prefers-reduced-motion: reduce) {
    .ch-title .line, .cl { animation: none; opacity: 1; transform: rotate(var(--r)); }
    .cl.gone { animation: none !important; opacity: 0; transition: opacity .2s; }
    .scribble path, .scribble em { animation: none; stroke-dashoffset: 0; opacity: 1; }
    .spin-ring, .ticker-track { animation: none !important; }
}
