/* ==========================================================================
   International Paint Warba — Components
   components.css  ·  header, navigation, hero, cards, tables, forms, footer
   Depends on the tokens declared in style.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    box-shadow: 0 1px 0 var(--border-color);
    transition: box-shadow var(--dur) var(--ease);
}

.site-header.is-stuck {
    box-shadow: var(--shadow);
}

.site-header::after {
    content: "";
    display: block;
    height: 4px;
    background-image: var(--stratum);
}

/* Utility strip */
.header-utility {
    background: var(--primary-deep);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8125rem;
    line-height: 1;
    overflow: hidden;
    max-height: var(--header-utility-h);
    transition: max-height var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.site-header.is-stuck .header-utility {
    max-height: 0;
    opacity: 0;
}

.header-utility__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sp-5);
    min-height: var(--header-utility-h);
}

.header-utility__item {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    color: inherit;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.header-utility__item svg {
    width: 13px;
    height: 13px;
    flex: none;
    opacity: 0.7;
}

.header-utility__item:hover {
    color: var(--paper);
}

/* Main bar */
.header-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-5);
    min-height: var(--header-bar-h);
    transition: min-height var(--dur) var(--ease);
}

.site-header.is-stuck .header-bar__inner {
    min-height: var(--header-bar-h-condensed);
}

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

.brand img {
    width: 219px;
    height: 57px;
    transition: transform var(--dur) var(--ease);
    transform-origin: left center;
}

.site-header.is-stuck .brand img {
    transform: scale(0.86);
}

/* --------------------------------------------------------------------------
   2. Primary navigation (desktop)
   -------------------------------------------------------------------------- */

/* Drawer chrome — revealed only once the nav becomes a panel. */
.nav__panel-head {
    display: none;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav__item {
    position: relative;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-4);
    border: 0;
    background: none;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    color: var(--steel-800);
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease);
}

.nav__link::after {
    content: "";
    position: absolute;
    left: var(--sp-4);
    right: var(--sp-4);
    bottom: calc(var(--sp-2) * -1);
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--dur) var(--ease);
}

.nav__link:hover,
.nav__link[aria-expanded="true"] {
    color: var(--primary-color);
}

.nav__link:hover::after {
    transform: scaleX(1);
}

.nav__link.is-current {
    color: var(--primary-color);
    font-weight: 600;
}

.nav__link.is-current::after {
    transform: scaleX(1);
    background-image: var(--stratum-v);
    background-color: transparent;
    height: 4px;
    bottom: calc(var(--sp-3) * -1);
}

.nav__caret {
    width: 10px;
    height: 10px;
    flex: none;
    opacity: 0.6;
    transition: transform var(--dur) var(--ease);
}

.nav__link[aria-expanded="true"] .nav__caret {
    transform: rotate(180deg);
}

.nav__external {
    width: 11px;
    height: 11px;
    flex: none;
    opacity: 0.5;
}

/* Dropdown */
.nav__dropdown {
    position: absolute;
    top: calc(100% + var(--sp-3));
    right: 0;
    z-index: 20;
    min-width: 240px;
    margin: 0;
    padding: var(--sp-2);
    list-style: none;
    background: var(--paper);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
        visibility var(--dur) var(--ease);
}

.nav__dropdown::before {
    content: "";
    position: absolute;
    inset: -1px -1px auto -1px;
    height: 4px;
    background-image: var(--stratum);
    border-radius: var(--radius) var(--radius) 0 0;
}

/* Bridges the gap between button and panel so travelling the pointer
   down into the submenu does not count as leaving the item. */
.nav__dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--sp-3) * -1);
    height: var(--sp-3);
}

.nav__item--open .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    margin-top: var(--sp-1);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--steel-800);
    border-radius: var(--radius-sm);
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.nav__dropdown a:first-child {
    margin-top: var(--sp-1);
}

.nav__dropdown a:hover {
    background: var(--primary-tint);
    color: var(--primary-color);
}

/* Hamburger */
.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--primary-color);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex: none;
}

.nav-toggle svg {
    width: 20px;
    height: 20px;
}

.nav-toggle__close {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
    display: block;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 105;
    background: rgba(12, 20, 32, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}

.nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    padding: 0.875rem 1.75rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--primary-color);
    color: var(--text-invert);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
        border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}

.btn svg {
    width: 15px;
    height: 15px;
    flex: none;
    transition: transform var(--dur) var(--ease);
}

