/*
Theme Name: Merkura Media Type Poster
Theme URI: https://merkuramedia.com
Author: Merkura Media
Author URI: https://merkuramedia.com
Description: Type Poster redesign of the Merkura Media portfolio - giant condensed uppercase headlines, monospace metadata labels, dashed green hairline dividers, and work organized into five indexed discipline categories.
Version: 1.0.0
License: GPL v2 or later
Text Domain: merkura-media
*/

/* =========================================
   GLOBAL STYLES
   ========================================= */

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

:root {
    --bg-black: #0f0f0f;
    --brand-green: #54F700;
    --white: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-soft: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-faint: rgba(255, 255, 255, 0.4);
    --divider: 1px dashed rgba(84, 247, 0, 0.35);
    --divider-strong: 1px dashed rgba(84, 247, 0, 0.5);
    --neutral-border: 1px solid rgba(255, 255, 255, 0.12);
    --frame-border: 1px solid rgba(255, 255, 255, 0.15);
    --error-red: #ff5f57;
    --font-display: 'Archivo Black', sans-serif;
    --font-body: 'Archivo', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-logo: 'Amarante', serif;
    --content-max: 1440px;
    --side-pad: 40px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

a:hover {
    color: var(--brand-green);
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
}

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

.accent {
    color: var(--brand-green);
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 15px 32px;
    cursor: pointer;
    border: none;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: var(--brand-green);
    color: var(--bg-black);
    font-weight: 500;
}

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

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 14px 31px;
}

.btn-outline:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
}

.btn-green-outline {
    display: inline-block;
    padding: 11px 22px;
    border: 1px solid var(--brand-green);
    color: var(--brand-green);
    font-family: var(--font-mono);
    font-size: 11px;
}

.btn-green-outline:hover {
    background: var(--brand-green);
    color: var(--bg-black);
}

/* Shared section header row (dashed top border + index + title + note) */
.section-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    border-top: var(--divider);
    padding-top: 28px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.section-index {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--brand-green);
}

.section-title {
    font-family: var(--font-display);
    font-size: 28px;
    text-transform: uppercase;
    margin: 0;
    font-weight: 400;
}

.section-note {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
}

/* =========================================
   HEADER
   ========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-black);
    border-bottom: var(--divider);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-section .logo-icon {
    display: flex;
    align-items: center;
}

.logo-section .logo-icon svg,
.logo-section img.logo-icon {
    width: 24px;
    height: 24px;
}

.company-name {
    font-family: var(--font-logo);
    font-size: 18px;
    letter-spacing: 2px;
    color: var(--brand-green);
    text-transform: uppercase;
}

.company-name:hover {
    color: var(--brand-green);
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 12px;
}

.main-navigation a {
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
}

.main-navigation a:hover {
    color: var(--brand-green);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--brand-green);
}

.main-navigation .contact-menu-item a {
    color: var(--bg-black);
    background: var(--brand-green);
    padding: 8px 16px;
    font-weight: 500;
}

.main-navigation .contact-menu-item a:hover {
    background: var(--white);
    color: var(--bg-black);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(84, 247, 0, 0.5);
    color: var(--brand-green);
    font-size: 18px;
    line-height: 1;
    padding: 10px 14px;
    cursor: pointer;
    font-family: var(--font-mono);
}

/* =========================================
   PAGE HEROES
   ========================================= */

.hero-section {
    padding: 96px 0 64px;
}

.hero-kicker {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--brand-green);
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(56px, 9vw, 124px);
    line-height: 0.92;
    letter-spacing: -3px;
    text-transform: uppercase;
    margin: 0;
    font-weight: 400;
    text-wrap: balance;
}

.hero-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 12px;
}

.page-hero-section {
    padding: 80px 0 48px;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(52px, 8vw, 104px);
    line-height: 0.95;
    letter-spacing: -2.5px;
    text-transform: uppercase;
    margin: 0;
    font-weight: 400;
}

