@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wdth,wght@12..96,75..100,200..800&family=Sanchez:ital@0;1&display=swap');

/*  Theme tokens */
:root {
    color-scheme: light;
    --bg: #f4f2ed;
    --ink: #151515;
    --muted: #6d6a64;
    --line: #cbc7be;
    --accent: #ff5b35;
    --cream: #e8e3d9;
    --card: #e8e4dc;
    --nav-bg: rgba(244, 242, 237, .82);
    --nav-line: #15151512;
    --panel: #151515;
    --panel-ink: #fff;
    --panel-muted: #aaa;
    --panel-line: #333;
    --shadow: #00000016;
    --meta: #777;
    --placeholder: #ded9cf;
    --visual-dark: #191919;
    --visual-green: #cddbcf;
    --visual-orange: #e6b18b;
    --dash-bg: #f4f2ed;
    --dash-row: #e3ded5;
    --phone-bg: #f4f0e8;
    --phone-border: #222;
    --portrait: #202020;
    --portrait-ink: #eee;
    --max: 1440px;
    --gutter: clamp(0px, 7vw, 100px)
}

 .back-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding-bottom: 16px;
            border-radius: 8px;
            color: var(--accent);
            font-size: 12px;
            cursor: pointer;
            text-decoration: none;
            transition: border-color .2s, color .2s;
        }

        .back-btn:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0e0e0d;
    --ink: #f1eee7;
    --muted: #a09c93;
    --line: #2c2b28;
    --accent: #ff6a45;
    --cream: #1c1b19;
    --card: #171716;
    --nav-bg: rgba(14, 14, 13, .8);
    --nav-line: #ffffff14;
    --panel: #181817;
    --panel-ink: #f1eee7;
    --panel-muted: #9b978f;
    --panel-line: #2c2b28;
    --shadow: #00000080;
    --meta: #8a867e;
    --placeholder: #1f1e1c;
    --visual-dark: #0a0a0a;
    --visual-green: #1f2b23;
    --visual-orange: #3b2a20;
    --dash-bg: #222220;
    --dash-row: #2d2c29;
    --phone-bg: #1f1e1c;
    --phone-border: #3a3a37;
    --portrait: #1a1a19;
    --portrait-ink: #f1eee7
}

/* Smooth colour change only while the user is toggling */
html.theme-anim,
html.theme-anim *,
html.theme-anim *:before,
html.theme-anim *:after {
    transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease !important
}

* {
    box-sizing: border-box
}

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

.wrap {
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.wrap-nav {
    max-width: var(--max);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 14px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

body {
    /* margin: 0 var(--gutter); */
    background: var(--bg);
    margin: 0;
    color: var(--ink);
    font-family: "Sanchez", "Bricolage Grotesque", sans-serif, serif;
    -webkit-font-smoothing: antialiased
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px
}

::selection {
    background: var(--accent);
    color: #fff
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -60px;
    z-index: 300;
    background: var(--ink);
    color: var(--bg);
    padding: 10px 16px;
    border-radius: 99px;
    font-size: 12px;
    transition: top .2s
}

.skip-link:focus {
    top: 12px
}

/* Nav */
.nav {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.brand {
    font: 700 24px 'Bricolage Grotesque';
    letter-spacing: -0.04em
}

.brand i {
    font-style: normal;
    color: var(--accent)
}

.navlinks {
    display: flex;
    gap: 30px;
    font-size: 13px
}

.navlinks a {
    position: relative
}

.navlinks a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: .3s
}

.navlinks a:hover:after,
.navlinks a.active:after,
.navlinks a[aria-current="page"]:after {
    width: 100%
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px
}

.nav-cta {
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 9px 16px;
    font-size: 12px;
    transition: background .25s, color .25s
}

.nav-cta:hover {
    background: var(--ink);
    color: var(--bg)
}

.theme-toggle,
.menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    display: inline-grid;
    place-items: center;
    padding: 0;
    transition: border-color .25s, transform .25s
}

.theme-toggle:hover,
.menu-btn:hover {
    border-color: var(--ink);
    transform: rotate(12deg)
}

.theme-toggle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.theme-toggle .moon {
    display: none
}

:root[data-theme="dark"] .theme-toggle .sun {
    display: none
}

:root[data-theme="dark"] .theme-toggle .moon {
    display: block
}

.menu-btn {
    display: none
}

.menu-btn span,
.menu-btn span:before {
    display: block;
    width: 14px;
    height: 1.5px;
    background: currentColor;
    position: relative;
    transition: .25s
}

.menu-btn span:before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0
}

