/* =========================================================
   RESET & BASE
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    line-height: 1.6;
    background: #F7F1E8;
    color: #252525;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

section[id] {
    scroll-margin-top: 80px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-dark);
    outline-offset: 3px;
}

/* Skip link: hidden until focused with the keyboard */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 2000;

    padding: 10px 16px;

    background: var(--text);
    color: var(--white);
    border-radius: var(--radius-small);

    font-size: 0.85rem;
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --background: #F7F1E8;
    --background-light: #EFE8DD;

    --text: #252525;
    --text-light: #66615B;

    --accent: #A6B59F;
    --accent-dark: #84947D;

    --white: #FFFFFF;
    --border: #DDD5C9;

    --radius-small: 10px;
    --radius-medium: 18px;

    --max-width: 1200px;
}


/* =========================================================
   GENERAL
========================================================= */

.container {
    width: min(90%, var(--max-width));
    margin: 0 auto;
}

.section {
    padding: 120px 0;
}

.section-light {
    background: var(--background-light);
}

.section-heading {
    max-width: 700px;
    margin-bottom: 60px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 20px;
}

.section-heading > p:last-child {
    color: var(--text-light);
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-dark);
    margin-bottom: 15px;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}


/* =========================================================
   NAVIGATION
========================================================= */

.navbar,
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar {
    background: rgba(248, 247, 244, 0.95);
}

.header {
    width: 100%;
    background: rgba(247, 241, 232, 0.96);
}

.nav-container {
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .nav-container {
    width: min(90%, var(--max-width));
    margin: 0 auto;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* "Book a Call" button — needs its own transition, otherwise
   ".nav-links a" above would override the .button transition */
.nav-links .nav-cta {
    padding: 10px 20px;
    font-size: 0.85rem;
    color: var(--white);
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease;
}

.nav-links .nav-cta:hover {
    color: var(--white);
}

.menu-button,
.menu-toggle {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text);
}

.menu-button {
    font-size: 1.5rem;
    line-height: 1;
    padding: 6px 10px;
    border-radius: var(--radius-small);
}

.menu-toggle {
    width: 42px;
    height: 42px;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
    border-radius: 2px;
}

/* Portfolio dropdown */

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1001;

    min-width: 220px;
    padding: 8px 0;

    flex-direction: column;

    background: #F7F1E8;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    white-space: nowrap;
    font-size: 0.85rem;
}

.dropdown-menu a:hover {
    background: rgba(166, 181, 159, 0.2);
    color: var(--accent-dark);
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 24px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;

    transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--text);
    color: var(--white);
}

.button-primary:hover {
    background: var(--accent-dark);
}

.button-secondary {
    background: transparent;
    border-color: var(--border);
}

