@font-face {
    font-family:Atkinson;
    src:url('/assets/fonts/atkinson-400.woff2') format('woff2');
    font-weight:400;
    font-display:swap;
}

@font-face {
    font-family:Atkinson;
    src:url('/assets/fonts/atkinson-700.woff2') format('woff2');
    font-weight:700;
    font-display:swap;
}

:root {
    --paper:#fbfaff;
    --white:#fff;
    --ink:#2e2a3a;
    --muted:#5e586e;
    --violet:#6246ad;
    --rose:#f4e6e8;
    --line:#d8d1e5;
    --soft:#f0eafa;
}

* {
    box-sizing:border-box;
}

body,h1,h2,h3,p,figure {
    margin:0;
}

html {
    scroll-behavior:smooth;
    scroll-padding-top:32px;
}

body {
    font-family:Atkinson,system-ui,sans-serif;
    font-size:1.125rem;
    line-height:1.6;
    background:var(--paper);
    color:var(--ink);
}

h1,h2,h3 {
    line-height:1.1;
    letter-spacing:-.025em;
}

h1 {
    font-size:clamp(3rem,6.2vw,5.1rem);
    max-width:13ch;
}

h2 {
    font-size:clamp(2rem,4vw,3.1rem);
    max-width:24ch;
}

h3 {
    font-size:1.55rem;
}

p {
    max-width:66ch;
}

p+p {
    margin-top:1rem;
}

a {
    color:var(--violet);
    text-underline-offset:.22em;
    text-decoration-thickness:1.5px;
}

a:hover {
    text-decoration-thickness:2.5px;
}

button,a {
    -webkit-tap-highlight-color:transparent;
}

button {
    font:inherit;
}

a,button {
    touch-action:manipulation;
}

a:focus-visible,button:focus-visible,summary:focus-visible {
    outline:3px solid currentColor;
    outline-offset:5px;
}

img {
    display:block;
    max-width:100%;
    height:auto;
}

[hidden] {
    display:none!important;
}

.wrap {
    max-width:1160px;
    margin:auto;
    padding-inline:28px;
}

.section {
    padding-block:90px;
}

.section-head {
    margin-bottom:42px;
    max-width:750px;
}

.section-head p {
    margin-top:20px;
    color:var(--muted);
    font-size:1.25rem;
}

.skip {
    position:absolute;
    z-index:100;
    top:8px;
    left:12px;
    background:white;
    padding:12px;
    transform:translateY(-160%);
}

.skip:focus {
    transform:none;
}

.masthead {
    background:var(--white);
}

.header-row {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    min-height:88px;
}

.brand {
    font-size:1.6rem;
    font-weight:700;
    color:var(--ink);
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:10px;
}

.brand-mark {
    width:14px;
    height:14px;
    background:var(--violet);
    border-radius:4px 4px 4px 0;
}

nav {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:4px;
}

nav a {
    padding:10px 14px;
    font-weight:700;
    text-decoration:none;
    color:var(--ink);
}

nav a:hover {
    background:var(--soft);
    border-radius:6px;
}

nav .nav-contact {
    color:var(--violet);
}

.hero {
    background:linear-gradient(115deg,#6547ad,#98506a);
    color:white;
    padding-block:70px 78px;
}

.hero-grid {
    display:grid;
    grid-template-columns:1.45fr 1fr;
    gap:60px;
    align-items:center;
}

.intro {
    font-weight:700;
    margin-bottom:22px;
}

.lede {
    font-size:1.42rem;
    line-height:1.5;
    margin-top:26px;
    max-width:43ch;
}

.hero-detail {
    margin-top:18px;
    max-width:46ch;
}

.actions {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:16px 24px;
    margin-top:30px;
}

.button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:13px 21px;
    min-height:48px;
    font-weight:700;
    text-decoration:none;
    border-radius:7px;
    line-height:1.35;
}

.button:hover {
    text-decoration:underline;
}

.button.light {
    background:white;
    color:var(--violet);
}

.button.primary {
    background:var(--violet);
    color:white;
}

.button.secondary {
    box-shadow:inset 0 0 0 1.5px var(--violet);
    color:var(--violet);
}

.text-link {
    color:inherit;
    display:inline-block;
    padding-block:10px;
}

.portrait {
    background:var(--white);
    color:var(--ink);
    border-radius:100px 12px 12px 12px;
    overflow:hidden;
    max-width:395px;
    margin-left:auto;
    transform:rotate(2deg);
}