.nav.open .menu-btn span {
    background: transparent
}

.nav.open .menu-btn span:before {
    top: 0;
    transform: rotate(45deg);
    background: currentColor
}

.page {
    max-width: var(--max);
    margin: auto
}

/*  Hero */
.hero {
    /* margin-top: 60px; */
    min-height: fit-content;
    /* padding: 50px 5vw 40px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden
}

.eyebrow,
.label,
.tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: var(--muted)
}

.eyebrow:before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 8px
}

.hero h1 {
    font: 600 clamp(58px, 8.4vw, 126px)/.88 'Bricolage Grotesque';
    letter-spacing: -.045em;
    max-width: 1050px;
    margin: 25px 0
}

.hero h1 em {
    font-style: normal;
    color: var(--accent)
}

.lede {
    max-width: 690px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted);
    /* font: 400 16px/1.7 'Sanchez, serif;'; */
    letter-spacing: -0.02em
}

.actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 35px 0 60px
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    border-radius: 99px;
    border: 1px solid var(--ink);
    font-size: 12px;
    font-weight: 700;
    transition: .3s
}

.btn.dark {
    background: var(--ink);
    color: var(--bg)
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px var(--shadow)
}


.capabilities {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 8vw
}

.capabilities h2 {
    font: 600 55px 'Bricolage Grotesque';
    letter-spacing: -.05em
}

.caps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px
}

.caps>div {
    border-top: 1px solid var(--line);
    padding: 22px 0
}

.caps b {
    color: var(--accent);
    font-size: 10px
}

.caps h3 {
    font: 600 24px 'Bricolage Grotesque';
    margin: 8px 0
}

.caps p {
    color: var(--muted);
    font-size: 14px
}


