/* ==========================================================================
   Launch Local — Editorial Studio Theme
   ========================================================================== */
/* Fonts are preconnected and linked from <head> — an @import here would block
   rendering until this stylesheet parsed before it even requested them. */

:root {
    --ink: #191d1e;
    --ink-muted: rgba(25, 29, 30, 0.62);
    --ink-faint: rgba(25, 29, 30, 0.34);

    --paper: #fdfbf7;
    --paper-alt: #f0ece3;
    --paper-white: #ffffff;

    --surface-dark: #191d1e;
    --on-dark: #fdfbf7;
    --on-dark-muted: rgba(253, 251, 247, 0.62);

    --accent: #df4b18;
    --accent-deep: #df4b18;
    --accent-soft: rgba(223, 75, 24, 0.10);

    --line: rgba(25, 29, 30, 0.14);
    --line-dark: rgba(253, 251, 247, 0.16);

    --shadow-soft: 0 20px 50px rgba(25, 29, 30, 0.10);
    --shadow-dark: 0 25px 60px rgba(0, 0, 0, 0.35);

    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 28px;
    --radius: 14px;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;

    /* Single source of truth for the fixed header height — anchor offsets and
       the mobile menu position both derive from it. */
    --header-h: 88px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--ink);
    overflow-x: hidden;
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

section[id] {
    scroll-margin-top: calc(var(--header-h) + 12px);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    padding: 0.85rem 1.4rem;
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
    left: 0;
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--accent-deep);
    outline-offset: 3px;
    border-radius: 2px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-head {
    max-width: 680px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 1.1rem;
}

.section-eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--ink-muted);
    line-height: 1.7;
}

/* ==========================================================================
   Scroll animations
   ========================================================================== */

/* Base: everything starts invisible and shifted down */
.animate-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fired state — all elements land at their natural position */
.animate-element.animate-in {
    opacity: 1;
    transform: none;
}

/* Section heads: rise from a little further, slower */
.section-head.animate-element {
    transform: translateY(28px);
    transition-duration: 1s;
}

/* Project rows: alternate slide-in direction for a dynamic feel */
.project-row:nth-child(odd).animate-element:not(.animate-in)  { transform: translateX(-48px) translateY(20px); }
.project-row:nth-child(even).animate-element:not(.animate-in) { transform: translateX(48px) translateY(20px); }
.project-row { transition-duration: 0.95s; }
.project-row:nth-child(1).animate-in { transition-delay: 0.05s; }
.project-row:nth-child(2).animate-in { transition-delay: 0.18s; }
.project-row:nth-child(3).animate-in { transition-delay: 0.31s; }

/* About: pillars stagger across, team cards stagger down */
.about-pillar:nth-child(1).animate-in { transition-delay: 0.05s; }
.about-pillar:nth-child(2).animate-in { transition-delay: 0.15s; }
.about-pillar:nth-child(3).animate-in { transition-delay: 0.25s; }
.team-member:nth-child(1).animate-in { transition-delay: 0.05s; }
.team-member:nth-child(2).animate-in { transition-delay: 0.15s; }
.team-member:nth-child(3).animate-in { transition-delay: 0.25s; }

/* SEO items: slide in from the right */
.seo-intro-col.animate-element:not(.animate-in) { transform: translateX(-40px); }
.seo-list-item.animate-element:not(.animate-in)  { transform: translateX(40px); }
.seo-list-item:nth-child(1).animate-in { transition-delay: 0.08s; }
.seo-list-item:nth-child(2).animate-in { transition-delay: 0.2s;  }
.seo-list-item:nth-child(3).animate-in { transition-delay: 0.32s; }

/* Review cards: rise + subtle scale */
.review-card.animate-element:not(.animate-in) {
    transform: translateY(56px) scale(0.96);
    transition-duration: 1s;
}
.review-card:nth-child(1).animate-in { transition-delay: 0.05s; }
.review-card:nth-child(2).animate-in { transition-delay: 0.2s;  }
.review-card:nth-child(3).animate-in { transition-delay: 0.35s; }

/* Contact: split-slide — info from left, form from right */
.contact-info-panel.animate-element:not(.animate-in) { transform: translateX(-40px); }
.contact-form-panel.animate-element:not(.animate-in)  { transform: translateX(40px);  }
.contact-info-panel.animate-in { transition-delay: 0.08s; }
.contact-form-panel.animate-in { transition-delay: 0.22s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-33.333%); }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--ink);
    padding: 1.1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line);
}

