/* ==========================================================================
   Tom Klein — Composer · Guitarist · Producer
   Modern dark portfolio, green accent
   ========================================================================== */

:root {
    --bg: #0b0e0c;
    --bg-soft: #101510;
    --bg-alt: #0e120f;
    --card: #151b16;
    --green: #3ddc84;
    --green-bright: #6ef0a8;
    --green-dark: #1e8f57;
    --green-dim: rgba(61, 220, 132, 0.14);
    --text: #eaece9;
    --muted: #9aa49b;
    --border: rgba(61, 220, 132, 0.16);
    --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
    --radius: 14px;
    --header-h: 72px;
    --font-head: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 300;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-bright); }
::selection { background: var(--green); color: #06110a; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ---------------------------------------------------------------- header */
#site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
#site-header.scrolled {
    background: rgba(8, 11, 9, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--border);
}
.header-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand img { height: 40px; width: auto; }
.main-menu { display: flex; align-items: center; gap: 28px; }
.main-menu a {
    color: var(--text);
    font-family: var(--font-head);
    font-weight: 400;
    font-size: 0.98rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 0;
    position: relative;
}
.main-menu a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s ease;
}
.main-menu a:hover { color: var(--green-bright); }
.main-menu a:hover::after { transform: scaleX(1); }
.main-menu a.nav-cta {
    color: #06110a;
    background: var(--green);
    padding: 9px 20px;
    border-radius: 999px;
    font-weight: 500;
}
.main-menu a.nav-cta::after { display: none; }
.main-menu a.nav-cta:hover { background: var(--green-bright); color: #06110a; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}
.nav-toggle span {
    width: 26px; height: 2px;
    background: var(--text);
    transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1.05); } }
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 9, 7, 0.55) 0%, rgba(6, 9, 7, 0.25) 40%, rgba(6, 9, 7, 0.85) 100%),
        radial-gradient(ellipse at center, transparent 30%, rgba(6, 9, 7, 0.6) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 40px 24px; max-width: 860px; }
.hero-logo { width: min(560px, 82vw); margin: 0 auto 26px; filter: drop-shadow(0 8px 30px rgba(0,0,0,0.55)); }
.hero-tagline {
    font-family: var(--font-head);
    font-weight: 300;
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--green);
    margin: 0 0 14px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}
.hero-sub {
    color: var(--text);
    font-size: 1.06rem;
    max-width: 520px;
    margin: 0 auto 34px;
    opacity: 0.92;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}
.hero-cta {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: #06110a;
    background: var(--green);
    padding: 15px 40px;
    border-radius: 999px;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.hero-cta:hover { background: var(--green-bright); transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(61,220,132,0.55); color: #06110a; }
.scroll-cue {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 26px; height: 44px;
    border: 2px solid rgba(234,236,233,0.5);
    border-radius: 999px;
}
.scroll-cue span {
    position: absolute;
    top: 8px; left: 50%;
    width: 4px; height: 9px;
    margin-left: -2px;
    background: var(--green);
    border-radius: 4px;
    animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------------------------------------- sections */
.section { padding: 96px 0; scroll-margin-top: var(--header-h); }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 46px; }
.kicker {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 400;
    font-size: 0.82rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 12px;
}
.section-head h2 {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: clamp(2rem, 4.5vw, 3rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
    color: var(--text);
}
.section-intro { text-align: center; max-width: 720px; margin: 0 auto 46px; color: var(--muted); font-size: 1.05rem; }

/* about */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
    margin-bottom: 56px;
}
.about-photo {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}
.about-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    pointer-events: none;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text .lead {
    font-family: var(--font-head);
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--green);
    font-size: 0.95rem;
    margin: 0 0 18px;
}
.about-text p { color: var(--muted); margin: 0 0 18px; }
.about-text p em { color: var(--text); font-style: italic; }

.feature-video { margin-bottom: 56px; }
.sailing-callout { text-align: center; max-width: 860px; margin: 0 auto; }
.sailing-callout h3 {
    font-family: var(--font-head);
    font-weight: 300;
    font-size: clamp(1.2rem, 2.6vw, 1.6rem);
    letter-spacing: 0.02em;
    color: var(--text);
    margin: 0 0 28px;
    line-height: 1.5;
}
.sailing-callout h3 em { color: var(--green); font-style: normal; }

/* video frames */
.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #050806;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* sliders */
.slider { max-width: 960px; margin: 0 auto; }
.slider-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 28px;
}
.slider-btn {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, border-color .25s ease;
}
.slider-btn:hover { background: var(--green-dim); border-color: var(--green); }
.arrow {
    width: 9px; height: 9px;
    border-top: 2px solid var(--green);
    border-right: 2px solid var(--green);
    display: inline-block;
}
.arrow-prev { transform: rotate(-135deg); }
.arrow-next { transform: rotate(45deg); }
.slider-count { font-family: var(--font-head); letter-spacing: 0.16em; color: var(--muted); font-size: 0.9rem; }

