@import url(fontawesome-all.min.css);
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300italic,600italic,300,600");

/*
    Dimension by HTML5 UP
    html5up.net | @ajlkn
    Free for personal and commercial use under the CCA 3.0 license
    html5up.net/license

    OPEYEMI PETER — PORTFOLIO CUSTOM STYLES
*/


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

:root {
    --bg-page: #05070b;
    --bg-panel: rgba(17, 21, 27, 0.90);
    --bg-card: rgba(255, 255, 255, 0.045);
    --bg-card-hover: rgba(255, 255, 255, 0.075);

    --text-main: #f5f7fa;
    --text-muted: rgba(245, 247, 250, 0.70);
    --text-soft: rgba(245, 247, 250, 0.55);

    --border: rgba(255, 255, 255, 0.24);
    --border-strong: rgba(255, 255, 255, 0.72);

    --accent: #ffffff;
    --accent-text: #11151a;

    --shadow: rgba(0, 0, 0, 0.28);
    --overlay: rgba(7, 10, 15, 0.48);

    --radius: 8px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.325s ease-in-out;
}


/* =========================================================
   LIGHT THEME
   ========================================================= */

html[data-theme="light"] {
    --bg-page: #f4f6f8;
    --bg-panel: rgba(255, 255, 255, 0.94);
    --bg-card: rgba(255, 255, 255, 0.78);
    --bg-card-hover: rgba(255, 255, 255, 0.96);

    --text-main: #18202a;
    --text-muted: rgba(24, 32, 42, 0.70);
    --text-soft: rgba(24, 32, 42, 0.55);

    --border: rgba(24, 32, 42, 0.20);
    --border-strong: rgba(24, 32, 42, 0.62);

    --accent: #18202a;
    --accent-text: #ffffff;

    --shadow: rgba(24, 32, 42, 0.15);
    --overlay: rgba(244, 246, 248, 0.55);
}


/* =========================================================
   RESET
   ========================================================= */

html, body, div, span, applet, object,
iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, abbr, acronym, address, big, cite,
code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b,
u, i, center, dl, dt, dd, ol, ul, li, fieldset,
form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

body {
    -webkit-text-size-adjust: none;
}

mark {
    background-color: transparent;
    color: inherit;
}

input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

input,
select,
textarea {
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;
}


/* =========================================================
   BASIC
   ========================================================= */

@-ms-viewport {
    width: device-width;
}

@media screen and (max-width: 480px) {
    html,
    body {
        min-width: 320px;
    }
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    background: var(--bg-page);
    color: var(--text-main);
    overflow-x: hidden;
}

body.is-article-visible {
    overflow: hidden;
}

body.is-preload *,
body.is-preload *:before,
body.is-preload *:after {
    -moz-animation: none !important;
    -webkit-animation: none !important;
    -ms-animation: none !important;
    animation: none !important;

    -moz-transition: none !important;
    -webkit-transition: none !important;
    -ms-transition: none !important;
    transition: none !important;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 1000000;

    padding: 0.75rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;

    background: var(--bg-panel);
    color: var(--text-main);

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

    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

.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;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

html {
    font-size: 16pt;
}

@media screen and (max-width: 1680px) {
    html {
        font-size: 12pt;
    }
}

@media screen and (max-width: 736px) {
    html {
        font-size: 11pt;
    }
}

@media screen and (max-width: 360px) {
    html {
        font-size: 10pt;
    }
}

body,
input,
select,
textarea {
    color: var(--text-main);
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.65;
}

a {
    transition:
        color var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast);

    border-bottom: dotted 1px var(--border-strong);
    color: inherit;
    text-decoration: none;
}

a:hover {
    border-bottom-color: transparent;
}

strong,
b {
    color: var(--text-main);
    font-weight: 600;
}

em,
i {
    font-style: italic;
}

p {
    margin: 0 0 1.65rem 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    letter-spacing: 0.18rem;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
    color: inherit;
    text-decoration: none;
}

h1.major,
h2.major,
h3.major,
h4.major,
h5.major,
h6.major {
    border-bottom: solid 1px var(--border-strong);
    width: -moz-max-content;
    width: -webkit-max-content;
    width: max-content;
    max-width: 100%;
    padding-bottom: 0.5rem;
    margin: 0 0 2rem 0;
}

h1 {
    font-size: 2.25rem;
    line-height: 1.3;
    letter-spacing: 0.38rem;
}

h2 {
    font-size: 1.5rem;
    line-height: 1.4;
    letter-spacing: 0.30rem;
}

h3 {
    font-size: 1rem;
}

h4 {
    font-size: 0.8rem;
}

h5 {
    font-size: 0.7rem;
}

h6 {
    font-size: 0.6rem;
}

@media screen and (max-width: 736px) {
    h1 {
        font-size: 1.75rem;
        line-height: 1.4;
        letter-spacing: 0.25rem;
    }

    h2 {
        font-size: 1.25rem;
        line-height: 1.5;
        letter-spacing: 0.22rem;
    }
}

sub {
    font-size: 0.8rem;
    position: relative;
    top: 0.5rem;
}

sup {
    font-size: 0.8rem;
    position: relative;
    top: -0.5rem;
}

blockquote {
    border-left: solid 4px var(--border-strong);
    font-style: italic;
    margin: 0 0 2rem 0;
    padding: 0.5rem 0 0.5rem 2rem;
}

code {
    background: rgba(127, 127, 127, 0.12);
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
    margin: 0 0.25rem;
    padding: 0.25rem 0.65rem;
}

pre {
    -webkit-overflow-scrolling: touch;
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
    margin: 0 0 2rem 0;
}

pre code {
    display: block;
    line-height: 1.75;
    padding: 1rem 1.5rem;
    overflow-x: auto;
}

hr {
    border: 0;
    border-bottom: solid 1px var(--border);
    margin: 2.75rem 0;
}

.align-left {
    text-align: left;
}

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

.align-right {
    text-align: right;
}


/* =========================================================
   FORM
   ========================================================= */

form {
    margin: 0 0 2rem 0;
}

form > :last-child {
    margin-bottom: 0;
}

form > .fields {
    display: flex;
    flex-wrap: wrap;
    width: calc(100% + 3rem);
    margin: -1.5rem 0 2rem -1.5rem;
}

form > .fields > .field {
    flex-grow: 0;
    flex-shrink: 0;
    padding: 1.5rem 0 0 1.5rem;
    width: calc(100% - 1.5rem);
}

form > .fields > .field.half {
    width: calc(50% - 0.75rem);
}

form > .fields > .field.third {
    width: calc(100% / 3 - 0.5rem);
}

form > .fields > .field.quarter {
    width: calc(25% - 0.375rem);
}

label {
    color: var(--text-main);
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.13rem;
    line-height: 1.5;
    margin: 0 0 0.65rem 0;
    text-transform: uppercase;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select,
textarea {
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast);

    background-color: rgba(127, 127, 127, 0.035);
    border-radius: 6px;
    border: solid 1px var(--border-strong);
    color: var(--text-main);
    display: block;
    outline: 0;
    padding: 0 1rem;
    text-decoration: none;
    width: 100%;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    background-color: rgba(127, 127, 127, 0.08);
    border-color: var(--text-main);
    box-shadow: 0 0 0 2px rgba(127, 127, 127, 0.18);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select {
    height: 2.9rem;
}

textarea {
    padding: 0.75rem 1rem;
    resize: vertical;
    min-height: 9rem;
}

select {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M9.4,12.3l10.4,10.4l10.4-10.4c.2-.2.5-.4.9-.4s.6.1.9.4l3.3,3.3c.2.2.4.5.4.9s-.1.6-.4.9L20.7,31.9c-.2.2-.5.4-.9.4s-.6-.1-.9-.4L4.3,17.3c-.2-.2-.4-.5-.4-.9s.1-.6.4-.9l3.3-3.3c.2-.2.5-.4.9-.4s.6.1.9.4z' fill='%23777'/%3E%3C/svg%3E");
    background-size: 1rem;
    background-repeat: no-repeat;
    background-position: calc(100% - 0.8rem) center;
    padding-right: 2.5rem;
    text-overflow: ellipsis;
}

select option {
    background: #ffffff;
    color: #18202a;
}

html:not([data-theme="light"]) select option {
    background: #171b20;
    color: #ffffff;
}

::-webkit-input-placeholder {
    color: var(--text-soft) !important;
    opacity: 1;
}

:-moz-placeholder {
    color: var(--text-soft) !important;
    opacity: 1;
}

::-moz-placeholder {
    color: var(--text-soft) !important;
    opacity: 1;
}

:-ms-input-placeholder {
    color: var(--text-soft) !important;
    opacity: 1;
}

.phone-input {
    display: grid;
    grid-template-columns: minmax(7.5rem, 0.38fr) 1fr;
    gap: 0.65rem;
}

.form-status {
    min-height: 1.5rem;
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}


/* =========================================================
   BOX
   ========================================================= */

.box {
    border-radius: var(--radius);
    border: solid 1px var(--border);
    margin-bottom: 2rem;
    padding: 1.5em;
}

.box > :last-child,
.box > :last-child > :last-child,
.box > :last-child > :last-child > :last-child {
    margin-bottom: 0;
}

.box.alt {
    border: 0;
    border-radius: 0;
    padding: 0;
}


/* =========================================================
   ICONS
   ========================================================= */

.icon {
    text-decoration: none;
    border-bottom: none;
    position: relative;
}

.icon:before {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    text-transform: none !important;
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
}

.icon > .label {
    display: none;
}

.icon:before {
    line-height: inherit;
}

.icon.solid:before {
    font-weight: 900;
}

.icon.brands:before {
    font-family: 'Font Awesome 5 Brands';
}


/* =========================================================
   IMAGES
   ========================================================= */

.image {
    border-radius: var(--radius);
    border: 0;
    display: inline-block;
    position: relative;
}

.image img {
    border-radius: var(--radius);
    display: block;
}

.image.left,
.image.right {
    max-width: 40%;
}

.image.left img,
.image.right img {
    width: 100%;
}

.image.left {
    float: left;
    padding: 0 1.5em 1em 0;
    top: 0.25em;
}

.image.right {
    float: right;
    padding: 0 0 1em 1.5em;
    top: 0.25em;
}

.image.fit {
    display: block;
    margin: 0 0 2rem 0;
    width: 100%;
}

.image.fit img {
    width: 100%;
}

.image.main {
    display: block;
    margin: 2.5rem 0;
    width: 100%;
}

.image.main img {
    width: 100%;
}

@media screen and (max-width: 736px) {
    .image.main {
        margin: 2rem 0;
    }
}

@media screen and (max-width: 480px) {
    .image.main {
        margin: 1.5rem 0;
    }
}


/* =========================================================
   LISTS
   ========================================================= */

ol {
    list-style: decimal;
    margin: 0 0 2rem 0;
    padding-left: 1.25em;
}

ol li {
    padding-left: 0.25em;
}

ul {
    list-style: disc;
    margin: 0 0 2rem 0;
    padding-left: 1em;
}

ul li {
    padding-left: 0.5em;
}

ul.alt {
    list-style: none;
    padding-left: 0;
}

ul.alt li {
    border-top: solid 1px var(--border);
    padding: 0.5em 0;
}

ul.alt li:first-child {
    border-top: 0;
    padding-top: 0;
}

dl {
    margin: 0 0 2rem 0;
}

dl dt {
    display: block;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

dl dd {
    margin-left: 2rem;
}


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

ul.actions {
    display: flex;
    cursor: default;
    list-style: none;
    margin-left: -1rem;
    padding-left: 0;
}

ul.actions li {
    padding: 0 0 0 1rem;
    vertical-align: middle;
}

ul.actions.special {
    justify-content: center;
    width: 100%;
    margin-left: 0;
}

ul.actions.special li:first-child {
    padding-left: 0;
}

ul.actions.stacked {
    flex-direction: column;
    margin-left: 0;
}

ul.actions.stacked li {
    padding: 1.3rem 0 0 0;
}

ul.actions.stacked li:first-child {
    padding-top: 0;
}

ul.actions.fit {
    width: calc(100% + 1rem);
}

ul.actions.fit li {
    flex-grow: 1;
    flex-shrink: 1;
    width: 100%;
}

ul.actions.fit li > * {
    width: 100%;
}


/* =========================================================
   BUTTON
   ========================================================= */

input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;

    transition:
        background-color var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);

    background-color: transparent;
    border-radius: 6px;
    border: 1px solid var(--border-strong);
    box-shadow: none;

    color: var(--text-main) !important;

    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 2.75rem;

    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.13rem;

    line-height: 1.3;
    outline: 0;

    padding: 0.65rem 1.15rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    white-space: nowrap;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--text-main);
    transform: translateY(-1px);
}

