/* ── Variables ── */
:root {
    --navy:       #1A3A5C;
    --steel:      #2C6EAB;
    --amber:      #D4821A;
    --bg:         #F8F8F8;
    --bg-alt:     #F0F2F5;
    --bg-card:    #FFFFFF;
    --dark:       #1A1A2E;
    --muted:      #5A6474;
    --border:     #D8DCE2;
    --border-lt:  #E8EAEE;
    --white:      #FFFFFF;
    --green:      #28a745;
    --yellow:     #e6a817;
    --red:        #dc3545;
}

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

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

body {
    font-family: 'IBM Plex Sans', -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--dark);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* ── Header / Nav ── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 248, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 1px 8px rgba(26, 58, 92, 0.08);
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 78px;
}

.logo-link {
    display: block;
    text-decoration: none;
    line-height: 0;
    flex-shrink: 0;
}

.logo-link svg {
    height: 56px;
    width: auto;
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    position: relative;
}

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

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

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

/* Tools dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    cursor: pointer;
}

.nav-dropdown > a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 4px solid currentColor;
    margin-right: 5px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    min-width: 220px;
    padding: 0.5rem 0;
    z-index: 100;
    list-style: none;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--bg);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown-menu li a {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.nav-dropdown-menu li a::after {
    display: none !important;
}

.nav-dropdown-menu li a:hover {
    background: var(--light);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown:hover > a::before,
.nav-dropdown.open > a::before {
    transform: rotate(180deg);
}

.nav-cta {
    display: inline-block;
    background: var(--navy);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    border: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover {
    background: var(--steel) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

.nav-cta::after {
    display: none !important;
}

/* ── Mobile Nav ── */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── Hero ── */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem 5rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 1.75rem;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--amber);
    flex-shrink: 0;
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--navy);
    max-width: 780px;
    letter-spacing: -0.02em;
}

.hero h1 em {
    font-style: italic;
    color: var(--amber);
}

.hero-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: end;
    margin-top: 2.5rem;
}

.hero-body p {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.85;
    max-width: 560px;
}

.hero-cta {
    display: inline-block;
    margin-top: 2rem;
    background: var(--amber);
    color: var(--white);
    padding: 0.9rem 2.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(212, 130, 26, 0.2);
}

.hero-cta:hover {
    background: #C0741A;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 130, 26, 0.3);
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-shrink: 0;
    text-align: right;
}

.stat-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* ── Section Shared ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 1.5rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--amber);
    flex-shrink: 0;
}

/* ── Services ── */
#services {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem 6rem;
}

.services-header {
    max-width: 600px;
    margin-bottom: 3.5rem;
}

.services-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--border-lt);
    padding: 2.5rem 2rem;
    position: relative;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.service-card:hover {
    border-color: var(--amber);
    box-shadow: 0 4px 20px rgba(26, 58, 92, 0.06);
    transform: translateY(-3px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--border);
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.service-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.925rem;
    color: var(--muted);
    line-height: 1.8;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.5rem;
}

.service-tag {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--steel);
    background: rgba(44, 110, 171, 0.08);
    padding: 0.3rem 0.65rem;
}

/* ── Why Rob ── */
#about {
    background: var(--navy);
    padding: 6rem 2rem;
}

.about-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-text .section-label {
    color: var(--amber);
}

.about-text .section-label::before {
    background: var(--amber);
}

.about-text h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.about-text p strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.about-table {
    display: flex;
    flex-direction: column;
}

.table-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 2rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table-row:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.table-key {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.table-val {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

/* ── How It Works ── */
#process {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.process-header {
    max-width: 520px;
    margin-bottom: 3.5rem;
}

.process-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}

.process-step {
    padding: 2.5rem 2.5rem 2.5rem 2rem;
    position: relative;
    border-left: 1px solid var(--border);
}

.process-step:first-child {
    border-left: none;
    padding-left: 0;
}

.step-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--border);
    line-height: 1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.process-step h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.8;
}

