:where(html){--csstools-color-scheme--light:initial;--link:var(--indigo-7);--link-visited:var(--purple-7);--text-1:var(--gray-12);--text-2:var(--gray-7);--surface-1:var(--gray-0);--surface-2:var(--gray-2);--surface-3:var(--gray-3);--surface-4:var(--gray-4);--scrollthumb-color:var(--gray-7);-webkit-text-size-adjust:none;accent-color:var(--brand,var(--link));background-color:var(--surface-1);block-size:100%;caret-color:var(--brand,var(--link));color:var(--text-1);color-scheme:light;font-family:var(--font-system-ui);line-height:var(--font-lineheight-3);scrollbar-color:var(--scrollthumb-color) transparent}@media (dynamic-range:high) or (color-gamut:p3){@supports (color:color(display-p3 0 0 0)){:where(html){--link:color(display-p3 .1 .39 1);--link-visited:color(display-p3 .6 .2 1)}}}:where(html) :where(dialog){background-color:var(--surface-1)}:where(html) :where(button,.btn){--_highlight:var(--_highlight-light);--_bg:var(--_bg-light);--_ink-shadow:var(--_ink-shadow-light)}:where(html) :where(button,.btn) :where([type=reset]){--_text:var(--red-6);--_border:var(--red-3)}:where(html) [disabled]:where(button,input[type=button],.btn){--_text:var(--gray-6)}:where(html) [disabled]:where(button,input[type=submit],.btn){--_text:var(--gray-6)}:where(html) [disabled]:where(button,input[type=reset],.btn){--_text:var(--gray-6)}:where(html) :where(textarea,select,input:not([type=button],[type=submit],[type=reset])){background-color:var(--surface-2)}@media (prefers-color-scheme:dark){:where(html){--csstools-color-scheme--light: ;--link:var(--indigo-3);--link-visited:var(--purple-3);--text-1:var(--gray-1);--text-2:var(--gray-4);--surface-1:var(--gray-9);--surface-2:var(--gray-8);--surface-3:var(--gray-7);--surface-4:var(--gray-6);--scrollthumb-color:var(--gray-6);--shadow-strength:10%;--shadow-color:220 40% 2%;color-scheme:dark}}:where(a[href]){color:var(--brand,var(--link))}:where(a[href]):where(:visited){color:var(--link-visited)}:focus-visible{outline-color:var(--brand,var(--link))}*,:after,:before{box-sizing:border-box}:where(:not(dialog)){margin:0}:where(:not(fieldset,progress,meter)){background-origin:border-box;background-repeat:no-repeat;border-style:solid;border-width:0}@media (prefers-reduced-motion:no-preference){:where(html){scroll-behavior:smooth}}@media (prefers-reduced-motion:no-preference){:where(:focus-visible){transition:outline-offset 145ms var(--ease-2)}:where(:not(:active):focus-visible){transition-duration:.25s}}:where(:not(:active):focus-visible){outline-offset:5px}:where(body){min-block-size:100%}:where(h1,h2,h3,h4,h5,h6){text-wrap:balance;font-weight:var(--font-weight-9);line-height:var(--font-lineheight-1)}:where(h1){font-size:var(--font-size-8);max-inline-size:var(--size-header-1)}:where(h2){font-size:var(--font-size-6);max-inline-size:var(--size-header-2)}:where(h3){font-size:var(--font-size-5)}:where(h4){font-size:var(--font-size-4)}:where(h5){font-size:var(--font-size-3)}:where(h3,h4,h5,h6,dt){max-inline-size:var(--size-header-3)}:where(p,ul,ol,dl,h6){font-size:var(--font-size-2)}:where(a,u,ins,abbr){text-underline-offset:1px}@supports (-moz-appearance:none){:where(a,u,ins,abbr){text-underline-offset:2px}}:where(a[href],area,button,input:not([type=text],[type=email],[type=number],[type=password],[type=""],[type=tel],[type=url]),label[for],select,summary,[tabindex]:not([tabindex*="-"],pre)){cursor:pointer}:where(a[href],area,button,input,label[for],select,summary,textarea,[tabindex]:not([tabindex*="-"])){-webkit-tap-highlight-color:transparent;touch-action:manipulation}:where(a):where([href]){text-decoration-color:var(--indigo-2)}:where(a):where([href]):where(:visited){text-decoration-color:var(--purple-2)}:where(a):where(:not(:hover)){text-decoration:inherit}:where(img,svg,video,canvas,audio,iframe,embed,object){display:block}:where(img,svg,video){block-size:auto;max-inline-size:100%}:where(input,button,textarea,select),:where(input[type=file])::-webkit-file-upload-button{color:inherit;font:inherit;font-size:inherit;letter-spacing:inherit}::placeholder{color:var(--gray-7);opacity:.75}:where(input:not([type=range]),textarea){padding-block:var(--size-1);padding-inline:var(--size-2)}:where(select){field-sizing:content;padding-block:.75ch;padding-inline:var(--size-relative-4) 0}:where(textarea,select,input:not([type=button],[type=submit],[type=reset])){background-color:var(--surface-2);border-radius:var(--radius-2)}:where(textarea){field-sizing:content;min-block-size:2lh;min-inline-size:var(--size-content-1);resize:vertical}:where(input[type=checkbox],input[type=radio]){block-size:var(--size-3);inline-size:var(--size-3)}:where(svg:not([width])){inline-size:var(--size-10)}:where(code,kbd,samp,pre){font-family:var(--font-monospace-code),monospace}:where(:not(pre)>code,kbd){white-space:nowrap}:where(pre){direction:ltr;max-inline-size:max-content;min-inline-size:0;white-space:pre;writing-mode:lr}:where(:not(pre)>code){background:var(--surface-2);border-radius:var(--radius-2);padding:var(--size-1) var(--size-2);writing-mode:lr}:where(kbd,var){border-color:var(--surface-4);border-radius:var(--radius-2);border-width:var(--border-size-1);padding:var(--size-1) var(--size-2)}:where(mark){border-radius:var(--radius-2);padding-inline:var(--size-1)}:where(ol,ul){padding-inline-start:var(--size-8)}:where(li){padding-inline-start:var(--size-2)}:where(li,dd,figcaption){max-inline-size:var(--size-content-2)}:where(p){text-wrap:pretty;max-inline-size:var(--size-content-3)}:where(dt,summary){font-weight:var(--font-weight-7)}:where(dt:not(:first-of-type)){margin-block-start:var(--size-5)}:where(small){font-size:max(.5em,var(--font-size-0));max-inline-size:var(--size-content-1)}:where(hr){background-color:var(--surface-3);height:var(--border-size-2);margin-block:var(--size-fluid-5)}:where(figure){display:grid;gap:var(--size-2);place-items:center}:where(figure)>:where(figcaption){text-wrap:balance;font-size:var(--font-size-1)}:where(blockquote,:not(blockquote)>cite){border-inline-start-width:var(--border-size-3)}:where(blockquote){display:grid;gap:var(--size-3);max-inline-size:var(--size-content-2);padding-block:var(--size-3);padding-inline:var(--size-4)}:where(:not(blockquote)>cite){padding-inline-start:var(--size-2)}:where(summary){background:var(--surface-3);border-radius:var(--radius-2);margin:calc(var(--size-2)*-1) calc(var(--size-3)*-1);padding:var(--size-2) var(--size-3)}:where(details){background:var(--surface-2);border-radius:var(--radius-2);padding-block:var(--size-2);padding-inline:var(--size-3)}:where(details[open]>summary){border-end-end-radius:0;border-end-start-radius:0;margin-bottom:var(--size-2)}:where(fieldset){border:var(--border-size-1) solid var(--surface-4);border-radius:var(--radius-2)}:where(del){background:var(--red-9);color:var(--red-2)}:where(ins){background:var(--green-9);color:var(--green-1)}:where(abbr){text-decoration-color:var(--blue-5)}:where(dialog){background-color:var(--surface-1);border-radius:var(--radius-3);box-shadow:var(--shadow-6);color:inherit}:where(menu){display:flex;gap:var(--size-3);padding-inline-start:0}:where(sup){font-size:.5em}:where(table){--nice-inner-radius:calc(var(--radius-3) - 2px);background:var(--surface-2);border:1px solid var(--surface-2);border-radius:var(--radius-3);width:fit-content}:where(table:not(:has(tfoot)) tr:last-child td:first-child){border-end-start-radius:var(--nice-inner-radius)}:where(table:not(:has(tfoot)) tr:last-child td:last-child){border-end-end-radius:var(--nice-inner-radius)}:where(table thead tr:first-child th:first-child){border-start-start-radius:var(--nice-inner-radius)}:where(table thead tr:first-child th:last-child){border-start-end-radius:var(--nice-inner-radius)}:where(tfoot tr:last-child th:first-of-type){border-end-start-radius:var(--nice-inner-radius)}:where(tfoot tr:last-child td:first-of-type){border-end-start-radius:var(--nice-inner-radius)}:where(tfoot tr:last-child th:last-of-type){border-end-end-radius:var(--nice-inner-radius)}:where(tfoot tr:last-child td:last-of-type){border-end-end-radius:var(--nice-inner-radius)}:where(th){background-color:var(--surface-2);color:var(--text-1)}:where(table a:not(.does-not-exist):focus-visible){outline-offset:-2px}:where(table button:not(.does-not-exist):focus-visible){outline-offset:-2px}:where(table [contenteditable]:focus-visible){outline-offset:-2px}:where(td){text-wrap:pretty;background:var(--surface-1);max-inline-size:var(--size-content-2)}:where(td,th){padding:var(--size-2);text-align:left}:where(td:not([align])){text-align:center}:where(th:not([align])){text-align:center}:where(thead){border-collapse:collapse}:where(table tr:hover td),:where(tbody tr:nth-child(2n):hover td){background-color:var(--surface-3)}:where(table>caption){margin:var(--size-3)}:where(tfoot button){padding-block:var(--size-1);padding-inline:var(--size-3)}@media (prefers-color-scheme:dark){:where(textarea,select,input:not([type=button],[type=submit],[type=reset])){background-color:#171a1c}:where(dialog){background-color:var(--surface-2)}::placeholder{color:var(--gray-6)}}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../assets/fonts/Vazirmatn-Bold.eot');
    src: url('../assets/fonts/Vazirmatn-Bold.eot?#iefix') format('embedded-opentype'),
         url('../assets/fonts/Vazirmatn-Bold.woff2') format('woff2'),
         url('../assets/fonts/Vazirmatn-Bold.woff') format('woff'),
         url('../assets/fonts/Vazirmatn-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    ascent-override: 90%;
    descent-override: 10%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../assets/fonts/Vazirmatn-Regular.eot');
    src: url('../assets/fonts/Vazirmatn-Regular.eot?#iefix') format('embedded-opentype'),
         url('../assets/fonts/Vazirmatn-Regular.woff2') format('woff2'),
         url('../assets/fonts/Vazirmatn-Regular.woff') format('woff'),
         url('../assets/fonts/Vazirmatn-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    ascent-override: 90%;
    descent-override: 10%;
    line-gap-override: 0%;
}

:root {
    /* Chromatic CMYK inspired palette */
    --cobalt-900: #0b0b21; /* rich carbon black */
    --cobalt-800: #171533;
    --cobalt-600: #2c2858;
    --cobalt-100: #edf1ff;

    --cyan-500: #00a8e8; /* C80 M0 Y0 K10 */
    --cyan-300: #4dc8ff;
    --cyan-200: #9de3ff;

    --magenta-600: #d40078; /* C0 M95 Y9 K0 */
    --magenta-400: #ff4fa8;
    --magenta-200: #ffc0e3;

    --yellow-500: #ffd400; /* C0 M12 Y100 K0 */
    --yellow-300: #ffe572;
    --yellow-100: #fff4bf;

    --electric-lime-400: #7aff7a;

    --bg: #f5f6ff;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-soft: rgba(236, 243, 255, 0.9);
    --surface-muted: rgba(12, 11, 25, 0.06);
    --border: rgba(23, 21, 51, 0.12);
    --border-strong: rgba(23, 21, 51, 0.2);
    --text-primary: #1b1938;
    --text-secondary: rgba(27, 25, 56, 0.78);
    --text-tertiary: rgba(27, 25, 56, 0.56);

    --brand-primary: var(--magenta-600);
    --brand-accent: var(--cyan-500);
    --brand-accent-soft: rgba(0, 168, 232, 0.18);
    --brand-highlight: var(--yellow-500);
    --brand-highlight-soft: rgba(255, 212, 0, 0.22);

    --header-bg: rgba(255, 255, 255, 0.9);
    --header-border: rgba(23, 21, 51, 0.08);
    --footer-bg: rgba(247, 248, 255, 0.9);
    --footer-border: rgba(23, 21, 51, 0.08);

    --radius-sm: 0.65rem;
    --radius-md: 1.25rem;
    --radius-lg: 2.25rem;

    --shadow-xs: 0 4px 14px rgba(16, 19, 31, 0.06);
    --shadow-sm: 0 8px 20px rgba(16, 19, 31, 0.08);
    --shadow-md: 0 18px 38px rgba(16, 19, 31, 0.12);
    --shadow-xl: 0 40px 64px rgba(16, 19, 31, 0.14);

    --space-3xs: clamp(0.15rem, 0.12rem + 0.2vw, 0.3rem);
    --space-2xs: clamp(0.35rem, 0.3rem + 0.2vw, 0.55rem);
    --space-xs: clamp(0.55rem, 0.45rem + 0.3vw, 0.8rem);
    --space-sm: clamp(0.8rem, 0.7rem + 0.4vw, 1.2rem);
    --space-md: clamp(1.2rem, 1rem + 0.5vw, 1.8rem);
    --space-lg: clamp(1.8rem, 1.5rem + 0.6vw, 2.6rem);
    --space-xl: clamp(2.4rem, 2rem + 0.8vw, 3.2rem);
    --space-2xl: clamp(3.4rem, 2.8rem + 1vw, 4.4rem);
    --space-3xl: clamp(4.6rem, 3.6rem + 1.2vw, 6.2rem);

    --container-width: min(1100px, 90vw);
    --container-wide: min(1240px, 92vw);

    --transition-base: 220ms ease;
    --transition-slow: 420ms cubic-bezier(.25,.8,.25,1);

    --font-display: 'Fraunces', 'Vazirmatn', serif;
    --font-body: 'Inter', 'Vazirmatn', sans-serif;
}

html[data-theme="dark"] {
    --bg: #070713;
    --surface: rgba(17, 16, 34, 0.92);
    --surface-soft: rgba(24, 22, 48, 0.88);
    --surface-muted: rgba(0, 168, 232, 0.08);
    --border: rgba(103, 189, 255, 0.18);
    --border-strong: rgba(77, 200, 255, 0.26);
    --text-primary: rgba(239, 243, 255, 0.94);
    --text-secondary: rgba(189, 203, 255, 0.8);
    --text-tertiary: rgba(189, 203, 255, 0.58);
    --brand-primary: var(--magenta-400);
    --brand-accent: var(--cyan-300);
    --brand-accent-soft: rgba(77, 200, 255, 0.22);
    --brand-highlight: var(--yellow-300);
    --brand-highlight-soft: rgba(255, 229, 114, 0.28);
    --header-bg: rgba(10, 10, 26, 0.94);
    --header-border: rgba(77, 200, 255, 0.22);
    --footer-bg: rgba(9, 9, 23, 0.94);
    --footer-border: rgba(77, 200, 255, 0.22);
    --shadow-xs: 0 6px 18px rgba(5, 5, 14, 0.55);
    --shadow-sm: 0 12px 32px rgba(5, 5, 14, 0.46);
    --shadow-md: 0 24px 45px rgba(5, 5, 14, 0.5);
    --shadow-xl: 0 48px 70px rgba(5, 5, 14, 0.56);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at top right, rgba(0, 168, 232, 0.26), transparent 48%),
                radial-gradient(circle at 18% -10%, rgba(255, 79, 168, 0.22), transparent 60%),
                radial-gradient(circle at 82% 22%, rgba(255, 212, 0, 0.18), transparent 62%),
                linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 72%, #ffffff 28%));
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
}

body.background-minimal {
    background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 68%, #ffffff 32%));
}

html[data-theme="dark"] body {
    background: radial-gradient(circle at top right, rgba(77, 200, 255, 0.26), transparent 50%),
                radial-gradient(circle at 20% -10%, rgba(212, 0, 120, 0.2), transparent 62%),
                radial-gradient(circle at 80% 30%, rgba(255, 204, 0, 0.16), transparent 68%),
                linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 85%, #0b0b21 15%));
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover,
a:focus-visible {
    color: var(--brand-accent);
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }

small { color: var(--text-tertiary); }

/* Layout */
.container {
    width: var(--container-width);
    margin-inline: auto;
}

.container--wide {
    width: var(--container-wide);
}

.section {
    padding-block: var(--space-3xl);
}

.section__header {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
}

.section__header p {
    max-width: 640px;
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-2xl);
    align-items: center;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .site-header {
    background: var(--header-bg);
    border-bottom-color: var(--header-border);
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.5);
}

.header-shell {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-block: var(--space-2xs);
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.header-shell > * {
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.brand-symbol {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-accent-soft) 80%, white 20%);
    box-shadow: var(--shadow-xs);
    color: var(--brand-accent);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
}

html[data-theme="dark"] .brand-symbol {
    background: color-mix(in srgb, var(--brand-accent-soft) 70%, rgba(255, 255, 255, 0.08) 30%);
    color: var(--brand-accent);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.brand-tagline {
    font-size: 0.88rem;
    color: var(--text-tertiary);
}

.site-header .brand-tagline {
    display: none;
}

.main-nav {
    margin-inline-start: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
}

.main-nav a {
    position: relative;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.45rem 0.25rem;
    transition: color var(--transition-base);
}

.main-nav a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -0.35rem;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-highlight));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-base);
    border-radius: 999px;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.active::after {
    transform: scaleX(1);
}


