:root {
    /* Accent — true warm orange (less yellow) */
    --color-red: #d96e2e;          /* primary accent (orange) */
    --color-red-hover: #e88040;
    --color-red-dark: #b85a23;
    --color-red-darker: #94481b;

    /* Surfaces */
    --color-bg: #fbfaf7;            /* main content bg — light warm off-white */
    --color-bg-soft: #152238;       /* dark chrome — header / pre-footer / footer */
    --color-jet: #1e2d44;           /* elevated dark blocks — inverted cards, chips */
    --color-rule: #e1ddd5;          /* visible borders on light bg */
    --color-rule-soft: #ecebe6;     /* subtle borders on light bg */
    --color-on-dark: #e8ecf1;       /* text on dark surfaces */
    --color-on-dark-soft: #c5cdd9;  /* muted text on dark surfaces */

    /* Foreground — dark text on light bg */
    --color-ink: #1d1d1d;           /* primary text */
    --color-ink-soft: #131313;      /* strong / headings */
    --color-gray-text: #6b7280;     /* secondary / meta */
    --color-gray: #9ca3af;          /* decorative strokes */

    --color-white: #ffffff;         /* text on accent backgrounds */

    --font-display: 'Oswald', sans-serif;
    --font-body: 'Quattrocento', serif;

    --shadow-btn: 0 2px 6px 0 rgba(0,0,0,0.5);
    --transition-btn: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}

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

html {
    font-family: var(--font-body);
    color: var(--color-ink-soft);
    font-size: 16px;
}

body {
    background: var(--color-bg);
    color: var(--color-ink);
}

h1 {
    font-size: 3.5rem;
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
}

h2 {
    font-size: 2.25rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 400;
}

h3 {
    font-size: 1.75rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 400;
}

p {
    line-height: 1.5;
}

li {
    margin-bottom: 0.6rem;
}

a {
    color: var(--color-red);
    text-decoration: none;
    border-bottom: 2px solid var(--color-rule);
}

a:hover {
    color: var(--color-red-dark);
    border-bottom-color: var(--color-red-dark);
}

a:active {
    color: var(--color-red);
    border-bottom-color: var(--color-red);
}

.accent {
    color: var(--color-red);
}

.quoted {
    font-style: italic;
    color: var(--color-gray);
}

.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 0.5em 1em;
    background: #000;
    color: var(--color-white);
}
.skip-to-content:focus {
    left: 0;
}


/* LAYOUT */

.cont {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1000px;
    margin: 1rem auto;
    padding: 0 2rem;
}

.full-width-cont {
    width: 100%;
    max-width: 100%;
}

.header {
    background: var(--color-bg-soft);
    padding: 2rem 0 3rem;
}

.pre-footer {
    background: var(--color-bg-soft);
    margin: 6rem auto 0;
    padding: 2rem 0 3rem;
}

.footer {
    background: var(--color-bg-soft);
    color: var(--color-on-dark);
    padding: 2rem 0;
}

.header,
.pre-footer {
    color: var(--color-on-dark);
}


/* CONTACT / HEADER */

.contact-cont {
    color: var(--color-on-dark);
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column-reverse;
}

.contact-info {
    width: 100%;
}

.contact-info h1 {
    margin: 0;
}

.contact-info h2 {
    margin: 1rem auto 2rem;
    font-size: 1.85rem;
    color: var(--color-gray);
    text-transform: uppercase;
    font-weight: 200;
    position: relative;
    padding-bottom: 0.6rem;
    margin-bottom: 2rem;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    background-color: var(--color-gray);
    width: 3rem;
    height: 1px;
    bottom: 0;
    left: 0;
}

.contact-info p span {
    font-family: var(--font-display);
    font-weight: 200;
}

.contact-photo {
    margin-bottom: 2rem;
}

.contact-photo img {
    width: 100%;
    height: auto;
}

.social-cont {
    width: 100%;
    margin: 2rem 0;
}

