@layer reset, base, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure { margin: 0; }
  img { display: block; max-width: 100%; height: auto; }
  button, input, textarea, select { font: inherit; }
}

@layer base {
  :root {
    --red-primary: #F20F38;
    --red-secondary: #BF0B2C;
    --red-dark: #8C0D24;
    --wine-deep: #59031A;
    --black-base: #0D0D0D;
    --text-main: #f7f2f3;
    --text-muted: #a9a0a3;
    --surface: color-mix(in srgb, var(--black-base), var(--wine-deep) 20%);
    --border-red: color-mix(in srgb, var(--red-primary), transparent 62%);
    --container: min(1120px, calc(100% - 32px));
    --header-height: 72px;
  }

  html { scroll-behavior: smooth; background: var(--black-base); }
  body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-main);
    background:
      radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--red-dark), transparent 70%), transparent 34rem),
      radial-gradient(circle at 100% 45%, color-mix(in srgb, var(--wine-deep), transparent 76%), transparent 30rem),
      var(--black-base);
    overflow-x: hidden;
  }
  ::selection { color: #fff; background: var(--red-primary); }
  a { color: inherit; text-decoration: none; }
  h1, h2, h3 { line-height: .92; letter-spacing: -.045em; text-transform: uppercase; }
  h1 { font-size: clamp(4.5rem, 18vw, 15rem); }
  h2 { font-size: clamp(2.4rem, 7vw, 6.75rem); max-width: 920px; }
  h3 { font-size: 1rem; letter-spacing: .03em; }
}

@layer layout {
  .container { width: var(--container); margin-inline: auto; }
  .section { position: relative; padding-block: clamp(88px, 12vw, 150px); scroll-margin-top: var(--header-height); }
  .site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    min-height: var(--header-height);
    background: color-mix(in srgb, var(--black-base), transparent 18%);
    border-bottom: 1px solid color-mix(in srgb, var(--red-primary), transparent 82%);
    backdrop-filter: blur(14px);
  }
  .site-header__inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .site-brand img { width: min(172px, 42vw); height: auto; }
  .site-menu { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; color: var(--text-muted); }
  .site-menu a { transition: color .2s ease; }
  .site-menu a:hover, .site-menu a:focus-visible { color: var(--red-primary); }
  .language-link { color: var(--red-primary) !important; }
  .menu-button { display: none; }
}

