/* Shared styles for the /cases pages. Mirrors the rest of the site: black ground,
   Inter for reading, IBM Plex Mono for titles and labels, #95332C as the accent. */
:root {
    --ground: #000;
    --panel: rgba(20, 20, 20, 0.5);
    --ink: #fff;
    --ink-2: #B9B1AF;
    --ink-3: #8C8381;
    --rule: rgba(255, 255, 255, 0.16);
    --rule-soft: rgba(255, 255, 255, 0.1);
    --red: #95332C;
    --red-lit: #D66B60;
    --meter: #C4574E;
    --meter-track: #2E1715;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --mono: 'IBM Plex Mono', 'Courier New', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: var(--ground);
    color: var(--ink);
    overflow-x: hidden;
    line-height: 1.6;
}
img, video { max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* ---------- Navigation (same as the homepage) ---------- */
.nav {
    position: fixed; top: 20px; width: 100%; z-index: 1000;
    padding: 20px 40px; display: flex; justify-content: space-between; align-items: center;
    transition: transform 0.3s ease;
}
.nav.hide-on-scroll { transform: translateY(-100%); }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 50px; width: auto; display: block; }
.nav-links { display: flex; gap: 30px; }
.nav-item {
    font-size: 14px; text-transform: uppercase; letter-spacing: 1px;
    color: #fff; text-decoration: none; transition: color 0.3s ease;
}
.nav-item:hover, .nav-item[aria-current="page"] { color: var(--red); }

.menu-button {
    display: none; position: relative; width: 44px; height: 44px;
    margin-right: -10px; padding: 0; background: none; border: 0; cursor: pointer;
}
.menu-button span {
    position: absolute; left: 11px; top: 21px; width: 22px; height: 2px; background: #fff;
    transition: transform 0.3s ease, opacity 0.2s ease, background 0.3s ease;
}
.menu-button span:nth-child(1) { transform: translateY(-6px) rotate(0); }
.menu-button span:nth-child(3) { transform: translateY(6px) rotate(0); }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(0) rotate(-45deg); }
@media (hover: hover) { .menu-button:hover span { background: var(--red); } }
.menu-backdrop, .mobile-menu { display: none; }
.mobile-menu-links { display: flex; flex-direction: column; border-top: 1px solid var(--rule-soft); }
.mobile-menu-item {
    font-size: 15px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    color: #fff; text-decoration: none; padding: 18px 0;
    border-bottom: 1px solid var(--rule-soft); transition: color 0.3s ease;
}
.mobile-menu-item:last-child { border-bottom: 0; }
.mobile-menu-item:hover, .mobile-menu-item.active { color: var(--red); }

