/* Defaults — runtime overrides from Brand (config/brand.php or Brand admin) */
:root {
    --color-primary: #0c1222;
    --color-secondary: #eef1f5;
    --color-accent: #c6a35a;
    --color-surface: #f7f8fb;
    --color-primary-soft: #3d4759;
    --color-accent-dark: #9e7d35;
    --color-accent-soft: rgba(198, 163, 90, 0.16);
    --color-on-primary: #ffffff;

    --ink: var(--color-primary);
    --ink-soft: var(--color-primary-soft);
    --mist: var(--color-secondary);
    --mist-deep: #e2e7ee;
    --surface: var(--color-surface);
    --accent: var(--color-accent);
    --accent-deep: var(--color-accent-dark);
    --accent-soft: var(--color-accent-soft);
    --white: #ffffff;
    --line: rgba(12, 18, 34, 0.1);
    --line-strong: rgba(12, 18, 34, 0.18);
    --shadow: 0 24px 60px rgba(12, 18, 34, 0.1);
    --shadow-soft: 0 10px 30px rgba(12, 18, 34, 0.06);
    --radius: 18px;
    --font-display: "Instrument Serif", Georgia, serif;
    --font-body: "Manrope", "Segoe UI", sans-serif;
    --header-h: 76px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(900px 480px at 0% 0%, rgba(198, 163, 90, 0.09), transparent 55%),
        radial-gradient(800px 500px at 100% 10%, rgba(12, 18, 34, 0.05), transparent 50%),
        var(--mist);
    line-height: 1.7;
    font-size: 1.02rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent-deep);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: color 0.2s var(--ease);
}

a:hover {
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 200;
    background: var(--ink);
    color: var(--white);
    padding: 0.65rem 1rem;
    border-radius: 999px;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(238, 241, 245, 0.82);
    backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
    background: rgba(247, 248, 251, 0.94);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px rgba(12, 18, 34, 0.05);
}

.page-home .site-header:not(.is-scrolled) {
    background: transparent;
    position: absolute;
    inset-inline: 0;
}

.page-home .site-header:not(.is-scrolled) .brand-name,
.page-home .site-header:not(.is-scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
}

.page-home .site-header:not(.is-scrolled) .btn-nav {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff !important;
}

.page-home .site-header:not(.is-scrolled) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    min-height: var(--header-h);
}

.header-bar {
    gap: 0.75rem;
}

.container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.brand-logo-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.brand-logo,
.brand-logo-static,
.footer-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

.brand-logo-wrap .brand-logo {
    position: absolute;
    inset: 0;
    transition: opacity 0.25s var(--ease);
}

/* Default: circular mark for light headers */
.brand-logo--light { opacity: 1; }
.brand-logo--dark { opacity: 0; }

/* Home hero (transparent dark header): show white monogram */
.page-home .site-header:not(.is-scrolled) .brand-logo--light { opacity: 0; }
.page-home .site-header:not(.is-scrolled) .brand-logo--dark { opacity: 1; }

.brand-name {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
    max-width: 12rem;
}

.nav-link {
    color: var(--ink-soft) !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.45rem 0.7rem !important;
    position: relative;
}

.nav-link.active,
.nav-link:hover {
    color: var(--ink) !important;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.15rem;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.btn-nav {
    border: 1px solid var(--ink);
    border-radius: 999px;
    margin-left: 0.4rem;
    padding-inline: 1.1rem !important;
}

.btn-nav.active::after {
    display: none;
}

.navbar-toggler {
    border-color: var(--line);
    padding: 0.4rem 0.55rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(12, 18, 34, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    color: var(--white);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(12, 18, 34, 0.88) 0%, rgba(12, 18, 34, 0.55) 48%, rgba(12, 18, 34, 0.35) 100%),
        linear-gradient(180deg, rgba(12, 18, 34, 0.15) 0%, rgba(12, 18, 34, 0.82) 100%),
        var(--hero-image, url("../img/gallery/tedx-osogbo.png")) center/cover no-repeat;
    transform: scale(1.06);
    animation: heroZoom 16s var(--ease) forwards;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: clamp(3.5rem, 8vh, 5.5rem);
    padding-top: calc(var(--header-h) + 4rem);
    max-width: 920px;
}

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    max-width: 12ch;
}

