:root {
    --bg: #f5f3ef;
    --ink: #242521;
    --muted: #62635c;
    --header-height: 94px;
    --pink-ink: #87545d;
    --line: #d8d7d0;
    --pink: #b9818a;
    --hero-name-size: 24px;
    --hero-copy-size: clamp(28px, 2.2vw, 32px);
    --hero-label-size: 18px;
    --hero-cta-size: 15px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

:lang(ja) {
    font-family: 'Noto Sans JP', sans-serif;
}

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

button {
    font: inherit;
}

::selection {
    background: #dec7c9;
}

.section-pad {
    padding-left: clamp(24px, 6vw, 108px);
    padding-right: clamp(24px, 6vw, 108px);
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 clamp(24px, 6vw, 108px);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: baseline;
    flex-shrink: 0;
    font: 800 30px 'Roboto', sans-serif;
    letter-spacing: -.03em;
}

.brand-dot,
.period {
    color: var(--pink);
}

.brand small {
    font-size: 24px;
    letter-spacing: -1px;
    margin-left: 3px;
    font-weight: 500;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
}

.nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(20px, 2.6vw, 37px);
    font-size: 15px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    letter-spacing: .03em;
    line-height: 1.5;
}

.nav > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
}

.nav > a:not(.nav-contact):hover {
    color: var(--pink-ink);
}

.nav-contact {
    border: 1px solid var(--ink);
    padding: 10px 19px;
    border-radius: 40px;
}

.nav-contact span {
    margin-left: 22px;
}

.nav-contact:hover {
    background: var(--ink);
    color: var(--bg);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 25px;
    cursor: pointer;
    color: var(--ink);
}

.eyebrow,
.hero-index,
.hero-foot,
.micro-label,
.art-number,
.footer {
    font-size: 14px;
    letter-spacing: .03em;
    line-height: 1.6;
}

.note {
    font-size: 13px;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--muted);
    margin-top: 26px;
    line-height: 1.8;
}

.hero {
    min-height: 680px;
    scroll-margin-top: 94px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-top,
.hero-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 27px;
}

.hero-top {
    justify-content: flex-start;
    align-items: flex-start;
}

.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pink);
    margin-right: 9px;
}

.hero-index {
    color: var(--muted);
}

.hero-main {
    padding: 36px 0 30px;
}

.hero-focus {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 52%);
    align-items: center;
    gap: clamp(16px, 2.5vw, 36px);
}

.hero-copy {
    min-width: 0;
}

.hero-app-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 18px;
    width: 100%;
    /* Three ~450px tall phones, including their 6px frames. */
    max-width: 665px;
    min-height: 450px;
    margin-inline: auto;
    animation: hero-mockup-arrive 900ms cubic-bezier(.22, 1, .36, 1) both;
}

.hero-device {
    min-width: 0;
    width: 100%;
    padding: 5px;
    border: 1px solid #3c3d38;
    border-radius: 30px;
    background: #292b28;
    box-shadow: 0 14px 30px rgba(36, 37, 33, .14), 0 3px 8px rgba(36, 37, 33, .08);
    transform: rotate(0deg);
}

.hero-device-screen {
    width: 100%;
    aspect-ratio: 1119 / 2431;
    overflow: hidden;
    border-radius: 23px;
    background: #f8f7f3;
    padding: 0;
}

.hero-device-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
}

@keyframes hero-mockup-arrive {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-kicker {
    display: flex;
    flex-direction: column;
    font-size: var(--hero-label-size);
    font-weight: 500;
    letter-spacing: .03em;
    gap: 5px;
    margin: 0 0 20px;
    line-height: 1;
    overflow-wrap: anywhere;
    font-family: 'Roboto', sans-serif;
}

.hero-kicker-name {
    font-size: var(--hero-name-size);
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.3;
}

.hero-location {
    display: block;
    margin-left: 16px;
}

.hero h1,
.section-heading h2,
.about h2,
.journal h2,
.contact h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    letter-spacing: -.077em;
}

.hero h1 {
    font-weight: 400;
    letter-spacing: -.065em;
    font-size: clamp(72px, 10.7vw, 174px);
    line-height: .93;
    margin: 0;
}

