@media(max-width:1199px) {
    :root {
        --header-h: 92px;
        --logo-h: 38px;
        --footer-logo-h: 46px
    }

    .company-page {
        grid-template-columns: 1fr
    }

    .directors {
        padding-top: 20px
    }

    .director-grid {
        grid-template-columns: repeat(5, 1fr)
    }

    .project-feature {
        grid-template-columns: minmax(245px, .75fr) 1.6fr;
        gap: 55px
    }

    .news-row {
        grid-template-columns: 120px 120px 1fr 35px
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:767px) {
    :root {
        --header-h: 72px;
        --edge: 24px;
        --logo-h: 30px;
        --footer-logo-h: 40px
    }

    body {
        font-size: 15px;
        letter-spacing: .035em
    }

    .site-header,
    .site-header.is-scrolled {
        height: var(--header-h);
        background: rgba(253, 253, 252, .96)
    }

    .menu-toggle {
        display: block
    }

    .menu-toggle[aria-expanded=true] span:first-child {
        transform: translateY(7px) rotate(45deg)
    }

    .menu-toggle[aria-expanded=true] span:nth-child(2) {
        transform: rotate(-45deg)
    }

    .site-nav {
        position: fixed;
        inset: 0;
        background: var(--paper);
        flex-direction: column;
        justify-content: center;
        gap: 35px;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: .35s var(--ease)
    }

    .site-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: none
    }

    .site-nav a {
        font-size: 14px;
        letter-spacing: .2em
    }

    .chapter {
        min-height: auto;
        padding: 130px var(--edge) 110px
    }

    .hero {
        min-height: 100svh
    }

    .hero h1 {
        font-size: clamp(21px, 6vw, 28px);
        line-height: 1.75
    }

    .scroll-cue {
        display: none
    }

    .culture {
        padding-top: 120px;
        text-align: left
    }

    .culture-copy {
        margin: 0 0 45px
    }

    .culture h2 {
        font-size: clamp(23px, 6.5vw, 29px);
        line-height: 1.65;
        margin-bottom: 30px
    }

    .culture-copy>p:not(.culture-final) {
        font-size: 15px;
        line-height: 2
    }

    .culture-final {
        font-size: 25px;
        margin-top: 55px
    }

    .culture-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        margin: 0
    }

    .culture-gallery img {
        aspect-ratio: 1/1
    }

    .culture--4 {
        min-height: 80svh
    }

    .culture--4 .culture-copy>p:not(.culture-final) {
        font-size: 18px
    }

    .projects {
        padding-top: 125px
    }

    .projects>.section-label {
        margin-bottom: 45px
    }

    .project-feature {
        display: flex;
        flex-direction: column;
        gap: 48px;
        align-items: stretch
    }

    .project-copy h2 {
        font-size: 35px
    }

    .project-meta,
    .project-description {
        font-size: 15px
    }

    .project-description {
        margin-bottom: 35px
    }

    .project-image {
        order: 2
    }

    .news-section {
        padding: 120px var(--edge)
    }

    .news-row {
        grid-template-columns: 100px 1fr 25px;
        gap: 10px;
        padding: 21px 0;
        min-height: 0
    }

    .news-category {
        grid-column: 2
    }

    .news-title {
        grid-column: 1/3;
        font-size: 15px
    }

    .news-arrow {
        grid-row: 1/3;
        grid-column: 3;
        align-self: center
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 58px
    }

    .news-card h2 {
        min-height: 0
    }

    .site-footer {
        padding: 70px var(--edge) 25px
    }

    .footer-inner {
        display: block
    }

    .brand--footer {
        margin-bottom: 50px
    }

    .footer-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 25px
    }

    .copyright {
        text-align: left;
        margin-top: 60px;
        line-height: 1.7
    }

    .page-shell {
        padding: calc(var(--header-h) + 65px) var(--edge) 110px
    }

    /* Header is fixed, so offset by exactly its height: image sits flush below it. */
    .article-page {
        padding-top: var(--header-h)
    }

    .company-page {
        display: block
    }

    .page-heading {
        margin-bottom: 55px
    }

    .company-data>div {
        grid-template-columns: 95px 1fr;
        gap: 15px;
        padding: 17px 0
    }

    .company-data dt {
        font-size: 13px
    }

    .company-data dd {
        font-size: 15px
    }

    .directors {
        padding-top: 90px
    }

    .director-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 12px
    }

    .director h3 {
        font-size: 15px
    }

    .contact-heading {
        text-align: left
    }

    .contact-heading h1 br {
        display: none
    }

    .form-row {
        display: block;
        margin-bottom: 30px
    }

    .form-row label {
        display: block;
        padding-top: 0;
        margin-bottom: 6px
    }

    .form-row--message label {
        padding-top: 0
    }

    .privacy-consent {
        padding-left: 0;
        margin-top: 25px;
        font-size: 12px
    }

    .contact-form .submit-row {
        margin-top: 18px
    }

    .recaptcha-disclosure {
        margin-top: 10px;
        font-size: 9px
    }

    .contact-form .recaptcha-disclosure+.submit-row {
        margin-top: 35px
    }

    .thanks-page {
        min-height: calc(100svh - var(--header-h));
        text-align: left
    }

    .thanks-content .section-label {
        margin-bottom: 25px
    }

    .thanks-content h1 {
        font-size: 30px
    }

    .thanks-message {
        margin: 30px 0 35px;
        font-size: 14px
    }

    .thanks-message br {
        display: none
    }

    .thanks-content .text-link {
        justify-content: flex-start
    }

    .prose {
        font-size: 14px;
        line-height: 2
    }

    .prose h2 {
        font-size: 21px;
        margin-top: 55px
    }

    .policy-lead {
        margin-bottom: 40px
    }

    .policy-section {
        padding-top: 36px;
        margin-bottom: 40px
    }

    .policy-body .policy-section h2 {
        font-size: 19px;
        margin-bottom: 16px
    }

    .policy-num {
        margin-bottom: 10px;
        font-size: 11px
    }

    .policy-contact>div {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 15px 0;
        font-size: 14px
    }

    .policy-contact dt {
        font-size: 13px
    }

    .article-header {
        margin-bottom: 40px
    }

    .article-hero {
        width: calc(100% + 2 * var(--edge));
        margin-left: calc(-1 * var(--edge))
    }

    .article-meta {
        gap: 10px 16px;
        margin: 24px 0 17px
    }

    .article-meta .section-label {
        width: 100%;
        margin-bottom: 2px
    }

    .article-meta time {
        padding-left: 0;
        border-left: 0
    }

    .article-header h1 {
        font-size: clamp(19px, 5.4vw, 23px);
        font-weight: 500;
        line-height: 1.55
    }

    .project-archive {
        grid-template-columns: 1fr;
        gap: 55px
    }

    .project-single-image {
        margin-bottom: 65px
    }
}

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

    *,
    *:before,
    *:after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important
    }

    .reveal {
        opacity: 1;
        transform: none
    }

    .sand-character {
        opacity: 1 !important;
        filter: none !important;
        text-shadow: none !important;
        transform: none !important
    }

    .home .culture .culture-gallery,
    .home .projects .project-image {
        opacity: 1 !important;
        transform: none !important
    }
}