.social-icons {
    padding: 0;
    list-style: none;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icons li {
    display: flex;
    margin: 0;
    position: relative;
    font-size: 1.65rem;
}

.social-icons li:first-child {
    margin-left: 0;
    padding-left: 0;
}

.social-icons i {
    color: var(--color-on-dark);
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    margin-right: 1rem;
    padding: 0.5rem;
    min-width: 46px;
    transition: var(--transition-btn);
    border-radius: 6px;
}

.social-icons a:hover {
    background: var(--color-red);
    border-bottom-color: var(--color-red-darker);
    color: var(--color-white);
    box-shadow: var(--shadow-btn);
}

.social-icons a:hover i {
    color: var(--color-white);
}


/* BUTTONS */

.btn {
    display: inline-block;
    border: 2px solid var(--color-red);
    background: transparent;
    color: var(--color-ink);
    padding: 0.6rem 1.2rem;
    text-align: center;
    margin: 0.6rem 0;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 140px;
    cursor: pointer;
    transition: var(--transition-btn);
}

.btn:hover {
    background: var(--color-red-hover);
    color: var(--color-white);
    border-bottom-color: var(--color-red-darker);
    box-shadow: var(--shadow-btn);
}

.btn:active {
    background: var(--color-red);
}

.proj-nav-lnk {
    padding: 0.5rem 1rem;
    margin: 1rem 0;
}

/* MENUBAR — sticky primary navigation (inverted: orange bg, midnight accents) */

.menubar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-red);
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.menubar .outer-tablist {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.menubar .btn {
    background: transparent;
    border-color: var(--color-bg-soft);
    color: var(--color-bg-soft);
    margin: 0.25rem 0;
    min-width: 120px;
    border-radius: 6px;
}

.menubar .btn:not(.active):hover {
    background: var(--color-bg-soft);
    color: var(--color-on-dark);
    border-color: var(--color-bg-soft);
}

.menubar .btn.active {
    background: var(--color-bg-soft);
    color: var(--color-on-dark);
    border-color: var(--color-bg-soft);
}

.proj-nav-lnk.active {
    background: var(--color-red);
    color: var(--color-white);
    border-bottom-color: var(--color-red-darker);
    box-shadow: var(--shadow-btn);
}


/* MOBILE HAMBURGER + DRAWER (phones, < 768px) */

.nav-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-red);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    transition: background 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus {
    background: var(--color-red-hover);
}