.hero-title {
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 600;
    margin: 0 0 0.9rem;
    letter-spacing: -0.01em;
}

.hero-lead {
    max-width: 34rem;
    font-size: 1.08rem;
    opacity: 0.9;
    margin-bottom: 1.1rem;
    font-weight: 500;
}

.hero-proof {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.75rem;
}

.hero-proof::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--accent);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* Buttons */
.btn {
    transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-color: var(--ink);
    --bs-btn-hover-bg: #d4b46d;
    --bs-btn-hover-border-color: #d4b46d;
    --bs-btn-hover-color: var(--ink);
    --bs-btn-active-bg: var(--accent-deep);
    --bs-btn-active-border-color: var(--accent-deep);
    --bs-btn-active-color: var(--white);
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.btn-outline-light {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255, 255, 255, 0.55);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.12);
    --bs-btn-hover-border-color: #fff;
    --bs-btn-hover-color: #fff;
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    font-weight: 700;
}

.btn-outline-dark {
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: var(--line-strong);
    --bs-btn-hover-bg: var(--ink);
    --bs-btn-hover-border-color: var(--ink);
    --bs-btn-hover-color: #fff;
    border-radius: 999px;
    padding: 0.8rem 1.4rem;
    font-weight: 700;
}

/* Sections */
.section {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section-muted {
    background: var(--surface);
}

.section-story {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent),
        var(--mist);
}

.section-cta {
    background:
        radial-gradient(700px 300px at 50% 0%, rgba(198, 163, 90, 0.18), transparent 60%),
        var(--ink);
    color: rgba(255, 255, 255, 0.88);
}

.section-cta .section-title {
    color: #fff;
}

.section-cta .section-text {
    color: rgba(255, 255, 255, 0.72);
}

.narrow {
    max-width: 720px;
}

.section-head {
    margin-bottom: 2.25rem;
    max-width: 40rem;
}

.section-title,
.page-hero h1 {
    font-family: var(--font-display);
    letter-spacing: -0.025em;
    color: var(--ink);
    font-weight: 400;
    line-height: 1.15;
}

.section-title {
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    margin-bottom: 0.85rem;
}

.section-intro,
.section-text,
.page-hero .lead {
    font-size: 1.08rem;
    color: var(--ink-soft);
    font-weight: 500;
}

.page-hero {
    padding: calc(var(--header-h) + 3.5rem) 0 2rem;
}

.page-hero-tiyc {
    background:
        linear-gradient(120deg, rgba(198, 163, 90, 0.14), transparent 55%),
        var(--surface);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent-deep);
    margin-bottom: 0.85rem;
}

.text-link {
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 0.1rem;
}

.text-link:hover {
    color: var(--accent-deep);
    border-bottom-color: var(--accent-deep);
}

/* Trust / credentials */
.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 1.75rem;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink-soft);
    letter-spacing: 0.02em;
}

.trust-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* Content lists */
.press-strip {
    display: grid;
    gap: 0;
    margin: 0.5rem 0 1.5rem;
}

.press-item,
.press-entry,
.work-teaser,
.post-teaser,
.service-block {
    display: block;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
    transition: padding 0.25s var(--ease);
}

.press-item:hover,
.work-teaser:hover {
    padding-left: 0.35rem;
}

.press-item:hover .press-title,
.work-teaser h3 a:hover,
.post-teaser h2 a:hover,
.post-teaser h3 a:hover {
    color: var(--accent-deep);
}

.press-outlet,
.work-client {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: var(--accent-deep);
    margin-bottom: 0.45rem;
}

.press-title,
.work-teaser h3,
.post-teaser h2,
.post-teaser h3 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2vw, 1.6rem);
    font-weight: 400;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.work-teaser h3 a,
.post-teaser h2 a,
.post-teaser h3 a,
.press-entry h2 a {
    color: inherit;
    text-decoration: none;
}

.work-teaser p,
.post-teaser p {
    color: var(--ink-soft);
    margin: 0;
}

.tech-stack {
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin-top: 0.75rem !important;
}

.press-entry {
    padding: 2rem 0;
}