.page-hero-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.page-hero-subtitle {
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0;
}

/* =========================================
   HOME: SELECTED WORK
   ========================================= */

.selected-work-section {
    padding: 0 0 64px;
}

.selected-work-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: var(--divider);
    padding-top: 30px;
    margin-bottom: 24px;
}

.view-all-link {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.view-all-link:hover {
    color: var(--brand-green);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.work-card {
    display: block;
    transition: transform 0.2s ease;
}

.work-card:hover {
    transform: translateY(-4px);
    color: inherit;
}

.work-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: var(--neutral-border);
}

.work-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card-caption {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
}

.work-card-caption .work-card-name {
    color: var(--white);
}

.work-card-caption .work-card-meta {
    color: var(--brand-green);
}

/* =========================================
   HOME: STATS BAND
   ========================================= */

.stats-band {
    border-top: var(--divider);
    border-bottom: var(--divider);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-top: 32px;
    padding-bottom: 32px;
}

.stat-item {
    border-left: var(--divider);
    padding-left: 22px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 34px;
}

.stat-caption {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* =========================================
   HOME: ABOUT + CLIENTS
   ========================================= */

.home-about-section {
    padding: 56px 0;
}

.home-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.home-about-title {
    font-family: var(--font-display);
    font-size: 26px;
    text-transform: uppercase;
    margin: 0 0 18px;
    font-weight: 400;
}

.home-about-text {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-soft);
    margin: 0;
}

.home-about-text + .home-about-text {
    margin-top: 14px;
}

.more-link {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--brand-green);
    margin-top: 20px;
}

.more-link:hover {
    color: var(--white);
}

.clients-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.clients-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.client-row {
    display: flex;
    align-items: center;
    gap: 18px;
    border: var(--divider);
    padding: 14px 20px;
}

.client-row:hover {
    background: rgba(84, 247, 0, 0.06);
    color: inherit;
}

.client-chip {
    display: flex;
}

.client-chip img {
    height: 36px;
    object-fit: contain;
}

.client-name {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.client-arrow {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--brand-green);
}

/* =========================================
   CTA BAND
   ========================================= */

.cta-band {
    background: var(--brand-green);
    color: var(--bg-black);
}

.cta-band-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-top: 44px;
    padding-bottom: 44px;
    flex-wrap: wrap;
}

.cta-band-title {
    font-family: var(--font-display);
    font-size: 42px;
    text-transform: uppercase;
    line-height: 1;
    font-weight: 400;
}

.cta-band-sub {
    font-family: var(--font-mono);
    font-size: 12px;
    margin-top: 10px;
}

.cta-band-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-cta-dark {
    display: inline-block;
    padding: 14px 30px;
    background: var(--bg-black);
    color: var(--brand-green);
    font-family: var(--font-mono);
    font-size: 12px;
}

.btn-cta-dark:hover {
    background: var(--white);
    color: var(--bg-black);
}

.btn-cta-outline {
    display: inline-block;
    padding: 13px 29px;
    border: 1px solid var(--bg-black);
    color: var(--bg-black);
    font-family: var(--font-mono);
    font-size: 12px;
}

.btn-cta-outline:hover {
    background: var(--bg-black);
    color: var(--brand-green);
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    border-top: var(--divider);
    margin-top: auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 56px;
    flex-wrap: wrap;
    padding-top: 52px;
    padding-bottom: 44px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-section .logo-icon svg,
.footer-logo-section img.logo-icon {
    width: 26px;
    height: 26px;
}

.footer-company-name {
    font-family: var(--font-logo);
    font-size: 19px;
    letter-spacing: 2px;
    color: var(--brand-green);
    text-transform: uppercase;
}

.footer-tagline {
    font-size: 13.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.55);
    margin: 16px 0 0;
}

.footer-location {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 16px;
}

.footer-columns {
    display: flex;
    gap: 72px;
    flex-wrap: wrap;
}

