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

:root {
    --abyss: #1e2022;
    --abyss-soft: #2a2c2f;
    --light: #f4eee8;
    --sage: #c5b4a3;
    --mist: #d9cec3;
    --ink: #1e2022;
    --line: rgba(244, 238, 232, 0.14);
    --panel: rgba(244, 238, 232, 0.065);
    --panel-strong: rgba(244, 238, 232, 0.105);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 16px 48px rgba(0, 0, 0, 0.22);
    --shadow-lift: 0 26px 72px rgba(0, 0, 0, 0.36);
    --radius: 10px;
    --radius-sm: 7px;
    --content-max: 1480px;
    --nav-height: 113px;
    --transition: 180ms ease;
}

html {
    max-width: 100%;
    overflow-x: clip;
    scroll-padding-top: 96px;
    scroll-behavior: smooth;
}

body {
    position: relative;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: clip;
    color: var(--light);
    background:
        radial-gradient(circle at 16% 8%, rgba(197, 180, 163, 0.18), transparent 28rem),
        radial-gradient(circle at 86% 24%, rgba(244, 238, 232, 0.075), transparent 22rem),
        linear-gradient(145deg, var(--abyss), #17191b 68%, #101112);
    font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
}

.particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: 0.48;
    pointer-events: none;
}

.skip-link,
.navbar,
main,
.site-footer,
.image-modal {
    position: relative;
}

.skip-link,
.navbar,
main,
.site-footer {
    z-index: 1;
}

a {
    color: inherit;
}

img,
iframe {
    max-width: 100%;
}

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

button:focus-visible,
a:focus-visible,
.image-preview:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 2000;
    padding: 10px 14px;
    color: var(--ink);
    border-radius: var(--radius-sm);
    background: var(--light);
    font-weight: 900;
    text-decoration: none;
    transform: translateY(-140%);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(20px, 6vw, 88px);
    background: rgba(30, 32, 34, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 34px rgba(0, 0, 0, 0.12);
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 76px;
    height: 76px;
    object-fit: contain;
    object-position: left center;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(197, 180, 163, 0.34);
    border-radius: var(--radius-sm);
    background: rgba(244, 238, 232, 0.07);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--light);
    transition: transform var(--transition), opacity var(--transition);
}

.navbar.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.navbar.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.brand,
.nav-links a,
.eyebrow,
.section-kicker,
.card-tag,
.service-number,
.block-heading span,
.btn,
.studio-intro h1,
.hero h2,
.section-heading h2,
.contact-section h2,
.skill-card h3,
.timeline-item h3,
.portfolio-card h4,
.block-heading h3 {
    font-family: "Montserrat", "DM Sans", "Segoe UI", Arial, sans-serif;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(14px, 3vw, 30px);
}

.nav-links a {
    position: relative;
    color: rgba(244, 238, 232, 0.78);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color var(--transition), transform var(--transition);
}

.nav-links a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--sage);
    content: "";
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity var(--transition), transform var(--transition);
}

.nav-links a:hover,
.nav-links a.is-active,
.nav-links a[aria-current="page"] {
    color: var(--sage);
}

.nav-links a:hover::after,
.nav-links a.is-active::after,
.nav-links a[aria-current="page"]::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-links a:hover {
    transform: translateY(-1px);
}

.studio-intro,
.hero,
.section {
    padding-inline: clamp(20px, 6vw, 88px);
}