.hero h1 em {
    font-family: 'Libre Bodoni', serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -.045em;
    font-size: 156px;
}

.about-expertise {
    margin: 70px 0 0;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.02em;
    color: var(--muted);
}
.section-heading h2 em,
.about h2 em,
.journal h2 em,
.contact h2 em {
    font-family: 'Libre Bodoni', serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -.045em;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-top: 34px;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-bottom p {
    max-width: 660px;
    font-size: var(--hero-copy-size);
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: .01em;
    color: #5d5e57;
    margin: 0;
}

.hero-bottom p > span {
    display: block;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 52px;
    padding: 13px 22px;
    border: 1px solid var(--ink);
    border-radius: 40px;
    font-size: var(--hero-cta-size);
    font-weight: 500;
    transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    letter-spacing: .03em;
}

.hero-cta span {
    display: inline-block;
    color: var(--pink);
    font-size: 18px;
    transition: color 250ms ease, transform 250ms ease;
}

.hero-cta-primary,
.hero-cta:hover {
    background: var(--ink);
    color: #fff;
}

.hero-cta-primary span,
.hero-cta:hover span {
    color: #e6c5c9;
}

.hero-cta:hover span {
    transform: translate(3px, -3px);
}

.hero-cta-secondary {
    color: var(--ink);
    border-color: var(--ink);
}

.hero-cta-secondary:hover {
    color: var(--ink);
    border-color: var(--ink);
    background: #e8e1dd;
}

.hero-cta-secondary:hover span {
    color: var(--pink-ink);
}

.hero-foot {
    justify-content: center;
    text-align: center;
    padding: 10px 0 16px;
    color: var(--muted);
}

.hero-foot a {
    cursor: pointer;
}

#work {
    /* Header clearance is already provided by html's scroll-padding-top. */
    scroll-margin-top: 24px;
}

.works,
.products {
    padding-top: 140px;
    padding-bottom: 150px;
    background: #e8e1dd;
}

.products {
    background: var(--bg);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 64px;
    gap: 30px;
}

.section-heading h2 {
    font-size: clamp(45px, 5.6vw, 86px);
    line-height: 1.1;
    margin: 35px 0 0;
    letter-spacing: -0.02em;
}

.section-heading>p {
    font-size: 17px;
    line-height: 1.8;
    color: #696a65;
    min-width: 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 24px;
}

.work-card {
    min-width: 0;
}

.work-visual-panel {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    padding: 28px;
    overflow: hidden;
    border-radius: 40px;
    background: #ffffff;
}

.project-image-panel {
    position: relative;
    color: var(--muted);
    background: #f2f2f2;
    border: 1px dashed var(--line);
    text-align: center;
    font-size: 14px;
}

.project-image-panel > img {
    position: absolute;
    inset: 28px;
    width: calc(100% - 56px);
    height: calc(100% - 56px);
    object-fit: contain;
    object-position: center;
}

.work-mockup-phone {
    width: 56%;
    max-width: none;
    aspect-ratio: 9 / 19.5;
    padding: 6px;
    overflow: hidden;
    border: 1px solid #3d3e39;
    border-radius: 40px;
    background: #292b28;
    box-shadow: 0 16px 34px rgba(36, 37, 33, .13),
                0 4px 10px rgba(36, 37, 33, .07);

}

.work-mockup-screen {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    overflow: hidden;
    border-radius: 34px;
    background: #f8f7f3;
}

.work-mockup-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.work-mockup-placeholder {
    color: #85857e;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: .08em;
    text-align: center;
}

.work-caption {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 24px;
    gap: 20px;
}

.work-caption h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 10px 0 6px;
}

.work-caption-index {
    display: block;
    color: var(--muted);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .06em;
    line-height: 1.5;
}

.work-caption p {
    font-size: 17px;
    color: #7c7c76;
    margin: 0;
    line-height: 1.4;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    letter-spacing: .03em;
}

.work-link-arrow {
    display: inline-block;
    transition: transform 250ms ease;
}

.work-link-label:not([aria-disabled="true"]):hover .work-link-arrow {
    transform: translate(3px, -3px);
}