.live-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 5fr);
    gap: 40px;
    align-items: start;
    max-width: 900px;
    margin: 0 auto 48px;
}
.live-band {
    margin: 0;
}
.live-band img {
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 55%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 55%, transparent 100%);
}
.live-text p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* gallery — masonry columns, preserves natural aspect ratio */
.gallery {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 4;
    column-gap: 14px;
}
.gallery li {
    break-inside: avoid;
    margin: 0 0 14px;
}
.gallery li a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    cursor: zoom-in;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.gallery li a img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .4s ease;
}
.gallery li a:hover {
    transform: translateY(-4px);
    border-color: var(--green);
    box-shadow: 0 16px 36px -14px rgba(61,220,132,0.4);
}
.gallery li a:hover img { transform: scale(1.03); }

/* contact */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
    align-items: start;
}
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label {
    font-family: var(--font-head);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 8px;
}
.field .req { color: var(--green); }
.field input, .field textarea {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    padding: 13px 16px;
    transition: border-color .25s ease, box-shadow .25s ease;
    width: 100%;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-dim);
}
.field textarea { resize: vertical; min-height: 130px; }
.field.error input, .field.error textarea { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255,107,107,0.15); }
.field .err-msg { color: #ff8a8a; font-size: 0.82rem; margin-top: 6px; display: none; }
.field.error .err-msg { display: block; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.btn {
    font-family: var(--font-head);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: #06110a;
    background: var(--green);
    border: 0;
    border-radius: 999px;
    padding: 15px 40px;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn:hover { background: var(--green-bright); transform: translateY(-2px); box-shadow: 0 14px 36px -12px rgba(61,220,132,0.5); }
.form-status { margin: 4px 0 0; font-size: 0.95rem; min-height: 1.4em; grid-column: 1 / -1; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #ff8a8a; }

.contact-side { color: var(--muted); }
.contact-side h3 {
    font-family: var(--font-head);
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 14px;
}
.contact-side p { margin: 0 0 10px; }
.contact-side a { font-size: 1.05rem; }
.contact-studio { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.contact-studio img { width: 100%; }

/* footer */
footer {
    background: #070a08;
    border-top: 1px solid var(--border);
    padding: 64px 0 48px;
    text-align: center;
}
.footer-logo { height: 44px; margin: 0 auto 18px; }
.footer-tag {
    font-family: var(--font-head);
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--green);
    font-size: 0.85rem;
    margin: 0 0 22px;
}
.footer-contact { margin: 0 0 10px; }
.footer-contact a { color: var(--text); }
.footer-contact a:hover { color: var(--green-bright); }
.footer-contact .sep { margin: 0 12px; color: var(--green); }
.footer-copy { margin: 0; color: var(--muted); font-size: 0.85rem; }

/* lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(4, 6, 5, 0.92);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-figure {
    margin: 0;
    max-width: min(88vw, 1000px);
    max-height: 82vh;
    text-align: center;
}
.lightbox-figure img {
    max-width: 100%;
    max-height: 74vh;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
}
.lightbox-figure figcaption {
    margin-top: 14px;
    color: var(--muted);
    font-family: var(--font-head);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.lightbox-close {
    position: absolute;
    top: 24px; right: 28px;
    width: 44px; height: 44px;
    background: none;
    border: 0;
    cursor: pointer;
}
.lightbox-close span {
    position: absolute;
    top: 50%; left: 50%;
    width: 26px; height: 2px;
    background: var(--text);
}
.lightbox-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px; height: 54px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(10, 14, 11, 0.6);
    color: var(--green);
    font-size: 1.4rem;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease;
}
.lightbox-nav:hover { background: var(--green-dim); border-color: var(--green); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
    .main-menu {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        gap: 26px;
        background: rgba(6, 9, 7, 0.97);
        backdrop-filter: blur(18px);
        transform: translateY(-100%);
        transition: transform .4s ease;
        z-index: 1050;
    }
    .main-menu.open { transform: translateY(0); }
    .main-menu a { font-size: 1.35rem; }
    .nav-toggle { display: flex; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .live-row { grid-template-columns: 1fr; }
    .live-band { max-width: 340px; margin: 0 auto; }
    .live-band img { -webkit-mask-image: none; mask-image: none; }
    .slider-stage { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .section { padding: 68px 0; }
    .gallery { columns: 3; }
    .contact-form { grid-template-columns: 1fr; }
    .brand img { height: 30px; }
}
@media (max-width: 480px) {
    .gallery { columns: 2; }
    .hero-tagline { letter-spacing: 0.28em; }
}
