:root {
    --ink: #253545;
    --muted: #6f7f89;
    --paper: #f8f7f2;
    --cream: #efede3;
    --line: rgba(37, 53, 69, .16);
    --blue: #c7e2e7;
    --coral: #eecfc2;
    --forest: #2e5c56
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Noto Sans SC", sans-serif;
    line-height: 1.75
}

#scene {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .34
}

.site-header {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(24px, 5vw, 80px);
    border-bottom: 1px solid var(--line);
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 3
}

.brand {
    color: var(--ink);
    font: 500 13px "DM Mono", monospace;
    letter-spacing: .07em;
    text-decoration: none
}

.brand span {
    color: var(--muted);
    font-size: 10px
}

nav {
    display: flex;
    gap: 24px
}

nav a {
    font-size: 12px;
    color: var(--ink);
    text-decoration: none
}

.page {
    min-height: 100vh
}

.hero {
    position: relative;
    display: grid;
    align-items: end;
    overflow: hidden;
    border-bottom: 1px solid var(--line)
}

.hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .88
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(248, 247, 242, .92) 2%, rgba(248, 247, 242, .54) 43%, rgba(248, 247, 242, .05) 78%)
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding: 0 clamp(24px, 10vw, 160px) clamp(65px, 12vh, 125px);
    max-width: 790px
}

.eyebrow {
    font: 500 11px "DM Mono", monospace;
    letter-spacing: .13em;
    color: var(--muted);
    margin: 0 0 15px
}

.hero h1,
h2 {
    font-size: clamp(42px, 6.8vw, 94px);
    line-height: 1.15;
    letter-spacing: -.065em;
    font-weight: 600;
    margin: 0
}

.hero h1 em,
.about h2 em,
.work h3 em {
    font-family: "Playfair Display", serif;
    font-weight: 500
}

.hero-copy>p:not(.eyebrow) {
    font-size: 16px;
    max-width: 400px;
    margin: 24px 0 27px
}

.scroll-cue,
.text-link {
    font: 500 12px "DM Mono", monospace;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: .02em;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 4px
}

.scroll-cue span {
    margin-left: 10px;
    font-size: 18px
}

.section-wrap {
    max-width: 1250px;
    margin: auto;
    padding: clamp(88px, 10vw, 135px) clamp(24px, 5vw, 70px)
}

.section-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    align-items: end
}

.section-top h2,
.career h2 {
    font-size: clamp(42px, 5.2vw, 70px)
}

.section-top>p {
    width: 280px;
    margin: 0 0 9px;
    font-size: 14px;
    color: var(--muted)
}

.note-stream {
    margin-top: 62px;
    border-top: 1px solid var(--line)
}

.note-index {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px
}

.note-search { display: grid; gap: 8px; min-width: min(100%, 360px) }
.note-search span, .note-search-status, .note-pagination {
    font: 10px "DM Mono", monospace;
    letter-spacing: .11em;
    color: var(--muted)
}
.note-search input {
    width: 100%;
    padding: 11px 0 9px;
    border: 0;
    border-bottom: 1px solid var(--line);
    outline: 0;
    color: var(--ink);
    background: transparent;
    font: 13px "DM Mono", monospace
}
.note-search input:focus { border-color: #5d9ca6 }
.note-search-status { margin: 0 0 10px; white-space: nowrap }
.note-pagination { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 22px 0 0 }
.note-pagination p { margin: 0; min-width: 62px; text-align: center }
.note-pagination button {
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 8px 12px;
    color: var(--ink);
    background: rgba(255,255,255,.28);
    font: 10px "DM Mono", monospace;
    letter-spacing: .08em;
    cursor: pointer;
    transition: transform .2s, background .2s
}
.note-pagination button:hover:not(:disabled) { transform: translateY(-2px); background: rgba(199, 226, 231, .5) }
.note-pagination button:disabled { cursor: default; opacity: .36 }

.note-row {
    display: grid;
    grid-template-columns: 120px 92px 1fr;
    gap: 18px;
    align-items: baseline;
    border-bottom: 1px solid var(--line);
    padding: 22px 5px;
    transition: padding .3s, background .3s
}

/* Author display rules otherwise override the browser's native [hidden] rule. */
.note-row[hidden] { display: none !important }

.note-row:hover {
    padding-left: 16px;
    background: rgba(199, 226, 231, .32)
}

.note-date,
.note-kind {
    font: 11px "DM Mono", monospace;
    color: var(--muted);
    margin: 0
}

.note-row a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 26px;
    color: var(--ink);
    text-decoration: none
}

