/* Subrevtech Homepage Styles */

/* ── HERO ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    display: flex;
    align-items: center;
    padding-top: 0;
    overflow: hidden;
  }

  .hero-watermark {
    position: absolute;
    width: 95%;
    max-width: 1400px;
    right: -22%;
    bottom: -10%;
    opacity: 0.10;
    mix-blend-mode: luminosity;
    pointer-events: none;
    z-index: 1;
    filter: grayscale(1) contrast(1.2);
    user-select: none;
  }

  .hero-circle,
  .hero-cross {
    z-index: 2;
    position: relative;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 64px 80px 52px;
    position: relative;
    z-index: 2;
  }

  .hero-right {
    position: relative;
    background: var(--charcoal);
    overflow: hidden;
  }

  .hero-right-inner {
    position: absolute;
    inset: 0;
    background: 
      radial-gradient(ellipse at 60% 40%, rgba(180,180,180,0.04) 0%, transparent 65%),
      var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(var(--border) 1px, transparent 1px),
      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.5;
  }

  .hero-circle {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-circle::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px solid var(--border);
  }

  .hero-circle::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(180,180,180,0.06);
    border: 1px solid rgba(180,180,180,0.15);
  }

  .hero-cross {
    position: absolute;
    width: 340px;
    height: 340px;
    opacity: 0.15;
  }

  .hero-cross::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: var(--silver);
    transform: translateY(-50%);
  }

  .hero-cross::after {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 1px;
    background: var(--silver);
    transform: translateX(-50%);
  }

  .hero-eyebrow {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.2s;
  }

  .hero-title {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(52px, 6vw, 80px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.35s;
  }

  .hero-title em {
    font-style: italic;
    color: var(--silver);
  }

  .hero-body {
    font-size: 15px;
    font-weight: 300;
    color: var(--light);
    line-height: 1.75;
    max-width: 380px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.5s;
  }

  .hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.65s;
  }

  .btn-primary {
    padding: 13px 28px;
    background: var(--accent);
    color: var(--black);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    display: inline-block;
  }

  .btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
  }

  .btn-ghost {
    padding: 12px 28px;
    border: 1px solid var(--border-light);
    color: var(--subtle);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
    display: inline-block;
  }

  .btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  /* ── DIVIDER ── */
  .divider-bar {
    background: var(--charcoal);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    overflow: hidden;
  }

  .divider-stat {
    flex: 1;
    padding: 24px 40px;
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .divider-stat:last-child { border-right: none; }

  .ds-num {
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    color: var(--silver);
    line-height: 1;
  }

  .ds-label {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.04em;
    line-height: 1.4;
  }

  /* ── CATEGORIES ── */
  .categories {
    padding: 56px 52px 96px;
    background: var(--off-black);
  }

  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 52px;
  }

  .section-eyebrow {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--subtle);
    margin-bottom: 12px;
  }

  .section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.1;
  }

  .section-link {
    font-size: 13px;
    color: var(--subtle);
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
  }

  .section-link:hover {
    color: var(--accent);
    border-color: var(--accent);
  }

  .cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--border);
  }

  .cat-card {
    background: var(--off-black);
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: background 0.25s;
  }

  .cat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }

  .cat-card:hover { background: var(--charcoal); }
  .cat-card:hover::after { transform: scaleX(1); }

  .cat-img-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
  }

  .cat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1) brightness(0.45);
    transition: filter 0.5s, transform 0.4s;
  }

  .cat-card:hover .cat-img-wrap img {
    filter: grayscale(0) contrast(1.05) brightness(0.85);
    transform: scale(1.04);
  }

  .cat-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 70px;
    background: linear-gradient(transparent, var(--off-black));
    pointer-events: none;
    transition: background 0.25s;
  }

  .cat-card:hover .cat-img-wrap::after {
    background: linear-gradient(transparent, var(--charcoal));
  }

  .cat-body {
    padding: 16px 24px 24px;
  }

  .cat-count {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 5px;
  }

  .cat-name {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--white) !important;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .cat-arrow {
    font-size: 13px;
    color: var(--silver);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s;
    font-weight: 300;
  }

  .cat-card:hover .cat-arrow { opacity: 1; transform: translateX(0); }

  /* ─── HERO ─────────────────────────────────────── */

  .hero-section {
    min-height: 82vh;
    display: flex;
    align-items: center;
    background: var(--deep);
    position: relative;
    overflow: hidden;
  }

  .hero-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
  }

  .hero-watermark img {
    width: 70%;
    max-width: 700px;
    opacity: 0.055;
    mix-blend-mode: luminosity;
    filter: grayscale(1);
    user-select: none;
  }

  .hero-circle,
  .hero-cross {
    position: absolute;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
  }

  .hero-left {
    flex: 1;
    padding: 80px 64px 80px 80px;
    position: relative;
    z-index: 1;
  }

  .hero-right {
    width: 420px;
    flex-shrink: 0;
    padding: 80px 80px 80px 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
  }

  .hero-right-inner {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--border-light);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .hero-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(var(--border) 1px, transparent 1px),
      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
  }

  .hero-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px solid var(--silver);
    position: relative;
    z-index: 1;
  }

  .hero-circle::before {
    content: '';
    position: absolute;
    inset: 24px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
  }

  .hero-circle::after {
    content: '';
    position: absolute;
    inset: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
  }

  .hero-cross {
    position: absolute;
    z-index: 1;
    opacity: 0.6;
  }

  .hero-cross::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -40px;
    right: -40px;
    height: 1px;
    background: var(--silver);
    transform: translateY(-50%);
  }

  .hero-cross::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -40px;
    bottom: -40px;
    width: 1px;
    background: var(--silver);
    transform: translateX(-50%);
  }

  .hero-eyebrow {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent);
  }

  .hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(52px, 6vw, 88px);
    font-weight: 400;
    line-height: 1.0;
    color: var(--white);
    margin-bottom: 32px;
    letter-spacing: -0.01em;
  }

  .hero-title em {
    font-style: italic;
    color: var(--silver);
  }

  .hero-body {
    font-size: 16px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.7;
    max-width: 440px;
    margin-bottom: 48px;
  }

  .hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
  }

  .btn-primary {
    background: var(--accent);
    color: var(--deep) !important;
    padding: 14px 28px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
    display: inline-block;
  }

  .btn-primary:hover {
    background: #e6b800;
    transform: translateY(-1px);
  }

  .btn-ghost {
    border: 1px solid var(--border-light);
    color: var(--silver) !important;
    padding: 14px 28px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: border-color 0.2s, color 0.2s;
    display: inline-block;
  }

  .btn-ghost:hover {
    border-color: var(--silver);
    color: var(--white) !important;
  }

  /* ─── SECTION COMMON ─────────────────────────── */

  .section-eyebrow {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
  }

  .section-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--accent);
  }

  /* ─── CATEGORIES ─────────────────────────────── */

  .categories-section {
    background: var(--deep);
    padding: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  /* ─── FEATURED PRODUCT ───────────────────────── */

  .feat-section {
    background: var(--deep);
    padding: 100px 80px;
    display: flex;
    gap: 80px;
    align-items: center;
    border-top: 1px solid var(--border);
  }

  .feat-media {
    flex: 1;
    position: relative;
  }

  .feat-label {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
  }

  .feat-label-tag {
    background: var(--accent);
    color: var(--deep);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 16px;
    display: inline-block;
    margin: 16px;
  }

  .feat-img-wrap {
    aspect-ratio: 4/3;
    background: var(--off-black);
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .feat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.3) contrast(1.05);
  }

  .feat-content {
    flex: 1;
    max-width: 480px;
  }

  .feat-eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--subtle);
    margin-bottom: 16px;
  }

  .feat-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 24px;
  }

  .feat-desc {
    font-size: 15px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 36px;
  }

  .feat-specs {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
  }

  .spec-val {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 4px;
  }

  .spec-key {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
  }

  /* ─── MARQUEE ─────────────────────────────────── */

  /* ── STATS MARQUEE ── */
  .stats-marquee {
    background: var(--charcoal);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    white-space: nowrap;
  }

  .stats-track {
    display: inline-flex;
    align-items: center;
    animation: marquee 35s linear infinite;
  }

  .stats-marquee:hover .stats-track {
    animation-play-state: paused;
  }

  @keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  .stat-item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 20px 40px;
    border-right: 1px solid var(--border);
  }

  .stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    color: var(--silver);
    line-height: 1;
    flex-shrink: 0;
  }

  .stat-label {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  /* ─── ABOUT ───────────────────────────────────── */

  .about-section {
    background: var(--deep);
    padding: 100px 120px !important;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-grid {
    max-width: 720px;
    width: 100%;
  }

  .about-pillars {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .pillar {
    display: flex;
    gap: 40px;
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .pillar:first-child {
    border-top: 1px solid var(--border);
  }

  .pillar.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .pillar-num {
    font-family: 'DM Serif Display', serif;
    font-size: 13px;
    font-weight: 400;
    color: var(--subtle);
    min-width: 28px;
    padding-top: 3px;
  }

  .pillar-title {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--white);
  }

  .pillar-desc {
    font-size: 14px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.7;
  }

  /* ─── FOOTER ──────────────────────────────────── */

  footer {
    background: var(--deep);
    border-top: 1px solid var(--border);
    padding: 64px 80px 40px;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
  }

  .footer-brand-name {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
  }

  .footer-brand-tag {
    font-size: 13px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 220px;
  }

  .footer-col-head {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 20px;
  }

  .footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-links a {
    font-size: 13px;
    font-weight: 300;
    color: var(--muted) !important;
    text-decoration: none !important;
    transition: color 0.2s;
  }

  .footer-links a:hover {
    color: var(--white) !important;
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer-copy {
    font-size: 12px;
    font-weight: 300;
    color: var(--subtle);
  }

  .footer-legal {
    display: flex;
    gap: 24px;
  }

  .footer-legal a {
    font-size: 12px;
    font-weight: 300;
    color: var(--subtle) !important;
    text-decoration: none !important;
    transition: color 0.2s;
  }

  .footer-legal a:hover {
    color: var(--muted) !important;
  }

  /* ─── RESPONSIVE ──────────────────────────────── */

  @media (max-width: 1100px) {
    .hero-right { width: 340px; }
    .hero-left { padding: 60px 48px 60px 60px; }
    .feat-section { padding: 80px 60px; gap: 60px; }
    .about-section { padding: 80px 60px; }
    footer { padding: 56px 60px 36px; }
  }

  @media (max-width: 900px) {
    .hero-section { flex-direction: column; min-height: auto; }
    .hero-left { padding: 64px 40px 40px; }
    .hero-right { width: 100%; padding: 0 40px 64px; }
    .hero-right-inner { max-width: 320px; margin: 0 auto; }
    .feat-section { flex-direction: column; padding: 64px 40px; gap: 48px; }
    .feat-content { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-section { padding: 80px 40px !important; }
    footer { padding: 56px 40px 32px; }
    .cat-grid { grid-template-columns: 1fr !important; }
  }

  @media (max-width: 640px) {
    .hero-left { padding: 48px 24px 32px; }
    .hero-right { padding: 0 24px 48px; }
    .hero-body { font-size: 15px; }
    .feat-section { padding: 56px 24px !important; }
    .feat-specs { gap: 24px; flex-wrap: wrap; }
    .about-section { padding: 64px 24px !important; }
    .about-pillars { gap: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    footer { padding: 48px 24px 28px; }
    .cat-grid { grid-template-columns: 1fr !important; gap: 1px; }
    .cat-img-wrap { height: 140px; }
  }
/* Scroll-driven color reveal — CSS only, no JS needed */
@keyframes colorReveal {
  from { filter: grayscale(1) contrast(1.1) brightness(0.45); }
  to   { filter: grayscale(0) contrast(1.05) brightness(0.85); }
}

@supports (animation-timeline: view()) {
  @media (pointer: coarse) {
    .cat-img-wrap img {
      animation: colorReveal linear both !important;
      animation-timeline: view() !important;
      animation-range: entry 0% entry 60% !important;
      transition: none !important;
    }
  }
}

/* Fallback for JS-based in-view toggle */
.cat-card.in-view .cat-img-wrap img {
  filter: grayscale(0) contrast(1.05) brightness(0.85) !important;
  transition: filter 0.8s ease !important;
}