/* ── CF Expertise ── */
#cfml {
    background: linear-gradient(135deg, #0F2840 0%, var(--navy) 50%, #1E4A70 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

#cfml::before {
    content: '<cf>';
    position: absolute;
    top: -20px;
    right: -30px;
    font-family: 'Courier New', monospace;
    font-size: 18rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
    pointer-events: none;
}

.cfml-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cfml-inner .section-label {
    color: var(--amber);
}

.cfml-inner .section-label::before {
    background: var(--amber);
}

.cfml-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.cfml-text h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.cfml-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.85;
    margin-bottom: 1rem;
}

.cfml-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(212, 130, 26, 0.12);
    border: 1px solid rgba(212, 130, 26, 0.25);
    padding: 0.65rem 1.1rem;
    margin-top: 1rem;
}

.cfml-badge-icon {
    width: 18px;
    height: 18px;
    fill: var(--amber);
    flex-shrink: 0;
}

.cfml-badge span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--amber);
    letter-spacing: 0.03em;
}

.cfml-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.cfml-detail-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
}

.cfml-detail-card h4 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.75rem;
}

.cfml-detail-card p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* ── Contact ── */
#contact {
    background: var(--navy);
    padding: 6rem 2rem;
}

.contact-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-text .section-label {
    color: var(--amber);
}

.contact-text .section-label::before {
    background: var(--amber);
}

.contact-text h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.contact-text > p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.85;
    margin-bottom: 2.5rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.contact-link {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.1rem 1.4rem;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-link:hover {
    border-color: var(--amber);
    box-shadow: 0 2px 8px rgba(212, 130, 26, 0.12);
}

.link-type {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.2rem;
}

.link-val {
    display: block;
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 500;
}

.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── Contact Form ── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.form-input,
.form-textarea,
.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.85rem 1rem;
    color: var(--white);
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 2px rgba(212, 130, 26, 0.15);
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='rgba(255,255,255,0.4)' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-select option {
    background: var(--navy);
    color: var(--white);
}

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

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--amber);
    color: var(--white);
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.95rem 2rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    width: 100%;
}

.form-submit:hover {
    background: #c0740f;
}

.form-submit:active {
    transform: scale(0.98);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-error {
    font-size: 0.85rem;
    color: #f87171;
    padding: 0.75rem 1rem;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
    display: none;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    gap: 1rem;
}

.form-success svg {
    width: 48px;
    height: 48px;
    stroke: var(--amber);
}

.form-success h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
}

.form-success p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.hp {
    display: none;
}

/* ── Availability & Region Cards ── */
.availability-card {
    background: var(--navy);
    padding: 2rem;
    color: var(--white);
}

.avail-tag {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 0.6rem;
}

.avail-status {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.avail-detail {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.75;
}

.region-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
}

.region-tag {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.4rem;
}

.region-name {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
}

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    background: var(--bg);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer p, footer a {
    font-size: 0.78rem;
    color: var(--muted);
    text-decoration: none;
}