input[type="submit"]:active,
input[type="reset"]:active,
input[type="button"]:active,
button:active,
.button:active {
    transform: translateY(0);
}

input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible,
input[type="button"]:focus-visible,
button:focus-visible,
.button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--text-main);
    outline-offset: 3px;
}

input[type="submit"].small,
input[type="reset"].small,
input[type="button"].small,
button.small,
.button.small {
    min-height: 2.25rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.58rem;
}

input[type="submit"].primary,
input[type="reset"].primary,
input[type="button"].primary,
button.primary,
.button.primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text) !important;
    font-weight: 600;
}

input[type="submit"].primary:hover,
input[type="reset"].primary:hover,
input[type="button"].primary:hover,
button.primary:hover,
.button.primary:hover {
    opacity: 0.88;
}

input[type="submit"]:disabled,
input[type="reset"]:disabled,
input[type="button"]:disabled,
button:disabled,
.button:disabled {
    pointer-events: none;
    cursor: default;
    opacity: 0.3;
}


/* =========================================================
   BACKGROUND
   ========================================================= */

#bg {
    transform: scale(1);
    -webkit-backface-visibility: hidden;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    z-index: 1;
}

#bg:before,
#bg:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
}

#bg:before {
    transition:
        background-color 0.8s ease-in-out;

    background-color: var(--overlay);
    z-index: 2;
}

#bg:after {
    transform: scale(1.08);

    transition:
        transform 0.6s ease-in-out,
        filter 0.4s ease-in-out;

    background-image: url("../images/bgbg.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    z-index: 1;
}
html[data-theme="light"] #bg:before {
    background-color: rgba(248, 250, 252, 0.68);
}

html[data-theme="light"] #bg:after {
    background-image: url("../images/back.png");
    filter: brightness(1.08) saturate(0.75);
}

html[data-theme="light"] #bg:after {
    background-image: url("../images/back.png");
}

body.is-article-visible #bg:after {
    transform: scale(1.035);
    filter: blur(0.18rem);
}

body.is-preload #bg:before {
    background-color: #000000;
}


/* =========================================================
   WRAPPER
   ========================================================= */

#wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    position: relative;

    min-height: 100vh;
    width: 100%;

    padding: 4rem 2rem;

    z-index: 3;
}

#wrapper:before {
    content: '';
    display: block;
}

@media screen and (max-width: 1680px) {
    #wrapper {
        padding: 3rem 2rem;
    }
}

@media screen and (max-width: 736px) {
    #wrapper {
        padding: 2rem 1rem;
    }
}

@media screen and (max-width: 480px) {
    #wrapper {
        padding: 1rem;
    }
}


/* =========================================================
   HEADER
   ========================================================= */

#header {
    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;

    max-width: 100%;
    text-align: center;

    transition:
        transform var(--transition-normal),
        filter var(--transition-normal),
        opacity var(--transition-normal);

    background-image:
        radial-gradient(
            rgba(0, 0, 0, 0.28) 20%,
            rgba(0, 0, 0, 0) 62%
        );
}

#header > * {
    transition: opacity var(--transition-normal);

    position: relative;
    margin-top: 3rem;
}

#header > *:before {
    content: '';
    display: block;

    position: absolute;

    top: calc(-3rem - 1px);
    left: calc(50% - 1px);

    width: 1px;
    height: calc(3rem + 1px);

    background: var(--border-strong);
}

#header > :first-child {
    margin-top: 0;
}

#header > :first-child:before {
    display: none;
}


/* Profile */

#header .logo {
    width: 5.5rem;
    height: 5.5rem;

    padding: 0.25rem;

    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;

    background: #111820;

}

#header .logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    border-radius: 50%;
}


/* Header content */

#header .content {
    border-style: solid;
    border-color: var(--border-strong);
    border-top-width: 1px;
    border-bottom-width: 1px;

    max-width: 100%;
}

#header .content .inner {
    transition:
        max-height 0.75s ease,
        padding 0.75s ease,
        opacity var(--transition-normal);

    transition-delay: 0.25s;

    padding: 2.6rem 2rem;

    max-height: 40rem;
    overflow: hidden;
}

#header .content .inner > :last-child {
    margin-bottom: 0;
}

#header .content p {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;

    letter-spacing: 0.13rem;
    font-size: 0.76rem;
    line-height: 1.9;

    text-transform: uppercase;
}

#header .content .header-role {
    margin-bottom: 0.55rem;
    font-weight: 600;
}

#header .content .header-tagline {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

#header .content .header-links {
    color: var(--text-soft);
    text-transform: none;
    letter-spacing: 0.06rem;
}

#header .content a {
    color: var(--text-main);
}


/* Theme toggle */

#theme-toggle {
    position: absolute;

    top: -0.35rem;
    right: -0.35rem;

    z-index: 20;

    min-height: 2.35rem;

    padding: 0.45rem 0.7rem;

    border-radius: 999px;

    background: #111820;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    font-size: 0.58rem;
    letter-spacing: 0.08rem;

    text-transform: uppercase;
}

html[data-theme="light"] #theme-toggle {
    background: rgba(255, 255, 255, 0.473);
}

.theme-toggle-icon {
    display: inline-block;
    margin-right: 0.35rem;
    font-size: 0.9rem;
}

.theme-toggle-text {
    display: inline-block;
}


/* Navigation */

#header nav ul {
    display: flex;

    margin-bottom: 0;

    list-style: none;
    padding-left: 0;

    border: solid 1px var(--border-strong);
    border-radius: 6px;

    overflow: hidden;
}

#header nav ul li {
    padding-left: 0;
    border-left: solid 1px var(--border-strong);
}

#header nav ul li:first-child {
    border-left: 0;
}

#header nav ul li a {
    display: block;

    min-width: 7.2rem;
    min-height: 2.75rem;

    line-height: 2.75rem;

    padding: 0 1.15rem;

    border-bottom: 0;

    text-transform: uppercase;
    letter-spacing: 0.15rem;
    font-size: 0.72rem;
}

#header nav ul li a:hover {
    background-color: var(--bg-card-hover);
}

#header nav.use-middle:after {
    content: '';

    display: block;

    position: absolute;

    top: 0;
    left: calc(50% - 1px);

    width: 1px;
    height: 100%;

    background: var(--border-strong);
}

#header nav.use-middle ul li.is-middle {
    border-left: 0;
}


/* Home Screen — Light Mode Navigation Borders Only */

html[data-theme="light"] body:not(.is-article-visible) #header nav ul {
    border-color: #111820;
}

html[data-theme="light"] body:not(.is-article-visible) #header nav ul li {
    border-left-color: #111820;
}

html[data-theme="light"] body:not(.is-article-visible) #header nav.use-middle:after {
    background: #111820;
}


/* Header article state */

body.is-article-visible #header {
    transform: scale(0.95);
    filter: blur(0.1rem);
    opacity: 0;
}

body.is-preload #header {
    filter: blur(0.125rem);
}

body.is-preload #header > * {
    opacity: 0;
}

body.is-preload #header .content .inner {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}


/* Header responsive */

@media screen and (max-width: 980px) {
    #header .content p br {
        display: none;
    }
}

@media screen and (max-width: 736px) {

    #header > * {
        margin-top: 2rem;
    }

    #header > *:before {
        top: calc(-2rem - 1px);
        height: calc(2rem + 1px);
    }

    #header .logo {
        width: 4.75rem;
        height: 4.75rem;
    }

    #header .content .inner {
        padding: 2.25rem 1rem;
    }

    #header .content p {
        line-height: 1.8;
    }

    #theme-toggle {
        top: -0.5rem;
        right: 0;
    }
}

@media screen and (max-width: 600px) {

    #theme-toggle .theme-toggle-text {
        display: none;
    }

    #theme-toggle {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
    }

    .theme-toggle-icon {
        margin-right: 0;
    }
}

@media screen and (max-width: 480px) {

    #header {
        padding: 1.5rem 0;
    }

    #header .content .inner {
        padding: 2.25rem 0.4rem;
    }

    #header nav ul {
        flex-direction: column;

        min-width: 11rem;
        max-width: 100%;
    }

    #header nav ul li {
        border-left: 0;
        border-top: solid 1px var(--border-strong);
    }

    #header nav ul li:first-child {
        border-top: 0;
    }

    #header nav ul li a {
        min-width: 0;
        width: 100%;
        min-height: 3rem;
        line-height: 3rem;
    }

    #header nav.use-middle:after {
        display: none;
    }
}

/* =========================================================
   LIGHT THEME — HOMEPAGE HEADER TEXT
   ========================================================= */

/* Name */
html[data-theme="light"] #header .content .inner h1 {
    color: #111820 !important;
    opacity: 1 !important;
}