.studio-intro {
    max-width: var(--content-max);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
    min-height: calc(100svh - var(--nav-height));
    padding-top: clamp(24px, 5vh, 56px);
    padding-bottom: clamp(24px, 5vh, 56px);
    border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-kicker,
.card-tag,
.service-number,
.block-heading span {
    color: var(--sage);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.studio-intro h1,
.hero h2,
.section-heading h2,
.contact-section h2 {
    color: var(--light);
    line-height: 0.92;
    letter-spacing: 0;
}

.studio-intro h1 {
    max-width: 820px;
    margin-top: 12px;
    font-size: clamp(2.65rem, 4.8vw, 4.55rem);
    line-height: 0.98;
    text-wrap: balance;
}

.hero h2,
.section-heading h2,
.contact-section h2 {
    font-size: clamp(2.6rem, 7vw, 6.2rem);
}

.definition-card {
    display: grid;
    gap: 14px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid rgba(197, 180, 163, 0.28);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(244, 238, 232, 0.08), rgba(244, 238, 232, 0.025)),
        var(--panel);
    box-shadow: var(--shadow);
}

.definition-card p,
.section-heading p,
.hero-text,
.contact-section p {
    color: rgba(244, 238, 232, 0.74);
    font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.definition-card strong {
    color: var(--light);
}

.hero {
    position: relative;
    max-width: var(--content-max);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
    min-height: 74vh;
    padding-top: clamp(42px, 7vw, 86px);
    padding-bottom: clamp(54px, 8vw, 96px);
    isolation: isolate;
}

.hero::before {
    position: absolute;
    inset: 8% 8% auto auto;
    z-index: -1;
    width: min(42vw, 520px);
    height: min(42vw, 520px);
    border: 1px solid rgba(197, 180, 163, 0.14);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 180, 163, 0.16), transparent 64%);
    content: "";
    filter: blur(2px);
    animation: hero-glow 9s ease-in-out infinite;
}

.hero h2 {
    max-width: 820px;
    margin-top: 12px;
}

.role-line {
    max-width: 780px;
    margin-top: 18px;
    color: var(--mist);
    font-size: clamp(1rem, 2vw, 1.28rem);
    font-weight: 800;
}

.hero-text {
    max-width: 650px;
    margin-top: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.btn-primary {
    color: var(--ink);
    background:
        linear-gradient(135deg, #fff7ef, var(--light));
}

.btn-secondary {
    color: var(--light);
    border-color: rgba(197, 180, 163, 0.5);
    background: rgba(197, 180, 163, 0.08);
}

.photo-stage {
    display: grid;
    min-height: 460px;
    place-items: center;
}

.photo-frame {
    position: relative;
    width: min(100%, 410px);
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(244, 238, 232, 0.1), transparent 45%),
        var(--abyss-soft);
    box-shadow: var(--shadow-lift);
}

.photo-frame::before {
    position: absolute;
    inset: -18px;
    z-index: -1;
    content: "";
    border: 1px solid rgba(197, 180, 163, 0.2);
    border-radius: 14px;
    transform: rotate(-3deg);
}

.photo-placeholder {
    min-height: 420px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background:
        linear-gradient(145deg, rgba(244, 238, 232, 0.16), rgba(30, 32, 34, 0.2)),
        repeating-linear-gradient(90deg, rgba(244, 238, 232, 0.06) 0 1px, transparent 1px 64px),
        linear-gradient(160deg, rgba(197, 180, 163, 0.32), rgba(20, 21, 23, 0.9));
}

.photo-placeholder img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center top;
}

.photo-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 14px;
}

.caption-logo {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.section {
    width: min(100%, var(--content-max));
    margin-inline: auto;
    padding-top: clamp(92px, 10vw, 140px);
    padding-bottom: clamp(92px, 10vw, 140px);
}

.section-panel {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(197, 180, 163, 0.055);
}

.section-heading {
    display: grid;
    gap: 12px;
    max-width: 880px;
    margin-bottom: 36px;
}

.section-heading h2,
.contact-section h2 {
    font-size: clamp(2.1rem, 5vw, 4.4rem);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.skill-card,
.portfolio-card,
.timeline-item {
    border: 1px solid rgba(244, 238, 232, 0.13);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(244, 238, 232, 0.075), rgba(244, 238, 232, 0.025)),
        var(--panel);
    box-shadow: var(--shadow-soft);
}

.skills-experience-layout {
    display: grid;
    gap: 34px;
}

.skills-block,
.experience-block {
    display: grid;
    gap: 18px;
}

.subsection-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(244, 238, 232, 0.12);
}

