@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
    --bg: #101014;
    --bg-soft: #1c1c25;
    --panel: #191920;
    --panel-hover: #20202a;
    --text: #f3f1f5;
    --muted: #a9a5b1;
    --line: rgba(255, 255, 255, 0.10);
    --line-strong: rgba(255, 255, 255, 0.18);
    --accent: #c49ab9;
    --accent-strong: #e0b9d3;
    --accent-dark: #5b3450;
    --max-width: 1180px;
    --radius: 22px;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background:
        radial-gradient(circle at 85% 8%, rgba(91, 52, 80, 0.20), transparent 28rem),
        radial-gradient(circle at 5% 45%, rgba(196, 154, 185, 0.06), transparent 25rem),
        var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    line-height: 1.65;
}

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

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

button, a:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 5px;
}

button { font: inherit; }

.site-shell { overflow: hidden; }

.site-header {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(16, 16, 20, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }

.brand-mark {
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(224, 185, 211, 0.45);
    border-radius: 13px;
    color: var(--accent-strong);
}

.brand-mark svg { width: 20px; height: 20px; }

.brand-name { font-weight: 700; letter-spacing: -0.02em; }

.site-nav { display: flex; align-items: center; gap: 22px; }

.site-nav a {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    transition: color .2s ease;
}

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

.menu-toggle {
    display: none;
    width: 43px;
    height: 43px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
    display: block;
    width: 19px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
    border-radius: 99px;
}

.section {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    position: relative;
    overflow: hidden;
    padding-top: 88px;
    padding-bottom: 96px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-bg svg {
    width: 100%;
    height: 100%;
    color: var(--accent-strong);
}
.hero-bg .wire-base { opacity: 0.85; }

@keyframes hero-node-blink {
    0%, 100% { opacity: .45; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.35); }
}
.hero-bg .wire-nodes circle {
    transform-box: fill-box;
    transform-origin: center;
    filter: drop-shadow(0 0 3px var(--accent-strong)) drop-shadow(0 0 7px rgba(224,185,211,.65));
    animation: hero-node-blink 2.4s ease-in-out infinite;
}

@keyframes hero-wire-travel {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -914; }
}
.hero-bg .wire-pulse path {
    fill: none;
    stroke: var(--accent-strong);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-dasharray: 16 900;
    opacity: 1;
    filter: drop-shadow(0 0 4px var(--accent-strong)) drop-shadow(0 0 9px rgba(224,185,211,.6));
    animation: hero-wire-travel 9s linear infinite;
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(91,52,80,.28), transparent 48%),
        linear-gradient(180deg, rgba(16,16,20,.62) 0%, rgba(16,16,20,.9) 65%, var(--bg) 100%);
}

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

.eyebrow {
    margin: 0 0 18px;
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.eyebrow-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--accent-strong);
    box-shadow: 0 0 0 5px rgba(224, 185, 211, 0.08);
}

h1, h2, h3 { font-family: "Manrope", sans-serif; letter-spacing: -0.045em; line-height: 1.12; }

h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(43px, 6vw, 76px);
    font-weight: 800;
    /* Reserve room for two lines so the heading's height stays
       constant whether "Building" and the rotating phrase share
       a line or the phrase wraps to its own line below — otherwise
       the portrait/paragraphs beneath would shift as words change. */
    min-height: calc(1.12em * 2);
}

.hero-rotate {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: nowrap;
    vertical-align: bottom;
    gap: .26em;
    color: var(--accent-strong);
    min-width: min(100%, 12.5em);
}

.rotate-prefix, .rotate-suffix {
    display: inline-block;
    white-space: nowrap;
}

.rotate-cursor {
    display: inline-block;
    width: 3px;
    height: .82em;
    background: var(--accent-strong);
    border-radius: 1px;
    animation: rotate-caret-blink 1s steps(1, jump-none) infinite;
}

@keyframes rotate-caret-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-intro {
    max-width: 630px;
    margin: 28px 0 13px;
    color: #d0cbd4;
    font-size: 17px;
}


.hero-tags, .mini-pills, .project-meta, .pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags { margin-top: 27px; }

.hero-tags span, .mini-pills span, .project-meta span, .pill-list span {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.025);
    color: #c9c3ce;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 600;
}

.hero-tags span:first-child { border-color: rgba(224, 185, 211, .35); color: var(--accent-strong); }

.hero-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 35px;
}