:root[data-theme="dark"] .hero-orb {
    background: radial-gradient(circle at 40% 40%, #ff6a4538, transparent 65%)
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 950px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    gap: 20px;
    grid-auto-flow: column;
}


.stats b {
    font: 600 30px 'Sanchez';
    display: block;
}

.stats span {
    font-size: 10px;
    color: var(--muted)
}

section {
    padding-block: clamp(40px, 5vw, 88px);
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    border-top: 1px solid var(--line);
    padding-top: 17px;
    margin-bottom: 32px;
    max-width: var(--max);
    margin-inline: auto;
    /* padding-inline: var(--gutter); */
}

.section-head p {
    max-width: 410px;
    color: var(--muted);
    margin: 0;
    font-size: 14px
}

.soc {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    /* margin-top: 40px; */
}

.soc a:hover {
    color: var(--accent)
}

/*  Work cards */
.work {
    max-width: var(--max);
    margin-inline: auto;
    /* padding-inline: var(--gutter); */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.experience {
    max-width: var(--max);
    margin-inline: auto;
    /* padding-inline: var(--gutter); */
    display: flex;
    flex-direction: column;
    gap: 24px;

}

.card {
    background: var(--card);
    overflow: hidden;
    display: block;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s
}

.card:first-child {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1.15fr .85fr
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 25px 60px var(--shadow)
}

.visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.visual.dark {
    background: var(--visual-dark)
}

.visual.green {
    background: var(--visual-green)
}

.visual.orange {
    /* background: var(--visual-orange) */
}

.card-copy {
    padding: 24px
}

.card-copy h2 {
    font: 600 31px/1.05 'Bricolage Grotesque';
    letter-spacing: -.04em;
    margin: 14px 0
}

.card-copy p {
    color: var(--muted);
    max-width: 570px
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-top: 30px;
    font-size: 10px;
    color: var(--meta)
}

.meta strong {
    display: block;
    color: var(--ink);
    font: 600 18px 'Bricolage Grotesque'
}

.view {
    font-size: 11px;
    color: var(--ink);
    font-weight: 700
}

/*  Statement / About */
.statement {
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
    background: var(--panel);
    color: var(--panel-ink);
}

.statement-inner {
    margin: auto
}

.statement h2 {
    font: 600 clamp(45px, 6vw, 82px)/.96 'Bricolage Grotesque';
    letter-spacing: -.03em;
    max-width: 950px;
    margin: 28px 20px
}

.statement h2 em {
    color: var(--accent);
    font-style: normal
}

.statement p {
    max-width: 800px;
    color: var(--panel-muted);
    font-size: 16px;
    padding-left: 20px;
    padding-right: 20px;
}

.about {
    padding-top: 130px
}

.about-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 9vw;
    align-items: center
}

.portrait {
    /* height: 520px; */
    background: var(--portrait);
    color: var(--portrait-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font: 600 120px 'Bricolage Grotesque';
    letter-spacing: -0.04em
}

.about h2 {
    font: 600 clamp(40px, 5vw, 68px)/1 'Bricolage Grotesque';
    letter-spacing: -.045em
}

.about p {
    max-width: 680px;
    color: var(--muted);
    font-size: 16px
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px
}

.pills span {
    border: 1px solid var(--line);
    padding: 8px 12px;
    border-radius: 99px;
    font-size: 10px
}

.sync {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    align-content: center;
    justify-content: center;
    justify-items: center;
}

/* ---------- Experience ---------- */
/* .timeline {
    border-top: 1px solid var(--line)
} */

.role {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 80px;
    padding: 18px 0;
    align-items:center
}

.role h3 {
    font: 600 26px 'Sanchez';
    margin: 0
}

.role h3 span {
    color: var(--accent)
}

.role p {
    color: var(--muted)
}

/* Contact / Footer  */
.contact {
    background: var(--panel);
    color: var(--panel-ink);
    text-align: center;
    max-width: none;
    align-content: center
}

.contact h2 {
    font: 600 clamp(55px, 8vw, 110px)/.9 'Bricolage Grotesque';
    letter-spacing: -.045em;
    margin: 28px auto;
    max-width: 1000px
}

.contact h2 em {
    font-style: normal;
    color: var(--accent)
}

.contact p {
    max-width: 580px;
    margin: auto;
    color: var(--panel-muted)
}

.email {
    display: inline-block;
    margin-top: 35px;
    font: 500 clamp(20px, 3vw, 36px) 'Bricolage Grotesque';
    padding-bottom: 8px;
    transition: color .25s
}

.email:hover {
    color: var(--accent)
}

.footer {
    padding: 25px 5vw;
    background: var(--panel);
    color: var(--meta);
    border-top: 1px solid var(--panel-line);
    display: flex;
    justify-content: space-between;
    font-size: 11px
}

.progress {
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    height: 3px;
    width: 0;
    background: var(--accent)
}

/* Reveal only hides content when JS is running */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1)
}

.js .reveal.visible {
    opacity: 1;
    transform: none
}

/*  Mockups */
.mock-browser {
    width: 72%;
    background: #252525;
    border-radius: 12px;
    box-shadow: 0 35px 70px #0008;
    transform: rotate(-3deg)
}

.browser-top {
    height: 30px;
    border-bottom: 1px solid #444;
    padding: 8px 10px
}

.browser-top i {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #777;
    margin-right: 4px
}

/* Capabilities section */
.capabilities {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.capabilities h2 {
    max-width: 420px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.caps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
}

.caps>div {
    min-width: 0;
}

.caps b {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.65;
}

.caps h3 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    line-height: 1.25;
}