.button-secondary:hover {
    background: var(--white);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

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

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 0.95;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-description {
    max-width: 620px;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.availability {
    font-size: 0.85rem;
    color: var(--text-light);
}

.hero-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-avatar img {
    width: min(350px, 100%);
    height: auto;
}


/* =========================================================
   CAPABILITIES
========================================================= */

.capabilities {
    padding: 100px 0;
    background: var(--text);
    color: var(--white);
}

.capabilities .eyebrow {
    color: var(--accent);
}

.capabilities .section-heading {
    max-width: 750px;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.capability-card {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-medium);
    transition: transform 0.2s ease, background 0.2s ease;
}

.capability-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.capability-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.capability-card ul {
    list-style: none;
    color: #cfcfcf;
    font-size: 0.9rem;
}

.capability-card li {
    margin-bottom: 7px;
}


/* =========================================================
   "ALSO AVAILABLE" NOTES (capabilities + services)
========================================================= */

.addon-note {
    display: flex;
    align-items: center;
    gap: 14px;

    max-width: 780px;
    margin: 40px auto 0;
    padding: 16px 24px;

    border: 1px dashed var(--accent-dark);
    border-radius: var(--radius-medium);

    font-size: 0.95rem;
    line-height: 1.5;
}

.addon-note-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.addon-note strong {
    font-weight: 700;
}

.capabilities .addon-note {
    border-color: rgba(255, 255, 255, 0.3);
    color: #e6e6e6;
}

.services .addon-note {
    background: var(--background);
    border-style: solid;
    border-color: var(--border);
    color: var(--text);
}


/* =========================================================
   ABOUT
========================================================= */

.about-container {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 80px;
    align-items: center;
}

.about-content p {
    text-align: justify;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 25px;
}

.about-content > p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.strengths {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.strength strong {
    display: block;
    margin-bottom: 5px;
}

.strength p {
    font-size: 0.9rem;
    color: var(--text-light);
}


/* =========================================================
   SERVICES
========================================================= */

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.service-card {
    padding: 35px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card > p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.service-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-dark);
    font-weight: 700;
}


/* =========================================================
   PORTFOLIO PREVIEW (homepage)
========================================================= */

.portfolio-preview {
    text-align: center;
}

.portfolio-preview h2 {
    font-size: clamp(2.8rem, 5vw, 4rem);
    line-height: 1.1;
}

.portfolio-preview .section-heading {
    max-width: 700px;
    margin: 0 auto;
}

.portfolio-preview .section-heading > p:not(.eyebrow) {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-preview .button {
    margin-top: 25px;
}


/* =========================================================
   WORKFLOW
========================================================= */

.workflow-grid {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.workflow-step {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.workflow-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin-bottom: 15px;
    border-radius: 50%;
    background: var(--text);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
}

.workflow-step h3 {
    margin-bottom: 8px;
}

.workflow-step p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.workflow-line {
    flex: 0 0 20px;
    height: 1px;
    margin-top: 22px;
    background: var(--border);
}


/* =========================================================
   TOOLS
========================================================= */

.tool-category {
    margin-bottom: 55px;
}

.tool-category:last-of-type {
    margin-bottom: 40px;
}

.tool-category-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    font-size: 1.1rem;
    font-weight: 700;
}

.tool-category-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Max 4 per row; incomplete rows are centered */
.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.tool-card {
    flex: 0 1 calc((100% - 48px) / 4);
    min-width: 0;

    display: flex;
    flex-direction: column;

    padding: 24px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.tool-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.tool-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.tool-card p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.tools-note {
    display: inline-block;
    padding: 12px 22px;
    background: var(--background-light);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
}


/* =========================================================
   RESUME
========================================================= */

.resume-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.resume-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 20px;
}

.resume-content > p:not(.eyebrow) {
    color: var(--text-light);
    margin-bottom: 30px;
}

.resume-paper {
    min-height: 500px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   CONTACT & FORM
========================================================= */

.contact-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
}

.contact-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 20px;
}

.contact-content > p:not(.eyebrow) {
    color: var(--text-light);
    margin-bottom: 35px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-details span {
    display: block;
    margin-bottom: 3px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
}

.contact-details a {
    font-weight: 600;
}

.contact-details a:hover {
    color: var(--accent-dark);
}

.contact-details p {
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form .button {
    align-self: flex-start;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;

    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    background: var(--white);
    color: var(--text);

    outline: none;
    resize: vertical;

    transition: border 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-dark);
}

/* Custom dropdown: field matches the inputs, menu matches the nav dropdown */

.custom-select {
    position: relative;
}

.select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 14px 16px;

    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    background: var(--white);
    color: var(--text-light);

    text-align: left;
    cursor: pointer;

    transition: border 0.2s ease;
}

.select-trigger::after {
    content: "";
    flex-shrink: 0;
    width: 12px;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2384947D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    transition: transform 0.2s ease;
}

.custom-select.open .select-trigger::after {
    transform: rotate(180deg);
}

.select-trigger:focus-visible,
.custom-select.open .select-trigger {
    border-color: var(--accent-dark);
    outline: none;
}

.custom-select.has-value .select-trigger {
    color: var(--text);
}

.custom-select.invalid .select-trigger {
    border-color: #B5483D;
}

.select-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;

    list-style: none;
    padding: 8px 0;

    background: #F7F1E8;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.custom-select.open .select-menu {
    display: block;
}

.select-menu li {
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.select-menu li:hover,
.select-menu li.active {
    background: rgba(166, 181, 159, 0.2);
    color: var(--accent-dark);
}

.select-menu li[aria-selected="true"] {
    font-weight: 700;
}

.field-error {
    font-size: 0.8rem;
    color: #B5483D;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 50px 0;
    background: var(--text);
    color: var(--white);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

.footer p {
    color: #aaa;
    font-size: 0.8rem;
}

.footer .logo {
    display: block;
    margin-bottom: 5px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.8rem;
    color: #ccc;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    text-align: right;
}


/* =========================================================
   PORTFOLIO PAGE
========================================================= */

/* Page intro (sits directly inside <main>) */
main > .section-heading {
    width: min(90%, var(--max-width));
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 72px 0 35px;
}

main > .section-heading h1 {
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 18px;
}

main > .section-heading > p:not(.eyebrow) {
    max-width: 680px;
    color: var(--text-light);
}

.portfolio.section {
    padding-top: 35px;
    padding-bottom: 100px;
}

/* Portfolio header */

.portfolio .section-heading {
    text-align: center;
    max-width: 800px;
    margin: 30px auto 60px;
}

.portfolio .section-heading h2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.portfolio .section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

/* Intro statement: larger, darker, and slightly bolder than body text */
.portfolio .section-heading > p:not(.eyebrow):not(.section-note) {
    max-width: 640px;
    margin: 0 auto 22px;

    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 500;
    line-height: 1.5;
    color: var(--text);

    text-wrap: balance;
}

/* Fictional-data note: small, muted pill (matches .tools-note) */
.portfolio .section-heading .section-note {
    display: inline-block;
    max-width: 100%;
    padding: 8px 18px;

    background: var(--background-light);
    border: 1px solid var(--border);
    border-radius: 999px;

    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-light);
}

/* Section headers (Creator Support / Admin Systems / Data & Research) */

.portfolio-sub-section {
    margin: 0;
    padding: 16px 32px;
    background: var(--accent);
    border-radius: 16px;
}

.portfolio-sub-section h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

/* Keeps the sticky navbar from covering section headings */
.portfolio-sub-section h2[id] {
    scroll-margin-top: 100px;
}

/* The header pill already separates sections, so skip the divider line */
.portfolio-sub-section + .project {
    padding-top: 55px;
    border-top: 0;
}

/* Projects */

.project,
.project-reverse {
    display: block;
    width: 100%;
    padding: 75px 0;
    border-top: 1px solid var(--border);
}

.project-number {
    display: block;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-dark);
}

.project-category {
    margin-bottom: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-light);
}