.subsection-heading span {
    color: var(--sage);
    font-family: "Montserrat", "DM Sans", "Segoe UI", Arial, sans-serif;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.subsection-heading h3 {
    color: var(--light);
    font-family: "Montserrat", "DM Sans", "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.35rem, 2.6vw, 2.2rem);
    line-height: 1;
}

.subsection-heading-strong {
    margin-top: 10px;
    border-bottom-color: rgba(197, 180, 163, 0.36);
}

.subsection-heading-strong h3 {
    font-size: clamp(1.8rem, 4vw, 3.4rem);
}

.skill-card {
    position: relative;
    min-height: 210px;
    padding: 22px;
    overflow: hidden;
    background: rgba(244, 238, 232, 0.05);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.skill-card::after {
    position: absolute;
    inset: auto 16px 16px auto;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(197, 180, 163, 0.18);
    border-radius: 50%;
    content: "";
}

.skill-card:hover {
    border-color: rgba(197, 180, 163, 0.46);
    background: rgba(244, 238, 232, 0.07);
    box-shadow: var(--shadow-lift);
    transform: translateY(-4px);
}

.skill-card h3,
.timeline-item h3,
.portfolio-card h4 {
    margin-top: 14px;
    color: var(--light);
    font-size: 1.16rem;
}

.skill-card p,
.timeline-item p,
.portfolio-card p {
    margin-top: 10px;
    color: rgba(244, 238, 232, 0.66);
}

.timeline-list {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 0;
    padding-left: 30px;
    overflow: visible;
}

.timeline-list::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 8px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(197, 180, 163, 0.2), rgba(197, 180, 163, 0.78), rgba(197, 180, 163, 0.2));
    content: "";
}

.timeline-item {
    position: relative;
    min-height: 0;
    padding: clamp(24px, 3vw, 34px);
    overflow: visible;
    border: 1px solid rgba(197, 180, 163, 0.26);
    background:
        linear-gradient(145deg, rgba(244, 238, 232, 0.1), rgba(30, 32, 34, 0.58)),
        rgba(30, 32, 34, 0.82);
}

.timeline-item::before {
    position: absolute;
    top: 30px;
    left: -30px;
    width: 14px;
    height: 14px;
    border: 3px solid var(--abyss);
    border-radius: 50%;
    background: var(--sage);
    box-shadow: 0 0 0 5px rgba(197, 180, 163, 0.16);
    content: "";
}

.timeline-item::after {
    display: none;
}

.timeline-item span {
    color: var(--sage);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.timeline-item h3 {
    max-width: 520px;
    font-size: clamp(1.28rem, 2.4vw, 1.9rem);
    line-height: 1.08;
}

.timeline-item p {
    max-width: 520px;
    font-size: 1.02rem;
}

.tools-section {
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.tool-cloud {
    position: relative;
    max-width: 100%;
    contain: layout paint;
    overflow-x: auto;
    overflow-y: hidden;
    padding-block: 12px;
    cursor: grab;
    scrollbar-width: none;
    touch-action: pan-y;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    will-change: scroll-position;
}

.tool-cloud::-webkit-scrollbar {
    display: none;
}

.tool-cloud.is-dragging {
    cursor: grabbing;
}

.tool-cloud::before,
.tool-cloud::after {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: clamp(48px, 10vw, 140px);
    content: "";
    pointer-events: none;
}

.tool-cloud::before {
    left: 0;
    background: linear-gradient(90deg, var(--abyss), transparent);
}

.tool-cloud::after {
    right: 0;
    background: linear-gradient(270deg, var(--abyss), transparent);
}

.tool-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
}

.tool-logo {
    display: flex;
    flex: 0 0 clamp(132px, 12vw, 184px);
    min-width: 0;
    align-items: center;
    justify-content: center;
}

.tool-logo img {
    width: auto;
    max-width: min(100%, 178px);
    height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.22));
}

.tool-logo-long {
    flex-basis: clamp(132px, 12vw, 184px);
}

.tool-logo-long img {
    width: auto;
    max-width: min(100%, 178px);
    height: 98px;
    object-fit: contain;
    object-position: center;
}

.tool-logo-wide {
    flex-basis: clamp(132px, 12vw, 184px);
}

.tool-logo-wide img {
    width: auto;
    max-width: min(100%, 178px);
    height: 104px;
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }

    .hero::before,
    .contact-orbit {
        animation: none;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tool-cloud {
        will-change: auto;
    }
}

.samples-section {
    display: grid;
    gap: 42px;
}