nav {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 52px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo:hover .logo-img {
    opacity: 0.85;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    margin: -10px;
    background: none;
    border: none;
    -webkit-appearance: none;
    appearance: none;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(-45deg) translate(-8px, 7px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(45deg) translate(-7px, -6px); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    list-style: none;
}

.nav-links a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background: var(--accent-deep);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-deep);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    background: var(--paper);
    color: var(--ink);
    padding: 100px 2rem 0;
    min-height: 92vh;
    min-height: 92dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, var(--line) 1px, transparent 1px),
        linear-gradient(180deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(circle at 55% 35%, black 0%, transparent 70%);
    mask-image: radial-gradient(circle at 55% 35%, black 0%, transparent 70%);
    opacity: 0.7;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    top: -12%;
    right: -8%;
    width: 55vw;
    height: 55vw;
    max-width: 640px;
    max-height: 640px;
    background: var(--accent);
    opacity: 0.16;
    filter: blur(120px);
    border-radius: 50%;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
}

.hero-content {
    max-width: 780px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease backwards;
}

.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 600;
    letter-spacing: -1.5px;
    line-height: 1.08;
    margin-bottom: 1.75rem;
    animation: fadeInUp 0.9s ease 0.1s backwards;
}

.hero-title em {
    font-style: italic;
    color: var(--accent-deep);
    font-weight: 500;
}

.hero-slogan {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--ink-muted);
    max-width: 560px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.9s ease 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.9s ease 0.3s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
}

.btn-primary:hover {
    background: var(--accent-deep);
    color: #fff;
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent-deep);
    color: #fff;
}

.btn-accent:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.btn-text {
    background: transparent;
    color: var(--ink);
    padding: 1rem 0.25rem;
}

.btn-text span {
    transition: transform 0.3s ease;
}

.btn-text:hover {
    color: var(--accent-deep);
}

.btn-text:hover span {
    transform: translateX(4px);
}

.hero-marquee {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--line);
    overflow: hidden;
    padding: 1.5rem 0;
    /* Fade edges to transparent for a polished infinite feel */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.hero-marquee-track {
    display: flex;
    width: max-content;
    gap: 2rem;
    animation: marquee 36s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.hero-marquee-track .marquee-word {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--ink);
}

.hero-marquee-track .marquee-dot {
    font-size: 1.1rem;
    color: var(--accent-deep);
}

/* ==========================================================================
   About page — studio story + team
   ========================================================================== */
/* This is a page of its own rather than a section of the landing page, so it
   clears the fixed header itself instead of relying on scroll-margin. */
.about-page {
    padding: calc(var(--header-h) + 70px) 2rem 120px;
    background: var(--paper-alt);
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.about-pillar {
    background: var(--paper);
    padding: 2.5rem 2rem;
    transition: background 0.3s ease;
}

.about-pillar:hover {
    background: var(--paper-white);
}

.about-pillar-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--accent-deep);
    margin-bottom: 1rem;
}

.about-pillar h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    margin-bottom: 0.7rem;
}

.about-pillar p {
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--ink-muted);
}

/* ------------------------------------------------------- Meet the team */
.team-head {
    max-width: 680px;
    margin: 6rem auto 3.5rem;
    text-align: center;
}

.team-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.4px;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.team-subtitle {
    font-size: 1.05rem;
    color: var(--ink-muted);
    line-height: 1.7;
}

.team-list {
    display: grid;
    gap: 1.75rem;
    max-width: 1100px;
    margin: 0 auto;
}

.team-member {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.75rem;
    align-items: start;
    padding: 2.75rem;
    background: var(--paper-white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.team-member:hover {
    border-color: rgba(25, 29, 30, 0.22);
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

/* The frame is square and the photo fills it, so a headshot of any aspect
   ratio can be dropped in later without redoing the layout. */
.team-member-media {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--paper-alt);
}

.team-member-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-member-role {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 0.85rem;
}

.team-member-role::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.team-member-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.team-member-bio {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--ink-muted);
}

.team-member-creds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem 2.5rem;
    margin-top: 1.9rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}

.cred-heading {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 1rem;
}

.cred-list {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.cred-list li {
    position: relative;
    padding-left: 1.1rem;
}

.cred-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.cred-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ink);
}

.cred-meta {
    display: block;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--ink-muted);
    margin-top: 0.15rem;
}

/* The landing page ends at the contact form; this page needs its own way
   back to it. */