.footer-col-heading {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--brand-green);
    margin-bottom: 14px;
    font-weight: 400;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-family: var(--font-mono);
    font-size: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.footer-col a:hover {
    color: var(--brand-green);
}

.footer-bottom {
    border-top: var(--divider);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 18px;
    padding-bottom: 18px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-faint);
}

.footer-credit-name {
    color: var(--brand-green);
}

/* =========================================
   WORK PAGE
   ========================================= */

.jump-links {
    display: flex;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    flex-wrap: wrap;
}

.jump-link {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.65);
}

.jump-link:hover,
.jump-link.active {
    border-color: rgba(84, 247, 0, 0.5);
    color: var(--brand-green);
}

.work-section {
    padding: 0 0 56px;
}

.work-section:last-of-type {
    padding-bottom: 64px;
}

/* Identity grid */
.identity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.identity-card {
    border: var(--neutral-border);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.identity-card:hover {
    border-color: var(--brand-green);
    transform: translateY(-4px);
}

.identity-card-media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--white);
}

.identity-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.identity-card-caption {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
}

.identity-card-caption .identity-card-year {
    color: rgba(255, 255, 255, 0.45);
}

/* Project overlay */
.project-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.82);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.project-overlay.active {
    display: flex;
}

.overlay-panel {
    background: var(--bg-black);
    border: var(--divider-strong);
    max-width: 1100px;
    width: 100%;
    max-height: 86vh;
    overflow: auto;
    position: relative;
}

.overlay-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 36px;
    height: 36px;
    font-size: 16px;
    cursor: pointer;
    font-family: var(--font-mono);
    z-index: 1;
}

.overlay-close:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
}

.overlay-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 36px;
    padding: 40px;
}

.overlay-category {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--brand-green);
    margin-bottom: 12px;
}

.overlay-title {
    font-family: var(--font-display);
    font-size: 34px;
    text-transform: uppercase;
    line-height: 1;
    margin: 0 0 18px;
    font-weight: 400;
}

.overlay-description {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-soft);
    margin: 0;
}

.overlay-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
    border-top: var(--divider);
    padding-top: 18px;
}

.overlay-meta-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--brand-green);
    margin-bottom: 5px;
}

.overlay-meta-value {
    font-size: 12.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
}

.overlay-media {
    position: relative;
    background: var(--white);
    aspect-ratio: 1;
    overflow: hidden;
}

.overlay-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.overlay-gallery-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
}

.overlay-gallery-nav.hidden {
    display: none;
}

.overlay-nav-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 8px 16px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 11px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.overlay-nav-btn:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
}

.overlay-counter {
    color: var(--brand-green);
}

/* Case study deck overlay */
.deck-panel {
    position: relative;
    background: var(--bg-black);
    border: var(--divider-strong);
    width: 100%;
    /* Cap width so the 16:9 stage + bar always fit within 86vh */
    max-width: min(1240px, calc((86vh - 46px) * 16 / 9));
}

.deck-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 13px 64px 13px 18px;
    border-bottom: var(--divider);
    font-family: var(--font-mono);
    font-size: 11px;
}

.deck-bar-title {
    color: var(--white);
    text-transform: uppercase;
}

.deck-bar-hint {
    color: var(--text-muted);
}

.deck-share {
    margin-left: auto;
    background: none;
    border: 1px dashed rgba(84, 247, 0, 0.5);
    color: var(--brand-green);
    padding: 4px 10px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 10px;
    transition: color 0.2s ease, background 0.2s ease;
}

.deck-share:hover {
    background: var(--brand-green);
    color: var(--bg-black);
}

.deck-close {
    top: 6px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 14px;
}

.deck-viewport {
    aspect-ratio: 16 / 9;
    background: #000;
}

.deck-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

@media (max-width: 900px) {
    .deck-bar-hint {
        display: none;
    }
}

/* Web design rows */
.web-row {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 32px;
    align-items: center;
}

