:root {
    --paper: #f7f4ed;
    --paper-deep: #eee9de;
    --ink: #17211f;
    --muted: #66706c;
    --teal: #1a8f7a;
    --teal-dark: #116a5b;
    --teal-soft: #dcefe9;
    --line: rgba(23, 33, 31, 0.14);
    --shadow: 0 24px 70px rgba(23, 33, 31, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background:
        linear-gradient(
            rgba(23, 33, 31, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(23, 33, 31, 0.035) 1px,
            transparent 1px
        ),
        var(--paper);
    background-size: 32px 32px;
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.page-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header */

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

.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    grid-template-columns: repeat(2, 7px);
    gap: 2px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.48);
}

.brand-mark span {
    width: 7px;
    height: 7px;
    border-radius: 1.5px;
    background: var(--teal);
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(3) {
    opacity: 0.42;
}

.status {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status::before {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--teal);
    content: "";
    box-shadow: 0 0 0 4px var(--teal-soft);
}

/* Hero */

.hero {
    max-width: 960px;
    padding:
        clamp(92px, 13vw, 174px)
        0
        clamp(96px, 12vw, 150px);
}

.eyebrow {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
    color: var(--teal-dark);
    font-size: 0.79rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow-line {
    display: inline-block;
    width: 34px;
    height: 1px;
    background: var(--teal);
}

h1 {
    max-width: 920px;
    margin: 0;
    font-size: clamp(3.6rem, 9.5vw, 8.2rem);
    font-weight: 650;
    letter-spacing: -0.07em;
    line-height: 0.91;
}

h1 span {
    display: block;
    color: var(--teal);
}

.hero-copy {
    max-width: 690px;
    margin: 38px 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
    line-height: 1.68;
}

.actions {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-top: 42px;
}

.primary-action {
    display: inline-flex;
    min-height: 52px;
    gap: 14px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    background: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 160ms ease,
        transform 160ms ease;
}

.primary-action:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
}

.secondary-copy {
    max-width: 260px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

/* Shared section heading */

.section-heading {
    display: grid;
    grid-template-columns: 64px 1fr;
    padding: 19px 0;
    align-items: baseline;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-heading p {
    margin: 0;
    color: var(--teal-dark);
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;
    font-size: 0.75rem;
}

.section-heading h2 {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Project */

.project-section {
    padding-bottom: 88px;
}

.project-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    min-height: 320px;
    margin-top: 34px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.52);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition:
        box-shadow 180ms ease,
        transform 180ms ease;
}

.project-card:hover {
    box-shadow: 0 30px 80px rgba(23, 33, 31, 0.13);
    transform: translateY(-3px);
}

.project-visual {
    display: grid;
    padding: clamp(28px, 4vw, 52px);
    place-items: center;
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(255, 255, 255, 0.78),
            transparent 48%
        ),
        var(--teal-soft);
}

.tessel-logo {
    display: block;
    width: min(62%, 220px);
    height: auto;
    filter: drop-shadow(
        0 18px 28px rgba(17, 106, 91, 0.16)
    );
}

.project-content {
    display: flex;
    padding: clamp(30px, 4vw, 48px);
    flex-direction: column;
    justify-content: space-between;
}

.project-label {
    margin: 0 0 16px;
    color: var(--teal-dark);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.project-content h3 {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    font-weight: 650;
    letter-spacing: -0.06em;
}

.project-content p:not(.project-label) {
    max-width: 530px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

.project-link {
    display: flex;
    margin-top: 32px;
    padding-top: 16px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
    font-weight: 700;
}

/* Social links */

.social-section {
    padding-bottom: 72px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.social-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 88px;
    gap: 12px;
    padding: 16px 18px;
    align-items: center;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.34);
    text-decoration: none;
    transition:
        background 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.social-link:hover {
    color: var(--teal-dark);
    background: var(--teal-soft);
    transform: translateY(-2px);
}

.social-icon-wrapper {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.55);
}

.social-icon {
    display: block;
    width: 18px;
    height: 18px;
}

.social-details {
    display: flex;
    min-width: 0;
    gap: 6px;
    flex-direction: column;
}

.social-details strong {
    font-size: 0.88rem;
}

.social-details small {
    color: var(--muted);
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;
    font-size: 0.7rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.social-arrow {
    color: var(--teal-dark);
    font-size: 0.9rem;
}

/* Footer */

footer {
    display: flex;
    padding: 28px 0 36px;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.76rem;
}

/* Tablet */

@media (max-width: 900px) {
    .social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 26px, 1180px);
    }

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

    .status {
        font-size: 0.66rem;
    }

    .hero {
        padding: 82px 0 96px;
    }

    h1 {
        font-size: clamp(3.55rem, 18vw, 5.8rem);
    }

    .hero-copy {
        margin-top: 28px;
    }

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

    .project-section {
        padding-bottom: 72px;
    }

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

    .project-visual {
        min-height: 200px;
        padding: 32px;
    }

    .tessel-logo {
        width: min(54%, 170px);
    }

    .project-content {
        min-height: 260px;
        padding: 28px;
    }

    .project-content h3 {
        font-size: clamp(2.6rem, 15vw, 4rem);
    }

    .project-link {
        margin-top: 26px;
    }

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

    .social-link {
        min-height: 76px;
        padding: 14px 16px;
    }

    footer {
        gap: 8px;
        flex-direction: column;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