.header-actions {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-inline-start: auto;
}

.header-actions > * {
    flex-shrink: 0;
}

.icon-button,
.theme-toggle {
    border: none;
    background: color-mix(in srgb, var(--surface) 70%, var(--brand-accent-soft) 30%);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-base), box-shadow var(--transition-base), color var(--transition-base);
    font-size: 0.9rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-xs);
}

.icon-button:hover,
.icon-button:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible {
    background: color-mix(in srgb, var(--brand-accent-soft) 85%, white 15%);
    box-shadow: var(--shadow-sm);
    color: var(--brand-primary);
}


.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: color-mix(in srgb, var(--surface) 70%, var(--brand-accent-soft) 30%);
    cursor: pointer;
    transition: background var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    box-shadow: var(--shadow-xs);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: color-mix(in srgb, var(--brand-accent-soft) 85%, white 15%);
    box-shadow: var(--shadow-sm);
}

.menu-toggle__bar {
    position: relative;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 999px;
    transition: background var(--transition-base);
}

.menu-toggle__bar::before,
.menu-toggle__bar::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 999px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.menu-toggle__bar::before {
    transform: translateY(-6px);
}

.menu-toggle__bar::after {
    transform: translateY(6px);
}

.menu-toggle.is-active .menu-toggle__bar {
    background: transparent;
}

