@import url('fonts.css');

  :root {
    --bg: #0c0c0d;           /* near-black */
    --bg-elev: #1a1c1f;      /* gunmetal */
    --bg-elev-2: #24272b;    /* lighter gunmetal */
    --ink: #f2f2ef;
    --ink-dim: #7d8085;      /* cool grey */
    --accent: #e8312a;       /* signal red */
    --accent-2: #ff5a4e;     /* hot red glow */
    --accent-3: #8a0f0a;     /* deep oxblood */
    --rule: rgba(242,242,239,0.10);
    --grid: rgba(242,242,239,0.035);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  /* === SKIP LINK === */
  .skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--accent);
    color: var(--ink);
    padding: 8px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    z-index: 1000;
    text-decoration: none;
  }

  .skip-link:focus {
    top: 16px;
  }

  /* === FOCUS VISIBLE === */
  a:focus-visible,
  button:focus-visible,
  select:focus-visible,
  input:focus-visible,
  textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  /* === TEXT OVERFLOW PROTECTION === */
  .project h3,
  .levelup-card h3,
  .hero-title,
  h2.section-title {
    overflow-wrap: break-word;
  }

  .project p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Familjen Grotesk', system-ui, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
  }

  /* CRT scanline overlay */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.15) 0px,
      rgba(0,0,0,0.15) 1px,
      transparent 1px,
      transparent 3px
    );
    pointer-events: none;
    z-index: 100;
    mix-blend-mode: multiply;
  }

  /* Grain */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.35;
    pointer-events: none;
    z-index: 99;
    mix-blend-mode: overlay;
  }

  /* === TOP BAR === */
  .topbar {
    position: relative;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .topbar .brand {
    color: var(--accent);
    font-weight: 700;
  }

  .topbar .status {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--ink-dim);
  }

  .social-icons {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .social-icons a {
    color: var(--accent);
    display: flex;
    transition: color 0.2s;
  }

  .social-icons a:hover {
    color: var(--ink);
  }

  /* === HERO === */
  .hero {
    min-height: 100vh;
    padding: 60px 32px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  /* background grid */
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(var(--grid) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  }

  .hero-text { position: relative; z-index: 2; max-width: 600px; }

  .eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

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

  h1.hero-title {
    font-family: 'Anton', 'Impact', sans-serif;
    font-size: clamp(64px, 11vw, 180px);
    line-height: 0.85;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 28px;
  }

  h1.hero-title .amp {
    display: inline-block;
    color: var(--accent);
    font-family: 'VT323', monospace;
    font-style: normal;
    transform: translateY(-0.05em);
    margin: 0 -0.05em;
  }

  h1.hero-title .remix {
    display: block;
    -webkit-text-stroke: 2px var(--ink);
    color: transparent;
    position: relative;
  }

  .hero-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-dim);
    margin-bottom: 32px;
    padding-left: 16px;
    border-left: 2px solid var(--accent);
  }

  .hero-bio {
    max-width: 480px;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(244,244,237,0.85);
    text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 0 4px rgba(0,0,0,0.9);
  }

  .hero-bio a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    transition: background 0.2s;
  }

  .hero-bio a:hover {
    background: var(--accent);
    color: var(--bg);
  }

  .hero-visual {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60%;
    z-index: 1;
  }

  .hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to right, var(--bg) 0%, rgba(12,12,13,0.7) 20%, transparent 55%),
      linear-gradient(to top, var(--bg) 0%, transparent 20%),
      linear-gradient(to bottom, var(--bg) 0%, transparent 15%);
    pointer-events: none;
    z-index: 2;
  }

  .hero-visual .frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1) saturate(0.9);
  }

  .hero-visual .meta {
    position: absolute;
    bottom: 24px; right: 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--bg);
    padding: 6px 10px;
    z-index: 3;
    border: 1px solid var(--accent);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
  }

  .hero-visual a.meta:hover {
    background: var(--accent);
    color: var(--bg);
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .js-ready .eyebrow,
  .js-ready .hero-title,
  .js-ready .hero-tag,
  .js-ready .hero-bio,
  .js-ready .hero-visual {
    visibility: hidden;
  }

  .hero-title .char {
    display: inline-block;
  }

  /* === MARQUEE === */
  .marquee {
    overflow: hidden;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 18px 0;
    background: var(--bg-elev);
  }

  .marquee-track {
    display: inline-flex;
    gap: 48px;
    animation: scroll 40s linear infinite;
    white-space: nowrap;
    font-family: 'Anton', sans-serif;
    font-size: 28px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .marquee-track span {
    color: var(--ink-dim);
  }

  .marquee-track .star {
    color: var(--accent);
  }

  @keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* === SECTION === */
  .section {
    padding: 80px 32px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
  }

  .section-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule);
  }

  .section-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.25em;
    color: var(--accent);
  }

  h2.section-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(48px, 7vw, 96px);
    line-height: 0.9;
    letter-spacing: -0.01em;
    text-transform: uppercase;
  }

  .section-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-dim);
    grid-column: 2;
    margin-top: 12px;
  }

  /* === LEVEL UP CONTENT === */
  .levelup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }

  .levelup-text p {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(244,244,237,0.85);
    margin-bottom: 24px;
  }

  .live-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 8px;
  }

  .live-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    filter: contrast(1.1) saturate(0.85);
    transition: filter 0.3s;
    cursor: pointer;
  }

  .live-gallery img:hover {
    filter: contrast(1.1) saturate(1.1);
  }

  .levelup-card {
    background: var(--bg-elev);
    border: 1px solid var(--rule);
    padding: 32px;
    position: relative;
  }

  .levelup-card::before {
    display: none;
  }

  .levelup-card .album-art {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #1a1a25, #0a0a0f);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'VT323', monospace;
    font-size: 80px;
    color: var(--accent);
    letter-spacing: -0.02em;
  }

  .levelup-card .album-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(232,49,42,0.18), transparent 60%);
  }

  .now-playing-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
  }

  .levelup-card h3 {
    font-family: 'Anton', sans-serif;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1;
    flex-shrink: 0;
  }

  .now-playing-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-dim);
    line-height: 1;
    padding-top: 0.15em;
    white-space: nowrap;
  }

  .now-playing-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(244,244,237,0.7);
    margin-bottom: 8px;
  }

  /* Now Playing card shine */
  .levelup-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
    background-size: 200% 100%;
    background-position: 200% 0;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
  }

  .levelup-card.shining::after {
    opacity: 1;
    animation: cardShine 0.6s ease-in-out forwards;
  }

  @keyframes cardShine {
    from { background-position: 200% 0; opacity: 1; }
    to { background-position: -100% 0; opacity: 0; }
  }

  /* Discover/Shuffle button */
  .discover-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--accent-3);
    padding: 12px 24px;
    cursor: pointer;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.2s;
    animation: btnPulse 3s ease-in-out infinite;
  }

  @keyframes btnPulse {
    0%, 100% {
      border-color: var(--accent);
      box-shadow: 0 0 14px rgba(255,90,78,0.2), inset 0 0 7px rgba(232,49,42,0.05);
    }
    50% {
      border-color: var(--accent);
      box-shadow: 0 0 24px rgba(255,90,78,0.8), inset 0 0 12px rgba(232,49,42,0.1);
    }
  }

  .discover-btn:hover {
    color: var(--accent-2);
    border-color: var(--accent-2);
    transform: scale(1.06);
    box-shadow: 0 0 24px rgba(255,90,78,1), inset 0 0 12px rgba(232,49,42,0.15);
    animation: none;
  }

  .discover-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border: 1px solid transparent;
    pointer-events: none;
    opacity: 0;
  }

  .discover-btn:hover::after {
    opacity: 1;
    border-color: var(--accent-2);
    animation: ringPop 0.5s ease-out forwards;
  }

  @keyframes ringPop {
    0% { inset: 0; opacity: 0.8; }
    100% { inset: -8px; opacity: 0; }
  }


  .now-playing-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
  }

  .now-playing-footer .discover-btn {
    flex-shrink: 0;
    margin-top: 0;
  }

  /* === PROJECTS GRID === */
  .projects {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
  }

  .project {
    border: 1px solid var(--rule);
    padding: 32px;
    background: var(--bg-elev);
    position: relative;
    transition: border-color 0.3s, transform 0.3s;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
  }

  .project::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0;
    height: 2px;
    background: var(--card-accent, var(--accent));
    transition: width 0.4s ease;
  }

  .project:hover {
    border-color: var(--card-accent, var(--accent));
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px var(--card-accent, var(--accent));
  }

  .project:hover::before {
    width: 100%;
  }

  .project .num {
    position: relative;
    z-index: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    transition: opacity 0.4s ease;
  }

  .project .num .tag {
    color: var(--ink-dim);
  }

  .project h3 {
    position: relative;
    z-index: 1;
    font-family: 'Anton', sans-serif;
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 16px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 0 2px rgba(0,0,0,0.9);
  }

  .project p {
    position: relative;
    z-index: 1;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(244,244,237,0.7);
    margin-bottom: 24px;
    min-height: 75px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 0 2px rgba(0,0,0,0.9);
    transition: opacity 0.4s ease;
  }

  .project:hover p {
    opacity: 0;
  }

  .project a.link {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 0 2px rgba(0,0,0,0.9);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s, border-color 0.2s;
    margin-top: auto;
    align-self: flex-start;
  }

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

  .project a.link::after {
    content: '→';
    transition: transform 0.2s;
  }

  .project a.link:hover::after {
    transform: translateX(4px);
  }

  /* spans */
  .project.s-6 { grid-column: span 6; }
  .project.s-4 { grid-column: span 4; }
  .project.s-8 { grid-column: span 8; }
  .project.s-12 { grid-column: span 12; }

  .project.feature {
    grid-column: span 6;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--bg-elev) 0%, #0a0a0f 100%);
  }

  .project.feature::after {
    display: none;
  }

  .project.feature h3 {
    font-size: 64px;
  }

  /* === CARD ART TREATMENT === */
  .project .art-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    transition: opacity 0.5s ease;
  }

  .project .art-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
      rgba(12,12,13,0.6) 0%,
      rgba(12,12,13,0.15) 30%,
      rgba(12,12,13,0.5) 60%,
      rgba(12,12,13,0.88) 100%
    );
    transition: background 0.5s ease;
  }

  .project:hover .art-bg {
    opacity: 0.80;
  }

  .project:hover .art-bg::after {
    background: linear-gradient(190deg,
      rgba(12,12,13,0) 0%,
      rgba(12,12,13,0) 62%,
      rgba(12,12,13,0.6) 75%,
      rgba(12,12,13,0.94) 100%
    );
  }

  .project:hover .num {
    opacity: 0;
  }

  /* === FOOTER === */
  .footer {
    border-top: 1px solid var(--rule);
    padding: 80px 32px 40px;
    margin-top: 80px;
    background: var(--bg-elev);
    position: relative;
  }

  .footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
  }

  .footer h2 {
    font-family: 'Anton', sans-serif;
    font-size: clamp(56px, 8vw, 120px);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -0.01em;
  }

  .footer h2 .arrow {
    color: var(--accent);
    display: inline-block;
    vertical-align: middle;
  }

  .footer h2 .arrow svg {
    width: 0.6em;
    height: 0.6em;
    display: block;
  }

  .footer-col h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
  }

  .footer-col ul {
    list-style: none;
  }

  .footer-col li {
    margin-bottom: 10px;
  }

  .footer-col a {
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
    position: relative;
    display: inline-block;
  }

  .footer-col a:hover {
    color: var(--accent);
  }

  .footer-bottom {
    max-width: 1400px;
    margin: 60px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-dim);
  }

  /* === SECTION HEADER VISUAL HOOKS === */
  .section-header {
    position: relative;
  }

  .section-hook {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
  }

  .section-hook::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(var(--accent) 1px, transparent 1px),
      linear-gradient(90deg, var(--accent) 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.35;
    mask-image: linear-gradient(90deg, transparent 10%, black 50%, black 70%, transparent 95%);
    -webkit-mask-image: linear-gradient(90deg, transparent 10%, black 50%, black 70%, transparent 95%);
  }

  .section-hook::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(232,49,42,0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.8s ease;
  }

  .section-hook.active::before {
    animation: pixel-drift 3s linear infinite;
  }

  .section-hook.active::after {
    opacity: 1;
  }

  @keyframes pixel-drift {
    from { background-position: 0 0; }
    to { background-position: 12px 12px; }
  }

  .mobile-break { display: none; }

  /* === RESPONSIVE === */
  @media (max-width: 900px) {
    .mobile-break { display: block; }
    .hero {
      padding: 40px 20px;
      min-height: 80vh;
    }
    .hero-visual { width: 100%; opacity: 0.25; }
    .hero-visual .meta { display: none; }
    .section { padding: 60px 16px; }
    .section-header { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
    .section-sub { grid-column: 1; }
    .levelup-grid { grid-template-columns: 1fr; gap: 32px; }

    .levelup-card { padding: 20px; }
    .levelup-card .album-art {
      aspect-ratio: 1;
      max-height: 280px;
      width: auto;
      margin-inline: auto;
    }
    .levelup-card h3 { font-size: 24px; }
    .now-playing-footer {
      flex-direction: column;
      gap: 12px;
    }
    .now-playing-desc { font-size: 13px; }

    .live-gallery {
      grid-template-columns: repeat(3, 1fr);
      gap: 3px;
      max-width: 100%;
    }

    .projects { grid-template-columns: 1fr; gap: 16px; }
    .project, .project.s-6, .project.s-4, .project.s-8, .project.s-12, .project.feature {
      grid-column: span 1;
      grid-row: auto;
    }
    .project { padding: 24px; }
    .project.feature h3 { font-size: 36px; }
    .project h3 { font-size: 28px; }
    .project p { min-height: unset; }

    .marquee-track { font-size: 20px; gap: 32px; }

    .footer { padding: 60px 20px 32px; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
    .footer h2 .arrow svg { width: 0.8em; height: 0.8em; }
    .footer-bottom { flex-direction: column; gap: 12px; }
    .topbar { padding: 14px 16px; }
    .topbar .status { gap: 12px; }
    .topbar .status .pos { display: none; }
    .section-hook { display: none; }

    .hero-bio { font-size: 15px; }
    .levelup-text p { font-size: 16px; }
  }

  @media (max-width: 480px) {
    .hero { padding: 32px 16px; min-height: 70vh; }
    h1.hero-title { font-size: clamp(48px, 14vw, 64px); }
    h2.section-title { font-size: clamp(36px, 10vw, 48px); }
    .levelup-card .album-art { max-height: 240px; }
    .levelup-card { padding: 16px; }
    .levelup-card h3 { font-size: 22px; }
    .discover-btn { width: 100%; justify-content: center; }
    .marquee-track { font-size: 16px; gap: 24px; }
    .section { padding: 48px 16px; }
    .footer h2 { font-size: clamp(40px, 12vw, 56px); }
  }

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid var(--rule);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox.active .lightbox-img {
  opacity: 1;
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: 32px;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
}

.lightbox-close:hover {
  color: var(--ink);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink-dim);
  font-size: 20px;
  padding: 12px 16px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--ink);
  border-color: var(--accent);
}

/* === CONTACT MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  padding: 48px;
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close:hover {
  color: var(--accent);
}

.modal-title {
  font-family: 'Anton', sans-serif;
  font-size: 36px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  transition: border-color 0.2s;
  margin-bottom: 12px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group select {
  appearance: none;
  cursor: pointer;
}

.form-group.conditional {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
}

.form-group.conditional.visible {
  max-height: 300px;
  opacity: 1;
}

.form-submit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--ink);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.form-submit:hover {
  background: var(--accent-2);
}

.form-status {
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-align: center;
}

.form-status.success { color: #4ade80; }
.form-status.error { color: var(--accent); }
