:root {
    --ink: #eeeeec;
    --muted: #a5a5a3;
    --accent: #d78b00;
    --line: rgba(255, 255, 255, 0.13);
    --panel: rgba(8, 12, 16, 0.89);
    --header-height: 72px;
    --content-width: 900px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background-color: #0b0e11;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    font: 13px/1.52 Arial, Helvetica, sans-serif;
}

.page-about { background-image: url('../images/12_home.webp'); }
.page-cast { background-image: url('../images/ff_cliffs.jpg'); }
.page-crew { background-image: url('../images/fishing.jpg'); }
.page-trailer { background-image: url('../images/bg_01.jpg'); }
.page-poster { background-image: url('../images/s18_walkin.jpg'); }
.page-tonga { background-image: url('../images/10_home.webp'); }
.page-galleries { background-image: url('../images/13_home.webp'); }
.page-404 { background-image: url('../images/12_home.webp'); }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
iframe { max-width: 100%; border: 0; }

.skip-link {
    position: fixed;
    top: 0.6rem;
    left: 0.6rem;
    z-index: 100;
    padding: 0.65rem 0.9rem;
    color: #111;
    background: #fff;
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: relative;
    z-index: 20;
    display: grid;
    min-height: var(--header-height);
    padding: 0 36px;
    grid-template-columns: minmax(330px, 1fr) auto minmax(190px, 1fr);
    column-gap: 24px;
    align-items: center;
    background: linear-gradient(180deg, rgba(4, 9, 14, 0.94), rgba(7, 12, 17, 0.76) 70%, rgba(7, 12, 17, 0));
}
.brand { display: block; width: 450px; max-width: 100%; }
.brand img { display: block; width: 100%; }
.site-navigation { display: flex; gap: 0.2rem; justify-content: center; align-items: center; white-space: nowrap; }
.site-navigation a {
    padding: 1rem 0.95rem;
    color: var(--accent);
    font: 700 10px/1 Arial, Helvetica, sans-serif;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
}
.site-navigation a:hover,
.site-navigation a[aria-current='page'] { color: #fff; }
.social-links { display: flex; padding-left: 1.1rem; gap: 0.78rem; align-items: center; justify-self: end; }
.social-links a {
    display: inline-grid;
    width: 24px;
    height: 24px;
    color: #fff;
    font-size: 20px;
    place-items: center;
    text-decoration: none;
}
.social-links a:hover { color: var(--accent); }
.social-links .fa-imdb { font-size: 22px; }
.menu-toggle { display: none; }

main { min-height: calc(100vh - var(--header-height)); }
.content-shell {
    width: min(calc(100% - 40px), var(--content-width));
    min-height: 400px;
    margin: 18px auto 62px;
    padding: 28px 38px 42px;
    background: var(--panel);
    border: 1px solid var(--accent);
    border-radius: 7px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.34);
}
.content-shell.narrow { max-width: 760px; }

