:root {
    --bg: #080b15;
    --panel: #101626;
    --muted: #9ba9c4;
    --text: #f2f6ff;
    --a: #83f7db;
    --b: #a78bfa;
    --line: #263047
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden
}

body:before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 75% 8%, #5e48ba27, transparent 35%), radial-gradient(ellipse at 5% 45%, #29c5c019, transparent 35%);
    z-index: -1
}

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

button {
    font: inherit
}

.wrap {
    max-width: 1140px;
    margin: auto;
    padding: 0 26px
}

nav {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(22px);
    background: #080b15d9;
    border-bottom: 1px solid #ffffff12
}

.navinner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.logo {
    font: 700 24px 'Space Grotesk';
    letter-spacing: -1px
}

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

.links {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 14px;
    color: #c7d0e3
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 11px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid #ffffff2c;
    transition: .25s;
    cursor: pointer
}

.btn:hover {
    transform: translateY(-3px);
    border-color: var(--a)
}

.primary {
    background: var(--a);
    color: #061c21;
    border-color: var(--a)
}

.hero {
    min-height: 660px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 50px;
    padding-top: 70px;
    padding-bottom: 90px
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border: 1px solid #5de7cb45;
    border-radius: 50px;
    color: var(--a);
    font-size: 13px;
    background: #50f7d40a
}

.dot {
    height: 8px;
    width: 8px;
    background: var(--a);
    border-radius: 50%;
    box-shadow: 0 0 14px var(--a)
}

h1,
h2,
h3 {
    font-family: 'Space Grotesk', sans-serif
}

h1 {
    font-size: clamp(48px, 6vw, 82px);
    letter-spacing: -4px;
    line-height: 1.05;
    margin: 22px 0
}

h1 .gradient,
.gradient {
    background: linear-gradient(110deg, var(--a), #7ac8ff, var(--b));
    color: transparent;
    background-clip: text
}

.lead {
    font-size: 18px;
    line-height: 1.8;
    color: var(--muted);
    max-width: 600px
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 32px
}

.social {
    display: flex;
    gap: 20px;
    margin-top: 33px;
    color: #aebbd3;
    font-size: 14px
}

.social a:hover {
    color: var(--a)
}

.visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 420px
}

.orb {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, #60ffe036, transparent 65%);
    filter: blur(16px)
}

.terminal {
    position: relative;
    width: 100%;
    max-width: 420px;
    border: 1px solid #52637a80;
    border-radius: 18px;
    background: #101727ed;
    box-shadow: 0 24px 100px #0009;
    transform: rotate(2deg);
    overflow: hidden
}

.termbar {
    height: 46px;
    background: #1a2337;
    border-bottom: 1px solid #ffffff14;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 17px
}

.termbar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff6b80
}

.termbar i:nth-child(2) {
    background: #ffd36c
}

.termbar i:nth-child(3) {
    background: #7cf0a6
}

.termbar small {
    margin-left: auto;
    color: #8392ae
}

.termcontent {
    padding: 26px 25px 35px;
    font: 15px/2 'Courier New', monospace;
    color: #cbd6ef
}

.purple {
    color: #c7a4ff
}

.mint {
    color: var(--a)
}

.gold {
    color: #ffdc8b
}

.float {
    position: absolute;
    bottom: -35px;
    right: -14px;
    background: #1c2a3b;
    border: 1px solid #52736f;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 13px;
    box-shadow: 0 10px 30px #0008
}

.float strong {
    color: var(--a)
}

section {
    padding: 95px 0
}

.sectionhead {
    margin-bottom: 38px
}

.kicker {
    color: var(--a);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase
}

.sectionhead h2 {
    font-size: clamp(32px, 4vw, 46px);
    letter-spacing: -1.5px;
    margin: 13px 0
}

