:root {
    --rule: #e5e5e5;
    --ink: #1f2328;
    --black: #000;
    --muted: #59636e;
    --caption: #6d6d6d;
    --hover: #f8f8f8;
    --dot-blue: #2d5bff;
    --serif: "Averia Serif Libre", ui-serif, Georgia, serif;
    --sans: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --inset: clamp(12px, 4.3vw, 72px);
    --col: min(100% - 2 * var(--inset), 1600px);
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
ol,
ul {
    margin: 0;
    font-weight: inherit;
}

ol,
ul {
    padding: 0;
    list-style: none;
}

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

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

:focus-visible {
    outline: 2px solid var(--dot-blue);
    outline-offset: 3px;
}

.band {
    position: relative;
}

.band--rule > .col {
    border-bottom: 1px solid var(--rule);
}

.col {
    position: relative;
    width: var(--col);
    margin-inline: auto;
    border-inline: 1px solid var(--rule);
}

.hero-inner {
    padding: clamp(56px, 7vw, 110px) 16px clamp(40px, 5vw, 72px);
    overflow: hidden;
    text-align: center;
}

.headline {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 0.14em;
    font-family: var(--serif);
    font-size: clamp(30px, 4.3vw, 62px);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -0.03em;
    color: var(--black);
}

.line {
    white-space: nowrap;
}

.chip {
    padding: 0.058em 0.26em 0.042em;
    margin: 0 0.06em;
    border-radius: 0.22em;
    color: inherit;
}

.chip--lime {
    background: #e7ff7d;
}

.chip--rose {
    background: #ffccd5;
}

.chip--sky {
    background: #afe3ff;
}

.stage {
    position: relative;
    max-width: 1120px;
    height: clamp(300px, 36vw, 500px);
    margin: 24px auto 0;
}

.stage-canvas {
    width: 100%;
    height: 100%;
}

.heading {
    display: grid;
    place-items: center;
    height: clamp(150px, 14vw, 230px);
}

.heading h2,
.quests h2 {
    font-family: var(--serif);
    font-size: clamp(32px, 2.9vw, 42px);
    font-weight: 300;
    line-height: 1.25;
    color: var(--black);
}

.grid--about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
}

.about-intro {
    position: sticky;
    top: 0;
    align-self: start;
    display: grid;
    gap: 32px;
    padding: clamp(32px, 4vw, 64px) clamp(20px, 3.4vw, 56px);
}

.about-photo-link {
    justify-self: start;
}

.about-photo {
    width: clamp(150px, 14vw, 210px);
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 4px 13px rgba(0, 0, 0, 0.11);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.about-photo-link:hover .about-photo {
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.about-bio {
    font-family: var(--serif);
    font-size: clamp(21px, 1.75vw, 26px);
    font-weight: 300;
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: var(--black);
    text-wrap: pretty;
}

.about-detail {
    display: grid;
    gap: 48px;
    padding: clamp(32px, 4vw, 64px) clamp(20px, 3.4vw, 56px);
    border-left: 1px solid var(--rule);
}

.label {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--caption);
}

.entry {
    --logo: 36px;
    --col-gap: 16px;
    --note-gap: 10px;
    display: grid;
    grid-template-columns: var(--logo) minmax(0, 1fr);
    gap: var(--note-gap) var(--col-gap);
    padding: 18px 0;
}

.entry > div:not([class]) {
    display: contents;
}

.entry:has(.entry-notes)::before {
    content: "";
    grid-row: 1;
    grid-column: 1;
    justify-self: start;
    width: 1px;
    margin: calc(var(--logo) + 8px) 0 0 calc(var(--logo) / 2);
    background: var(--rule);
}

.entry--plain {
    grid-template-columns: minmax(0, 1fr);
}

.entry-logo-link {
    grid-row: 1;
    grid-column: 1;
    align-self: start;
}

.entry-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid var(--rule);
}

.entry-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.entry h4 {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--black);
}

.entry h4 a {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.entry h4 a:hover {
    text-decoration-color: currentColor;
}

.entry-sub,
.entry-loc {
    margin-top: 2px;
    font-size: 14.5px;
    color: var(--muted);
}

.entry-meta {
    display: grid;
    justify-items: end;
    flex: none;
    text-align: right;
}

.entry-date {
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--caption);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.entry-loc {
    margin-top: 6px;
    white-space: nowrap;
}

.entry-notes {
    grid-column: 2;
    display: grid;
    gap: var(--note-gap);
}

.entry-notes li {
    --thread: calc(-1 * (var(--col-gap) + var(--logo) / 2));
    position: relative;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--muted);
    text-wrap: pretty;
}

.entry-notes li::before {
    content: "";
    position: absolute;
    left: var(--thread);
    top: calc(-1 * var(--note-gap));
    width: calc(var(--col-gap) + var(--logo) / 2 - 8px);
    height: calc(var(--note-gap) + 0.8em);
    border-left: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    border-bottom-left-radius: 8px;
}

.entry-notes li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: var(--thread);
    top: calc(0.8em - 8px);
    bottom: calc(-1 * var(--note-gap));
    border-left: 1px solid var(--rule);
}

