/* ========================================
   ONE-TEN.BE — Modern Outdoor / Overland
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --sandglow:       #D4A017;
    --sandglow-light: #E8C547;
    --sandglow-dark:  #A67C00;

    --ink:        #0E0E0E;   /* near-black hero/bands */
    --ink-soft:   #1A1A1A;
    --ink-card:   #1F1F1F;
    --paper:      #F7F5EE;   /* off-white body */
    --paper-warm: #EFEBDD;
    --white:      #FFFFFF;

    --stone:      #4A4A45;
    --stone-mid:  #6B6B66;
    --stone-light:#A8A89F;

    --line:       rgba(0,0,0,0.08);
    --line-dark:  rgba(255,255,255,0.10);

    --font-display: 'Inter', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, monospace;

    --max-width: 1280px;
    --gap: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    font-feature-settings: 'cv11', 'ss01', 'ss03';
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============= BUTTONS ============= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1.05em 1.8em;
    border: 1.5px solid transparent;
    border-radius: 999px;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary {
    background: var(--sandglow);
    color: var(--ink);
    border-color: var(--sandglow);
}
.btn-primary:hover {
    background: var(--sandglow-light);
    border-color: var(--sandglow-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(212,160,23,0.35);
}
.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover {
    border-color: var(--sandglow);
    color: var(--sandglow);
}
.btn-arrow::after {
    content: '→';
    font-family: var(--font-mono);
    font-weight: 400;
    transition: transform 0.25s ease;
}
.btn:hover .btn-arrow::after,
.btn-arrow:hover::after { transform: translateX(4px); }

/* ============= HEADER ============= */
.site-header {
    background: var(--ink);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line-dark);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    color: var(--white);
    line-height: 1;
}
.logo h1 a { color: inherit; }
.logo .dash { color: var(--sandglow); margin: 0 0.05em; font-weight: 400; }
.logo .tagline {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--stone-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2.2rem;
    align-items: center;
}
.nav-links a {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    transition: color 0.2s;
    padding: 0.5em 0;
    position: relative;
}
.nav-links a:hover { color: var(--sandglow); }
.nav-links a.nav-cta {
    background: var(--sandglow);
    color: var(--ink);
    padding: 0.7em 1.3em;
    border-radius: 999px;
}
.nav-links a.nav-cta:hover {
    background: var(--sandglow-light);
    color: var(--ink);
}
.nav-links a.nav-cta[aria-current="page"] {
    background: transparent;
    color: var(--sandglow);
    border: 1.5px solid var(--sandglow);
    padding: calc(0.7em - 1.5px) calc(1.3em - 1.5px);
    cursor: default;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}
.nav-links a.nav-cta[aria-current="page"]::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sandglow);
    box-shadow: 0 0 8px var(--sandglow);
    animation: navDotPulse 2s ease-in-out infinite;
}
@keyframes navDotPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.2); }
}

/* ============= HERO ============= */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    background:
        url('img/hero.jpg')
        center/cover no-repeat;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(14,14,14,0.35) 0%, rgba(14,14,14,0.15) 35%, rgba(14,14,14,0.95) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
    width: 100%;
}
.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--sandglow);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.hero-eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--sandglow);
}
.hero-content h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--white);
    margin-bottom: 1.5rem;
    max-width: 18ch;
}
.hero-content h2 em {
    font-style: normal;
    color: var(--sandglow);
}
.hero-lead {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: var(--stone-light);
    max-width: 540px;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.hero-coord {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--stone-light);
    letter-spacing: 0.1em;
    margin-left: 0.5rem;
}