.sectionhead p {
    color: var(--muted);
    line-height: 1.7;
    max-width: 660px
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.card {
    background: linear-gradient(145deg, #141c2c, #0d1321);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 27px;
    transition: .3s
}

.card:hover {
    border-color: #78f3d47a;
    transform: translateY(-5px)
}

.card h3 {
    margin: 13px 0;
    font-size: 20px
}

.card p {
    color: var(--muted);
    line-height: 1.75;
    font-size: 14px
}

.symbol {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: #82f7db16;
    color: var(--a);
    font-size: 24px
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px
}

.tag {
    font-size: 12px;
    border: 1px solid #35415a;
    border-radius: 7px;
    padding: 7px 10px;
    color: #bdcce5;
    background: #ffffff04
}

.projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.project {
    overflow: hidden;
    padding: 0
}

.projectart {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 65% 50%, #246d7a66, transparent 50%), linear-gradient(135deg, #17283c, #111727)
}

.project:nth-child(2) .projectart {
    background: radial-gradient(circle at 65% 50%, #7654b566, transparent 50%), linear-gradient(135deg, #26203d, #111727)
}

.mock {
    width: 75%;
    height: 145px;
    border: 1px solid #6d879a;
    border-radius: 12px;
    background: #111a2bdc;
    box-shadow: 0 15px 40px #0007;
    padding: 15px;
    transform: rotate(-5deg)
}

.mock .bar {
    height: 12px;
    width: 65%;
    background: #65e9cf;
    border-radius: 4px;
    margin-bottom: 17px
}

.mock .line {
    height: 8px;
    background: #61718e70;
    border-radius: 4px;
    margin: 10px 0
}

.mock .line:nth-child(3) {
    width: 75%
}

.mock .line:nth-child(4) {
    width: 90%
}

.mock .line:nth-child(5) {
    width: 55%
}

.project:nth-child(2) .mock {
    transform: rotate(5deg)
}

.project:nth-child(2) .mock .bar {
    background: #b69afa
}

.projectbody {
    padding: 28px
}

.projectbody h3 {
    margin-top: 0;
    font-size: 23px
}

.projectbody p {
    min-height: 78px
}

.projectlink {
    display: inline-block;
    margin-top: 21px;
    color: var(--a);
    font-weight: 700;
    font-size: 14px
}

.timeline {
    border-left: 2px solid #34405b;
    padding-left: 32px;
    margin-left: 8px
}

.entry {
    position: relative;
    margin: 0 0 35px;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #101727
}

.entry:before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--a);
    border-radius: 50%;
    left: -39px;
    top: 30px;
    box-shadow: 0 0 0 5px #183c3e
}

.entry .date {
    font-size: 12px;
    color: var(--a);
    font-weight: 700
}

.entry h3 {
    font-size: 21px;
    margin: 12px 0 4px
}

.entry .org {
    color: #b9a7ff
}

.entry p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

.stat {
    border: 1px solid var(--line);
    background: #111a29;
    padding: 18px 22px;
    border-radius: 13px;
    flex: 1;
    min-width: 130px
}

.stat strong {
    display: block;
    color: var(--a);
    font: 700 27px 'Space Grotesk'
}

.stat small {
    color: var(--muted)
}

.contact {
    background: linear-gradient(125deg, #122e34, #19152d);
    border: 1px solid #52777c70;
    border-radius: 25px;
    padding: 55px;
    text-align: center
}

.contact h2 {
    font-size: clamp(30px, 4vw, 48px);
    margin: 15px 0
}

.contact p {
    color: #b9c9d6;
    line-height: 1.7
}

.contact .actions {
    justify-content: center
}

footer {
    padding: 30px 0;
    border-top: 1px solid var(--line);
    color: #9aa8bf;
    font-size: 13px
}

.foot {
    display: flex;
    justify-content: space-between;
    gap: 20px
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s, transform .7s
}

.reveal.visible {
    opacity: 1;
    transform: none
}

@media(max-width:850px) {
    .links {
        display: none
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 65px;
        gap: 5px
    }

    .visual {
        min-height: 330px
    }

    .terminal {
        max-width: 370px
    }

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

    .split {
        grid-template-columns: 1fr
    }
}

@media(max-width:580px) {
    h1 {
        letter-spacing: -2px
    }

    .wrap {
        padding: 0 20px
    }

    .hero {
        padding-bottom: 45px
    }

    .grid,
    .projects {
        grid-template-columns: 1fr
    }

    section {
        padding: 65px 0
    }

    .contact {
        padding: 35px 20px
    }

    .foot {
        flex-direction: column
    }

    .visual {
        min-height: 300px
    }

    .terminal {
        width: 90%
    }

    .float {
        right: 0
    }

    .termcontent {
        font-size: 12px;
        padding: 20px
    }

    .social {
        flex-wrap: wrap
    }

    .navinner {
        height: 65px
    }
}

/* Accessible dual-theme styling */
html[data-theme="light"] {
    --bg: #f6f8fc;
    --panel: #ffffff;
    --muted: #52627b;
    --text: #18243b;
    --a: #087c70;
    --b: #6e43c4;
    --line: #dce4ef;
    color-scheme: light
}

html[data-theme="dark"] {
    color-scheme: dark
}

html[data-theme="light"] body:before {
    background: radial-gradient(ellipse at 75% 8%, #9c83e820, transparent 35%), radial-gradient(ellipse at 5% 45%, #5ad3c522, transparent 35%)
}

html[data-theme="light"] nav {
    background: #f6f8fce8;
    border-bottom-color: #dce4ef
}

html[data-theme="light"] .links,
html[data-theme="light"] .social {
    color: #40536c
}

html[data-theme="light"] .btn:not(.primary) {
    border-color: #bdc9d9;
    background: #ffffff;
    color: #24344b
}

html[data-theme="light"] .primary {
    color: #ffffff
}

html[data-theme="light"] .eyebrow {
    border-color: #a2d9d2;
    background: #e4f6f2
}

html[data-theme="light"] .card {
    background: linear-gradient(145deg, #ffffff, #f0f5fc);
    box-shadow: 0 8px 30px #243b5910
}

html[data-theme="light"] .tag {
    color: #40516b;
    border-color: #cdd8e6;
    background: #f3f6fb
}

html[data-theme="light"] .entry,
html[data-theme="light"] .stat {
    background: #ffffff
}

html[data-theme="light"] .timeline {
    border-left-color: #bdcbdc
}

html[data-theme="light"] .entry .org {
    color: #6843aa
}

html[data-theme="light"] .contact {
    background: linear-gradient(125deg, #e3f7f3, #f0eafa);
    border-color: #bad9d8
}

html[data-theme="light"] .contact p {
    color: #52627b
}

html[data-theme="light"] footer {
    color: #61708a
}

html[data-theme="light"] .terminal {
    background: #ffffffed;
    border-color: #bcc8d9;
    box-shadow: 0 24px 65px #30446028
}

html[data-theme="light"] .termbar {
    background: #eaf0f8;
    border-bottom-color: #d4ddea
}

html[data-theme="light"] .termbar small {
    color: #53637a
}

html[data-theme="light"] .termcontent {
    color: #2e3c54
}

html[data-theme="light"] .purple {
    color: #6944b8
}

html[data-theme="light"] .gold {
    color: #a04f13
}

html[data-theme="light"] .float {
    background: #ffffff;
    color: #24344b;
    box-shadow: 0 10px 30px #30446022
}

html[data-theme="light"] .projectart {
    background: radial-gradient(circle at 65% 50%, #62d2cc88, transparent 50%), linear-gradient(135deg, #e1f1f6, #e7e9f6)
}

html[data-theme="light"] .project:nth-child(2) .projectart {
    background: radial-gradient(circle at 65% 50%, #b3a0ef88, transparent 50%), linear-gradient(135deg, #e9e5f8, #e6eef9)
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 112px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: background .2s, border-color .2s, transform .2s
}

.theme-toggle:hover {
    border-color: var(--a);
    transform: translateY(-2px)
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px
}

@media(max-width:580px) {
    .nav-actions>.btn {
        display: none
    }

    .theme-toggle {
        min-width: 95px;
        padding: 9px 10px
    }
}

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

    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important
    }

    .reveal {
        opacity: 1;
        transform: none
    }
}

/* 2026 refinement: stronger typography and coordinated premium palettes */
:root {
    --bg: #070c1b;
    --panel: #121d33;
    --muted: #c1d0e9;
    --text: #f7faff;
    --a: #57f0d0;
    --b: #c3a1ff;
    --line: #344764;
    --glow: #29d7ca29
}

html[data-theme="dark"] {
    --bg: #070c1b;
    --panel: #121d33;
    --muted: #c1d0e9;
    --text: #f7faff;
    --a: #57f0d0;
    --b: #c3a1ff;
    --line: #344764;
    --glow: #29d7ca29
}

html[data-theme="light"] {
    --bg: #f3f7ff;
    --panel: #ffffff;
    --muted: #344763;
    --text: #11203a;
    --a: #087f82;
    --b: #7046c4;
    --line: #c9d8eb;
    --glow: #44c7bd25
}

body {
    font-weight: 700;
    background: var(--bg);
    transition: background-color .35s, color .35s
}

body p,
body li,
body small,
body .lead,
body .tag,
body .date,
body .org,
body .kicker,
body .eyebrow,
body .links,
body .social,
body .termcontent,
body .float,
body .stat small,
body footer,
body .theme-toggle {
    font-weight: 700
}

body:before {
    background: radial-gradient(ellipse at 85% 6%, #8b5cf63a, transparent 37%), radial-gradient(ellipse at 8% 50%, #0ad4c62a, transparent 42%), radial-gradient(ellipse at 60% 95%, #3077e41a, transparent 38%)
}

html[data-theme="light"] body:before {
    background: radial-gradient(ellipse at 85% 6%, #9d82f63d, transparent 38%), radial-gradient(ellipse at 8% 48%, #57cfc43b, transparent 40%), radial-gradient(ellipse at 55% 90%, #86b7ff36, transparent 40%)
}

nav {
    background: #070c1bea;
    border-bottom-color: #57f0d028
}

html[data-theme="light"] nav {
    background: #f3f7ffec;
    border-bottom-color: #c9d8eb
}

.links,
.social {
    color: #d6e2f5
}

html[data-theme="light"] .links,
html[data-theme="light"] .social {
    color: #283c59
}

.card {
    background: linear-gradient(145deg, #192841, #0e192d);
    box-shadow: 0 15px 42px #0000001f
}

html[data-theme="light"] .card {
    background: linear-gradient(145deg, #ffffff, #eaf2ff);
    box-shadow: 0 12px 36px #355b9220
}

.card:hover {
    box-shadow: 0 20px 55px var(--glow);
    border-color: var(--a)
}

.entry,
.stat {
    background: linear-gradient(140deg, #16263e, #0e192d)
}

html[data-theme="light"] .entry,
html[data-theme="light"] .stat {
    background: linear-gradient(140deg, #ffffff, #edf4ff);
    box-shadow: 0 9px 26px #355b9214
}

.tag {
    color: #e2ecff;
    background: #90bfff12;
    border-color: #526782
}

html[data-theme="light"] .tag {
    color: #263c5c;
    background: #eaf2ff;
    border-color: #b8cde6
}

.contact {
    background: linear-gradient(120deg, #113e47, #242044 60%, #172e55);
    border-color: #56e2d16b;
    box-shadow: 0 22px 65px #00000022
}

html[data-theme="light"] .contact {
    background: linear-gradient(120deg, #d2f5f1, #e8e2ff 60%, #dbeaff);
    border-color: #8bcac8;
    box-shadow: 0 18px 50px #355b9220
}

.contact p {
    color: #e0eff8
}

html[data-theme="light"] .contact p {
    color: #30445f
}

.gradient,
h1 .gradient {
    background: linear-gradient(110deg, var(--a), #7caeff, var(--b));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent
}

html[data-theme="light"] .gradient,
html[data-theme="light"] h1 .gradient {
    background: linear-gradient(110deg, #087f82, #336dc6, #7046c4);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent
}

.primary {
    background: linear-gradient(120deg, #5af4d0, #81d5ff);
    color: #08232c;
    border-color: transparent;
    box-shadow: 0 8px 24px #42d8cf35
}

html[data-theme="light"] .primary {
    background: linear-gradient(120deg, #087f82, #3469bf);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 24px #3469bf33
}

.btn:not(.primary) {
    background: #ffffff0a;
    border-color: #8da4c15c
}

html[data-theme="light"] .btn:not(.primary) {
    background: #fff;
    border-color: #aebfd7;
    color: #1d3151
}

.theme-toggle {
    background: linear-gradient(130deg, var(--panel), #263955);
    border-color: var(--line)
}

html[data-theme="light"] .theme-toggle {
    background: linear-gradient(130deg, #ffffff, #e6f1ff);
    color: var(--text)
}

.termcontent {
    font-weight: 700
}

html[data-theme="light"] .termcontent {
    color: #263955
}

html[data-theme="light"] .mint {
    color: #087f82
}

html[data-theme="light"] .float strong {
    color: #087f82
}

html[data-theme="light"] .projectlink {
    color: #087f82
}

html[data-theme="light"] .kicker {
    color: #087f82
}

html[data-theme="light"] .stat strong {
    color: #087f82
}

html[data-theme="light"] .eyebrow {
    color: #087f82
}

@media(prefers-reduced-motion:reduce) {
    body {
        transition: none
    }
}

/* V1 mobile alignment and overflow fixes */
html {
    scroll-padding-top: 90px
}

main,
section,
.wrap,
.hero,
.grid,
.projects,
.split {
    min-width: 0
}

.hero>*,
.grid>*,
.projects>*,
.split>* {
    min-width: 0
}

.card,
.entry,
.contact,
.stat {
    overflow-wrap: anywhere
}

@media(max-width:850px) {
    .hero {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding-top: 55px;
        padding-bottom: 65px
    }

    .hero>div:first-child {
        width: 100%
    }

    .visual {
        width: 100%;
        min-height: 390px
    }

    .terminal {
        transform: none;
        max-width: 440px;
        width: min(100%, 440px)
    }

    .float {
        right: 0;
        bottom: 0
    }

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

    .projects,
    .split {
        grid-template-columns: minmax(0, 1fr)
    }

    .navinner {
        gap: 12px
    }
}

@media(max-width:580px) {
    html {
        scroll-padding-top: 75px
    }

    .wrap {
        padding-inline: 18px
    }

    .navinner {
        height: 66px;
        gap: 8px
    }

    .logo {
        font-size: clamp(16px, 4.5vw, 22px);
        letter-spacing: -.6px;
        white-space: nowrap
    }

    .nav-actions {
        flex-shrink: 0
    }

    .theme-toggle {
        min-width: 0;
        padding: 9px 10px;
        font-size: 12px;
        gap: 5px
    }

    .hero {
        padding-top: 42px;
        padding-bottom: 45px;
        gap: 30px
    }

    h1 {
        font-size: clamp(38px, 10vw, 58px);
        line-height: 1.13;
        letter-spacing: -1.8px;
        overflow-wrap: anywhere
    }

    .eyebrow {
        font-size: 11px;
        line-height: 1.45;
        max-width: 100%;
        white-space: normal
    }

    .lead {
        font-size: 16px;
        line-height: 1.75
    }

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

    .actions .btn {
        min-width: 0;
        padding: 13px 10px;
        text-align: center;
        font-size: 12px;
        line-height: 1.45
    }

    .social {
        gap: 12px 18px;
        align-items: center;
        margin-top: 25px;
        font-size: 13px
    }

    .social span {
        flex-basis: 100%
    }

    .visual {
        min-height: 345px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 6px 22px
    }

    .orb {
        width: min(80vw, 310px);
        height: min(80vw, 310px)
    }

    .terminal {
        width: 100%;
        max-width: 390px;
        transform: none;
        border-radius: 14px
    }

    .termcontent {
        padding: 18px 15px 25px;
        font-size: clamp(10px, 2.7vw, 13px);
        line-height: 1.85;
        overflow-wrap: anywhere
    }

    .float {
        right: 0;
        bottom: 0;
        padding: 10px 12px;
        font-size: 11px
    }

    section {
        padding: 60px 0
    }

    .sectionhead {
        margin-bottom: 25px
    }

    .sectionhead h2 {
        font-size: clamp(28px, 8vw, 38px);
        line-height: 1.18;
        letter-spacing: -1px;
        overflow-wrap: anywhere
    }

    .sectionhead p {
        font-size: 14px
    }

    .grid,
    .projects,
    .split {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px
    }

    .card {
        padding: 22px;
        border-radius: 16px
    }

    .project {
        padding: 0
    }

    .projectart {
        height: 185px
    }

    .projectbody {
        padding: 22px
    }

    .projectbody h3 {
        font-size: 20px
    }

    .projectbody p {
        min-height: 0
    }

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

    .stat {
        min-width: 0;
        padding: 15px 12px
    }

    .stat strong {
        font-size: 24px
    }

    .stat small {
        font-size: 12px
    }

    .timeline {
        margin-left: 6px;
        padding-left: 20px
    }

    .entry {
        padding: 20px;
        margin-bottom: 20px
    }

    .entry:before {
        left: -27px
    }

    .entry h3 {
        font-size: 19px
    }

    .contact {
        padding: 30px 18px;
        border-radius: 18px
    }

    .contact p br {
        display: none
    }

    .contact .actions {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .contact .actions .btn:last-child {
        grid-column: 1/-1
    }

    .foot {
        align-items: flex-start;
        gap: 12px;
        line-height: 1.6
    }
}

@media(max-width:360px) {
    .wrap {
        padding-inline: 14px
    }

    .logo {
        font-size: 16px
    }

    .theme-toggle {
        padding: 8px;
        font-size: 11px
    }

    .actions {
        grid-template-columns: minmax(0, 1fr)
    }

    .contact .actions {
        grid-template-columns: minmax(0, 1fr)
    }

    .contact .actions .btn:last-child {
        grid-column: auto
    }

    .visual {
        min-height: 320px
    }

    .termcontent {
        font-size: 10px;
        padding: 15px 11px 22px
    }
}