:root {

    --background: #f8f6f2;
    --text: #111111;
    --accent: rgb(167, 55, 63);
    --border: rgba(0, 0, 0, .08);

    --header-height: 88px;

    /* Typography */

    --font-size-body: 18px;
    --font-size-small: 14px;
    --font-size-meta: 13px;

    --font-size-h1: 96px;
    --font-size-h2: 48px;
    --font-size-h3: 48px;

    --font-size-h1-tablet: 80px;
    --font-size-h1-mobile: 64px;
    --font-size-h1-small: 48px;

    --font-size-h2-mobile: 36px;
    --font-size-h3-mobile: 32px;

    /* Spacing */

    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-xxl: 128px;

    --font-serif: "Newsreader", serif;
    --font-sans: "Inter", sans-serif;
}

/* ------------------------------------
   Reset
------------------------------------ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

    background: var(--background);

    color: var(--text);

    font-family: var(--font-sans);

		font-size:var(--font-size-body);
		
    text-rendering: optimizeLegibility;

    -webkit-font-smoothing: antialiased;
}

img {

    display: block;

    width: 100%;

    height: auto;
}

figure {
    margin: 0;
}

/* ------------------------------------
   Accessibility
------------------------------------ */

.skip-link {

    position: absolute;

    left: -9999px;
}

.skip-link:focus {

    left: 1rem;

    top: 1rem;

    background: white;

    color: black;

    padding: .75rem 1rem;

    z-index: 9999;

    border: 2px solid var(--accent);
}

a:focus-visible {

    outline: 2px solid var(--accent);

    outline-offset: 4px;
}

.visually-hidden {

    position: absolute;

    width: 1px;

    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(0,0,0,0);

    white-space: nowrap;

    border: 0;
}

/* ------------------------------------
   Typography
------------------------------------ */

h1,
h2,
h3,
h4,
h5,
h6 {

    font-family: var(--font-serif);

    font-weight: 700;

    line-height: .95;

    letter-spacing: -.03em;

    margin-top: 0;
}

p {

    margin-top: 0;

    line-height: 1.7;

    max-width: 70ch;
}

a {

    color: inherit;

    text-decoration-color: var(--accent);

    text-underline-offset: 3px;
}

/* ------------------------------------
   Header
------------------------------------ */

.site-header {

   position: sticky;
    top: 0;

    z-index: 1000;

    background: rgba(248,246,242,.72);

    backdrop-filter:
        blur(14px)
        saturate(140%);

    -webkit-backdrop-filter:
        blur(14px)
        saturate(140%);

    border-bottom:
        1px solid rgba(0,0,0,.05);
}

.main-nav {

    min-height: var(--header-height);

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.site-title {

    text-decoration: none;

    color: inherit;

    text-transform: uppercase;

    letter-spacing: 0.04em;
    font-weight: 700;
    font-size: 16px;
}

.nav-list {

    list-style: none;

    display: flex;

    gap: 32px;

    margin: 0;

    padding: 0;
}

.nav-list a {

    text-decoration: none;

    font-size: 16px;
}

/* ------------------------------------
   Hero
------------------------------------ */

.hero {

    min-height: calc(100vh - var(--header-height));

    display: flex;

    align-items: center;

    padding: var(--space-xl) 0 var(--space-xxl);
}

.hero-content {

    max-width: 900px;
}

.hero-eyebrow {

    color: var(--accent);

    text-transform: uppercase;

    letter-spacing: .08em;

    font-size: var(--font-size-small);

    margin-bottom: var(--space-md);
}

.hero h1 {

    font-size: var(--font-size-h1);

    line-height: .92;

    letter-spacing: -.05em;

    margin-bottom: 0;
}

.hero-rule {

    width: var(--space-xl);

    height: 3px;

    background: var(--accent);

    margin: var(--space-lg) 0;
}

.hero-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    text-transform: uppercase;

    font-size: .8rem;

    letter-spacing: .05em;
}

.hero-scroll {

    display: inline-block;

    margin-top: var(--space-xl);

    font-size: 2rem;

    text-decoration: none;

    color: var(--accent);
}

/* ==========================================
   Hero Graphic
========================================== */

.hero-graphic {

    position: relative;

    width: 100%;

    height: 650px;

    display: flex;

    align-items: center;

    justify-content: center;
}

.hero-diagram {

    width: 100%;
    height: 100%;

    overflow: visible;

    background-image:
        linear-gradient(
            rgba(167,55,63,.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(167,55,63,.08) 1px,
            transparent 1px
        );

    background-size: 80px 80px;
}

/* ==========================================
   Entry Nodes
========================================== */

.entry-node {

    fill: transparent;

    stroke: var(--accent);

    stroke-width: 1.5;

    opacity: .45;
}

/* ==========================================
   Secondary Paths
========================================== */

.path-secondary {

    fill: none;

    stroke: var(--accent);

    stroke-width: 1.5;

    opacity: .22;

    stroke-linecap: round;

    stroke-linejoin: round;
}

/* ==========================================
   Primary Path
========================================== */

.path-primary {

    fill: none;

    stroke: var(--accent);

    stroke-width: 4;

    stroke-linecap: round;

    stroke-linejoin: round;

    stroke-dasharray: 1200;

    stroke-dashoffset: 1200;

    animation:
        drawPath 2.5s ease forwards;
}

/* ==========================================
   Destination Dot
========================================== */

.destination-dot {

    fill: var(--accent);

    opacity: 1;
}

/* ==========================================
   Destination Ring
========================================== */

.destination-ring {

    fill: none;

    stroke: rgba(167,55,63,.28);

    stroke-width: 1.5;

    opacity: 1;
}

/* ==========================================
   Destination Halo
========================================== */

.destination-halo {

    fill: rgba(167,55,63,.08);

    opacity: 1;
}

/* ==========================================
   Destination Pulse
========================================== */

.destination-pulse {

    fill: rgba(167,55,63,.10);

    opacity: .12;

    animation:
        pulseOpacity 4s ease-in-out infinite;
}

/* ==========================================
   Animations
========================================== */

@keyframes drawPath {

    to {

        stroke-dashoffset: 0;
    }
}

@keyframes pulseOpacity {

    0% {

        opacity: .18;
    }

    50% {

        opacity: .05;
    }

    100% {

        opacity: .18;
    }
}

/* ==========================================
   Reduced Motion
========================================== */

@media (prefers-reduced-motion: reduce) {

    .path-primary {

        animation: none;

        stroke-dashoffset: 0;
    }

    .destination-pulse {

        animation: none;

        opacity: .12;
    }
}

/* ------------------------------------
   Sections
------------------------------------ */

.content-section {

    padding: var(--header-height) 0;
}

.section-header {

    margin-bottom: var(--header-height);
}
.section-header {
    position: relative;

    padding-bottom: 40px;

    margin-bottom: 88px;
}

.section-header::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 1px;

    background: var(--border);
}

