:root {
    --bg: #07131a;
    --bg-deep: #041018;
    --panel: rgba(11, 28, 36, 0.72);
    --panel-strong: rgba(14, 35, 45, 0.92);
    --line: rgba(180, 221, 228, 0.16);
    --line-strong: rgba(180, 221, 228, 0.28);
    --text: #f2efe7;
    --muted: #9fb2bb;
    --soft: #d7e7ea;
    --teal: #67f6db;
    --sky: #7fc6ff;
    --amber: #f5b971;
    --coral: #ff8566;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 16px 36px rgba(0, 0, 0, 0.16);
    --radius: 28px;
    --radius-sm: 18px;
    --container: 1180px;
    --header-height: 92px;
    --transition: 220ms ease;
}

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

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

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Instrument Sans", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(127, 198, 255, 0.16), transparent 32%),
        radial-gradient(circle at 85% 10%, rgba(103, 246, 219, 0.14), transparent 24%),
        linear-gradient(180deg, #08151d 0%, #061118 48%, #08151c 100%);
    color: var(--text);
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
textarea {
    font: inherit;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

::selection {
    background: rgba(103, 246, 219, 0.3);
    color: var(--text);
}

.page-orb {
    position: fixed;
    inset: auto;
    border-radius: 999px;
    filter: blur(90px);
    pointer-events: none;
    z-index: -2;
}

.page-orb-one {
    top: -120px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: rgba(127, 198, 255, 0.18);
}

.page-orb-two {
    right: -80px;
    bottom: 12%;
    width: 360px;
    height: 360px;
    background: rgba(245, 185, 113, 0.12);
}

.page-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 86%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 86%);
    pointer-events: none;
    z-index: -3;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.section {
    padding: 110px 0;
    position: relative;
}

.section-dark {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 24px 0 0;
    transition: padding var(--transition);
}

.site-header.is-scrolled {
    padding-top: 10px;
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-height);
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(6, 19, 27, 0.75);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(103, 246, 219, 0.24), rgba(127, 198, 255, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--soft);
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong,
.brand-copy small {
    display: block;
}

.brand-copy strong {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.brand-copy small {
    margin-top: 0.28rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    position: relative;
    padding: 0.8rem 1rem;
    color: var(--muted);
    font-size: 0.98rem;
    transition: color var(--transition), background-color var(--transition);
    border-radius: 999px;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.26rem;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 52px;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
}

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

.button-primary {
    background: linear-gradient(135deg, var(--teal), var(--sky));
    color: #03202b;
    box-shadow: 0 18px 32px rgba(103, 246, 219, 0.22);
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.button-secondary:hover,
.button-nav:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.button-nav {
    margin-left: 0.35rem;
    min-height: 48px;
    padding-inline: 1.35rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--teal);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
}

.hero {
    padding-top: 70px;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 3rem;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-title {
    margin-top: 1.3rem;
    max-width: 12ch;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(3.3rem, 7vw, 6.3rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero-lead {
    max-width: 640px;
    margin-top: 1.4rem;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    list-style: none;
    margin-top: 2.1rem;
}

.hero-tags li {
    padding: 0.65rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--soft);
    font-size: 0.92rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.25rem;
}

.metric-card,
.panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow-soft);
}

.metric-card,
.panel,
.project-card,
.contact-link {
    transition: transform var(--transition), border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.metric-card:hover,
.panel:hover,
.project-card:hover,
.contact-link:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
}

.metric-card {
    padding: 1.2rem 1.1rem;
}

.metric-card::before,
.panel::before,
.project-card::before,
.contact-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), transparent 48%);
    pointer-events: none;
}

.metric-number {
    display: block;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1;
}

.metric-label {
    display: block;
    margin-top: 0.7rem;
    color: var(--muted);
    font-size: 0.94rem;
}

.hero-visual {
    position: relative;
    min-height: 0;
}

.visual-panel {
    position: relative;
    min-height: 0;
    display: flex;
    justify-content: center;
    padding: 0;
    border-radius: 38px;
    isolation: isolate;
    background: transparent;
    transform: perspective(1200px) rotateY(calc(var(--pointer-x, 0) * 1deg)) rotateX(calc(var(--pointer-y, 0) * -1deg));
    transition: transform 180ms ease;
}

