:root {
    --ink: #000000;
    --ink-soft: #4a4a4a;
    --ink-faint: rgba(0, 0, 0, 0.45);
    --paper: #F3F3EF;
    --blue: #0000FF;
    --blue-soft: rgba(0, 0, 255, 0.55);
    --line: rgba(0, 0, 0, 0.16);

    --frame-offset: 15px;
    --frame-gap: var(--frame-offset);
    --frame-border: 5px;

    --safe-top: env(safe-area-inset-top);
    --safe-right: env(safe-area-inset-right);
    --safe-bottom: env(safe-area-inset-bottom);
    --safe-left: env(safe-area-inset-left);

    --content-w: 720px;
    --media-w: 1100px;
    --radius: 16px;

    --motion-chip: rgba(255, 255, 255, 0.82);
    --motion-chip-hover: rgba(255, 255, 255, 0.96);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Inter', 'Space Grotesk', system-ui, sans-serif;
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.62;
    font-size: 17px;
}

.blue-frame {
    min-height: 100vh;
    border: var(--frame-border) solid var(--blue-pure);
    margin: calc(var(--frame-offset) + var(--safe-top))
            calc(var(--frame-offset) + var(--safe-right))
            calc(var(--frame-offset) + var(--safe-bottom))
            calc(var(--frame-offset) + var(--safe-left));
    padding: 0 20px 40px;
}

.work-wrap {
    max-width: var(--media-w);
    margin: 0 auto;
    padding-top: 90px;
}

.work-wrap > .work-head,
.work-wrap > .work-facts,
.work-wrap > .work-foot,
.work-wrap > .work-next,
.work-section > p,
.work-section > h2,
.work-section > ul,
.work-section > .work-team,
.work-section > .work-thanks {
    max-width: var(--content-w);
    margin-left: auto;
    margin-right: auto;
}

.work-head { margin-bottom: 30px; }

.work-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--ink-faint);
    margin: 0 0 12px;
}

.work-title {
    font-size: clamp(1.7rem, 4.2vw, 2.6rem);
    line-height: 1.16;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
    text-wrap: balance;
}

.work-lead {
    font-size: 1.12rem;
    color: var(--ink-soft);
    margin: 0;
}

.work-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px 26px;
    padding: 20px 0 24px;
    margin-bottom: 12px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.work-facts dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ink-faint);
    margin-bottom: 4px;
}
.work-facts dd { margin: 0; font-size: 15px; line-height: 1.4; }

.work-team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px 26px;
    margin: 22px 0 0;
    padding: 0;
}
.work-team div { display: flex; flex-direction: column; }
.work-team dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ink-faint);
    margin-bottom: 2px;
}
.work-team dd { margin: 0; font-size: 15px; }

.work-thanks {
    margin: 20px 0 0;
    padding: 14px 18px;
    border-left: 3px solid var(--blue);
    color: var(--ink-soft);
    font-size: 15px;
}

.work-next {
    display: block;
    margin: 34px 0 0;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ink);
    transition: border-color .2s ease;
}
.work-next:hover { border-color: var(--blue-soft); }
.work-next span {
    display: block;
    font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
    color: var(--ink-faint);
    margin-bottom: 6px;
}
.work-next b { font-weight: 600; font-size: 16px; }
.work-next em { display: block; font-style: normal; color: var(--ink-soft); font-size: 14px; margin-top: 4px; }

.work-section { margin: 52px 0 0; }

.work-section h2 {
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 14px;
    text-wrap: balance;
}

.work-section p { margin: 0 0 1.1em; }
.work-section ul { padding-left: 1.25em; margin: 0 0 1.2em; }
.work-section li { margin-bottom: .35em; }

.work-section a { color: var(--blue); text-decoration: none; border-bottom: 1px solid var(--blue-soft); }
.work-section a:hover { border-bottom-width: 2px; }

.gallery {
    display: grid;
    gap: 22px 26px;
    margin: 26px 0 0;
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.gallery.one-col { grid-template-columns: 1fr; }
.gallery.two-col { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

.shot { margin: 0; }

.shot img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.shot figcaption {
    margin-top: 9px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ink-soft);
}

.shot-hero img { border-radius: var(--radius); }

.motion-stage {
    position: relative;
    display: block;
    width: 100%;
    max-width: var(--motion-w, 100%);
    margin: 0 auto;
}
.motion-stage img { width: 100%; }

.motion-btn {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--motion-chip);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--ink);
    cursor: pointer;
    opacity: 0;
    transition: opacity .18s ease, border-color .2s ease, background-color .2s ease;
}

.motion-stage:hover .motion-btn,
.motion-btn:focus-visible,
.has-motion.is-loading .motion-btn { opacity: 1; }

.motion-btn:hover { border-color: var(--blue-soft); background: var(--motion-chip-hover); }
.motion-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (hover: none) {
    .motion-btn { opacity: .72; }
}

.motion-btn::before {
    content: '';
    width: 9px;
    height: 11px;
    margin-left: 2px;
    background: var(--blue);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.has-motion.is-playing .motion-btn::before {
    clip-path: none;
    width: 10px;
    height: 10px;
    margin-left: 0;
    border-radius: 1px;
}
.has-motion.is-loading .motion-btn { cursor: progress; }

@media (prefers-reduced-motion: reduce) {
    .motion-btn { transition: none; }
}

.work-foot {
    margin-top: 56px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink-soft);
}
.work-foot a { color: var(--blue); text-decoration: none; border-bottom: 1px solid var(--blue-soft); }
.work-foot p { margin: 0 0 10px; }

.bottom-info {
    --footer-gap: 56px;
    max-width: var(--media-w);
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .blue-frame { padding: 0 14px 28px; }
    .work-wrap { padding-top: 78px; }
    .gallery { gap: 18px; grid-template-columns: 1fr; }
    .gallery.two-col { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