/* One shared mobile navigation for every template and page. */
@media (max-width: 767px) {
    .site-header .site-nav {
        position: fixed;
        z-index: 1;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        padding: var(--header-h) 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        overflow-y: auto;
        background: var(--paper);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity .38s var(--ease), transform .38s var(--ease), visibility .38s;
    }

    .site-header .site-nav.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-header .site-nav a {
        display: block;
        flex: 0 0 auto;
        padding: 8px 16px;
        font-size: 15px;
        line-height: 1.4;
        text-align: center;
        opacity: 0;
        transform: translateY(12px);
        transition: opacity .34s var(--ease), transform .34s var(--ease);
    }

    .site-header .site-nav.is-open a {
        opacity: 1;
        transform: none;
    }

    .site-header .site-nav.is-open a:nth-child(1) {
        transition-delay: .05s;
    }

    .site-header .site-nav.is-open a:nth-child(2) {
        transition-delay: .09s;
    }

    .site-header .site-nav.is-open a:nth-child(3) {
        transition-delay: .13s;
    }

    .site-header .site-nav.is-open a:nth-child(4) {
        transition-delay: .17s;
    }

    .site-header .site-nav:not(.is-open) a {
        transition-delay: 0s;
    }

    .site-header .menu-toggle {
        position: relative;
        z-index: 2;
    }

    body.nav-open .site-header .brand {
        position: relative;
        z-index: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-leaving {
        transition-duration: .01ms;
    }

    .site-header .site-nav,
    .site-header .site-nav a {
        transition-duration: .01ms;
        transition-delay: 0s;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .director-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 45px 20px;
    }

    .director-modal-layout {
        grid-template-columns: minmax(260px, .8fr) minmax(380px, 1.2fr);
        height: 100%;
        min-height: 0;
    }

    .director-modal-copy-inner {
        padding: 72px 55px 64px;
    }

    .director-modal-position {
        margin-top: 44px;
    }
}

@media (max-width: 767px) {
    .director-name {
        font-size: 15px;
    }

    .director-modal {
        align-items: flex-start;
        padding: 0;
        background: var(--paper)
    }

    .director-modal-panel {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch
    }

    .director-modal-close {
        position: fixed;
        top: max(16px, env(safe-area-inset-top));
        right: 16px;
        width: 46px;
        height: 46px;
        background: rgba(253, 253, 252, .94);
        box-shadow: 0 0 0 1px rgba(16, 16, 16, .08)
    }

    .director-modal-layout {
        display: block;
        height: auto
    }

    .director-modal-visual {
        width: 100%;
        height: min(60dvh, 520px)
    }

    .director-modal-visual img,
    .director-modal-visual .portrait-placeholder {
        height: 100%;
        object-position: center 10%
    }

    .director-modal-copy {
        overflow: visible
    }

    .director-modal-copy-inner {
        min-height: auto;
        padding: 34px 24px calc(56px + env(safe-area-inset-bottom))
    }

    .director-modal-copy .section-label {
        margin: 0 0 28px
    }

    .director-modal-position {
        margin: 0 0 4px;
        font-size: 12px
    }

    .director-modal-copy h2 {
        font-size: 34px;
        line-height: 1.35
    }

    .director-modal-name-en {
        margin-top: 5px;
        font-size: 10px
    }

    .director-modal-rule {
        width: 38px;
        margin: 28px 0
    }

    .director-modal-description {
        font-size: 14px;
        line-height: 2;
        overflow-wrap: anywhere
    }
}

/* Front page: tighter vertical rhythm between sections on tablet and smartphone. */
@media (max-width: 1199px) {
    .home .chapter {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .home .hero.chapter {
        padding-top: calc(var(--header-h) + 40px);
    }

    .home .culture-copy {
        margin: 0 auto;
    }

    .home .culture-gallery {
        margin: 56px 0 0;
    }

    .home .culture--4 {
        min-height: 0;
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .home .culture--4 .culture-copy {
        margin: 0 auto;
    }

    .home .projects>.section-label {
        margin-bottom: 45px;
    }

    .home .news-section {
        padding: 80px var(--edge) 110px;
    }

    .home #projects,
    .home #news {
        scroll-margin-top: var(--header-h);
    }
}

@media (max-width: 767px) {
    .home .chapter {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .home .hero.chapter {
        padding-top: calc(var(--header-h) + 32px);
    }

    .home .culture-copy {
        margin: 0 0 36px;
    }

    .home .culture-gallery {
        margin: 0;
    }

    .home .culture--4 {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .home .culture--4 .culture-copy {
        margin: 0;
    }

    .home .culture-final {
        margin-top: 40px;
    }

    .home .projects>.section-label {
        margin-bottom: 36px;
    }

    .home .project-feature {
        gap: 36px;
    }

    .home .news-section {
        padding: 60px var(--edge) 90px;
    }
}