.portrait img {
    width:100%;
    aspect-ratio:1/1.1;
    object-fit:cover;
}

.portrait figcaption {
    padding:22px 25px;
    font-size:1rem;
}

.portrait figcaption strong {
    display:block;
    font-size:1.35rem;
    margin-bottom:4px;
}

.portrait figcaption span {
    display:block;
    line-height:1.4;
}

.services {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:42px 64px;
}

.services article {
    border-top:2px solid var(--line);
    padding-top:24px;
    scroll-margin-top:30px;
}

.services h3 {
    margin-bottom:16px;
}

.services p {
    color:var(--muted);
}

.services a {
    display:inline-block;
    margin-top:15px;
    font-weight:700;
}

.split {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
}

.split h2 {
    margin-bottom:24px;
}

.split p {
    color:var(--muted);
}

.split .lead {
    font-size:1.3rem;
    color:var(--ink);
    margin-bottom:18px;
}

.measurement {
    background:var(--soft);
}

.measurement .button {
    margin-top:28px;
}

.steps {
    margin:0;
    padding:0;
    list-style:none;
    counter-reset:step;
}

.steps li {
    counter-increment:step;
    position:relative;
    padding-left:52px;
    margin-bottom:26px;
}

.steps li:last-child {
    margin-bottom:0;
}

.steps li::before {
    content:counter(step);
    position:absolute;
    left:0;
    top:-2px;
    font-size:1.35rem;
    font-weight:700;
    border:1px solid var(--violet);
    border-radius:50%;
    height:34px;
    width:34px;
    text-align:center;
    line-height:32px;
    color:var(--violet);
}

.steps h3 {
    font-size:1.25rem;
    margin-bottom:7px;
}

.community {
    background:var(--white);
}

.community h2 {
    max-width:18ch;
}

.tags {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    list-style:none;
    padding:0;
    margin:25px 0 0;
}

.tags li {
    font-size:1rem;
    background:var(--soft);
    padding:6px 12px;
    border-radius:4px;
    color:var(--violet);
}

.work {
    border-top:1px solid var(--line);
}

.project {
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    background:var(--white);
    margin-bottom:30px;
    border:1px solid var(--line);
    border-radius:12px;
    overflow:hidden;
}

.project-copy {
    padding:38px;
}

.project h3,.small-project h3,.fringe-project h3 {
    font-size:2rem;
    margin:6px 0 18px;
}

#work-outline .project-copy > .button,
#work-fastfive .project-copy > .button {
    margin-top:24px;
}

.project-kind {
    color:var(--violet);
    font-size:1rem;
    font-weight:700;
}

.project-copy>p:not(.project-kind) {
    color:var(--muted);
}

.project-copy ul {
    padding-left:22px;
    color:var(--muted);
    margin:18px 0 24px;
}

.project-copy li+li {
    margin-top:8px;
}

.project-image {
    background:#eee8f7;
    padding:32px;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
}

.project-image img {
    border-radius:5px;
    box-shadow:0 8px 24px #2e2a3a18;
}

.portrait-shot {
    max-height:515px;
    overflow:hidden;
    padding:28px 50px;
    background:#dfecf6;
}

.portrait-shot img {
    max-height:460px;
    width:auto;
}

.reverse .project-image {
    order:2;
}

.project-pair {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}

.small-project {
    background:white;
    border:1px solid var(--line);
    border-radius:12px;
    overflow:hidden;
}

.small-project>img {
    aspect-ratio:1200/807;
    width:100%;
    object-fit:cover;
}

.small-project>div {
    padding:28px 32px 32px;
}

.small-project p:not(.project-kind),.fringe-project p:not(.project-kind) {
    color:var(--muted);
}

.small-project a,.fringe-project .project-links a {
    display:inline-block;
    font-weight:700;
    margin-top:20px;
}

.fringe-project {
    margin-top:38px;
    margin-bottom:30px;
    border:1px solid var(--line);
    border-radius:12px;
    overflow:hidden;
    background:white;
}

.fringe-project .project-copy {
    max-width:850px;
}

.fringe-gallery {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:28px;
    padding:32px;
    background:#eee8f7;
}

.fringe-gallery figure {
    margin:0;
    min-width:0;
}

.fringe-gallery img {
    width:100%;
    height:auto;
    border-radius:18px;
    box-shadow:0 8px 24px #2e2a3a18;
}

.fringe-gallery figcaption {
    margin-top:16px;
    font-weight:700;
    font-size:1rem;
}