.menu-toggle.is-active .menu-toggle__bar::before {
    transform: translateY(0) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle__bar::after {
    transform: translateY(0) rotate(-45deg);
}

body.menu-open {
    overflow: hidden;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: flex;
    justify-content: flex-end;
    padding: var(--space-sm);
    background: rgba(15, 23, 42, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

html[data-theme="dark"] .mobile-menu {
    background: rgba(2, 6, 23, 0.7);
}

.mobile-menu__panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: min(420px, 92vw);
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: none;
    box-shadow: 0 28px 52px rgba(15, 23, 42, 0.18);
    transform: translateY(-12%);
    transition: transform var(--transition-slow);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu.open .mobile-menu__panel {
    transform: translateY(0);
}

.mobile-menu__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-sm);
}

.mobile-menu__intro p {
    font-size: 1rem;
    color: var(--text-secondary);
}


.mobile-menu__close {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    aspect-ratio: 1;
    border-radius: 999px;
    border: none;
    background: color-mix(in srgb, var(--surface) 70%, var(--brand-accent-soft) 30%);
    cursor: pointer;
    transition: background var(--transition-base), box-shadow var(--transition-base);
    box-shadow: var(--shadow-xs);
}

.mobile-menu__close:hover,
.mobile-menu__close:focus-visible {
    background: color-mix(in srgb, var(--brand-accent-soft) 85%, white 15%);
    box-shadow: var(--shadow-sm);
}

.mobile-menu__close span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 999px;
}

