/* =========================================================
   ZISHAN KHAN — PORTFOLIO DESIGN SYSTEM
   Global colors, typography, spacing and components
   ========================================================= */

/* 01. DESIGN TOKENS */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600;700&display=swap");
:root {
    color-scheme: dark;

    /* Backgrounds */
    --bg: #0b1020;
    --surface: #111a2e;
    --surface-2: #15213a;

    /* Text */
    --text: #edf2ff;
    --muted: #a7b3ca;

    /* Accent colors */
    --accent: #79a9ff;
    --accent-2: #8de0d0;
    --case-accent: #8b9cff;
    --case-accent-soft: rgba(139, 156, 255, 0.12);
    --case-accent-soft-strong: rgba(139, 156, 255, 0.13);
    --case-accent-strong: #6679ed;
    --case-border: rgba(128, 128, 128, 0.24);
    --case-border-soft: rgba(128, 128, 128, 0.23);
    --case-border-strong: rgba(128, 128, 128, 0.25);
    --case-surface: rgba(128, 128, 128, 0.045);
    --case-surface-raised: rgba(128, 128, 128, 0.055);
    --case-muted-feature: #8b91a5;
    --case-muted-quiet: #858da0;
    --case-radius-idm: 14px;
    --case-radius-monitor: 16px;
    --case-transition: 0.25s ease;

    /* Borders and effects */
    --border: rgba(171, 193, 230, 0.16);
    --border-strong: rgba(121, 169, 255, 0.45);

    /* Layout */
    --content-width: 1500px;
    --page-gutter: 20px;

    /* Consistent spacing */
    --space-1: 6px;
    --space-2: 10px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 36px;
    --space-6: 56px;
    --space-7: 76px;

    /* Components */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    /* Motion */
    --transition: 0.2s ease;
}


/* 02. RESET AND BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 105px;
}

body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(
            circle at 85% 5%,
            rgba(70, 105, 190, 0.12),
            transparent 28rem
        ),
        var(--bg);

    color: var(--text);
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

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

button {
    color: inherit;
}

p {
    margin-top: 0;
    color: var(--muted);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--text);
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(2.6rem, 6vw, 4.8rem);
}

h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.65rem);
}

h3 {
    font-size: 1.15rem;
}

::selection {
    background: rgba(121, 169, 255, 0.35);
    color: var(--text);
}


/* 03. SHARED LAYOUT */

.container {
    width: min(
        var(--content-width),
        calc(100% - var(--page-gutter) * 2)
    );
    margin-inline: auto;
}

.section {
    padding: var(--space-7) 0;
}

section {
    scroll-margin-top: 85px;
}

.section-heading {
    max-width: 660px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin-bottom: 12px;
}

.section-intro,
.section-description {
    max-width: 700px;
    margin-bottom: 0;
    color: var(--muted);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent-2);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.highlight {
    color: var(--accent);
}

.text-muted {
    color: var(--muted);
}


/* 04. NAVIGATION */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(11, 16, 32, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav {
    position: relative;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand img,
.logo img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform var(--transition);
}

.brand:hover img,
.logo:hover img {
    transform: scale(1.06);
}

.brand span,
.logo span {
    color: var(--accent);
}

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

.nav-links a {
    color: var(--muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links .nav-contact {
    padding: 9px 15px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
}

.nav-links .nav-contact:hover {
    border-color: var(--accent);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}


/* 05. BUTTONS */

.button,
.buttons .button,
.home-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 0.91rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        color var(--transition);
}

.button:hover,
.buttons .button:hover,
.home-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.button-primary,
.buttons .button-primary,
.home-btn.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #091226;
}

.button-primary:hover,
.buttons .button-primary:hover,
.home-btn.primary:hover {
    border-color: #9bbfff;
    background: #9bbfff;
    color: #091226;
}

.button-secondary {
    background: var(--surface);
    color: var(--text);
}

.button-row,
.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}


/* 06. HOMEPAGE HERO */

.hero {
    padding: 88px 0 68px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
    align-items: center;
    gap: 56px;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(17, 26, 46, 0.7);
    color: var(--muted);
    font-size: 0.82rem;
}

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

.hero h1 {
    max-width: 760px;
    margin-bottom: 22px;
    letter-spacing: -0.045em;
}

.hero h1 span {
    color: var(--accent);
}

.hero-copy,
.intro {
    max-width: 700px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.85;
}

.profile-card {
    position: relative;
    overflow: hidden;
    padding: 27px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(
            145deg,
            rgba(121, 169, 255, 0.10),
            transparent 55%
        ),
        var(--surface);
}

.profile-card::after {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(121, 169, 255, 0.18);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.profile-initials {
    display: grid;
    width: 68px;
    height: 68px;
    margin-bottom: 23px;
    place-items: center;
    border: 1px solid rgba(121, 169, 255, 0.35);
    border-radius: 20px;
    background: rgba(121, 169, 255, 0.12);
    color: var(--accent);
    font-size: 1.7rem;
    font-weight: 800;
}

.profile-card h2 {
    margin-bottom: 7px;
    font-size: 1.45rem;
}

.profile-card > p {
    margin-bottom: 23px;
    font-size: 0.91rem;
}

.profile-detail {
    padding: 15px 0;
    border-top: 1px solid var(--border);
}

.profile-detail strong {
    display: block;
    margin-bottom: 3px;
    font-size: 0.92rem;
}

.profile-detail span {
    color: var(--muted);
    font-size: 0.85rem;
}


/* 07. STRENGTHS STRIP */

.value-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(17, 26, 46, 0.68);
}

.value-item {
    padding: 23px;
}

.value-item + .value-item {
    border-left: 1px solid var(--border);
}

.value-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 0.98rem;
}

.value-item span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
}


/* 08. PROJECTS AND CASE STUDY CARDS */

.projects-section {
    padding-top: 88px;
}

.project-grid,
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.project-card,
.card {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-card:hover,
.card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.project-number {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 20px;
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--accent-2);
    font-size: 0.77rem;
    font-weight: 800;
}

.project-card h3,
.card h3 {
    margin-bottom: 11px;
}

.project-card p,
.card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.project-tags,
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.project-tags {
    margin-top: auto;
    margin-bottom: 21px;
}

.tag {
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(121, 169, 255, 0.09);
    color: #bfd4ff;
    font-size: 0.73rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 750;
}

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


/* =========================================================
   09. CASE STUDY PAGES — UNIFIED SYSTEM
   One set of tokens drives width, spacing, type scale and
   components on every case-study page.
   Prefixes: aws- etl- fd- idm- iot- mon-
   ========================================================= */

:root {
    --case-width: 1240px;        /* content width on every case page */
    --case-gutter: 24px;         /* side margin on every case page */
    --case-sidebar: 230px;       /* sticky table-of-contents column */
    --case-layout-gap: 40px;     /* gap between sidebar and content */
    --case-sticky-top: 95px;     /* sticky sidebar offset (clears header) */
    --case-card-radius: 14px;
    --case-pad-card: 20px;
}

/* ---------------------------------------------------------
   Page width
   Any page that contains a case-study block gets the same
   width. (Optional: add class="case-page" to <body> to be
   explicit instead of relying on :has().)
   --------------------------------------------------------- */
body.case-page,
body:has(
    .case-hero, .fd-hero, .fd-container,
    .aws-layout, .etl-layout, .idm-layout,
    .iot-hero, .iot-layout, .mon-hero, .mon-layout
) {
    --content-width: var(--case-width);
    --page-gutter: var(--case-gutter);
}

/* Site header / footer keep the site-wide width */
.site-header,
.site-footer {
    --content-width: 1500px;
    --page-gutter: 20px;
}

/* Wrappers that size themselves (when not inside .container) */
.fd-container {
    width: min(var(--case-width), calc(100% - var(--case-gutter) * 2));
    margin-inline: auto;
}

/* Legacy hook: some pages use class="container case-content".
   .container already supplies the width, so add no extra spacing. */
.case-content {
    padding: 0;
}


/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.case-hero,
.fd-hero,
.iot-hero,
.mon-hero {
    padding: 70px 0 40px;
}

.case-label,
.fd-label,
.iot-eyebrow,
.mon-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--case-accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.case-label::before,
.fd-label::before,
.iot-eyebrow::before,
.mon-eyebrow::before {
    content: "";
    width: 25px;
    height: 2px;
    background: currentColor;
}

.case-hero h1,
.fd-hero h1,
.iot-hero h1,
.mon-hero h1 {
    max-width: 900px;
    margin: 20px 0;
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.iot-gradient-text,
.mon-gradient {
    color: var(--case-accent);
}

.case-intro {
    max-width: 790px;
    font-size: 1.05rem;
    line-height: 1.9;
    opacity: 0.86;
}

.iot-hero-pills,
.mon-pills,
.metadata-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.iot-pill,
.mon-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid var(--case-border);
    border-radius: 999px;
    background: var(--case-surface-raised);
    font-size: 0.84rem;
}

.iot-pill-dot,
.mon-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--case-accent);
}

.case-meta span,
.metadata-row span {
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 0.83rem;
}

/* Hero action buttons */
.aws-hero-actions,
.etl-hero-actions,
.idm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.aws-action,
.etl-action,
.idm-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 10px 16px;
    border: 1px solid var(--case-border);
    border-radius: 9px;
    background: var(--case-surface);
    transition: transform var(--case-transition),
                border-color var(--case-transition),
                background var(--case-transition);
}

.aws-action:hover,
.etl-action:hover,
.idm-action:hover {
    transform: translateY(-2px);
    border-color: var(--case-accent);
    background: var(--case-accent-soft);
}

.aws-action-primary,
.etl-action-primary,
.idm-action-primary {
    border-color: var(--case-accent);
    background: var(--case-accent-soft);
}


/* ---------------------------------------------------------
   Meta cards (4-up summary under the hero)
   --------------------------------------------------------- */
.case-meta,
.fd-meta,
.iot-meta-grid,
.mon-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.meta-card,
.fd-meta-card,
.iot-meta-card,
.mon-meta-card {
    padding: 21px;
    border: 1px solid var(--case-border);
    border-radius: var(--case-card-radius);
    background: var(--case-surface-raised);
    transition: transform var(--case-transition),
                border-color var(--case-transition);
}

.meta-card p,
.fd-meta-card p,
.iot-meta-card span,
.mon-meta-card span {
    display: block;
    margin: 0 0 8px;
    color: var(--case-muted-quiet);
    font-size: 0.85rem;
}

.meta-card strong,
.fd-meta-card strong,
.iot-meta-card strong,
.mon-meta-card strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.6;
}

.fd-hero-link {
    display: inline-flex;
    margin-top: 5px;
}


/* ---------------------------------------------------------
   Layout: sticky sidebar + content
   --------------------------------------------------------- */
.aws-layout,
.etl-layout,
.idm-layout,
.fd-layout,
.iot-layout,
.mon-layout {
    display: grid;
    grid-template-columns: var(--case-sidebar) minmax(0, 1fr);
    align-items: start;
    gap: var(--case-layout-gap);
    padding-bottom: 40px;
}