.project-links {
    display:flex;
    flex-wrap:wrap;
    gap:0 24px;
}

.approach {
    background:var(--rose);
}

.approach-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:40px;
}

.approach-grid h3 {
    margin-bottom:16px;
    font-size:1.4rem;
}

.approach-grid p {
    color:var(--muted);
}

.about {
    background:var(--white);
}

.contact {
    background:var(--soft);
}

.contact h2 {
    max-width:23ch;
}

.contact>div>p {
    margin-top:24px;
    font-size:1.25rem;
}

.copy-button {
    border:0;
    background:none;
    color:var(--violet);
    cursor:pointer;
    text-decoration:underline;
    text-underline-offset:.2em;
    padding:12px 0;
    min-height:48px;
}

.contact .copy-status {
    font-size:1rem;
    margin-top:16px;
    min-height:1.6em;
}

.footer-row {
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:15px;
    padding-block:28px;
    font-size:1rem;
}

footer {
    background:var(--white);
}

@media(max-width:900px) {
    .hero-grid {
        gap:32px;
        grid-template-columns:1.4fr 1fr;
    }
    .hero {
        padding-block:50px;
    }
    .split {
        gap:38px;
    }
    .project-copy {
        padding:28px;
    }
    .services {
        gap:36px;
    }
    .approach-grid {
        gap:24px;
    }
    .portrait figcaption {
        padding:18px;
    }
}

@media(max-width:700px) {
    .wrap {
        padding-inline:22px;
    }
    .header-row {
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
        padding-block:14px;
    }
    .brand {
        font-size:1.4rem;
    }
    nav {
        width:100%;
        justify-content:space-between;
        gap:0;
    }
    nav a {
        font-size:1rem;
        padding:8px 5px;
        min-height:44px;
    }
    .hero-grid,.split,.services,.project,.project-pair,.approach-grid {
        grid-template-columns:1fr;
    }
    .hero-grid {
        gap:36px;
    }
    .hero h1 {
        max-width:13ch;
    }
    .hero .lede {
        font-size:1.25rem;
    }
    .portrait {
        max-width:400px;
        width:100%;
        margin:0;
        transform:none;
        border-radius:60px 10px 10px 10px;
        display:grid;
        grid-template-columns:1fr 1fr;
        align-items:center;
    }
    .portrait img {
        aspect-ratio:1/1.15;
    }
    .portrait figcaption {
        padding:18px;
        font-size:1rem;
    }
    .portrait figcaption strong {
        font-size:1.25rem;
    }
    .section {
        padding-block:58px;
    }
    .section-head {
        margin-bottom:30px;
    }
    .section-head p {
        font-size:1.15rem;
    }
    .split {
        gap:30px;
    }
    .split h2 {
        margin-bottom:20px;
    }
    .community h2 {
        max-width:22ch;
    }
    .project-copy {
        padding:26px;
    }
    .project-image {
        padding:22px;
    }
    .portrait-shot {
        max-height:415px;
    }
    .portrait-shot img {
        max-height:370px;
    }
    .reverse .project-image {
        order:0;
    }
    .fringe-gallery {
        grid-template-columns:1fr;
        padding:26px;
        gap:32px;
    }
    .fringe-gallery figure {
        width:100%;
        max-width:320px;
        margin-inline:auto;
    }
    .approach-grid {
        gap:28px;
    }
    .contact>div>p {
        font-size:1.15rem;
    }
    .actions {
        gap:14px;
    }
    .button {
        max-width:100%;
        overflow-wrap:anywhere;
    }
    .footer-row {
        font-size:1rem;
    }
}

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

@media print {
    .masthead,.skip,.copy-button,.copy-status,footer {
        display:none;
    }
    .hero {
        background:white;
        color:black;
    }
    .hero a {
        color:black;
    }
    .section {
        padding-block:25px;
    }
    .project,.small-project {
        break-inside:avoid;
    }
    .portrait {
        transform:none;
    }
    a {
        color:black;
    }
}

.demo {
    margin-top:20px;
}

.demo summary {
    cursor:pointer;
    padding:12px 0;
    color:var(--violet);
    font-weight:700;
    min-height:48px;
}

.demo video {
    display:block;
    width:100%;
    height:auto;
    margin:12px 0;
    border-radius:6px;
    background:#1b2017;
}

.demo p {
    font-size:1rem;
}

.demo[open] {
    padding-bottom:10px;
}

.demo-tig video {
    max-height:460px;
    object-fit:contain;
}