/* ---------- Hero (same treatment as home, About and Careers) ---------- */
.hero { position: relative; min-height: 72vh; overflow: hidden; background: #000; }
.hero-media {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 1; opacity: 0.6;
}
/* The Nevada footage is 720x1280 portrait shot sideways: rotate it to landscape.
   Width and height are swapped before the rotation so the box lands at the hero size. */
.hero--nevada .hero-media {
    inset: auto; top: 50%; left: 50%; width: 73vh; height: 101vw; max-width: none;
    transform: translate(-50%, -50%) rotate(-90deg); opacity: 0.92;
}
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 38%, rgba(0, 0, 0, 0) 68%),
        linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 60%);
}
.hero-content {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 10;
    max-width: 1180px; padding: 0 60px 72px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.hero-back {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-3); text-decoration: none; transition: color 0.3s ease;
}
.hero-back:hover { color: #fff; }
.hero-title {
    font-family: var(--mono); font-size: clamp(24px, 2.4vw, 36px); font-weight: 500;
    line-height: 1.3; letter-spacing: -0.01em; color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
    animation: fadeInUp 0.9s ease both;
}
.hero-title .line { display: block; }
.hero-title .soft { font-weight: 400; color: rgba(255, 255, 255, 0.8); }
.hero-description {
    max-width: 52ch; font-size: clamp(15px, 1.1vw, 17px); font-weight: 300; line-height: 1.6;
    color: rgba(255, 255, 255, 0.72); text-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-description b { color: #fff; font-weight: 600; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Spec bar under the Nevada hero ---------- */
.spec-bar { border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); padding: 18px 60px; }
.spec-inner {
    max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center;
    gap: 10px 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--ink-3);
}
.commodity-tag { border: 1px solid var(--red); color: var(--red-lit); padding: 4px 10px; font-weight: 500; }
.spec-context { color: #fff; }
.spec-techniques { margin-left: auto; }

/* ---------- Sections: label + intro, as on the rest of the site ---------- */
.content-section { padding: 96px 60px 0; }
.content-wrapper { max-width: 1200px; margin: 0 auto; width: 100%; }
.section-title {
    display: block; margin-bottom: 32px; padding-top: 28px;
    border-top: 1px solid var(--rule);
    font-family: var(--mono); font-size: clamp(20px, 2.2vw, 28px); font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-lit);
}
.section-description {
    max-width: 68ch; margin-bottom: 40px;
    font-size: clamp(17px, 1.3vw, 19px); font-weight: 300; line-height: 1.7;
    color: var(--ink-2); text-wrap: pretty;
}
.section-description p + p { margin-top: 1em; }
.section-description b, .section-description strong { color: #fff; font-weight: 500; }

/* ---------- Cases index: case card ---------- */
.case-list { list-style: none; display: flex; flex-direction: column; gap: 32px; }
.case-card {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    border: 1px solid var(--rule); background: var(--panel);
    color: inherit; text-decoration: none; transition: border-color 0.3s ease;
}
.case-card:hover { border-color: var(--red); }
.case-media { position: relative; min-height: 360px; overflow: hidden; background: #0b0b0b; }
.case-media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.15); transform-origin: 50% 100%; transition: transform 0.6s ease;
}
.case-card:hover .case-media img { transform: scale(1.19); }
.case-tag {
    position: absolute; top: 20px; left: 20px; z-index: 2;
    background: var(--red); color: #fff; padding: 5px 10px;
    font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.case-body { padding: 34px 36px 32px; display: flex; flex-direction: column; gap: 18px; }
.case-kicker {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-lit);
}
.case-title { font-family: var(--mono); font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; line-height: 1.2; }
.case-summary { font-size: 17px; font-weight: 300; line-height: 1.6; color: var(--ink-2); max-width: 48ch; }
.stat-list {
    list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
    border-top: 1px solid var(--rule); padding-top: 22px; margin-top: 6px;
}
.stat-value { display: block; font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; margin-bottom: 8px; }
.stat-label { display: block; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.case-action {
    margin-top: auto; padding-top: 20px; border-top: 1px solid var(--rule-soft);
    font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
    transition: color 0.3s ease;
}
.case-card:hover .case-action { color: var(--red-lit); }

/* ---------- Nevada: hotspot cards ---------- */
.hot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hot-card {
    display: flex; flex-direction: column; border: 1px solid var(--rule); background: var(--panel);
    color: inherit; text-decoration: none; transition: border-color 0.3s ease;
}
.hot-card:hover { border-color: var(--red); }
.hot-thumb { aspect-ratio: 1 / 1; overflow: hidden; background: #14181f; }
.hot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.hot-card:hover .hot-thumb img { transform: scale(1.04); }
.hot-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hot-rank { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.hot-name { font-family: var(--mono); font-size: 20px; font-weight: 500; line-height: 1.25; }
.hot-place { font-size: 13px; color: var(--ink-3); }
.sample-tag {
    align-self: flex-start; margin-top: 10px; padding: 3px 8px; border: 1px solid var(--rule);
    font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}
.sample-tag.held-out { border-color: var(--red); color: var(--red-lit); }
.hot-stat { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule-soft); }
.hot-stat-num { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.hot-stat-lbl { font-size: 12px; line-height: 1.35; color: var(--ink-3); }
.hot-action {
    margin-top: auto; padding-top: 16px; font-family: var(--mono); font-size: 12px;
    letter-spacing: 0.12em; text-transform: uppercase; color: #fff; transition: color 0.3s ease;
}
.hot-card:hover .hot-action { color: var(--red-lit); }

/* ---------- Stat tiles, prose lanes, statements, figures ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.stat-tile { border-top: 2px solid #fff; padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.tile-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.tile-value { font-size: clamp(36px, 3.4vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.stat-tile p { font-size: 15px; line-height: 1.6; color: var(--ink-2); font-weight: 300; }

.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
.lanes p { font-size: 16px; line-height: 1.75; color: var(--ink-2); font-weight: 300; }
.lanes p + p { margin-top: 14px; }
.lanes .lead { color: #fff; font-weight: 600; }
.lanes strong { color: #fff; font-weight: 500; }

.figure { margin: 0; }
.figure img { display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto; }
.figure figcaption { max-width: 760px; margin: 16px auto 0; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.figure figcaption strong { color: var(--ink-2); font-weight: 600; }

.deliv-row { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.deliv-row li { border-top: 2px solid #fff; padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.deliv-row li.accent { border-top-color: var(--red); }
.deliv-row h3 { font-size: 18px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; line-height: 1.3; }
.deliv-row p { font-size: 15px; line-height: 1.6; color: var(--ink-2); font-weight: 300; }

/* ---------- Closing call to action ---------- */
.closing { margin-top: 112px; padding: 96px 60px 104px; border-top: 1px solid var(--rule-soft); background: rgba(20, 20, 20, 0.5); }
.closing-inner { max-width: 1200px; margin: 0 auto; }
.closing h2 {
    font-family: var(--mono); font-size: clamp(24px, 2.6vw, 38px); font-weight: 500;
    line-height: 1.3; max-width: 28ch; margin-bottom: 20px;
}
.closing p { max-width: 60ch; font-size: 17px; font-weight: 300; line-height: 1.7; color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.cta-button {
    display: inline-block; border: 1px solid #fff; padding: 16px 28px; color: #fff; text-decoration: none;
    font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.cta-button:hover { background: var(--red); border-color: var(--red); }
.cta-button.secondary { border-color: var(--rule); color: var(--ink-2); }
.cta-button.secondary:hover { background: transparent; border-color: #fff; color: #fff; }
.cta-note { margin-top: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); }

/* ---------- Hotspot page ---------- */
.hs-header { padding: 150px 60px 0; }
.hs-crumbs {
    max-width: 1200px; margin: 0 auto; list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.hs-crumbs a { color: var(--ink-2); text-decoration: none; transition: color 0.3s ease; }
.hs-crumbs a:hover { color: #fff; }
.hs-crumbs li + li::before { content: '/'; margin-right: 8px; color: #4a4a4a; }
.hs-grid {
    max-width: 1200px; margin: 32px auto 0; display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: start;
}
.hs-rank { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-lit); }
.hs-title {
    font-family: var(--mono); font-size: clamp(34px, 4.2vw, 58px); font-weight: 500;
    line-height: 1.1; letter-spacing: -0.02em; margin: 14px 0 10px;
}
.hs-place { font-size: 17px; color: var(--ink-2); }
.hs-score { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 32px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); }
.hs-score-value { display: block; font-size: 56px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.hs-score-label { display: block; margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; }
.chip {
    padding: 5px 10px; border: 1px solid var(--rule);
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}
.chip.held-out { border-color: var(--red); color: var(--red-lit); }
.hs-overview { margin-top: 28px; font-size: 18px; font-weight: 300; line-height: 1.7; color: var(--ink-2); max-width: 60ch; }
.hs-map { margin: 0; }
.hs-map img { display: block; width: 100%; height: auto; border: 1px solid var(--rule-soft); }
.hs-map figcaption { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--ink-3); }

.meters { list-style: none; border-top: 1px solid var(--rule); }
.meter {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 5fr);
    gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule-soft);
}
.meter-label { font-size: 15px; color: #fff; }
.meter-value { font-family: var(--mono); font-size: 15px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
/* Single series: accent fill on a darker step of the same red, 12px thick,
   4px rounded at the data end and square at the baseline. */
.meter-track { position: relative; height: 12px; background: var(--meter-track); border-radius: 0 4px 4px 0; }
.meter-fill {
    position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 100%);
    background: var(--meter); border-radius: 0 4px 4px 0;
}
.meter-scale { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

.action-panel { border-top: 2px solid var(--red); padding-top: 24px; max-width: 72ch; }
.action-panel p { font-size: 16px; font-weight: 300; line-height: 1.75; color: var(--ink-2); }

.hs-downloads { display: flex; flex-wrap: wrap; gap: 16px; }
.pager {
    max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
    border-top: 1px solid var(--rule); padding-top: 28px;
}
.pager a { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.pager .next { text-align: right; align-items: flex-end; grid-column: 2; }
.pager-dir { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.pager-name { font-family: var(--mono); font-size: 22px; font-weight: 500; transition: color 0.3s ease; }
.pager a:hover .pager-name { color: var(--red-lit); }

/* ---------- Footer (same as the homepage) ---------- */
.footer { border-top: 2px solid rgba(255, 255, 255, 0.1); padding: 60px 40px; background: #000; }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.footer-column { padding: 20px; }
.footer-title {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding-bottom: 15px; margin-bottom: 20px;
    font-size: 16px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px;
}
.footer-link {
    display: block; padding: 8px 0; margin: 10px 0; font-size: 14px; color: #aaa; text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-link:hover { color: var(--red); transform: translateX(5px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 40px; padding-top: 30px; text-align: center; color: #666; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .hot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spec-techniques { margin-left: 0; }
}

@media (max-width: 900px) {
    .case-card, .hs-grid, .stat-row, .lanes, .deliv-row { grid-template-columns: 1fr; }
    .case-media { min-height: 260px; }
    .lanes { gap: 20px; }
    .stat-row, .deliv-row { gap: 36px; }
    .hs-grid { gap: 36px; }
    .meter { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
    .meter-track { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    html { scrollbar-gutter: stable; }
    .nav { top: 0; padding: 18px 20px; transition: transform 0.3s ease, background 0.3s ease; }
    .nav.nav-solid { background: rgba(0, 0, 0, 0.92); }
    .logo img { height: 32px; }
    .nav-links { display: none; }
    .menu-button { display: block; }
    .menu-backdrop {
        display: block; position: fixed; inset: 0; z-index: 980;
        background: rgba(0, 0, 0, 0.6); opacity: 0; visibility: hidden;
        transition: opacity 0.35s ease, visibility 0s linear 0.35s;
    }
    .mobile-menu {
        display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 990;
        max-height: 100vh; overflow-y: auto; padding: 80px 20px 12px;
        background: #000; border-bottom: 1px solid var(--rule-soft);
        clip-path: inset(0 0 100% 0); visibility: hidden;
        transition: clip-path 0.4s ease, visibility 0s linear 0.4s;
    }
    .mobile-menu-item {
        opacity: 0; transform: translateY(-8px);
        transition: opacity 0.3s ease var(--delay, 0s), transform 0.3s ease var(--delay, 0s), color 0.3s ease;
    }
    body.menu-open { overflow: hidden; }
    body.menu-open .menu-backdrop { opacity: 1; visibility: visible; transition: opacity 0.35s ease; }
    body.menu-open .mobile-menu { clip-path: inset(0); visibility: visible; transition: clip-path 0.4s ease; }
    body.menu-open .mobile-menu-item { opacity: 1; transform: none; }
    body.menu-open .mobile-menu-item:nth-child(1) { --delay: 0.12s; }
    body.menu-open .mobile-menu-item:nth-child(2) { --delay: 0.17s; }
    body.menu-open .mobile-menu-item:nth-child(3) { --delay: 0.22s; }
    body.menu-open .mobile-menu-item:nth-child(4) { --delay: 0.27s; }
    body.menu-open .mobile-menu-item:nth-child(5) { --delay: 0.32s; }

    .hero { min-height: 76vh; }
    .hero--nevada .hero-media { width: 77vh; }
    .hero-content { padding: 0 20px 48px; gap: 14px; }
    .hero-title { font-size: clamp(19px, 5.6vw, 24px); }
    .hero-description { font-size: 14px; }
    .spec-bar { padding: 16px 20px; }
    .content-section { padding: 72px 20px 0; }
    .section-title { font-size: 20px; padding-top: 22px; margin-bottom: 24px; }
    .section-description { font-size: 16px; }
    .case-body { padding: 26px 22px; }
    .stat-list { grid-template-columns: 1fr; gap: 16px; }
    .hot-grid { grid-template-columns: 1fr; }
    .hs-header { padding: 110px 20px 0; }
    .hs-score-value { font-size: 48px; }
    .hs-overview { font-size: 16px; }
    .closing { margin-top: 88px; padding: 72px 20px 80px; }
    .pager-name { font-size: 17px; }
    .footer-content { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