footer a:hover {
    color: var(--amber);
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hero entrance ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.hero-eyebrow  { animation: fadeUp 0.6s ease 0.05s both; }
.hero h1       { animation: fadeUp 0.6s ease 0.15s both; }
.hero-body     { animation: fadeUp 0.6s ease 0.3s both; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-inner,
    .cfml-header,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .process-step {
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 2rem 0;
    }

    .process-step:first-child {
        border-top: none;
        padding-top: 0;
    }

    .cfml-details {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 680px) {
    .hero {
        padding: 4rem 1.5rem 3rem;
    }

    .hero-body {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-stats {
        flex-direction: row;
        text-align: left;
        gap: 2.5rem;
    }

    #services,
    #process,
    #contact {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    #about,
    #cfml {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .nav-links .nav-link-item {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    nav {
        position: relative;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 1.5rem 2rem;
        gap: 1rem;
        z-index: 99;
    }

    .nav-links.open .nav-link-item {
        display: block;
    }

    .nav-links.open .nav-cta {
        text-align: center;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--amber);
        border-radius: 0;
        min-width: 0;
        padding: 0.25rem 0 0.25rem 0.75rem;
        margin-top: 0.5rem;
    }

    .nav-dropdown-menu::before {
        display: none;
    }
}

@media (max-width: 420px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ── Recent Work ── */
#work {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.work-header {
    margin-bottom: 2.5rem;
}

.work-header p.section-intro {
    color: var(--muted);
    max-width: 600px;
    font-size: 15px;
    margin-top: 0.5rem;
}

.featured-project {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.featured-project:hover {
    border-color: var(--steel);
    box-shadow: 0 4px 20px rgba(26, 58, 92, 0.1);
}

.project-screenshots {
    background: #1A1A2E;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.project-shot {
    padding: 14px;
    text-align: center;
}

.project-shot.before {
    background: rgba(0, 0, 0, 0.15);
}

.project-shot.after {
    background: rgba(44, 110, 171, 0.1);
}

.shot-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.project-shot img {
    width: 100%;
    border-radius: 4px;
    display: block;
}

.project-body {
    padding: 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-type {
    font-size: 12px;
    font-weight: 600;
    color: var(--amber);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.project-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.project-body p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.project-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    background: var(--bg-alt);
    color: var(--muted);
    border-radius: 20px;
    border: 1px solid var(--border-lt);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--steel);
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: var(--amber);
}

.project-link svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 900px) {
    .featured-project {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    #work {
        padding: 3.5rem 1.5rem;
    }

    .project-body {
        padding: 1.5rem;
    }
}

/* ── Quiz ── */
#quiz {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-alt);
}

.quiz-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.quiz-header h2 {
    margin-bottom: 0.5rem;
}

.quiz-subheading {
    color: var(--muted);
    font-size: 1.05rem;
}

.quiz-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2.5rem;
}

.quiz-tab {
    border-radius: 9999px;
    padding: 10px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'IBM Plex Sans', sans-serif;
    cursor: pointer;
    border: 1px solid var(--navy);
    background: var(--white);
    color: var(--navy);
    transition: background 0.2s ease, color 0.2s ease;
}

.quiz-tab.active {
    background: var(--navy);
    color: var(--white);
}

.quiz-tab:hover:not(.active) {
    background: var(--bg-alt);
}

.quiz-panel {
    display: none;
}

.quiz-panel.active {
    display: block;
}

.quiz-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
    margin-bottom: 2rem;
}

.quiz-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--dark);
}

.quiz-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--navy);
    border-radius: 3px;
    background: var(--white);
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.quiz-item input[type="checkbox"]:checked {
    background: var(--navy);
    border-color: var(--navy);
}

.quiz-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.quiz-actions {
    text-align: center;
    margin-bottom: 1.5rem;
}

.quiz-score-btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--white);
    background: var(--navy);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.quiz-score-btn:hover {
    background: var(--steel);
    box-shadow: 0 2px 8px rgba(26, 58, 92, 0.2);
}

.quiz-result {
    display: none;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid transparent;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.quiz-result.visible {
    display: block;
}

.quiz-result.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.quiz-result.green {
    background: #d4edda;
    color: #155724;
    border-left-color: var(--green);
}

.quiz-result.yellow {
    background: #fff3cd;
    color: #856404;
    border-left-color: var(--yellow);
}

.quiz-result.red {
    background: #f8d7da;
    color: #721c24;
    border-left-color: var(--red);
}

.quiz-result-score {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.quiz-result-message {
    font-size: 1rem;
    line-height: 1.5;
}

.quiz-cta {
    display: inline-block;
    margin-top: 1rem;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: opacity 0.2s ease;
}

.quiz-cta:hover {
    opacity: 0.85;
}

.quiz-result.yellow .quiz-cta {
    background: #856404;
    color: #fff3cd;
}

.quiz-result.red .quiz-cta {
    background: #721c24;
    color: #f8d7da;
}

.quiz-footer-note {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    display: none;
}

.quiz-footer-note.visible {
    display: block;
}

@media (max-width: 680px) {
    #quiz {
        padding: 3.5rem 1.5rem;
    }

    .quiz-checklist {
        grid-template-columns: 1fr;
    }
}

/* ── Contact Success (initial hidden state) ── */
#contactSuccess {
    display: none;
}