.mobile-menu__close span:first-child,
.mobile-menu__close span:last-child {
    top: 50%;
    left: 50%;
}

.mobile-menu__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu__nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.mobile-menu__nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xs);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--surface-muted);
    font-weight: 600;
    color: var(--text-primary);
    transition: transform var(--transition-base), background var(--transition-base), color var(--transition-base);
}

.mobile-menu__nav a svg {
    flex-shrink: 0;
}

.mobile-menu__nav a:hover,
.mobile-menu__nav a:focus-visible,
.mobile-menu__nav a.active {
    transform: translateX(6px);
    background: var(--brand-accent-soft);
    color: var(--brand-primary);
}

.mobile-menu__cta {
    display: grid;
    gap: var(--space-sm);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    background: var(--brand-accent);
    color: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.header-cta:hover,
.header-cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: color-mix(in srgb, var(--brand-accent) 85%, white 15%);
}

.header-cta--mobile {
    width: 100%;
    justify-content: center;
}

.mobile-menu__contact {
    display: grid;
    gap: var(--space-2xs);
}

.mobile-menu__contact a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

.mobile-menu__contact a:hover,
.mobile-menu__contact a:focus-visible {
    color: var(--brand-accent);
}

.mobile-menu__footer {
    border-top: 1px solid var(--border);
    padding-top: var(--space-sm);
    font-size: 0.95rem;
    color: var(--text-tertiary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.btn:focus-visible {
    outline: 3px solid var(--brand-highlight);
    outline-offset: 2px;
}

.btn--primary {
    background: var(--brand-primary);
    color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn--surface {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-secondary);
}

.btn--surface:hover,
.btn--surface:focus-visible {
    border-color: var(--brand-accent);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.btn--ghost {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--brand-primary);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    background: var(--brand-accent-soft);
}

.cta-group,
.cta-group-left {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* Hero */
.hero {
    padding-block: var(--space-3xl);
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 6% 5% 0 0;
    background: var(--surface-muted);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-2xl);
    align-items: center;
}

.hero-content p.subtitle {
    font-size: 1.1rem;
    max-width: 36ch;
}

.hero-image-container {
    justify-self: end;
}

.hero-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* Modules */
.module {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.module:hover,
.module:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.module--accent {
    border-color: var(--brand-accent-soft);
    background: linear-gradient(180deg, rgba(201, 123, 74, 0.08), rgba(247, 242, 235, 0.8));
}

.module--highlight {
    border-color: var(--brand-highlight-soft);
    background: linear-gradient(180deg, rgba(31, 181, 165, 0.08), rgba(247, 242, 235, 0.75));
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--brand-highlight-soft);
    color: var(--brand-highlight);
}

.feature-icon svg { width: 24px; height: 24px; }

/* Experience */
.experience-band {
    background: var(--surface-muted);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.experience-image-container {
    position: relative;
}

.experience-image-container::after {
    content: "";
    position: absolute;
    inset: 12% -6% -12% 18%;
    background: var(--brand-accent-soft);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--surface);
    border: 1px solid var(--border-strong);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-md);
}

.stat {
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
}

.stat strong {
    display: block;
    font-size: 1.6rem;
    font-family: var(--font-display);
}

/* Timeline */
.timeline {
    display: grid;
    gap: var(--space-lg);
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 1rem;
    width: 2px;
    background: linear-gradient(180deg, var(--brand-accent), transparent);
}

.timeline__item {
    padding-inline-start: 2.5rem;
    position: relative;
}

.timeline__item::before {
    content: "";
    position: absolute;
    inline-size: 14px;
    block-size: 14px;
    background: var(--surface);
    border: 3px solid var(--brand-accent);
    border-radius: 999px;
    inset-inline-start: calc(1rem - 7px);
    inset-block-start: 0.2rem;
}

.timeline__meta {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-2xs);
}