.contact-link {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
    color: var(--accent-strong);
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.contact-link:hover {
    transform: translateY(-3px);
    border-color: rgba(224,185,211,.35);
    background: var(--panel);
    color: var(--accent-strong);
}

.contact-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.section-block {
    position: relative;
    z-index: 0;
    padding-top: 92px;
    padding-bottom: 92px;
    border-top: 1px solid var(--line);
}

.section-block.tone-soft::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    background:
        radial-gradient(circle at 12% 8%, rgba(91, 52, 80, 0.22), transparent 42%),
        radial-gradient(circle at 92% 88%, rgba(196, 154, 185, 0.07), transparent 38%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 8%, var(--bg-soft) 92%, var(--bg) 100%);
}

.section-heading { max-width: 680px; margin-bottom: 34px; }
.section-heading h2, .experience-panel h2, .about-card h2, .connect-card h2 { margin: 0; font-size: clamp(30px, 4vw, 49px); }
.section-heading p:not(.eyebrow), .experience-intro, .about-card p, .connect-card p { color: var(--muted); font-size: 14px; }
.section-heading p:not(.eyebrow) { max-width: 610px; margin: 18px 0 0; }

.split-heading { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.split-heading > p { max-width: 370px; margin: 0 !important; }

.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.capability-card, .project-card, .tech-group, .about-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}

.capability-card {
    min-height: 300px;
    padding: 24px;
}

.capability-card, .project-card, .tech-group {
    transition: transform .32s cubic-bezier(.22,1,.36,1), border-color .32s ease, background .32s ease, box-shadow .32s ease;
}

.capability-card:hover, .project-card:hover, .tech-group:hover {
    transform: translateY(-7px);
    border-color: rgba(224,185,211,.45);
    background: var(--panel-hover);
    box-shadow: 0 20px 45px rgba(0,0,0,.35), 0 0 0 1px rgba(224,185,211,.08);
}
.capability-card:hover h3, .project-card:hover h3, .tech-group:hover h3 { color: var(--accent-strong); }
.capability-card h3, .project-card h3, .tech-group h3 { transition: color .28s ease; }

.project-topline {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.capability-card h3 { margin: 0 0 14px; font-size: 20px; }
.capability-card p, .project-card p { margin: 0; color: var(--muted); font-size: 13px; }
.mini-pills { margin-top: 24px; }
.mini-pills span { padding: 5px 8px; font-size: 10px; }

.industry-strip { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding-top: 34px; }
.strip-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; padding-top: 7px; }