/* Data Analyst | SQL | Excel | Tableau | Python | BI */
html[data-theme="light"] #header .content .header-role {
    color: #111820 !important;
    opacity: 1 !important;
    font-weight: 700;
}

/* Turning data into clear insights... */
html[data-theme="light"] #header .content .header-tagline {
    color: #111820 !important;
    opacity: 1 !important;
    font-weight: 500;
}

/* LinkedIn / GitHub / X paragraph */
html[data-theme="light"] #header .content .header-links {
    color: #111820 !important;
    opacity: 1 !important;
}

/* Social links inside the paragraph */
html[data-theme="light"] #header .content .header-links a {
    color: #111820 !important;
    opacity: 1 !important;
    font-weight: 600;
}

/* Header divider lines */
html[data-theme="light"] #header > *:before {
    background: #111820;
}

/* Header content borders */
html[data-theme="light"] #header .content {
    border-color: #111820;
}

/* Profile image border */
html[data-theme="light"] #header .logo {
    border-color: #111820;
    background: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   MAIN / DIMENSION MODAL
   ========================================================= */

#main {
    flex-grow: 1;
    flex-shrink: 1;

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

    position: relative;

    width: 100%;
    max-width: 100%;

    z-index: 3;
}

#main article {
    transform: translateY(0.25rem);

    transition:
        opacity var(--transition-normal),
        transform var(--transition-normal);

    padding: 4.25rem 2.5rem 1.5rem 2.5rem;

    position: relative;

    width: 44rem;
    max-width: 100%;

    background-color: var(--bg-panel);

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

    box-shadow:
        0 22px 60px var(--shadow);

    opacity: 0;
}

#main article.active {
    transform: translateY(0);
    opacity: 1;

    max-height: calc(100vh - 2rem);

    overflow-y: auto;
    overflow-x: hidden;

    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;

    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

#main article.active::-webkit-scrollbar {
    width: 7px;
}

#main article.active::-webkit-scrollbar-track {
    background: transparent;
}

#main article.active::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 20px;
}


/* Article close */

#main article .close {
    display: block;

    position: absolute;

    top: 0;
    right: 0;

    width: 4rem;
    height: 4rem;

    cursor: pointer;

    text-indent: 4rem;
    overflow: hidden;
    white-space: nowrap;
}

#main article .close:before {
    transition: background-color var(--transition-fast);

    content: '';

    display: block;

    position: absolute;

    top: 0.75rem;
    left: 0.75rem;

    width: 2.5rem;
    height: 2.5rem;

    border-radius: 50%;

    background-position: center;

    background-image:
        url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20px' height='20px' viewBox='0 0 20 20'%3E%3Cstyle%3Eline%7Bstroke:%23ffffff;stroke-width:1.3%7D%3C/style%3E%3Cline x1='2' y1='2' x2='18' y2='18'/%3E%3Cline x1='18' y1='2' x2='2' y2='18'/%3E%3C/svg%3E");

    background-size: 20px 20px;
    background-repeat: no-repeat;
}

html[data-theme="light"] #main article .close:before {
    background-image:
        url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20px' height='20px' viewBox='0 0 20 20'%3E%3Cstyle%3Eline%7Bstroke:%2318202a;stroke-width:1.3%7D%3C/style%3E%3Cline x1='2' y1='2' x2='18' y2='18'/%3E%3Cline x1='18' y1='2' x2='2' y2='18'/%3E%3C/svg%3E");
}

#main article .close:hover:before {
    background-color: var(--bg-card-hover);
}

@media screen and (max-width: 736px) {

    #main article {
        padding: 3.5rem 2rem 1rem 2rem;
        border-radius: 8px;
    }

    #main article .close:before {
        top: 0.75rem;
        left: 0.75rem;

        width: 2.3rem;
        height: 2.3rem;

        background-size: 15px 15px;
    }
}

@media screen and (max-width: 480px) {

    #main article {
        padding: 3rem 1.25rem 1rem 1.25rem;
        width: 100%;
    }

    #main article.active {
        max-height: calc(100vh - 1rem);
    }
}


/* =========================================================
   HOME
   ========================================================= */

#intro .image.main {
    margin-top: 1.75rem;
    margin-bottom: 2rem;
}

#intro .image.main img {
    max-height: 20rem;
    object-fit: cover;
}

#intro > p {
    line-height: 1.8;
}

.featured-projects {
    margin-top: 3rem;
}

.featured-projects > .major {
    margin-bottom: 1.5rem;
}


/* =========================================================
   FEATURED PROJECT GRID
   ========================================================= */

.project-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 1.25rem;

    width: 100%;

    margin: 2rem 0 0 0;
}

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

    width: 100%;

    padding: 1.1rem;

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

    background: var(--bg-card);

    box-shadow: 0 10px 30px var(--shadow);

    transition:
        transform var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.project-card:hover {
    transform: translateY(-3px);
    background: var(--bg-card-hover);
    border-color: var(--border-strong);

    box-shadow: 0 15px 35px var(--shadow);
}

.project-card .image {
    margin: 0 0 1rem 0;
    overflow: hidden;
}

.project-card .image img {
    display: block;

    width: 100%;
    height: 215px;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.project-card:hover .image img {
    transform: scale(1.025);
}

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

.project-card h3 {
    margin-bottom: 0.65rem;

    font-size: 0.9rem;
    line-height: 1.55;
}

.project-card p {
    color: var(--text-muted);

    font-size: 0.82rem;
    line-height: 1.7;
}

.project-card .project-tools {
    margin-top: auto;

    color: var(--text-soft);

    font-size: 0.62rem !important;
    letter-spacing: 0.08rem;

    text-transform: uppercase;
}

.project-card .button {
    align-self: flex-start;
    margin-top: 0.35rem;
}


/* =========================================================
   HOME ACTIONS
   ========================================================= */

.home-actions {
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.home-actions li {
    margin-bottom: 0;
}


/* =========================================================
   PROJECTS PAGE
   ========================================================= */

#work {
    position: relative;
}

.projects-intro {
    max-width: 42rem;
    margin: 0 auto 2.25rem auto;

    color: var(--text-muted);

    line-height: 1.8;
}


/* Projects heading */

.major-pro {
    display: table;

    margin: -0.35rem auto 2rem auto;

    padding-bottom: 0.3rem;

    text-align: center;

    border-bottom: none;

    position: relative;
}

.major-pro::after {
    content: '';

    display: block;

    width: 100%;
    height: 1px;

    margin-top: 0.2rem;

    background: var(--border-strong);
}


/* =========================================================
   PROJECT PROFILE CARD
   ========================================================= */

#work .projects-profile-card {
    position: absolute;

    top: 1.05rem;
    left: 1.15rem;

    z-index: 5;
}

#work .projects-profile-card a {
    display: block;

    width: 3.7rem;
    height: 3.7rem;

    padding: 0.2rem;

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

    background: var(--bg-card);

    transition:
        transform var(--transition-fast),
        background-color var(--transition-fast);
}

#work .projects-profile-card img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;
}

#work .projects-profile-card a:hover {
    transform: scale(1.05);
    background: var(--bg-card-hover);
}

@media screen and (max-width: 736px) {

    #work .projects-profile-card {
        top: 0.85rem;
        left: 0.75rem;
    }

    #work .projects-profile-card a {
        width: 3.1rem;
        height: 3.1rem;
    }
}


/* =========================================================
   FULL PROJECT CARDS
   ========================================================= */

.full-project-card {
    position: relative;

    margin: 0 0 2.75rem 0;
    padding: 1.65rem;

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

    background: var(--bg-card);

    box-shadow: 0 12px 35px var(--shadow);

    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

.full-project-card:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: var(--bg-card-hover);
}

html[data-theme="light"] .full-project-card:hover {
    border-color: rgba(24, 32, 42, 0.32);
}


/* Tool tag */

.project-tool-tag {
    display: inline-flex;
    align-items: center;

    margin-bottom: 1rem;

    padding: 0.38rem 0.7rem;

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

    background: rgba(127, 127, 127, 0.07);

    color: var(--text-muted);

    font-size: 0.62rem;
    font-weight: 600;

    letter-spacing: 0.07rem;
    line-height: 1.4;

    text-transform: uppercase;
}


/* Project title */

.full-project-card h3 {
    margin-bottom: 0.35rem;

    line-height: 1.55;
}

.full-project-card h3 a {
    border-bottom-color: var(--border);
}

.full-project-card h3 a:hover {
    color: var(--text-muted);
}


/* Category */

.project-category {
    margin-bottom: 1.25rem !important;

    color: var(--text-soft);

    font-size: 0.66rem !important;
    letter-spacing: 0.07rem;
    line-height: 1.6 !important;

    text-transform: uppercase;
}


/* =========================================================
   PROJECT GALLERY
   ========================================================= */

.project-gallery {
    display: flex;
    gap: 0.9rem;

    width: 100%;

    margin: 1.35rem 0 0.7rem 0;
    padding: 0.1rem 0.05rem 0.7rem 0.05rem;

    overflow-x: auto;

    scroll-behavior: smooth;
    scroll-snap-type: x proximity;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;

    overscroll-behavior-x: contain;
}

.project-gallery::-webkit-scrollbar {
    height: 6px;
}

.project-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.project-gallery::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
}

.project-gallery:focus-visible {
    outline: 2px solid var(--text-main);
    outline-offset: 4px;
}

.project-gallery img {
    flex: 0 0 82%;

    width: 82%;
    height: 285px;

    object-fit: cover;

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

    background: rgba(0, 0, 0, 0.18);

    cursor: zoom-in;

    scroll-snap-align: start;

    transition:
        border-color var(--transition-fast),
        transform var(--transition-fast);
}

.project-gallery img:hover {
    border-color: var(--border-strong);
}


/* Gallery controls */

.project-gallery-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 0.55rem;

    margin-bottom: 1.35rem;

    color: var(--text-soft);

    font-size: 0.62rem;
    letter-spacing: 0.06rem;

    text-transform: uppercase;
}

.project-gallery-controls span {
    white-space: nowrap;
}


/* Gallery arrows */

.gallery-arrow {
    display: inline-flex;

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

    flex: 0 0 auto;

    width: 2.35rem;
    height: 2.35rem;

    min-height: 2.35rem;

    padding: 0;

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

    background: rgba(127, 127, 127, 0.04);

    color: var(--text-main) !important;

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

    text-transform: none;
}

.gallery-arrow:hover {
    background: var(--bg-card-hover);
}


/* Project description */

.full-project-card > p:not(.project-category) {
    color: var(--text-muted);

    font-size: 0.84rem;
    line-height: 1.78;
}

.full-project-card > p a {
    color: var(--text-main);
    font-weight: 600;
}


/* Project footer */

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    margin-top: 1.8rem;
    padding-top: 1.15rem;

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