.hero-photo-stage {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-photo-column {
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.portrait-frame {
    position: relative;
    z-index: 1;
    margin: 0;
    justify-self: center;
    width: min(100%, 460px);
    aspect-ratio: 4 / 5;
    border-radius: 36px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(5, 16, 23, 0.95);
    box-shadow:
        0 34px 70px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.portrait-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: none;
}

.portrait-meta {
    width: min(100%, 460px);
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: rgba(8, 21, 28, 0.82);
    box-shadow: var(--shadow-soft);
}

.portrait-meta strong,
.portrait-meta span {
    display: block;
}

.portrait-meta strong {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 1.08rem;
}

.portrait-meta span {
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 3.2rem;
}

.section-heading h2 {
    margin-top: 1rem;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.section-heading p:last-child {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 1.04rem;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.4rem;
    align-items: start;
}

.about-story {
    padding: 2rem;
}

.about-story h3,
.service-card h3,
.project-body h3,
.spotlight-card h3,
.skill-card h3,
.timeline-item h3 {
    font-family: "Bricolage Grotesque", sans-serif;
    letter-spacing: -0.02em;
}

.about-story h3 {
    max-width: 16ch;
    font-size: 2rem;
    line-height: 1.05;
}

.about-story p {
    margin-top: 1rem;
    color: var(--muted);
}

.story-points {
    display: grid;
    gap: 0.95rem;
    margin-top: 2rem;
}

.story-point {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
}

.story-point span,
.stack-label,
.spotlight-label {
    display: block;
    color: var(--teal);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.story-point strong {
    display: block;
    margin-top: 0.4rem;
    color: var(--soft);
    font-size: 0.98rem;
    font-weight: 600;
}

.about-bento {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.bento-card,
.bento-quote {
    min-height: 220px;
    padding: 1.6rem;
}

.card-index,
.milestone-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.05);
    color: var(--teal);
    font-size: 0.9rem;
    font-weight: 700;
}

.bento-card h3 {
    margin-top: 1rem;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 1.35rem;
}

.bento-card p,
.bento-quote p,
.service-card p,
.skill-card p,
.contact-copy p,
.spotlight-card p,
.milestone-card p {
    margin-top: 0.85rem;
    color: var(--muted);
}

.bento-quote {
    display: flex;
    align-items: end;
    grid-column: span 2;
    background:
        linear-gradient(145deg, rgba(103, 246, 219, 0.08), rgba(127, 198, 255, 0.04)),
        rgba(255, 255, 255, 0.03);
}

.bento-quote p {
    margin-top: 0;
    max-width: 24ch;
    color: var(--soft);
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 1.45rem;
    line-height: 1.1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 21, 28, 0.8);
    box-shadow: var(--shadow-soft);
}

.project-featured {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
    grid-column: span 2;
}

.project-visual {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 42%);
}

.project-featured .project-visual {
    min-height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 0;
}

.project-visual-restaurant {
    background:
        radial-gradient(circle at 25% 24%, rgba(103, 246, 219, 0.2), transparent 20%),
        linear-gradient(135deg, rgba(8, 31, 36, 0.98), rgba(15, 47, 53, 0.94));
}

.project-visual-commerce {
    background:
        radial-gradient(circle at 78% 22%, rgba(127, 198, 255, 0.26), transparent 22%),
        linear-gradient(135deg, rgba(12, 31, 50, 0.96), rgba(11, 39, 58, 0.9));
}

.project-visual-ticket {
    background:
        radial-gradient(circle at 22% 20%, rgba(245, 185, 113, 0.26), transparent 20%),
        linear-gradient(135deg, rgba(43, 25, 19, 0.94), rgba(35, 19, 16, 0.88));
}

.project-visual-gym {
    background:
        radial-gradient(circle at 24% 22%, rgba(103, 246, 219, 0.2), transparent 20%),
        linear-gradient(135deg, rgba(8, 36, 27, 0.96), rgba(11, 61, 42, 0.92));
}

.project-visual-expense {
    background:
        radial-gradient(circle at 76% 20%, rgba(140, 237, 186, 0.22), transparent 22%),
        linear-gradient(135deg, rgba(10, 33, 40, 0.98), rgba(10, 48, 60, 0.9));
}

.project-visual-monitor {
    background:
        radial-gradient(circle at 22% 20%, rgba(255, 124, 124, 0.18), transparent 18%),
        radial-gradient(circle at 78% 24%, rgba(127, 198, 255, 0.24), transparent 22%),
        linear-gradient(135deg, rgba(14, 23, 41, 0.98), rgba(14, 34, 58, 0.92));
}

.project-media {
    position: absolute;
    inset: 1.15rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.project-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mock-window,
.mock-dashboard,
.ticket-stack {
    position: absolute;
    inset: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
}

.mock-window {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: min-content;
    gap: 0.8rem;
    align-content: start;
    padding: 1rem;
}

.mock-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--soft);
    font-size: 0.88rem;
}