.sample-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sample-jump-card {
    display: grid;
    min-height: 150px;
    align-content: space-between;
    gap: 12px;
    padding: 22px;
    color: inherit;
    border: 1px solid rgba(244, 238, 232, 0.16);
    border-radius: 8px;
    background: rgba(244, 238, 232, 0.07);
    text-decoration: none;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.sample-jump-card:hover {
    border-color: rgba(197, 180, 163, 0.62);
    background: rgba(244, 238, 232, 0.1);
    transform: translateY(-3px);
}

.sample-jump-card span,
.sample-subheading span {
    color: var(--sage);
    font-family: "Montserrat", "DM Sans", "Segoe UI", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sample-jump-card strong {
    color: var(--light);
    font-family: "Montserrat", "DM Sans", "Segoe UI", Arial, sans-serif;
    font-size: 1.22rem;
    line-height: 1.1;
}

.sample-jump-card small,
.block-heading p,
.sample-subheading p {
    color: rgba(244, 238, 232, 0.66);
    font-size: 0.95rem;
}

.sample-block {
    display: grid;
    gap: 22px;
    padding-top: 8px;
}

.block-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.block-heading > div {
    display: grid;
    gap: 8px;
}

.block-heading h3 {
    color: var(--light);
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1;
}

.block-heading p {
    max-width: 360px;
    text-align: right;
}

.sample-subgroup {
    display: grid;
    gap: 14px;
}

.sample-subheading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 0 2px;
}

.sample-subheading p {
    max-width: 360px;
    text-align: right;
}

.portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portfolio-card {
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.portfolio-card:hover {
    border-color: rgba(197, 180, 163, 0.58);
    box-shadow: var(--shadow-lift);
    transform: translateY(-4px);
}

.media-only {
    background: transparent;
}

.media-only .card-img {
    min-height: 360px;
}

.pubmat-showcase {
    display: grid;
    gap: 24px;
}

.pubmat-category {
    display: grid;
    gap: 14px;
    padding: clamp(16px, 2vw, 22px);
    overflow: hidden;
    border: 1px solid rgba(244, 238, 232, 0.12);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(244, 238, 232, 0.075), rgba(244, 238, 232, 0.025)),
        rgba(30, 32, 34, 0.42);
    animation: pubmat-section-rise 600ms ease both;
}

.pubmat-category:nth-child(2) {
    animation-delay: 90ms;
}

.pubmat-category:nth-child(3) {
    animation-delay: 180ms;
}

.pubmat-category:nth-child(4) {
    animation-delay: 270ms;
}

.pubmat-category:nth-child(5) {
    animation-delay: 360ms;
}

.pubmat-category:nth-child(6) {
    animation-delay: 450ms;
}

.pubmat-category:nth-child(7) {
    animation-delay: 540ms;
}

.pubmat-category-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 12px;
    align-items: baseline;
}

.pubmat-category-heading span {
    color: var(--sage);
    font-family: "Montserrat", "DM Sans", "Segoe UI", Arial, sans-serif;
    font-size: 0.76rem;
    font-weight: 900;
}

.pubmat-category-heading h4 {
    color: var(--light);
    font-family: "Montserrat", "DM Sans", "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 900;
}

.pubmat-category-heading p {
    grid-column: 2;
    color: rgba(244, 238, 232, 0.66);
    font-size: 0.92rem;
}

.pubmat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.pubmat-grid-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pubmat-card {
    position: relative;
    display: grid;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(244, 238, 232, 0.12);
    border-radius: var(--radius-sm);
    background: rgba(244, 238, 232, 0.055);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    cursor: zoom-in;
    isolation: isolate;
    aspect-ratio: 4 / 5;
    animation: pubmat-card-rise 560ms ease both;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.pubmat-card.image-preview {
    aspect-ratio: 4 / 5;
}

.pubmat-card::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(120deg, transparent 0 34%, rgba(255, 255, 255, 0.18) 46%, transparent 58% 100%);
    content: "";
    opacity: 0;
    transform: translateX(-70%);
    transition: opacity 220ms ease, transform 520ms ease;
    pointer-events: none;
}

