@font-face {
    font-family: Inter;
    src: url("assets/fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy: #031337;
    --cyan: #00dce6;
    --teal: #007d86;
    --white: #fff;
    --edge: clamp(1.25rem, 4.45vw, 4.5rem);
    --accent: var(--teal);
    font: 100%/1.5 Inter, Arial, sans-serif;
    font-optical-sizing: auto;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--navy); }
h1, h2, p, figure { margin: 0; }
h1, h2 { font-weight: 500; overflow-wrap: anywhere; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }

.skip-link {
    position: absolute;
    z-index: 2;
    inset: 8px auto auto 8px;
    transform: translateY(-180%);
    padding: 8px;
    color: var(--white);
    background: var(--navy);
}
.skip-link:focus { transform: none; }

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 20px;
    width: 100%;
    max-width: 1620px;
    margin-inline: auto;
    padding: clamp(1.25rem, 2.7vw, 2.75rem) var(--edge);
    padding-left: max(var(--edge), env(safe-area-inset-left));
    padding-right: max(var(--edge), env(safe-area-inset-right));
}
.wordmark { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.wordmark img { display: block; width: clamp(160px, 18vw, 208px); height: auto; }
nav { display: flex; align-items: center; gap: clamp(20px, 2.7vw, 44px); }
nav a, summary { min-height: 44px; padding-block: 12px; font-size: .9375rem; line-height: 1.35; }
nav a { text-decoration: none; }
nav a:hover, nav a:focus-visible, nav a[aria-current="page"], summary:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.compact-nav { display: none; }

.home {
    --accent: var(--cyan);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    color: var(--white);
    background: var(--navy);
}
.home main {
    display: grid;
    flex: 1;
    place-items: center;
    padding: 36px var(--edge) max(72px, 10svh);
    text-align: center;
}
.signature { display: flex; flex-direction: column; align-items: center; width: 100%; container-type: inline-size; }
.motion-group { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); width: 100%; }
.motion-group .motion-frame { grid-column: 2; }
.replay-slot { align-self: end; justify-self: start; margin-left: 4px; }
.replay-slot:focus-within { z-index: 1; }
.replay {
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: var(--white);
    font: 400 .8125rem/1.3 Inter, Arial, sans-serif;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.replay:hover, .replay:focus-visible { text-decoration-thickness: 2px; }
@container (max-width: 15rem) {
    .replay-slot { grid-column: 2; justify-self: center; min-height: 44px; margin: 0; }
}
.motion-frame { position: relative; width: clamp(144px, 15.55vw, 224px); aspect-ratio: 1; }
.motion-frame img, .motion-frame video { display: block; width: 100%; height: 100%; }
.motion-frame video, .origin-frame { position: absolute; inset: 0; }
.motion-frame .origin-frame { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
    .motion-entry .end-frame { visibility: hidden; }
    .motion-entry .origin-frame { visibility: visible; }
}
@media (prefers-reduced-motion: reduce) {
    .motion-frame video, .replay-slot { display: none; }
}
.signature h1 {
    margin-top: 22px;
    font-size: clamp(1.75rem, 3.05vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -.037em;
    text-wrap: balance;
}
.discover {
    display: inline-block;
    margin-top: 19px;
    min-height: 44px;
    padding: 8px 3px;
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.55;
    text-wrap: balance;
}
.nowrap { white-space: nowrap; }
.discover:hover, .discover:focus-visible, .bodylink:hover, .bodylink:focus-visible { text-decoration-thickness: 2px; }

.studio main, .work main { max-width: 1280px; margin: auto; padding: clamp(44px, 8vw, 120px) var(--edge) 88px; }
.spread {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}
.spread + .spread { border-top: 1px solid var(--navy); margin-top: clamp(64px, 8vw, 112px); padding-top: 48px; }
.spread h1 { font-size: clamp(2.375rem, 4.45vw, 4rem); line-height: 1.06; letter-spacing: -.045em; }
.spread h2 { font-size: clamp(1.875rem, 3.25vw, 2.75rem); line-height: 1.13; letter-spacing: -.04em; }
.lede { font-size: clamp(1.375rem, 2.3vw, 2rem); line-height: 1.3; letter-spacing: -.026em; }
.spread p:not(.lede) { max-width: 61ch; font-size: clamp(1rem, 1.33vw, 1.125rem); line-height: 1.6; }
.bodylink { display: inline-block; margin-top: 20px; min-height: 44px; padding-block: 8px; color: var(--teal); text-underline-offset: 4px; }
.wordmark-field { display: grid; place-items: center; min-height: clamp(180px, 17vw, 250px); margin-top: 32px; background: var(--navy); }
.wordmark-field img { width: clamp(192px, 22vw, 320px); max-width: 85%; height: auto; }
.specimens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: clamp(28px, 4vw, 64px) clamp(48px, 7vw, 96px); }
.specimens > div { display: grid; place-items: center; min-height: clamp(140px, 23vw, 320px); }
.specimens > div:first-child { background: var(--navy); }
.specimens > div:last-child { outline: 1px solid var(--teal); outline-offset: -1px; }
.specimens img { width: clamp(90px, 14vw, 195px); max-width: 85%; height: auto; }
.tab-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    padding: 8px 18px 8px 10px;
    margin-top: 24px;
    border: 1px solid var(--navy);
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    font-size: .875rem;
}

@media (max-width: 45rem) {
    .masthead { align-items: flex-start; gap: 8px; flex-wrap: wrap; }
    .wordmark img { width: 168px; }
    .wide-nav { display: none; }
    .compact-nav { display: block; text-align: right; }
    .compact-nav summary { width: fit-content; margin-left: auto; padding-inline: 4px; cursor: pointer; }
    .compact-nav nav { flex-direction: column; align-items: end; gap: 0; }
    .motion-frame { width: clamp(128px, 38vw, 172px); }
    .signature h1 { margin-top: 27px; }
    .discover { margin-top: 15px; max-width: 31ch; }
    .home main { padding-bottom: max(60px, 10svh); }
    .spread { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .spread + .spread { padding-top: 30px; }
}

@media (max-height: 520px) {
    .home main { padding-block: 20px 32px; }
    .motion-frame { width: 112px; }
    .signature h1 { margin-top: 12px; }
    .discover { margin-top: 8px; }
}

/* Match the visible ink heights of the portrait R2 and square K1 masters. */
.specimens > div:first-child img { width: clamp(58px, 8.54vw, 119px); }
.specimens > div:last-child img { width: clamp(96px, 14vw, 195px); }
