/* ─────────────────────────────────────────────────────────────
   Stitch'n'Bitch CRAFT @ FAccT 2026  —  style.css
   White background · Black text · Minimal colour
   Typefaces: Karla (serif body) + Intel One Mono (labels/code)
───────────────────────────────────────────────────────────── */

/* ── 0. CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  --black:       #0a0a0a;
  --white:       #ffffff;
  --grey-light:  #f2f1ef;
  --grey-mid:    #e3e3e3;
  --grey-dark:   #4a4744;
  --accent:      #23CE6B;

  --font-serif:  'Karla', Georgia, serif;
  --font-mono:   'Intel One Mono', 'Courier New', monospace;

  --max-w:       none;
  --gutter:      2rem;
  --topbar-height: 4.5rem;
  --section-gap: 5rem;
}

/* ── 1. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--topbar-height);
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--accent); }

ul { list-style: disc; padding-left: 1.25rem; }
ul li { margin-bottom: 0.3rem; }

img { display: block; width: 100%; height: auto; }


/* ── 2. IMAGE PLACEHOLDERS ────────────────────────────────── */
/* Remove these once real images are added */
.img-placeholder {
  background: var(--grey-light);
  border: 1px dashed var(--grey-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--grey-dark);
  text-align: center;
  padding: 0.5rem;
  position: relative;
}
.img-placeholder::after {
  content: attr(data-label);
  display: block;
}


/* ── 3. SHARED SECTION STYLES ─────────────────────────────── */
.section {
  max-width: var(--max-w);
  margin: 0 auto var(--section-gap);
  padding: 0 var(--gutter);
}

.section-heading {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  /* letter-spacing: 0.12em; */
  /* text-transform: uppercase; */
  margin-bottom: 0.1rem;
  padding-bottom: 0.1rem;
}

.section-intro {
  font-size: 0.9rem;
  color: var(--grey-dark);
  max-width: 680px;
  margin-bottom: 2rem;
}


/* ── 4. HEADER / TOP BAR ──────────────────────────────────── */
.site-header {
  margin-bottom: var(--section-gap);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: var(--topbar-height);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: var(--white);
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.top-bar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.site-label { font-weight: 500; }

.event-meta {
  text-align: right;
  line-height: 1.3;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.music-button {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-align: right;
  color: inherit;
  text-align: right;
  background: transparent;
  border: none;
  padding: 0;
  margin-top: -0.1rem;
  display: inline-block;
  align-self: flex-end;
  width: auto;
  cursor: pointer;
  font-weight: inherit;
  line-height: inherit;
}




/* ── 5. HERO ──────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 0;
  padding: var(--gutter);
  padding-top: 2rem;
}

/* Left: subtitle + body text */
.hero-left { padding-right: 2.5rem; }

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 350;
  font-style: bold;
  line-height: 1.2;
  max-width: 640px;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
}

.hero-body {
  display: grid;
  grid-template-columns: 0.5fr 0.5fr;
  gap: 2rem;
}

.hero-col p { font-size: 0.88rem; margin-bottom: 0.9rem; text-align: justify;}

.hero-feature-image {
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}



.hero-note {
  font-size: 0.82rem;
  color: var(--grey-dark);
  /* font-style: italic; */
}

.bubble-keyword {
  position: static;
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  margin-right: 0.5rem;
  margin-top: 2rem;
}


/* Right: rotated title + decorative image */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
  overflow: visible;
  position: relative;
}

.rotated-title-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.rotated-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 350;
  line-height: 1.1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(360deg);
  letter-spacing: 0.01em;
  text-align: left;
  margin-bottom: -5rem;
  position: relative;
  z-index: 1;
}

.side-cable-image {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 17rem;
  height: auto;
  z-index: 0;
  pointer-events: none;
}

/* ── 6. organizers & speakers ────────────────────────────────────────── */
.organizer-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
}

.organizer-card { text-align: center; }

.organizer-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.organizer-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.4;
}
.organizer-name span { color: var(--grey-dark); }