.aws-content,
.etl-main,
.fd-article,
.idm-content,
.iot-content,
.mon-content,
.iot-responsibility-title,
.mon-contribution-title {
    min-width: 0;
}

.aws-toc,
.etl-toc,
.idm-toc,
.fd-toc,
.iot-sidebar,
.mon-sidebar {
    position: sticky;
    top: var(--case-sticky-top);
    max-height: calc(100vh - var(--case-sticky-top) - 24px);
    overflow-y: auto;
    padding: 17px 12px;
    border: 1px solid var(--case-border);
    border-radius: 12px;
    background: var(--case-surface);
}

.aws-toc-title,
.etl-toc-title,
.idm-toc-title,
.fd-toc-heading,
.iot-sidebar-label,
.mon-sidebar-label {
    margin: 0 0 14px;
    padding: 0 9px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.65;
}

.iot-toc,
.mon-toc {
    display: flex;
    flex-direction: column;
}

.aws-toc a,
.etl-toc a,
.idm-toc a,
.fd-toc a,
.iot-toc a,
.mon-toc a {
    display: block;
    margin: 3px 0;
    padding: 9px 10px;
    border-left: 2px solid transparent;
    border-radius: 0 7px 7px 0;
    font-size: 0.84rem;
    line-height: 1.45;
    opacity: 0.76;
    transition: color var(--case-transition),
                background var(--case-transition),
                border-color var(--case-transition),
                opacity var(--case-transition);
}

.aws-toc a:hover,
.aws-toc a.active,
.etl-toc a:hover,
.etl-toc a.active,
.idm-toc a:hover,
.idm-toc a.active,
.fd-toc a:hover,
.fd-toc a.active,
.iot-toc a:hover,
.iot-toc a.active,
.mon-toc a:hover,
.mon-toc a.active {
    color: var(--case-accent);
    background: var(--case-accent-soft);
    border-left-color: var(--case-accent);
    opacity: 1;
}

/* Mobile table of contents */
.aws-mobile-toc,
.etl-mobile-toc,
.idm-toc-mobile,
.fd-mobile-toc,
.iot-mobile-toc,
.mon-mobile-toc {
    display: none;
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid var(--case-border);
    border-radius: 12px;
    background: var(--case-surface);
}

.aws-mobile-toc summary,
.etl-mobile-toc summary,
.idm-toc-mobile summary,
.fd-mobile-toc summary,
.iot-mobile-toc summary,
.mon-mobile-toc summary {
    cursor: pointer;
    font-weight: 700;
}

.aws-mobile-links,
.etl-mobile-links,
.idm-toc-mobile .idm-mobile-links,
.fd-mobile-toc .fd-mobile-toc-links {
    display: grid;
    gap: 6px;
    padding-top: 12px;
}

.aws-mobile-links a,
.etl-mobile-links a,
.idm-toc-mobile a,
.fd-mobile-toc a {
    padding: 6px 0;
    font-size: 0.86rem;
}

.iot-mobile-toc .iot-toc,
.mon-mobile-toc .mon-toc {
    margin-top: 12px;
}

.aws-muted,
.etl-muted {
    opacity: 0.78;
}


/* ---------------------------------------------------------
   Content sections and typography
   --------------------------------------------------------- */
.case-section,
.fd-section,
.iot-section,
.mon-section {
    padding: 36px 0;
    border-top: 1px solid var(--case-border);
    scroll-margin-top: 100px;
}

.case-section:first-child,
.fd-section:first-child,
.iot-section:first-child,
.mon-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.case-section h2,
.fd-section h2,
.iot-section-heading h2,
.mon-heading h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.3;
}

.case-section h2,
.fd-section h2 {
    margin: 0 0 18px;
}

.case-section h3,
.fd-section h3 {
    margin: 24px 0 10px;
    font-size: 1.08rem;
    line-height: 1.5;
}

.etl-main .case-section h3 {
    margin-top: 0;
}

.case-section p,
.fd-section p,
.iot-content p,
.mon-content p {
    max-width: 850px;
    margin: 0 0 16px;
}

.case-section p,
.case-section li,
.fd-section p,
.fd-section li,
.iot-content p,
.iot-content li,
.mon-content p,
.mon-content li {
    line-height: 1.8;
}

.case-section li,
.fd-section li,
.iot-content li,
.mon-content li {
    margin-bottom: 10px;
}

.case-section ul,
.case-section ol,
.fd-section ul,
.fd-section ol,
.iot-content ul,
.iot-content ol,
.mon-content ul,
.mon-content ol {
    padding-left: 24px;
}

.case-section-intro {
    max-width: 850px;
    opacity: 0.86;
}

/* Numbered section heading (IoT / Monitoring) */
.iot-section-heading,
.mon-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.iot-section-number,
.mon-number {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(139, 156, 255, 0.33);
    border-radius: 12px;
    background: rgba(139, 156, 255, 0.1);
    color: var(--case-accent);
    font-weight: 800;
}

.iot-section-heading h2,
.mon-heading h2 {
    margin: 2px 0 8px;
}

.iot-section-heading p,
.mon-heading p {
    margin: 0;
    color: var(--case-muted-quiet);
    font-size: 0.91rem;
}

/* Callouts */
.case-callout,
.fd-callout,
.iot-callout,
.mon-callout {
    margin: 24px 0;
    padding: 21px 23px;
    border: 1px solid rgba(139, 156, 255, 0.25);
    border-left: 4px solid var(--case-accent);
    border-radius: 0 13px 13px 0;
    background: rgba(139, 156, 255, 0.07);
    line-height: 1.8;
}

.case-callout strong,
.fd-callout strong,
.iot-callout strong,
.mon-callout strong {
    display: block;
    margin-bottom: 6px;
}

.case-panel {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.case-list {
    padding-left: 22px;
    color: var(--muted);
}

.case-list li {
    margin-bottom: 9px;
    padding-left: 3px;
}

.case-image,
.diagram,
.case-visual {
    width: 100%;
    height: auto;
    margin: 24px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.case-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
}

.case-back:hover {
    color: var(--accent-2);
}


/* ---------------------------------------------------------
   Cards (one look everywhere)
   --------------------------------------------------------- */
.aws-team-card,
.aws-outcome-card,
.etl-outcome-card,
.artifact-card,
.migration-scenario,
.contribution-card,
.outcome-item,
.fd-card,
.iot-integration-card,
.iot-impact-item,
.mon-tool-card,
.mon-outcome-card {
    min-width: 0;
    padding: var(--case-pad-card);
    border: 1px solid var(--case-border);
    border-radius: var(--case-card-radius);
    background: var(--case-surface-raised);
    transition: transform var(--case-transition),
                border-color var(--case-transition),
                background var(--case-transition);
}

/* One shared hover lift for every card / meta card / stage button */
.meta-card:hover,
.fd-meta-card:hover,
.iot-meta-card:hover,
.mon-meta-card:hover,
.aws-team-card:hover,
.aws-outcome-card:hover,
.etl-outcome-card:hover,
.artifact-card:hover,
.migration-scenario:hover,
.contribution-card:hover,
.outcome-item:hover,
.fd-card:hover,
.iot-integration-card:hover,
.iot-impact-item:hover,
.mon-tool-card:hover,
.mon-outcome-card:hover,
.aws-stage:hover,
.etl-stage-button:hover,
.idm-stage:hover,
.fd-stage:hover,
.iot-stage:hover,
.mon-workflow-step:hover {
    transform: translateY(-3px);
    border-color: var(--case-accent);
}

.aws-team-grid,
.aws-outcome-grid,
.etl-outcome-grid,
.artifact-grid,
.migration-scenarios,
.contribution-grid,
.outcome-list,
.fd-card-grid,
.iot-integration-grid,
.iot-impact-grid,
.mon-tool-grid,
.mon-outcome-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.aws-team-grid,
.mon-tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.artifact-grid,
.migration-scenarios,
.contribution-grid,
.iot-responsibility-list,
.mon-contributions {
    align-items: start;
}

.aws-team-card h3,
.etl-outcome-card h3,
.artifact-card h3,
.migration-scenario h3,
.contribution-card h3,
.fd-card h3,
.iot-integration-card h3,
.mon-tool-card h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.5;
}

.aws-team-card p,
.etl-outcome-card p,
.artifact-card p,
.migration-scenario p,
.fd-card p,
.iot-integration-card p,
.mon-tool-card p,
.mon-outcome-card p {
    margin: 0 0 12px;
    font-size: 0.9rem;
    line-height: 1.75;
}

.aws-team-card p:last-child,
.etl-outcome-card p:last-child,
.artifact-card p:last-child,
.migration-scenario p:last-child,
.fd-card p:last-child,
.iot-integration-card p:last-child,
.mon-tool-card p:last-child,
.mon-outcome-card p:last-child,
.contribution-card ul {
    margin-bottom: 0;
}

.aws-outcome-card,
.outcome-item {
    line-height: 1.75;
}

.aws-outcome-card strong,
.outcome-item strong,
.mon-outcome-card strong {
    display: block;
    margin-bottom: 6px;
}

.aws-outcome-icon {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--case-accent);
    font-size: 1.15rem;
}

.etl-outcome-number {
    display: block;
    margin-bottom: 10px;
    color: var(--case-accent);
    font-weight: 800;
    letter-spacing: 1px;
}

.iot-impact-item,
.mon-outcome-card {
    display: flex;
    gap: 12px;
}

.iot-check,
.mon-outcome-mark {
    flex: 0 0 auto;
    color: var(--case-accent);
    font-weight: 900;
}

.iot-impact-item span:last-child {
    font-size: 0.9rem;
    line-height: 1.7;
}

.iot-integration-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.iot-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.iot-card-tag {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 4px;
    color: var(--case-muted-quiet);
    font-size: 0.76rem;
}

/* Icon squares */
.aws-team-icon,
.iot-card-icon,
.mon-tool-icon,
.iot-responsibility-icon,
.mon-contribution-icon {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 11px;
    background: rgba(139, 156, 255, 0.12);
    color: var(--case-accent);
    font-weight: 800;
}

.aws-team-icon,
.mon-tool-icon {
    margin-bottom: 12px;
}

.iot-card-icon svg,
.mon-tool-icon svg,
.iot-stage-icon svg,
.mon-step-icon svg {
    width: 24px;
    height: 24px;
}


/* ---------------------------------------------------------
   Interactive workflows
   --------------------------------------------------------- */
.aws-workflow,
.etl-workflow-panel,
.idm-workflow,
.iot-workflow,
.mon-workflow-box {
    margin: 26px 0;
    padding: 24px;
    border: 1px solid var(--case-border);
    border-radius: var(--radius-lg);
    background: var(--case-surface-raised);
}

.aws-workflow > h3,
.etl-workflow-panel > h3,
.idm-workflow h3 {
    margin: 0 0 20px;
    font-size: 1.05rem;
}

.iot-workflow-top,
.mon-workflow-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.iot-workflow-top h3,
.mon-workflow-top h3 {
    margin: 0;
    font-size: 1.05rem;
}