.mock-bars {
    grid-column: 1 / -1;
    display: flex;
    align-items: end;
    gap: 0.85rem;
    height: 150px;
    margin-top: 1rem;
}

.mock-bars span {
    flex: 1;
    border-radius: 999px 999px 18px 18px;
    background: linear-gradient(180deg, rgba(103, 246, 219, 0.88), rgba(127, 198, 255, 0.2));
}

.mock-bars span:nth-child(1) {
    height: 56%;
}

.mock-bars span:nth-child(2) {
    height: 88%;
}

.mock-bars span:nth-child(3) {
    height: 72%;
}

.mock-dashboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    padding: 1rem;
}

.mock-dashboard div {
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(127, 198, 255, 0.22), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-dashboard div:nth-child(1) {
    grid-column: 1 / -1;
    min-height: 92px;
}

.mock-dashboard div:nth-child(2),
.mock-dashboard div:nth-child(3) {
    min-height: 112px;
}

.mock-dashboard div:nth-child(4) {
    grid-column: 1 / -1;
    min-height: 58px;
}

.ticket-stack {
    display: grid;
    place-items: center;
}

.ticket-stack span {
    position: absolute;
    width: clamp(180px, 70%, 260px);
    height: 116px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(245, 185, 113, 0.18), rgba(255, 255, 255, 0.05));
}

.ticket-stack span:nth-child(1) {
    transform: rotate(-12deg) translate(-16px, 18px);
}

.ticket-stack span:nth-child(2) {
    transform: rotate(9deg) translate(18px, -14px);
}

.ticket-stack span:nth-child(3) {
    width: clamp(200px, 72%, 276px);
    height: 128px;
    transform: rotate(-2deg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(245, 185, 113, 0.16));
}

.project-body {
    padding: 1.8rem;
}

.project-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-body h3 {
    margin-top: 1rem;
    font-size: 1.8rem;
    line-height: 1.05;
}

.project-body p {
    margin-top: 0.95rem;
    color: var(--muted);
}

.project-points {
    margin-top: 1.15rem;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.project-points li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--soft);
    font-size: 0.97rem;
}

.project-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62rem;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--teal);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.tag-row span {
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--soft);
    font-size: 0.86rem;
}

.project-link,
.text-link,
.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.4rem;
    color: var(--teal);
    font-weight: 700;
}

.skills-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    gap: 1rem;
    align-items: start;
}

.skills-grid {
    display: grid;
    gap: 1rem;
}

.skill-card,
.stack-card,
.service-card,
.spotlight-card,
.milestone-card,
.contact-form {
    padding: 1.45rem;
}

.skill-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.skill-title-row span {
    color: var(--soft);
    font-weight: 700;
}

.skill-meter {
    height: 11px;
    margin-top: 1rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.skill-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--sky), var(--amber));
}

.stack-card {
    min-height: 100%;
    background:
        linear-gradient(155deg, rgba(103, 246, 219, 0.08), rgba(127, 198, 255, 0.04)),
        rgba(255, 255, 255, 0.03);
}

.stack-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.stack-cloud span {
    padding: 0.62rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--soft);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.journey-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
    gap: 1rem;
    align-items: start;
}

.timeline {
    position: relative;
    display: grid;
    gap: 1rem;
    padding-left: 1.35rem;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0.4rem;
    bottom: 0.4rem;
    left: 0.32rem;
    width: 2px;
    background: linear-gradient(180deg, var(--teal), rgba(255, 255, 255, 0.08));
}

.timeline-item {
    position: relative;
    padding: 1.35rem 1.35rem 1.35rem 1.55rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -1.36rem;
    top: 1.7rem;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--teal);
    box-shadow: 0 0 0 5px rgba(103, 246, 219, 0.12);
}