.legacy-content h1.cufon {
    margin: 0;
    color: #eee;
    font: 300 42px/1.1 'Avenir Next Condensed', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.015em;
}
.legacy-content h2 {
    margin: 25px 0 7px;
    font: 300 30px/1.15 'Avenir Next Condensed', 'Helvetica Neue', Arial, sans-serif;
}
.legacy-content h3,
.legacy-content h6 {
    margin: 22px 0 6px;
    color: var(--accent);
    font: 300 21px/1.15 'Avenir Next Condensed', 'Helvetica Neue', Arial, sans-serif;
}
.legacy-content p { margin: 0 0 12px; color: #d0d0cf; }
.legacy-content hr { clear: both; margin: 10px 0 18px; border: 0; border-top: 1px solid var(--line); }
.legacy-content .orange_title { color: var(--accent); }
.legacy-content .gray_ital { color: #b6b6b4; font-style: italic; }
.legacy-content .one_half { float: left; width: calc(50% - 10px); margin-right: 20px; }
.legacy-content .one_half.last { margin-right: 0; }
.legacy-content .one_third { float: left; width: 33.333%; min-height: 102px; padding: 0 16px 10px 0; }
.legacy-content .one_fourth { float: left; width: 25%; min-height: 48px; padding: 0 14px 10px 0; }
.legacy-content .clear, .legacy-content br.clear { clear: both; }
.legacy-content .cast_border {
    padding: 2px;
    background: #080808;
    border: 1px solid #999;
    box-shadow: none;
}
.legacy-content img.aligncenter { display: block; margin: 12px auto; }
.legacy-content img.alignleft { float: left; margin: 2px 12px 8px 0; }
.legacy-content img.alignright { float: right; margin: 2px 0 8px 12px; }
.legacy-content .pp_gallery { display: contents; }
.legacy-content .pp_gallery img { cursor: zoom-in; }

.page-about .legacy-content > p:first-of-type img,
.page-tonga .legacy-content > p:first-of-type img { width: 100%; margin-top: 0; }
.page-about .legacy-content .pp_gallery img { width: 68px; height: 45px; object-fit: cover; }

.page-cast .content-shell { max-width: 890px; }
.page-cast .legacy-content > p:nth-of-type(2),
.page-cast .legacy-content > p:nth-of-type(3) { display: none; }
.page-cast .legacy-content .one_third img { width: 92px; height: 92px; object-fit: cover; }
.page-cast .legacy-content .one_fourth { min-height: 50px; }

.page-crew .legacy-content .one_half { min-height: 150px; }
.page-crew .legacy-content .one_half img { width: 200px; height: 145px; object-fit: cover; }
.page-crew .legacy-content .one_half p { margin: 0; }
.page-crew .legacy-content .one_half > span {
    display: block;
    line-height: 1.45;
}
.page-crew .legacy-content .one_half > br { display: none; }
.page-crew .legacy-content .one_half a[href^="mailto:"] { display: none; }
.page-crew .social_crew { display: inline-block; margin: 4px 4px 0 0; }
.page-crew .social_crew a {
    display: inline-grid;
    width: 22px;
    height: 22px;
    color: #eee;
    background: #777;
    border-radius: 50%;
    font-size: 12px;
    place-items: center;
    text-decoration: none;
}
.page-crew .social_crew a:hover { color: #fff; background: var(--accent); }
.page-crew .social_crew .fa-imdb { font-size: 14px; }

.page-galleries .content-shell { max-width: 930px; }
.page-galleries .legacy-content > div:first-of-type .pp_gallery {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
}
.page-galleries .legacy-content > div:first-of-type .pp_gallery p { display: contents; }
.page-galleries .legacy-content > div:first-of-type .pp_gallery img {
    display: block;
    width: 100%;
    height: 50px;
    margin: 0;
    object-fit: cover;
}
.page-galleries .legacy-content .one_half.last .pp_gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.page-galleries .legacy-content .one_half.last .pp_gallery p { display: contents; }
.page-galleries .legacy-content .one_half.last img { width: 100%; height: 50px; margin: 0; object-fit: cover; }

.page-poster .content-shell { max-width: 930px; }
.page-poster .legacy-content .one_fourth { min-height: 290px; text-align: center; }
.page-poster .legacy-content .one_fourth img { width: 100%; max-width: 180px; height: 240px; float: none; margin: 0 auto 10px; object-fit: cover; }

.page-trailer .content-shell { max-width: 930px; }
.page-trailer iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; margin: 3px 0 20px; }
.page-trailer .trailer-interview { margin-top: 2rem; }
.page-trailer .trailer-interview img { width: 180px; height: auto; margin-bottom: 1rem; }
.page-tonga .content-shell { max-width: 850px; }
.page-tonga iframe { display: block; width: 100%; aspect-ratio: 1.36; height: auto; }

.site-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: flex;
    min-height: 45px;
    padding: 0 36px;
    color: #ddd;
    background: linear-gradient(0deg, rgba(0,0,0,0.88), rgba(0,0,0,0.45), transparent);
    font: 9px Arial, sans-serif;
    align-items: center;
    justify-content: space-between;
}
.site-footer a { color: #ddd; text-decoration: none; }

.hero { position: relative; display: grid; min-height: calc(100vh - var(--header-height)); padding: 4rem clamp(2rem, 8vw, 8rem); align-items: end; overflow: hidden; }
.hero-slides, .hero-slide, .hero-shade { position: absolute; inset: 0; }
.hero-slide { background-position: center; background-size: cover; opacity: 0; transform: scale(1.02); transition: opacity 1.6s ease, transform 8s linear; }
.hero-slide.is-active { opacity: 1; transform: scale(1.08); }
.hero-shade { background: linear-gradient(180deg, rgba(0,0,0,0.06) 20%, rgba(0,0,0,0.78) 100%); }
.hero-content { position: relative; z-index: 2; max-width: none; padding-bottom: 5vh; }
.eyebrow { margin: 0 0 0.9rem; color: var(--accent); font: 700 0.72rem Arial, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; }
.hero h1 { max-width: none; margin: 0; font-size: min(4.5vw, 4.8rem); line-height: 0.98; letter-spacing: -0.035em; white-space: nowrap; text-shadow: 0 3px 22px #000; }
.hero-content > p:not(.eyebrow) { max-width: none; margin: 1.25rem 0 1.75rem; color: #dfdbd2; font-size: min(1.5vw, 1.1rem); white-space: nowrap; }
.hero-actions { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.button { display: inline-block; padding: 0.85rem 1.25rem; color: #141312; background: var(--accent); border: 1px solid var(--accent); font: 700 0.72rem Arial, sans-serif; letter-spacing: 0.09em; text-decoration: none; text-transform: uppercase; }
.button:hover { color: #111; background: #f0ae5c; }
.text-link { color: #fff; font: 700 0.78rem Arial, sans-serif; text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-credit { position: absolute; right: 2rem; bottom: 1rem; z-index: 2; margin: 0; color: rgba(255,255,255,0.55); font: 0.62rem Arial, sans-serif; letter-spacing: 0.15em; text-transform: uppercase; }

.lightbox { width: min(94vw, 1100px); max-width: none; padding: 0; background: transparent; border: 0; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,0.9); backdrop-filter: blur(4px); }
.lightbox img { display: block; max-height: 82vh; margin: auto; box-shadow: 0 18px 60px #000; }
.lightbox p { margin: 0.8rem 0 0; color: #ddd; text-align: center; }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; width: 44px; height: 44px; color: #fff; background: rgba(0,0,0,0.6); border: 1px solid #777; border-radius: 50%; font-size: 1.8rem; cursor: pointer; }
.lightbox-nav { position: fixed; top: 50%; z-index: 2; width: 54px; height: 54px; padding: 0 0 5px; color: #fff; background: rgba(0,0,0,0.62); border: 1px solid #777; border-radius: 50%; font: 3rem/1 Arial, sans-serif; cursor: pointer; transform: translateY(-50%); }
.lightbox-nav:hover, .lightbox-nav:focus-visible, .lightbox-close:hover, .lightbox-close:focus-visible { color: #111; background: var(--accent); border-color: var(--accent); }
.lightbox-previous { left: 1rem; }
.lightbox-next { right: 1rem; }

@media (max-width: 1250px) {
    .site-header { grid-template-columns: minmax(230px, 1fr) auto minmax(120px, 1fr); column-gap: 16px; padding: 0 22px; }
    .brand { width: min(340px, 100%); }
    .site-navigation { gap: 0; }
    .site-navigation a { padding-inline: 0.65rem; }
    .social-links { padding-left: 0; gap: 0.55rem; }
}

@media (max-width: 900px) {
    :root { --header-height: 68px; }
    body { background-attachment: scroll; }
    .site-header { position: relative; display: flex; min-height: var(--header-height); padding: 0 14px; }
    .brand { width: 245px; }
    .menu-toggle { display: block; order: 3; margin-left: 0.8rem; padding: 0.5rem 0.65rem; color: #fff; background: rgba(0,0,0,.2); border: 1px solid #777; font: 700 10px Arial, sans-serif; text-transform: uppercase; }
    .site-navigation { position: absolute; inset: var(--header-height) 0 auto; display: none; padding: 0.7rem 1.1rem 1rem; background: rgba(5,9,13,0.97); flex-direction: column; align-items: stretch; }
    .site-navigation.is-open { display: flex; }
    .site-navigation a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
    .social-links { display: flex; order: 2; margin-left: auto; padding-left: 0; }
    .content-shell { width: calc(100% - 20px); margin-top: 10px; padding: 22px 20px 35px; }
    .legacy-content .one_half,
    .legacy-content .one_third { float: none; width: 100%; margin-right: 0; }
    .legacy-content .one_fourth { width: 50%; }
    .page-galleries .legacy-content > div:first-of-type .pp_gallery { grid-template-columns: repeat(4, 1fr); }
    .page-galleries .legacy-content .one_half.last .pp_gallery { grid-template-columns: repeat(3, 1fr); }
    .page-crew .legacy-content .one_half { min-height: 145px; }
    .site-footer { position: relative; padding: 12px 14px; }
}

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