.skills {
    margin: 0;
}

.skill {
    padding: 18px 0;
}

.skill dt {
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--black);
}

.skill dd {
    margin: 4px 0 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--muted);
    text-wrap: pretty;
}

.grid--work {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.2vw, 34px);
    padding: clamp(16px, 2.2vw, 34px);
}

.card {
    display: block;
    border: 1px solid var(--rule);
}

.media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1.65;
    overflow: hidden;
}

.media--partret {
    background:
        radial-gradient(ellipse 70% 80% at 20% 10%, #f1cef4, transparent 70%),
        radial-gradient(ellipse 70% 80% at 85% 90%, #afe3ff, transparent 70%),
        #dfe4ff;
}

.media--iagents {
    background:
        radial-gradient(ellipse 70% 80% at 15% 12%, #e7ff7d, transparent 70%),
        radial-gradient(ellipse 70% 80% at 88% 88%, #a8eef9, transparent 70%),
        #dcf7e9;
}

.caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 74px;
    padding: 14px clamp(16px, 2vw, 30px);
    border-top: 1px solid var(--rule);
    background: #fff;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--caption);
    transition: background 0.2s ease;
}

.caption h3 {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.caption p {
    flex: none;
    color: #414141;
}

.card:hover .caption {
    background: var(--hover);
}

.tag--green { color: #007500; }
.tag--teal { color: #02768b; }

.window {
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 18px 40px -12px rgba(40, 50, 120, 0.3);
    overflow: hidden;
    text-align: left;
    transition: transform 0.45s var(--ease);
}

.card:hover .window {
    transform: translateY(-4px) scale(1.015);
}

.epcr {
    width: min(78%, 420px);
}

.window-bar {
    display: flex;
    align-items: center;
    padding: 9px 11px;
    border-bottom: 1px solid #eee;
}

.window-dots {
    display: flex;
    gap: 5px;
}

.window-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e3e3e3;
}

.window-url {
    flex: 1;
    margin-right: 34px;
    text-align: center;
    font-size: 10px;
    color: var(--caption);
}

.epcr-body {
    display: grid;
    gap: 7px;
    padding: 11px;
}

.epcr-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--black);
}

.epcr-fields,
.epcr-vitals {
    display: grid;
    gap: 6px;
}

.epcr-fields {
    grid-template-columns: 1fr 1fr;
}

.epcr-vitals {
    grid-template-columns: repeat(3, 1fr);
}

.epcr-field {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 7px 9px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fafafa;
    transition: border-color 0.28s ease, background 0.28s ease;
}

.epcr-k {
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9a9a9a;
}

.epcr-v {
    display: inline-flex;
    align-items: center;
    min-height: 1.2em;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--black);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.epcr-narr {
    font-size: 10.5px;
    line-height: 1.45;
    color: var(--muted);
}

.epcr-field.ok {
    border-color: #bfe8c9;
    background: #f1fbf3;
}

.epcr-field.ok .epcr-k {
    color: #1f8a3c;
}

.epcr-field.warn {
    border-color: #ffd9a0;
    background: #fff8ec;
}

.epcr-field.warn .epcr-k {
    color: #b36b00;
}

.epcr-field.is-focus {
    border-color: #a9bcff;
    background: #f2f5ff;
}

.epcr-field.is-focus .epcr-k {
    color: var(--dot-blue);
}

.caret {
    width: 1.5px;
    height: 0.95em;
    margin-left: 2px;
    background: var(--dot-blue);
    visibility: hidden;
}

.caret.is-on {
    visibility: visible;
    animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.chat {
    width: min(64%, 340px);
}

.chat-head {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 12px 0 9px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.chat-avatar {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(#a7adb9, #838997);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.chat-name {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    color: var(--ink);
}

.chat-name svg,
.chat-back {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chat-name svg {
    width: 5px;
    height: 8px;
    stroke-width: 1.4;
    color: #b0b0b5;
}

.chat-back {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #0a84ff;
    width: 9px;
    height: 15px;
    stroke-width: 2;
}

.chat-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    height: 164px;
    padding: 12px 12px 8px;
    overflow: hidden;
}

.chat-compose {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px 10px;
}

.compose-plus {
    display: grid;
    place-items: center;
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e9e9eb;
    color: #8e8e93;
}

.chat-compose svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.compose-plus svg {
    width: 12px;
    height: 12px;
    stroke-width: 2;
}

.compose-field {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    height: 26px;
    padding: 0 3px 0 11px;
    border: 1px solid #d1d1d6;
    border-radius: 13px;
    font-size: 11.5px;
    white-space: nowrap;
}

.compose-text {
    min-width: 0;
    overflow: hidden;
    color: var(--black);
}

.compose-text:empty {
    display: none;
}

.compose-field .caret {
    margin: 0 2px 0 1px;
}

.compose-field .caret:not(.is-on) {
    display: none;
}

.compose-placeholder {
    color: #b0b0b5;
}

.compose-mic {
    width: 14px;
    height: 14px;
    margin: 0 4px 0 auto;
    color: #8e8e93;
}

.compose-send {
    display: none;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-left: auto;
    border-radius: 50%;
    background: #0a84ff;
    color: #fff;
}

.compose-send svg {
    width: 11px;
    height: 11px;
    stroke-width: 2.2;
}

.compose-text:not(:empty) ~ .compose-placeholder,
.compose-text:not(:empty) ~ .compose-mic {
    display: none;
}

.compose-text:not(:empty) ~ .compose-send {
    display: grid;
}

.bubble {
    align-self: flex-start;
    max-width: 82%;
    padding: 7px 11px;
    border-radius: 16px;
    background: #e9e9eb;
    font-size: 11.5px;
    line-height: 1.35;
    color: var(--black);
}

.bubble--me {
    align-self: flex-end;
    background: #0a84ff;
    color: #fff;
}

.bubble.is-hidden,
.bubble--typing:not(.is-on) {
    display: none;
}

.bubble.is-new {
    animation: pop 0.32s var(--ease);
}

@keyframes pop {
    from { opacity: 0; transform: translateY(6px) scale(0.96); }
}

.bubble--typing {
    display: flex;
    gap: 3px;
    padding: 10px 12px;
}

.bubble--typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8e8e93;
    animation: typing 1.1s ease-in-out infinite;
}

.bubble--typing i:nth-child(2) { animation-delay: 0.15s; }
.bubble--typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
    30% { opacity: 0.35; transform: translateY(-2px); }
}

.grid--certs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.2vw, 34px);
    padding: clamp(16px, 2.2vw, 34px);
}

.cert {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 26px 28px 22px;
    overflow: hidden;
    background: var(--center);
    color: var(--black);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.cert::before {
    content: "";
    position: absolute;
    inset: -20px;
    z-index: -1;
    border: 110px solid var(--edge);
    border-radius: 47px;
    filter: blur(48px);
    pointer-events: none;
}

.cert:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.35);
}

.cert--aqua { --center: #a8eef9; --edge: #e3f4a6; }
.cert--lilac { --center: #b7c9f3; --edge: #e6c1da; }
.cert--sky { --center: #7cbcff; --edge: #9fe2f6; }
.cert--peach { --center: #ffe2c6; --edge: #ffbfa3; }
.cert--pink { --center: #ffd5e9; --edge: #f6b0d2; }
.cert--mint { --center: #c9f6df; --edge: #ade6ff; }

.cert-abbr {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.cert-name {
    margin-top: 6px;
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 300;
    color: #3d3d3d;
}

.cert-link {
    margin-top: auto;
    padding-top: 28px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.6);
}

.quests {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: clamp(48px, 7vw, 110px) clamp(24px, 6.8vw, 98px);
}

.quests h2 {
    max-width: 13ch;
}

.quest-cards {
    display: flex;
    gap: clamp(16px, 2.4vw, 34px);
}

.quest {
    position: relative;
    display: grid;
    align-content: end;
    gap: 2px;
    width: clamp(220px, 21vw, 320px);
    aspect-ratio: 1.78;
    padding: 20px 22px;
    background: #fff;
    box-shadow: 0 4px 13px rgba(0, 0, 0, 0.11);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.quest:hover {
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.quest-ico {
    position: absolute;
    top: 20px;
    left: 22px;
    width: 26px;
    height: 26px;
    color: var(--ink);
}

.quest-ico--yt {
    color: #ff0033;
}

.quest-name {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--black);
}

.quest-handle {
    font-size: 13px;
    color: var(--caption);
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 1100px) {
    .window {
        zoom: 0.86;
    }

    .caption {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 4px;
        line-height: 1.4;
    }

    .caption h3 {
        white-space: normal;
    }

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

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

@media (max-width: 900px) {
    .window {
        zoom: 0.72;
    }
}

@media (max-width: 760px) {
    :root {
        --inset: 3.2vw;
    }

    .hero-inner {
        padding-top: 44px;
    }

    .headline {
        font-size: clamp(24px, 7.4vw, 32px);
    }

    .line {
        white-space: normal;
        text-wrap: balance;
    }

    .stage {
        height: 280px;
    }

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

    .about-intro {
        position: static;
        text-align: center;
    }

    .about-photo-link {
        justify-self: center;
    }

    .about-detail {
        border-left: 0;
        border-top: 1px solid var(--rule);
    }

    .entry {
        --logo: 32px;
        --col-gap: 12px;
    }

    .entry-logo {
        width: 32px;
        height: 32px;
    }

    .entry h4,
    .skill dt {
        font-size: 18px;
    }

    .entry-sub,
    .entry-loc,
    .entry-notes li,
    .skill dd {
        font-size: 14px;
    }

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

    .window {
        zoom: 0.66;
    }

    .epcr {
        width: 88%;
    }

    .chat {
        width: 76%;
    }

    .caption {
        padding: 14px 16px;
        font-size: 11px;
    }

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

    .cert {
        min-height: 170px;
    }

    .quest-cards {
        flex-direction: column;
    }

    .quest {
        width: 100%;
    }
}