.web-row-reverse {
    grid-template-columns: 1.1fr 0.9fr;
}

.web-row + .web-row {
    margin-top: 44px;
}

.project-title {
    font-family: var(--font-display);
    font-size: 24px;
    text-transform: uppercase;
    margin: 0;
    font-weight: 400;
}

.project-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--brand-green);
    margin: 8px 0 16px;
}

.project-description {
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.62);
    margin: 0;
}

.project-role {
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}

.project-text .btn-green-outline {
    margin-top: 18px;
}


/* Browser frame / gallery frame */
.browser-frame {
    border: var(--frame-border);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: var(--frame-border);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.browser-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.browser-dot.red { background: #ff5f57; }
.browser-dot.yellow { background: #febc2e; }
.browser-dot.green { background: #28c840; }

.browser-domain {
    margin-left: 10px;
}

.frame-counter {
    margin-left: auto;
    color: var(--brand-green);
}

.frame-live-tag {
    margin-left: auto;
    color: var(--brand-green);
}

.deck-expand {
    margin-left: 14px;
    background: none;
    border: 1px dashed rgba(84, 247, 0, 0.5);
    color: var(--brand-green);
    padding: 4px 10px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 10px;
    transition: color 0.2s ease, background 0.2s ease;
}

.deck-expand:hover {
    background: var(--brand-green);
    color: var(--bg-black);
}

.frame-live-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: var(--white);
}

.frame-viewport {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.frame-viewport.ratio-16-10 {
    aspect-ratio: 16 / 10;
}

.frame-viewport img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Square artwork (e.g. cover art) letterboxes instead of cropping */
.frame-viewport.fit-contain img {
    object-fit: contain;
}

.frame-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(84, 247, 0, 0.5);
    color: var(--brand-green);
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 15px;
    z-index: 1;
    transition: background 0.2s ease;
}

.frame-nav-btn:hover {
    background: rgba(84, 247, 0, 0.15);
}

.frame-nav-btn.prev { left: 10px; }
.frame-nav-btn.next { right: 10px; }

/* Content creation video */
.video-frame {
    position: relative;
    border: var(--frame-border);
}

.video-element {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
}

.youtube-embed {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    background: #000;
}

.video-sound-toggle {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(84, 247, 0, 0.5);
    color: var(--brand-green);
    padding: 9px 16px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 11px;
}

/* Email marketing */
.email-row {
    align-items: start;
}

.email-frame {
    border: var(--frame-border);
}

.email-meta {
    padding: 14px 18px;
    border-bottom: var(--frame-border);
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.55);
}

.email-meta-label {
    color: var(--brand-green);
}

.email-meta-subject {
    color: var(--white);
}

.email-iframe {
    display: block;
    width: 100%;
    height: 560px;
    border: none;
    background: var(--white);
}

/* Plugin UI (Chimera interactive demo) */
.plugin-intro {
    max-width: 640px;
    margin-bottom: 24px;
}

.plugin-frame {
    border: var(--frame-border);
}

/* The plugin UI pins its chassis to the window origin; the iframe renders
   at the UI's visual size and is scaled to the container width, with the
   size kept in sync by the embed's postMessage reports (see scripts.js). */
.plugin-embed-wrap {
    position: relative;
    overflow: hidden;
    background: #0e0e10;
}

.plugin-embed-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1050px;
    height: 645px;
    border: none;
    transform-origin: 0 0;
    background: #0e0e10;
}

/* =========================================
   SKILLS PAGE
   ========================================= */

.skills-section {
    padding: 0 0 56px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.skill-card {
    position: relative;
    aspect-ratio: 3 / 4;
    perspective: 1000px;
    cursor: default;
}

.skill-card-inner {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

@media (hover: hover) {
    .skill-card:hover .skill-card-inner {
        transform: rotateY(180deg);
    }
}

.skill-card.flipped .skill-card-inner {
    transform: rotateY(180deg);
}

.skill-card-front,
.skill-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.skill-card-front {
    background: var(--bg-black);
    border: 1px dashed rgba(84, 247, 0, 0.4);
}

.skill-card-back {
    background: var(--brand-green);
    color: var(--bg-black);
    transform: rotateY(180deg);
}

.skill-id {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--brand-green);
}

.skill-card-back .skill-id {
    color: var(--bg-black);
}

.skill-front-title {
    font-family: var(--font-display);
    font-size: 18px;
    text-transform: uppercase;
    line-height: 1.15;
    font-weight: 400;
}

.skill-back-text {
    font-size: 12.5px;
    line-height: 1.5;
    font-weight: 500;
}

/* Tools & technologies */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: var(--divider);
}

.tool-cell {
    padding: 24px 26px;
}

.tool-cell:nth-child(odd) {
    border-right: var(--divider);
}

.tool-cell:nth-child(-n+2) {
    border-bottom: var(--divider);
}

.tool-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--brand-green);
    margin-bottom: 10px;
}

