@charset "utf-8";

/* ============================================================
   Theme (Light / Dark variables)
   ============================================================ */

:root
{
  --bg: #ffffff;
  --text: #111111;
  --card: #f5f5f5;
  --accent: #D76445;
  --overlay-bg: #000000d4;
  --overlay-bg-mobile: #000000e6;
  --overlay-text: #ffffff;
}

:root[data-theme="light"]
{
  --bg: #ffffff;
  --text: #111111;
  --card: #f5f5f5;
  --overlay-text: #ffffff;
}

:root[data-theme="dark"]
{
  --bg: #111111;
  --text: #f0f0f0;
  --card: #1e1e1e;
  --overlay-text: #ffffff;
}

/* ============================================================
   Reset
   ============================================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: inherit;
}

/* ============================================================
   Base
   ============================================================ */

html,
body {
  font-family: 'Dosis', sans-serif;
  padding-bottom: 60px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   Typography
   ============================================================ */

h4 {
  font-size: 1.125em;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.12rem;
}

h5 {
  font-size: 0.95em;
  font-weight: 100;
  line-height: 1.2;
  letter-spacing: 0.12rem;
}

p {
  font-size: 0.9em;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.06rem;
}

/* ============================================================
   Layout — header
   ============================================================ */

header {
  width: 100%;
  display: flex;
  align-items: center;
  position: fixed;
  background-color: var(--bg);
  top: 0;
  left: 0;
  z-index: 100;
}

footer {
  width: 100%;
  clear: both;
  position: fixed;
  bottom: 0;
  left: 0;
}

/* ── Navigation ── */

nav ul {
  list-style: none;
}

nav li {
  display: inline-block;
  font-size: 1.25em;
  letter-spacing: 0.12rem;
  font-weight: 200;
  padding: 10px;
}

nav li a {
  color: inherit;
  text-decoration: none;
}

nav li a:hover {
  opacity: 50%;
}

.menu {
  width: auto;
}

.menu-item {
  display: inline-flex;
  letter-spacing: 0.12rem;
}

/* ── Hamburger toggle (three-bar, animates into an X) ── */
.hamburger {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
  position: relative;
  z-index: 200; /* stays above the overlay so it's still clickable to close */
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.hamburger.is-open span {
  background: var(--overlay-text);
}

/* ============================================================
   Columns (Flexbox)
   ============================================================ */

.row {
  display: flex;
  align-items: center;
  width: 100%;
}

.column {
  margin: 10px;
}

.row-2 {
  display: flex;
}

.col-2 {
  padding: 10px;
}

.col-2-main {
  flex: 1;
  min-width: 0;
  /* prevents inner content (e.g. masonry) from overflowing */
}

/* ============================================================
   Dark mode toggle control
   ============================================================ */

.darkmode-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.darkmode-button:hover {
  opacity: 50%;
}

.toggle {
  width: 30px;
}

/* ============================================================
   Portfolio grid
   ============================================================ */

.grid-item {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.grid-item .image {
  display: block;
  width: 100%;
  height: auto;
}

.grid-item .overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: 0.5s ease;
  background-color: var(--overlay-bg);
}

.grid-item:hover .overlay {
  opacity: 1;
}

.grid-item .text {
  color: white;
  font-size: 1.375em;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.15rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

/* ============================================================
   Filter
   ============================================================ */

.container {
  overflow: hidden;
}

.filterDiv {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 24px;
}

.show {
  display: block;
}

.btn-container {
  text-align: center;
}

.btn {
  border: none;
  outline: none;
  margin: 5px;
  color: var(--text);
  cursor: pointer;
  background: none;
  font-size: 0.9em;
  letter-spacing: 0.06rem;
  font-weight: 300;
}

.btn:hover,
.btn.active {
  opacity: 0.5;
  font-size: 0.9em;
  letter-spacing: 0.06rem;
  font-weight: 300;
  text-decoration: underline;
}

/* ============================================================
   Project page
   ============================================================ */

.text-container {
  position: sticky;
}

.bar {
  color: #ffffff;
  margin-bottom: 15px;
  padding: 5px;
  border-radius: 24px;
  background-color: var(--bar-color, var(--accent));
  text-align: center;
  width: 100%;
}

.project-category {
  text-align: center;
  margin-top: 13px;
  margin-bottom: 13px;
}

/* ── Masonry (modified with help from Claude) ── */
.masonry-grid img,
.masonry-grid video {
  margin-bottom: 10px;
  border-radius: 8px;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.masonry-grid video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.masonry-grid img.is-visible,
.masonry-grid video.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.grid-sizer {
  width: 32%;
  /* fallback if no tier class is added */
}

/* ── Video Modal ── */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.video-modal.is-open {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
}

.video-modal-content video {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

/* ============================================================
   Profile / About
   ============================================================ */

.about-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-image {
  width: 100%;
  max-width: 350px;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  border: 8px solid #ffffff;
  position: relative;
  z-index: 1;
}

.profilebtn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  width: 100%;
}

.profilebtn {
  padding: 12px;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 15px;
  border: 1px solid #ffffff;
  border-radius: 20px;
  cursor: pointer;
  text-align: center;
  font-family: 'Dosis', sans-serif;
}

.profilebtn:hover {
  opacity: 50%;
}

.profile-subheader {
  margin-top: 15px;
}

.pronouns {
  color: var(--accent);
  margin-bottom: 15px;
  align-self: flex-start;
}

.underline {
  border-bottom: 2px solid var(--accent);
}

.accordion {
  cursor: pointer;
  border: none;
  text-align: left;
  outline: none;
  transition: 0.5s;
  background-color: transparent;
  margin-bottom: 15px;
  color: inherit;
  font-family: 'Dosis', sans-serif;
  font-size: 1.125em;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.25rem;
  align-self: flex-start;
}

.active,
.accordion:hover {
  background-color: transparent;
  font-family: 'Dosis', sans-serif;
  font-size: 1.125em;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.12rem;
}

.panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  font-family: 'Dosis', sans-serif;
  width: 100%;
}

.about-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.about-gallery img {
  width: 100%;
  border: 5px solid var(--media-border);
  border-radius: 8px;
  display: block;
}

.bio {
  margin-top: 13px;
  margin-bottom: 15px;
}

/* ============================================================
   The Archive
   ============================================================ */



/* ============================================================
   Media Queries — Mobile First
   ============================================================ */

/* ── Tier 1: min-width 320px — Mobile ── */
@media (min-width: 320px) {

  html,
  body {
    padding-top: 60px;
  }

  h1 { font-size: 1.1em; font-weight: 700; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.05rem; }
  h2 { font-size: 1.4em; font-weight: 500; line-height: 1.2; letter-spacing: 0.08rem; }
  h3 { font-size: 1.2em; font-weight: 200; line-height: 1.25; letter-spacing: 0.15rem; }

  header {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 15px;
  }

  nav.menu li {
    display: block;
    text-align: center;
    padding: 12px;
  }

  .hamburger {
    display: flex;
  }

  /* Nav overlay: full-screen mobile/tablet panel */
  .overlay {
    height: 100vh;
    width: 100%;
    max-width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 150; /* above header (100), below hamburger button (200) */
    background-color: var(--overlay-bg-mobile);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    color: var(--overlay-text);
  }

  .overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .overlay-content {
    position: relative;
    width: 100%;
    text-align: center;
  }

  .overlay-content ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 1.5em;
    color: var(--overlay-text);
    display: block;
    transition: 0.3s;
  }

  .overlay a:hover,
  .overlay a:focus {
    color: #f1f1f1;
  }

  .left,
  .right {
    flex: none;
    width: auto;
    text-align: left;
  }

  .middle {
    flex: 1;
    text-align: center;
  }

  .row-2 {
    flex-direction: column;
    gap: 30px;
  }

  .col-2-side {
    width: 100%;
    flex-shrink: 0;
    text-align: left;
  }

  .darkmode-button {
    display: none;
  }

  .grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 15px;
    align-items: start;
  }

  .btn-container {
    display: none;
  }

  .project-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
    margin-left: 0;
  }

  .masonry-grid.few .grid-sizer, .masonry-grid.few img, .masonry-grid.few video,
  .masonry-grid.medium .grid-sizer, .masonry-grid.medium img, .masonry-grid.medium video,
  .masonry-grid.many .grid-sizer, .masonry-grid.many img, .masonry-grid.many video {
    width: 100%;
  }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }

  .about-col:nth-child(2) {
    align-items: center;
  }

  .coloured-bar {
    width: 100%;
    height: 65px;
    background-color: var(--accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 20px;
  }

  .profile-image {
    margin-top: 0;
  }

  .profilebtn,
  .underline,
  .accordion {
    width: 100%;
    max-width: 300px;
  }
}