.section-header::before {
    content: "";

    position: absolute;

    left: 0;
    bottom: -1px;

    width: 84px;

    height: 4px;

    background: var(--accent);

    z-index: 1;
}

.section-header h2 {

    font-size: var(--font-size-h2);
}

/* ------------------------------------
   Selected Work
------------------------------------ */

.project-list {

    list-style: none;

    margin: 0;

    padding: 0;
}

.project {

    padding: var(--space-xl) 0;

}

.project-number, .section-number {

    display: inline-block;

    color: var(--accent);

    font-size: 20px;

    font-weight: 700;
}

.project h3 {

    font-size: var(--font-size-h3);

    margin-bottom: var(--space-sm);
}

.project-content p {

    font-size: var(--font-size-body);

    margin-bottom: var(--space-md);
}

.project-content a {


    color: var(--accent);

    font-weight: 500;
}

/* ========================================
   Project Images
======================================== */

.project-image {
    position: relative;
    overflow: hidden;

    margin: 0;

    background: var(--background);

    border-radius: 4px;
}

.project-image img {
    display: block;

    width: 100%;
    height: auto;

    filter:
        grayscale(35%)
        saturate(0.75)
        contrast(0.95)
        brightness(1.02);

    transition:
        filter 0.35s ease;
}

/* ========================================
   Editorial Colour Wash
======================================== */

.project-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(174, 54, 61, 0.06);

    mix-blend-mode: multiply;

    pointer-events: none;
}

/* ------------------------------------
   About / Now / Contact
------------------------------------ */

.content-section h2 {

    font-size: 3rem;

    margin-bottom: 2rem;
}

address {

    font-style: normal;
}
.about-skills dt {
    position: relative;
		font-weight: 600;
    padding-left: var(--space-sm);
}

.about-skills dt::before {
    content: "";

    position: absolute;

    left: 0;
    top: .45em;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--accent);
}

.about-skills dd{
	font-size: 16px;
    line-height: 1.6;
	padding-left: var(--space-sm);
}

/* ------------------------------------
   Case study pages
------------------------------------ */
.case-study-hero{
	padding-top:var(--space-xl);
}
.case-study h3 {

    font-size: 28px;

    line-height: 1.2;

    margin-top: 48px;

    margin-bottom: 16px;

    letter-spacing: -0.02em;
}
.case-study p {

    max-width: 85ch;
}
.case-study-summary{
	margin-bottom:var( --space-lg);
}
.project-figure {
    margin: 0;
}
.project-figure img{
	max-width:100%;
	margin:0 auto;
}

.project-figure figcaption {

    margin: 16px auto 0 auto;

    font-size: var(--font-size-small);

    color: rgba(0,0,0,.65);

    line-height: 1.6;
		max-width:1320px;
}
.chapter-intro .row{
    --bs-gutter-x:2rem;
}
.chapter-intro img{
	width:100%;
	display:block;
}
/* ------------------------------------
   Footer
------------------------------------ */

.site-footer {

    background: var(--accent);

    color: white;

    padding: 6rem 0;
}

.site-footer h2,
.site-footer h3 {

    color: white;
}

.site-footer ul {

    margin: 0;

    padding-left: 1rem;
}

.site-footer a {

    color: white;
}

.site-footer p {

    max-width: 55ch;
}

/* ------------------------------------
   Reduced Motion
------------------------------------ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ------------------------------------
   Tablet
------------------------------------ */

@media (max-width: 1200px) {

    .hero h1 {

        font-size: var(--font-size-h1-tablet);
    }

    .hero-graphic {

        height: 500px;
    }

    .project h3 {

        font-size: 2.5rem;
    }
}

/* ------------------------------------
   Mobile
------------------------------------ */

@media (max-width: 992px) {

    .hero {

        padding-top: 3rem;
    }

    .hero-graphic {

        display: none;
    }

    .hero h1 {

        font-size: var(--font-size-h1-mobile);
    }

    .project {

        padding: 3rem 0;
    }
    .project-image {
        margin-top: var(--space-md);
    }
    .site-footer ul{
        margin-bottom:var(--space-md);
    }
}

@media (max-width: 768px) {

    .nav-list {

        display: none;
    }

    .hero h1 {

        font-size: var(--font-size-h1-small);
    }

    .section-header h2,
    .content-section h2 {

        font-size: var(--font-size-h2-mobile);
    }

    .project h3 {

        font-size: var(--font-size-h3-mobile);
    }

    .hero-meta {

        flex-direction: column;

        gap: .25rem;
    }
}