.btn:hover {
    background: var(--primary-700);
    color: var(--text-invert);
    transform: translateY(-1px);
}

.btn:hover svg {
    transform: translateX(3px);
}

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

.btn--accent:hover {
    background: var(--accent-dark);
}

.btn--outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--primary-color);
}

.btn--outline:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-invert);
}

.btn--ghost-invert {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text-invert);
    backdrop-filter: blur(2px);
}

.btn--ghost-invert:hover {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--primary-color);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
}

/* --------------------------------------------------------------------------
   4. Home hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(78vh, 660px);
    overflow: hidden;
    background: var(--primary-deep);
    isolation: isolate;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    animation: hero-drift 24s var(--ease) forwards;
}

@keyframes hero-drift {
    from {
        transform: scale(1.06);
    }
    to {
        transform: scale(1);
    }
}

.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
            105deg,
            rgba(2, 43, 88, 0.94) 0%,
            rgba(2, 43, 88, 0.78) 38%,
            rgba(2, 43, 88, 0.28) 72%,
            rgba(2, 43, 88, 0.42) 100%
        ),
        linear-gradient(to top, rgba(12, 20, 32, 0.7) 0%, rgba(12, 20, 32, 0) 45%);
}

.hero__inner {
    padding-block: var(--sp-10) var(--sp-9);
    max-width: 46rem;
}

.hero__eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.hero__eyebrow::before {
    background-image: var(--stratum-v);
}

.hero__title {
    margin: 0 0 var(--sp-5);
    font-size: var(--fs-hero);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.03em;
    color: var(--text-invert);
    text-shadow: 0 2px 24px rgba(2, 20, 40, 0.4);
}

.hero__title span {
    display: block;
}

.hero__rule {
    width: 96px;
    height: 4px;
    margin-bottom: var(--sp-6);
    background-image: var(--stratum);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
}

.hero__foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background-image: var(--stratum);
}

/* --------------------------------------------------------------------------
   5. Page hero (inner pages) + breadcrumb
   -------------------------------------------------------------------------- */

.page-hero {
    position: relative;
    background: var(--primary-deep);
    color: var(--text-invert);
    isolation: isolate;
    overflow: hidden;
}

.page-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        100deg,
        rgba(2, 30, 62, 0.95) 0%,
        rgba(2, 43, 88, 0.86) 55%,
        rgba(3, 67, 138, 0.66) 100%
    );
}

.page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background-image: var(--stratum);
}

.page-hero__inner {
    padding-block: var(--sp-8) var(--sp-9);
}

.page-hero__title {
    margin: 0;
    font-size: var(--fs-h1);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-invert);
}

.breadcrumb {
    margin: 0 0 var(--sp-5);
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    color: rgba(255, 255, 255, 0.66);
}

.breadcrumb li + li::before {
    content: "/";
    color: rgba(255, 255, 255, 0.35);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.82);
}

.breadcrumb a:hover {
    color: var(--text-invert);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.breadcrumb [aria-current="page"] {
    color: var(--text-invert);
}

/* --------------------------------------------------------------------------
   6. Media panel (image beside prose)
   -------------------------------------------------------------------------- */

.media-panel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.media-panel img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.media-panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background-image: var(--stratum);
}

/* --------------------------------------------------------------------------
   7. Brand cards (Product & Services)
   -------------------------------------------------------------------------- */

.brand-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--sp-6);
    background: var(--paper);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
        transform var(--dur) var(--ease);
}

.brand-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background-image: var(--stratum);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--dur-slow) var(--ease);
}

.brand-card:hover,
.brand-card:focus-within {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.brand-card:hover::before,
.brand-card:focus-within::before {
    transform: scaleX(1);
}

.brand-card__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 88px;
    margin-bottom: var(--sp-5);
    padding: var(--sp-3);
    background: var(--light-color);
    border-radius: var(--radius);
}

.brand-card__mark img {
    max-height: 62px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.brand-card__name {
    margin: 0 0 var(--sp-3);
    font-size: var(--fs-h4);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--primary-color);
}

.brand-card__body {
    flex: 1 1 auto;
    margin: 0 0 var(--sp-5);
    text-align: justify;
    hyphens: auto;
    color: var(--text-color);
    line-height: 1.7;
}

.brand-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    font-weight: 500;
    letter-spacing: 0.02em;
    word-break: break-word;
    text-decoration: underline;
    text-underline-offset: 0.22em;
    text-decoration-thickness: 1px;
}