.about-cta {
    max-width: 1100px;
    margin: 4rem auto 0;
    padding: 3rem 2.5rem;
    text-align: center;
    background: var(--surface-dark);
    color: var(--on-dark);
    border-radius: var(--radius-lg);
}

.about-cta h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--on-dark);
    margin-bottom: 0.9rem;
}

.about-cta p {
    max-width: 520px;
    margin: 0 auto 1.9rem;
    color: var(--on-dark-muted);
    line-height: 1.75;
}

/* ==========================================================================
   Work Section — Project List
   ========================================================================== */
.work {
    padding: 120px 2rem;
    background: var(--paper-white);
}

.project-list {
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.project-row {
    display: grid;
    grid-template-columns: 70px 1fr 1fr;
    align-items: center;
    gap: 2.5rem;
    padding: 2.75rem 0;
    border-bottom: 1px solid var(--line);
    transition: background 0.3s ease;
}

.project-row:hover {
    background: var(--paper-alt);
}

.project-index {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--ink-faint);
    transition: color 0.3s ease;
}

.project-row:hover .project-index {
    color: var(--accent-deep);
}

.project-media {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--ink);
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-row:hover .project-media img {
    transform: scale(1.05);
}

.project-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-tag {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: var(--accent-soft);
    color: var(--accent-deep);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.project-body h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 0.75rem;
}

.project-body p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-muted);
    margin-bottom: 1.5rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid var(--ink);
    transition: all 0.3s ease;
}

.project-link svg {
    transition: transform 0.3s ease;
}

.project-link:hover {
    color: var(--accent-deep);
    border-color: var(--accent-deep);
}

.project-link:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   SEO Section
   ========================================================================== */
.seo-page {
    padding: 120px 2rem;
    background: var(--surface-dark);
    color: var(--on-dark);
}

.seo-page .section-eyebrow {
    color: var(--accent);
}

.seo-page .section-title {
    color: var(--on-dark);
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
}

.seo-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--on-dark-muted);
    margin-bottom: 2.5rem;
}

.seo-list {
    display: flex;
    flex-direction: column;
}

.seo-list-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line-dark);
}

.seo-list-item:first-child {
    padding-top: 0;
}

.seo-list-number {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--accent);
    flex-shrink: 0;
}

.seo-list-item h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--on-dark);
}

.seo-list-item p {
    color: var(--on-dark-muted);
    line-height: 1.65;
    font-size: 0.98rem;
}
/* ==========================================================================
   Form Elements (shared by Contact form)
   ========================================================================== */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    color: var(--ink-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 0.25rem;
    border: none;
    border-bottom: 2px solid var(--line);
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: transparent;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-deep);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-button {
    padding: 1rem 2.25rem;
    background: var(--ink);
    color: var(--paper);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    align-self: flex-start;
    -webkit-appearance: none;
    appearance: none;
}

.submit-button:hover {
    background: var(--accent-deep);
    color: #fff;
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    display: none;
    font-size: 0.92rem;
    line-height: 1.6;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-top: 0.25rem;
}

.form-status--success {
    display: block;
    background: rgba(22, 163, 74, 0.08);
    color: #14532d;
    border: 1px solid rgba(22, 163, 74, 0.28);
}

.form-status--error {
    display: block;
    background: rgba(223, 75, 24, 0.08);
    color: var(--accent-deep);
    border: 1px solid rgba(223, 75, 24, 0.25);
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */
.reviews-page {
    padding: 120px 2rem;
    background: var(--surface-dark);
    color: var(--on-dark);
}

.reviews-page .section-eyebrow,
.reviews-page .section-title,
.reviews-page .section-subtitle {
    color: var(--on-dark);
}

.reviews-page .section-eyebrow {
    color: var(--accent);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
}

.review-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 2px;
    padding: 2.75rem 2.25rem 2.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
}

.review-quote-mark {
    font-family: var(--font-display);
    font-size: 6rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.35;
    position: absolute;
    top: 0.5rem;
    left: 1.75rem;
    pointer-events: none;
    user-select: none;
}

.review-stars {
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 0.12em;
    margin-top: 1.75rem;
}

.review-text {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(253, 251, 247, 0.8);
    font-style: italic;
    flex: 1;
}

.review-author {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
}

.review-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--on-dark);
    letter-spacing: 0.01em;
}

.review-business {
    font-size: 0.82rem;
    color: var(--accent);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-page {
    padding: 120px 2rem;
    background: var(--paper);
}

.contact-card {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.contact-info-panel {
    color: var(--on-dark);
    padding: 3.5rem 3rem;
    background: var(--surface-dark);
}

.contact-info-panel h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--on-dark);
}