.project-footer span {
    color: var(--text-soft);

    font-size: 0.59rem;
    letter-spacing: 0.06rem;
    line-height: 1.5;

    text-transform: uppercase;
}


/* Projects end note */

.projects-end-note {
    margin-top: 2.5rem;

    text-align: center;

    color: var(--text-soft);

    font-size: 0.82rem;
    line-height: 1.7;
}


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

#about .image.main {
    max-width: 13rem;
    margin: 1.5rem auto 2rem auto;
}

#about .image.main img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;

    border-radius: 50%;

    border: 3px solid var(--border-strong);
}

#about > p {
    color: var(--text-muted);
    line-height: 1.8;
}

#about > h3.major {
    font-size: 0.85rem;
    letter-spacing: 0.15rem;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-intro {
    color: var(--text-muted);
    line-height: 1.75;
}

.contact-details {
    margin-top: 1rem;
    color: var(--text-soft);
    font-size: 0.85rem;
    line-height: 1.7;
}

.last-word {
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;

    text-align: center;

    font-size: 1rem;
    letter-spacing: 0.28rem;
}

.contact-end-note {
    margin: 0 0 1.5rem 0;

    text-align: center;

    color: var(--text-soft);

    font-size: 0.8rem;
    line-height: 1.7;
}


/* =========================================================
   SOCIAL ICONS
   ========================================================= */

ul.icons {
    display: flex;

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

    gap: 0.65rem;

    cursor: default;

    list-style: none;
    padding-left: 0;

    margin: 0 0 1rem 0;
}

ul.icons li {
    display: block;
    padding: 0;
}

ul.icons li a {
    display: inline-flex;

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

    width: 2.55rem;
    height: 2.55rem;

    border-radius: 50%;

    border: 1px solid var(--border-strong);

    box-shadow: none;

    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast),
        border-color var(--transition-fast);
}

ul.icons li a:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-2px);
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.project-lightbox {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 999999;

    width: 100%;
    height: 100%;

    padding: 3rem;

    background: rgba(0, 0, 0, 0.94);

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

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.project-lightbox.active {
    display: flex;
}

.project-lightbox img {
    display: block;

    max-width: 94vw;
    max-height: 88vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 5px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.65);
}

.lightbox-close {
    position: absolute;

    top: 1rem;
    right: 1rem;

    width: 2.75rem;
    height: 2.75rem;

    min-height: 2.75rem;

    padding: 0;

    display: flex;

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

    border: solid 1px rgba(255, 255, 255, 0.65);
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.4);

    color: #ffffff !important;

    font-size: 1.2rem;

    z-index: 1000000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

@media screen and (max-width: 736px) {

    .project-lightbox {
        padding: 1rem;
    }

    .project-lightbox img {
        max-width: 96vw;
        max-height: 84vh;
    }

    .lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
    }
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

#back-to-top {
    position: fixed !important;

    right: 1.35rem !important;
    bottom: 1.35rem !important;

    width: 3rem !important;
    height: 3rem !important;

    min-height: 3rem !important;

    display: none !important;

    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 1px solid var(--border-strong) !important;
    border-radius: 50% !important;

    background: rgba(15, 18, 23, 0.82) !important;

    color: #ffffff !important;

    font-size: 1.15rem !important;
    line-height: 1 !important;

    cursor: pointer !important;

    z-index: 999998 !important;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast),
        opacity var(--transition-fast) !important;
}

html[data-theme="light"] #back-to-top {
    background: rgba(255, 255, 255, 0.88) !important;
    color: #111820 !important;
}

#back-to-top.is-visible {
    display: flex !important;
}

#back-to-top:hover {
    background: rgba(127, 127, 127, 0.22) !important;
    transform: translateY(-3px);
}

@media screen and (max-width: 736px) {

    #back-to-top {
        right: 0.9rem !important;
        bottom: 0.9rem !important;

        width: 2.8rem !important;
        height: 2.8rem !important;
        min-height: 2.8rem !important;
    }
}


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

#footer {
    transition:
        transform var(--transition-normal),
        filter var(--transition-normal),
        opacity var(--transition-normal);

    width: 100%;
    max-width: 100%;

    margin-top: 2rem;

    text-align: center;

    color: var(--text-soft);

    opacity: 0.75;
}

#footer p {
    margin-bottom: 0;

    font-size: 0.6rem;
    letter-spacing: 0.12rem;

    text-transform: uppercase;
}

html[data-theme="light"] #footer {
    color: #111820;
    opacity: 1;
}

html[data-theme="light"] #footer p {
    color: #111820;
    opacity: 1;
}

body.is-article-visible #footer {
    transform: scale(0.95);
    filter: blur(0.1rem);
    opacity: 0;
}

body.is-preload #footer {
    opacity: 0;
}


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

@media screen and (min-width: 737px) and (max-width: 980px) {

    #wrapper {
        padding: 2.5rem 1.5rem;
    }

    #main article {
        width: min(44rem, 100%);
    }

    .project-gallery img {
        flex-basis: 78%;
        width: 78%;
    }

    #header nav ul li a {
        min-width: 6.4rem;
    }
}


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

@media screen and (max-width: 736px) {

    .project-grid {
        gap: 1rem;
    }

    .project-card {
        padding: 1rem;
    }

    .project-card .image img {
        height: 200px;
    }

    .full-project-card {
        padding: 1.2rem;
        margin-bottom: 2rem;
    }

    .project-gallery img {
        flex: 0 0 91%;
        width: 91%;
        height: 225px;
    }

    .project-gallery-controls {
        justify-content: flex-start;
    }

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

    .project-footer .button {
        width: 100%;
    }

    .projects-intro {
        line-height: 1.75;
    }

    .phone-input {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media screen and (max-width: 480px) {

    p {
        line-height: 1.75;
    }

    .project-card .image img {
        height: 185px;
    }

    .project-gallery img {
        flex-basis: 94%;
        width: 94%;
        height: 200px;
    }

    .project-gallery-controls {
        gap: 0.45rem;
    }

    .project-gallery-controls span {
        font-size: 0.56rem;
    }

    .gallery-arrow {
        width: 2.25rem;
        height: 2.25rem;
        min-height: 2.25rem;
    }

    .home-actions {
        margin-top: 1.5rem;
    }

    #about .image.main {
        max-width: 10rem;
    }

    ul.icons {
        gap: 0.5rem;
    }

    ul.icons li a {
        width: 2.4rem;
        height: 2.4rem;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media screen and (max-width: 360px) {

    #wrapper {
        padding: 0.75rem;
    }

    #main article {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        letter-spacing: 0.16rem;
    }

    h2 {
        letter-spacing: 0.16rem;
    }

    .project-tool-tag {
        font-size: 0.55rem;
    }

    .project-gallery img {
        height: 175px;
    }

    #work .projects-profile-card a {
        width: 2.8rem;
        height: 2.8rem;
    }
}


/* =========================================================
   LANDSCAPE PHONES
   ========================================================= */

@media screen and (max-width: 736px) and (orientation: landscape) {

    #wrapper {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    #header {
        padding: 0.75rem 0;
    }

    #header > * {
        margin-top: 1.2rem;
    }

    #header > *:before {
        top: calc(-1.2rem - 1px);
        height: calc(1.2rem + 1px);
    }

    #header .logo {
        width: 3.75rem;
        height: 3.75rem;
    }

    #header .content .inner {
        padding: 1.25rem 0.75rem;
    }

    #main article.active {
        max-height: calc(100vh - 0.75rem);
    }
}


/* =========================================================
   LARGE DESKTOPS
   ========================================================= */

@media screen and (min-width: 1681px) {

    #main article {
        width: 48rem;
    }

    #header .content .inner {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

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

    .project-card:hover,
    .project-gallery img:hover,
    #back-to-top:hover,
    ul.icons li a:hover {
        transform: none;
    }
}

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

/* About header */

#about .about-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 2rem;

    margin-bottom: 2.75rem;
    padding-bottom: 1.75rem;

    border-bottom: 1px solid var(--border);
}

#about .about-heading-wrap {
    flex: 1 1 auto;
}

#about .about-kicker {
    display: block;

    margin-bottom: 0.55rem;

    color: var(--text-soft);

    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.14rem;
    line-height: 1.5;

    text-transform: uppercase;
}

#about #about-heading {
    margin: 0 0 0.45rem 0;

    border-bottom: 0;

    width: auto;
    max-width: none;

    padding-bottom: 0;

    font-size: 1.7rem;
    letter-spacing: 0.28rem;
    line-height: 1.25;
}

#about .about-role {
    margin: 0;

    color: var(--text-muted);

    font-size: 0.72rem;
    letter-spacing: 0.08rem;
    line-height: 1.6;
}


/* About profile image */

#about .about-image {
    flex: 0 0 auto;

    width: 7rem;
    height: 7rem;

    margin: 0;

    padding: 0.22rem;

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

    background: var(--bg-card);

    box-shadow:
        0 10px 30px var(--shadow);
}

#about .about-image img {
    display: block;

    width: 100%;
    height: 100%;

    aspect-ratio: 1;

    object-fit: cover;

    border-radius: 50%;
}


/* About content sections */

#about .about-section {
    margin: 0 0 2.75rem 0;
}

#about .about-section > h3 {
    margin: 0 0 1rem 0;

    font-size: 0.78rem;
    letter-spacing: 0.16rem;
    line-height: 1.5;

    text-transform: uppercase;
}

#about .about-section > h3::after {
    content: '';

    display: block;

    width: 2.5rem;
    height: 1px;

    margin-top: 0.55rem;

    background: var(--border-strong);
}

#about .about-section > p {
    margin-bottom: 1.2rem;

    color: var(--text-muted);

    font-size: 0.84rem;
    line-height: 1.8;
}

#about .about-section > p:last-child {
    margin-bottom: 0;
}


/* What I Bring */

#about .about-focus-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 0.85rem;

    margin-top: 1.35rem;
}

#about .about-focus-item {
    position: relative;

    min-height: 100%;

    padding: 1.15rem;

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

    background: var(--bg-card);

    transition:
        transform var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

#about .about-focus-item:hover {
    transform: translateY(-2px);

    background: var(--bg-card-hover);

    border-color: var(--border-strong);

    box-shadow: 0 10px 25px var(--shadow);
}

#about .about-focus-number {
    display: block;

    margin-bottom: 0.65rem;

    color: var(--text-soft);

    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.12rem;
}

#about .about-focus-item h4 {
    margin: 0 0 0.55rem 0;

    font-size: 0.72rem;
    letter-spacing: 0.09rem;
    line-height: 1.5;

    text-transform: uppercase;
}

#about .about-focus-item p {
    margin: 0;

    color: var(--text-muted);

    font-size: 0.74rem;
    line-height: 1.7;
}