.iot-workflow-top span,
.mon-workflow-top span {
    color: var(--case-muted-quiet);
    font-size: 0.8rem;
}

.aws-workflow-grid,
.etl-stage-grid,
.idm-workflow-grid,
.fd-workflow,
.iot-stage-grid,
.mon-workflow-grid {
    display: grid;
    gap: 10px;
}

.aws-workflow-grid,
.idm-workflow-grid,
.iot-stage-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.etl-stage-grid,
.mon-workflow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fd-workflow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.aws-stage,
.etl-stage-button,
.idm-stage,
.fd-stage,
.iot-stage,
.mon-workflow-step {
    min-width: 0;
    min-height: 110px;
    padding: 15px 12px;
    border: 1px solid var(--case-border);
    border-radius: 12px;
    background: var(--case-surface);
    text-align: left;
    cursor: pointer;
    transition: transform var(--case-transition),
                border-color var(--case-transition),
                background var(--case-transition);
}

.fd-stage {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.aws-stage[aria-pressed="true"],
.etl-stage-button[aria-pressed="true"],
.idm-stage[aria-pressed="true"],
.fd-stage[aria-pressed="true"],
.iot-stage.active,
.mon-workflow-step.active {
    border-color: var(--case-accent);
    background: var(--case-accent-soft);
}

.aws-stage-number,
.etl-stage-number,
.idm-stage-number,
.fd-stage-number,
.iot-stage-number,
.mon-step-number {
    display: grid;
    width: 31px;
    height: 31px;
    margin-bottom: 12px;
    place-items: center;
    border-radius: 9px;
    background: rgba(139, 156, 255, 0.135);
    color: var(--case-accent);
    font-size: 0.85rem;
    font-weight: 800;
}

.aws-stage strong,
.etl-stage-button strong,
.idm-stage strong,
.fd-stage strong,
.iot-stage strong,
.mon-workflow-step strong {
    display: block;
    font-size: 0.88rem;
    line-height: 1.5;
}

.fd-stage small,
.iot-stage small,
.mon-workflow-step small {
    display: block;
    margin-top: 7px;
    color: var(--case-muted-quiet);
    font-size: 0.78rem;
    line-height: 1.5;
}

.iot-stage-icon,
.mon-step-icon {
    color: var(--case-accent);
}

.iot-stage-icon {
    display: block;
    margin-bottom: 12px;
}

.mon-step-icon svg {
    display: block;
}

.mon-step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.mon-step-number {
    margin-bottom: 0;
}

.aws-stage-detail,
.etl-stage-detail,
.idm-stage-detail,
.fd-stage-panel,
.iot-stage-detail,
.mon-workflow-detail {
    margin-top: 16px;
    padding: 19px;
    border-radius: 12px;
    background: rgba(139, 156, 255, 0.08);
    line-height: 1.8;
}

.aws-stage-detail h4,
.etl-stage-detail h4,
.idm-stage-detail h4,
.iot-stage-detail h4,
.mon-workflow-detail h4 {
    margin: 0 0 8px;
}

.fd-stage-panel h3 {
    margin: 0 0 10px;
}

.aws-stage-detail p,
.etl-stage-detail p,
.idm-stage-detail p,
.fd-stage-panel p,
.iot-stage-detail p,
.mon-workflow-detail p {
    margin: 0;
    font-size: 0.92rem;
}

.fd-stage-panel-label,
.fd-example-label {
    display: block;
    margin-bottom: 8px;
    color: var(--case-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.fd-workflow-note,
.iot-workflow-caption,
.mon-caption {
    margin: 15px 0 0 !important;
    color: var(--case-muted-quiet);
    font-size: 0.8rem;
}

.fd-example {
    margin: 24px 0;
    padding: 24px;
    border: 1px solid var(--case-border);
    border-radius: var(--case-card-radius);
    background: var(--case-surface-raised);
}

.fd-example h3:first-of-type {
    margin-top: 0;
}

.fd-example p:last-child {
    margin-bottom: 0;
}

.fd-card details {
    margin-top: 12px;
}

.fd-card summary {
    color: var(--case-accent);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

.fd-card details p,
.fd-card details ul {
    margin-top: 12px;
    font-size: 0.94rem;
}


/* ---------------------------------------------------------
   Expandable / accordion blocks
   --------------------------------------------------------- */
.aws-accordion,
.etl-expandable,
.idm-expandable,
.iot-responsibility,
.mon-contribution {
    margin: 12px 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--case-border);
    border-radius: var(--case-card-radius);
    background: var(--case-surface-raised);
    transition: border-color var(--case-transition);
}

.aws-accordion[open],
.etl-expandable[open],
.idm-expandable[open],
.iot-responsibility[open],
.mon-contribution[open] {
    border-color: rgba(139, 156, 255, 0.55);
}

.aws-accordion summary,
.etl-expandable summary,
.idm-expandable summary,
.iot-responsibility summary,
.mon-contribution summary {
    position: relative;
    padding: 18px 48px 18px 18px;
    cursor: pointer;
    font-weight: 650;
    line-height: 1.6;
    list-style: none;
}

.aws-accordion summary::-webkit-details-marker,
.etl-expandable summary::-webkit-details-marker,
.idm-expandable summary::-webkit-details-marker,
.iot-responsibility summary::-webkit-details-marker,
.mon-contribution summary::-webkit-details-marker {
    display: none;
}

.aws-accordion summary::after,
.etl-expandable summary::after,
.idm-expandable summary::after,
.iot-responsibility summary::after,
.mon-contribution summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 18px;
    color: var(--case-accent);
    font-size: 1.5rem;
    line-height: 1;
    transform: translateY(-50%);
}

.aws-accordion[open] summary::after,
.etl-expandable[open] summary::after,
.idm-expandable[open] summary::after,
.iot-responsibility[open] summary::after,
.mon-contribution[open] summary::after {
    content: "−";
}

.iot-responsibility summary,
.mon-contribution summary {
    display: flex;
    align-items: center;
    gap: 13px;
    font-weight: 400;
}

.iot-responsibility summary:hover,
.mon-contribution summary:hover {
    background: rgba(139, 156, 255, 0.06);
}

.etl-expandable summary h3 {
    margin: 0 0 9px;
}

.etl-expandable summary p {
    margin: 0;
    font-weight: 400;
}

.aws-accordion-body,
.etl-expandable-body,
.idm-expandable-body {
    padding: 0 18px 18px;
    line-height: 1.8;
}

.iot-responsibility-body,
.mon-contribution-body {
    padding: 0 20px 20px 71px;
}

.aws-accordion-body > :first-child,
.idm-expandable-body > :first-child {
    margin-top: 0;
}

.aws-accordion-body > :last-child,
.idm-expandable-body > :last-child,
.etl-expandable-body p:last-child,
.etl-expandable-body ul:last-child {
    margin-bottom: 0;
}

.aws-accordion-body li {
    margin-bottom: 10px;
}

.iot-responsibility-body ul,
.mon-contribution-body ul {
    margin: 0;
}

.iot-responsibility-list,
.mon-contributions {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.iot-responsibility-title strong,
.mon-contribution-title strong {
    display: block;
    font-weight: 650;
    line-height: 1.5;
}

.iot-responsibility-title small,
.mon-contribution-title small {
    display: block;
    margin-top: 3px;
    color: var(--case-muted-quiet);
    line-height: 1.5;
}


/* ---------------------------------------------------------
   Pills / skills / notes
   --------------------------------------------------------- */
.skill-list,
.fd-skill-list,
.iot-skill-list,
.iot-provider-list,
.mon-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.skill-tag,
.fd-skill,
.iot-skill,
.iot-provider,
.mon-skill {
    display: inline-flex;
    padding: 9px 13px;
    border: 1px solid var(--case-border);
    border-radius: 999px;
    background: var(--case-surface-raised);
    font-size: 0.85rem;
    line-height: 1.4;
    transition: background var(--case-transition),
                border-color var(--case-transition);
}

.skill-tag:hover {
    border-color: var(--case-accent);
    background: var(--case-accent-soft);
}

.status-note {
    padding: 18px;
    margin-top: 20px;
    border: 1px solid var(--case-border);
    border-radius: 12px;
    line-height: 1.8;
}

.status-note p:last-child {
    margin-bottom: 0;
}

.confidentiality-note,
#aws-confidentiality > p,
.fd-confidentiality,
.iot-confidentiality,
.mon-note {
    padding: 18px;
    border: 1px dashed var(--case-border);
    border-radius: 12px;
    color: var(--case-muted-quiet);
    font-size: 0.88rem;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   Footer navigation
   --------------------------------------------------------- */
.case-footer,
.fd-footer,
.iot-footer,
.mon-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 32px 0 60px;
    border-top: 1px solid var(--case-border);
}

.iot-footer a:hover,
.mon-footer a:hover {
    color: var(--case-accent);
}

.case-next-link,
.iot-next-link,
.mon-next-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--case-border);
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
}

.case-next-link:hover,
.iot-next-link:hover,
.mon-next-link:hover {
    border-color: var(--case-accent);
    background: rgba(139, 156, 255, 0.08);
}


/* ---------------------------------------------------------
   Reading progress, back-to-top, scroll reveal
   --------------------------------------------------------- */
.aws-progress-track,
.etl-progress-track,
.reading-progress-track,
.idm-progress-track,
.iot-progress-track,
.mon-progress-track {
    position: fixed;
    inset: 0 0 auto;
    z-index: 2000;
    height: 4px;
    pointer-events: none;
}

.aws-progress-bar,
.etl-progress-bar,
.reading-progress-bar,
.idm-progress-bar,
.iot-progress-bar,
.mon-progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #8b9cff, #b6a0ff);
    transition: width 0.1s linear;
}

.aws-back-top,
.etl-back-top,
.fd-back-top,
.idm-back-top,
.iot-top-button,
.mon-top-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--case-border);
    border-radius: 50%;
    background: var(--case-accent-strong);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.aws-back-top.visible,
.etl-back-top.visible,
.fd-back-top.visible,
.idm-back-top.visible,
.iot-top-button.visible,
.mon-top-button.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.aws-reveal,
.etl-reveal,
.fd-reveal,
.idm-reveal,
.iot-reveal,
.mon-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.aws-reveal.is-visible,
.etl-reveal.is-visible,
.fd-reveal.is-visible,
.idm-reveal.is-visible,
.iot-reveal.revealed,
.mon-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ---------------------------------------------------------
   Image zoom + lightbox (ETL / IDM)
   --------------------------------------------------------- */
.workflow-image-button,
.idm-image-button {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    cursor: zoom-in;
}

.workflow-figure {
    width: 100%;
    margin: 28px auto 0;
}

.workflow-image-button {
    border: 1px solid var(--case-border);
    border-radius: 12px;
    background: #0b0d14;
}

.workflow-figure img {
    width: 100%;
    height: auto;
    background: #0b0d14;
    transition: transform 0.3s ease;
}

.workflow-image-button:hover img {
    transform: scale(1.015);
}