.brand-card__link svg {
    width: 12px;
    height: 12px;
    flex: none;
    opacity: 0.65;
}

/* --------------------------------------------------------------------------
   8. Brand strip (homepage)
   -------------------------------------------------------------------------- */

.brand-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.brand-strip__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 108px;
    padding: var(--sp-5) var(--sp-4);
    background: var(--paper);
    transition: background var(--dur) var(--ease);
}

.brand-strip__cell img {
    max-height: 46px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: grayscale(1);
    opacity: 0.65;
    transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease),
        transform var(--dur) var(--ease);
}

.brand-strip__cell:hover {
    background: var(--light-color);
}

.brand-strip__cell:hover img,
.brand-strip__cell:focus-visible img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   9. Spec table (Projects)
   -------------------------------------------------------------------------- */

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--paper);
    -webkit-overflow-scrolling: touch;
}

.spec-table {
    min-width: 560px;
    font-size: 0.9375rem;
}

.spec-table thead th {
    padding: var(--sp-4) var(--sp-5);
    background: var(--primary-deep);
    color: var(--text-invert);
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

.spec-table tbody td {
    padding: var(--sp-4) var(--sp-5);
    border-top: 1px solid var(--border-color);
    vertical-align: top;
    line-height: 1.5;
}

.spec-table tbody tr {
    transition: background var(--dur-fast) var(--ease);
}

.spec-table tbody tr:nth-child(even) {
    background: rgba(234, 239, 245, 0.5);
}

.spec-table tbody tr:hover {
    background: var(--primary-tint);
}

.spec-table__project {
    font-weight: 500;
    color: var(--steel-800);
    width: 62%;
}

.spec-table__client {
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--primary-color);
    white-space: nowrap;
}

.table-hint {
    display: none;
    margin: var(--sp-3) 0 0;
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. Document card (PDF)
   -------------------------------------------------------------------------- */

.doc-card {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    flex-wrap: wrap;
    padding: var(--sp-6);
    background: var(--paper);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius) var(--radius-lg) var(--radius-lg) var(--radius);
    box-shadow: var(--shadow-sm);
}

.doc-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: var(--radius);
    background: var(--primary-tint);
    color: var(--primary-color);
}

.doc-card__icon svg {
    width: 24px;
    height: 24px;
}

.doc-card__text {
    flex: 1 1 16rem;
    min-width: 0;
}

.doc-card__name {
    margin: 0 0 var(--sp-1);
    font-family: var(--font-display);
    font-size: var(--fs-h4);
    font-weight: 600;
    color: var(--dark-color);
}