.caps p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* Tablet */
@media (max-width: 900px) {
    .capabilities {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .capabilities h2 {
        max-width: 560px;
    }

    .caps {
        gap: 2rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .capabilities {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
    }

    .capabilities h2 {
        max-width: 100%;
        margin-top: 0.65rem;
        font-size: clamp(2rem, 8vw, 2.75rem);
        line-height: 1.08;
        letter-spacing: -0.045em;
    }

    .caps {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .caps>div {
        padding: 1.35rem 0;
        border-top: 1px solid var(--border, rgba(128, 128, 128, 0.25));
    }

    .caps b {
        margin-bottom: 0.65rem;
        font-size: 0.75rem;
    }

    .caps h3 {
        margin-bottom: 0.5rem;
        font-size: 1.15rem;
    }

    .caps p {
        max-width: 38ch;
        font-size: 0.925rem;
        line-height: 1.65;
    }
}

/* Small phones */
@media (max-width: 360px) {
    .capabilities h2 {
        font-size: 1.85rem;
    }

    .caps h3 {
        font-size: 1.05rem;
    }

    .caps p {
        font-size: 0.875rem;
    }
}

.browser-content {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.mock-block {
    height: 70px;
    background: #383838;
    border-radius: 5px
}

.mock-block.tall {
    height: 150px
}

.phone {
    width: 180px;
    height: 350px;
    background: var(--phone-bg);
    border: 7px solid var(--phone-border);
    border-radius: 28px;
    padding: 32px 16px;
    box-shadow: 25px 35px 60px #0004;
    transform: rotate(-6deg)
}

.phone .line {
    height: 7px;
    width: 60%;
    background: var(--phone-border);
    border-radius: 9px;
    margin-bottom: 25px
}

.phone .tile {
    height: 90px;
    background: #d9825e;
    border-radius: 12px;
    margin-bottom: 12px
}

.phone .tile.alt {
    background: #d6c6b7;
    height: 60px
}

:root[data-theme="dark"] .phone .tile.alt {
    background: #4a4039
}

.dashboard {
    width: 58%;
    background: var(--dash-bg);
    color: var(--ink);
    padding: 20px;
    box-shadow: 20px 25px 60px #0002;
    transform: rotate(3deg)
}

.case-study-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

.dashboard h5 {
    margin: 0 0 15px;
    font-size: 10px
}

.dashboard div {
    padding: 13px;
    background: var(--dash-row);
    margin: 7px 0;
    font-size: 10px;
    border-radius: 4px
}

.orb {
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff9, #6c9275);
    filter: blur(1px);
    opacity: .65
}

:root[data-theme="dark"] .orb {
    background: radial-gradient(circle at 35% 30%, #8fb59a66, #2f4a38);
    opacity: .8
}

/*  Responsive  */
@media(max-width:800px) {
    :root {
        --gutter: 0px
    }

    .nav {
        padding: 0 6vw
    }

    .menu-btn {
        display: inline-grid
    }

    /* .navlinks {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 8px 6vw 16px;
        font-size: 16px;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: .25s
    }

    .nav.open .navlinks {
        opacity: 1;
        transform: none;
        pointer-events: auto
    }

    .navlinks a {
        padding: 14px 0;
        border-bottom: 1px solid var(--line)
    }

    .navlinks a:after {
        display: none
    }

    .nav-cta {
        /* display: none 
    } */

    .hero {
        padding: 30px 6vw 30px
    }

    .hero h1 {
        font-size: 55px
    }

    .stats {
        grid-template-columns: 1fr 1fr;
        display: grid;
        grid-auto-flow: row;
    }

    section {
        padding: 24px 6vw
    }

    .about {
        padding-top: 50px
    }

    .section-head {
        display: block
    }

    .section-head p {
        margin-top: 14px
    }

    .work,
    .card:first-child,
    .about-grid {
        grid-template-columns: 1fr
    }

    .role {
        grid-template-columns: 1fr;
        gap: 7px
    }

    .contact h2 {
        font-size: 55px
    }

    .footer {
        padding: 20px 6vw
    }
}

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

    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important
    }

    .js .reveal {
        opacity: 1;
        transform: none
    }
}