/* Technical Toolkit */

#about .skill-groups {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 1.15rem;

    margin-top: 1.35rem;
}

#about .skill-group {
    padding-top: 0.9rem;

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

#about .skill-group h4 {
    margin: 0 0 0.75rem 0;

    color: var(--text-main);

    font-size: 0.66rem;
    letter-spacing: 0.09rem;
    line-height: 1.5;

    text-transform: uppercase;
}

#about .skill-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 0.4rem;
}

#about .skill-tags span {
    display: inline-flex;

    align-items: center;

    min-height: 1.8rem;

    padding: 0.3rem 0.6rem;

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

    background: rgba(127, 127, 127, 0.055);

    color: var(--text-muted);

    font-size: 0.59rem;
    letter-spacing: 0.04rem;
    line-height: 1.4;
}


/* Education & Academic Honors and Certifications */

#about .credentials-list {
    display: flex;

    flex-direction: column;

    margin-top: 1.35rem;
}

#about .credential-item {
    display: flex;

    align-items: flex-start;

    gap: 0.9rem;

    padding: 0.85rem 0;

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

#about .credential-item:last-child {
    border-bottom: 1px solid var(--border);
}

#about .credential-marker {
    display: flex;

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

    flex: 0 0 auto;

    width: 1.25rem;
    height: 1.25rem;

    margin-top: 0.12rem;

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

#about .credential-marker span {
    display: block;

    width: 0.3rem;
    height: 0.3rem;

    border-radius: 50%;

    background: var(--text-main);
}

#about .credential-item h4 {
    margin: 0 0 0.2rem 0;

    font-size: 0.7rem;
    letter-spacing: 0.06rem;
    line-height: 1.5;
}

#about .credential-item p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.68rem;
    line-height: 1.6;
}


/* Professional Links */

#about .about-links-section {
    margin-bottom: 1.75rem;

    padding-top: 0.25rem;
}

#about .about-links-section > p {
    margin-bottom: 1.25rem;
}

#about .about-actions {
    margin-bottom: 0;
}

#about .about-actions li {
    margin-bottom: 0;
}


/* Closing statement */

#about .about-end-note {
    margin: 2.5rem 0 0 0;

    padding-top: 1.25rem;

    border-top: 1px solid var(--border);

    color: var(--text-soft);

    text-align: center;

    font-size: 0.72rem;
    letter-spacing: 0.13rem;
    line-height: 1.7;

    text-transform: uppercase;
}


/* About responsive */

@media screen and (max-width: 736px) {

    #about .about-header {
        gap: 1.25rem;

        margin-bottom: 2.25rem;
        padding-bottom: 1.4rem;
    }

    #about .about-image {
        width: 5.75rem;
        height: 5.75rem;
    }

    #about #about-heading {
        font-size: 1.4rem;
        letter-spacing: 0.22rem;
    }

    #about .about-focus-grid,
    #about .skill-groups {
        grid-template-columns: 1fr;
    }

    #about .about-focus-item {
        padding: 1rem;
    }

    #about .about-section {
        margin-bottom: 2.35rem;
    }
}


@media screen and (max-width: 480px) {

    #about .about-header {
        align-items: flex-start;

        gap: 1rem;
    }

    #about .about-image {
        width: 4.75rem;
        height: 4.75rem;
    }

    #about #about-heading {
        font-size: 1.25rem;
        letter-spacing: 0.17rem;
    }

    #about .about-role {
        font-size: 0.64rem;
    }

    #about .about-kicker {
        font-size: 0.54rem;
    }

    #about .about-section > p {
        font-size: 0.8rem;
    }

    #about .about-end-note {
        font-size: 0.62rem;
        letter-spacing: 0.09rem;
    }

    #about .about-actions {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
    }

    #about .about-actions li {
        width: 100%;
        padding-left: 0;
    }

    #about .about-actions .button {
        width: 100%;
    }
}

/* =====================================================
   CONTACT SUCCESS MESSAGE
====================================================== */

.contact-success {
    text-align: center;
    margin: 2em 0 1.5em;
    padding: 1.5em 0;
}

.contact-success h3 {
    margin-bottom: 0.75em;
}

.contact-success p {
    margin-bottom: 1em;
}

.contact-success .connect-heading {
    margin-top: 1.5em;
    margin-bottom: 0;
}

.contact-success[hidden],
#contact-form[hidden] {
    display: none;
}

/* =========================================================
   CERTIFICATE VIEW BUTTONS
   ========================================================= */

.credential-content {
	position: relative;
}

.certificate-view-button {
	margin-top: 0.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 0.9rem;
	border: 1px solid currentColor;
	border-radius: 0.35rem;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease,
		opacity 0.2s ease;
}

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

.certificate-view-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}


/* =========================================================
   CERTIFICATE LIGHTBOX
   ========================================================= */

.certificate-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4.5rem 2rem 2rem;
	background: rgba(0, 0, 0, 0.92);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.25s ease,
		visibility 0.25s ease;
}

.certificate-lightbox.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}


/* Certificate image */

.certificate-lightbox-content {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.certificate-lightbox-image {
	display: block;
	max-width: 94vw;
	max-height: 88vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 0.25rem;
	box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.45);
}


/* PDF viewer */

.certificate-lightbox-pdf {
	display: block;
	width: min(100%, 1100px);
	height: min(88vh, 900px);
	border: 0;
	border-radius: 0.25rem;
	background: #ffffff;
	box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.45);
}


/* Close button */

.certificate-lightbox-close {
	position: absolute;
	top: 1.25rem;
	right: 1.5rem;
	z-index: 2;

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

	width: 2.5rem;
	height: 2.5rem;

	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 50%;

	background: rgba(0, 0, 0, 0.45);
	color: #ffffff;

	font-family: Arial, sans-serif;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;

	cursor: pointer;

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

.certificate-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.15);
	transform: scale(1.05);
}

.certificate-lightbox-close:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 4px;
}


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

@media screen and (max-width: 736px) {

	.certificate-lightbox {
		padding: 4rem 0.75rem 1rem;
	}

	.certificate-lightbox-image {
		max-width: 96vw;
		max-height: 84vh;
	}

	.certificate-lightbox-pdf {
		width: 96vw;
		height: 84vh;
	}

	.certificate-lightbox-close {
		top: 0.75rem;
		right: 0.75rem;
		width: 2.25rem;
		height: 2.25rem;
		font-size: 1.35rem;
	}

	.certificate-view-button {
		font-size: 0.7rem;
		padding: 0.5rem 0.75rem;
	}

}


/* Prevent page scrolling while certificate is open */

body.certificate-lightbox-open {
	overflow: hidden;
}

/* =========================================================
CERTIFICATE VIEWER
========================================================= */

.certificate-lightbox {
position: fixed;
inset: 0;
z-index: 99999;
display: none;
align-items: center;
justify-content: center;
padding: 5rem 1.5rem 1.5rem;
background: rgba(0, 0, 0, 0.88);
box-sizing: border-box;
}

.certificate-lightbox.active {
display: flex;
}

.certificate-lightbox-image {
display: block;
max-width: 100%;
max-height: calc(100vh - 7rem);
width: auto;
height: auto;
object-fit: contain;
border-radius: 0.35rem;
box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.5);
}

.certificate-lightbox-close {
position: absolute;
top: 1.25rem;
right: 1.25rem;
width: 2.5rem;
height: 2.5rem;
padding: 0;
border: 0;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
line-height: 1;
cursor: pointer;
z-index: 2;
background: rgba(255, 255, 255, 0.95);
color: #111;
}

.certificate-lightbox-close:hover {
transform: scale(1.05);
}

.certificate-lightbox-close:focus-visible,
.view-certificate:focus-visible {
outline: 2px solid currentColor;
outline-offset: 3px;
}

.view-certificate {
margin-top: 0.75rem;
cursor: pointer;
}

/* Prevent the page behind the certificate from scrolling */
body.certificate-lightbox-open {
overflow: hidden;
}

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

@media screen and (max-width: 736px) {

.certificate-lightbox {
    padding: 4.5rem 0.75rem 0.75rem;
}

.certificate-lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 5.5rem);
    border-radius: 0.2rem;
}

.certificate-lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.35rem;
}

}

/* =========================================================
   LIGHT MODE — HOMEPAGE HEADER
   ========================================================= */

html[data-theme="light"] #header .content .inner {
    color: #111820 !important;
}

/* Opeyemi Peter */
html[data-theme="light"] #header .content .inner h1 {
    color: #111820 !important;
}

/* Data Analyst | SQL | Excel | Tableau | Python | Business Intelligence */
html[data-theme="light"] #header .content .inner .header-role {
    color: #111820 !important;
    font-weight: 700;
}

/* Turning data into clear insights... */
html[data-theme="light"] #header .content .inner .header-tagline {
    color: #111820 !important;
}

/* LinkedIn / GitHub / X text */
html[data-theme="light"] #header .content .inner .header-links {
    color: #111820 !important;
}

/* LinkedIn / GitHub / X links */
html[data-theme="light"] #header .content .inner .header-links a {
    color: #111820 !important;
}



/* =========================================================
   POLISH PASS — MODERN TECHNOLOGY LIGHT THEME
   Keeps the existing dark theme and all original page layouts.
   ========================================================= */

html[data-theme="light"] {
    color-scheme: light;
    --bg-page: #f3f7fc;
    --bg-panel: rgba(255, 255, 255, 0.965);
    --bg-card: rgba(247, 250, 255, 0.92);
    --bg-card-hover: #ffffff;
    --text-main: #14243a;
    --text-muted: #50627a;
    --text-soft: #667991;
    --border: rgba(53, 83, 120, 0.16);
    --border-strong: rgba(53, 83, 120, 0.30);
    --accent: #1769d2;
    --accent-text: #ffffff;
    --shadow: rgba(24, 53, 91, 0.10);
    --overlay: rgba(243, 247, 252, 0.94);
}

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

/* The original light-mode artwork remains in use, but becomes a quiet
   technical texture rather than competing with the portfolio content. */
html[data-theme="light"] #bg:before {
    background-color: rgba(243, 247, 252, 0.94);
    background-image:
        radial-gradient(circle at 14% 18%, rgba(56, 132, 221, 0.12), transparent 34%),
        radial-gradient(circle at 86% 78%, rgba(28, 103, 194, 0.08), transparent 32%),
        linear-gradient(135deg, rgba(247, 250, 255, 0.95), rgba(237, 244, 252, 0.94));
}

html[data-theme="light"] #bg:after {
    background-image: url("../images/back.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: saturate(0.55) contrast(0.82);
    opacity: 0.12;
}