.text-link {
    display: inline-block;
    margin-top: 65px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    letter-spacing: .03em;
}

.text-link span {
    margin-left: 90px;
}

.about {
    padding-top: 130px;
    padding-bottom: 155px;
    background-color: #ffffff;
}

.about-top {
    display: flex;
    justify-content: space-between;
}

.asterisk {
    font-size: 64px;
    color: var(--pink);
    line-height: .5;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 55fr) minmax(0, 40fr);
    column-gap: 5%;
    align-items: start;
    margin-top: 35px;
}

.about h2 {
    font-size: clamp(50px, 6.2vw, 100px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0;
}

.about-intro,
.about-copy {
    min-width: 0;
}

.about-copy {
    padding-top: 0;
    max-width: 680px;
}

.micro-label {
    color: var(--pink-ink);
}

.about-copy>p {
    font-size: 17px;
    line-height: 1.8;
    color: #6b6c65;
}

.about-facts {
    border-top: 1px solid var(--line);
    margin-top: 42px;
    padding-top: 26px;
    display: flex;
    gap: 45px;
    flex-wrap: wrap;
}

.about-facts div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-facts strong {
    font-size: 25px;
    font-weight: 500;
}

.about-facts span {
    font-size: 14px;
    letter-spacing: .03em;
    color: var(--muted);
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.journal {
    padding-top: 140px;
    padding-bottom: 150px;
    background-color: #e8e1dd;
}

.journal-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.journal h2 {
    letter-spacing: -0.02em;
    font-size: clamp(55px, 6.7vw, 105px);
    line-height: 1.12;
    margin: 35px 0;
}

.journal p {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.8;
}

.journal-stamp {
    border: 1px solid #b5aaa6;
    width: 215px;
    height: 215px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotate(13deg);
    font-size: 19px;
    letter-spacing: .03em;
    flex-shrink: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    line-height: 1.5;
}

.journal-stamp span {
    font-size: 14px;
    margin-top: 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    letter-spacing: .03em;
    line-height: 1.5;
}

.journal-stamp .stamp-star {
    font-size: 36px;
    color: var(--pink);
}

.contact {
    background: #292b28;
    color: #f5f3ef;
    padding-top: 120px;
    padding-bottom: 135px;
}

.contact>p {
    font-size: 14px;
    letter-spacing: .03em;
    margin-top: 100px;
    color: #b7b9b1;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.contact h2 {
    font-size: clamp(70px, 10vw, 160px);
    line-height: 1.02;
    margin: 35px 0;
}

.contact h2 em {
    color: #d3adb0;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 180px;
    border-radius: 50px;
    background: #f5f3ef;
    color: #292b28;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    border: 1px solid transparent;
    transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
}
.contact-button:hover {
    background: #292b28;
    color: #ffffff;
    border-color: #ffffff;
}

.contact-button span {
    font-size: 23px;
}

.contact>small {
    display: block;
    color: #b7b9b1;
    font-size: 13px;
    margin-top: 20px;
    line-height: 1.8;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px clamp(24px, 6vw, 108px);
    gap: 20px;
    font-size: 14px;
    letter-spacing: .04em;
    line-height: 1.6;
}

.footer-brand {
    font-size: 22px;
}

.footer-brand small {
    font-size: 17.6px;
    letter-spacing: -.7333px;
    margin-left: 2.2px;
}

.footer>div:nth-child(2) {
    color: var(--muted);
}

.footer>a:hover {
    color: var(--pink);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--pink-ink);
    outline-offset: 5px;
}

.hero-cta-primary {
    background: var(--ink);
    color: var(--bg);
}

.hero-cta-primary:hover {
    background: #3b3c38;
    border-color: #3b3c38;
}

.work-link-label {
    display: inline-flex;
    justify-content: center;
    gap: 14px;
    align-items: center;
    padding: 14px 24px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    letter-spacing: .03em;
    text-decoration: none;
    transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
    min-height: 52px;
}

.work-card .work-link-label:not([aria-disabled="true"]):hover {
    background: #e8e1dd;
    color: var(--ink);
    border-color: var(--ink);
    text-decoration: none;
}


.about-copy > .about-lead {
    font-size: clamp(20px, 2vw, 29px);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.8;
    margin: 29px 0;
}

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

@media (max-width:850px) {
    :root {
        --header-height: 76px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        padding: 25px;
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid var(--line);
        gap: 8px;
        max-height: calc(100dvh - var(--header-height));
        overflow-y: auto;
    }

    .nav.open {
        display: flex;
    }

    .hero {
        min-height: 620px;
        scroll-margin-top: 76px;
        max-height: none;
    }

    .hero-focus {
        grid-template-columns: 1fr;
    }

    .hero-app-stack {
        min-height: 0;
        margin: 20px auto 0;
    }

    .hero h1 {
        font-size: clamp(57px, 10vw, 100px);
    }

    .hero-bottom {
        margin-top: 40px;
        align-items: flex-start;
    }

    .section-heading {
        display: block;
    }

    .section-heading>p {
        margin-top: 24px;
    }

    .journal-stamp {
        width: 160px;
        height: 160px;
    }

    .footer {
        flex-wrap: wrap;
    }

    .hero-foot {
        gap: 16px;
        flex-wrap: wrap;
    }

}

@media (max-width:768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-copy {
        max-width: 620px;
    }
}

@media (max-width:600px) {
    :root {
        --hero-copy-size: clamp(20px, 5vw, 24px);
    }

    .hero {
        min-height: calc(100svh - var(--header-height));
    }

    .hero-main {
        padding: 56px 0;
    }

    .hero-app-stack {
        margin-top: 16px;
    }

    .hero-device {
        border-radius: 18px;
    }

    .hero-device-screen {
        border-radius: 12px;
    }

    .hero h1 {
        font-size: clamp(40px, 10.8vw, 65px);
    }

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

    .hero-bottom p > span {
        display: inline;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-cta {
        width: 100%;
        font-size: var(--hero-cta-size);
    }

    .round-arrow {
        width: 65px;
        height: 65px;
    }

    .hero-foot {
        font-size: 14px;
        gap: 12px;
        letter-spacing: .03em;
    }

    .works,
        .products,
        .about,
        .journal {
        padding-top: 90px;
        padding-bottom: 95px;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .section-heading h2 {
        font-size: 48px;
    }

    .journal-inner {
        display: block;
    }

    .journal-stamp {
        margin: 50px 0 0 auto;
    }

    .contact {
        padding-top: 90px;
        padding-bottom: 100px;
    }

    .contact>p {
        margin-top: 80px;
    }

    .contact h2 {
        font-size: clamp(38px, 10.5vw, 63px);
    }

    .footer {
        font-size: 13px;
    }

    .footer>div:nth-child(2) {
        order: 3;
        width: 100%;
    }

    .hero-top .eyebrow {
        font-size: 14px;
        letter-spacing: .03em;
    }

    .section-heading h2,
        .about h2,
        .journal h2 {
        font-size: clamp(36px, 9vw, 54px);
    }

    .text-link span {
        margin-left: 16px;
    }

    .section-heading>p {
        font-size: 16px;
    }

    .about-copy>p {
        font-size: 16px;
    }

    .journal p {
        font-size: 16px;
    }

}

/* Content stays visible unless the observer has successfully been installed. */
span.scroll-reveal,
.contact h2 > .scroll-reveal {
    display: inline-block;
}

.journal-stamp.scroll-reveal {
    --reveal-rotation: 13deg;
}

.scroll-reveal.reveal-pending {
    opacity: 0;
    transform: translateY(30px) rotate(var(--reveal-rotation, 0deg));
}

.scroll-reveal.reveal-visible {
    animation: scroll-reveal 800ms cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms) both;
}

@keyframes scroll-reveal {
    from {
        opacity: 0;
        transform: translateY(30px) rotate(var(--reveal-rotation, 0deg));
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(var(--reveal-rotation, 0deg));
    }
}

@media (prefers-reduced-motion:reduce) {
    .scroll-reveal.reveal-pending,
    .scroll-reveal.reveal-visible {
        opacity: 1;
        transform: rotate(var(--reveal-rotation, 0deg));
    }

    html {
        scroll-behavior: auto;
    }

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

}