.pubmat-card:hover,
.pubmat-card:focus-visible {
    border-color: rgba(197, 180, 163, 0.68);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.pubmat-card:hover::before,
.pubmat-card:focus-visible::before {
    opacity: 1;
    transform: translateX(78%);
}

.pubmat-card img {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
    background: #0f1011;
    transition: transform 260ms ease, filter 260ms ease;
}

.pubmat-card:hover img,
.pubmat-card:focus-visible img {
    filter: brightness(1.06) contrast(1.03);
    transform: scale(1.025);
}

.pubmat-card span {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    z-index: 2;
    padding: 8px 9px;
    color: var(--light);
    border: 1px solid rgba(244, 238, 232, 0.12);
    border-radius: 6px;
    background: rgba(20, 21, 23, 0.78);
    backdrop-filter: blur(8px);
    font-family: "Montserrat", "DM Sans", "Segoe UI", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
}

.video-carousel {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: min(100%, 1180px);
    margin-inline: auto;
    isolation: isolate;
}

.video-carousel::before {
    position: absolute;
    inset: -36px clamp(10px, 4vw, 76px) 24px;
    z-index: -1;
    border-radius: 34px;
    background:
        radial-gradient(circle at 18% 26%, rgba(244, 238, 232, 0.28), transparent 34%),
        radial-gradient(circle at 84% 20%, rgba(197, 180, 163, 0.42), transparent 32%),
        radial-gradient(circle at 50% 92%, rgba(217, 206, 195, 0.22), transparent 36%);
    content: "";
    filter: blur(34px) saturate(1.28);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 320ms ease, transform 320ms ease;
    pointer-events: none;
}

.video-carousel:is(.is-ambient, :hover, :focus-within)::before {
    opacity: 0.9;
    transform: scale(1.03);
    animation: ambient-background 5s ease-in-out infinite;
}

.video-carousel-window {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(244, 238, 232, 0.12);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 30%, rgba(244, 238, 232, 0.045), transparent 45%),
        rgba(244, 238, 232, 0.045);
    box-shadow: 0 0 0 rgba(197, 180, 163, 0);
    transition: border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.video-carousel:is(.is-ambient, :hover, :focus-within) .video-carousel-window {
    border-color: rgba(197, 180, 163, 0.5);
    background:
        radial-gradient(circle at 24% 18%, rgba(244, 238, 232, 0.13), transparent 34%),
        radial-gradient(circle at 80% 12%, rgba(197, 180, 163, 0.16), transparent 38%),
        rgba(244, 238, 232, 0.07);
    box-shadow:
        0 0 54px rgba(197, 180, 163, 0.24),
        0 26px 80px rgba(0, 0, 0, 0.36);
}

.video-grid {
    display: flex;
    transition: transform 260ms ease;
}

.video-tile {
    position: relative;
    display: grid;
    flex: 0 0 100%;
    gap: 10px;
    padding: 10px;
    background: rgba(244, 238, 232, 0.055);
    isolation: isolate;
}

.video-tile:hover {
    transform: none;
}

.video-tile::before {
    position: absolute;
    inset: 4px;
    z-index: -1;
    border-radius: 10px;
    background:
        radial-gradient(circle at 22% 18%, rgba(244, 238, 232, 0.32), transparent 28%),
        radial-gradient(circle at 80% 22%, rgba(197, 180, 163, 0.34), transparent 30%),
        linear-gradient(135deg, rgba(197, 180, 163, 0.28), rgba(244, 238, 232, 0.12), rgba(30, 32, 34, 0.05));
    content: "";
    filter: blur(26px) saturate(1.2);
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 260ms ease, transform 260ms ease;
}

.video-tile.is-ambient::before {
    opacity: 0.82;
    transform: scale(1.03);
    animation: ambient-pulse 3.8s ease-in-out infinite;
}

.video-tile > * {
    position: relative;
    z-index: 1;
}

.video-tile .card-img {
    position: relative;
}

.video-player {
    display: grid;
    place-items: center;
    min-height: clamp(240px, 44vw, 500px);
    overflow: hidden;
    border: 1px solid rgba(197, 180, 163, 0.28);
    border-radius: 8px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-player-portrait {
    width: min(100%, 315px);
    margin-inline: auto;
    aspect-ratio: 9 / 16;
}

.video-player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-player:not(.video-player-portrait) iframe {
    max-height: min(48vw, 500px);
}

.carousel-control {
    display: inline-flex;
    width: 52px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid rgba(197, 180, 163, 0.38);
    border-radius: 999px;
    background: rgba(244, 238, 232, 0.07);
    cursor: pointer;
    font-family: "Montserrat", "DM Sans", "Segoe UI", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.carousel-control:hover {
    border-color: rgba(197, 180, 163, 0.72);
    background: rgba(244, 238, 232, 0.1);
    transform: translateY(-2px);
}

.carousel-dots {
    display: flex;
    grid-column: 2;
    justify-content: center;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border: 1px solid rgba(197, 180, 163, 0.58);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.carousel-dot.is-active {
    background: var(--sage);
}

.video-tile h4 {
    margin-top: 6px;
    min-height: 30px;
    color: var(--light);
    font-family: "Montserrat", "DM Sans", "Segoe UI", Arial, sans-serif;
    font-size: clamp(1rem, 1.65vw, 1.28rem);
    font-weight: 900;
    line-height: 1.18;
    text-align: center;
}

@keyframes ambient-pulse {
    0%,
    100% {
        filter: blur(24px) saturate(1.08);
        transform: scale(1.01);
    }
    50% {
        filter: blur(32px) saturate(1.26);
        transform: scale(1.045);
    }
}

@keyframes ambient-background {
    0%,
    100% {
        filter: blur(32px) saturate(1.18);
        opacity: 0.78;
    }
    50% {
        filter: blur(42px) saturate(1.38);
        opacity: 0.95;
    }
}

@keyframes pubmat-section-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pubmat-card-rise {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-tile.is-ambient::before,
    .video-carousel:is(.is-ambient, :hover, :focus-within)::before,
    .pubmat-category,
    .pubmat-card {
        animation: none;
    }
}

.image-modal.is-open {
    display: grid;
}

.image-modal-content {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    width: min(100%, 1120px);
    max-height: calc(100vh - clamp(36px, 8vw, 96px));
}

.image-modal-title {
    color: var(--light);
    font-family: "Montserrat", "DM Sans", "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.35rem, 3vw, 2.65rem);
    line-height: 1;
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    place-items: center;
    padding: clamp(18px, 4vw, 48px);
    overflow: hidden;
    background: rgba(30, 32, 34, 0.94);
    backdrop-filter: blur(16px);
}

.image-modal-content {
    width: min(100%, 920px);
}

.image-modal-preview {
    display: grid;
    place-items: center;
    min-height: 0;
    height: min(68vh, 660px);
    overflow: hidden;
    border: 1px solid rgba(197, 180, 163, 0.35);
    border-radius: 8px;
    background: rgba(244, 238, 232, 0.055);
    box-shadow: var(--shadow);
}

.image-modal-preview .card-img {
    width: 100%;
    min-height: 0;
    height: 100%;
    border: 0;
    border-radius: 0;
    cursor: default;
}

.image-modal-preview .card-img img {
    object-fit: contain;
}

.image-modal-preview .pubmat-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 12px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: default;
    animation: none;
    aspect-ratio: auto;
    transform: none;
}

.image-modal-preview .pubmat-card::before,
.image-modal-preview .pubmat-card::after,
.image-modal-preview .pubmat-card span {
    display: none;
}

.image-modal-preview .pubmat-card img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    padding: 0;
    object-fit: contain;
    transform: none;
}

.image-modal-close {
    position: absolute;
    top: clamp(14px, 3vw, 28px);
    right: clamp(14px, 3vw, 28px);
    min-height: 44px;
    padding: 10px 16px;
    color: var(--light);
    border: 1px solid rgba(197, 180, 163, 0.42);
    border-radius: 999px;
    background: rgba(244, 238, 232, 0.08);
    cursor: pointer;
    font-family: "Montserrat", "DM Sans", "Segoe UI", Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.image-modal-close:hover {
    border-color: rgba(197, 180, 163, 0.8);
}

.card-img {
    display: flex;
    width: 100%;
    min-height: 250px;
    align-items: end;
    padding: 20px;
    border: 0;
    color: rgba(244, 238, 232, 0.86);
    cursor: default;
    font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 0.95;
    text-align: left;
}

.card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview {
    position: relative;
    min-height: 0;
    aspect-ratio: 4 / 3;
    appearance: none;
    cursor: zoom-in;
}

.image-preview::after {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 3;
    padding: 7px 10px;
    color: var(--ink);
    border-radius: 999px;
    background: rgba(244, 238, 232, 0.92);
    content: "View";
    font-family: "Montserrat", "DM Sans", "Segoe UI", Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    opacity: 0;
    text-transform: uppercase;
    transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition);
}

.image-preview:hover::after,
.image-preview:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.media-only .image-preview,
.portfolio-card .image-preview {
    min-height: 0;
}

.image-preview:hover {
    filter: brightness(1.08);
}

.card-img-video {
    background:
        linear-gradient(90deg, transparent 0 12%, rgba(244, 238, 232, 0.12) 12% 14%, transparent 14% 28%, rgba(244, 238, 232, 0.12) 28% 30%, transparent 30%),
        linear-gradient(145deg, rgba(197, 180, 163, 0.62), rgba(30, 32, 34, 0.9));
}

.card-img-stream {
    background:
        linear-gradient(145deg, rgba(244, 238, 232, 0.18), rgba(30, 32, 34, 0.86)),
        radial-gradient(circle at 70% 28%, rgba(197, 180, 163, 0.5), transparent 14rem);
}

.card-img-pubmat {
    background:
        linear-gradient(135deg, rgba(244, 238, 232, 0.18) 0 30%, transparent 30%),
        linear-gradient(45deg, var(--sage) 0 20%, transparent 20%),
        linear-gradient(145deg, rgba(217, 206, 195, 0.42), rgba(30, 32, 34, 0.92));
}

.card-img-social {
    background:
        repeating-linear-gradient(0deg, rgba(244, 238, 232, 0.1) 0 1px, transparent 1px 42px),
        linear-gradient(145deg, rgba(197, 180, 163, 0.42), rgba(20, 21, 23, 0.92));
}

.card-img-press {
    background:
        linear-gradient(145deg, rgba(30, 32, 34, 0.2), rgba(30, 32, 34, 0.72)),
        linear-gradient(45deg, var(--sage) 0 24%, transparent 24% 100%),
        linear-gradient(135deg, rgba(244, 238, 232, 0.46), rgba(42, 44, 47, 0.9));
}

.card-img-tech {
    background:
        linear-gradient(90deg, rgba(244, 238, 232, 0.13) 0 1px, transparent 1px 70px),
        linear-gradient(145deg, rgba(244, 238, 232, 0.12), rgba(197, 180, 163, 0.36), rgba(20, 21, 23, 0.92));
}

.card-content {
    padding: 24px;
}

.card-tag {
    display: inline-flex;
}

.contact-section {
    position: relative;
    display: grid;
    gap: 18px;
    margin: 0 clamp(20px, 6vw, 88px) 64px;
    padding: clamp(34px, 6vw, 68px);
    overflow: hidden;
    border: 1px solid rgba(197, 180, 163, 0.32);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(244, 238, 232, 0.1), rgba(30, 32, 34, 0.22)),
        var(--abyss-soft);
}

.contact-section > *:not(.contact-orbit) {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.contact-grid > a,
.contact-grid > span {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: var(--light);
    border: 1px solid rgba(244, 238, 232, 0.13);
    border-radius: 6px;
    background: rgba(244, 238, 232, 0.075);
    font-weight: 800;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.contact-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(197, 180, 163, 0.34);
    border-radius: 999px;
    background: rgba(197, 180, 163, 0.12);
}

.contact-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--sage);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.contact-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-grid > a:hover {
    border-color: rgba(197, 180, 163, 0.7);
}

.contact-grid > a:hover .contact-icon {
    border-color: rgba(197, 180, 163, 0.74);
    background: rgba(197, 180, 163, 0.18);
}

.site-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-inline: clamp(20px, 6vw, 88px);
    padding: 28px 0 42px;
    color: rgba(244, 238, 232, 0.68);
    border-top: 1px solid var(--line);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
}