/* Clear, calm content surfaces with a restrained blue technology accent. */
html[data-theme="light"] #main article {
    background: rgba(255, 255, 255, 0.965);
    border-color: rgba(48, 82, 124, 0.16);
    border-radius: 14px;
    box-shadow: 0 18px 54px rgba(30, 59, 96, 0.11), 0 2px 8px rgba(30, 59, 96, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

html[data-theme="light"] #header {
    background-image: radial-gradient(rgba(255, 255, 255, 0.36) 18%, rgba(255, 255, 255, 0) 70%);
}

html[data-theme="light"] #header .logo {
    border: 3px solid #ffffff;
    background: #e8f1fc;
    box-shadow: 0 0 0 5px rgba(36, 112, 204, 0.10), 0 10px 28px rgba(27, 75, 133, 0.14);
}

html[data-theme="light"] #header .content {
    border-color: rgba(48, 82, 124, 0.25);
}

html[data-theme="light"] #header .content .inner h1 {
    color: #14243a !important;
    letter-spacing: 0.13rem;
}

html[data-theme="light"] #header .content .header-role {
    color: #245b98 !important;
    font-weight: 700;
}

html[data-theme="light"] #header .content .header-tagline,
html[data-theme="light"] #header .content .header-links {
    color: #50627a !important;
}

html[data-theme="light"] #header .content .header-links a {
    color: #1769d2 !important;
    font-weight: 700;
    border-bottom-color: rgba(23, 105, 210, 0.32);
}

html[data-theme="light"] #header > *:before {
    background: rgba(47, 94, 150, 0.30);
}

/* Navigation: distinct from the background without the harsh black outline. */
html[data-theme="light"] #header nav ul {
    border: 1px solid rgba(47, 94, 150, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 8px 24px rgba(34, 73, 119, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html[data-theme="light"] #header nav ul li,
html[data-theme="light"] #header nav.use-middle:after {
    border-color: rgba(47, 94, 150, 0.20);
    background-color: rgba(47, 94, 150, 0.20);
}

html[data-theme="light"] #header nav ul li a {
    color: #28415f;
    font-weight: 700;
    letter-spacing: 0.10rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

html[data-theme="light"] #header nav ul li a:hover,
html[data-theme="light"] #header nav ul li a:focus-visible {
    color: #1259ad;
    background: rgba(42, 119, 211, 0.09);
}

html[data-theme="light"] #theme-toggle {
    color: #174b82 !important;
    border: 1px solid rgba(47, 94, 150, 0.25);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 5px 18px rgba(34, 73, 119, 0.09);
}

html[data-theme="light"] #theme-toggle:hover {
    background: #ffffff;
    border-color: rgba(23, 105, 210, 0.48);
}

/* Consistent heading hierarchy and readable paragraph rhythm. */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6 {
    color: #172b45;
}

html[data-theme="light"] h1.major,
html[data-theme="light"] h2.major,
html[data-theme="light"] h3.major,
html[data-theme="light"] h4.major,
html[data-theme="light"] h5.major,
html[data-theme="light"] h6.major {
    border-bottom-color: rgba(43, 101, 165, 0.30);
}

html[data-theme="light"] p,
html[data-theme="light"] li {
    color: inherit;
}

html[data-theme="light"] a:not(.button):hover {
    color: #1259ad;
}

/* Project cards: aligned surfaces, subtle depth, stable image presentation. */
html[data-theme="light"] .project-card,
html[data-theme="light"] .full-project-card {
    background: linear-gradient(145deg, #ffffff, #f7faff);
    border-color: rgba(50, 88, 136, 0.17);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(30, 62, 103, 0.075);
}

html[data-theme="light"] .project-card:hover,
html[data-theme="light"] .full-project-card:hover {
    background: #ffffff;
    border-color: rgba(23, 105, 210, 0.36);
    box-shadow: 0 16px 34px rgba(30, 72, 125, 0.12);
}

html[data-theme="light"] .project-card .image img,
html[data-theme="light"] .project-gallery img,
html[data-theme="light"] #intro .image.main img {
    border: 1px solid rgba(50, 88, 136, 0.14);
    border-radius: 8px;
    background: #eaf1f9;
}

html[data-theme="light"] .project-tool-tag {
    color: #245b98;
    background: #edf4fc;
    border-color: rgba(35, 103, 177, 0.20);
}

html[data-theme="light"] .project-card .project-tools,
html[data-theme="light"] .project-category,
html[data-theme="light"] .project-gallery-controls {
    color: #61758e;
}

html[data-theme="light"] .project-footer {
    border-top-color: rgba(50, 88, 136, 0.17);
}

/* Buttons become consistent, high-contrast actions rather than plain outlines. */
html[data-theme="light"] .button,
html[data-theme="light"] button:not(#theme-toggle):not(#back-to-top):not(.certificate-lightbox-close) {
    color: #1b416c !important;
    border-color: rgba(39, 93, 155, 0.34);
    background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .button:hover,
html[data-theme="light"] button:not(#theme-toggle):not(#back-to-top):not(.certificate-lightbox-close):hover {
    color: #104f9a !important;
    border-color: rgba(23, 105, 210, 0.62);
    background: #edf5ff;
}

html[data-theme="light"] .button.primary,
html[data-theme="light"] button.primary {
    color: #ffffff !important;
    border-color: #1769d2;
    background: linear-gradient(135deg, #1769d2, #2458b8);
    box-shadow: 0 7px 18px rgba(23, 105, 210, 0.20);
}

html[data-theme="light"] .button.primary:hover,
html[data-theme="light"] button.primary:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #1259b8, #1d4fa8);
    box-shadow: 0 10px 22px rgba(23, 105, 210, 0.25);
}

html[data-theme="light"] .gallery-arrow {
    color: #245b98 !important;
    background: #f2f7fd;
}

html[data-theme="light"] #back-to-top {
    color: #ffffff !important;
    border-color: #1769d2 !important;
    background: #1769d2 !important;
    box-shadow: 0 8px 22px rgba(23, 105, 210, 0.24);
}

html[data-theme="light"] #footer,
html[data-theme="light"] #footer p {
    color: #63758c;
}

html[data-theme="light"] #main article .close:hover:before {
    background-color: rgba(23, 105, 210, 0.10);
}

/* Form fields and focus states remain accessible in both themes. */
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
    color: #172b45;
    background-color: #ffffff;
    border-color: rgba(50, 88, 136, 0.28);
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
    color: #71839a;
    opacity: 1;
}

html[data-theme="light"] :focus-visible {
    outline-color: #1769d2;
}

/* Mobile balance: prevent oversized panels and keep navigation easy to tap. */
@media screen and (max-width: 736px) {
    html[data-theme="light"] #main article {
        border-radius: 12px;
        box-shadow: 0 12px 34px rgba(30, 59, 96, 0.10);
    }

    html[data-theme="light"] #header nav ul {
        border-radius: 12px;
        overflow: hidden;
    }

    html[data-theme="light"] #header nav ul li a {
        min-height: 3rem;
        line-height: 3rem;
    }

    #main article,
    .project-card,
    .full-project-card {
        min-width: 0;
    }
}

@media screen and (max-width: 480px) {
    html[data-theme="light"] #header .content .inner h1 {
        letter-spacing: 0.07rem;
        overflow-wrap: anywhere;
    }

    html[data-theme="light"] #header .content p {
        letter-spacing: 0.07rem;
        font-size: 0.69rem;
    }

    html[data-theme="light"] .project-card,
    html[data-theme="light"] .full-project-card {
        box-shadow: 0 7px 20px rgba(30, 62, 103, 0.07);
    }
}

/* Respect operating-system accessibility preferences. */
@media (prefers-reduced-motion: reduce) {
    #bg:before,
    #bg:after {
        transition: none !important;
    }
}

/* Final specificity pass for the original home-state navigation overrides. */
html[data-theme="light"] body:not(.is-article-visible) #header nav ul {
    border-color: rgba(47, 94, 150, 0.28);
}

html[data-theme="light"] body:not(.is-article-visible) #header nav ul li {
    border-left-color: rgba(47, 94, 150, 0.20);
}

html[data-theme="light"] body:not(.is-article-visible) #header nav.use-middle:after {
    background: rgba(47, 94, 150, 0.20);
}


/* =========================================================
   READABILITY + RESPONSIVE VIEWPORT REFINEMENT
   Final pass based on real Android phone screenshots.
   Keeps the existing content, interactions and dark theme intact.
   ========================================================= */

/* Light theme typography: stronger contrast and a comfortable reading size. */
html[data-theme="light"] {
    --text-main: #14243a;
    --text-muted: #43566f;
    --text-soft: #536982;
}

html[data-theme="light"] #main article p,
html[data-theme="light"] #main article li,
html[data-theme="light"] #main article blockquote {
    color: #43566f;
    font-size: 1rem;
    line-height: 1.78;
}

html[data-theme="light"] #main article strong,
html[data-theme="light"] #main article b {
    color: #172b45;
    font-weight: 700;
}

html[data-theme="light"] .projects-intro,
html[data-theme="light"] .full-project-card > p:not(.project-category),
html[data-theme="light"] .project-card p,
html[data-theme="light"] #about > p,
html[data-theme="light"] .contact-intro {
    color: #43566f;
    font-size: 1rem;
    line-height: 1.8;
}

/* Supporting labels stay secondary, but are no longer tiny or washed out. */
html[data-theme="light"] .project-tool-tag,
html[data-theme="light"] .project-category,
html[data-theme="light"] .project-card .project-tools,
html[data-theme="light"] .project-gallery-controls,
html[data-theme="light"] .project-footer span,
html[data-theme="light"] .about-kicker,
html[data-theme="light"] .about-role,
html[data-theme="light"] .projects-end-note {
    color: #536982 !important;
    font-size: 0.76rem !important;
    font-weight: 600;
    letter-spacing: 0.045rem;
    line-height: 1.65 !important;
}

html[data-theme="light"] .project-category {
    margin-bottom: 1.1rem !important;
}

html[data-theme="light"] .project-card h3,
html[data-theme="light"] .full-project-card h3 {
    color: #172b45;
    line-height: 1.5;
}

html[data-theme="light"] #header .content .header-role {
    color: #214f83 !important;
    font-size: 0.9rem;
    line-height: 1.7;
    letter-spacing: 0.075rem;
}

html[data-theme="light"] #header .content .header-tagline,
html[data-theme="light"] #header .content .header-links {
    color: #43566f !important;
    font-size: 0.98rem;
    line-height: 1.8;
}

html[data-theme="light"] #footer,
html[data-theme="light"] #footer p {
    color: #536982 !important;
    font-size: 0.72rem;
    line-height: 1.7;
    letter-spacing: 0.075rem;
}