/* ── Tier 2: min-width 450px, max-width 1024px — Mobile & Tablet ── */
@media (min-width: 450px) and (max-width: 1024px) {

  html,
  body {
    padding-top: 50px;
  }

  .grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px;
  }

  .row-2 {
    flex-direction: row;
    gap: 20px;
  }

  .col-2-side {
    width: 280px;
  }

  .project-container {
    flex-direction: row;
    margin-left: 20px;
  }

  .masonry-grid.few .grid-sizer, .masonry-grid.few img, .masonry-grid.few video {
    width: 48%;
  }
  .masonry-grid.medium .grid-sizer, .masonry-grid.medium img, .masonry-grid.medium video {
    width: 32%;
  }
  .masonry-grid.many .grid-sizer, .masonry-grid.many img, .masonry-grid.many video {
    width: 32%;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
  }

  .coloured-bar {
    justify-content: flex-start;
    text-align: left;
    padding-left: calc(50% + 20px);
    /* matches 2-col about-grid */
  }

  .profile-image {
    margin-top: -80px;
  }

  .profilebtn,
  .underline,
  .accordion {
    width: 250px;
    max-width: none;
  }
}

/* ── Tier 3: min-width 1024px — Desktop ── */
@media (min-width: 1024px) {

  html,
  body {
    padding-top: 50px;
  }

  h1 { font-size: 2.5em; font-weight: 700; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.2rem; }
  h2 { font-size: 1.75em; font-weight: 500; line-height: 1.2; letter-spacing: 0.15rem; }
  h3 { font-size: 1.375em; font-weight: 200; line-height: 1.25; letter-spacing: 0.15rem; }

  header {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 0px;
    padding: 15px;
  }

  nav.menu li {
    display: inline-block;
    text-align: left;
    padding: 10px;
  }

  .hamburger {
    display: none;
  }

  .overlay {
    height: auto;
    width: auto;
    max-width: none;
    position: static;
    z-index: auto;
    background-color: transparent;
    overflow-x: visible;
    display: block;
    opacity: 1;
    pointer-events: auto;
    transition: none;
    color: inherit;
  }

  .overlay-content {
    position: static;
    width: auto;
    text-align: left;
  }

  .overlay-content ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .overlay a {
    padding: 0;
    font-size: inherit;
    color: inherit;
    display: inline-block;
  }

  .overlay a:hover,
  .overlay a:focus {
    color: inherit;
    opacity: 50%;
  }

  .left,
  .right {
    flex: 1;
    width: auto;
    text-align: left;
  }

  .right {
    text-align: right;
  }

  .middle {
    flex: 2;
    text-align: center;
  }

  .row-2 {
    flex-direction: row;
    gap: 30px;
  }

  .col-2-side {
    width: 400px;
  }

  .darkmode-button {
    display: inline-block;
  }

  .grid-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 60px;
  }

  .btn-container {
    display: block;
  }

  .project-container {
    flex-direction: row;
    margin-left: 20px;
  }

  .masonry-grid.few .grid-sizer, .masonry-grid.few img, .masonry-grid.few video {
    width: 48%;
  }
  .masonry-grid.medium .grid-sizer, .masonry-grid.medium img, .masonry-grid.medium video {
    width: 32%;
  }
  .masonry-grid.many .grid-sizer, .masonry-grid.many img, .masonry-grid.many video {
    width: 23.5%;
  }

  .about-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 30px;
  }

  .about-col:nth-child(2) {
    align-items: flex-start;
  }

  .coloured-bar {
    justify-content: flex-start;
    text-align: left;
    padding-left: calc(33.33% + 30px);
    /* skip column 1 + gap */
  }

  .profile-image {
    margin-top: -80px;
    /* adjust this value to taste */
  }

  .profilebtn {
    width: 300px;
  }

  .underline {
    width: 250px;
  }

  .accordion {
    width: 250px;
  }
}