:root {
    --page-bg: #f8f5ee;
    --paper: #fffdf8;
    --ink: #202124;
    --ink-muted: #6f6b64;
    --line: rgba(32, 33, 36, 0.16);
    --line-strong: rgba(32, 33, 36, 0.32);
    --accent: #f08a4b;
    --accent-cool: #8ac8d8;
    --shadow: 0 28px 80px rgba(32, 33, 36, 0.12);
    --site-width: min(1180px, calc(100% - 40px));
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background:
        linear-gradient(rgba(32, 33, 36, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 33, 36, 0.026) 1px, transparent 1px),
        var(--page-bg);
    background-size: 44px 44px, 44px 44px, auto;
    color: var(--ink);
    font-family: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
    line-height: 1.5;
}

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

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

:focus-visible {
    outline: 3px solid rgba(240, 138, 75, 0.72);
    outline-offset: 4px;
}

.root-header,
.portal-hero,
.works-strip,
.content-section,
.root-footer {
    width: var(--site-width);
    margin-inline: auto;
}

.root-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 28px;
}

.root-brand,
.root-nav,
.text-link,
.featured-work__caption,
.work-row,
.root-footer {
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0;
}

.root-brand {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}

.root-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--ink-muted);
}

.root-nav a,
.text-link,
.root-footer a {
    text-underline-offset: 0.22em;
    transition: color 160ms ease, text-decoration-color 160ms ease;
}

.root-nav a:hover,
.root-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.root-footer a:hover,
.root-footer a:focus-visible {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

.portal-hero {
    position: relative;
    min-height: calc(100svh - 100px);
    padding-block: 58px 88px;
}

.portal-hero__copy {
    position: relative;
    z-index: 3;
    max-width: min(420px, 100%);
}

.portal-hero__copy p {
    margin: 0 0 20px;
    color: var(--ink-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.portal-hero__copy h1 {
    margin: 0;
    font-size: 6.25rem;
    font-weight: 760;
    line-height: 0.92;
}

.portal-hero__lead {
    display: grid;
    gap: 10px;
    max-width: 390px;
    margin-top: 26px;
    color: var(--ink-muted);
    font-size: 0.96rem;
    font-weight: 500;
    line-height: 1.9;
    line-break: anywhere;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.portal-hero__lead p {
    margin: 0;
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 28px;
    color: var(--ink-muted);
}

.featured-work {
    position: relative;
    z-index: 2;
    display: block;
    width: min(820px, 74%);
    margin: -34px 0 0 auto;
    color: var(--ink);
}

.featured-work__poster {
    display: block;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.featured-work__poster img {
    width: 100%;
    border-radius: 4px;
}

.featured-work__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
    margin-top: 12px;
    padding-inline: 2px;
}

.featured-work__caption span:last-child,
.work-row__action {
    color: var(--accent);
}

.screen-peek {
    position: absolute;
    inset: auto auto 38px 58px;
    z-index: 1;
    width: 260px;
    height: 280px;
    pointer-events: none;
}

.screen-peek__image {
    position: absolute;
    width: 124px;
    aspect-ratio: 9 / 16;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 18px 54px rgba(32, 33, 36, 0.12);
    object-fit: cover;
    object-position: top center;
}

.screen-peek__image--one {
    left: 0;
    bottom: 0;
    transform: rotate(-5deg);
}

.screen-peek__image--two {
    right: 0;
    bottom: 36px;
    transform: rotate(7deg);
}

.works-strip {
    padding-block: 22px 88px;
}

.work-row {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    min-height: 132px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    transition: border-color 160ms ease, transform 160ms ease;
}

.work-row:hover,
.work-row:focus-visible {
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.work-row__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111;
}

.work-row__media img {
    width: 88px;
    height: 88px;
    object-fit: contain;
}

.work-row__title {
    min-width: 0;
    font-size: 1.05rem;
}

.content-section {
    display: grid;
    grid-template-columns: minmax(160px, 0.34fr) minmax(0, 0.66fr);
    gap: clamp(28px, 7vw, 92px);
    padding-block: 72px;
    border-top: 1px solid var(--line);
}

.content-section--work {
    padding-top: 22px;
}

.section-heading span {
    display: block;
    color: var(--ink-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2 {
    max-width: 320px;
    margin: 14px 0 0;
    font-size: clamp(1.55rem, 3vw, 2.6rem);
    font-weight: 760;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.section-body {
    display: grid;
    gap: 18px;
    max-width: 720px;
    color: var(--ink-muted);
    font-size: 1rem;
    line-height: 1.95;
    line-break: anywhere;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.section-body p {
    margin: 0;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 46px;
    margin-top: 8px;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
    transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button-link:hover,
.button-link:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.root-footer {
    padding-block: 0 38px;
    color: var(--ink-muted);
}

.root-footer div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
    .portal-hero {
        min-height: auto;
        padding-block: 34px 64px;
    }

    .portal-hero__copy h1 {
        font-size: 4.6rem;
    }

    .featured-work {
        inline-size: 100%;
        max-inline-size: 100%;
        margin-top: 34px;
        margin-inline: 0;
    }

    .screen-peek {
        display: none;
    }

    .content-section {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-block: 56px;
    }
}

@media (max-width: 620px) {
    :root {
        --site-width: calc(100% - 24px);
    }

    .root-header {
        display: grid;
        align-items: start;
        justify-content: start;
        gap: 10px;
        padding-block: 22px;
    }

    .root-nav {
        flex-wrap: wrap;
        gap: 14px;
    }

    .portal-hero__copy h1 {
        font-size: 3.35rem;
    }

    .portal-hero__lead {
        max-width: none;
        font-size: 0.92rem;
    }

    .featured-work__caption {
        min-height: 46px;
    }

    .work-row {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 16px;
        min-height: 108px;
        padding-block: 14px;
    }

    .work-row__media {
        width: 72px;
        height: 72px;
    }

    .work-row__media img {
        width: 66px;
        height: 66px;
    }

    .work-row__action {
        grid-column: 2;
    }

    .section-body {
        font-size: 0.95rem;
        line-height: 1.9;
    }
}