/* ============= STATS BAND ============= */
.stats-band {
    background: var(--ink);
    color: var(--white);
    padding: 3.5rem 0;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.stat {
    border-left: 1px solid var(--line-dark);
    padding-left: 1.5rem;
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--white);
    margin-bottom: 0.4rem;
}
.stat-num .unit {
    font-size: 0.5em;
    color: var(--sandglow);
    margin-left: 0.15em;
    font-weight: 600;
}
.stat-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--stone-light);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ============= FEATURED BAND ============= */
.featured {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ink);
}
.featured-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: saturate(0.9) contrast(1.05);
}
.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14,14,14,0.85) 0%, rgba(14,14,14,0.45) 70%, rgba(14,14,14,0.2) 100%);
}
.featured-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 1.5rem;
    width: 100%;
}
.featured-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--sandglow);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.featured-eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--sandglow);
}
.featured-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: var(--white);
    margin-bottom: 1.3rem;
    max-width: 12ch;
}
.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.2rem 0;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    max-width: 600px;
}
.featured-meta-item {
    display: flex;
    flex-direction: column;
}
.featured-meta-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.featured-meta-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--stone-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.featured-lead {
    font-size: 1.05rem;
    color: var(--stone-light);
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ============= SECTIONS ============= */
.section {
    padding: 6rem 0;
}
.section-dark {
    background: var(--ink);
    color: var(--white);
}
.section-head {
    margin-bottom: 3.5rem;
    max-width: 760px;
}
.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--sandglow-dark);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.section-eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--sandglow);
}
.section-dark .section-eyebrow { color: var(--sandglow); }
.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 1rem;
}
.section-dark .section-title { color: var(--white); }
.section-intro {
    font-size: 1.05rem;
    color: var(--stone-mid);
    max-width: 600px;
    line-height: 1.6;
}
.section-dark .section-intro { color: var(--stone-light); }

/* ============= TRIPS ============= */
.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}
.trip-card {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
    border-radius: 4px;
    background: var(--ink-card);
    transition: transform 0.3s ease;
}
.trip-card:hover { transform: translateY(-6px); }
.trip-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.trip-card:hover .trip-img { transform: scale(1.08); }
.trip-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14,14,14,0) 35%, rgba(14,14,14,0.85) 100%);
    z-index: 1;
    transition: background 0.3s;
}
.trip-card:hover::before {
    background: linear-gradient(180deg, rgba(14,14,14,0.1) 0%, rgba(14,14,14,0.9) 100%);
}
.trip-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    color: var(--white);
}
.trip-year {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--sandglow);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    display: block;
}
.trip-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--white);
    display: block;
}
.trip-crew {
    display: block;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--stone-light);
    letter-spacing: 0.02em;
    line-height: 1.4;
}
.trip-img--placeholder {
    background:
        linear-gradient(135deg, var(--ink-soft) 0%, var(--ink-card) 100%);
    position: relative;
}
.trip-img--placeholder::after {
    content: 'TERUEL';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 0.2em;
    color: rgba(212,160,23,0.25);
}

/* ============= CREW ============= */
.crew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.crew-card {
    background: var(--ink-card);
    border-radius: 4px;
    border: 1px solid var(--line-dark);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.crew-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212,160,23,0.4);
    box-shadow: 0 14px 30px rgba(0,0,0,0.4);
}
.crew-photo {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: var(--ink-soft);
    filter: saturate(0.85) contrast(1.05);
    transition: filter 0.4s ease;
    position: relative;
    overflow: hidden;
}
.crew-photo-frame {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    z-index: 1;
}
.crew-photo-frame:only-child { opacity: 1; }

/* 2-frame carousel — 8s cycle, 4s per frame */
.crew-photo--n2 .crew-photo-frame { animation: crewCycle2 8s infinite ease-in-out; }
.crew-photo--n2 .crew-photo-frame:nth-child(1) { animation-delay: 0s; }
.crew-photo--n2 .crew-photo-frame:nth-child(2) { animation-delay: 4s; }
@keyframes crewCycle2 {
    0%   { opacity: 0; }
    6%   { opacity: 1; }
    44%  { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 0; }
}

/* 3-frame carousel — 12s cycle */
.crew-photo--n3 .crew-photo-frame { animation: crewCycle3 12s infinite ease-in-out; }
.crew-photo--n3 .crew-photo-frame:nth-child(1) { animation-delay: 0s; }
.crew-photo--n3 .crew-photo-frame:nth-child(2) { animation-delay: 4s; }
.crew-photo--n3 .crew-photo-frame:nth-child(3) { animation-delay: 8s; }
@keyframes crewCycle3 {
    0%   { opacity: 0; }
    4%   { opacity: 1; }
    29%  { opacity: 1; }
    33%  { opacity: 0; }
    100% { opacity: 0; }
}