.press-entry-lead h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.press-note {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.press-hero-actions {
    margin-top: 1.5rem;
}

.press-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    align-items: center;
    margin-top: 1rem;
}

.media-feature {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .media-feature {
        grid-template-columns: 1fr 1.15fr;
        gap: 3rem;
    }
}

.media-feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.media-feature-visual {
    min-width: 0;
}

.media-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink);
    box-shadow: var(--shadow);
}

.media-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.media-poster {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: #fff;
}

.media-poster img,
.media-poster-static img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.media-poster-static {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink);
    box-shadow: var(--shadow);
}

.media-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(12, 18, 34, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 1.15rem;
    padding-left: 0.15rem;
}

.media-poster-label {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(12, 18, 34, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.invite-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .invite-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.invite-card {
    display: block;
    padding: 1.5rem 1.35rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.invite-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.invite-card h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 400;
    margin: 0 0 0.55rem;
}

.invite-card p {
    color: var(--ink-soft);
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.hero-proof a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.prose h2 {
    font-family: var(--font-display);
    font-weight: 400;
    margin-top: 2.4rem;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
}

.prose p,
.prose li {
    font-size: 1.08rem;
    color: var(--ink-soft);
}

.prose strong {
    color: var(--ink);
}

.about-photo-wrap {
    margin: 0 0 2rem;
}

.about-photo-wrap .portrait-frame {
    max-width: 240px;
}

.about-photo.home-portrait {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 4 / 5;
    border: 0;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2.25rem 0;
}

.same-as-list {
    padding-left: 1.1rem;
    word-break: break-all;
}

.post-teaser time {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 0.5rem;
}

.post-teaser-cat {
    margin: -0.15rem 0 0.45rem;
    font-size: 0.82rem;
    font-weight: 650;
}

.post-teaser-cat a {
    color: var(--accent-deep);
    text-decoration: none;
}

.post-teaser-cat a:hover {
    text-decoration: underline;
}

.byline {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
}

.contact-form .form-label {
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}

.contact-form .form-control {
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: var(--white);
    padding: 0.8rem 1rem;
    box-shadow: none;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.contact-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.contact-form .g-recaptcha {
    margin: 0.35rem 0 0.5rem;
}

/* Portrait / gallery */
.home-portrait {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 28px;
    border: 0;
    box-shadow: var(--shadow);
    display: block;
}

.portrait-frame {
    position: relative;
    display: inline-block;
    max-width: 400px;
    width: 100%;
    vertical-align: top;
}

.portrait-frame.gallery-media {
    background: transparent;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.portrait-frame.gallery-media .home-portrait {
    max-width: none;
    border-radius: 0;
    box-shadow: none;
}

.portrait-frame::after {
    content: "";
    position: absolute;
    inset: 14px -14px -14px 14px;
    border: 1px solid var(--accent);
    border-radius: 28px;
    z-index: -1;
    opacity: 0.55;
    pointer-events: none;
}

.tiyc-hero-logo {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 22px;
    margin-bottom: 1.35rem;
    box-shadow: var(--shadow-soft);
}

.gallery-filters {
    margin-bottom: 2rem;
    margin-inline: calc(-1 * max(1rem, env(safe-area-inset-left)));
    padding-inline: max(1rem, env(safe-area-inset-left));
}

.gallery-filters-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gallery-filters-track::-webkit-scrollbar {
    display: none;
}

.gallery-filter {
    flex: 0 0 auto;
    text-decoration: none;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 1.05rem;
    font-weight: 700;
    font-size: 0.86rem;
    background: rgba(255, 255, 255, 0.85);
    scroll-snap-align: start;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.gallery-filter.is-active,
.gallery-filter:hover {
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
}

@media (min-width: 768px) {
    .gallery-filters {
        margin-inline: 0;
        padding-inline: 0;
    }

    .gallery-filters-track {
        flex-wrap: wrap;
        overflow: visible;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-grid-home {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.gallery-grid-about {
    grid-template-columns: repeat(2, 1fr);
    margin: 1rem 0 2rem;
}

.eyebrow-accent {
    color: var(--accent);
}

.gallery-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--ink);
    color: inherit;
    text-decoration: none;
    margin: 0;
    box-shadow: var(--shadow-soft);
}

.gallery-card-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    text-align: left;
    color: inherit;
}

.gallery-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--ink);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.55s var(--ease), filter 0.55s var(--ease);
    filter: saturate(0.92);
}

.gallery-card:hover img,
.gallery-card-trigger:focus-visible img {
    transform: scale(1.05);
    filter: saturate(1.05);
}

.gallery-card-trigger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.gallery-zoom-hint {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(12, 18, 34, 0.72);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    pointer-events: none;
}

.gallery-card:hover .gallery-zoom-hint,
.gallery-card-trigger:focus-visible .gallery-zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card figcaption,
.gallery-card-label {
    display: block;
    padding: 0.95rem 1.05rem 1.1rem;
    background: var(--white);
    color: var(--ink);
}

.gallery-card-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
}

.gallery-card figcaption strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
}

.gallery-card figcaption span {
    display: block;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.gallery-cat {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem !important;
    font-weight: 800;
    color: var(--accent-deep) !important;
    margin-bottom: 0.3rem;
}

.gallery-empty {
    color: var(--ink-soft);
}

/* Gallery lightbox */
.gallery-lightbox {
    width: min(1120px, calc(100vw - 1.5rem));
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 1.5rem);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: #fff;
    overflow: visible;
}

.gallery-lightbox::backdrop {
    background: rgba(8, 12, 22, 0.88);
    backdrop-filter: blur(6px);
}

.gallery-lightbox-shell {
    position: relative;
    padding: 0.5rem;
}

.gallery-lightbox-figure {
    margin: 0;
    background: #0c1222;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox-media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(58vh, 520px);
    background: #0a0f1a;
}

.gallery-lightbox-media img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(72vh, 760px);
    object-fit: contain;
}

.gallery-lightbox-figure figcaption {
    padding: 1rem 1.25rem 1.15rem;
    background: linear-gradient(180deg, rgba(12, 18, 34, 0.96), #0c1222);
}

.gallery-lightbox-figure figcaption strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.gallery-lightbox-figure figcaption span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.45;
}

.gallery-lightbox-figure figcaption span:empty {
    display: none;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    z-index: 2;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox-close {
    top: -0.15rem;
    right: -0.15rem;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.6rem;
    line-height: 1;
}

.gallery-lightbox-nav {
    top: 42%;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.8rem;
    line-height: 1;
    transform: translateY(-50%);
}

.gallery-lightbox-prev { left: 0.35rem; }
.gallery-lightbox-next { right: 0.35rem; }

.gallery-lightbox-count {
    margin: 0.65rem 0 0;
    text-align: center;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 767.98px) {
    .gallery-lightbox {
        width: calc(100vw - 0.75rem);
        max-height: calc(100vh - 0.75rem);
    }

    .gallery-lightbox-nav {
        top: auto;
        bottom: 5.5rem;
        transform: none;
    }

    .gallery-lightbox-prev { left: 0.75rem; }
    .gallery-lightbox-next { right: 0.75rem; }

    .gallery-zoom-hint {
        opacity: 1;
        transform: none;
    }
}

/* Footer */
.site-footer {
    margin-top: 0;
    padding: 4.5rem 0 1.75rem;
    background:
        radial-gradient(700px 280px at 10% 0%, rgba(198, 163, 90, 0.12), transparent 55%),
        #080c16;
    color: rgba(255, 255, 255, 0.78);
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.75rem;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.55rem;
    color: #fff;
    margin: 0;
    font-weight: 400;
}

.footer-tiyc-link {
    display: inline-block;
    margin-top: 1.25rem;
    text-decoration: none;
}

.footer-tiyc-logo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.footer-tag,
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.85rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    padding-bottom: env(safe-area-inset-bottom);
}

/* Mobile offcanvas nav */
.mobile-nav {
    --bs-offcanvas-width: min(88vw, 360px);
    background: var(--surface);
    border-left: 1px solid var(--line);
}

.mobile-nav .offcanvas-header {
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 1.25rem;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0.35rem 0.15rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}

.mobile-nav-list a.active {
    color: var(--accent-deep);
}

.mobile-nav-list a.active::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-left: auto;
}