.speakers-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 2rem;
  align-items: start;
}

.speakers-main {
  min-width: 0;
}

.speakers-image-wrap {
  justify-self: end;
  width: min(460px, 150%);
  margin-top: 0.25rem;
  margin-right: -2rem;
}

.speakers-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}


/* ── 8. EXPLORE GALLERY ───────────────────────────────────── */
.explore-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-bottom: 0.5rem;
}

.explore-item { overflow: visible; display: block; }

.explore-row:not(.explore-row-5) .explore-item {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding-bottom: 1rem;
}

.explore-row:not(.explore-row-5) .explore-item > img {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.explore-row:not(.explore-row-5) .explore-credit {
  width: 100%;
  text-align: right;
  align-self: stretch;
}

.explore-row {
  position: relative;
  width: 100%;
}

/* Row 1: items 1-4 */
.explore-row-1 { min-height: 38rem; }

.explore-row-1 .item-1 {
  position: absolute;
  left: 2rem;
  top: 1rem;
  width: 22rem;
  height: 22rem;
}

.explore-row-1 .item-2 {
  position: absolute;
  left: 12rem;
  top: 20rem;
  width: 20rem;
  height: 16rem;
  transform: translateX(-2rem) translateY(-3rem);
  z-index: 2;
}

.explore-row-1 .item-3 {
  position: absolute;
  right: calc(2rem + 20rem + 1.5rem);
  top: 3.5rem;
  width: 18rem;
  height: 18rem;
  z-index: 5;
}

.explore-row-1 .item-4 {
  position: absolute;
  right: 2rem;
  top: 1rem;
  width: 20rem;
  height: 36rem;
  z-index: 6;
}

/* Row 2: item 5 */
.explore-row-2 {
  min-height: 40rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.explore-row-2 .item-5 {
  position: relative;
  top: 0;
  margin-bottom: 5rem;
  width: min(100%, 50rem);
  height: auto;
  transform: none;
}

/* Row 3: items 6-8 */
.explore-row-3 { min-height: 46rem; }

.explore-row-3 .item-6 {
  position: relative;
  margin: 0 auto 0 15rem;
  width: 20rem;
  height: 28rem;
  transform: none;
  z-index: 2;
}

.explore-row-3 .item-6 .explore-credit {
  position: absolute;
  top: 0;
  left: calc(100% + 0.75rem);
  margin-top: 0;
  width: auto;
  z-index: 3;
}

.explore-row-3 .item-7 {
  position: absolute;
  left: 2rem;
  top: 24rem;
  width: 18rem;
  height: 22rem;
  z-index: 1;
}

.explore-row-3 .item-8 {
  position: absolute;
  right: 2rem;
  top: 16rem;
  width: 41rem;
  height: 32rem;
  z-index: 1;
}

/* Row 4: new block with left large, center-top, right tall */
.explore-row-4 { min-height: 48rem; position: relative; }
.explore-row-4 .item-9 {
  position: absolute;
  left: 2rem;
  top: 8rem;
  width: 36rem;
  height: 24rem;
  z-index: 1;
}
.explore-row-4 .item-10 {
  position: absolute;
  left: 50%;
  top: 0;
  width: 18rem;
  height: 18rem;
  transform: translateX(-50%);
  z-index: 2;
}
.explore-row-4 .item-11 {
  position: absolute;
  right: 2rem;
  top: 4rem;
  width: 36rem;
  height: 40rem;
  z-index: 1;
}

/* Row 5: six video tiles in a left-aligned 3x2 grid */
.explore-row-5 {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  grid-auto-rows: 470px;
  gap: 0.1rem;
  justify-content: start;
  align-items: start;
  width: max-content;
  padding-top: 1rem;
  position: relative;
}
.explore-row-5-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: fit-content;
  max-width: 100%;
}
.explore-row-5 .explore-item {
  position: relative;
  width: 300px;
  height: 470px;
  overflow: hidden;
  background: #000;
}
.explore-row-5 .explore-item video {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 125%;
  height: 105%;
  transform: translate(-50%, -50%) scale(1.06);
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
  cursor: pointer;
}

.explore-credit--row5 {
  position: relative;
  margin-top: 0.15rem;
  margin-left: 0.75rem;
  width: max-content;
  text-align: left;
  align-self: flex-start;
}


/* mobile: collapse to single column and clear explicit placement */
@media (max-width: 900px) {
  .explore-grid { gap: 1rem; }
  .explore-row { min-height: auto !important; display: block; }
  .explore-item { transform: none !important; position: static !important; width: auto !important; height: auto !important; margin-bottom: 1rem; }
  .explore-row-3 .item-6 {
    margin: 0 auto;
    width: 100%;
    height: auto;
  }
  .explore-row-3 .item-6 .explore-credit {
    position: static;
    margin-left: 0;
    margin-top: 0.85rem;
    width: 100%;
    text-align: right;
    align-self: stretch;
  }
  .explore-row-5 {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
    gap: 0.75rem;
    width: 100%;
  }
  .explore-row-5-wrap {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .explore-row-5 .explore-item {
    position: relative !important;
    width: 100% !important;
    height: 500px !important;
    overflow: hidden;
  }
  .explore-row-5 .explore-item video {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 125%;
    height: 115%;
    transform: translate(-50%, -50%) scale(1.06);
    object-position: 50% 42%;
  }
  .explore-credit--row5 {
    margin-top: 0.85rem;
    width: 100%;
    text-align: right;
    align-self: stretch;
  }
}




.explore-credit {
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--grey-dark);
}


/* ── Bottom glitch ──────────────────────────────── */
.glitch-bg-cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: min(30rem, 42vw);
  margin: -0.5rem 0 1rem auto;
  pointer-events: none;
  position: relative;
  z-index: 0;
}

