/* ==========================================================================
   Watson Powell — Portfolio Stylesheet
   ========================================================================== */

/* Skip to content — accessibility */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 4px 4px;
    z-index: 10000;
    font-size: 0.875rem;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-to-content:focus {
    top: 0;
}

/* --------------------------------------------------------------------------
   1. Custom Properties & Reset
   -------------------------------------------------------------------------- */

:root {
    --color-primary: #E8642C;
    --color-primary-hover: #D4551F;
    --color-dark: #0F1B2D;
    --color-darker: #0A1220;
    --color-white: #FFFFFF;
    --color-light: #F5F5F5;
    --color-grey: #4A4A4A;

    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-max: 1200px;
    --container-pad: 1.5rem;
    --nav-height: 4.5rem;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-grey);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* --------------------------------------------------------------------------
   2. Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

/* --------------------------------------------------------------------------
   3. Layout Utilities
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

section {
    scroll-margin-top: var(--nav-height);
}

/* Section counter — editorial chapter numbering */
.section-counter {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.section-counter--light {
    color: var(--color-primary);
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.section-heading--light {
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   4. Button
   -------------------------------------------------------------------------- */

.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-align: center;
}

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

.btn--primary:hover,
.btn--primary:focus-visible {
    background-color: var(--color-primary-hover);
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(232, 100, 44, 0.4);
}

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.nav-scrolled {
    background-color: var(--color-dark);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    height: var(--nav-height);
}

.nav__logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-white);
    z-index: 1001;
}

.nav__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    z-index: 1001;
}

.nav__hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__hamburger.active .nav__hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.active .nav__hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav__hamburger.active .nav__hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1000;
}

.nav__menu.open {
    transform: translateX(0);
}

.nav__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--color-white);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
    transform: scaleX(1);
}

.nav__socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__socials a {
    display: flex;
    align-items: center;
    color: var(--color-white);
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.nav__socials a:hover,
.nav__socials a:focus-visible {
    opacity: 1;
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-dark);
    overflow: hidden;
    text-align: center;
    padding: 2rem var(--container-pad);
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 27, 45, 0.6) 0%,
        rgba(15, 27, 45, 0.7) 50%,
        rgba(15, 27, 45, 0.85) 100%
    );
    z-index: 0;
}

/* Decorative gradient glow */
.hero::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 55%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 100, 44, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3rem;
    color: var(--color-white);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero__tagline {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-top: 0.75rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero__description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero__cta {
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator — bottom of hero */
.hero__scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 1.2s;
}

.hero__scroll-text {
    font-family: var(--font-heading);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(232, 100, 44, 0.8), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.6); opacity: 0.4; }
}

/* Film grain — cinematic texture on dark sections */
.hero::after,
.contact::after,
.footer::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* --------------------------------------------------------------------------
   7. About
   -------------------------------------------------------------------------- */

.about {
    padding: 6rem 0;
    background-color: var(--color-white);
}

.about__text {
    max-width: 720px;
    border-left: 2px solid rgba(232, 100, 44, 0.2);
    padding-left: 2rem;
}

.about__lede {
    font-size: 1.1875rem;
    line-height: 1.8;
    color: var(--color-dark);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.about__text p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: var(--color-grey);
}

.about__text p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   8. Work — Sticky Horizontal Scroll
   -------------------------------------------------------------------------- */

.work-outer {
    scroll-margin-top: var(--nav-height);
}

/* Mobile: normal vertical layout */
.work {
    padding: 4rem 0;
    background-color: var(--color-dark);
}

/* Intro panel */
.work__intro {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem var(--container-pad);
}

.work__intro-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-white);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.work__intro-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin-top: 0.5rem;
    border-radius: 2px;
}