.mobile-nav-tag {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
    font-weight: 600;
}

/* Contact */
.contact-aside {
    padding: 0.25rem 0 1rem;
}

.contact-points {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}

.contact-points li {
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}

.contact-points li:last-child {
    border-bottom: 1px solid var(--line);
}

.contact-point-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 0.35rem;
}

.contact-quick-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
}

.contact-form-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1.35rem;
    box-shadow: var(--shadow-soft);
}

.btn-lg-touch {
    min-height: 48px;
    padding-inline: 1.6rem;
    width: 100%;
}

@media (min-width: 576px) {
    .btn-lg-touch {
        width: auto;
    }

    .contact-form-panel {
        padding: 1.75rem;
    }
}

.alert {
    border: 0;
    border-radius: 14px;
    font-weight: 600;
}

.alert-success {
    background: rgba(22, 120, 80, 0.1);
    color: #0f5c3d;
}

.alert-danger {
    background: rgba(160, 40, 40, 0.1);
    color: #8a1f1f;
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1.1rem, env(safe-area-inset-bottom));
    z-index: 90;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

body.has-scrolled .back-to-top {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-deep);
}

/* Motion */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    animation: riseIn 0.95s var(--ease) forwards;
}

.reveal.delay-1 { animation-delay: 0.1s; }
.reveal.delay-2 { animation-delay: 0.2s; }
.reveal.delay-3 { animation-delay: 0.3s; }
.reveal.delay-4 { animation-delay: 0.4s; }

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes riseIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroZoom {
    to {
        transform: scale(1);
    }
}