.contact-info-lead {
    color: var(--on-dark-muted);
    margin-bottom: 2.25rem;
    line-height: 1.7;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.contact-info-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line-dark);
    color: var(--on-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info-row:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}

.contact-info-icon {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
}

.contact-response-note {
    font-size: 0.9rem;
    color: var(--on-dark-muted);
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-dark);
}

.contact-form-panel {
    background: var(--paper-white);
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--surface-dark);
    color: var(--on-dark-muted);
    padding: 3rem 2rem 2rem;
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-dark);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    background: var(--paper);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.7rem;
    transition: opacity 0.3s ease;
}

.footer-logo-link:hover {
    opacity: 0.85;
}

.footer-logo-img {
    height: 52px;
    width: auto;
    display: block;
}

.footer-nav {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--on-dark-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-copy {
    width: 100%;
    font-size: 0.82rem;
    color: var(--on-dark-muted);
    border-top: 1px solid var(--line-dark);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* ==========================================================================
   Hero location line
   ========================================================================== */
.hero-locations {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.5rem;
    margin: -1.25rem 0 2.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--ink);
    animation: fadeInUp 0.9s ease 0.25s backwards;
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-location::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.hero-location--muted {
    color: var(--ink-muted);
    font-weight: 500;
}

.hero-location--muted::before {
    background: var(--ink-faint);
}

/* ==========================================================================
   Industry starting points (template cards)
   ========================================================================== */
.template-head {
    max-width: 680px;
    margin: 5rem auto 2.5rem;
    text-align: center;
}

.template-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 0.75rem;
}

.template-sub {
    color: var(--ink-muted);
    line-height: 1.7;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    max-width: 1100px;
    margin: 0 auto;
}

.template-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--paper);
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.template-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    border-color: transparent;
}

.template-card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--paper-alt);
}

.template-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.template-card:hover .template-card-media img {
    transform: scale(1.06);
}

.template-card-media--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--paper-alt) 0%, #e3ddd0 100%);
    font-size: 3rem;
}

.template-card-body {
    padding: 1.5rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.template-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 0.28rem 0.8rem;
    background: var(--accent-soft);
    color: var(--accent-deep);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.template-card-body h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.template-card-body p {
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--ink-muted);
    margin-bottom: 1.25rem;
    flex: 1;
}

.template-link {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--accent-deep);
}

.template-link span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.template-card:hover .template-link span {
    transform: translateX(4px);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    padding: 120px 2rem;
    background: var(--paper);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.service-card {
    background: var(--paper);
    padding: 2.5rem 2rem;
    transition: background 0.3s ease;
}

.service-card:hover {
    background: var(--paper-white);
}

.service-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--accent-deep);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    margin-bottom: 0.7rem;
}

.service-card p {
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--ink-muted);
}

.services-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 3.5rem auto 0;
    padding: 2.75rem;
    background: var(--surface-dark);
    color: var(--on-dark);
    border-radius: var(--radius-lg);
}

.services-footer h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--on-dark);
    margin-bottom: 1.25rem;
}

.included-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 1.5rem;
}

.included-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--on-dark-muted);
}

.included-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.services-quote p {
    color: var(--on-dark-muted);
    line-height: 1.75;
    margin-bottom: 1.75rem;
}

/* ==========================================================================
   Review invitation
   ========================================================================== */
.review-invite {
    max-width: 640px;
    margin: 3.5rem auto 0;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
}

.review-invite > p {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--on-dark);
    margin-bottom: 1.5rem;
}

.review-invite-note {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--on-dark-muted);
}

/* ==========================================================================
   Contact form additions
   ========================================================================== */
.form-consent {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--ink-muted);
    margin: 0.25rem 0 0.75rem;
}

.form-consent a {
    color: var(--accent-deep);
}

/* Honeypot — kept out of view but not display:none, which some bots detect. */
.form-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form-panel {
    position: relative;
}

