/* ============================================================
   CABRA BORRACHA V3 — FRESH BUILD
   Concept: Bold. Funky. Premium. Texas Underground.
   No templates. No grids. All energy.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600&family=Bebas+Neue&display=swap');

@font-face {
  font-family: 'TG';
  src: url('fonts/Treavorgood-Regular.ttf') format('truetype'),
       url('fonts/Treavorgood-Regular.otf') format('opentype');
  font-display: swap;
}

:root {
  --black:  #080808;
  --hot:    #FF5500;
  --gold:   #FFB800;
  --cream:  #F0E8D8;
  --white:  #FFFFFF;
  --dim:    rgba(240,232,216,0.55);
  --f:      'TG', Georgia, serif;
  --body:   'Space Grotesk', sans-serif;
  --head:   'TG', Georgia, serif;
  --logo:   'Bebas Neue', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--black); color: var(--cream); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   GRAIN OVERLAY — premium film texture
   ============================================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9000;
}

/* ============================================================
   NAV — minimal floating
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  transition: background 0.4s;
}
#nav.solid {
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo { height: 64px; width: auto; transition: height 0.3s; }
#nav.solid .nav-logo { height: 48px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240,232,216,0.65);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--hot); }
.nav-cta {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--hot);
  color: #fff;
  padding: 10px 24px;
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-cta:hover { background: #e04a00; transform: translateY(-1px); }
.ham {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.ham span { display: block; width: 24px; height: 1.5px; background: var(--cream); transition: all 0.3s; }
.ham.x span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.ham.x span:nth-child(2) { opacity: 0; }
.ham.x span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mob-menu {
  display: none;
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 490;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px;
}
.mob-menu.on { display: flex; }
.mob-menu a {
  font-family: var(--head);
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color 0.2s;
}
.mob-menu a:hover { color: var(--hot); }

/* ============================================================
   HERO — split diagonal
   ============================================================ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero-left {
  position: relative;
  overflow: hidden;
}
.hero-left-img {
  position: absolute;
  inset: 0;
  background: url('https://images.squarespace-cdn.com/content/v1/5bba0ea2a09a7e4c80cdccf2/1538924572896-TYBLP1OUUG3XH09RZJBM/DSC_0539.JPG?format=2500w') center / cover no-repeat;
  transform: scale(1.06);
  transition: transform 12s ease-out;
}
.hero-left-img.loaded { transform: scale(1); }
.hero-left-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(8,8,8,0) 40%, rgba(8,8,8,1) 100%);
}
/* Diagonal clip */
.hero-left::after {
  content: '';
  position: absolute;
  top: 0; right: -60px; bottom: 0;
  width: 120px;
  background: var(--black);
  transform: skewX(-4deg);
  z-index: 2;
}
.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 56px 80px 40px;
  position: relative;
  z-index: 3;
}
.hero-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.hero-stamp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); }
.hero-stamp span {
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--hot);
}
.hero-title {
  font-family: var(--head);
  line-height: 0.92;
  margin-bottom: 28px;
}

/* Glitch layer structure */
.gl-line { position: relative; display: block; }
.gl-a { display: block; }
.gl-b {
  position: absolute;
  top: 0; left: 0;
  font-family: var(--logo);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  color: var(--white);
  letter-spacing: 0.04em;
  transform: translateY(clamp(1.5rem, 3vw, 2.8rem));
}
.gl-line:nth-child(2) .gl-b {
  color: var(--hot);
  text-shadow: 0 0 60px rgba(255,85,0,0.5);
}

.hero-title .line1 {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  color: var(--white);
}
.hero-title .line2 {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  color: var(--hot);
  -webkit-text-stroke: 0;
  text-shadow: 0 0 60px rgba(255,85,0,0.4);
}
.hero-title .line3 {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  color: var(--white);
}

/* Glitch swap — only one visible at a time */

/* Default: English on, Spanish off */
.gl-a { opacity: 1; }
.gl-b { opacity: 0; }

/* Spanish state: flip visibility */
#heroTitle.cb .gl-a { opacity: 0; }
#heroTitle.cb .gl-b { opacity: 1; }