/* Skill panel */
.skill-panel {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: var(--space-lg);
    display: grid;
    gap: var(--space-md);
}

.skill-meter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.skill-meter progress {
    flex: 1;
    accent-color: var(--brand-primary);
    height: 8px;
    border-radius: 999px;
}

.skill-meter progress::-webkit-progress-bar {
    background: var(--border);
    border-radius: 999px;
}

.skill-meter progress::-webkit-progress-value {
    background: var(--brand-primary);
    border-radius: 999px;
}

.quote-card {
    border-inline-start: 4px solid var(--brand-accent);
    padding-inline-start: var(--space-md);
    font-style: italic;
}

/* Services */
.service-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.service-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    padding: var(--space-lg);
    display: grid;
    gap: var(--space-sm);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.service-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-sm);
}

.service-card__meta strong {
    font-size: 1.6rem;
    font-family: var(--font-display);
}

.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xs);
}

.tag {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    border: 1px solid var(--border-strong);
    background: var(--surface-muted);
}

.process-stepper {
    display: grid;
    gap: var(--space-lg);
}

.process-step {
    display: grid;
    gap: var(--space-2xs);
    padding: var(--space-md);
    border-inline-start: 4px solid var(--brand-highlight);
    background: var(--surface);
    border-radius: var(--radius-sm);
}