.work__intro-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Filter tabs (work page) */
.work__filter-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.work__filter-btn.active,
.work__filter-btn:hover,
.work__filter-btn:focus-visible {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* Track */
.work__track {
    display: flex;
    gap: 5rem;
    align-items: center;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem var(--container-pad) 2rem;
    scrollbar-width: none;
}

.work__end-cta {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

.work__track::after {
    content: '';
    flex: 0 0 4rem;
}

.work__track::-webkit-scrollbar {
    display: none;
}

/* Video card */
.work__card {
    flex: 0 0 85%;
    scroll-snap-align: start;
    background: var(--color-darker);
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.work__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.work__card.hidden {
    display: none;
}

.work__card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.work__card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work__card:hover .work__card-thumb img {
    transform: scale(1.06);
}

.work__card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 27, 45, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.35s ease;
}

.work__card:hover .work__card-overlay {
    background: rgba(15, 27, 45, 0.6);
}

.work__card-play {
    width: 56px;
    height: 56px;
    background: rgba(232, 100, 44, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work__card:hover .work__card-play {
    transform: scale(1.12);
    box-shadow: 0 0 30px rgba(232, 100, 44, 0.5);
}

.work__card-play svg {
    width: 22px;
    height: 22px;
    fill: var(--color-white);
    margin-left: 3px;
}

.work__card-info {
    padding: 1.25rem 1.5rem;
}

.work__card-category {
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
}

.work__card-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
    margin-top: 0.25rem;
}

.work__card-desc {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.375rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   8b. Work Page — Grid
   -------------------------------------------------------------------------- */

.work-page-hero {
    background: var(--color-dark);
    padding: calc(var(--nav-height) + 3rem) 0 3rem;
    text-align: center;
}

.work-page-hero__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-white);
}

.work-page-hero__subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.0625rem;
    margin-top: 0.75rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.work-page {
    background: var(--color-dark);
    padding: 2rem 0 6rem;
}

.work-page__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.work-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.work-page__grid .work__card {
    flex: none;
}

/* --------------------------------------------------------------------------
   9. Photography — Grid
   -------------------------------------------------------------------------- */

.photography {
    padding: 6rem 0;
    background-color: var(--color-light);
}

.photography__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.photography__view-all {
    text-align: center;
    margin-top: 3rem;
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--color-dark);
    color: var(--color-dark);
}

.btn--outline:hover,
.btn--outline:focus-visible {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(232, 100, 44, 0.4);
}

.btn--outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.btn--outline-light:hover,
.btn--outline-light:focus-visible {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* Photo card */
.photography__card {
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.photography__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.photography__card.hidden {
    display: none;
}

.photography__card img {
    width: 100%;
    aspect-ratio: 8 / 5;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photography__card:hover img {
    transform: scale(1.04);
}

.photography__card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 0.75rem;
    background: linear-gradient(to top, rgba(10, 18, 32, 0.85) 0%, transparent 100%);
    color: var(--color-white);
    font-size: 0.8125rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.photography__card:hover .photography__card-caption {
    opacity: 1;
    transform: translateY(0);
}

.photography__card-cat {
    font-family: var(--font-heading);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------------------
   9b. Photography Page
   -------------------------------------------------------------------------- */

.photo-page-hero {
    padding: calc(var(--nav-height) + 4rem) 0 3rem;
    background-color: var(--color-dark);
    text-align: center;
}

.photo-page-hero__title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-white);
    font-size: 2.5rem;
}

.photo-page-hero__subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.0625rem;
    margin-top: 0.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.photo-page-gallery {
    padding: 3rem 0 6rem;
    background-color: var(--color-light);
}

.photo-page__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.photo-page__filters .work__filter-btn {
    border-color: rgba(15, 27, 45, 0.25);
    color: var(--color-grey);
}

.photo-page__filters .work__filter-btn.active,
.photo-page__filters .work__filter-btn:hover,
.photo-page__filters .work__filter-btn:focus-visible {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.photo-page__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* --------------------------------------------------------------------------
   10. Writings
   -------------------------------------------------------------------------- */

.writings {
    padding: 6rem 0;
    background-color: var(--color-white);
}

.writings__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.writings__item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--color-light);
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.writings__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.writings__item-text {
    flex: 1;
}

.writings__item-category {
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
}

.writings__item-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-top: 0.25rem;
}

.writings__item-excerpt {
    font-size: 0.875rem;
    color: var(--color-grey);
    margin-top: 0.375rem;
    line-height: 1.6;
}

.writings__item-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(232, 100, 44, 0.1);
    color: var(--color-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.writings__item:hover .writings__item-icon {
    background: var(--color-primary);
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   9c. Writing Page
   -------------------------------------------------------------------------- */

.writing-page__hero {
    background: var(--color-dark);
    padding: calc(var(--nav-height) + 3rem) 0 3rem;
}

.writing-page__back {
    display: flex;
    align-items: center;
    width: fit-content;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.writing-page__back:hover {
    color: var(--color-primary);
}

.writing-page__category {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
}

.writing-page__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-white);
    margin-top: 0.5rem;
    line-height: 1.2;
}

.writing-page__meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
}

.container--narrow {
    max-width: 720px;
}

.writing-page__body {
    padding: 3rem 0 6rem;
}

.writing-page__lede {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-dark);
    font-weight: 500;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.writing-page__body p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-grey);
    margin-bottom: 1.5rem;
}