.timeline-year {
    display: inline-block;
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timeline-item p {
    margin-top: 0.55rem;
    color: var(--soft);
    font-weight: 600;
}

.timeline-item small {
    display: block;
    margin-top: 0.65rem;
    color: var(--muted);
}

.journey-aside,
.milestone-grid {
    display: grid;
    gap: 1rem;
}

.spotlight-card h3 {
    margin-top: 0.8rem;
    font-size: 1.8rem;
    line-height: 1.04;
}

.contact-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1rem;
    align-items: start;
}

.contact-copy {
    padding: 1rem 0;
}

.contact-copy h2 {
    margin-top: 1rem;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.contact-links {
    display: grid;
    gap: 0.85rem;
    margin-top: 2rem;
}

.contact-link {
    position: relative;
    overflow: hidden;
    padding: 1.15rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    transition: transform var(--transition), border-color var(--transition), background-color var(--transition);
}

.contact-link:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
}

.contact-link span {
    display: block;
    color: var(--teal);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-link strong {
    display: block;
    margin-top: 0.45rem;
    color: var(--soft);
    font-size: 1rem;
}

.contact-form {
    position: relative;
}

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

.field {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.field span {
    color: var(--soft);
    font-size: 0.95rem;
    font-weight: 600;
}

.field input,
.field textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(218, 230, 232, 0.48);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(103, 246, 219, 0.45);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(103, 246, 219, 0.09);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
}

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

.form-status.is-success {
    color: var(--teal);
}

.form-status.is-error {
    color: #ffab96;
}

.site-footer {
    padding: 0 0 2.5rem;
}

.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .hero-shell,
    .about-grid,
    .skills-layout,
    .journey-grid,
    .contact-shell {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        order: 1;
    }

    .hero-visual {
        order: 0;
        min-height: 560px;
    }

    .visual-panel {
        min-height: 560px;
    }

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

@media (max-width: 920px) {
    .site-nav {
        position: fixed;
        top: calc(var(--header-height) + 16px);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 1rem;
        border-radius: 28px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(6, 19, 27, 0.96);
        backdrop-filter: blur(18px);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity var(--transition), transform var(--transition);
    }

    .site-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav .button-nav {
        margin-left: 0;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 1.05rem;
    }

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

    .projects-grid,
    .project-featured,
    .field-grid {
        grid-template-columns: 1fr;
    }

    .project-featured {
        grid-column: auto;
    }

    .project-featured .project-visual {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        min-height: 260px;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 92px 0;
    }

    .header-shell {
        min-height: 80px;
        padding: 12px 14px;
    }

    .hero-title {
        max-width: 11ch;
    }

    .hero-metrics,
    .about-bento,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .bento-quote {
        grid-column: auto;
    }

    .hero-visual,
    .visual-panel {
        min-height: 0;
    }

    .visual-panel {
        padding: 0;
    }

    .portrait-frame {
        width: min(100%, 360px);
    }

    .portrait-image {
        height: 100%;
    }

    .portrait-meta {
        width: min(100%, 360px);
    }

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

@media (max-width: 560px) {
    .container {
        width: min(calc(100% - 1.2rem), var(--container));
    }

    .brand-copy {
        display: none;
    }

    .hero {
        padding-top: 44px;
    }

    .hero-title {
        font-size: clamp(2.6rem, 15vw, 3.7rem);
    }

    .hero-lead,
    .section-heading p:last-child,
    .about-story p,
    .service-card p,
    .skill-card p,
    .project-body p,
    .contact-copy p {
        font-size: 0.98rem;
    }

    .hero-visual,
    .visual-panel {
        min-height: 0;
    }

    .visual-panel {
        padding: 0;
    }

    .portrait-frame {
        width: min(100%, 296px);
    }

    .portrait-image {
        height: 100%;
    }

    .portrait-meta {
        width: min(100%, 296px);
        padding: 0.9rem 1rem;
    }

    .project-body,
    .about-story,
    .skill-card,
    .stack-card,
    .service-card,
    .spotlight-card,
    .milestone-card,
    .contact-form {
        padding: 1.2rem;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }
}

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

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

    .visual-panel {
        transform: none !important;
    }
}