@media (max-width: 991px) {
    .brand-name {
        font-size: 0.88rem;
        max-width: 10.5rem;
    }

    .page-home .site-header:not(.is-scrolled) {
        background: rgba(12, 18, 34, 0.42);
        backdrop-filter: blur(12px);
    }

    .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        border-radius: 12px;
        border-color: rgba(255, 255, 255, 0.25);
        background: rgba(255, 255, 255, 0.08);
    }

    .site-header.is-scrolled .navbar-toggler,
    body:not(.page-home) .navbar-toggler {
        border-color: var(--line);
        background: rgba(255, 255, 255, 0.65);
    }

    .hero {
        min-height: min(92svh, 820px);
    }

    .hero-content {
        padding-bottom: max(3rem, env(safe-area-inset-bottom));
    }

    .hero-brand {
        max-width: none;
        font-size: clamp(2.35rem, 11vw, 3.4rem);
    }

    .hero-actions {
        gap: 0.7rem;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
        min-height: 48px;
        text-align: center;
        justify-content: center;
        display: inline-flex;
        align-items: center;
    }

    .section {
        padding: clamp(3.25rem, 8vw, 5rem) 0;
    }

    .page-hero {
        padding: calc(var(--header-h) + 2.25rem) 0 1.25rem;
    }

    .page-hero h1 {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }

    .gallery-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-card-label {
        font-size: 0.82rem;
        padding: 0.7rem 0.8rem 0.85rem;
    }

    .trust-row {
        gap: 0.65rem 1rem;
    }

    .section-cta .hero-actions .btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 575px) {
    .gallery-grid-home,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid-about {
        grid-template-columns: 1fr;
    }

    .home-portrait {
        max-width: 100%;
        border-radius: 22px;
    }

    .portrait-frame.gallery-media {
        border-radius: 22px;
    }

    .portrait-frame::after {
        display: none;
    }

    .about-actions .btn,
    .hero-actions .btn {
        width: 100%;
    }

    .work-teaser,
    .post-teaser,
    .press-item {
        padding: 1.25rem 0;
    }

    .footer-tiyc-logo {
        width: 64px;
        height: 64px;
    }

    .tiyc-hero-logo {
        width: 96px;
        height: 96px;
        border-radius: 18px;
    }

    .brand-name {
        max-width: 8.8rem;
        font-size: 0.82rem;
    }
}

@media (hover: none) {
    .btn:hover {
        transform: none;
    }

    .gallery-card:hover img {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal,
    .reveal-on-scroll,
    .hero-media,
    .gallery-card img,
    .btn {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
