:root {
    --ink: #101214;
    --muted: #656a70;
    --navy: #063b76;
    --navy-dark: #052f5d;
    --line: #d7dadd;
    --line-dark: #c9cdd1;
    --paper: #ffffff;
    --panel: #fafbfc;
    --soft-blue: #eaf2fb;
    --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.site-shell {
    width: min(100% - 48px, 1320px);
    margin: 0 auto;
}

.site-header {
    min-height: 106px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border-bottom: 1px solid var(--line-dark);
}

.identity {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.2;
}

.identity-name {
    font-size: 31px;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.identity-role {
    margin-top: 4px;
    color: var(--muted);
    font-size: 17px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(28px, 4.2vw, 64px);
}

.site-nav a {
    position: relative;
    text-decoration: none;
    font-size: 16px;
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: -5px;
    left: 0;
    height: 1px;
    background: var(--navy);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hero {
    padding: clamp(78px, 9vw, 136px) 4px clamp(76px, 8vw, 124px);
    border-bottom: 1px solid var(--line);
}

.hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(52px, 6vw, 86px);
    font-weight: 720;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.hero-copy {
    max-width: 720px;
    margin-top: clamp(34px, 4vw, 52px);
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.5;
    letter-spacing: -0.018em;
}

.hero-copy p {
    margin: 0 0 22px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px 56px;
    margin-top: 38px;
}

.button,
.text-link {
    font-size: 18px;
    font-weight: 550;
}

.button {
    min-width: 148px;
    padding: 16px 27px;
    border: 1px solid var(--navy);
    border-radius: 3px;
    color: #fff;
    background: var(--navy);
    text-align: center;
    text-decoration: none;
    transition: background 150ms ease, border-color 150ms ease;
}

.button:hover,
.button:focus-visible {
    border-color: var(--navy-dark);
    background: var(--navy-dark);
}

.text-link,
.project-link,
.other-projects a {
    color: var(--navy);
    text-decoration-color: var(--navy);
    text-decoration-thickness: 1px;
    text-underline-offset: 7px;
}

.work-section {
    padding: 48px 0 0;
}

h2 {
    margin: 0;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.project-list {
    margin-top: 44px;
}

.project-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.92fr);
    align-items: center;
    gap: clamp(48px, 7vw, 110px);
    padding: 0 0 45px;
    margin-bottom: 45px;
    border-bottom: 1px solid var(--line);
}

.project-summary h3 {
    margin: 0 0 27px;
    font-size: clamp(25px, 2.3vw, 34px);
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 26px;
    font-size: 17px;
}

.project-link span:last-child {
    font-size: 25px;
    line-height: 1;
    text-decoration: none;
    transition: transform 150ms ease;
}

.project-link:hover span:last-child,
.project-link:focus-visible span:last-child {
    transform: translateX(5px);
}

.project-preview {
    height: 310px;
    overflow: hidden;
    border: 1px solid var(--line-dark);
    border-radius: 5px;
    color: #16191c;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 24, 28, 0.03);
    font-size: 12px;
}

.window-bar {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    border-bottom: 1px solid var(--line);
    background: #fafafa;
}

.window-title {
    width: 220px;
    height: 6px;
    border-radius: 10px;
    background: linear-gradient(90deg, #f0f1f2 75%, transparent 75%);
}

.window-controls {
    color: #4f555b;
    letter-spacing: 2px;
}

.paste-app {
    height: calc(100% - 45px);
    display: grid;
    grid-template-columns: 54px 1fr;
}

.tool-rail {
    border-right: 1px solid var(--line);
    background: #f8fafc;
}

.tool {
    height: 52px;
    display: grid;
    place-items: center;
    border-bottom: 1px solid #edf0f2;
    font-size: 16px;
}

.tool.active {
    color: var(--navy);
    background: var(--soft-blue);
}

.paste-panel {
    padding: 24px;
}

.drop-zone {
    height: 158px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    border: 2px dashed #d8dcdf;
    border-radius: 8px;
    gap: 7px;
}

.drop-zone small {
    font-size: 11px;
}

.product-header {
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid #ebedef;
    background: #fafafa;
    font-size: 17px;
}

.product-tabs {
    height: 48px;
    display: flex;
    align-items: end;
    gap: 34px;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
}

.product-tabs span {
    height: 100%;
    display: flex;
    align-items: center;
}

.product-tabs .selected {
    border-bottom: 3px solid var(--navy);
    color: var(--navy);
    font-weight: 650;
}

.table-card {
    margin: 21px 24px;
    border: 1px solid var(--line);
    border-radius: 5px;
}

.table-head,
.table-row {
    display: grid;
    grid-template-columns: 1fr 100px;
    align-items: center;
    min-height: 39px;
    padding: 0 16px;
    border-bottom: 1px solid #e4e6e8;
}

.table-row:last-child {
    border-bottom: 0;
}

.table-row i {
    width: 48%;
    height: 8px;
    border-radius: 8px;
    background: #d9dcdf;
}

.table-row em {
    justify-self: start;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f0f0f0;
    font-style: normal;
}

.table-row .blue {
    background: #e2eefb;
}

.table-row .green {
    background: #e7f4e8;
}

.our-header {
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border-bottom: 1px solid var(--line);
    background: #fafafa;
    font-size: 17px;
}

.search {
    width: 56%;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border: 1px solid var(--line-dark);
    border-radius: 4px;
    color: #999fa5;
    font-size: 11px;
}

.search b {
    color: #4d545b;
    font-size: 17px;
}

.our-body {
    height: calc(100% - 62px);
    display: grid;
    grid-template-columns: 145px 1fr;
}

.our-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    gap: 4px;
    border-right: 1px solid #eef0f2;
}

.our-nav span {
    padding: 10px 18px;
}

.our-nav .selected {
    color: var(--navy);
    background: var(--soft-blue);
    font-weight: 650;
}

.feed {
    padding: 19px 25px;
}

.feed-row {
    display: grid;
    grid-template-columns: 72px 1fr 12px;
    align-items: center;
    gap: 20px;
    margin-bottom: 17px;
}

.feed-row > i {
    height: 49px;
    border-radius: 4px;
    background: #e1e3e5;
}

.feed-row > span {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feed-row b {
    width: 65%;
    height: 7px;
    border-radius: 7px;
    background: #d7dade;
}

.feed-row b:last-child {
    width: 43%;
}

.feed-row em {
    font-size: 20px;
    font-style: normal;
}

.details-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: clamp(70px, 10vw, 170px);
    padding: 4px 0 68px;
}

.areas h2,
.other-projects h2 {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.areas ul,
.other-projects ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.areas li {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.other-projects > p {
    margin: 20px 0 16px;
    color: #2d3033;
    font-size: 15px;
}

.other-projects li {
    border-bottom: 1px solid var(--line);
}

.other-projects a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 2px 9px 0;
    text-underline-offset: 5px;
}

.other-projects a span:last-child {
    font-size: 23px;
    text-decoration: none;
    transition: transform 150ms ease;
}

.other-projects a:hover span:last-child,
.other-projects a:focus-visible span:last-child {
    transform: translateX(5px);
}

.site-footer {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border-top: 1px solid var(--line-dark);
    color: var(--muted);
    font-size: 14px;
}

.site-footer div {
    display: flex;
    gap: 28px;
}

.site-footer a {
    color: var(--ink);
    text-underline-offset: 4px;
}

a:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 5px;
}

@media (max-width: 820px) {
    .site-shell {
        width: min(100% - 32px, 680px);
    }

    .site-header {
        min-height: 92px;
    }

    .identity-name {
        font-size: 25px;
    }

    .identity-role {
        font-size: 15px;
    }

    .site-nav {
        gap: 22px;
    }

    .site-nav a {
        font-size: 15px;
    }

    .hero {
        padding: 68px 0 72px;
    }

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

    .project-row {
        grid-template-columns: 1fr;
        gap: 27px;
    }

    .project-summary {
        padding-bottom: 6px;
    }

    .project-summary h3 {
        margin-bottom: 18px;
    }

    .details-grid {
        gap: 52px;
    }
}

@media (max-width: 580px) {
    body {
        font-size: 16px;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 17px;
        padding: 20px 0;
    }

    .site-nav {
        width: 100%;
        justify-content: space-between;
    }

    .hero {
        padding: 58px 0 62px;
    }

    .hero h1 {
        font-size: clamp(43px, 13vw, 58px);
    }

    .hero-copy {
        margin-top: 30px;
        font-size: 19px;
    }

    .hero-actions {
        gap: 20px 16px;
        margin-top: 32px;
    }

    .button,
    .text-link {
        font-size: 16px;
    }

    .button {
        min-width: 126px;
        padding: 13px 20px;
    }

    .work-section {
        padding-top: 38px;
    }

    .project-list {
        margin-top: 32px;
    }

    .project-row {
        padding-bottom: 36px;
        margin-bottom: 36px;
    }

    .project-preview {
        height: 240px;
    }

    .product-tabs {
        gap: 19px;
    }

    .table-card {
        margin: 14px;
    }

    .our-body {
        grid-template-columns: 112px 1fr;
    }

    .our-nav span {
        padding: 9px 10px;
        font-size: 10px;
    }

    .feed {
        padding: 17px 14px;
    }

    .feed-row {
        grid-template-columns: 48px 1fr 8px;
        gap: 10px;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 52px;
        padding-bottom: 54px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 24px 0;
    }
}

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

    * {
        transition: none !important;
    }
}