.note-row h3 {
    font-size: clamp(17px, 2vw, 24px);
    letter-spacing: -.04em;
    line-height: 1.4;
    margin: 0
}

.note-row a span {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap
}

.note-widgets {
    display: grid;
    grid-template-columns: 1.1fr 1.25fr .85fr;
    gap: 14px;
    margin: 48px 0 35px
}

.weather-widget,
.image-widget,
.now-widget {
    min-height: 245px;
    padding: 25px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .36);
    display: flex;
    flex-direction: column
}

.weather-widget {
    justify-content: flex-start;
    gap: 12px;
    background: var(--blue)
}

#weather-place {
    font-size: 14px;
    margin: 0
}

.weather-reading {
    display: flex;
    align-items: baseline;
    gap: 12px
}

.weather-reading strong {
    font: 500 58px/1 "Playfair Display", serif;
    letter-spacing: -.06em
}

.weather-reading span {
    font-size: 13px
}

.weather-widget small {
    color: #5c7078;
    font-size: 10px
}

.weather-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px
}

.weather-search input {
    min-width: 0;
    border: 0;
    border-bottom: 1px solid rgba(37, 53, 69, .28);
    padding: 6px 2px;
    color: var(--ink);
    background: transparent;
    font: 10px "DM Mono", monospace;
    outline: none
}

.weather-search input:focus { border-bottom-color: #3d7780 }

.weather-search button {
    border: 1px solid rgba(37, 53, 69, .25);
    padding: 0 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, .48);
    font: 9px "DM Mono", monospace;
    cursor: pointer
}

.weather-forecast {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    margin-top: auto
}

.weather-day {
    min-width: 0;
    padding: 5px 1px;
    border-top: 1px solid rgba(37, 53, 69, .15);
    text-align: center;
    color: #45626b;
    font: 8px/1.35 "DM Mono", monospace
}

.weather-day b {
    display: block;
    margin: 2px 0;
    color: #34505a;
    font-size: 13px
}

.image-widget {
    position: relative;
    overflow: hidden;
    background: #e7e1d6
}

.image-widget h3 {
    position: relative;
    font-size: 21px;
    line-height: 1.35;
    margin: 0 0 6px
}

.image-widget>p:last-child {
    position: relative;
    max-width: 260px;
    font-size: 11px;
    line-height: 1.7;
    margin: 0;
    color: #5d6c70
}

.image-orbit {
    position: absolute;
    width: 250px;
    height: 250px;
    right: -48px;
    bottom: -75px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, #f7ebc8 0 7%, #a5cbb4 8% 24%, #bddfda 25% 38%, #d2e1dc 39% 42%, transparent 43%);
    animation: drift 8s ease-in-out infinite
}

.image-orbit i {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    inset: 22px;
    animation: spin 10s linear infinite
}

.image-orbit i:nth-child(2) {
    inset: 49px;
    animation-direction: reverse
}

.image-orbit i:nth-child(3) {
    inset: 78px
}