/* ==========================================================================
   Footer additions
   ========================================================================== */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.footer-tagline {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--on-dark-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        max-width: 900px;
    }

    .hero-title {
        font-size: 3.6rem;
    }

    .seo-grid {
        gap: 2.5rem;
    }

    .review-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .seo-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 80px;
    }

    .logo-img {
        height: 44px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: var(--header-h);
        left: 0;
        width: 100%;
        background: var(--paper);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-top: 1px solid var(--line);
    }

    .nav-links.active {
        max-height: 520px;
        padding: 1rem 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--line);
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
    }

    .nav-links a::after {
        display: none;
    }

    .hero {
        padding: 130px 1.5rem 0;
        min-height: 88vh;
        min-height: 88dvh;
    }

    .hero-title {
        font-size: 2.6rem;
        letter-spacing: -1px;
    }

    .hero-slogan {
        font-size: 1.05rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .btn {
        justify-content: center;
    }

    .hero-marquee-track .marquee-word {
        font-size: 1.1rem;
    }

    .work,
    .seo-page,
    .reviews-page,
    .contact-page {
        padding: 80px 1.5rem;
    }

    .review-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2.1rem;
    }

    .section-subtitle {
        font-size: 1.05rem;
    }

    .project-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 0;
    }

    .contact-card {
        grid-template-columns: 1fr;
        border-radius: var(--radius-md);
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 2.25rem 1.75rem;
    }

    .form-row-split {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .submit-button {
        width: 100%;
        justify-content: center;
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }
}


/* ==========================================================================
   Responsive — sections added after the original layout
   ========================================================================== */
@media (max-width: 1024px) {
    .services-grid,
    .template-grid,
    .about-pillars {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-member {
        grid-template-columns: 200px 1fr;
        gap: 2rem;
        padding: 2.25rem;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 80px 1.5rem;
    }

    .about-page {
        padding: calc(var(--header-h) + 40px) 1.5rem 80px;
    }

    .about-pillars {
        grid-template-columns: 1fr;
    }

    .team-head {
        margin-top: 4rem;
    }

    .team-title {
        font-size: 1.85rem;
    }

    /* The photo stops being a column and becomes a header for the card. */
    .team-member {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.75rem;
        border-radius: var(--radius-md);
    }

    .team-member-media {
        width: 148px;
    }

    /* The role now carries a discipline as well as a title, which is long
       enough to overflow a narrow card at the full tracking. */
    .team-member-role {
        letter-spacing: 1.4px;
    }

    .team-member-creds {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-cta {
        padding: 2.25rem 1.5rem;
        border-radius: var(--radius-md);
    }

    .about-cta .btn {
        width: 100%;
    }

    .services-grid,
    .template-grid {
        grid-template-columns: 1fr;
    }

    .template-head {
        margin-top: 3.5rem;
    }

    .services-footer {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem 1.5rem;
        border-radius: var(--radius-md);
    }

    .included-list {
        grid-template-columns: 1fr;
    }

    .services-quote .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-locations {
        gap: 0.45rem 1rem;
        font-size: 0.85rem;
    }

    .review-invite {
        padding: 2rem 1.5rem;
    }

    .review-invite .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-tagline {
        text-align: center;
    }
}

/* Reveal delays for the grids added above. */
.service-card:nth-child(1).animate-in,
.template-card:nth-child(1).animate-in { transition-delay: 0.05s; }
.service-card:nth-child(2).animate-in,
.template-card:nth-child(2).animate-in { transition-delay: 0.13s; }
.service-card:nth-child(3).animate-in,
.template-card:nth-child(3).animate-in { transition-delay: 0.21s; }
.service-card:nth-child(4).animate-in { transition-delay: 0.29s; }
.service-card:nth-child(5).animate-in { transition-delay: 0.37s; }
.service-card:nth-child(6).animate-in { transition-delay: 0.45s; }

/* ==========================================================================
   Reduced motion — honour the OS setting rather than animating regardless
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* The reveal script is skipped entirely in this mode, but guard anyway so
       nothing can be left stranded at opacity 0. */
    .animate-element {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-marquee-track {
        animation: none;
        transform: none;
    }
}

/* ==========================================================================
   Simple content pages (privacy, 404, review)
   ========================================================================== */
.page-main {
    padding: calc(var(--header-h) + 70px) 2rem 100px;
    min-height: 70vh;
}

.page-inner {
    max-width: 760px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.page-lead {
    font-size: 1.05rem;
    color: var(--ink-muted);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.prose h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2.5rem 0 0.85rem;
}

.prose p,
.prose li {
    color: var(--ink-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.prose ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose a {
    color: var(--accent-deep);
}

.page-meta {
    font-size: 0.85rem;
    color: var(--ink-faint);
    padding-top: 2rem;
    margin-top: 2.5rem;
    border-top: 1px solid var(--line);
}

.page-center {
    text-align: center;
}

.page-center .page-code {
    font-family: var(--font-display);
    font-size: 6rem;
    line-height: 1;
    color: var(--accent-deep);
    margin-bottom: 1rem;
}

.page-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .page-main {
        padding: calc(var(--header-h) + 40px) 1.5rem 70px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-center .page-code {
        font-size: 4.5rem;
    }
}

/* ==========================================================================
   Review submission page
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.review-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.9rem;
    padding: 1.1rem 1.35rem;
    margin-bottom: 2.5rem;
    background: var(--paper-alt);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}

.review-identity-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-muted);
    width: 100%;
}

.review-identity strong {
    font-size: 1.05rem;
}

.review-identity span:not(.review-identity-label) {
    color: var(--accent-deep);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rating-field {
    border: none;
    margin-bottom: 1.75rem;
}

.rating-field legend {
    color: var(--ink-muted);
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Reverse row order so a CSS sibling selector can light up every star to the
   left of the hovered/checked one. */
.rating-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.3rem;
}

.rating-stars input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rating-stars label {
    cursor: pointer;
    font-size: 2.1rem;
    line-height: 1;
    color: var(--line);
    transition: color 0.15s ease, transform 0.15s ease;
}

.rating-stars label::before {
    content: '\2605';
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input:checked ~ label {
    color: var(--accent);
}

.rating-stars label:hover {
    transform: scale(1.12);
}

.rating-stars input:focus-visible + label {
    outline: 2px solid var(--accent-deep);
    outline-offset: 3px;
    border-radius: 2px;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--ink-faint);
    margin-top: 0.45rem;
    line-height: 1.5;
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0.5rem 0 1.75rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--ink-muted);
    cursor: pointer;
}

.consent-check input {
    margin-top: 0.3rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--accent-deep);
}

#reviewForm .submit-button {
    align-self: flex-start;
}

/* ==========================================================================
   Admin moderation console
   ========================================================================== */
.admin-wide {
    max-width: 900px;
}

.admin-panel {
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper-white);
}