.project-info {
    width: min(100%, 720px);
    max-width: 720px;
    margin: 0 0 45px;
}

.project-info h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.project-info > p:not(.project-category) {
    color: var(--text-light);
    margin-bottom: 25px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    padding: 6px 12px;
    background: var(--background-light);
    border-radius: 999px;
    font-size: 0.75rem;
}

.project-visual {
    width: 100%;
}

/* Showcase (images / videos) */

.showcase-item {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

.showcase-item:last-child {
    margin-bottom: 0;
}

.showcase-item img,
.showcase-item video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
}

.showcase-item img {
    background: var(--white);
}

.showcase-item video {
    background: #000;
    object-fit: contain;
}

.showcase-label {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;

    padding: 7px 13px;

    background: var(--text);
    color: var(--white);

    border-radius: 999px;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.showcase-caption {
    margin: 14px 0 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
}

.showcase-caption strong {
    color: var(--text);
    font-weight: 600;
}

.showcase-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 35px 0;
}

.showcase-divider::before,
.showcase-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.showcase-divider span {
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.image-showcase {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.image-showcase .showcase-item {
    margin-bottom: 0;
}


/* =========================================================
   RESPONSIVE — TABLET (900px)
========================================================= */

@media (max-width: 900px) {

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.82rem;
    }

    .nav-links .nav-cta {
        padding: 9px 16px;
        font-size: 0.8rem;
    }

    .hero-container,
    .about-container,
    .resume-container,
    .contact-container,
    .footer-container,
    .service-grid {
        grid-template-columns: 1fr;
    }

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

    .tool-card {
        flex-basis: calc((100% - 16px) / 2);
    }

    .workflow-grid {
        flex-direction: column;
        align-items: center;
    }

    .workflow-step {
        max-width: 500px;
    }

    .workflow-line {
        flex: 0 0 30px;
        width: 1px;
    }

    .copyright {
        text-align: left;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE (650px)
========================================================= */

@media (max-width: 650px) {

    .section {
        padding: 80px 0;
    }

    /* Navigation: hamburger opens a dropdown panel
       (same look as the Portfolio dropdown and the contact form menu) */

    .header .nav-container {
        min-height: 68px;
    }

    .menu-button,
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        right: 5%;
        z-index: 1001;

        width: min(280px, 90vw);
        padding: 8px 0;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        background: #F7F1E8;
        border: 1px solid var(--border);
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .nav-links a:hover {
        background: rgba(166, 181, 159, 0.2);
        color: var(--accent-dark);
    }

    /* Portfolio sub-links sit inside the same panel, indented */

    .nav-dropdown {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .dropdown-menu {
        display: flex;
        position: static;
        min-width: 0;
        padding: 0 0 4px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .dropdown-menu a {
        padding: 8px 16px 8px 32px;
        font-size: 0.82rem;
        white-space: normal;
        color: var(--text-light);
    }

    .nav-links .nav-cta {
        display: flex;
        width: calc(100% - 32px);
        margin: 8px 16px;
        padding: 12px 24px;
        font-size: 0.9rem;
        color: var(--white);
    }

    .nav-links .nav-cta:hover {
        background: var(--accent-dark);
        color: var(--white);
    }

    /* Hero */

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .portfolio-preview .button {
        width: auto;
    }

    /* Grids & cards */

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

    .tool-card {
        flex-basis: 100%;
    }

    .tool-category {
        margin-bottom: 40px;
    }

    .service-card {
        padding: 25px;
    }

    .addon-note {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    /* Portfolio page */

    main > .section-heading {
        padding: 55px 0 25px;
    }

    main > .section-heading h1 {
        font-size: 2.5rem;
    }

    .portfolio.section {
        padding-top: 25px;
        padding-bottom: 70px;
    }

    .portfolio .section-heading {
        margin: 20px auto 40px;
    }

    .portfolio .section-heading .section-note {
        border-radius: 18px;
    }

    .portfolio-sub-section {
        padding: 13px 20px;
        border-radius: 14px;
    }

    .project,
    .project-reverse {
        padding: 60px 0;
    }

    .project-info {
        margin-bottom: 30px;
    }

    .project-info h3 {
        font-size: 2rem;
    }

    .showcase-label {
        top: 12px;
        left: 12px;
        padding: 6px 10px;
        font-size: 0.65rem;
    }

    .showcase-divider {
        margin: 25px 0;
    }
}