/* 4-frame carousel — 16s cycle */
.crew-photo--n4 .crew-photo-frame { animation: crewCycle4 16s infinite ease-in-out; }
.crew-photo--n4 .crew-photo-frame:nth-child(1) { animation-delay: 0s; }
.crew-photo--n4 .crew-photo-frame:nth-child(2) { animation-delay: 4s; }
.crew-photo--n4 .crew-photo-frame:nth-child(3) { animation-delay: 8s; }
.crew-photo--n4 .crew-photo-frame:nth-child(4) { animation-delay: 12s; }
@keyframes crewCycle4 {
    0%   { opacity: 0; }
    3%   { opacity: 1; }
    22%  { opacity: 1; }
    25%  { opacity: 0; }
    100% { opacity: 0; }
}

/* Show first frame immediately (no initial fade-in delay on page load) */
.crew-photo--n2 .crew-photo-frame:first-child,
.crew-photo--n3 .crew-photo-frame:first-child,
.crew-photo--n4 .crew-photo-frame:first-child { opacity: 1; }

.crew-card:hover .crew-photo-frame { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
    .crew-photo-frame { animation: none !important; opacity: 0; }
    .crew-photo-frame:first-child { opacity: 1; }
}
.crew-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14,14,14,0) 60%, rgba(14,14,14,0.55) 100%);
    pointer-events: none;
    z-index: 2;
}
.crew-card:hover .crew-photo {
    filter: saturate(1) contrast(1.05);
}
.crew-card .crew-num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--sandglow);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    display: block;
    padding: 1.2rem 1.4rem 1.3rem;
}
.crew-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--white);
    padding: 0 1.4rem 1.4rem;
}
.crew-card .aka {
    display: block;
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--sandglow-light);
    font-style: italic;
    margin-top: 0.15rem;
}

/* ============= LINKS ============= */
.section-quiet {
    padding: 3rem 0;
    background: var(--paper-warm);
    border-top: 1px solid var(--line);
}
.section-head--inline {
    margin-bottom: 1.5rem;
}
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.9rem;
}
.link-card {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    background: transparent;
    padding: 0.7rem 0;
    border: none;
    border-bottom: 1px solid var(--line);
    transition: all 0.2s ease;
}
.link-card::after {
    content: '↗';
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--stone-light);
    transition: all 0.2s;
    margin-left: auto;
}
.link-card:hover {
    border-bottom-color: var(--sandglow);
}
.link-card:hover::after { color: var(--sandglow); transform: translate(2px, -2px); }
.link-card h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.link-card p {
    font-size: 0.78rem;
    color: var(--stone-mid);
    line-height: 1.4;
    margin-left: auto;
    margin-right: 0.6rem;
    text-align: right;
    max-width: 180px;
    display: none;
}

/* ============= FOOTER ============= */
.site-footer {
    background: var(--ink);
    border-top: 1px solid var(--line-dark);
    padding: 3rem 0;
    text-align: center;
}
.site-footer p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--stone-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
    .stat:nth-child(3) { border-left: none; padding-left: 0; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: var(--ink);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        align-items: stretch;
        border-bottom: 1px solid var(--line-dark);
    }
    .nav-links.open { display: flex; }
    .nav-links li {
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--line-dark);
    }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a.nav-cta { text-align: center; }

    .hero { min-height: 80vh; align-items: flex-start; }
    .hero-overlay {
        background:
            linear-gradient(180deg,
                rgba(14,14,14,0.75) 0%,
                rgba(14,14,14,0.50) 30%,
                rgba(14,14,14,0.55) 65%,
                rgba(14,14,14,0.95) 100%);
    }
    .hero-content { padding-top: 5rem; padding-bottom: 3rem; max-width: 32ch; }
    .hero-eyebrow { font-size: 0.72rem; }
    .hero-content h2 {
        font-size: clamp(2rem, 9vw, 3rem);
        margin-bottom: 1rem;
        text-shadow: 0 2px 14px rgba(0,0,0,0.55);
    }
    .hero-lead {
        font-size: 0.95rem;
        max-width: none;
        margin-bottom: 1.75rem;
        text-shadow: 0 1px 8px rgba(0,0,0,0.7);
        color: var(--white);
    }
    .featured { min-height: 60vh; }
    .featured-bg { background-attachment: scroll; }
    .featured-content { padding: 4rem 1.5rem; }

    .section { padding: 4rem 0; }
    .stats-band { padding: 2.5rem 0; }
}

@media (max-width: 480px) {
    .trips-grid { grid-template-columns: 1fr; }
    .crew-grid, .links-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .stat { border-left: none !important; padding-left: 0 !important; }
    .featured-meta { gap: 1.5rem; }
    .btn { width: 100%; justify-content: center; }
}