.etl-zoom-hint {
    display: block;
    padding: 10px 12px;
    border-top: 1px solid var(--case-border);
    font-size: 0.82rem;
    text-align: center;
    opacity: 0.75;
}

.workflow-figure figcaption {
    max-width: 800px;
    margin: 14px auto 0;
    font-size: 0.88rem;
    line-height: 1.7;
    opacity: 0.75;
    text-align: center;
}

.migration-figure {
    margin: 28px 0;
    padding: 16px;
    border: 1px solid var(--case-border);
    border-radius: var(--case-card-radius);
    background: var(--case-surface);
    overflow: hidden;
}

.idm-image-button {
    border: 0;
    border-radius: 8px;
    background: transparent;
}

.migration-figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.idm-image-button:hover img {
    transform: scale(1.01);
    opacity: 0.93;
}

.migration-figure figcaption {
    margin-top: 14px;
    font-size: 0.88rem;
    line-height: 1.7;
    text-align: center;
    opacity: 0.72;
}

.idm-zoom-hint {
    display: inline-block;
    margin-top: 8px;
    color: var(--case-accent);
    font-size: 0.82rem;
}

.etl-lightbox,
.idm-lightbox {
    position: fixed;
    z-index: 3000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 7, 16, 0.92);
}

.etl-lightbox.open,
.idm-lightbox.open {
    display: flex;
}

.etl-lightbox img,
.idm-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 8px;
}

.etl-lightbox img {
    margin: 0 auto;
    background: #0b0d14;
}

.etl-lightbox-inner {
    position: relative;
    width: min(1100px, 100%);
    max-height: 100%;
}

.etl-lightbox-caption {
    margin-top: 12px;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}

.etl-lightbox-close,
.idm-lightbox-close {
    position: absolute;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

.etl-lightbox-close {
    top: -16px;
    right: -8px;
    background: #24283a;
}

.idm-lightbox-close {
    top: 18px;
    right: 20px;
}

.idm-lightbox-caption {
    position: absolute;
    right: 20px;
    bottom: 16px;
    left: 20px;
    color: #eee;
    text-align: center;
    font-size: 0.9rem;
}


/* ---------------------------------------------------------
   IDM enterprise delivery diagram
   --------------------------------------------------------- */
.flow-container {
    margin: 26px 0 18px;
    padding: 24px;
    border: 1px solid var(--case-border);
    border-radius: var(--case-card-radius);
    background: var(--case-surface);
}

.flow-heading {
    margin: 0 0 8px !important;
    font-size: 1.1rem !important;
}

.flow-description {
    margin: 0 0 22px;
    font-size: 0.92rem;
    opacity: 0.75;
}

.flow-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
}

.flow-node {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 17px 12px;
    text-align: center;
    border: 1px solid var(--case-border);
    border-radius: 10px;
    background: var(--case-surface);
}

.flow-node.highlight {
    border-color: rgba(139, 156, 255, 0.65);
    background: var(--case-accent-soft);
}

.flow-node strong {
    display: block;
    margin-bottom: 7px;
    font-size: 0.91rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.flow-node span {
    display: block;
    font-size: 0.8rem;
    line-height: 1.55;
    opacity: 0.76;
    overflow-wrap: anywhere;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    color: var(--case-accent);
    font-size: 1.3rem;
    font-weight: 700;
}

.flow-stack {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.flow-note {
    margin: 16px 0 0;
    font-size: 0.85rem;
    line-height: 1.7;
    opacity: 0.72;
}


/* ---------------------------------------------------------
   Case study responsive rules (all pages share breakpoints)
   --------------------------------------------------------- */
@media (max-width: 1050px) {
    :root {
        --case-sidebar: 195px;
        --case-layout-gap: 26px;
    }

    .case-meta,
    .fd-meta,
    .iot-meta-grid,
    .mon-meta,
    .fd-workflow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aws-workflow-grid,
    .idm-workflow-grid,
    .iot-stage-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    /* Sidebar layouts collapse; mobile contents menu appears */
    .aws-layout,
    .etl-layout,
    .idm-layout,
    .fd-layout,
    .iot-layout,
    .mon-layout {
        display: block;
    }

    .aws-toc,
    .etl-toc,
    .idm-toc,
    .fd-desktop-toc,
    .iot-sidebar,
    .mon-sidebar {
        display: none;
    }

    .aws-mobile-toc,
    .etl-mobile-toc,
    .idm-toc-mobile,
    .fd-mobile-toc,
    .iot-mobile-toc,
    .mon-mobile-toc {
        display: block;
    }

    .case-hero,
    .fd-hero,
    .iot-hero,
    .mon-hero {
        padding: 42px 0 25px;
    }

    .case-section,
    .fd-section,
    .iot-section,
    .mon-section {
        padding: 28px 0;
    }

    .aws-workflow-grid,
    .etl-stage-grid,
    .idm-workflow-grid,
    .iot-stage-grid,
    .mon-workflow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aws-team-grid,
    .aws-outcome-grid,
    .etl-outcome-grid,
    .artifact-grid,
    .migration-scenarios,
    .contribution-grid,
    .outcome-list,
    .fd-card-grid,
    .iot-integration-grid,
    .iot-impact-grid,
    .mon-tool-grid,
    .mon-outcome-grid {
        grid-template-columns: 1fr;
    }

    .case-footer,
    .fd-footer,
    .iot-footer,
    .mon-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .aws-workflow,
    .etl-workflow-panel,
    .idm-workflow,
    .iot-workflow,
    .mon-workflow-box {
        padding: 16px;
    }

    .flow-container {
        padding: 18px;
    }

    .flow-row {
        flex-direction: column;
        gap: 7px;
    }

    .flow-node {
        flex: auto;
        width: 100%;
        padding: 15px;
    }

    .flow-arrow {
        flex-basis: auto;
        min-height: 20px;
        transform: rotate(90deg);
    }

    .etl-lightbox,
    .idm-lightbox {
        padding: 15px;
    }

    .iot-responsibility-body,
    .mon-contribution-body {
        padding-left: 20px;
    }
}

@media (max-width: 700px) {
    :root {
        --case-gutter: 15px;   /* matches .container on small screens */
    }

    .fd-back-top,
    .aws-back-top,
    .etl-back-top,
    .idm-back-top,
    .iot-top-button,
    .mon-top-button {
        right: 15px;
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .case-meta,
    .fd-meta,
    .iot-meta-grid,
    .mon-meta {
        grid-template-columns: 1fr;
    }

    .fd-workflow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .meta-card,
    .fd-meta-card,
    .iot-meta-card,
    .mon-meta-card,
    .fd-example,
    .contribution-card,
    .migration-figure {
        padding: 16px;
    }

    .aws-stage,
    .etl-stage-button,
    .idm-stage,
    .fd-stage,
    .iot-stage,
    .mon-workflow-step {
        min-height: 100px;
        padding: 12px 10px;
    }

    .iot-section-heading,
    .mon-heading {
        gap: 10px;
    }

    .iot-section-number,
    .mon-number {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .workflow-figure {
        margin-top: 20px;
    }

    .workflow-image-button {
        border-radius: 8px;
    }

    .workflow-figure figcaption {
        font-size: 0.82rem;
        text-align: left;
    }

    .etl-lightbox-close {
        top: -10px;
        right: -4px;
    }

    .aws-hero-actions .aws-action,
    .etl-hero-actions .etl-action,
    .idm-hero-actions .idm-action {
        width: 100%;
    }
}

/* Reduced motion: show revealed content immediately */
@media (prefers-reduced-motion: reduce) {
    .aws-reveal,
    .etl-reveal,
    .fd-reveal,
    .idm-reveal,
    .iot-reveal,
    .mon-reveal {
        opacity: 1;
        transform: none;
    }
}


/* 10. EXPERIENCE */

.experience-layout {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    align-items: start;
    gap: 54px;
}

.experience-summary {
    position: sticky;
    top: 100px;
}

.experience-summary p {
    line-height: 1.85;
}

.experience-list {
    border-top: 1px solid var(--border);
}

.experience-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.experience-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.experience-top h3 {
    margin-bottom: 6px;
}

.experience-company {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.experience-date {
    flex-shrink: 0;
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 0.75rem;
}

.experience-points {
    margin: 17px 0 0;
    padding-left: 19px;
    color: var(--muted);
    font-size: 0.9rem;
}

.experience-points li {
    margin-bottom: 7px;
    padding-left: 3px;
}


/* 11. SKILLS */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.skill-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.skill-card h3 {
    margin-bottom: 16px;
}

.skill-tags {
    gap: 8px;
}

.skill-tags span {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: #d4def2;
    font-size: 0.82rem;
}

.skills-note {
    margin-top: 18px;
    margin-bottom: 0;
    font-size: 0.83rem;
}




/* =========================================
   12. EDUCATION & CERTIFICATIONS
   FULL-WIDTH VERTICAL LAYOUT
========================================= */

#credentials .credentials-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1120px;
    margin: 30px auto 0;
}

#credentials .credential-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: center;
    gap: 0;
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

#credentials .credential-card > .credential-image {
    display: block;
    width: 100%;
    height: 230px;
    min-height: 0;
    max-width: 100%;
    padding: 16px;
    margin: 0;
    box-sizing: border-box;
    object-fit: contain;
    background: var(--bg);
    border-radius: 0;
}

#credentials .credential-card > .credential-content {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 28px 32px;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

#credentials .credential-content h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
    line-height: 1.4;
}

#credentials .credential-content p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* Mobile Layout */

@media (max-width: 700px) {
    #credentials .credentials-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    #credentials .credential-card {
        grid-template-columns: minmax(0, 1fr);
    }

    #credentials .credential-card > .credential-image {
        height: 210px;
    }

    #credentials .credential-card > .credential-content {
        padding: 22px;
    }

    #credentials .credential-content h3 {
        font-size: 1.15rem;
    }
}



/* 13. CONTACT */

.contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 37px;
    border: 1px solid rgba(121, 169, 255, 0.25);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(
            120deg,
            rgba(121, 169, 255, 0.11),
            rgba(141, 224, 208, 0.035)
        ),
        var(--surface);
}

.contact-panel h2 {
    margin-bottom: 10px;
}

.contact-panel p {
    max-width: 580px;
    margin-bottom: 0;
}

.contact-actions {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 10px;
}

/* 14. FOOTER */

.site-footer,
footer {
    padding: 26px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner p {
    margin: 0;
    font-size: 0.82rem;
}

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

.footer-links a {
    color: var(--muted);
    font-size: 0.83rem;
}

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


/* 15. LEGACY CONTENT COMPATIBILITY */

.about-grid,
.content-grid,
.two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.info-card,
.content-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.info-card h3,
.content-card h3 {
    margin-bottom: 12px;
}

.info-card p,
.content-card p {
    color: var(--muted);
}

ul {
    padding-left: 22px;
}

li {
    padding-left: 2px;
}

hr {
    height: 1px;
    margin: 30px 0;
    border: 0;
    background: var(--border);
}


/* 16. RESPONSIVE: TABLETS */

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.8fr);
        gap: 30px;
    }

    .project-grid,
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .experience-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .experience-summary {
        position: static;
        max-width: 650px;
    }

    .contact-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* 17. RESPONSIVE: MOBILE */

