:root {
    --accent: #89cff0;
    --accent-strong: #4db6e8;
    --accent-deep: #0c4a6e;
    --ink: #eaf2fa;
    --muted: #a4b7ca;
    --surface: #ffffff;
    --surface-soft: #060b18;
    --page: #060b18;
    --panel: rgba(15, 24, 42, 0.55);
    --panel-strong: rgba(10, 17, 32, 0.72);
    --dark: #111827;
    --dark-soft: #1d2939;
    --dark-muted: #cbd5e1;
    --border: rgba(137, 207, 240, 0.16);
    --font-body: "Inter", sans-serif;
    --font-display: "Space Grotesk", sans-serif;
    --shadow: 0 24px 60px rgba(2, 6, 16, 0.55);
    --radius-small: 14px;
    --radius-medium: 24px;
    --radius-large: 40px;
    --content: 1180px;
}

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

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

body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: var(--font-body);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 16% 18%, rgba(137, 207, 240, 0.12), transparent 34%),
        radial-gradient(circle at 84% 70%, rgba(22, 101, 141, 0.18), transparent 38%),
        var(--page);
}

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

.icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    fill: currentColor;
    vertical-align: -0.125em;
}

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

button,
input {
    font: inherit;
}

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

:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 999px;
    color: #06283a;
    background: var(--accent);
    font-weight: 800;
    transform: translateY(calc(-100% - 24px));
    transition: transform 180ms ease;
}

.skip-link:focus-visible {
    transform: none;
}