.calendar-widget {
    background: linear-gradient(145deg, #f5f1e8, #e6f1ee)
}

.calendar-widget .eyebrow,
.calendar-toolbar,
.calendar-weekdays,
.calendar-days {
    position: relative;
    z-index: 1
}

.calendar-toolbar {
    display: grid;
    grid-template-columns: 28px 1fr 28px;
    align-items: center;
    gap: 6px;
    margin: 7px 0 13px
}

.calendar-toolbar h3 {
    margin: 0;
    text-align: center;
    font: 500 18px/1 "DM Mono", monospace;
    letter-spacing: .04em
}

.calendar-toolbar button {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(37, 53, 69, .26);
    border-radius: 50%;
    color: var(--ink);
    background: rgba(255, 255, 255, .52);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease
}

.calendar-toolbar button:hover {
    background: #fff;
    transform: translateY(-2px)
}

.calendar-today {
    position: relative;
    z-index: 1;
    align-self: center;
    margin: -5px 0 8px;
    border: 0;
    padding: 0;
    color: #5b7e80;
    background: transparent;
    font: 9px "DM Mono", monospace;
    letter-spacing: .08em;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px
}

.calendar-weekdays {
    color: #6c8788;
    font: 9px "DM Mono", monospace;
    text-align: center;
    margin-bottom: 6px
}

.calendar-days span {
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #34505a;
    font: 10px "DM Mono", monospace
}

.calendar-days {
    grid-template-rows: repeat(6, minmax(0, 1fr));
    height: 132px
}

.calendar-days .is-today {
    color: #fff;
    background: #3d7780;
    box-shadow: 0 3px 9px rgba(47, 103, 111, .26)
}

.calendar-days .is-empty { opacity: 0 }

.now-widget {
    background: #f5dcd2
}

.now-widget>p:not(.eyebrow) {
    font-size: 16px;
    margin: 8px 0
}

.now-widget ul {
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 12px
}

.now-widget li {
    border-top: 1px solid rgba(37, 53, 69, .17);
    padding: 6px 0
}

.todo-widget { background: #f5dcd2 }

.todo-list li::before {
    content: "□";
    margin-right: 7px;
    color: #9a6b62
}

.about {
    max-width: none;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 10vw;
    background: var(--cream);
    padding-left: max(24px, calc((100vw - 1100px)/2));
    padding-right: max(24px, calc((100vw - 1100px)/2));
    align-items: center
}

.big-number {
    font: 500 clamp(70px, 10vw, 150px)/1 "Playfair Display", serif;
    color: #c5d6d3;
    letter-spacing: -.1em
}

.about-content {
    font-size: 15px;
    max-width: 570px
}

.about h2 {
    font-size: clamp(39px, 5vw, 65px);
    margin-bottom: 35px
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0
}

.tags span {
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 3px 12px;
    font: 10px "DM Mono", monospace
}

.career {
    position: relative
}

.career-intro {
    color: var(--muted);
    max-width: 550px;
    font-size: 15px;
    margin: 25px 0 55px
}

.timeline {
    position: relative;
    margin-left: 22%;
    border-left: 1px solid #97bbb9
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 34px;
    min-height: 137px;
    padding: 0 0 42px
}

.timeline-year {
    position: absolute;
    right: calc(100% + 34px);
    top: 0;
    width: 115px;
    text-align: right;
    font: 10px "DM Mono", monospace;
    color: var(--muted)
}

.timeline-dot {
    position: absolute;
    width: 13px;
    height: 13px;
    border: 3px solid var(--paper);
    background: #609e9e;
    border-radius: 50%;
    left: -7px;
    top: 4px
}

.timeline-content {
    padding-left: 28px
}

.timeline-content h3 {
    font-size: 20px;
    letter-spacing: -.035em;
    margin: 0 0 7px
}

.timeline-content p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
    max-width: 580px
}

.works {
    max-width: none;
    background: #263b44;
    color: #eef1eb;
    padding-left: max(24px, calc((100vw - 1100px)/2));
    padding-right: max(24px, calc((100vw - 1100px)/2))
}

.works .eyebrow,
.works .section-top>p {
    color: #b5ccca
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 58px
}

.work {
    min-height: 380px;
    padding: 26px;
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform .35s
}

.work:hover {
    transform: scale(.985)
}

.work-index,
.work p {
    font: 11px "DM Mono", monospace;
    letter-spacing: .07em;
    margin: 0
}

.work h3 {
    font-size: clamp(38px, 4.3vw, 65px);
    letter-spacing: -.08em;
    line-height: .88;
    margin: 12px 0 23px
}

.work span {
    font-size: 12px
}

.work--forest {
    background: linear-gradient(130deg, #1e403d, #7eaa88)
}

.work--forest:after {
    content: "";
    position: absolute;
    width: 270px;
    height: 270px;
    border: 1px solid #d6e4bd;
    border-radius: 50%;
    right: -66px;
    top: -70px;
    box-shadow: 0 0 0 32px rgba(255, 255, 255, .08), 0 0 0 70px rgba(255, 255, 255, .05)
}

.work--shop {
    background: #e1ba9e;
    color: #393f3e
}

.work--shop:after {
    content: "+";
    position: absolute;
    right: 9%;
    top: 1%;
    font: 300 250px/1 "Playfair Display", serif;
    color: rgba(255, 255, 255, .3)
}

.work--chat {
    background: #b6d7dc;
    color: #293e49
}

.work--chat:after {
    content: "◌ ◌ ◌";
    position: absolute;
    right: -20px;
    bottom: 8px;
    font-size: 95px;
    letter-spacing: -40px;
    color: rgba(255, 255, 255, .38)
}

.work--ai {
    background: #d8d4e4;
    color: #343142
}

.work--ai:after {
    content: "AI";
    position: absolute;
    right: 5%;
    bottom: -8%;
    font: 600 150px/1 sans-serif;
    color: rgba(255, 255, 255, .3)
}

.site-footer {
    padding: 60px clamp(24px, 8vw, 125px) 30px;
    background: #19282e;
    color: #f8f7f2;
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.site-footer p {
    font-size: 20px;
    margin: 0 0 4px
}

.site-footer a {
    font: 500 clamp(21px, 3vw, 38px) "Playfair Display", serif;
    color: #d7edf0;
    text-decoration: none;
    border-bottom: 1px solid #d7edf0
}

.site-footer small {
    margin-top: 70px;
    color: #aebcc2;
    font: 10px "DM Mono", monospace
}

@keyframes drift {
    50% {
        transform: translate(-12px, -16px) rotate(14deg)
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.hero-image {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(18, 23, 21, .65), rgba(18, 23, 21, .17)), url("/api/media/tokyo-hero") center/cover no-repeat;
    animation: hero-in 1.5s ease-out both
}

@media(max-width:760px) {
    .site-header {
        height: 62px
    }

    .brand span,
    nav a:not(:first-child) {
        display: none
    }

    .hero {
        min-height: 750px
    }

    .hero:after {
        background: linear-gradient(0deg, rgba(248, 247, 242, .95) 6%, rgba(248, 247, 242, .52) 72%, rgba(248, 247, 242, .15))
    }

    .section-top {
        display: block
    }

    .section-top>p {
        width: auto;
        margin-top: 20px
    }

    .note-row {
        grid-template-columns: 74px 1fr;
        gap: 8px
    }

    .note-index { align-items: stretch; display: block }
    .note-search { max-width: none }
    .note-search-status { margin-top: 14px }

    .note-kind {
        display: none
    }

    .note-row a {
        display: block
    }

    .note-row a span {
        display: none
    }

    .note-widgets,
    .about,
    .work-grid {
        grid-template-columns: 1fr
    }

    .about {
        gap: 42px;
        align-items: start
    }

    .timeline {
        margin-left: 17px
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 18px
    }

    .timeline-year {
        position: static;
        order: 0;
        width: auto;
        text-align: left;
        font-size: 10px
    }

    .timeline-content {
        padding-left: 0
    }

    .timeline-dot {
        top: 4px
    }

    .work {
        min-height: 300px
    }

    .section-wrap {
        padding-top: 82px;
        padding-bottom: 82px
    }

}