/* Avoid overly compressed small-screen text and give cards breathing room. */
@media screen and (max-width: 736px) {
    html[data-theme="light"] #main article p,
    html[data-theme="light"] #main article li,
    html[data-theme="light"] .projects-intro,
    html[data-theme="light"] .full-project-card > p:not(.project-category),
    html[data-theme="light"] .project-card p,
    html[data-theme="light"] #about > p,
    html[data-theme="light"] .contact-intro {
        font-size: 1rem;
        line-height: 1.82;
    }

    html[data-theme="light"] .project-tool-tag,
    html[data-theme="light"] .project-category,
    html[data-theme="light"] .project-card .project-tools,
    html[data-theme="light"] .project-gallery-controls,
    html[data-theme="light"] .project-footer span,
    html[data-theme="light"] .about-kicker,
    html[data-theme="light"] .about-role,
    html[data-theme="light"] .projects-end-note {
        font-size: 0.74rem !important;
        letter-spacing: 0.035rem;
    }

    #main article.active {
        /* Fallback first; dvh below follows Android's changing browser viewport. */
        max-height: calc(100vh - 1.25rem);
        padding-bottom: calc(2.75rem + env(safe-area-inset-bottom, 0px));
        scroll-padding-bottom: calc(2.75rem + env(safe-area-inset-bottom, 0px));
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }

    #back-to-top {
        right: 0.85rem !important;
        bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* Dynamic viewport units fix the 100vh mismatch on Android Chrome and iOS Safari. */
@supports (height: 100dvh) {
    #bg {
        height: 100dvh;
    }

    #wrapper {
        min-height: 100dvh;
    }

    #main article.active {
        max-height: calc(100dvh - 2rem);
    }

    @media screen and (max-width: 736px) {
        #main article.active {
            max-height: calc(100dvh - 1.25rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        }
    }
}

/* iOS safe-area support; does not change the layout on ordinary Android devices. */
@supports (padding: max(0px)) {
    @media screen and (max-width: 736px) {
        #wrapper {
            padding-left: max(1rem, env(safe-area-inset-left, 0px));
            padding-right: max(1rem, env(safe-area-inset-right, 0px));
        }

        #main article.active {
            padding-bottom: max(2.75rem, calc(1.5rem + env(safe-area-inset-bottom, 0px)));
        }
    }
}

/* Keep project cards and their final actions fully reachable at every width. */
.project-footer {
    flex-wrap: wrap;
}

.project-footer .button {
    flex: 0 0 auto;
}

@media screen and (max-width: 480px) {
    .full-project-card {
        padding: 1.1rem;
    }

    .project-footer {
        gap: 0.85rem;
        padding-bottom: 0.25rem;
    }

    .project-footer .button {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }
}


/* =========================================================
   BEYOND ANALYTICS
   Entry pill (homepage) + dedicated view (#beyond article).
   Additive only: nothing above this block is modified.
   ========================================================= */

:root {
    --by-blue: #5aa9ff;
    --by-blue-strong: #2f80ed;
    --by-blue-soft: rgba(90, 169, 255, 0.12);
    --by-blue-line: rgba(90, 169, 255, 0.42);
    --by-glow: rgba(47, 128, 237, 0.35);
    --by-ink: #f5f7fa;
}

html[data-theme="light"] {
    --by-blue: #1769d2;
    --by-blue-strong: #1769d2;
    --by-blue-soft: rgba(23, 105, 210, 0.08);
    --by-blue-line: rgba(23, 105, 210, 0.34);
    --by-glow: rgba(23, 105, 210, 0.22);
    --by-ink: #14243a;
}

/* ---------- Entry pill ---------- */

.beyond-entry {
    margin: 1.1rem 0 0 0;
}

#header .beyond-pill[hidden] {
    display: none;
}

#header .beyond-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;

    min-height: 2.75rem;
    padding: 0 1.15rem;

    border: 1px solid var(--by-blue-line);
    border-bottom: 1px solid var(--by-blue-line);
    border-radius: 999px;

    background: var(--by-blue-soft);
    color: var(--by-blue) !important;

    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
    white-space: nowrap;

    box-shadow: 0 0 0 0 var(--by-glow);

    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

#header .beyond-pill:hover,
#header .beyond-pill:focus-visible {
    transform: translateY(-2px);
    border-color: var(--by-blue);
    background: var(--by-blue-soft);
    box-shadow: 0 8px 22px var(--by-glow);
}

#header .beyond-pill:focus-visible {
    outline: 2px solid var(--by-blue);
    outline-offset: 3px;
}

.beyond-pill-arrow {
    display: inline-block;
    transition: transform var(--transition-fast);
}

#header .beyond-pill:hover .beyond-pill-arrow,
#header .beyond-pill:focus-visible .beyond-pill-arrow {
    transform: translate(2px, -2px);
}

/* Plays only when the button is newly unlocked. */
#header .beyond-pill.is-revealing {
    animation: by-pop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

@keyframes by-pop {
    0%   { opacity: 0; transform: translateY(8px) scale(0.92); }
    100% { opacity: 1; transform: none; }
}

/* ---------- Dedicated view ---------- */

#main article.beyond-view {
    width: 68rem;
    padding: 4.25rem 2.5rem 2.5rem 2.5rem;
}

#main article.beyond-view.active {
    /* Same scroll-container behaviour as every other article, so mobile scrolling is unchanged. */
    overflow-y: auto;
}

.beyond-view {
    --by-card: var(--bg-card);
}

.beyond-view .by-hero {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto 3rem auto;
}

.beyond-view .by-eyebrow {
    display: inline-block;
    margin: 0 0 1rem 0;
    padding: 0.35rem 0.9rem;

    border: 1px dashed var(--by-blue-line);
    border-radius: 999px;
    background: var(--by-blue-soft);
    color: var(--by-blue);

    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
}

.beyond-view .by-title {
    margin: 0 0 1rem 0;
    padding: 0;
    border: 0;

    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    color: var(--text-main);
}

.beyond-view .by-title span {
    background: linear-gradient(100deg, var(--by-blue) 0%, #8fd0ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

html[data-theme="light"] .beyond-view .by-title span {
    background: linear-gradient(100deg, #1769d2 0%, #3aa0ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.beyond-view .by-intro {
    margin: 0 auto 1.6rem auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ---------- Playable Àyò ---------- */

.beyond-view .by-game {
    position: relative;
    max-width: 36rem;
    margin: 0 auto 1.6rem auto;
}

.beyond-view .by-game-hint {
    margin: 0 0 0.9rem 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.beyond-view .by-game-hint strong {
    color: var(--by-blue);
}

.beyond-view .by-scores {
    display: flex;
    justify-content: space-between;
    margin: 0 0.4rem 0.45rem 0.4rem;

    font-size: 0.7rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    color: var(--text-soft);
}

.beyond-view .by-scores b {
    margin-left: 0.35rem;
    font-size: 0.95rem;
    color: var(--by-blue);
}

.beyond-view .by-boardwrap {
    padding: 0.55rem;

    border: 1px solid var(--by-blue-line);
    border-radius: 22px;
    background: var(--by-blue-soft);
}

.beyond-view .by-play-board {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.4rem;
}

.beyond-view .by-pit {
    position: relative;
    display: block;

    aspect-ratio: 1;
    min-width: 0;
    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.32);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.4);

    font: inherit;
    color: inherit;

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

html[data-theme="light"] .beyond-view .by-pit {
    background: rgba(23, 105, 210, 0.15);
    box-shadow: inset 0 3px 5px rgba(23, 105, 210, 0.22);
}

.beyond-view .by-pit.is-you:not(:disabled) {
    cursor: pointer;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.4), 0 0 0 2px var(--by-blue-line);
}

.beyond-view .by-pit.is-you:not(:disabled):hover,
.beyond-view .by-pit.is-you:not(:disabled):focus-visible {
    transform: translateY(-3px);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.4), 0 0 0 2px var(--by-blue), 0 8px 18px var(--by-glow);
}

.beyond-view .by-pit.is-you:focus-visible {
    outline: 2px solid var(--by-blue);
    outline-offset: 3px;
}

.beyond-view .by-pit:disabled {
    cursor: default;
    opacity: 1;
}

.beyond-view .by-pit.is-hop {
    transform: scale(1.1);
}

.beyond-view .by-pit.is-captured {
    animation: by-capture 0.7s ease;
}

@keyframes by-capture {
    0%   { box-shadow: 0 0 0 0 rgba(255, 196, 61, 0.9); background-color: rgba(255, 196, 61, 0.45); }
    100% { box-shadow: 0 0 0 16px rgba(255, 196, 61, 0); }
}

.beyond-view .by-seeds {
    position: absolute;
    inset: 12%;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: center;
    gap: 2%;

    pointer-events: none;
}

.beyond-view .by-seeds img {
    display: block;
    width: 44%;
    height: 44%;
    margin: 0;

    object-fit: cover;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    background: #fff;
}

.beyond-view .by-seeds[data-n="0"] img { display: none; }
.beyond-view .by-seeds[data-n="1"] img { width: 62%; height: 62%; }
.beyond-view .by-seeds[data-n="2"] img { width: 52%; height: 52%; }
.beyond-view .by-seeds[data-n="many"] img { width: 31%; height: 31%; }

.beyond-view .by-count {
    position: absolute;
    right: -2px;
    bottom: -2px;
    z-index: 1;

    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 0.3rem;

    border-radius: 999px;
    background: #0b1424;
    color: #8fd0ff;

    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.3rem;
    text-align: center;

    pointer-events: none;
}

.beyond-view .by-status {
    min-height: 1.5rem;
    margin: 0.8rem 0 0.6rem 0;

    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
}

.beyond-view .by-restart {
    min-height: 2.5rem;
    margin: 0;
    padding: 0 1.1rem;

    border: 1px solid var(--by-blue-line);
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: var(--by-blue);

    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12rem;
    line-height: 2.5rem;
    text-transform: uppercase;
    cursor: pointer;
}

.beyond-view .by-restart:hover,
.beyond-view .by-restart:focus-visible {
    background: var(--by-blue-soft);
}

.beyond-view .by-confetti {
    position: absolute;
    inset: 0;
    z-index: 5;
    overflow: hidden;
    pointer-events: none;
}

.beyond-view .by-confetti img {
    position: absolute;
    top: -2rem;
    width: 1.7rem;
    height: 1.7rem;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: by-fall 2.4s linear forwards;
}

@keyframes by-fall {
    to { transform: translateY(26rem) rotate(360deg); opacity: 0; }
}

.beyond-view .by-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;

    margin: 0;
    padding: 0;
    list-style: none;
}

.beyond-view .by-chips li {
    margin: 0;
    padding: 0.3rem 0.85rem;

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

    font-size: 0.78rem;
    color: var(--text-muted);
}

.beyond-view .by-chips li:nth-child(2) { transform: rotate(-1.5deg); }
.beyond-view .by-chips li:nth-child(3) { transform: rotate(1.2deg); }

/* ---------- Section titles ---------- */

.beyond-view .by-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;

    margin: 0 0 1.4rem 0;
    padding: 0 0 0.7rem 0;

    border-bottom: 1px solid var(--border);

    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.16rem;
    text-transform: uppercase;
    color: var(--text-main);
}