/* Outgoing text (glitches away) */
@keyframes gl-out {
  0%   { opacity: 1; clip-path: none; transform: none; filter: none; }
  15%  { opacity: 1; clip-path: inset(18% 0 52% 0); transform: translateX(-6px);
         filter: drop-shadow(4px 0 0 #ff0060) drop-shadow(-4px 0 0 #00cfff); }
  28%  { opacity: 1; clip-path: inset(58% 0 8% 0);  transform: translateX(6px);
         filter: drop-shadow(-4px 0 0 #ff0060) drop-shadow(4px 0 0 #00cfff); }
  42%  { opacity: 0; clip-path: inset(30% 0 35% 0); transform: translateX(-3px); filter: none; }
  100% { opacity: 0; clip-path: none; transform: none; filter: none; }
}

/* Incoming text (glitches in) */
@keyframes gl-in {
  0%   { opacity: 0; clip-path: none; transform: none; filter: none; }
  45%  { opacity: 0; }
  58%  { opacity: 1; clip-path: inset(42% 0 18% 0); transform: translateX(5px);
         filter: drop-shadow(-4px 0 0 #ff0060) drop-shadow(4px 0 0 #00cfff); }
  72%  { opacity: 1; clip-path: inset(8% 0 62% 0);  transform: translateX(-5px);
         filter: drop-shadow(3px 0 0 #00cfff); }
  85%  { opacity: 1; clip-path: none; transform: translateX(2px); filter: none; }
  100% { opacity: 1; clip-path: none; transform: none; filter: none; }
}

/* Transition TO Spanish (cb) */
#heroTitle.glitching:not(.cb) .gl-a { animation: gl-out 0.5s steps(1) forwards; }
#heroTitle.glitching:not(.cb) .gl-b { animation: gl-in  0.5s steps(1) forwards; }

/* Transition TO English (back) */
#heroTitle.glitching.cb .gl-b { animation: gl-out 0.5s steps(1) forwards; }
#heroTitle.glitching.cb .gl-a { animation: gl-in  0.5s steps(1) forwards; }
.hero-sub {
  font-family: var(--body);
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  margin-bottom: 48px;
  line-height: 1.6;
  max-width: 380px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-fill {
  font-family: var(--body);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--hot);
  color: #fff;
  padding: 15px 36px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-fill:hover { background: #e04a00; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,85,0,0.35); }
.btn-line {
  font-family: var(--body);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  color: var(--cream);
  padding: 14px 36px;
  border: 1.5px solid rgba(240,232,216,0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-line:hover { border-color: var(--cream); background: rgba(240,232,216,0.05); }
.hero-goat {
  position: absolute;
  top: 50%;
  right: 30px;
  left: auto;
  bottom: auto;
  transform: translateY(-50%);
  width: min(380px, 44vw);
  opacity: 0.13;
  pointer-events: none;
  filter: saturate(0);
  z-index: 1;
}

/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.marquee-wrap {
  background: var(--hot);
  padding: 14px 0;
  overflow: hidden;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
}
.marquee-wrap.dark {
  background: #111;
  margin-top: -3px;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: mq 22s linear infinite;
}
.marquee-wrap.dark .marquee-track { animation-direction: reverse; animation-duration: 30s; }
.marquee-track span {
  font-family: var(--body);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 28px;
  color: #fff;
}
.marquee-wrap.dark .marquee-track span { color: rgba(240,232,216,0.4); }
.marquee-track .dot { color: var(--gold); padding: 0; }
.marquee-wrap.dark .marquee-track .dot { color: var(--hot); }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   SECTION UTILITY
   ============================================================ */
.s-label {
  writing-mode: vertical-lr;
  text-orientation: mixed;
  font-family: var(--body);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--hot);
  opacity: 0.7;
  transform: rotate(180deg);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
}
.s-num {
  font-family: var(--body);
  font-size: clamp(6rem, 14vw, 12rem);
  color: rgba(255,255,255,0.025);
  position: absolute;
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.03em;
}
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.up { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-32px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal-l.up { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(32px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal-r.up { opacity: 1; transform: none; }

/* ============================================================
   ABOUT — editorial magazine
   ============================================================ */
#about {
  position: relative;
  padding: 120px 40px 120px 80px;
  overflow: hidden;
}
.s-num.about-num { top: 40px; right: 40px; color: rgba(255,255,255,0.03); }
.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 80px;
  align-items: start;
}
.about-img-col { position: relative; }
.about-img-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.about-img-frame img { width: 100%; display: block; }
.about-img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(255,85,0,0.25) 100%);
  z-index: 1;
  pointer-events: none;
}
.about-img-tag {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--hot);
  color: #fff;
  font-family: var(--body);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 10px 18px;
  z-index: 2;
}
.about-text-col { padding-top: 20px; }
.about-kicker {
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--hot);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-kicker::before { content: ''; display: block; width: 32px; height: 1px; background: var(--hot); }
.about-pull {
  font-family: var(--head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 32px;
  border-left: 4px solid var(--hot);
  padding-left: 24px;
}
.about-body {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--dim);
  margin-bottom: 1.2rem;
}
.about-body strong { color: var(--cream); }
.about-cta { margin-top: 36px; }

/* ============================================================
   BODEGA — FULL HOT ORANGE
   ============================================================ */
#bodega {
  background: var(--hot);
  position: relative;
  padding: 80px 0 0;
  overflow: hidden;
}
.bodega-header {
  padding: 0 60px 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.bodega-title-block .eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.bodega-big {
  font-family: var(--head);
  font-size: clamp(4rem, 9vw, 9rem);
  line-height: 0.9;
  color: #fff;
  letter-spacing: -0.02em;
}
.bodega-sub {
  font-family: var(--body);
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em;
  margin-top: 12px;
}
.btn-white {
  font-family: var(--body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: #fff;
  color: var(--hot);
  padding: 14px 32px;
  border-radius: 2px;
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-block;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.25); }

/* Scroll hint arrow */
.scroll-hint { text-align: center; padding: 0 0 18px; transition: opacity 0.5s; }
.scroll-hint.hidden { opacity: 0; pointer-events: none; }
.scroll-hint-arrow {
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #080808;
  background: rgba(255,255,255,0.85);
  border: 2px dashed rgba(0,0,0,0.4);
  border-radius: 999px;
  padding: 10px 26px;
  display: inline-block;
  font-weight: 600;
  animation: hint-bounce 1.1s ease-in-out infinite;
}
@keyframes hint-bounce {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(10px); }
}

/* Horizontal scroll track */
.shirt-scroll-outer {
  overflow: hidden;
  padding-bottom: 60px;
}
.shirt-scroll-track {
  display: flex;
  gap: 20px;
  padding: 0 60px 0 60px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.shirt-scroll-track::-webkit-scrollbar { display: none; }
.shirt-scroll-track:active { cursor: grabbing; }
.shirt-tile {
  flex-shrink: 0;
  width: 260px;
  scroll-snap-align: start;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.25s;
}
.shirt-tile:hover { transform: translateY(-8px); }
.shirt-tile-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 24px;
  background: rgba(0,0,0,0.15);
}
.shirt-tile-foot {
  padding: 14px 18px;
}
.shirt-tile-name {
  font-family: var(--body);
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.shirt-tile-btn {
  font-family: var(--body);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.shirt-tile:hover .shirt-tile-btn { color: #fff; }

/* Worn-shirt strip inside bodega */
.worn-strip {
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  padding: 14px 0;
}
.worn-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: mq 28s linear infinite;
}
.worn-track img { height: 120px; width: auto; border-radius: 3px; object-fit: cover; }

/* ============================================================
   PHOTOGRAPHY — BENTO
   ============================================================ */
#photography {
  background: #040404;
  padding: 100px 40px;
  position: relative;
}
.s-num.photo-num { top: 60px; right: 40px; }
.photo-header {
  max-width: 1200px;
  margin: 0 auto 52px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.eyebrow {
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--hot);
  margin-bottom: 10px;
}
.sec-title {
  font-family: var(--head);
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.05;
}
/* ============================================================
   PHOTO MASONRY — 3-column with parallax & stagger
   ============================================================ */
.photo-masonry {
  columns: 3;
  column-gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.pm-item {
  break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.4s;
}
.pm-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.pm-item img {
  width: 100%;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.4s;
  filter: brightness(0.85) saturate(0.85);
  will-change: transform;
}
.pm-item:hover { box-shadow: 0 12px 48px rgba(0,0,0,0.5); }
.pm-item:hover img { transform: scale(1.05); filter: brightness(1.0) saturate(1.15); }
.pm-item::after {
  content: '⊕';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0);
  background: rgba(0,0,0,0);
  transition: all 0.35s;
  pointer-events: none;
}
.pm-item:hover::after { color: rgba(255,255,255,0.75); background: rgba(255,85,0,0.1); }

/* Parallax inner img */
.pm-item[data-parallax] img {
  transform: translateY(var(--py, 0px));
  height: 115%;
  margin-top: -7.5%;
}
.pm-item[data-parallax]:hover img {
  transform: scale(1.03) translateY(var(--py, 0px));
}

/* Lightbox */
.lb { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.97); align-items: center; justify-content: center; }
.lb.on { display: flex; }
.lb img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 3px; cursor: zoom-out; }
.lb-x { position: absolute; top: 20px; right: 24px; font-family: var(--body); font-size: 2.5rem; color: rgba(255,255,255,0.5); cursor: pointer; line-height: 1; transition: color 0.2s; }
.lb-x:hover { color: #fff; }
.lb-name {
  position: absolute;
  bottom: 28px;
  right: 36px;
  font-family: var(--f);
  font-size: 2rem;
  color: rgba(255,255,255,0.75);
  pointer-events: none;
  letter-spacing: 0.02em;
}

/* ============================================================
   ART — white matte gallery
   ============================================================ */
#art {
  background: var(--cream);
  padding: 100px 40px;
  position: relative;
}
.art-header {
  max-width: 1200px;
  margin: 0 auto 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.art-header .eyebrow { color: #8B6914; }
.art-header .sec-title { color: #0A0804; }
.art-ctas { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.btn-gold {
  font-family: var(--body);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: #8B6914;
  color: #fff;
  padding: 13px 28px;
  border-radius: 2px;
  transition: all 0.2s;
  display: inline-block;
}
.btn-gold:hover { background: #6e5310; transform: translateY(-2px); }
.btn-outline-dark {
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1.5px solid rgba(10,8,4,0.25);
  color: #1a1208;
  padding: 11px 22px;
  border-radius: 2px;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline-dark:hover { border-color: #1a1208; background: rgba(10,8,4,0.05); }

.art-grid {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 28px;
}
.art-card {
  background: #fff;
  box-shadow: 0 4px 32px rgba(0,0,0,0.1);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
}
.art-card:hover { transform: translateY(-8px) rotate(-0.5deg); box-shadow: 0 20px 60px rgba(0,0,0,0.18); }
.art-matte {
  padding: 20px;
  background: #fff;
}
.art-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.art-card-foot {
  padding: 14px 20px;
  border-top: 1px solid #f0ece4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.art-card-name { font-family: var(--body); font-size: 0.85rem; color: #1a1208; }
.art-card-link { font-family: var(--body); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: #8B6914; }
.photo-buy-row {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 0 40px;
  display: flex;
  justify-content: center;
}
.art-tools-row {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.art-tools-row a {
  font-family: var(--body);
  font-size: 0.85rem;
  color: #8B6914;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   APPS — diagonal cards
   ============================================================ */
#apps {
  background:
    linear-gradient(to bottom, rgba(8,8,8,0.62) 0%, rgba(8,8,8,0.50) 50%, rgba(8,8,8,0.72) 100%),
    url('apps-wall-mural.jpg') center / cover no-repeat;
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
}
/* Neon flicker — irregular like a dying tube light */
@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 54%, 58%, 100% {
    opacity: 0.82;
    filter:
      grayscale(1) contrast(1.25) sepia(1) hue-rotate(5deg) saturate(6) brightness(0.72)
      drop-shadow(0 0 55px rgba(255,110,0,0.7))
      drop-shadow(0 0 14px rgba(255,170,0,0.5));
  }
  20%, 55% {
    opacity: 0.18;
    filter:
      grayscale(1) contrast(1.25) sepia(1) hue-rotate(5deg) saturate(2) brightness(0.25)
      drop-shadow(0 0 4px rgba(255,110,0,0.15));
  }
  22%, 57% {
    opacity: 0.65;
    filter:
      grayscale(1) contrast(1.25) sepia(1) hue-rotate(5deg) saturate(5) brightness(0.6)
      drop-shadow(0 0 30px rgba(255,110,0,0.45));
  }
}

/* The actual Cabra logo — smaller, higher on the wall, neon flicker */
.apps-logo-mural {
  position: absolute;
  top: 12%; left: 50%;
  transform: translateX(-50%);
  width: 320px; height: 320px;
  pointer-events: none;
  z-index: 0;
}
.apps-logo-mural img {
  width: 100%; height: 100%;
  object-fit: contain;
  animation: neon-flicker 5s infinite;
  mix-blend-mode: screen;
}
.apps-header, .apps-row { position: relative; z-index: 1; }

.apps-bg-text {
  position: absolute;
  bottom: -20px;
  right: -40px;
  font-family: var(--head);
  font-size: 22vw;
  color: rgba(255,255,255,0.015);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.04em;
}
.apps-header {
  max-width: 1100px;
  margin: 0 auto 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.apps-row {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.app-card {
  background: rgba(255,255,255,0.01);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 28px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,85,0,0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.app-card:hover::before { opacity: 1; }
.app-card:hover {
  border-color: rgba(255,85,0,0.4);
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
/* stagger heights */
.app-card:nth-child(2) { margin-top: 24px; }
.app-card:nth-child(4) { margin-top: 24px; }
.app-icon {
  width: 72px; height: 72px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  flex-shrink: 0;
}
.app-name {
  font-family: 'TG', var(--body);
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 0.04em;
}
.app-desc {
  font-family: var(--body);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--dim);
  flex-grow: 1;
}
.app-dl {
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hot);
  border: 1px solid rgba(255,85,0,0.3);
  padding: 8px 20px;
  border-radius: 20px;
  transition: all 0.2s;
}
.app-card:hover .app-dl { background: var(--hot); color: #fff; border-color: var(--hot); }

/* ============================================================
   CONTACT — campfire dark
   ============================================================ */
#contact {
  position: relative;
  overflow: hidden;
}
.contact-bg-img {
  position: absolute;
  inset: 0;
  background: url('https://images.squarespace-cdn.com/content/v1/5bba0ea2a09a7e4c80cdccf2/1539539234521-3MOQCPZSYZ8QSZ75L3KN/Blue+Pier.jpg?format=2500w') center / cover no-repeat;
  filter: brightness(0.3) saturate(0.6);
}
.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.contact-left h2 {
  font-family: var(--head);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
}
.contact-left p {
  font-family: var(--body);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--dim);
  margin-bottom: 36px;
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.f-group { margin-bottom: 12px; }
.f-group input,
.f-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  padding: 13px 16px;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--cream);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.f-group input:focus, .f-group textarea:focus { border-color: var(--hot); background: rgba(255,255,255,0.09); }
.f-group input::placeholder, .f-group textarea::placeholder { opacity: 0.35; }
.f-group textarea { min-height: 110px; resize: vertical; }
.contact-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}
.contact-right h3 {
  font-family: var(--head);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 8px;
}
.contact-right p {
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 16px;
}
.email-bar { display: flex; gap: 10px; }
.email-bar input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  padding: 13px 16px;
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}
.email-bar input:focus { border-color: var(--hot); }
.contact-socials { display: flex; gap: 14px; flex-wrap: wrap; }
.soc-btn {
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--dim);
  padding: 9px 18px;
  border-radius: 2px;
  transition: all 0.2s;
  display: inline-block;
}
.soc-btn:hover { border-color: var(--cream); color: var(--cream); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #030303;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 48px 60px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.foot-logo { height: 40px; opacity: 0.7; }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.foot-links a {
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,232,216,0.3);
  transition: color 0.2s;
}
.foot-links a:hover { color: var(--hot); }
.foot-copy {
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(240,232,216,0.2);
}

/* Mobile sticky */
.mob-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 400;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 16px;
  gap: 10px;
}
.mob-bar .btn-fill, .mob-bar .btn-line { flex: 1; text-align: center; padding: 13px 10px; font-size: 0.75rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { height: 50vh; }
  .hero-left::after { display: none; }
  .hero-left-img::after { background: linear-gradient(to bottom, transparent 30%, rgba(8,8,8,0.95) 100%); }
  .hero-right { padding: 60px 32px 80px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .apps-row { grid-template-columns: repeat(3, 1fr); }
  .app-card:nth-child(2), .app-card:nth-child(4) { margin-top: 0; }
  .bento { grid-auto-rows: 120px; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .ham { display: flex; }
  #nav { padding: 16px 24px; }
  .nav-logo { height: 36px; }
  .bodega-header { flex-direction: column; align-items: flex-start; gap: 20px; padding: 0 24px 40px; }
  .shirt-scroll-track { padding: 0 24px; }
  .apps-row { grid-template-columns: repeat(2, 1fr); }
  .art-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .b-wide, .b-tall, .b-med, .b-sq { grid-column: span 2; grid-row: span 2; }
  .b-sm, .b-xsm { grid-column: span 2; grid-row: span 1; }
  footer { flex-direction: column; align-items: center; text-align: center; padding: 40px 24px 24px; }
  .foot-links { justify-content: center; }
  .f-row { grid-template-columns: 1fr; }
  .mob-bar { display: flex; }
  body { padding-bottom: 68px; }
}

/* ============================================================
   ART SPIRAL — scroll-driven 3D gallery
   ============================================================ */
#art {
  background: var(--cream);
  padding-bottom: 0;
}
.art-header {
  padding: 100px 80px 60px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.art-ctas { display: flex; gap: 16px; flex-shrink: 0; }

/* Tall scroll container — 11 × STEP(600) + viewport for sticky */
.art-spiral-outer {
  position: relative;
  height: calc(11 * 600px + 100vh);
}

/* Sticky viewport — stays locked while you scroll through */
.art-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #050508;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Animated canvas background */
#artBg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Perspective container */
.art-perspective {
  perspective: 1100px;
  perspective-origin: 50% 55%;
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* 3D scene */
.art-3d {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

/* ── Art card — 3D two-sided ── */
.art-sc {
  position: absolute;
  top: 50%; left: 50%;
  width: 300px;
  height: 360px;
  margin-left: -150px;
  margin-top: -180px;
  transform-style: preserve-3d;
  cursor: pointer;
  will-change: transform, opacity;
}

/* Front face — solid dark frame with realistic glass overlay */
.art-front {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #07080f;
  border-radius: 14px;
  /* 3px border — visible glass thickness with a slight blue-white tint */
  border: 3px solid rgba(210,228,255,0.28);
  box-shadow:
    /* deep drop shadow */
    0 24px 70px rgba(0,0,0,0.85),
    0 6px 20px rgba(0,0,0,0.6),
    /* outer bright line — like light catching the outside glass edge */
    0 0 0 1px rgba(255,255,255,0.45),
    /* inner bevel: top/left bright, bottom/right dark */
    inset 0 2px 0 rgba(255,255,255,0.4),
    inset 0 -2px 0 rgba(0,0,0,0.55),
    inset 2px 0 0 rgba(255,255,255,0.18),
    inset -2px 0 0 rgba(0,0,0,0.35);
  overflow: hidden;
}
.art-sc:hover .art-front {
  border-color: rgba(255,115,30,0.5);
  box-shadow:
    0 28px 80px rgba(0,0,0,0.9),
    0 8px 30px rgba(255,85,0,0.2),
    0 -1px 0 rgba(255,255,255,0.12),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.5),
    inset 1px 0 0 rgba(255,255,255,0.15),
    inset -1px 0 0 rgba(0,0,0,0.3);
}
/* No overlay on the painting — image is pure and clean.
   The glass effect lives entirely in the frame/border, not over the artwork. */

/* Glass frame rim — catches light like thick beveled glass edges */
.art-front::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: 12px;
  /* Diagonal catch-light ONLY at the frame rim — doesn't touch the painting */
  background:
    /* top-left corner catch-light — where light hits the glass edge at an angle */
    radial-gradient(ellipse 70% 30% at 12% 8%,  rgba(255,255,255,0.18) 0%, transparent 100%),
    /* bottom-right counter-shadow */
    radial-gradient(ellipse 50% 20% at 88% 92%, rgba(0,0,0,0.22) 0%, transparent 100%);
  /* The gradient only grazes the very edges — the painting center stays untouched */
  mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.6) 6%,
    rgba(0,0,0,0) 12%,
    rgba(0,0,0,0) 88%,
    rgba(0,0,0,0.5) 94%,
    rgba(0,0,0,1) 100%
  );
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.6) 6%,
    rgba(0,0,0,0) 12%,
    rgba(0,0,0,0) 88%,
    rgba(0,0,0,0.5) 94%,
    rgba(0,0,0,1) 100%
  );
}
/* Inner beveled edge — the chamfer that makes the border read as thick glass */
.art-front::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: 12px;
  box-shadow:
    /* top & left inner edges bright — facing the light source */
    inset 1px 1px 0 rgba(255,255,255,0.45),
    inset 2px 2px 0 rgba(255,255,255,0.15),
    inset 3px 3px 0 rgba(255,255,255,0.05),
    /* bottom & right inner edges dark — in shadow */
    inset -1px -1px 0 rgba(0,0,0,0.6),
    inset -2px -2px 0 rgba(0,0,0,0.25);
}

/* Back face — canvas back texture */
.art-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(180deg);
  border-radius: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(120,90,50,0.18) 0px, transparent 1px, transparent 28px),
    repeating-linear-gradient(0deg,  rgba(120,90,50,0.18) 0px, transparent 1px, transparent 28px),
    linear-gradient(135deg, #c8b88a 0%, #b8a878 40%, #a89868 100%);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.7),
    inset 0 0 0 16px rgba(101,73,30,0.25),
    inset 0 0 0 28px rgba(101,73,30,0.1);
  pointer-events: none;
}
/* Canvas back center label */
.art-back::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 70%; height: 60%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(101,73,30,0.35);
  border-radius: 2px;
}

/* Art image — fills the top of the frame, solid, no transparency */
.art-sc .art-matte {
  padding: 0;
  background: #000;
  border-radius: 0;
  position: relative;
  z-index: 1;
}
.art-sc .art-matte img {
  width: 100%;
  height: 292px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  /* subtle vignette to blend into the dark frame */
  filter: brightness(0.96) contrast(1.04);
}
/* Footer — dark glass shelf with etched title */
.art-sc .art-card-foot {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(10,12,22,0.94) 0%, rgba(5,7,14,0.99) 100%);
  border-top: 1px solid rgba(255,255,255,0.14);
  border-radius: 0 0 12px 12px;
}
/* Etched glass text — carved-in look via inverted bevel */
.art-sc .art-card-name {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  /* Nearly transparent fill — the shadows do the work */
  color: rgba(255,255,255,0.06);
  text-shadow:
    /* bright highlight ABOVE each letter (as if light catches the carved edge) */
    0 1px 0 rgba(255,255,255,0.65),
    /* deep shadow BELOW — the carved depression */
    0 -1px 0 rgba(0,0,0,0.85),
    0 -2px 1px rgba(0,0,0,0.4),
    /* micro ambient glow */
    0 0 6px rgba(255,255,255,0.08);
}

/* Counter — bottom center */
.art-counter {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 2;
}
#artNum { color: rgba(255,255,255,0.85); font-size: 1rem; }
.art-counter-sep { opacity: 0.3; }

/* Scroll hint — fades out after first scroll */
.art-scroll-hint {
  position: absolute;
  bottom: 32px;
  right: 40px;
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  transition: opacity 0.5s;
  z-index: 2;
}
.art-scroll-hint.hidden { opacity: 0; }

/* Tools row below the sticky */
.art-tools-row {
  background: var(--cream);
  padding: 32px 0 60px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.art-tools-row a {
  font-family: var(--body);
  font-size: 0.85rem;
  color: #8B6914;
  text-decoration: underline;
  text-underline-offset: 3px;
}