.doc-card__meta {
    margin: 0;
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.doc-viewer {
    width: 100%;
    height: clamp(420px, 68vh, 780px);
    margin-top: var(--sp-6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--light-color);
}

/* --------------------------------------------------------------------------
   11. Certificate frame
   -------------------------------------------------------------------------- */

.certificate {
    max-width: 860px;
    margin-inline: auto;
}

.certificate__frame {
    display: block;
    padding: var(--sp-5);
    background: var(--paper);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.certificate__frame:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.certificate__frame img {
    width: 100%;
    border: 1px solid var(--steel-200);
    border-radius: var(--radius-sm);
}

.certificate__caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    margin: var(--sp-5) 0 0;
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.certificate__caption svg {
    width: 13px;
    height: 13px;
}

/* --------------------------------------------------------------------------
   12. Gallery + lightbox
   -------------------------------------------------------------------------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--steel-100);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease);
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 43, 88, 0.6), rgba(2, 43, 88, 0) 55%);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.05);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
    opacity: 1;
}

.gallery-item__zoom {
    position: absolute;
    right: var(--sp-4);
    bottom: var(--sp-4);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--paper);
    color: var(--primary-color);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.gallery-item__zoom svg {
    width: 15px;
    height: 15px;
}

.gallery-item:hover .gallery-item__zoom,
.gallery-item:focus-visible .gallery-item__zoom {
    opacity: 1;
    transform: translateY(0);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-5);
    background: rgba(6, 14, 26, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox__figure {
    margin: 0;
    max-width: min(1100px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.lightbox__figure img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    margin-inline: auto;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox__caption {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
}

.lightbox__btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.lightbox__btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.lightbox__btn svg {
    width: 18px;
    height: 18px;
}

.lightbox__close {
    top: var(--sp-5);
    right: var(--sp-5);
}

.lightbox__prev {
    left: var(--sp-5);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__next {
    right: var(--sp-5);
    top: 50%;
    transform: translateY(-50%);
}

/* --------------------------------------------------------------------------
   13. Contact — detail list & form
   -------------------------------------------------------------------------- */

.detail-card {
    position: relative;
    padding: var(--sp-7) var(--sp-6) var(--sp-6);
    background: var(--light-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.detail-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background-image: var(--stratum);
}

.detail-list {
    margin: 0;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: var(--sp-3) var(--sp-5);
    align-items: baseline;
}

.detail-list dt {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-top: 0.2em;
}

.detail-list dd {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.detail-list dd a {
    word-break: break-word;
}

.form-card {
    padding: var(--sp-6);
    background: var(--paper);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.field {
    margin-bottom: var(--sp-5);
}

.field:last-of-type {
    margin-bottom: var(--sp-6);
}

.field__label {
    display: block;
    margin-bottom: var(--sp-2);
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--steel-600);
}

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

.field input,
.field textarea {
    display: block;
    width: 100%;
    padding: 0.8125rem var(--sp-4);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--text-color);
    background: var(--paper);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--steel-300);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(3, 67, 138, 0.14);
}

.field input:focus-visible,
.field textarea:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 1px;
}

.field textarea {
    min-height: 150px;
    resize: vertical;
}

.field__error {
    display: block;
    margin-top: var(--sp-2);
    font-size: var(--fs-small);
    color: var(--accent-dark);
    min-height: 0;
}

.field.has-error input,
.field.has-error textarea {
    border-color: var(--accent-color);
}

.form-note {
    margin: var(--sp-5) 0 0;
    padding-top: var(--sp-5);
    border-top: 1px solid var(--border-color);
    font-size: var(--fs-small);
    color: var(--text-muted);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   14. Call-to-action band
   -------------------------------------------------------------------------- */

.cta-band {
    position: relative;
    background: var(--primary-deep);
    color: rgba(255, 255, 255, 0.82);
    overflow: hidden;
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background-image: var(--stratum);
}

.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-6);
    padding-block: var(--sp-8);
}

.cta-band__text {
    max-width: 52ch;
}

.cta-band__title {
    margin: 0 0 var(--sp-2);
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--text-invert);
}

.cta-band__meta {
    margin: 0;
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    letter-spacing: 0.04em;
}

.cta-band__meta a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.cta-band__meta a:hover {
    color: var(--text-invert);
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.66);
    font-size: var(--fs-small);
}

.site-footer::before {
    content: "";
    display: block;
    height: 4px;
    background-image: var(--stratum);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: var(--sp-8);
    padding-block: var(--sp-9);
}

.footer__logo {
    width: 219px;
    height: 57px;
    margin-bottom: var(--sp-5);
}

.footer__member {
    margin: 0;
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
}

.footer__title {
    margin: 0 0 var(--sp-5);
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: var(--sp-3);
}

.footer__list a {
    color: rgba(255, 255, 255, 0.66);
    transition: color var(--dur-fast) var(--ease), padding-left var(--dur-fast) var(--ease);
}

.footer__list a:hover {
    color: var(--text-invert);
    padding-left: var(--sp-2);
}

.footer__details {
    margin: 0;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: var(--sp-3) var(--sp-4);
}

.footer__details dt {
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.footer__details dd {
    margin: 0;
    line-height: 1.55;
}

.footer__details a {
    color: rgba(255, 255, 255, 0.78);
    word-break: break-word;
}

.footer__details a:hover {
    color: var(--text-invert);
}

.footer__bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-4);
    padding-block: var(--sp-5);
}

.footer__copyright {
    margin: 0;
    font-size: var(--fs-eyebrow);
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   16. Back to top
   -------------------------------------------------------------------------- */

.to-top {
    position: fixed;
    right: var(--sp-5);
    bottom: var(--sp-5);
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--primary-700);
    border-radius: var(--radius);
    background: var(--primary-color);
    color: var(--text-invert);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
        visibility var(--dur) var(--ease), background var(--dur) var(--ease);
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    background: var(--primary-deep);
}

.to-top svg {
    width: 17px;
    height: 17px;
}

/* --------------------------------------------------------------------------
   17. Scroll reveal
   Elements start hidden only once JS confirms it can observe them, so the
   page stays fully readable with JavaScript disabled.
   -------------------------------------------------------------------------- */

.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.js-reveal [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