.faq {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq__item + .faq__item {
    border-top: 1px solid var(--border);
}

.faq__trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    font-size: 1.05rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: start;
}

.faq__content {
    padding: 0 var(--space-md) var(--space-md);
    color: var(--text-secondary);
    display: none;
}

.faq__item[open] .faq__content {
    display: block;
}

/* Form wizard */
.form-wizard {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    padding: var(--space-xl);
    display: grid;
    gap: var(--space-lg);
}

.wizard-progress {
    display: flex;
    gap: var(--space-xs);
}

.wizard-progress__step {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
}

.wizard-progress__step span {
    display: block;
    height: 100%;
    background: var(--brand-highlight);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform var(--transition-slow);
}

.form-step {
    display: none;
    gap: var(--space-md);
}

.form-step.active {
    display: grid;
}

.form-grid {
    display: grid;
    gap: var(--space-md);
}

.form-grid--two {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

label {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: var(--space-2xs);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    font: inherit;
    color: var(--text-primary);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--brand-highlight);
    border-color: var(--brand-highlight);
}

.helper-text {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
}

.form-feedback {
    display: none;
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    border: 1px solid var(--brand-highlight);
    background: var(--brand-highlight-soft);
    color: var(--brand-primary);
}

.form-feedback.active {
    display: block;
}

/* Projects */
.project-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    align-items: center;
    margin-bottom: var(--space-lg);
}