.writing-page__body h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.writing-page__body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--color-primary);
    background: var(--color-light);
    border-radius: 0 0.5rem 0.5rem 0;
}

.writing-page__body blockquote p {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-dark);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   10. Modals / Lightbox
   -------------------------------------------------------------------------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal[hidden] {
    display: none;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 32, 0.9);
}

.modal__container {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active .modal__container {
    transform: scale(1);
}

.modal__container--photo {
    max-width: 1000px;
    text-align: center;
}

.modal__close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    font-size: 2rem;
    color: var(--color-white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.3s ease;
    z-index: 2;
}

.modal__close:hover,
.modal__close:focus-visible {
    color: var(--color-primary);
}

.modal__player {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.modal__player iframe,
.modal__player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.modal__image {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    margin: 0 auto;
}

.modal__info {
    padding: 1.25rem 0 0;
}

.modal__title {
    font-size: 1.25rem;
    color: var(--color-white);
}

.modal__description {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* Prevent body scroll when modal is open */
body.modal-active {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   11. Contact
   -------------------------------------------------------------------------- */

.contact {
    position: relative;
    padding: 6rem 0;
    background-color: var(--color-dark);
}

.contact > .container {
    position: relative;
    z-index: 1;
}

.contact__grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact__intro {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.contact__email-btn {
    margin-bottom: 2rem;
}

.contact__socials {
    display: flex;
    gap: 1.25rem;
}

.contact__socials a {
    color: var(--color-white);
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.contact__socials a:hover,
.contact__socials a:focus-visible {
    opacity: 1;
    color: var(--color-primary);
}

/* Honeypot */
.contact__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Form */
.contact__form {
    position: relative;
}

.contact__field {
    margin-bottom: 1.5rem;
}

.contact__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.contact__label span {
    color: var(--color-primary);
}

.contact__input {
    width: 100%;
    padding: 0.75rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-white);
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    outline: none;
    transition: border-color 0.3s ease;
}

.contact__input:focus {
    border-color: var(--color-primary);
}

.contact__input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.contact__textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__submit {
    margin-top: 0.5rem;
    width: 100%;
}

.contact__feedback {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact__feedback.visible {
    opacity: 1;
}

.contact__feedback--success {
    background-color: rgba(72, 187, 120, 0.15);
    color: #48BB78;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.contact__feedback--error {
    background-color: rgba(245, 101, 101, 0.15);
    color: #F56565;
    border: 1px solid rgba(245, 101, 101, 0.3);
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */

.footer {
    position: relative;
    padding: 3rem 0;
    background-color: var(--color-darker);
    text-align: center;
}

.footer > .container {
    position: relative;
    z-index: 1;
}

.footer__tagline {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-style: italic;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.footer__copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.footer__socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.footer__socials a {
    color: var(--color-white);
    opacity: 0.5;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer__socials a:hover,
.footer__socials a:focus-visible {
    opacity: 1;
    color: var(--color-primary);
}

.footer__back-to-top {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.footer__back-to-top:hover,
.footer__back-to-top:focus-visible {
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   13. Animations — Scroll Reveal
   -------------------------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children handled via JS transition-delay */

/* --------------------------------------------------------------------------
   14. Focus Visible
   -------------------------------------------------------------------------- */

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

/* Remove outline for mouse clicks */
:focus:not(:focus-visible) {
    outline: none;
}

/* --------------------------------------------------------------------------
   15. Responsive — Tablet (768px)
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
    :root {
        --container-pad: 30px;
    }

    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    .section-heading { font-size: 2.5rem; }

    /* Nav — desktop layout */
    .nav__hamburger {
        display: none;
    }

    .nav__menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        transform: none;
        transition: none;
    }

    .nav__links {
        flex-direction: row;
        gap: 1.5rem;
    }

    .nav__link {
        font-size: 0.9375rem;
    }

    /* Hero */
    .hero__name {
        font-size: 4rem;
    }

    .hero__tagline {
        font-size: 1.5rem;
    }

    /* Work — sticky horizontal scroll on desktop */
    .work {
        position: sticky;
        top: 0;
        height: 100vh;
        padding: 0;
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    .work__intro {
        flex: 0 0 500px;
        padding: 0 3rem 0 3rem;
    }

    .work__track {
        overflow: visible;
        scroll-snap-type: none;
        will-change: transform;
        padding: 2rem 0;
        align-items: center;
    }

    .work__card {
        flex: 0 0 400px;
    }

    /* Work page grid */
    .work-page__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-page-hero__title {
        font-size: 3.5rem;
    }

    /* Photography — 4-column grid */
    .photography__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .photo-page__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .photo-page-hero__title {
        font-size: 3.5rem;
    }

    /* Writing page */
    .writing-page__title {
        font-size: 3rem;
    }

    .writing-page__hero {
        padding: calc(var(--nav-height) + 4rem) 0 4rem;
    }

    .writing-page__body {
        padding: 4rem 0 6rem;
    }

    /* Contact */
    .contact__grid {
        flex-direction: row;
        gap: 4rem;
    }

    .contact__info {
        flex: 0 0 40%;
    }

    .contact__form-wrapper {
        flex: 1;
    }

    .contact__submit {
        width: auto;
    }
}

/* --------------------------------------------------------------------------
   16. Responsive — Desktop (1024px)
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
    h1 { font-size: 4rem; }

    .hero__name {
        font-size: 5rem;
    }

    .hero__tagline {
        font-size: 1.75rem;
    }

    .hero::before {
        width: 800px;
        height: 800px;
    }

}

/* --------------------------------------------------------------------------
   17. Responsive — Large Desktop (1440px)
   -------------------------------------------------------------------------- */

@media (min-width: 1440px) {
    .hero__name {
        font-size: 5.5rem;
    }

    /* Align work intro with the main container */
    .work__intro {
        flex: 0 0 560px;
        padding-left: calc((100vw - var(--container-max)) / 2 + var(--container-pad));
    }

    .work-page__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .photo-page__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --------------------------------------------------------------------------
   18. Error Page (404)
   -------------------------------------------------------------------------- */

.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.error-page .container {
    text-align: center;
}

.error-page .section-counter {
    font-size: 4rem;
    letter-spacing: 0.3em;
    opacity: 0.3;
}

.error-page__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.error-page__desc {
    color: var(--color-mid-grey);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   19. Prefers Reduced Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

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

    .hero__name,
    .hero__tagline,
    .hero__description,
    .hero__cta,
    .hero__scroll-indicator {
        opacity: 1;
        transform: none;
    }

    .hero__scroll-line {
        animation: none;
    }

    .photography__card-caption {
        opacity: 1;
        transform: translateY(0);
    }
}