.beyond-view .by-section-title small {
    font-size: 0.7rem;
    letter-spacing: 0.1rem;
    color: var(--by-blue);
}

/* ---------- Project cards ---------- */

.beyond-view .by-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;

    margin: 0 0 3rem 0;
    padding: 0;
    list-style: none;
}

.beyond-view .by-card {
    display: flex;
    flex-direction: column;

    margin: 0;
    padding: 0;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--by-card);

    box-shadow: 0 14px 38px var(--shadow);

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

.beyond-view .by-card:hover {
    transform: translateY(-3px) rotate(-0.25deg);
    border-color: var(--by-blue-line);
    box-shadow: 0 20px 46px var(--shadow), 0 0 0 1px var(--by-blue-line);
}

.beyond-view .by-card:nth-child(even):hover {
    transform: translateY(-3px) rotate(0.25deg);
}

.beyond-view .by-media {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 9;
    background: var(--by-blue-soft);
    overflow: hidden;
}

.beyond-view .by-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.beyond-view .by-card:hover .by-media img {
    transform: scale(1.04);
}

.beyond-view .by-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;

    padding: 0.28rem 0.7rem;

    border-radius: 999px;
    background: #0b1424;
    color: #8fd0ff;

    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12rem;
    text-transform: uppercase;

    transform: rotate(-3deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.beyond-view .by-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;

    padding: 1.6rem 1.6rem 1.5rem 1.6rem;
    min-width: 0;
}

.beyond-view .by-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.04rem;
    line-height: 1.25;
    color: var(--text-main);
}

.beyond-view .by-summary {
    margin: 0 0 1.2rem 0;
    line-height: 1.65;
    color: var(--text-muted);
}

.beyond-view .by-facts {
    margin: 0;
}

.beyond-view .by-facts > div {
    margin: 0 0 1rem 0;
}

.beyond-view .by-facts dt {
    margin: 0 0 0.3rem 0;

    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
    color: var(--by-blue);
}

.beyond-view .by-facts dd {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.beyond-view .by-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;

    margin: 0;
    padding: 0;
    list-style: none;
}

.beyond-view .by-tags li {
    margin: 0;
    padding: 0.2rem 0.65rem;

    border: 1px solid var(--by-blue-line);
    border-radius: 6px;
    background: var(--by-blue-soft);

    font-size: 0.78rem;
    color: var(--text-main);
}

.beyond-view .by-ai {
    padding: 0.85rem 1rem;

    border: 1px dashed var(--by-blue-line);
    border-radius: 10px;
    background: var(--by-blue-soft);
}

.beyond-view .by-actions {
    margin: auto 0 0 0;
    padding-top: 1.3rem;
}

.beyond-view .by-live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;

    min-height: 2.75rem;
    padding: 0 1.3rem;
    max-width: 100%;

    white-space: normal;
    text-align: center;
}

.beyond-view .by-live.is-placeholder {
    border: 1px dashed var(--border-strong);
    border-radius: 999px;

    font-size: 0.72rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    color: var(--text-soft);
}

/* ---------- Coming-soon card ---------- */

.beyond-view .by-card.by-soon {
    grid-column: 1 / -1;
    flex-direction: row;
    border-style: dashed;
    border-color: var(--by-blue-line);
    background:
        radial-gradient(circle at 0% 0%, var(--by-blue-soft), transparent 50%),
        var(--by-card);
}

.beyond-view .by-soon-visual {
    position: relative;
    flex: 0 0 34%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;

    padding: 2rem 1rem;
    background: linear-gradient(160deg, #0b1424, #12305c);
}

.beyond-view .by-chat {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.beyond-view .by-chat i {
    display: block;
    height: 0.8rem;
    border-radius: 0.5rem;
    background: rgba(143, 208, 255, 0.55);
    animation: by-float 3.2s ease-in-out infinite;
}

.beyond-view .by-chat .b1 { width: 3.4rem; }
.beyond-view .by-chat .b2 { width: 2.4rem; margin-left: 1rem; background: rgba(255, 255, 255, 0.35); animation-delay: 0.3s; }
.beyond-view .by-chat .b3 { width: 3rem; animation-delay: 0.6s; }

.beyond-view .by-arrow {
    font-size: 1.4rem;
    color: #8fd0ff;
    animation: by-nudge 1.6s ease-in-out infinite;
}

.beyond-view .by-caption {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;

    padding: 0.75rem 0.85rem;

    border: 1px solid rgba(143, 208, 255, 0.45);
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
}

.beyond-view .by-caption i {
    display: block;
    height: 0.55rem;
    border-radius: 0.3rem;
    background: #8fd0ff;
}

.beyond-view .by-caption i:nth-child(1) { width: 4.2rem; }
.beyond-view .by-caption i:nth-child(2) { width: 3.2rem; opacity: 0.7; }
.beyond-view .by-caption i:nth-child(3) { width: 1.6rem; animation: by-blink 1.3s steps(2, start) infinite; }

@keyframes by-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes by-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes by-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }

.beyond-view .by-soon-tag {
    margin: 0 0 0.6rem 0;

    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
    color: var(--by-blue);
}

.beyond-view .by-pulse {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.4rem;

    border-radius: 50%;
    background: var(--by-blue);
    animation: by-ping 1.8s ease-out infinite;
}

@keyframes by-ping {
    0%   { box-shadow: 0 0 0 0 var(--by-glow); }
    100% { box-shadow: 0 0 0 0.7rem rgba(47, 128, 237, 0); }
}

.beyond-view .by-name small {
    font-size: 0.7em;
    font-weight: 400;
    color: var(--text-soft);
}

.beyond-view .by-peek {
    align-self: flex-start;

    min-height: 2.75rem;
    margin: 0 0 1rem 0;
    padding: 0 1.2rem;

    border: 1px dashed var(--by-blue-line);
    border-radius: 999px;
    background: var(--by-blue-soft);
    box-shadow: none;
    color: var(--by-blue);

    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    line-height: 2.75rem;
    text-transform: uppercase;
    cursor: pointer;
}

.beyond-view .by-peek:hover,
.beyond-view .by-peek:focus-visible {
    border-style: solid;
}

.beyond-view .by-peek-panel[hidden] {
    display: none;
}

.beyond-view .by-peek-panel {
    animation: by-pop 0.45s ease both;
}

.beyond-view .by-quote {
    margin: 0 0 1.1rem 0;
    padding: 0.2rem 0 0.2rem 1rem;

    border-left: 3px solid var(--by-blue);

    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-main);
}

.beyond-view .by-quote em {
    color: var(--by-blue);
    font-style: normal;
}

@media screen and (max-width: 860px) {
    .beyond-view .by-card.by-soon {
        flex-direction: column;
    }

    .beyond-view .by-soon-visual {
        flex-basis: auto;
    }
}

/* ---------- Collaboration ---------- */

.beyond-view .by-collab {
    position: relative;
    overflow: hidden;

    margin: 0 0 2rem 0;
    padding: 2.4rem 1.75rem;

    text-align: center;

    border: 1px solid var(--by-blue-line);
    border-radius: 16px;
    background:
        radial-gradient(circle at 15% 0%, var(--by-blue-soft), transparent 55%),
        radial-gradient(circle at 90% 100%, var(--by-blue-soft), transparent 55%),
        var(--by-card);
}

.beyond-view .by-collab h3 {
    margin: 0 0 0.8rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.04rem;
    color: var(--text-main);
}

.beyond-view .by-collab p {
    max-width: 36rem;
    margin: 0 auto 1.4rem auto;
    line-height: 1.7;
    color: var(--text-muted);
}

.beyond-view .by-contact {
    min-height: 2.75rem;
    line-height: 2.75rem;
}

.beyond-view .by-contact span {
    display: inline-block;
    margin-left: 0.4rem;
    transition: transform var(--transition-fast);
}

.beyond-view .by-contact:hover span {
    transform: translateX(3px);
}

/* ---------- Return navigation ---------- */

.beyond-view .by-back-row {
    margin: 0;
    text-align: center;
}

.beyond-view .by-back {
    display: inline-flex;
    align-items: center;

    min-height: 2.75rem;
    padding: 0 1.4rem;

    border: 1px solid var(--by-blue-line);
    border-radius: 999px;
    background: var(--by-blue-soft);
    color: var(--by-blue);

    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12rem;
    text-transform: uppercase;

    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.beyond-view .by-back:hover,
.beyond-view .by-back:focus-visible {
    transform: translateX(-3px);
    box-shadow: 0 6px 18px var(--by-glow);
}

.beyond-view .by-back:focus-visible,
.beyond-view .by-contact:focus-visible {
    outline: 2px solid var(--by-blue);
    outline-offset: 3px;
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 980px) {
    #main article.beyond-view {
        width: 100%;
    }
}

@media screen and (max-width: 860px) {
    .beyond-view .by-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media screen and (max-width: 736px) {
    #main article.beyond-view {
        padding: 3.5rem 1.15rem 2rem 1.15rem;
    }

    .beyond-view .by-title {
        font-size: 1.9rem;
        letter-spacing: 0.08rem;
    }

    .beyond-view .by-intro {
        font-size: 0.98rem;
    }

    .beyond-view .by-body {
        padding: 1.3rem 1.15rem 1.25rem 1.15rem;
    }

    .beyond-view .by-collab {
        padding: 1.9rem 1.15rem;
    }

    .beyond-view .by-section-title {
        flex-wrap: wrap;
    }

    .beyond-view .by-live,
    .beyond-view .by-back,
    .beyond-view .by-contact {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media screen and (max-width: 360px) {
    #header .beyond-pill {
        letter-spacing: 0.1rem;
        padding: 0 0.95rem;
    }

    .beyond-view .by-title {
        font-size: 1.6rem;
    }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    #header .beyond-pill,
    #header .beyond-pill.is-revealing,
    .beyond-pill-arrow,
    .beyond-view .by-card,
    .beyond-view .by-media img,
    .beyond-view .by-back,
    .beyond-view .by-contact span,
    .beyond-view .by-pit,
    .beyond-view .by-peek,
    .beyond-view .by-soon * {
        animation: none !important;
        transition: none !important;
    }

    .beyond-view .by-card:hover,
    .beyond-view .by-card:nth-child(even):hover,
    .beyond-view .by-card:hover .by-media img,
    #header .beyond-pill:hover,
    #header .beyond-pill:focus-visible,
    .beyond-view .by-back:hover {
        transform: none;
    }
}