.nav-toggle .icon-bars { display: block; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-bars { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

/* TABS */

.tabcontent {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.proj-header {
    position: relative;
    margin-bottom: 2rem;
}

h2.proj-header {
    padding-bottom: 1rem;
}

.proj-header::after {
    content: '';
    position: absolute;
    background-color: var(--color-gray);
    width: 3rem;
    height: 1px;
    bottom: 0;
    left: 0;
}

body:not([data-outer-tab="port-cont"]) .proj-nav {
    display: none;
}

.proj-nav {
    position: sticky;
    top: var(--menubar-h, 64px);
    z-index: 90;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-bg);
    padding: 0.5rem 2rem;
    margin: 0 auto 1.5rem;
    /* Full-width strip that extends beyond the .cont 1000px cap; recolors when stuck. */
    box-shadow: 0 0 0 100vmax var(--color-bg);
    clip-path: inset(0 -100vmax);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.proj-nav.is-stuck {
    background: var(--color-bg-soft);
    box-shadow: 0 0 0 100vmax var(--color-bg-soft);
}

.proj-nav .btn {
    color: var(--color-ink);
    margin: 0.25rem 0;
    min-width: 120px;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.proj-nav.is-stuck .btn:not(.active) {
    color: var(--color-on-dark);
}

.proj-nav .btn:not(.active):hover {
    background: var(--color-red);
    color: var(--color-white);
    border-color: var(--color-red);
}

.proj-img {
    width: 100%;
    max-width: 1000px;
    margin: 1rem auto;
}

.tab-img figure {
    width: 100%;
    max-width: 1000px;
    margin: 1rem auto 2rem;
    text-align: center;
}

.tab-img figure .proj-img {
    margin: 0 auto 0.5rem;
    display: block;
}

figcaption {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 200;
    color: inherit;
    opacity: 0.75;
    text-align: center;
    line-height: 1.4;
    padding: 0.5rem 1rem 0;
    text-transform: uppercase;
    letter-spacing: .08ch;
}

.tab-txt {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    flex: 1 40%;
    text-align: left;
    margin: 1rem auto;
}

.tab-txt > div {
    flex: 1;
    width: 100%;
}

.tab-txt > div:nth-child(2n) {
    margin: 0;
}

.proj-aside {
    margin: 0;
    padding: 1rem;
    background: var(--color-red);
    color: var(--color-white);
    width: 100%;
}

.proj-aside a {
    color: var(--color-bg-soft);
    border-bottom-color: rgba(21, 34, 56, 0.35);
}

.proj-aside a:hover {
    color: var(--color-bg);
    border-bottom-color: var(--color-bg-soft);
}

.proj-aside p {
    font-family: var(--font-display);
    letter-spacing: 1px;
    font-weight: 200;
    text-transform: uppercase;
}

.proj-aside ul {
    padding-left: 1rem;
}

aside > h3 {
    margin: 0;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.proj-aside-date {
    color: var(--color-ink);
}

.tab-img {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}


/* MORE WORK GRID */

.mason-cont {
    display: flex;
    flex-flow: column wrap;
    align-content: space-between;
}

.proj-more-img {
    width: 100%;
    border: 1px solid var(--color-rule-soft);
    margin: 1rem auto;
}


/* BRANDS / SKILLS LIST */

ul.workbrands-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0.5rem;
}

ul.workbrands-list li {
    background: var(--color-jet);
    margin: 0.3rem;
    font-size: 0.65rem;
    color: var(--color-on-dark);
    padding: 0.4rem 0.8rem;
    word-wrap: normal;
    text-align: center;
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.25s ease;
}

ul.workbrands-list li:hover {
    background: var(--color-red);
}


/* RESUME */

.resume-cont {
    flex-direction: column;
}

.resume-item {
    border-bottom: 1px solid var(--color-rule-soft);
    padding: 1rem;
}

.resume-item h3 {
    font-size: 1.45rem;
}

.resume-item h4 {
    font-family: var(--font-display);
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gray-text);
}

.resume-item .lede {
    font-size: 1.4rem;
}

ul.resume-list {
    list-style-type: square;
    margin-left: 0;
    padding-left: 1.5rem;
}

.resume-list li {
    line-height: 1.4;
}

.resume-item.inverted {
    background: var(--color-jet);
    color: var(--color-on-dark);
    padding: 2rem;
    margin-bottom: 2rem;
}

hr.divider {
    border: 0;
    border-top: 1px solid var(--color-rule);
    margin: 2rem 0;
    width: 30%;
}


/* VIDEO / ANIMATION */

.animat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.animat > div {
    margin: 0.5rem;
    width: 100%;
    max-width: 360px;
}

.video-responsive {
    overflow: hidden;
    position: relative;
    height: 200px;
}

.video-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}


/* Break points borrowed from Bootstrap 5.0! OH MY!! */

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

    .contact-cont {
        flex-direction: row;
    }

    .contact-info,
    .contact-photo {
        width: calc(50% - 2em);
    }

    .mason-cont {
        /* Fixed height required so flex column-wrap can break into multiple columns. */
        height: 4600px;
    }

    .proj-more-img {
        width: 32%;
        margin: 0.6rem;
    }

    /* Re-order items into 3 rows */
    .proj-more-img:nth-child(3n+1) { order: 1; }
    .proj-more-img:nth-child(3n+2) { order: 2; }
    .proj-more-img:nth-child(3n)   { order: 3; }

    /* Force new columns */
    .mason-cont::before,
    .mason-cont::after {
        content: "";
        flex-basis: 100%;
        width: 0;
        order: 2;
    }

    .tab-txt > div {
        flex: 1;
        width: calc(100% - 2rem);
    }

    .tab-txt > div:nth-child(2n) {
        margin: 0 0 2rem 2rem;
        padding: 1.25rem;
        width: 100%;
        max-width: 280px;
        font-size: 90%;
    }

    .animat {
        flex-direction: row;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

    .tab-txt {
        flex-direction: row;
    }

    ul.workbrands-list li {
        font-size: 0.92rem;
    }
}


/* Print */

/* .drawer wraps menubar + proj-nav. On desktop it is invisible to layout
   (display: contents) so the existing sticky behavior of its children
   continues to work relative to <body>. On phones it becomes a full-height
   slide-in panel that contains both navs. */

.drawer { display: contents; }


/* MOBILE HAMBURGER DRAWER (phones only, < 768px). Placed last so it always
   overrides the desktop .menubar / .proj-nav rules earlier in the cascade. */

@media (max-width: 767px) {

    .nav-toggle { display: flex; }

    .drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 80vw;
        max-width: 320px;
        height: 100vh;
        background: var(--color-bg-soft);
        z-index: 150;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 4px 0 20px rgba(0,0,0,0.35);
    }

    body.nav-open .drawer { transform: translateX(0); }

    /* Inside the drawer the children are flow items, not sticky bars. */
    .menubar,
    .proj-nav {
        position: static;
        width: 100%;
        max-width: none;
        margin: 0;
        clip-path: none;
        box-shadow: none;
    }

    .menubar {
        padding: 5rem 1.5rem 1rem;
    }

    .menubar .outer-tablist {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        max-width: none;
    }

    .menubar .btn,
    .proj-nav .btn {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    /* proj-nav fills remaining vertical space below the menubar, scrollable
       if the project list is long. */
    .proj-nav {
        flex: 1 1 auto;
        padding: 1rem 1.5rem 1.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        background: var(--color-bg-soft);
        overflow-y: auto;
    }

    .proj-nav .btn:not(.active) { color: var(--color-on-dark); }

    /* Cancel the desktop is-stuck full-viewport shadow inside the drawer. */
    .proj-nav.is-stuck {
        box-shadow: none;
        clip-path: none;
    }

    /* Backdrop dims the page behind the open drawer. */
    body.nav-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 140;
    }

    body.nav-open {
        overflow: hidden;
    }
}


@media print {
    body {
        margin: 0;
        color: #000;
        background-color: #fff;
    }

    a::after {
        content: " (" attr(href) ")";
    }

    img {
        display: none;
    }

    h1 {
        break-before: always;
    }
}