.chip {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-size: 0.95rem;
    transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.chip.active {
    background: var(--brand-accent);
    color: #fff;
    border-color: var(--brand-accent);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.project-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    padding: var(--space-lg);
    display: grid;
    gap: var(--space-sm);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.project-card__meta {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
    flex-wrap: wrap;
}

.metric-pill {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    background: var(--surface-muted);
    border: 1px solid var(--border);
}

.empty-state {
    text-align: center;
    padding: var(--space-2xl);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 19, 31, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    z-index: 20;
}

.modal-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: var(--space-xl);
    max-width: 540px;
    width: min(90vw, 540px);
    display: grid;
    gap: var(--space-md);
    box-shadow: var(--shadow-xl);
}

.modal-card button {
    justify-self: flex-end;
}

/* Ink Lab */
.tool-layout {
    display: grid;
    gap: var(--space-xl);
    grid-template-columns: minmax(260px, 320px) 1fr;
}

.tool-layout__sidebar {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    padding: var(--space-lg);
    display: grid;
    gap: var(--space-md);
    height: fit-content;
}

.tool-tabs {
    display: grid;
    gap: var(--space-xs);
}

.tool-tab {
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition-base), border var(--transition-base);
}

.tool-tab.active {
    background: var(--brand-accent-soft);
    border-color: var(--brand-accent);
}

.tool-panel {
    display: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    gap: var(--space-lg);
}

.tool-panel.active {
    display: grid;
}

.tool-panel__header {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.result-card {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-muted);
    padding: var(--space-md);
}

.copy-button {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
}

/* Contact */
.contact-hero {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: 1px solid var(--border);
    display: grid;
    gap: var(--space-xl);
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
}

.contact-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    background: var(--surface);
}

.testimonial {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: var(--space-lg);
    background: var(--surface-muted);
}

.map-placeholder {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: var(--space-lg);
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-tertiary);
}

/* Footer */
.site-footer {
    margin-top: var(--space-2xl);
    padding-block: var(--space-2xl);
    border-top: 1px solid var(--footer-border);
    background: var(--footer-bg);
    box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.05);
}

html[data-theme="dark"] .site-footer {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 -16px 34px rgba(2, 6, 23, 0.55);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
    align-items: start;
}

.footer-column {
    display: grid;
    gap: var(--space-sm);
}

.footer-column--about {
    gap: var(--space-xs);
}

.brand--footer .brand-symbol {
    box-shadow: none;
    background: var(--brand-accent);
    color: #fff;
    border-color: transparent;
}

.brand--footer .brand-tagline {
    font-size: 0.9rem;
}

.brand--footer .brand-text {
    gap: 0.05rem;
}

.footer-heading {
    font-size: 1.2rem;
    font-family: var(--font-display);
    font-weight: 600;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-xs);
    padding: 0;
}

.footer-links a {
    display: inline-flex;
    padding: 0.35rem 0.45rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: color var(--transition-base), background var(--transition-base);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--brand-accent);
    background: var(--surface-muted);
}

.footer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    background: var(--brand-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.footer-button:hover,
.footer-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: color-mix(in srgb, var(--brand-primary) 85%, white 15%);
}

.footer-contact {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2xs);
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

.footer-link:hover,
.footer-link:focus-visible {
    color: var(--brand-accent);
}

.footer-link--social svg {
    flex-shrink: 0;
}

.footer-bottom {
    margin-top: var(--space-xl);
    border-top: 1px solid var(--footer-border);
    padding-top: var(--space-sm);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    align-items: center;
    justify-content: space-between;
    color: var(--text-tertiary);
    font-size: 0.92rem;
}

.footer-bottom__meta,
.footer-bottom__note {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
}

/* Utilities */
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.highlight { color: var(--brand-accent); }

@media (max-width: 1080px) {
    .header-shell { gap: var(--space-md); justify-content: space-between; }
    .main-nav { display: none; }
    .header-actions { margin-inline-start: 0; }
    .menu-toggle { display: inline-flex; }
}

@media (max-width: 900px) {
    .container,
    .container--wide {
        width: min(100%, 92vw);
    }
    .section { padding-block: var(--space-2xl); }
    .hero { padding-block: var(--space-2xl); }
    .experience-band { padding: var(--space-xl); }
    .tool-panel { padding: var(--space-lg); }
    .form-wizard { padding: var(--space-lg); }
}