@layer components {
  .skip-link { position: fixed; left: 16px; top: 16px; transform: translateY(-120%); z-index: 100; background: var(--red-primary); color: #fff; padding: 10px 14px; }
  .skip-link:focus { transform: translateY(0); }

  .section-eyebrow { color: var(--red-primary); text-transform: uppercase; letter-spacing: .24em; font-size: .76rem; margin-bottom: 20px; }
  .section-text { color: var(--text-muted); font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 1.72; max-width: 720px; margin-top: 26px; }

  .hero { min-height: 100svh; display: grid; align-items: end; padding-top: calc(var(--header-height) + 40px); overflow: hidden; }
  .hero__media { position: absolute; inset: 0; z-index: -2; opacity: .48; }
  .hero__frame { width: 100%; height: 100%; object-fit: cover; filter: saturate(.86) contrast(1.13) brightness(.62); }
  .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,13,13,.94), rgba(13,13,13,.58) 45%, rgba(13,13,13,.93)); }
  .hero__noise { position: absolute; inset: 0; pointer-events: none; opacity: .12; mix-blend-mode: screen; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px); }
  .hero__content { padding-bottom: clamp(56px, 8vw, 96px); }
  .hero__subtitle { max-width: 850px; margin-top: 14px; font-size: clamp(1.55rem, 4.2vw, 4rem); line-height: 1; text-transform: uppercase; letter-spacing: -.035em; }
  .hero__text { max-width: 620px; margin-top: 28px; color: var(--text-muted); line-height: 1.7; font-size: 1.05rem; }
  .hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
  .button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--border-red); text-transform: uppercase; letter-spacing: .15em; font-size: .78rem; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
  .button:hover { transform: translateY(-2px); border-color: var(--red-primary); }
  .button--primary { background: var(--red-primary); border-color: var(--red-primary); color: #fff; }
  .button--ghost { color: var(--text-main); background: rgba(0,0,0,.22); }

  .gallery-section h2 + .section-text { margin-bottom: 30px; }
  .gallery-grid {
    display: block;
    column-count: 2;
    column-gap: 12px;
  }
  .gallery-empty { color: var(--text-muted); border: 1px solid var(--border-red); padding: 24px; background: rgba(255,255,255,.03); }
  .art-card {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 0 12px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    border: 1px solid color-mix(in srgb, var(--red-primary), transparent 88%);
    background: rgba(255,255,255,.025);
    overflow: hidden;
  }
  .art-card__button { display: block; width: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; line-height: 0; }
  .art-card__button img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    filter: saturate(.9) contrast(1.06);
    transition: filter .35s ease, opacity .35s ease;
  }
  .art-card:hover img { filter: saturate(1.08) contrast(1.12); opacity: .94; }

  .process-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: clamp(28px, 7vw, 88px); align-items: stretch; }
  .process-panel { min-height: 420px; border: 1px solid var(--border-red); background: radial-gradient(circle at 40% 25%, color-mix(in srgb, var(--red-primary), transparent 62%), transparent 16rem), linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); display: grid; place-content: center; gap: 12px; overflow: hidden; }
  .process-panel span { color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--red-primary), transparent 12%); font-size: clamp(2.3rem, 5vw, 5rem); font-weight: 900; letter-spacing: -.08em; text-transform: uppercase; opacity: .55; }

  .contact-card { border: 1px solid var(--border-red); padding: clamp(28px, 6vw, 68px); background: linear-gradient(135deg, rgba(242,15,56,.12), rgba(255,255,255,.025)); position: relative; overflow: hidden; }
  .contact-card::after { content: "STRVNGR"; position: absolute; right: -1rem; bottom: -1.6rem; font-size: clamp(4rem, 18vw, 16rem); line-height: 1; font-weight: 900; letter-spacing: -.08em; color: rgba(242,15,56,.045); pointer-events: none; }

  .lightbox { width: min(96vw, 1400px); max-height: 96svh; border: 1px solid var(--red-primary); padding: 0; background: #050505; color: #fff; overflow: hidden; }
  .lightbox::backdrop { background: rgba(0,0,0,.9); backdrop-filter: blur(10px); }
  .lightbox figure { display: grid; place-items: center; min-height: 220px; }
  .lightbox img { display: block; width: auto; height: auto; max-width: 96vw; max-height: 96svh; object-fit: contain; background: #000; }
  .lightbox__close { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border: 1px solid var(--border-red); background: rgba(0,0,0,.76); color: #fff; font-size: 1.8rem; cursor: pointer; z-index: 2; }
}

@layer utilities {
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
}

@media (min-width: 720px) {
  .gallery-grid { column-count: 3; column-gap: 16px; }
  .art-card { margin-bottom: 16px; }
}

@media (min-width: 1100px) {
  .gallery-grid { column-count: 4; column-gap: 18px; }
  .art-card { margin-bottom: 18px; }
}

@media (max-width: 760px) {
  :root { --header-height: 64px; }
  .section { padding-block: 78px; }
  .menu-button { display: inline-grid; gap: 5px; width: 44px; height: 44px; place-content: center; background: transparent; border: 1px solid var(--border-red); color: #fff; }
  .menu-button span:not(.sr-only) { width: 18px; height: 2px; background: var(--text-main); }
  .site-menu { position: fixed; top: var(--header-height); left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; padding: 18px; background: rgba(13,13,13,.96); border: 1px solid var(--border-red); }
  .site-menu.is-open { display: flex; }
  .site-menu a { padding: 13px 0; }
  .hero { min-height: 92svh; }
  .hero__media { opacity: .32; }
  .hero__actions, .contact-card .hero__actions { flex-direction: column; }
  .button { width: 100%; }
  .process-grid { grid-template-columns: 1fr; }
  .process-panel { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