@media (max-width: 700px) {
    .container {
        width: min(var(--content-width), calc(100% - 30px));
    }

    .section {
        padding: 57px 0;
    }

    .hero {
        padding: 58px 0 45px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 11vw, 3.7rem);
    }

    .nav {
        min-height: 66px;
    }

    .nav-content {
        align-items: center;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 10px 20px 18px;
        border-bottom: 1px solid var(--border);
        background: #0b1020;
    }

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

    .nav-links a {
        padding: 12px 5px;
    }

    .nav-links .nav-contact {
        margin-top: 5px;
        padding: 10px 13px;
        text-align: center;
    }

    .value-strip {
        grid-template-columns: 1fr;
    }

    .value-item {
        padding: 17px 20px;
    }

    .value-item + .value-item {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .project-grid,
    .cards,
    .skills-grid,
    .credentials-grid,
    .about-grid,
    .content-grid,
    .two-column-grid {
        grid-template-columns: 1fr;
    }

    .project-card,
    .card,
    .skill-card {
        padding: 21px;
    }

    .experience-top {
        flex-direction: column;
        gap: 9px;
    }

    .contact-panel {
        padding: 25px;
    }

    .contact-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .contact-actions .button {
        width: 100%;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* 18. RESPONSIVE: SMALL PHONES */

@media (max-width: 400px) {
    h2 {
        font-size: 1.75rem;
    }

    .button-row,
    .buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .button-row .button,
    .buttons .button {
        width: 100%;
    }

    .project-card,
    .card,
    .skill-card {
        padding: 18px;
    }
}


/* 19. ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}

/* =========================================================
   HOMEPAGE V2 — SIMPLE, PERSONAL, CONTENT-FIRST
   ========================================================= */

.hero-content {
    max-width: 900px;
    margin-inline: auto;
    padding-top: clamp(64px, 10vw, 120px);
    padding-bottom: clamp(64px, 9vw, 100px);
}

.hero-eyebrow {
    margin: 0 0 28px;
    color: var(--accent-2);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 850px;
    margin: 0 0 30px;
    font-size: clamp(2.8rem, 6.5vw, 5.3rem);
    line-height: 1.06;
    letter-spacing: -0.055em;
    font-weight: 650;
}

.hero-content h1 span {
    display: block;
    color: var(--accent);
}

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

.hero-intro p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.85;
}

.hero-example {
    max-width: 700px;
    margin-top: 36px;
    padding: 24px 0 24px 22px;
    border-left: 2px solid var(--border-strong);
}

.hero-example-label {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 650;
}

.hero-example p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

.hero-content .button-row {
    margin-top: 32px;
}

@media (max-width: 600px) {
    .hero-content {
        padding-top: 52px;
        padding-bottom: 56px;
    }

    .hero-eyebrow {
        margin-bottom: 22px;
        font-size: 0.74rem;
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 11vw, 3.6rem);
        line-height: 1.08;
        letter-spacing: -0.045em;
    }

    .hero-intro p {
        font-size: 1rem;
        line-height: 1.75;
    }

    .hero-example {
        margin-top: 28px;
        padding-left: 16px;
    }

    .hero-content .button-row {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }
}


/* =========================================================
   PROJECTS V2 — IMAGE-LED, EDITORIAL LAYOUT
   ========================================================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 32px;
}

.project-card {
    min-width: 0;
    overflow: hidden;
}

/* Project image container */
.project-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

/* Show the entire image without cropping */
.project-image img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    transition: none;
}

/* Disable image zoom */
.project-image:hover img {
    transform: none;
}

/* Project text */
.project-content {
    padding-top: 20px;
}