.footer-brand img {
    width: 66px;
    height: 66px;
    object-fit: contain;
    object-position: left center;
}

.site-footer p {
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.footer-links a {
    color: rgba(244, 238, 232, 0.72);
    font-family: "Montserrat", "DM Sans", "Segoe UI", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--sage);
}

.contact-orbit {
    position: absolute;
    inset: auto 18px -210px auto;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(197, 180, 163, 0.18);
    border-radius: 50%;
    animation: orbit 14s linear infinite;
}

.contact-orbit span {
    position: absolute;
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--sage);
    box-shadow: 0 0 32px rgba(197, 180, 163, 0.7);
}

.contact-orbit span:nth-child(1) {
    top: 26px;
    left: 112px;
}

.contact-orbit span:nth-child(2) {
    top: 168px;
    right: 10px;
    width: 12px;
    height: 12px;
}

.contact-orbit span:nth-child(3) {
    bottom: 62px;
    left: 54px;
    width: 10px;
    height: 10px;
}

@keyframes orbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1060px) {
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pubmat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pubmat-grid-compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@keyframes hero-glow {
    0%,
    100% {
        opacity: 0.55;
        transform: translate3d(0, 0, 0) scale(0.98);
    }
    50% {
        opacity: 0.9;
        transform: translate3d(-18px, 14px, 0) scale(1.04);
    }
}

.reveal-on-scroll {
    --reveal-delay: 0ms;
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.985);
    transition:
        opacity 680ms ease var(--reveal-delay),
        transform 680ms cubic-bezier(0.21, 0.61, 0.35, 1) var(--reveal-delay),
        filter 680ms ease var(--reveal-delay);
    filter: blur(5px);
    will-change: opacity, transform, filter;
}