@media (max-width: 768px) {
    .hero::before { inset: 8% 0 0 0; }
    .hero .container,
    .split,
    .experience-band,
    .contact-hero { grid-template-columns: 1fr; }
    .hero-content { text-align: center; }
    .cta-group,
    .cta-group-left { justify-content: center; }
    .hero-image-container { justify-self: center; }
    .grid--2,
    .grid--3,
    .project-gallery,
    .service-packages,
    .contact-options,
    .stat-grid { grid-template-columns: 1fr; }
    .service-card__meta { flex-direction: column; align-items: flex-start; }
    .timeline__item { padding-inline-start: 2rem; }
    .timeline::before { inset-inline-start: 0.5rem; }
    .timeline__item::before { inset-inline-start: calc(0.5rem - 7px); }
}

@media (max-width: 720px) {
    .brand-symbol { width: 40px; height: 40px; }
    .brand-name { font-size: 1.05rem; }
    .brand-tagline { font-size: 0.82rem; }
    .site-header { min-height: clamp(60px, 3vw + 52px, 72px); }
    .header-shell { padding-block: clamp(0.65rem, 0.45rem + 0.6vw, 0.85rem); gap: var(--space-sm); }
    .header-actions { gap: var(--space-2xs); }
    .icon-button,
    .theme-toggle,
    .menu-toggle {
        background: transparent;
        box-shadow: none;
    }

    .icon-button,
    .theme-toggle {
        border: none;
        padding: 0.45rem 0.6rem;
        min-height: 40px;
        font-size: 0.9rem;
    }

    .icon-button:hover,
    .icon-button:focus-visible,
    .theme-toggle:hover,
    .theme-toggle:focus-visible,
    .menu-toggle:hover,
    .menu-toggle:focus-visible {
        background: transparent;
        box-shadow: none;
        color: var(--brand-accent);
    }

    .menu-toggle {
        width: auto;
        height: auto;
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        border-radius: var(--radius-sm);
    }
    .footer-grid { gap: var(--space-lg); }
    .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-2xs); }
    .tool-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .section { padding-block: var(--space-xl); }
    .hero::before { display: none; }
    .hero .container { gap: var(--space-xl); }
    .hero-content { text-align: start; }
    .hero-image-container { justify-self: center; }
    .cta-group,
    .cta-group-left {
        flex-direction: column;
        align-items: stretch;
    }
    .cta-group .btn,
    .cta-group-left .btn { width: 100%; }
    .experience-image-container::after { inset: 10% 0 -10% 0; }
    .timeline { gap: var(--space-md); }
    .timeline::before { display: none; }
    .timeline__item { padding-inline-start: 0; }
    .timeline__item::before { display: none; }
    .form-grid--two { grid-template-columns: 1fr; }
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .form-actions .btn { width: 100%; }
    .project-filter {
        flex-direction: column;
        align-items: stretch;
    }
    .project-filter .chip {
        justify-content: center;
        width: 100%;
    }
    .contact-hero,
    .module,
    .service-card,
    .modal-card { padding: var(--space-lg); }
}

@media (max-width: 540px) {
    .brand { gap: var(--space-xs); }
    .brand-text { gap: 0; }
    .site-header .brand-tagline { display: none; }
    .header-shell { gap: var(--space-sm); padding-block: clamp(0.6rem, 0.44rem + 0.8vw, 0.82rem); }
    .icon-button,
    .theme-toggle { padding: 0.45rem 0.55rem; font-size: 0.88rem; }
    .menu-toggle { padding: 0.48rem; }
    .mobile-menu__panel { padding: var(--space-md); }
    .footer-column { gap: var(--space-xs); }
    .footer-button { width: 100%; }
    .project-card,
    .service-card,
    .module { gap: var(--space-sm); }
    .footer-contact {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .footer-contact .footer-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body { font-size: 0.98rem; }
    .header-shell { padding-block: clamp(0.55rem, 0.48rem + 0.4vw, 0.75rem); }
    .icon-button,
    .theme-toggle { padding: 0.42rem 0.55rem; font-size: 0.86rem; }
    .menu-toggle { padding: 0.45rem; }
    .badge { font-size: 0.8rem; }
    .stat strong { font-size: 1.4rem; }
    .wizard-progress { flex-direction: column; gap: var(--space-2xs); }
    .wizard-progress__step { width: 100%; height: 8px; }
}

@media (max-width: 420px) {
    .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .header-shell { gap: var(--space-xs); }
}

/* Ensure hidden attribute always forces display: none */
[hidden] {
    display: none !important;
}

/* Screen reader only utility (visibly hidden, fully crawlable and accessible) */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Override Open Props normalize content width constraints */
h1, h2, h3, h4, h5, h6, p, li, dd, figcaption, td {
    max-inline-size: none;
}

/* Tool layout sidebar list styling to remove bullet points */
.tool-layout__sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}
.tool-layout__sidebar li {
    padding-inline-start: 0;
    max-inline-size: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