.glitch-bg-cluster img {
  width: min(100%, 36rem);
  height: auto;
  display: block;
  margin-top: 5rem;
}




.resources-section,
.site-footer {
  position: relative;
  z-index: 2;
}

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--grey-mid);
  padding: 1.5rem var(--gutter) 2rem;
  /* background: var(--grey-light); */
}

.resources-section {
  margin-bottom: 0;
}

.footer-inner { max-width: var(--max-w); margin: 0 auto; }



.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
  margin-bottom: 2.5rem;
  margin-top: 1.5rem;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

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

.footer-col ul li {
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
  line-height: 1.4;
}

.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-contact h3 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.footer-contact p { font-size: 0.85rem; }


/*  ─────────────────────────────────────────  */
/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-right {
    display: none;
  }

  .rotated-title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.8rem;
  }

  .hero-body { grid-template-columns: 1fr; }

  .organizer-grid { grid-template-columns: repeat(3, 1fr); }

  .speakers-layout {
    grid-template-columns: 1fr;
  }

  .speakers-image-wrap {
    width: min(320px, 100%);
    justify-self: right;
  }

  .footer-columns { grid-template-columns: 1fr 1fr; margin-top: 2rem; }
}

@media (max-width: 600px) {

  :root { --gutter: 1rem; --section-gap: 3rem; }

  .top-bar { height: 5rem; }

  .hero-body { grid-template-columns: 1fr; }

  .organizer-grid { grid-template-columns: repeat(2, 1fr); }

  .explore-grid { grid-template-columns: 1fr; grid-auto-rows: 180px; }

  .footer-columns { grid-template-columns: 1fr; margin-top: 2rem; }

  .top-bar { flex-direction: column; gap: 0.3rem; text-align: center; }

  .bottom-images {
    margin-bottom: 2rem;
  }

  .glitch-bg-cluster {
    width: min(18rem, 55vw);
    margin: 2rem -2rem 1rem auto;
  }

  .glitch-bg-cluster img {
    width: 100%;
  }

  .glitch-bg-cluster img:last-child {
    margin-top: -2.5rem;
    margin-right: 1.25rem;
  }
}