.tool-text {
    font-size: 13.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.7);
}

/* Certifications */
.cert-panel {
    display: flex;
    justify-content: center;
    border: var(--divider);
    padding: 32px;
}

.cert-panel img {
    max-width: 620px;
    width: 100%;
}

/* =========================================
   ABOUT PAGE
   ========================================= */

.about-story-section {
    padding: 72px 0 56px;
}

.about-story-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 52px;
    align-items: start;
}

.about-photo-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 1px dashed rgba(84, 247, 0, 0.4);
}

.about-photo-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-photo-caption {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 10px;
}

.about-photo-caption .accent {
    color: var(--brand-green);
}

.about-kicker {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--brand-green);
    margin-bottom: 16px;
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 80px);
    line-height: 0.95;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin: 0;
    font-weight: 400;
}

.about-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 16px 0 0;
}

.about-paragraph {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-soft);
    margin: 14px 0 0;
}

.about-paragraph:first-of-type {
    margin-top: 24px;
}

.about-paragraph strong {
    color: var(--white);
}

.chip-row {
    display: flex;
    gap: 10px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.lang-chip {
    font-family: var(--font-mono);
    font-size: 11px;
    border: 1px dashed rgba(84, 247, 0, 0.5);
    color: var(--brand-green);
    padding: 8px 15px;
}

.resume-chip {
    font-family: var(--font-mono);
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 8px 15px;
}

.resume-chip:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
}

/* What I bring */
.bring-section {
    padding: 0 0 56px;
}

.bring-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: var(--divider);
}

.bring-cell {
    padding: 22px 24px;
}

.bring-cell:not(:last-child) {
    border-right: var(--divider);
}

.bring-id {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--brand-green);
    margin-bottom: 12px;
}

.bring-title {
    font-weight: 600;
    font-size: 14.5px;
    margin-bottom: 8px;
}

.bring-text {
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
}

/* Testimonials */
.testimonial-section {
    padding: 0 0 64px;
}

.testimonial-panel {
    border: var(--divider);
    padding: 30px 34px;
    margin: 0;
}

.testimonial-id {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--brand-green);
    margin-bottom: 16px;
}

.testimonial-quote {
    font-size: 16.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    max-width: 900px;
}

.testimonial-attribution {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 20px;
    border-top: var(--divider);
    padding-top: 16px;
    font-family: var(--font-mono);
}

.testimonial-name {
    font-size: 12px;
    color: var(--white);
    text-transform: uppercase;
}

.testimonial-role {
    font-size: 11px;
    color: var(--brand-green);
    text-transform: uppercase;
}

/* =========================================
   CONTACT PAGE
   ========================================= */

.contact-section {
    padding: 80px 0 56px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(52px, 7vw, 92px);
    line-height: 0.95;
    letter-spacing: -2.5px;
    text-transform: uppercase;
    margin: 0;
    font-weight: 400;
}