.icon-stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.mode-toggle {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(9, 16, 31, 0.72);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(2, 6, 16, 0.4);
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.mode-toggle:hover {
    border-color: rgba(137, 207, 240, 0.55);
}

.mode-toggle .icon {
    font-size: 1.1rem;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    padding: 18px clamp(16px, 4vw, 56px);
    transition: padding 180ms ease;
}

.navbar {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    align-items: center;
    width: min(100%, var(--content));
    min-height: 66px;
    margin: 0 auto;
    padding: 0 10px 0 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(9, 16, 31, 0.62);
    box-shadow: 0 12px 36px rgba(2, 6, 16, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header.sticky {
    padding-top: 10px;
    padding-bottom: 10px;
}

.logo {
    display: inline-flex;
    width: 82px;
    height: 52px;
    align-items: center;
    overflow: hidden;
}

.logo-img {
    width: 82px;
    height: auto;
    transform: scale(1.45);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: clamp(18px, 3vw, 36px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    position: relative;
    color: #c3d2e3;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-links a::after {
    position: absolute;
    right: 50%;
    bottom: -8px;
    left: 50%;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    content: "";
    transition: right 180ms ease, left 180ms ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    right: 0;
    left: 0;
}

.menu-button {
    display: none;
}

.menu-button .icon-close {
    display: none;
}

.menu-button.open .icon-menu {
    display: none;
}

.menu-button.open .icon-close {
    display: block;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 8px;
}

.language-toggle {
    display: inline-flex;
    min-width: 58px;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid rgba(137, 207, 240, 0.45);
    border-radius: 999px;
    color: var(--accent);
    background: rgba(9, 16, 31, 0.55);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.language-toggle:hover {
    border-color: var(--accent);
    background: rgba(137, 207, 240, 0.12);
}

.language-toggle .icon {
    width: 16px;
    height: 16px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button-small {
    min-height: 44px;
    padding: 10px 20px;
    justify-self: end;
    color: #06283a;
    background: var(--accent);
    font-size: 0.88rem;
}

.button-primary {
    color: #06283a;
    background: var(--accent);
    box-shadow: 0 14px 30px rgba(137, 207, 240, 0.22);
}

.button-primary:hover {
    background: #a8ddf6;
}

.button-ghost {
    color: var(--ink);
    border-color: rgba(137, 207, 240, 0.45);
    background: rgba(9, 16, 31, 0.55);
}

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

.eyebrow-dark {
    color: var(--accent);
}

.hero {
    min-height: 100svh;
    padding: 138px max(20px, calc((100vw - var(--content)) / 2)) 70px;
    overflow: hidden;
}

.hero-heading {
    position: relative;
    z-index: 3;
    max-width: 1020px;
    margin: 0 auto -18px;
    text-align: center;
}

.bubble {
    padding: 6px 15px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(9, 16, 31, 0.55);
}

.hero h1,
.section-heading h2,
.about h2,
.contact h2 {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: -0.045em;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.7rem);
    line-height: 0.96;
}

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

.hero h1 .hero-copy {
    color: inherit;
}

.hero-heading > p {
    max-width: 560px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.15rem);
}

.hero-stage {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(360px, 520px) minmax(190px, 1fr);
    align-items: center;
    gap: 18px;
    max-width: var(--content);
    margin: 0 auto;
}

.hero-quote {
    max-width: 260px;
    margin: 80px 0 0;
    color: var(--muted);
    font-weight: 600;
}

.hero-quote .icon {
    color: var(--accent);
    font-size: 2rem;
}

.hero-quote p {
    margin: 8px 0 0;
}

.portrait-wrap {
    position: relative;
    height: 510px;
    align-self: end;
}

.portrait-wrap::before {
    position: absolute;
    inset: 22% 2% 0;
    border-radius: 50% 50% 34% 34%;
    background: linear-gradient(145deg, rgba(137, 207, 240, 0.3), rgba(12, 74, 110, 0.55));
    box-shadow: inset 0 0 0 1px rgba(137, 207, 240, 0.22), 0 30px 70px rgba(137, 207, 240, 0.14);
    content: "";
}

.portrait-orbit {
    position: absolute;
    inset: 17% -4% 8%;
    border: 1px dashed rgba(137, 207, 240, 0.32);
    border-radius: 50%;
}

.portrait-picture,
.portrait-picture img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.portrait-picture img {
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 18px 26px rgba(2, 6, 16, 0.6));
}

.hero-actions {
    position: absolute;
    z-index: 4;
    bottom: 14px;
    left: 50%;
    display: flex;
    gap: 10px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(9, 16, 31, 0.6);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateX(-50%);
}

.hero-actions .button {
    min-width: 132px;
}

.experience-card {
    justify-self: end;
    margin-top: 90px;
    text-align: right;
}

.experience-card .stars {
    color: #fbbf24;
    letter-spacing: 2px;
}

.experience-card strong,
.experience-card span {
    display: block;
}

.experience-card strong {
    margin: 8px 0 0;
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
}

.experience-card span {
    color: var(--muted);
    font-weight: 600;
}

.section-light,
.services,
.projects,
.contact {
    padding: 110px max(20px, calc((100vw - var(--content)) / 2));
}

.about {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) 1fr;
    align-items: center;
    gap: clamp(50px, 8vw, 110px);
}

.about-visual {
    position: relative;
    width: min(100%, 400px);
    justify-self: center;
}

.about-shape {
    position: absolute;
    inset: 13% -3% 0;
    border-radius: 44% 56% 32% 68% / 51% 37% 63% 49%;
    background: rgba(137, 207, 240, 0.12);
}

.about-visual picture {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 42% 58% 26% 74% / 48% 38% 62% 52%;
}

.about-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.about-copy {
    max-width: 590px;
}

.about h2,
.contact h2 {
    font-size: clamp(2.3rem, 5vw, 4.5rem);
    line-height: 1.05;
}

.about-copy > p,
.contact-card > p {
    margin: 25px 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.principles {
    display: grid;
    gap: 10px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    font-weight: 700;
}

.principles .icon {
    margin-right: 8px;
    color: var(--accent);
    font-size: 1.25rem;
    vertical-align: -4px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.dark-sections {
    color: var(--ink);
}

.services {
    padding-bottom: 80px;
}

.projects {
    padding-top: 80px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    max-width: var(--content);
    margin: 0 auto 48px;
}

.section-heading h2 {
    max-width: 720px;
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    line-height: 1.03;
}

.section-heading > p {
    max-width: 440px;
    margin: 0 0 6px;
    color: var(--muted);
}

.carousel-wrap,
.project-grid {
    max-width: var(--content);
    margin: 0 auto;
}

.services-track {
    display: grid;
    grid-auto-columns: calc((100% - 40px) / 3);
    grid-auto-flow: column;
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    perspective: 1400px;
}

.services-track::-webkit-scrollbar {
    display: none;
}

.service-card {
    position: relative;
    min-height: 390px;
    padding: 32px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    scroll-snap-align: start;
}

.service-card::after {
    position: absolute;
    right: -50px;
    bottom: -70px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(137, 207, 240, 0.08);
    content: "";
}

.service-number {
    position: absolute;
    top: 24px;
    right: 28px;
    color: #98a2b3;
    font-family: var(--font-display);
    font-weight: 700;
}

.service-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 50px;
    border-radius: 18px;
    color: #06283a;
    background: var(--accent);
    font-size: 1.8rem;
    place-items: center;
}

.service-card h3 {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: 1.55rem;
}

.service-card p,
.project-info p {
    color: var(--dark-muted);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.tag-list li {
    padding: 5px 10px;
    border: 1px solid rgba(137, 207, 240, 0.28);
    border-radius: 999px;
    color: #dbe7f3;
    font-size: 0.75rem;
    font-weight: 700;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 26px;
}

.carousel-dots,
.carousel-arrows {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: #667085;
    cursor: pointer;
    transition: width 180ms ease, background-color 180ms ease;
}

.carousel-dot.active {
    width: 32px;
    background: var(--accent);
}

.icon-button {
    display: grid;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(137, 207, 240, 0.3);
    border-radius: 50%;
    color: var(--surface);
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
    place-items: center;
}

.icon-button:hover {
    color: var(--dark);
    background: var(--accent);
}

.text-link-dark {
    flex: 0 0 auto;
    color: var(--accent);
}

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

.project-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.project-card-wide {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    grid-column: 1 / -1;
}

.project-image {
    display: block;
    min-height: 260px;
    overflow: hidden;
    background: #0b1220;
}

.project-card:not(.project-card-wide) .project-image {
    aspect-ratio: 16 / 10;
}

.project-image picture,
.project-image img {
    width: 100%;
    height: 100%;
}

.project-image img {
    object-fit: cover;
    object-position: top;
    transition: transform 300ms ease;
}

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

.project-info {
    display: flex;
    min-height: 225px;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
}

.project-type {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.project-info h3 {
    margin: 5px 0 0;
    font-family: var(--font-display);
    font-size: 1.6rem;
}

.project-info .tag-list {
    margin-top: 18px;
}

.project-info p {
    margin: 18px 0 0;
    font-size: 0.9rem;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: auto;
    padding-top: 25px;
}

.project-actions a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--surface);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.building {
    padding: 40px max(20px, calc((100vw - var(--content)) / 2)) 80px;
}

.building-heading,
.services-heading {
    display: block;
}

.building-lead,
.services-lead {
    margin: 20px 0 0;
    max-width: 560px;
    color: var(--muted);
}

.invite-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(32px, 6vw, 72px);
    max-width: var(--content);
    margin: 0 auto;
    padding: clamp(26px, 4vw, 46px);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background:
        radial-gradient(circle at 12% 12%, rgba(137, 207, 240, 0.16), transparent 42%),
        var(--panel-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.invite-preview {
    position: relative;
    width: min(100%, 300px);
    justify-self: center;
}

/* iPhone 17 Pro — titanium body */
.invite-frame {
    position: relative;
    padding: 11px;
    aspect-ratio: 9 / 19.5;
    border-radius: 56px;
    background: linear-gradient(145deg, #4a5262 0%, #20262f 38%, #0a0e15 100%);
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.08),
        inset 0 0 0 8px #05070d,
        0 34px 70px rgba(2, 6, 16, 0.68);
}

/* Dynamic Island */
.invite-frame::before {
    position: absolute;
    top: 22px;
    left: 50%;
    width: 90px;
    height: 26px;
    border-radius: 999px;
    background: #05070d;
    transform: translateX(-50%);
    content: "";
    z-index: 3;
}

/* Left action button */
.invite-frame::after {
    position: absolute;
    top: 17%;
    left: -2px;
    width: 3px;
    height: 6%;
    border-radius: 3px 0 0 3px;
    background: linear-gradient(90deg, #333c49, #171d27);
    content: "";
}

/* Left volume + right side button */
.invite-preview::before,
.invite-preview::after {
    position: absolute;
    z-index: 2;
    width: 3px;
    background: linear-gradient(90deg, #333c49, #171d27);
    content: "";
}

.invite-preview::before {
    top: 27%;
    left: -2px;
    height: 13%;
    border-radius: 3px 0 0 3px;
}

.invite-preview::after {
    top: 23%;
    right: -2px;
    height: 16%;
    border-radius: 0 3px 3px 0;
}

.invite-iframe {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 46px;
    background: #fff;
}

.invite-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.invite-info h3 {
    margin: 6px 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.invite-info .tag-list {
    margin-top: 18px;
}

.invite-info p {
    margin: 18px 0 0;
    max-width: 46ch;
    color: var(--dark-muted);
    font-size: 0.95rem;
}

.wip-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px 14px;
    border: 1px solid rgba(137, 207, 240, 0.35);
    border-radius: 999px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(137, 207, 240, 0.6);
    animation: wip-pulse 2s ease-out infinite;
}

@keyframes wip-pulse {
    to {
        box-shadow: 0 0 0 9px rgba(137, 207, 240, 0);
    }
}

.invite-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

@media (max-width: 860px) {
    .invite-showcase {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wip-dot {
        animation: none;
    }
}

/* Piko — sidekick. Sits bottom-left so it never fights the 3D toggle. */
.piko {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 1400;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.piko-launcher {
    display: grid;
    width: 60px;
    height: 60px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(9, 16, 31, 0.82);
    box-shadow: 0 12px 30px rgba(2, 6, 16, 0.55);
    cursor: pointer;
    place-items: center;
    transition: border-color 180ms ease, transform 180ms ease;
}

.piko-launcher:hover {
    border-color: rgba(137, 207, 240, 0.55);
    transform: translateY(-2px);
}

.piko-face {
    width: 100%;
    height: 100%;
}

.piko-bubble {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: min(260px, calc(100vw - 52px));
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 16px 16px 16px 4px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.piko-bubble-text {
    margin: 0;
    color: var(--ink);
    font-size: 0.85rem;
    line-height: 1.5;
}

.piko-bubble-close,
.piko-close {
    padding: 0;
    border: 0;
    color: var(--muted);
    background: none;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.piko-bubble-close:hover,
.piko-close:hover {
    color: var(--accent);
}

.piko-panel {
    display: flex;
    width: min(330px, calc(100vw - 36px));
    max-height: min(460px, calc(100vh - 140px));
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--panel-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.piko-panel[hidden],
.piko-bubble[hidden] {
    display: none;
}

.piko-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.piko-badge {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 3px;
    border-radius: 50%;
    background: rgba(137, 207, 240, 0.12);
    place-items: center;
}

.piko-id {
    display: flex;
    flex: 1;
    flex-direction: column;
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.2;
}

.piko-role {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.piko-log {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 16px;
}

.piko-msg p {
    margin: 0;
    padding: 10px 13px;
    font-size: 0.84rem;
    line-height: 1.5;
}

.piko-msg-piko p {
    border-radius: 14px 14px 14px 4px;
    color: var(--ink);
    background: rgba(137, 207, 240, 0.1);
}

.piko-msg-user {
    align-self: flex-end;
    max-width: 85%;
}

.piko-msg-user p {
    border-radius: 14px 14px 4px;
    color: #06283a;
    background: var(--accent);
    font-weight: 600;
}

.piko-action {
    display: inline-flex;
    margin-top: 8px;
    padding: 7px 13px;
    border: 1px solid rgba(137, 207, 240, 0.4);
    border-radius: 999px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
}

.piko-action:hover {
    color: #06283a;
    background: var(--accent);
}

.piko-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border);
}

.piko-reply {
    padding: 7px 12px;
    border: 1px solid rgba(137, 207, 240, 0.3);
    border-radius: 999px;
    color: var(--ink);
    background: transparent;
    font-family: inherit;
    font-size: 0.77rem;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.piko-reply:hover {
    border-color: var(--accent);
    background: rgba(137, 207, 240, 0.12);
}

.piko-exhausted {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

@media (max-width: 560px) {
    .piko {
        left: 14px;
        bottom: 14px;
    }

    .piko-launcher {
        width: 52px;
        height: 52px;
    }
}

.contact {
    perspective: 1400px;
}

.contact-card {
    max-width: var(--content);
    margin: 0 auto;
    padding: clamp(38px, 7vw, 90px);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background:
        radial-gradient(circle at 90% 20%, rgba(137, 207, 240, 0.18), transparent 32%),
        var(--panel-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.contact-card > p {
    max-width: 620px;
}

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

.footer {
    padding: 65px max(20px, calc((100vw - var(--content)) / 2)) 28px;
    color: var(--dark-muted);
    background: rgba(6, 11, 24, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 60px;
    padding-bottom: 45px;
}

.footer-brand {
    color: var(--surface);
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
}

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

.footer-main p {
    max-width: 380px;
    margin: 8px 0 0;
}

.footer-main nav,
.social-links {
    display: flex;
    gap: 22px;
}

.footer-main nav a:hover,
.footer-bottom a:hover {
    color: var(--surface);
}

.social-links a {
    display: grid;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(137, 207, 240, 0.3);
    border-radius: 50%;
    color: var(--surface);
    font-size: 1.25rem;
    place-items: center;
}

.social-links a:hover {
    color: var(--dark);
    background: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 25px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

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

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

.tilting {
    transition: transform 90ms ease-out, opacity 600ms ease;
    will-change: transform;
}

@media (max-width: 980px) {
    .navbar {
        grid-template-columns: 110px 1fr auto;
    }

    .nav-links {
        gap: 17px;
    }

    .hero-stage {
        grid-template-columns: 1fr minmax(340px, 480px) 1fr;
    }

    .portrait-wrap {
        height: 470px;
    }

    .hero-quote {
        font-size: 0.88rem;
    }

    .services-track {
        grid-auto-columns: calc((100% - 20px) / 2);
    }

    .project-card-wide {
        grid-template-columns: 1fr 0.8fr;
    }

    .footer-main {
        grid-template-columns: 1fr auto;
    }

    .social-links {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 82px;
    }

    .site-header {
        padding: 10px 12px;
    }

    .navbar {
        position: relative;
        grid-template-columns: 1fr auto;
        min-height: 60px;
        padding: 0 10px 0 15px;
    }

    .logo {
        height: 48px;
    }

    .nav-cta {
        display: none;
    }

    .nav-actions {
        gap: 6px;
    }

    .menu-button {
        display: grid;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        color: #06283a;
        background: var(--accent);
        font-size: 1.45rem;
        cursor: pointer;
        place-items: center;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        display: grid;
        gap: 0;
        padding: 12px;
        visibility: hidden;
        border: 1px solid var(--border);
        border-radius: 24px;
        background: rgba(9, 16, 31, 0.94);
        box-shadow: var(--shadow);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        opacity: 0;
        transform: translateY(-8px);
        transition: visibility 180ms ease, opacity 180ms ease, transform 180ms ease;
    }

    .nav-links.open {
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .nav-links a {
        display: block;
        padding: 11px 14px;
        border-radius: 12px;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(137, 207, 240, 0.12);
    }

    .hero {
        min-height: auto;
        padding-top: 112px;
    }

    .hero-heading {
        margin-bottom: 10px;
    }

    .hero-stage {
        grid-template-columns: 1fr;
        max-width: 540px;
    }

    .portrait-wrap {
        grid-row: 1;
        width: min(100%, 480px);
        height: min(118vw, 500px);
        margin: 0 auto;
    }

    .hero-quote,
    .experience-card {
        margin: 0;
        text-align: left;
    }

    .hero-quote {
        display: flex;
        max-width: none;
        align-items: flex-start;
        gap: 12px;
        padding: 18px 0;
        border-bottom: 1px solid var(--border);
    }

    .hero-quote p {
        margin: 0;
    }

    .experience-card {
        justify-self: stretch;
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 14px;
    }

    .experience-card .stars {
        grid-column: 1 / -1;
    }

    .experience-card strong {
        font-size: 2.4rem;
    }

    .section-light,
    .services,
    .projects,
    .contact {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-visual {
        width: min(82vw, 360px);
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 34px;
    }

    .services-track {
        grid-auto-columns: 88%;
    }

    .service-card {
        min-height: 370px;
    }

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

    .project-card-wide {
        display: block;
        grid-column: auto;
    }

    .project-card-wide .project-image {
        aspect-ratio: 16 / 10;
    }

    .project-image img {
        object-position: center;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-main nav {
        flex-wrap: wrap;
    }

    .social-links {
        grid-column: auto;
    }
}

@media (max-width: 420px) {
    .language-toggle {
        min-width: 52px;
        padding-inline: 9px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 14vw, 3.5rem);
    }

    .hero-actions {
        width: calc(100% - 18px);
    }

    .hero-actions .button {
        min-width: 0;
        flex: 1;
        padding-inline: 14px;
    }

    .portrait-wrap {
        height: 116vw;
        max-height: 455px;
    }

    .services-track {
        grid-auto-columns: 94%;
    }

    .service-card,
    .project-info {
        padding: 24px;
    }

    .contact-actions {
        display: grid;
    }

    .footer-main nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

/* ---- Classic (regular, non-3D) mode ---- */

html.classic {
    --accent-strong: #16658d;
    --ink: #101828;
    --muted: #475467;
    --surface-soft: #f4f8fb;
    --page: #f4f8fb;
    --border: #d9e2ec;
    --shadow: 0 24px 60px rgba(16, 24, 40, 0.12);
}

html.classic #bg-canvas {
    display: none;
}

html.classic .mode-toggle {
    color: #101828;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.16);
}

html.classic .mode-toggle:hover {
    border-color: var(--accent-strong);
}

html.classic .navbar {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 36px rgba(16, 24, 40, 0.08);
}

html.classic .nav-links a {
    color: #344054;
}

html.classic .nav-links a::after {
    background: var(--accent-deep);
}

html.classic .nav-links a:hover,
html.classic .nav-links a.active {
    color: var(--accent-deep);
}

html.classic .language-toggle {
    color: var(--accent-deep);
    border-color: rgba(12, 74, 110, 0.3);
    background: rgba(255, 255, 255, 0.72);
}

html.classic .language-toggle:hover {
    border-color: var(--accent-deep);
    background: rgba(12, 74, 110, 0.08);
}

html.classic .button-small {
    color: var(--surface);
    background: #101828;
}

html.classic .button-primary {
    box-shadow: 0 14px 30px rgba(12, 74, 110, 0.2);
}

html.classic .button-ghost {
    color: #101828;
    border-color: #101828;
    background: rgba(255, 255, 255, 0.78);
}

html.classic .eyebrow {
    color: var(--accent-deep);
}

html.classic .eyebrow-dark {
    color: var(--accent);
}

html.classic .bubble {
    border-color: #b9ddeb;
    background: rgba(255, 255, 255, 0.78);
}

html.classic .hero {
    background:
        radial-gradient(circle at 14% 24%, rgba(137, 207, 240, 0.34), transparent 30%),
        radial-gradient(circle at 84% 16%, rgba(137, 207, 240, 0.22), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #edf7fc 100%);
}

html.classic .hero h1 .hero-name {
    color: var(--accent-strong);
}

html.classic .hero h1 .hero-copy {
    color: inherit;
}

html.classic .hero-quote .icon {
    color: var(--accent-strong);
}

html.classic .portrait-wrap::before {
    background: linear-gradient(145deg, #bce7fb, var(--accent));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 30px 70px rgba(12, 74, 110, 0.18);
}

html.classic .portrait-orbit {
    border-color: rgba(12, 74, 110, 0.28);
}

html.classic .portrait-picture img {
    filter: drop-shadow(0 18px 22px rgba(16, 24, 40, 0.15));
}

html.classic .hero-actions {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.64);
}

html.classic .experience-card .stars {
    color: #b45309;
}

html.classic .about {
    background: var(--surface);
}

html.classic .about-shape {
    background: #dff3fc;
}

html.classic .principles .icon {
    color: var(--accent-deep);
}

html.classic .text-link {
    color: var(--accent-deep);
}

html.classic .text-link-dark {
    color: var(--accent);
}

html.classic .dark-sections {
    color: var(--surface);
    background:
        radial-gradient(circle at 15% 20%, rgba(137, 207, 240, 0.13), transparent 25%),
        radial-gradient(circle at 90% 64%, rgba(137, 207, 240, 0.1), transparent 25%),
        var(--dark);
}

html.classic .section-heading > p {
    color: var(--dark-muted);
}

html.classic .service-card,
html.classic .project-card {
    border-color: #344054;
    background: var(--dark-soft);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html.classic .piko-panel,
html.classic .piko-bubble,
html.classic .piko-launcher {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html.classic .piko-msg-piko p {
    background: #eef4f9;
}

html.classic .piko-action {
    border-color: rgba(22, 101, 141, 0.4);
    color: var(--accent-strong);
}

html.classic .piko-action:hover {
    color: #ffffff;
    background: var(--accent-strong);
}

html.classic .piko-reply {
    border-color: #cbd5e1;
}

html.classic .piko-reply:hover {
    border-color: var(--accent-strong);
}

html.classic .tag-list li {
    border-color: #475467;
    color: #e4e7ec;
}

html.classic .icon-button {
    border-color: #475467;
}

html.classic .contact {
    background: var(--surface-soft);
}

html.classic .contact-card {
    border-color: #c9deea;
    background:
        radial-gradient(circle at 90% 20%, rgba(137, 207, 240, 0.55), transparent 28%),
        var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html.classic .footer {
    background: #0b1220;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html.classic .footer-bottom {
    border-top-color: #344054;
}

html.classic .social-links a {
    border-color: #344054;
}

@media (max-width: 760px) {
    html.classic .menu-button {
        color: var(--surface);
        background: #101828;
    }

    html.classic .nav-links {
        border-color: var(--border);
        background: var(--surface);
    }

    html.classic .nav-links a:hover,
    html.classic .nav-links a.active {
        background: #eaf7fc;
    }

    html.classic .hero-quote {
        border-bottom-color: #c9deea;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

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

@media (scripting: none) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}