.project-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.project-card { padding: 25px; }
.project-topline { text-transform: uppercase; font-size: 10px; }
.project-card h3 { margin: 18px 0 13px; font-size: 25px; }
.project-meta { margin-top: 23px; }
.project-meta span { font-size: 10px; padding: 5px 8px; }
.confidentiality-note { margin: 25px 0 0; color: #817b87; font-size: 11px; font-style: italic; }

.solution-list { border-top: 1px solid var(--line); }
.solution-row { display: grid; grid-template-columns: minmax(180px, .8fr) 1fr; gap: 25px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .2s ease; }
.solution-row:hover { padding-left: 12px; padding-right: 12px; background: rgba(255,255,255,.018); }
.solution-row h3 { margin: 0; font-size: 22px; }
.solution-row p { margin: 0; color: var(--muted); font-size: 13px; }

.experience-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    padding: 44px;
    border: 1px solid rgba(224,185,211,.18);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(91,52,80,.28), rgba(255,255,255,.025));
}
.experience-intro { max-width: 460px; margin: 24px 0 0; }
.experience-points { display: grid; gap: 0; }
.experience-points > div {
    position: relative;
    padding: 17px 0 17px 18px;
    border-bottom: 1px solid var(--line);
}
.experience-points > div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(196, 154, 185, 0.12);
}
.experience-points > div:first-child { padding-top: 0; }
.experience-points > div:first-child::before { top: .55em; }
.experience-points > div:last-child { border-bottom: 0; padding-bottom: 0; }
.experience-points p { margin: 0; color: #d4ced8; font-size: 13px; }

.technology-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tech-group { padding: 25px; }
.tech-group h3 { margin: 0 0 20px; font-size: 18px; }
.tech-group .pill-list span { color: #d6cfda; }

.about-section .section-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}
.about-card { padding: 42px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.about-card p { max-width: none; margin: 20px 0 0; }
.about-card p + p { margin-top: 10px; }

.about-avatar {
    width: 220px;
    height: 220px;
    flex-shrink: 0;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(145deg, rgba(224,185,211,.75), rgba(91,52,80,.25));
    box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 45px rgba(0,0,0,.35);
    transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.about-avatar:hover { transform: translateY(-5px) scale(1.03); }
.about-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    background: #25232b;
}

.connect-card {
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 60px;
    align-items: end;
    padding: 45px;
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    background: var(--panel);
}
.connect-card p { max-width: 500px; margin: 20px 0 0; }
.connect-links { display: grid; gap: 0; }
.connect-links a { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); color: #ddd6e1; font-size: 13px; font-weight: 600; transition: color .2s ease, padding .2s ease; }
.connect-links a:first-child { border-top: 1px solid var(--line); }
.connect-links a:hover { color: var(--accent-strong); padding-left: 8px; }
.connect-links span { color: var(--accent); }
.connect-label { display: inline-flex; align-items: center; gap: 12px; color: #ddd6e1; }
.connect-icon { width: 17px; height: 17px; flex-shrink: 0; color: var(--accent-strong); }

.site-footer {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 35px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    color: #817b87;
    font-size: 11px;
}
.site-footer p { margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Moderate motion: header, hero entrance, scroll reveal ---------- */

.site-header {
    transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled {
    background: rgba(16, 16, 20, 0.96);
    border-color: var(--line-strong);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

@keyframes hero-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-copy > * {
    opacity: 0;
    animation: hero-in .7s ease forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .15s; }
.hero-copy > *:nth-child(3) { animation-delay: .25s; }
.hero-copy > *:nth-child(4) { animation-delay: .35s; }
.hero-copy > *:nth-child(5) { animation-delay: .45s; }
.hero-copy > *:nth-child(6) { animation-delay: .55s; }

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .65s ease, transform .65s ease;
}
.reveal.in-view {
    opacity: 1;
    transform: none;
}

.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: .07s; }
.stagger > .reveal:nth-child(3) { transition-delay: .14s; }
.stagger > .reveal:nth-child(4) { transition-delay: .21s; }
.stagger > .reveal:nth-child(5) { transition-delay: .28s; }
.stagger > .reveal:nth-child(6) { transition-delay: .35s; }
.stagger > .reveal:nth-child(7) { transition-delay: .42s; }

.hero-tags span, .mini-pills span, .project-meta span, .pill-list span {
    transition: transform .18s ease, border-color .18s ease, color .18s ease;
}
.hero-tags span:hover, .mini-pills span:hover, .project-meta span:hover, .pill-list span:hover {
    transform: translateY(-2px);
    border-color: rgba(224, 185, 211, .4);
    color: var(--accent-strong);
}

@media (max-width: 1050px) {
    .site-nav { gap: 14px; }
    .capability-grid { grid-template-columns: repeat(2, 1fr); }
    .capability-card { min-height: 250px; }
}

@media (max-width: 820px) {
    .site-header { min-height: 72px; }
    .menu-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 1px solid var(--line);
        border-radius: 0 0 18px 18px;
        background: #15151b;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 13px; border-bottom: 1px solid var(--line); }
    .site-nav a:last-child { border-bottom: 0; }

    .hero { padding-top: 60px; padding-bottom: 55px; }
    h1 { font-size: clamp(32px, 6.4vw, 46px); max-width: none; }
    .hero-intro { max-width: none; margin: 20px 0 10px; font-size: 15px; }

    .split-heading { display: block; }
    .split-heading > p { margin-top: 18px !important; }
    .solution-row { grid-template-columns: 1fr; gap: 8px; }
    .experience-panel, .connect-card, .about-section > .section-inner { grid-template-columns: 1fr; gap: 35px; }
    .about-section > .section-inner { justify-items: center; }
    .about-avatar { order: -1; }
    .about-card { justify-self: stretch; width: 100%; text-align: left; }
}

@media (max-width: 600px) {
    .section, .site-header, .site-footer { width: min(100% - 28px, var(--max-width)); }
    .hero { padding-top: 42px; padding-bottom: 44px; }
    h1 { font-size: clamp(26px, 8vw, 34px); }
    .hero-intro { font-size: 13.5px; margin: 16px 0 8px; }
    .hero-tags { margin-top: 16px; }
    .hero-tags span, .mini-pills span, .project-meta span, .pill-list span { padding: 6px 9px; font-size: 10px; }
    .hero-contact { margin-top: 22px; gap: 8px; }
    .contact-link { width: 40px; height: 40px; border-radius: 12px; }
    .contact-icon { width: 17px; height: 17px; }

    .project-list, .technology-groups { grid-template-columns: 1fr; }
    .capability-grid { grid-template-columns: 1fr; }
    .capability-card { min-height: auto; }
    .industry-strip { grid-template-columns: 1fr; gap: 12px; }
    .section-block { padding-top: 65px; padding-bottom: 65px; }
    .experience-panel, .about-card, .connect-card { padding: 27px; border-radius: 22px; }
    .about-avatar { width: 200px; height: 200px; }
    .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .rotate-cursor { animation: none !important; opacity: 1 !important; }
}