.section-heading.reveal-on-scroll,
.sample-block.reveal-on-scroll,
.contact-section.reveal-on-scroll,
.site-footer.reveal-on-scroll {
    transform: translate3d(0, 36px, 0);
}

.timeline-item.reveal-on-scroll {
    transform: translate3d(-24px, 18px, 0);
}

.skill-card.reveal-on-scroll,
.sample-jump-card.reveal-on-scroll,
.portfolio-card.reveal-on-scroll,
.pubmat-category.reveal-on-scroll {
    transform: translate3d(0, 30px, 0) scale(0.96);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
    will-change: auto;
}

@media (max-width: 900px) {
    .studio-intro,
    .hero,
    .sample-overview,
    .portfolio-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .studio-intro {
        padding-top: clamp(34px, 8vw, 58px);
        padding-bottom: clamp(34px, 8vw, 58px);
    }

    .photo-stage {
        min-height: auto;
    }

    .pubmat-grid,
    .pubmat-grid-compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 640px) {
    .navbar {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        padding-block: 12px;
    }

    .brand-logo {
        width: 62px;
        height: 62px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-top: 12px;
    }

    .navbar.is-open .nav-links {
        display: flex;
    }

    .nav-links a {
        display: flex;
        min-height: 42px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(244, 238, 232, 0.12);
        border-radius: 6px;
        background: rgba(244, 238, 232, 0.06);
        font-size: 0.72rem;
    }

    .studio-intro h1 {
        font-size: clamp(2.65rem, 13vw, 3.8rem);
    }

    .hero h2 {
        font-size: clamp(3rem, 16vw, 4.4rem);
    }

    .hero-actions,
    .btn {
        width: 100%;
    }

    .photo-placeholder {
        min-height: 330px;
    }

    .photo-placeholder img {
        height: 330px;
    }

    .media-only .card-img {
        min-height: 260px;
    }

    .media-only .image-preview,
    .portfolio-card .image-preview {
        min-height: 0;
    }

    .pubmat-grid,
    .pubmat-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .video-carousel {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
    }

    .video-carousel-window {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .video-tile {
        gap: 10px;
        padding: 8px;
    }

    .video-player {
        min-height: 0;
    }

    .video-player-portrait {
        width: min(100%, 235px);
    }

    .carousel-control {
        width: 100%;
        min-height: 46px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        grid-row: 2;
    }

    .carousel-dots {
        grid-column: 1 / -1;
    }

    .image-modal {
        align-items: start;
        padding-top: 72px;
    }

    .image-modal-title {
        font-size: clamp(1.25rem, 8vw, 2.1rem);
    }

    .image-modal-preview {
        height: min(66vh, 560px);
    }

    .sample-jump-card {
        min-height: 128px;
    }

    .block-heading,
    .sample-subheading {
        align-items: flex-start;
        flex-direction: column;
    }

    .block-heading p,
    .sample-subheading p {
        max-width: none;
        text-align: left;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .tool-track {
        gap: 24px;
    }

    .tool-logo {
        flex-basis: 116px;
        min-width: 0;
    }

    .tool-logo img {
        width: auto;
        max-width: 112px;
        height: 76px;
    }

    .tool-logo-long {
        flex-basis: 116px;
    }

    .tool-logo-long img {
        width: auto;
        max-width: 112px;
        height: 80px;
    }

    .tool-logo-wide {
        flex-basis: 116px;
    }

    .tool-logo-wide img {
        width: auto;
        max-width: 112px;
        height: 88px;
    }

    .contact-orbit {
        right: -18px;
        bottom: -150px;
        width: 260px;
        height: 260px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .footer-links {
        justify-content: flex-start;
    }
}