.contact-intro {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 22px 0 0;
    max-width: 380px;
}

.contact-info-list {
    margin-top: 38px;
    border-top: var(--divider);
}

.contact-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 0;
    border-bottom: var(--divider);
}

.contact-info-row:hover {
    color: inherit;
}

a.contact-info-row:hover .contact-info-value {
    color: var(--brand-green);
}

.contact-info-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--brand-green);
}

.contact-info-value {
    font-size: 13.5px;
    transition: color 0.2s ease;
}

.contact-info-value.muted {
    color: rgba(255, 255, 255, 0.8);
}

/* Form panel */
.contact-form-panel {
    border: var(--divider);
    padding: 34px 36px;
}

.form-kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--brand-green);
    margin-bottom: 8px;
}

.form-helper {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 24px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field + .form-field,
.form-row-2col + .form-field {
    margin-top: 16px;
}

.form-field label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
}

.form-field input,
.form-field textarea {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 13px 14px;
    font-size: 13px;
    font-family: var(--font-body);
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--brand-green);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-submit-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.form-submit {
    padding: 14px 34px;
    background: var(--brand-green);
    color: var(--bg-black);
    border: none;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.form-submit:hover {
    background: var(--white);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

#form-message {
    font-family: var(--font-mono);
    font-size: 11px;
}

#form-message.success {
    color: var(--brand-green);
}

#form-message.error {
    color: var(--error-red);
}

/* =========================================
   FALLBACK / GENERIC CONTENT
   ========================================= */

.generic-page-section {
    padding: 80px 0 64px;
}

.generic-page-content {
    max-width: 760px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-soft);
}

.generic-page-content h2,
.generic-page-content h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    color: var(--white);
    font-weight: 400;
    margin: 32px 0 14px;
}

.generic-page-content p {
    margin: 0 0 16px;
}

.generic-page-content a {
    color: var(--brand-green);
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
    .identity-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .bring-cell:nth-child(even) {
        border-right: none;
    }

    .bring-cell:nth-child(-n+2) {
        border-bottom: var(--divider);
    }
}

@media (max-width: 900px) {
    :root {
        --side-pad: 24px;
    }

    .header-container {
        padding: 16px 24px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-black);
        border-bottom: var(--divider);
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px 24px 20px;
    }

    .main-navigation ul li {
        width: 100%;
    }

    .main-navigation ul li a {
        display: block;
        padding: 13px 0;
    }

    .main-navigation .contact-menu-item {
        margin-top: 10px;
    }

    .main-navigation .contact-menu-item a {
        display: inline-block;
        padding: 12px 20px;
    }

    .hero-section {
        padding: 64px 0 48px;
    }

    .page-hero-section {
        padding: 56px 0 40px;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 0;
    }

    .home-about-grid,
    .about-story-grid,
    .contact-grid,
    .overlay-grid {
        grid-template-columns: 1fr;
    }

    .about-story-grid {
        gap: 36px;
    }

    .web-row,
    .web-row-reverse {
        grid-template-columns: 1fr;
    }

    .web-row .browser-frame,
    .web-row .video-frame,
    .web-row .email-frame {
        order: -1;
    }

    .overlay-grid {
        gap: 24px;
        padding: 28px 24px;
    }

    .project-overlay {
        padding: 20px;
    }

    .cta-band-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-columns {
        gap: 48px;
    }
}

@media (max-width: 640px) {
    .work-grid,
    .identity-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-cell {
        border-right: none !important;
    }

    .tool-cell:not(:last-child) {
        border-bottom: var(--divider);
    }

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

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

    .bring-cell {
        border-right: none !important;
    }

    .bring-cell:not(:last-child) {
        border-bottom: var(--divider);
    }

    .form-row-2col {
        grid-template-columns: 1fr;
    }

    .form-row-2col .form-field + .form-field {
        margin-top: 0;
    }

    .contact-form-panel {
        padding: 26px 22px;
    }

    .contact-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