.admin-panel h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.admin-inline {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-inline .form-group {
    flex: 1;
    min-width: 220px;
    margin-bottom: 0;
}

.admin-inline .submit-button {
    margin-top: 0;
}

.admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-head h2 {
    margin-bottom: 0;
}

.admin-filters {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.45rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--accent-deep);
    color: var(--accent-deep);
}

.filter-btn.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.invite-result {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.invite-url {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.invite-url input {
    flex: 1;
    min-width: 240px;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem;
    background: var(--paper-alt);
    color: var(--ink);
}

.invite-url .btn {
    padding: 0.7rem 1.4rem;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-card {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
}

.admin-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.admin-card-biz {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-deep);
    margin-top: 0.2rem;
}

.admin-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-card-stars {
    color: var(--accent);
    letter-spacing: 0.1em;
}

.admin-badge {
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-badge--pending  { background: rgba(223, 75, 24, 0.12); color: var(--accent-deep); }
.admin-badge--approved { background: rgba(22, 163, 74, 0.12); color: #14532d; }
.admin-badge--rejected { background: rgba(25, 29, 30, 0.10); color: var(--ink-muted); }

.admin-card-body {
    line-height: 1.75;
    color: var(--ink-muted);
    margin-bottom: 0.75rem;
    white-space: pre-wrap;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
}

.admin-action {
    padding: 0.45rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: transparent;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-action.is-approve:hover { background: #14532d; border-color: #14532d; color: #fff; }
.admin-action.is-reject:hover  { background: var(--ink-muted); border-color: var(--ink-muted); color: #fff; }
.admin-action.is-delete:hover  { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

/* ==========================================================================
   Client login link in the main nav
   ========================================================================== */
.nav-login a {
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.nav-login a::after {
    display: none;
}

.nav-login a:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

@media (max-width: 768px) {
    .nav-login a {
        border: none;
        border-radius: 0;
        padding: 1rem 2rem;
        color: var(--accent-deep);
    }

    .nav-login a:hover {
        background: transparent;
        color: var(--accent-deep);
    }
}

/* ---------------------------------------------------------- Signed-in nav
   Replaces the "Client Login" pill once a session is known. Written by
   js/site.js after /api/me answers, so this markup never ships in the
   cached HTML. */
.nav-account a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.3rem 0.9rem 0.3rem 0.35rem;
}

.nav-account-name {
    max-width: 11ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    border-radius: 50%;
    overflow: hidden;
    background: var(--accent);
    color: var(--paper-white);
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar--sm { width: 2rem;   height: 2rem;   font-size: 0.85rem; }
.avatar--lg { width: 5.5rem; height: 5.5rem; font-size: 2.1rem; }