.project-category {
    display: block;
    margin-bottom: 10px;
    color: var(--accent-2);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.project-content h3 {
    margin: 0 0 12px;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.project-content p {
    max-width: 540px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.8;
}

.project-content .project-link {
    display: inline-block;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

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

/* Responsive layout */
@media (max-width: 700px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .project-content {
        padding-top: 16px;
    }
}

/* EXPERIENCE V2 — CLEARER ROLE DESCRIPTIONS */

.experience-description {
    margin: 18px 0 14px;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.7;
    font-weight: 500;
}

.experience-points {
    line-height: 1.8;
}

/* SKILLS V2 — EXPLAIN THE VALUE, NOT JUST THE TOOLS */

.skill-description {
    margin: 10px 0 18px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.75;
}

.skill-card h3 {
    line-height: 1.4;
}

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

.skill-tags span {
    max-width: 100%;
    overflow-wrap: anywhere;
}



/* =========================================
   HERO — CLEAN, BALANCED LAYOUT
========================================= */

.hero {
    padding: 70px 0 45px;
}

.hero .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    column-gap: clamp(32px, 5vw, 80px);
    row-gap: 35px;
    align-items: start;
    max-width: 1350px;
    margin-inline: auto;
}

.hero .hero-layout > .hero-content {
    min-width: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.hero .hero-content h1 {
    max-width: 700px;
    margin-bottom: 24px;
    font-size: clamp(2.8rem, 3.7vw, 4.2rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.hero .hero-content h1 span {
    display: block;
    color: var(--accent);
}

.hero .hero-intro p {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 15px;
}

.hero .hero-content .button-row {
    margin-top: 28px;
}

.hero .hero-visual {
    min-width: 0;
    width: 100%;
    align-self: start;
    padding: 0;
    margin: 0;
    padding-top: 12px;
}

.hero .hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    border-radius: 18px;
}

/* Example spans both columns */

.hero .hero-layout > .hero-example {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 850px;
    margin: 0;
    padding: 16px 0 16px 22px;
    border-left: 2px solid var(--border-strong);
}

/* TABLET & MOBILE */

@media (max-width: 900px) {
    .hero {
        padding: 45px 0 35px;
    }

    .hero .hero-layout {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 28px;
    }

    .hero .hero-layout > .hero-content {
        padding: 0;
    }

    .hero .hero-content h1 {
        font-size: clamp(2.5rem, 7vw, 3.8rem);
    }

    .hero .hero-visual {
        max-width: 650px;
        margin-inline: auto;
    }

    .hero .hero-layout > .hero-example {
        grid-column: 1;
    }
}

@media (max-width: 600px) {
    .hero .hero-content h1 {
        font-size: clamp(2.2rem, 9vw, 3rem);
    }

    .hero .hero-image {
        max-height: 300px;
    }

    .hero .hero-layout > .hero-example {
        padding-left: 16px;
    }
}

/* =========================================
   CORE STRENGTHS — ICON CARDS
========================================= */

.strengths-section {
    padding: 30px 0 75px;
}

/* THREE-COLUMN LAYOUT */

.strengths-section .strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* INDIVIDUAL CARD */

.strengths-section .strength-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
    height: 100%;
    padding: 30px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

/* HOVER EFFECT */

@media (hover: hover) {
    .strengths-section .strength-card:hover {
        transform: translateY(-5px);
        border-color: var(--border-strong);
        background: var(--surface-2);
    }
}

/* ICON CONTAINER */

.strengths-section .strength-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;
    margin-bottom: 25px;

    background: rgba(121, 169, 255, 0.10);
    border: 1px solid rgba(121, 169, 255, 0.18);
    border-radius: 14px;

    color: var(--accent);
}

/* SVG ICON */

.strengths-section .strength-icon svg {
    width: 27px;
    height: 27px;
    flex-shrink: 0;
}

/* CARD TITLE */

.strengths-section .strength-card h3 {
    margin: 0 0 14px;

    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

/* CARD DESCRIPTION */

.strengths-section .strength-card p {
    margin: 0;

    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .strengths-section .strengths-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .strengths-section .strength-card {
        padding: 26px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .strengths-section {
        padding: 20px 0 55px;
    }

    .strengths-section .strengths-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .strengths-section .strength-card {
        padding: 24px;
    }

    .strengths-section .strength-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 20px;
    }

    .strengths-section .strength-card h3 {
        font-size: 1.12rem;
    }

    .strengths-section .strength-card p {
        font-size: 0.92rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .strengths-section .strength-card {
        transition: none;
    }
}

/* Practical example below hero illustration */
.hero .hero-visual .hero-example {
    width: 100%;
    max-width: none;
    margin: 22px 0 0;
    padding: 12px 0 12px 18px;
    border-left: 2px solid var(--border-strong);
}

.hero .hero-visual .hero-example p {
    margin: 0;
    line-height: 1.65;
}

.hero .hero-visual .hero-example-label {
    margin-bottom: 8px !important;
}



/* =========================================
   INTERACTIVE CAREER TIMELINE
========================================= */

.career-section .career-intro {
    max-width: 720px;
    margin-bottom: 34px;
}

.career-section .career-intro h2 {
    margin: 12px 0 16px;
}

.career-section .career-intro p {
    color: var(--muted);
    line-height: 1.75;
}

.career-section .career-chart {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.career-section .career-chart-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.career-section .career-chart-heading h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
}

.career-section .career-chart-heading p,
.career-section .career-chart-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.career-section .career-chart-scroll {
    overflow-x: auto;
    padding-bottom: 12px;
}

.career-section .career-chart-inner {
    min-width: 760px;
}

.career-section .career-chart-years,
.career-section .career-chart-row {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.career-section .career-chart-years {
    margin-bottom: 16px;
}

.career-section .career-year-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.career-section .career-year-grid span {
    text-align: center;
    color: var(--muted);
    font-size: 0.78rem;
}

.career-section .career-chart-row {
    margin-bottom: 18px;
}

.career-section .career-role-label {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
}

.career-section .career-track {
    position: relative;
    height: 48px;
    border-radius: 10px;
    background:
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent calc(100% / 7 - 1px),
            rgba(171, 193, 230, 0.12)
                calc(100% / 7 - 1px),
            rgba(171, 193, 230, 0.12)
                calc(100% / 7)
        ),
        rgba(121, 169, 255, 0.04);
}

.career-section .career-bar {
    position: absolute;
    top: 6px;
    bottom: 6px;

    left: calc(var(--bar-start) / 7 * 100%);
    width: calc(var(--bar-length) / 7 * 100%);

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

    padding: 0 8px;
    border: 2px solid transparent;
    border-radius: 8px;

    color: #0b1020;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;

    transition:
        filter 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.career-section .career-bar-delivery {
    background: #79a9ff;
}

.career-section .career-bar-analyst {
    background: #8de0d0;
}

.career-section .career-bar-support {
    background: #b0bdd4;
}

.career-section .career-bar:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
}

.career-section .career-bar.is-active {
    border-color: #ffffff;
}

.career-section .career-bar:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.career-section .career-bar-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.career-section .career-chart-note {
    margin: 6px 0 28px;
    color: var(--muted);
    font-size: 0.78rem;
}

/* DETAILS PANEL */

.career-section .career-detail {
    padding: 26px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
}

.career-section .career-detail-eyebrow {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.career-section .career-detail-header h3 {
    margin: 10px 0 6px;
    font-size: 1.45rem;
}

.career-section .career-detail-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.career-section .career-detail-summary {
    margin: 24px 0 16px;
    line-height: 1.7;
}

.career-section .career-detail-list {
    margin: 0;
    padding-left: 22px;
}

.career-section .career-detail-list li {
    margin-bottom: 12px;
    color: var(--muted);
    line-height: 1.7;
}

.career-section .career-detail-list li:last-child {
    margin-bottom: 0;
}

/* MOBILE */

@media (max-width: 600px) {
    .career-section .career-chart {
        padding: 20px 16px;
    }

    .career-section .career-chart-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .career-section .career-chart-inner {
        min-width: 650px;
    }

    .career-section .career-chart-years,
    .career-section .career-chart-row {
        grid-template-columns: 155px minmax(0, 1fr);
        gap: 12px;
    }

    .career-section .career-detail {
        padding: 20px;
    }

    .career-section .career-detail-header h3 {
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .career-section .career-bar {
        transition: none;
    }
}

/*-------------------------------------------------------------------------------------------*/


/* =========================================
   INTERACTIVE SKILLS MIND MAP
========================================= */

.skills-mindmap-section .skills-mindmap {
    margin-top: 35px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
}

/* Mind map canvas */

.skills-mindmap-section .skills-map-canvas {
    position: relative;
    width: 100%;
    height: 580px;
    max-width: 1000px;
    margin: 0 auto;
    isolation: isolate;
}

.skills-mindmap-section .skills-map-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: visible;
}

.skills-mindmap-section .skills-map-lines path {
    fill: none;
    stroke: rgba(121, 169, 255, 0.4);
    stroke-width: 2;
    stroke-dasharray: 7 8;
    vector-effect: non-scaling-stroke;
}

/* Center hub */

.skills-mindmap-section .skills-map-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;

    width: 175px;
    height: 175px;
    border-radius: 50%;

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

    background: radial-gradient(
        circle at 30% 25%,
        #294e7d,
        #142844
    );

    border: 2px solid var(--accent);
    box-shadow: 0 0 45px rgba(121, 169, 255, 0.12);
    text-align: center;
}

.skills-mindmap-section .skills-center-icon {
    color: var(--accent-2);
    font-size: 1.6rem;
}

.skills-mindmap-section .skills-map-center strong {
    color: var(--text);
    font-size: 1.35rem;
}

.skills-mindmap-section .skills-map-center > span:last-child {
    color: var(--muted);
    font-size: 0.75rem;
}

/* Branch nodes */

.skills-mindmap-section .skills-map-node {
    position: absolute;
    z-index: 3;

    width: 160px;
    min-height: 88px;
    padding: 14px 12px;

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

    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 16px;

    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;

    transform: translate(-50%, -50%);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.skills-mindmap-section .skills-node-icon {
    font-size: 1.3rem;
    color: var(--accent-2);
}

.skills-mindmap-section .skills-map-node:hover,
.skills-mindmap-section .skills-map-node.is-active {
    background: #25466d;
    border-color: var(--accent);
    box-shadow: 0 0 22px rgba(121, 169, 255, 0.18);
}

.skills-mindmap-section .skills-map-node:focus-visible {
    outline: 3px solid var(--accent-2);
    outline-offset: 4px;
}

/* Node positions */

.skills-mindmap-section .node-business {
    top: 16.4%;
    left: 50%;
}

.skills-mindmap-section .node-delivery {
    top: 28.9%;
    left: 82.5%;
}

.skills-mindmap-section .node-testing {
    top: 71.1%;
    left: 82.5%;
}

.skills-mindmap-section .node-technical {
    top: 83.6%;
    left: 50%;
}

.skills-mindmap-section .node-communication {
    top: 71.1%;
    left: 17.5%;
}

.skills-mindmap-section .node-solving {
    top: 28.9%;
    left: 17.5%;
}

/* Details panel */

.skills-mindmap-section .skills-map-details {
    max-width: 850px;
    margin: 12px auto 0;
    padding: 28px;

    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
}

.skills-mindmap-section .skills-detail-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.skills-mindmap-section .skills-detail-eyebrow {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.skills-mindmap-section .skills-detail-heading h3 {
    margin: 10px 0 0;
    font-size: 1.4rem;
}

.skills-mindmap-section .skills-detail-indicator {
    color: var(--accent-2);
    font-size: 1.6rem;
}

.skills-mindmap-section #skillsDetailDescription {
    margin: 18px 0;
    color: var(--muted);
    line-height: 1.75;
}

.skills-mindmap-section .skills-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-mindmap-section .skills-detail-tags span {
    padding: 8px 12px;
    background: rgba(121, 169, 255, 0.1);
    border: 1px solid rgba(121, 169, 255, 0.2);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.82rem;
}

.skills-mindmap-section .skills-detail-example {
    margin-top: 24px;
    padding: 18px;
    background: rgba(121, 169, 255, 0.06);
    border-left: 3px solid var(--accent-2);
    border-radius: 0 10px 10px 0;
}

.skills-mindmap-section .skills-detail-example strong {
    color: var(--accent-2);
    font-size: 0.85rem;
}

.skills-mindmap-section .skills-detail-example p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.skills-mindmap-section .skills-mindmap-note {
    max-width: 850px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.75;
}

/* Tablet and mobile */

@media (max-width: 760px) {
    .skills-mindmap-section .skills-mindmap {
        padding: 18px;
    }

    .skills-mindmap-section .skills-map-canvas {
        height: 460px;
    }

    .skills-mindmap-section .skills-map-center {
        width: 130px;
        height: 130px;
    }

    .skills-mindmap-section .skills-map-node {
        width: 115px;
        min-height: 74px;
        padding: 10px 7px;
        font-size: 0.75rem;
    }

    .skills-mindmap-section .skills-map-details {
        padding: 20px;
    }
}

@media (max-width: 520px) {
    .skills-mindmap-section .skills-map-canvas {
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding-top: 110px;
    }

    .skills-mindmap-section .skills-map-lines {
        display: none;
    }

    .skills-mindmap-section .skills-map-center {
        top: 0;
        left: 50%;
        width: 100px;
        height: 100px;
        transform: translateX(-50%);
        gap: 4px;
    }

    .skills-mindmap-section .skills-map-center strong {
        font-size: 1rem;
    }

    .skills-mindmap-section .skills-map-center > span:last-child {
        font-size: 0.6rem;
    }

    .skills-mindmap-section .skills-map-node {
        position: static;
        transform: none;
        width: 100%;
        min-height: 82px;
    }

    .skills-mindmap-section .skills-detail-heading h3 {
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skills-mindmap-section .skills-map-node {
        transition: none;
    }
}
/* -------- Skills Mindmap Section End -------- */

/* =========================================
   EDUCATION & CERTIFICATION SHOWCASE
========================================= */

.credentials-section .credentials-showcase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 36px;
}

/* Credential cards */

.credentials-section .credential-showcase-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 30px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 16px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.credentials-section .certification-card {
    border-top-color: var(--accent-2);
}

@media (hover: hover) {
    .credentials-section .credential-showcase-card:hover {
        transform: translateY(-5px);
        border-color: var(--border-strong);
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
    }
}

/* Top section */

.credentials-section .credential-showcase-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.credentials-section .credential-showcase-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;
    flex-shrink: 0;

    color: var(--accent);
    background: rgba(121, 169, 255, 0.1);
    border: 1px solid rgba(121, 169, 255, 0.2);
    border-radius: 14px;
}

.credentials-section .certification-card
.credential-showcase-icon {
    color: var(--accent-2);
    background: rgba(141, 224, 208, 0.1);
    border-color: rgba(141, 224, 208, 0.2);
}

.credentials-section .credential-showcase-icon svg {
    width: 30px;
    height: 30px;
}

.credentials-section .credential-showcase-type {
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: right;
}

/* Main content */

.credentials-section .credential-showcase-body {
    flex: 1;
    padding-bottom: 28px;
}

.credentials-section .credential-showcase-body h3 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.35;
}

.credentials-section .credential-showcase-specialization {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.95rem;
}

.credentials-section .credential-showcase-institution {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer badges */

.credentials-section .credential-showcase-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.credentials-section .credential-showcase-footer span {
    display: inline-flex;
    align-items: center;

    padding: 7px 12px;

    background: rgba(121, 169, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 8px;

    color: var(--accent-2);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive */

@media (max-width: 700px) {
    .credentials-section .credentials-showcase {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .credentials-section .credential-showcase-card {
        padding: 24px;
    }

    .credentials-section .credential-showcase-top {
        margin-bottom: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .credentials-section .credential-showcase-card {
        transition: none;
    }
}
/* ----------   END OF CREDENTIALS SECTION ---------- */



/* =========================================
   LIGHT THEME — SOFT IVORY
========================================= */

:root[data-theme="light"] {
    color-scheme: light;

    --bg: #dce4ec;
    --surface: #edf1f5;
    --surface-2: #d2dce7;

    --text: #243447;
    --muted: #526477;

    --accent: #285ba8;
    --accent-2: #087e78;

    --border: rgba(36, 52, 71, 0.14);
    --border-strong: rgba(40, 91, 168, 0.35);
}



/* ----------   END OF LIGHT THEME ---------- */


/* =========================================
   LIGHT / DARK THEME TOGGLE
========================================= */

.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    flex-shrink: 0;

    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 50%;

    background: var(--surface-2);
    color: var(--accent);

    font-size: 1.3rem;
    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.theme-toggle:hover {
    background: var(--surface);
    border-color: var(--accent);
    transform: rotate(15deg);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Dark mode: show sun */

.theme-icon-sun {
    display: inline-block;
}

.theme-icon-moon {
    display: none;
}

/* Light mode: show moon */

:root[data-theme="light"] .theme-icon-sun {
    display: none;
}

:root[data-theme="light"] .theme-icon-moon {
    display: inline-block;
}

/* Mobile adjustments */

@media (max-width: 600px) {
    .theme-toggle {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle {
        transition: none;
    }
}
/* ----------   END OF LIGHT / DARK THEME TOGGLE ---------- */


/* =========================================
   LIGHT THEME — GLOBAL FOUNDATION
========================================= */

:root[data-theme="light"] body {
    background: var(--bg);
    color: var(--text);
}

/* General section text */

:root[data-theme="light"] .section-heading h2,
:root[data-theme="light"] .section-heading h3 {
    color: var(--text);
}

:root[data-theme="light"] .section-intro,
:root[data-theme="light"] .section-heading p {
    color: var(--muted);
}

/* Credential cards */

:root[data-theme="light"]
.credentials-section .credential-showcase-card {
    background: var(--surface);
    border-color: var(--border);
    border-top-color: var(--accent);
}

:root[data-theme="light"]
.credentials-section .certification-card {
    border-top-color: var(--accent-2);
}

/* Skills section containers */

:root[data-theme="light"]
.skills-mindmap-section .skills-mindmap {
    background: var(--surface);
    border-color: var(--border);
}

:root[data-theme="light"]
.skills-mindmap-section .skills-map-details {
    background: var(--surface-2);
    border-color: var(--border);
}

/* Skills map center */

:root[data-theme="light"]
.skills-mindmap-section .skills-map-center {
    background: linear-gradient(135deg, #e7efff, #d6e5fb);
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(50, 104, 203, 0.1);
}

/* Skills map nodes */

:root[data-theme="light"]
.skills-mindmap-section .skills-map-node {
    background: #ffffff;
    color: var(--text);
    border-color: var(--border-strong);
}

:root[data-theme="light"]
.skills-mindmap-section .skills-map-node:hover,
:root[data-theme="light"]
.skills-mindmap-section .skills-map-node.is-active {
    background: #e7efff;
    border-color: var(--accent);
}

:root[data-theme="light"]
.skills-mindmap-section .skills-map-lines path {
    stroke: rgba(50, 104, 203, 0.4);
}



/* =========================================
   COMFORTABLE THEME TRANSITIONS
========================================= */

html.theme-transitioning,
html.theme-transitioning body,
html.theme-transitioning .site-header,
html.theme-transitioning .section,
html.theme-transitioning .credential-showcase-card,
html.theme-transitioning .skills-mindmap,
html.theme-transitioning .skills-map-node,
html.theme-transitioning .skills-map-center,
html.theme-transitioning .skills-map-details {
    transition:
        background-color 0.45s ease,
        color 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease;
}

@media (prefers-reduced-motion: reduce) {
    html.theme-transitioning,
    html.theme-transitioning body,
    html.theme-transitioning * {
        transition: none !important;
    }
}

/* =========================================================
   20. CROSS-PAGE DESIGN CONSISTENCY — FINAL NORMALIZATION
   Keep this section last so shared typography and themes win.
   ========================================================= */

:root {
    --font-body: "Inter", Arial, Helvetica, sans-serif;
    --font-heading: "Bricolage Grotesque", "Inter", Arial, sans-serif;
    --type-page-title: clamp(2.35rem, 4.5vw, 3.75rem);
    --type-section-title: clamp(1.65rem, 2.7vw, 2.15rem);
    --type-card-title: 1.125rem;
    --type-body: 1rem;
    --type-small: 0.875rem;
    --type-eyebrow: 0.78rem;
    --on-accent: #091226;
    --header-bg: rgba(11, 16, 32, 0.94);
    --mobile-menu-bg: #0b1020;
    --chip-bg: rgba(121, 169, 255, 0.10);
    --chip-text: #d4e2ff;
    --case-accent: var(--accent);
    --case-accent-strong: var(--accent);
    --case-accent-soft: rgba(121, 169, 255, 0.12);
    --case-accent-soft-strong: rgba(121, 169, 255, 0.18);
    --case-border: var(--border);
    --case-border-soft: var(--border);
    --case-border-strong: var(--border-strong);
    --case-surface: var(--surface);
    --case-surface-raised: var(--surface-2);
    --case-muted-feature: var(--muted);
    --case-muted-quiet: var(--muted);
}

:root[data-theme="light"] {
    --on-accent: #ffffff;
    --header-bg: rgba(220, 228, 236, 0.96);
    --mobile-menu-bg: #edf1f5;
    --chip-bg: rgba(40, 91, 168, 0.11);
    --chip-text: #234d8b;
    --case-accent-soft: rgba(40, 91, 168, 0.10);
    --case-accent-soft-strong: rgba(40, 91, 168, 0.16);
}

html { background-color: var(--bg); }
body {
    font-family: var(--font-body);
    font-size: var(--type-body);
    color: var(--text);
}
:root[data-theme="light"] body { background: var(--bg); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--text); }

/* All primary page titles share a common size. */
.hero h1,
.case-hero h1,
.fd-hero h1,
.iot-hero h1,
.mon-hero h1 {
    font-size: var(--type-page-title);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

/* Section titles use one hierarchy across home and case studies. */
.section-heading h2,
.career-section .career-intro h2,
.case-section h2,
.fd-section h2,
.iot-section-heading h2,
.mon-heading h2 {
    font-size: var(--type-section-title);
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.project-card h3,
.card h3,
.case-section h3,
.fd-section h3,
.aws-team-card h3,
.etl-outcome-card h3,
.artifact-card h3,
.migration-scenario h3,
.contribution-card h3,
.fd-card h3,
.iot-integration-card h3,
.mon-tool-card h3 {
    font-size: var(--type-card-title);
    line-height: 1.4;
}

.eyebrow,
.case-label,
.fd-label,
.iot-eyebrow,
.mon-eyebrow {
    color: var(--accent-2);
    font-size: var(--type-eyebrow);
    font-weight: 800;
    letter-spacing: 0.12em;
}

.section-intro,
.section-description,
.case-intro {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
    opacity: 1;
}

/* Consistent chrome in both themes, including mobile navigation. */
.site-header { background: var(--header-bg); border-bottom-color: var(--border); }
.nav-links { color: var(--text); }
.nav-links a { color: var(--muted); }
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

@media (max-width: 900px) {
    .nav-links { background: var(--mobile-menu-bg); }
}

/* Common buttons and small labels. */
.button-primary,
.buttons .button-primary,
.home-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}
.button-primary:hover,
.buttons .button-primary:hover,
.home-btn.primary:hover {
    background: var(--accent);
    border-color: var(--accent-2);
    color: var(--on-accent);
    filter: brightness(1.06);
}
.tag {
    background: var(--chip-bg);
    color: var(--chip-text);
}
.availability,
.value-strip { background: var(--surface); }

/* Harmonize case-study surfaces without changing their layout. */
.case-panel,
.meta-card,
.fd-meta-card,
.iot-meta-card,
.mon-meta-card,
.aws-toc,
.etl-toc,
.idm-toc,
.fd-toc,
.iot-sidebar,
.mon-sidebar {
    color: var(--text);
    border-color: var(--border);
}

/* Restore contrast for content that uses muted or accent labels. */
.case-section p,
.fd-section p,
.iot-content p,
.mon-content p,
.case-section li,
.fd-section li,
.iot-content li,
.mon-content li { color: var(--muted); }

/* Existing diagram artwork is intentionally left dark. */

/* Skills: avoid hard-coded bright white in the soft-light theme. */
:root[data-theme="light"] .skills-mindmap-section .skills-map-node {
    background: var(--surface);
    color: var(--text);
}
:root[data-theme="light"] .skills-mindmap-section .skills-map-node:hover,
:root[data-theme="light"] .skills-mindmap-section .skills-map-node.is-active {
    background: var(--surface-2);
}

/* Accessible visible focus, without changing page layouts. */
:where(a, button, summary):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    :root {
        --type-page-title: clamp(2.1rem, 8vw, 2.7rem);
        --type-section-title: clamp(1.55rem, 6vw, 1.9rem);
    }
}


/* =========================================
   HEADER LOGO — FIXED POSITION
========================================= */

.site-header .brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    flex-shrink: 0;
}

/* Both logos occupy exactly the same position */
.site-header .brand .brand-logo {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
    max-width: none;

    object-fit: contain;
    margin: 0;
}

/* Dark mode */
:root:not([data-theme="light"]) .site-header .brand .logo-dark {
    display: block;
}

:root:not([data-theme="light"]) .site-header .brand .logo-light {
    display: none;
}

/* Light mode */
:root[data-theme="light"] .site-header .brand .logo-dark {
    display: none;
}

:root[data-theme="light"] .site-header .brand .logo-light {
    display: block;
}

/* Mobile */
@media (max-width: 768px) {
    .site-header .brand {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }
}


/* =========================================
   COMPACT SKILLS MIND MAP
========================================= */

.skills-map-compact {
    width: 100%;
    max-width: 760px;
    height: 420px;
    margin: 0 auto;
    position: relative;
}

/* Center circle */
.skills-map-compact .skills-center {
    width: 140px;
    height: 140px;
}

/* Skill cards */
.skills-map-compact .skill-node {
    width: 135px;
    min-height: 75px;
    padding: 12px;
    border-radius: 14px;
}

/* Smaller skill icons */
.skills-map-compact .skill-node-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

/* Skill labels */
.skills-map-compact .skill-node-title {
    font-size: 13px;
    line-height: 1.35;

}

/* Keep details close to the map */
.skills-map-compact + .skill-details {
    max-width: 760px;
    margin: 16px auto 0;
}

/* Mobile */
@media (max-width: 768px) {
    .skills-map-compact {
        max-width: 100%;
        height: auto;
        min-height: 360px;
    }

    .skills-map-compact .skills-center {
        width: 110px;
        height: 110px;
    }

    .skills-map-compact .skill-node {
        width: 105px;
        min-height: 65px;
        padding: 8px;
    }

    .skills-map-compact .skill-node-title {
        font-size: 11px;
    }
}
/* =========================================
   SKILLS MIND MAP — COMPACT LAYOUT
========================================= */

.skills-mindmap {
    max-width: 900px;
    margin: 0 auto;
}

.skills-map-canvas {
    position: relative;
    width: 100%;
    height: 480px;
    margin: 0 auto;
}

.skills-map-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Center hub */
.skills-map-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 145px;
    height: 145px;
}

/* All six nodes */
.skills-map-node {
    position: absolute;
    transform: translate(-50%, -50%);

    width: 140px;
    min-height: 78px;
    padding: 12px 10px;
    font-size: 13px;
    line-height: 1.35;
}

/* Node positions */
.node-business {
    top: 17.1%;
    left: 50%;
}

.node-delivery {
    top: 29.2%;
    left: 74.5%;
}

.node-testing {
    top: 70.8%;
    left: 74.5%;
}

.node-technical {
    top: 82.9%;
    left: 50%;
}

.node-communication {
    top: 70.8%;
    left: 25.5%;
}

.node-solving {
    top: 29.2%;
    left: 25.5%;
}

/* Smaller icons */
.skills-node-icon {
    font-size: 19px;
    margin-bottom: 4px;
}

/* Details panel */
.skills-map-details {
    max-width: 760px;
    margin: 8px auto 0;
}

/* Footer note */
.skills-mindmap-note {
    max-width: 760px;
    margin: 20px auto 0;
}

/* Mobile: compact grid instead of overlapping nodes */
@media (max-width: 640px) {
    .skills-map-canvas {
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 12px 0;
    }

    .skills-map-lines,
    .skills-map-center {
        display: none;
    }

    .skills-map-node {
        position: static;
        transform: none;
        width: 100%;
        min-height: 80px;
    }

    .skills-map-details {
        margin-top: 16px;
    }
}


/* =========================================================
   RPG SKILL TREE — V2
   Midnight & Ivory Theme Support
========================================================= */

/* 01. SECTION */

.skills-tree-section {
    scroll-margin-top: 100px;
}

.skills-tree {
    --tree-gold: #e7bc59;
    --tree-gold-soft: rgba(231, 188, 89, 0.15);
    --tree-line: rgba(150, 170, 205, 0.35);
    --tree-node-bg: #1b2a42;
    --tree-node-border: #516684;
    --tree-board-bg: #0c1424;

    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px;

    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

/* 02. LIGHT THEME */

:root[data-theme="light"] .skills-tree {
    --tree-gold: #a7751b;
    --tree-gold-soft: rgba(167, 117, 27, 0.14);
    --tree-line: rgba(64, 91, 130, 0.3);
    --tree-node-bg: #e3eaf2;
    --tree-node-border: #a5b7cd;
    --tree-board-bg: #edf1f5;
}

/* 03. HEADER */

.skills-tree-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.skills-tree-label {
    display: block;
    margin-bottom: 8px;

    color: var(--tree-gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.skills-tree-header h3 {
    margin: 0;
    color: var(--text);
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.3;
}

.skills-tree-hint {
    color: var(--muted);
    font-size: 0.8rem;
}

/* 04. MAIN SKILL TREE BOARD */

.skills-tree-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;

    position: relative;
    padding: 30px 16px;

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

    background:
        radial-gradient(
            ellipse at 50% 45%,
            var(--tree-gold-soft),
            transparent 70%
        ),
        var(--tree-board-bg);

    overflow: hidden;
}

/* Subtle decorative background grid */

.skills-tree-board::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(
            var(--tree-line) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            var(--tree-line) 1px,
            transparent 1px
        );

    background-size: 80px 80px;
    opacity: 0.07;
}

/* 05. SKILL BRANCHES */

.skill-branch {
    position: relative;
    z-index: 1;
    min-width: 0;
    text-align: center;
}

.skill-branch h4 {
    margin: 0 0 26px;

    color: var(--tree-gold);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* 06. NODE LAYOUT */

.skill-branch-nodes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;

    gap: 34px 10px;
    position: relative;

    padding: 12px 0 20px;
}

/*
   Remove previous grid connection lines.

   The next version will use SVG paths connecting
   individual nodes, rather than CSS pseudo-elements.
*/

.skill-branch-nodes::before,
.skill-branch-nodes::after {
    content: none;
    display: none;
}

/* 07. ABILITY BUTTONS */

.skill-ability {
    appearance: none;

    position: relative;
    z-index: 2;

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

    gap: 9px;
    width: 100%;
    min-width: 0;
    padding: 0;

    border: none;
    background: transparent;
    color: var(--text);

    font: inherit;
    cursor: pointer;
}

/* 08. CIRCULAR ABILITY ICONS */

.ability-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;
    flex-shrink: 0;

    border: 2px solid var(--tree-node-border);
    border-radius: 50%;

    background: var(--tree-node-bg);
    color: var(--muted);

    font-size: 1.6rem;
    line-height: 1;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12);

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

/* 09. ABILITY LABELS */

.ability-name {
    display: block;
    max-width: 105px;

    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

/* 10. HOVER EFFECTS */

.skill-ability:hover .ability-icon {
    transform: scale(1.08);

    border-color: var(--tree-gold);
    color: var(--tree-gold);

    box-shadow:
        0 0 0 4px var(--tree-gold-soft),
        0 0 20px var(--tree-gold-soft);
}

.skill-ability:hover .ability-name {
    color: var(--text);
}

/* 11. SELECTED ABILITY */

.skill-ability.is-selected .ability-icon {
    border-color: var(--tree-gold);
    background: var(--tree-gold-soft);
    color: var(--tree-gold);

    box-shadow:
        0 0 0 5px var(--tree-gold-soft),
        0 0 24px var(--tree-gold-soft);
}

.skill-ability.is-selected .ability-name {
    color: var(--text);
    font-weight: 700;
}

/* 12. KEYBOARD ACCESSIBILITY */

.skill-ability:focus-visible {
    outline: 2px solid var(--tree-gold);
    outline-offset: 6px;
    border-radius: 8px;
}

/* 14. DETAILS PANEL */

.skill-ability-details {
    margin-top: 18px;
    padding: 24px;

    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-2);
}

.skill-detail-category {
    display: block;
    margin-bottom: 8px;

    color: var(--tree-gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.skill-ability-details h3 {
    margin: 0 0 10px;

    color: var(--text);
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    line-height: 1.3;
}

.skill-ability-details > p {
    margin: 0 0 18px;

    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 15. SKILL TAGS */

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

.skill-ability-tags span {
    padding: 6px 11px;

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

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

    font-size: 0.75rem;
    line-height: 1.4;
}

/* 16. REAL-WORLD EXAMPLE */

.skill-ability-example {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.skill-ability-example strong {
    display: block;
    margin-bottom: 8px;

    color: var(--text);
    font-size: 0.85rem;
    font-weight: 700;
}

.skill-ability-example p {
    margin: 0;

    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* 17. TABLET */

@media (max-width: 900px) {
    .skills-tree {
        padding: 18px;
    }

    .skills-tree-board {
        gap: 12px;
        padding: 24px 10px;
    }

    .skill-branch-nodes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 10px;
    }

    .ability-icon {
        width: 52px;
        height: 52px;
        font-size: 1.35rem;
    }

    .ability-name {
        font-size: 0.7rem;
    }
}

/* 18. MOBILE */

@media (max-width: 640px) {
    .skills-tree {
        padding: 14px;
        border-radius: 16px;
    }

    .skills-tree-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 18px;
    }

    .skills-tree-board {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 20px 12px;
    }

    .skill-branch {
        padding-bottom: 20px;
        border-bottom: 1px solid var(--border);
    }

    .skill-branch:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

    .skill-branch h4 {
        margin-bottom: 18px;
    }

    .skill-branch-nodes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px 8px;
        padding: 8px 0;
    }

    .ability-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .ability-name {
        max-width: 95px;
        font-size: 0.68rem;
    }

    .skill-ability-details {
        margin-top: 14px;
        padding: 18px;
    }

    .skill-ability-details > p {
        font-size: 0.9rem;
    }
}

/* 19. SMALL MOBILE SCREENS */

@media (max-width: 380px) {
    .skills-tree {
        padding: 10px;
    }

    .skills-tree-board {
        padding: 18px 6px;
    }

    .ability-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .ability-name {
        font-size: 0.63rem;
    }
}

/* 20. REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .ability-icon {
        transition: none;
    }

    .skill-ability:hover .ability-icon {
        transform: none;
    }
}
/* =========================================
   RPG SKILL TREE — SVG CONNECTIONS
========================================= */

.skills-tree-board {
    position: relative;
}

.skill-tree-connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.skill-branch {
    position: relative;
    z-index: 1;
}

.skill-tree-connections line {
    stroke-linecap: round;
}

/* =========================================================
   RPG SKILL TREE — BRANCHING LAYOUT V3
========================================================= */

@media (min-width: 901px) {

    .skills-tree-board {
        grid-template-columns: 1fr 1.1fr 1fr;
        gap: 12px;
        padding: 34px 20px 46px;
    }

    .skill-branch-nodes {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(3, 100px);
        gap: 0 8px;
        align-items: center;
        padding: 0;
    }

    /* Reset previous staggered positioning */
    .skill-branch-nodes .skill-ability {
        transform: none;
    }

    /* BUSINESS — left branching cluster */

    .branch-business .skill-ability:nth-child(1) {
        grid-column: 1;
        grid-row: 2;
    }

    .branch-business .skill-ability:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .branch-business .skill-ability:nth-child(3) {
        grid-column: 3;
        grid-row: 1;
    }

    .branch-business .skill-ability:nth-child(4) {
        grid-column: 1;
        grid-row: 3;
    }

    .branch-business .skill-ability:nth-child(5) {
        grid-column: 2;
        grid-row: 2;
    }

    .branch-business .skill-ability:nth-child(6) {
        grid-column: 3;
        grid-row: 3;
    }

    /* DELIVERY — central branching cluster */

    .branch-delivery .skill-ability:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .branch-delivery .skill-ability:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .branch-delivery .skill-ability:nth-child(3) {
        grid-column: 3;
        grid-row: 2;
    }

    .branch-delivery .skill-ability:nth-child(4) {
        grid-column: 1;
        grid-row: 3;
    }

    .branch-delivery .skill-ability:nth-child(5) {
        grid-column: 2;
        grid-row: 2;
    }

    .branch-delivery .skill-ability:nth-child(6) {
        grid-column: 3;
        grid-row: 3;
    }

    /* TECHNICAL — right branching cluster */

    .branch-technical .skill-ability:nth-child(1) {
        grid-column: 1;
        grid-row: 2;
    }

    .branch-technical .skill-ability:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .branch-technical .skill-ability:nth-child(3) {
        grid-column: 3;
        grid-row: 1;
    }

    .branch-technical .skill-ability:nth-child(4) {
        grid-column: 1;
        grid-row: 3;
    }

    .branch-technical .skill-ability:nth-child(5) {
        grid-column: 2;
        grid-row: 2;
    }

    .branch-technical .skill-ability:nth-child(6) {
        grid-column: 3;
        grid-row: 3;
    }

    /* Make the central branch more prominent */

    /* Coordination is slightly larger, but not permanently selected */
        .branch-delivery .skill-ability[data-ability="coordination"] .ability-icon {
            width: 72px;
            height: 72px;
            border-color: var(--tree-node-border);
        }

        .branch-delivery .skill-ability[data-ability="coordination"].is-selected .ability-icon {
            border-color: var(--tree-gold);
        }
}


/* =========================================================
   RPG SKILL TREE — LABEL READABILITY FIX
========================================================= */

/* Keep ability labels visually above connection lines */
.skill-ability {
    position: relative;
    z-index: 2;
}

/* Give labels a subtle background to hide lines behind text */
.ability-name {
    position: relative;
    z-index: 3;

    padding: 3px 5px;
    border-radius: 5px;

    background: transparent;
    color: var(--muted);

    line-height: 1.45;
    text-align: center;
}

.skill-ability.is-selected .ability-name {
    color: var(--text);
    font-weight: 700;
}

/* =========================================
   RPG SKILL TREE — SELECTION POLISH
========================================= */

.skill-tree-connections line {
    stroke: var(--tree-line);
    stroke-width: 2;
    opacity: 0.6;
    transition: stroke 0.2s ease, opacity 0.2s ease;
}

.skill-tree-connections line.is-highlighted {
    stroke: var(--tree-gold);
    stroke-width: 3;
    opacity: 1;
    filter: drop-shadow(0 0 3px var(--tree-gold-soft));
}

/* Only selected abilities should glow */
.skill-ability:not(.is-selected) .ability-icon {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.skill-ability.is-selected .ability-icon {
    border-color: var(--tree-gold);
    background: var(--tree-gold-soft);
    color: var(--tree-gold);
    box-shadow:
        0 0 0 4px var(--tree-gold-soft),
        0 0 18px var(--tree-gold-soft);
}

/* End of RPG SKILL TREE — SELECTION POLISH---------------------------------------------------------------------------------- */



/* Hero recruiter contact link */

.hero-contact-link {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-contact-link:hover {
    color: var(--accent);
}

.hero-contact-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
    border-radius: 3px;
}

/* End of Hero recruiter contact link */


.aws-workflow {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.aws-workflow-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 16px;
}
