/* =============================================================================
   RESET — minimal modern reset (replaces html5boilerplate main.css)
   ============================================================================= */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body, div, span, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, a, abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp, small,
strong, sub, sup, var, b, u, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption,
footer, header, hgroup, main, menu, nav, section, summary {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, main, menu, nav, section, summary {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

img {
  border: 0;
  max-width: 100%;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}


/* =============================================================================
   DESIGN TOKENS
   ============================================================================= */

:root {
  --background: #050919;
  --heading: #fff;
  --text-primary: rgba(255, 255, 255, 0.65);
  --text-primary-hover: #fff;
  --link: #d3ce9f;
  --link-hover: #fff;
  --button: rgba(5, 9, 25, 0.9);
  --button-active: rgba(5, 9, 25, 1);
  --divider: rgba(255, 255, 255, .05);
  --svg: #fff;
  --nav-mobile: rgba(5, 9, 25, 0.95);
}

/* light theme */
.theme-light {
  --background: #f4f4f4;
  --heading: #000;
  --text-primary: #333;
  --text-primary-hover: #000;
  --link: #d3ce9f;
  --link-hover: #000;
  --button: #eee;
  --button-active: #ddd;
  --divider: rgba(0, 0, 0, .1);
  --svg: #000;
  --nav-mobile: #f4f4f4;
}

/* dark theme — matches :root defaults, kept explicit for JS theme switching */
.theme-light2 {
  --background: #050919;
  --heading: #fff;
  --text-primary: rgba(255, 255, 255, 0.65);
  --text-primary-hover: #fff;
  --link: #d3ce9f;
  --link-hover: #fff;
  --button: rgba(5, 9, 25, 0.9);
  --button-active: rgba(5, 9, 25, 1);
  --divider: rgba(255, 255, 255, .05);
  --svg: #fff;
  --nav-mobile: rgba(5, 9, 25, 0.95);
}


/* =============================================================================
   BASE
   ============================================================================= */

html {
  font-size: 10px;
}

body {
  background: var(--background) url(/images/hero/hero-buddha.png) no-repeat top center;
  background-size: 144rem 75rem;
  font-family: 'IBM Plex Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
}

.theme-light {
  background-image: none;
}

svg {
  fill: var(--svg);
}

p {
  font-size: 1.4rem;
  line-height: 2.4rem;
  margin: 0;
}

dt, dd, li {
  font-size: 1.4rem;
  line-height: 1.8rem;
  margin: 0 0 0.4em;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  color: var(--heading);
  text-transform: uppercase;
  margin: 0 0 2rem 0;
}

h1 {
  font-size: 2.2rem;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 250ms ease;
}

a:hover {
  color: var(--link-hover);
}


/* =============================================================================
   LAYOUT
   ============================================================================= */

.wrapper {
  max-width: 96rem;
  margin: 0 auto;
  padding: 0;
}

.header,
.main,
.footer,
.project-list {
  margin: 0;
  display: block;
}


/* =============================================================================
   HEADER / NAV
   ============================================================================= */

.site-logo {
  display: block;
  width: 100%;
  height: 21rem;
  background: transparent url(/images/interface/logo-new.svg) 50% 80% no-repeat;
  transition: background 0.2s ease-in;
}

.site-logo span {
  display: inline-block;
  text-indent: -900rem;
}

.navigation-trigger {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  margin: 0;
  height: 4rem;
  border-bottom: 1px solid var(--divider);
}

.nav a {
  color: var(--text-primary);
  padding: 1rem 1rem 1rem 0;
}

.nav a:hover {
  color: var(--text-primary-hover);
}

.nav ul {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.nav li {
  font-size: 1.6rem;
  font-weight: normal;
  text-transform: uppercase;
  margin: 0 1rem 0 0;
}

.nav li.current a {
  color: var(--text-primary-hover);
}

.nav .links-nav {
  margin-left: auto;
}

.nav .links-nav li {
  margin-left: 1rem;
  margin-right: 0;
}

.nav-spacer {
  display: none;
}


/* =============================================================================
   PROJECT LISTING
   ============================================================================= */

.project-list {
  margin-top: 6rem;
  display: flex;
  flex-wrap: wrap;
  align-content: stretch;
  gap: 8px;
}

.project-list-item {
  flex-basis: calc((100% - 16px) / 3);
  margin: 0;
  padding: 0;
  position: relative;
  line-height: 0;
}

.project-list-item figure .thumbnail {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-list-item figure img {
  width: 100%;
  height: 100%;
  transition: transform 0.2s ease-in;
}

.project-list-item:hover figure img {
  transform: scale(1.05);
}

.project-list-item .project-list-item-text {
  transition: opacity 0.2s ease-in, bottom 0.2s ease-out;
  box-sizing: border-box;
}

.project-list-item:hover .project-list-item-text {
  bottom: 60%;
  opacity: 1;
}

.project-list-item .project-list-item-text dl {
  margin: 0;
  padding: 1rem 0;
  height: 6rem;
  display: block;
  line-height: 1.7rem;
}

.project-list-item .project-list-item-text dt {
  font-size: 1.5rem;
  text-align: left;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
  padding: 0 0 0.1rem;
  line-height: 1.2;
  color: var(--heading);
}

.project-list-item .project-list-item-text dd {
  font-size: 1rem;
  line-height: 1rem;
  color: var(--text-primary);
  padding: 0;
  margin: 4px 0 0 0;
}

.project-list-item .project-list-item-text dd p {
  font-size: 1.3rem;
  line-height: 1.3rem;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  opacity: 0.7;
  text-align: left;
  margin-top: 0;
}


/* =============================================================================
   PROJECT DETAIL
   ============================================================================= */

.project {
  max-width: 96rem;
  padding-top: 6.4rem;
  margin: 0;
  position: relative;
}

.project h2 {
  font-size: 1.4rem;
  margin-top: 1.4rem;
}

.project-nav {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  height: 4rem;
  width: 100%;
}

.project .button {
  width: 4em;
  height: 4em;
  overflow: hidden;
  background-size: 1.6rem 1.6rem;
  text-indent: -999rem;
  background-color: var(--button);
  background-repeat: no-repeat;
  background-position: center center;
  float: right;
}

a.button {
  transition: color 150ms ease;
}

a.button:active {
  background-color: var(--button-active);
}

.project .project-prev {
  background-image: url(/images/interface/prev.svg);
  transition: all 0.2s ease-in-out;
  opacity: 0.8;
}

.project .project-next {
  background-image: url(/images/interface/next.svg);
  transition: all 0.2s ease-in-out;
  opacity: 0.8;
}

.project .project-close {
  background-image: url(/images/interface/close.svg);
  transition: all 0.2s ease-in-out;
  opacity: 0.8;
}

.project a.project-close:hover,
.project a.project-prev:hover,
.project a.project-next:hover {
  background-size: 43%;
  opacity: 1;
}

.project-header {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  padding: 0;
  margin: 0 0 6rem 0;
}

.project-description {
  flex: 2;
  min-width: 0;
  padding: 0;
  margin: 0;
}

.project-details {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.project-details dl {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.4rem 0;
}

.project-details dt {
  grid-column: 1;
}

.project-details dd {
  grid-column: 2;
}

.project-links {
  font-size: 1.8rem;
  text-transform: uppercase;
}

.project-images {
  display: block;
  margin: 0;
  padding: 0;
}

.project-images .project-image {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-images .project-image img {
  display: block;
  width: 100%;
}


/* =============================================================================
   FOOTER
   ============================================================================= */

.footer {
  margin: 0;
  padding: 1rem 0.5rem;
  text-align: center;
}

.footer p {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2rem;
}


/* =============================================================================
   ABOUT
   ============================================================================= */

.author-bio {
  display: flex;
  align-items: flex-start;
  padding-top: 7rem;
  padding-bottom: 5rem;
}

.author-bio .author-desc {
  flex: 1;
}

.author-bio .author-photo {
  margin-right: 5rem;
  background: transparent url(/images/interface/photo-mariusz-mickiewicz.png) no-repeat center center;
  background-size: 100% 100%;
  width: 250px;
  height: 250px;
  flex-basis: 250px;
}

.author-bio .link-cta {
  display: inline-block;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin: 3rem 0;
}

.author-bio .brand-experience {
  margin-top: 3rem;
}


/* =============================================================================
   RESPONSIVE — 976px
   ============================================================================= */

@media only screen and (max-width: 976px) {

  .project-nav,
  #navigation-primary {
    margin-left: 2rem;
    margin-right: 2rem;
  }

  .site-logo {
    height: 16rem;
    background-position: 50% 50%;
  }

  .project-header {
    margin-left: 2rem;
    margin-right: 2rem;
  }

  .author-bio .author-desc {
    margin-right: 2rem;
  }

  .author-bio .author-photo {
    margin-left: 2rem;
    margin-right: 3rem;
  }

  .project-list-item .project-list-item-text dl {
    padding-left: 1.5rem;
  }

}


/* =============================================================================
   RESPONSIVE — 668px (mobile)
   ============================================================================= */

@media only screen and (max-width: 668px) {

  .project-nav {
    margin-right: 0;
  }

  .header {
    background-color: var(--nav-mobile);
    position: fixed;
    width: 100%;
    top: 0;
    box-sizing: border-box;
    z-index: 5000;
  }

  .site-logo {
    width: 4rem;
    height: 5.6rem;
    float: left;
    margin: 0 0 0 2rem;
    background-size: 3rem 2.5rem;
  }

  .nav ul {
    margin: 0;
  }

  .navigation-trigger {
    display: block;
    background: transparent url(/images/interface/menu.svg) 0 0 no-repeat;
    background-size: 4rem 8rem;
    width: 4rem;
    height: 4rem;
    text-indent: -9999px;
    overflow: hidden;
    outline: 0;
    margin-right: 1rem;
    float: right;
    margin-top: 1rem;
    opacity: 0.8;
    transition: all 0.2s ease-in-out;
  }

  .navigation-trigger:hover {
    opacity: 1;
  }

  .nav {
    display: none;
    height: 0;
    clear: both;
    margin: 0;
    padding: 0 2rem 1rem 2rem;
    border-bottom-width: 0;
  }

  .nav ul, .nav .links-nav {
    display: block;
    width: auto;
  }

  .nav ul li, .nav li {
    display: block;
    margin: 0;
  }

  .nav .links-nav li {
    margin: 0;
  }

  .nav a {
    display: block;
    padding: 1.5rem 0;
  }

  .menu-open .navigation-trigger {
    background-position: 0 -4rem;
  }

  .menu-open header {
    height: 100%;
  }

  .menu-open .nav {
    display: block;
    height: auto;
    transition: height 0.3s ease-in;
    overflow: hidden;
  }

  .project {
    padding-top: 14rem;
  }

  .project-nav {
    top: 5.6rem;
    position: fixed;
  }

  .project-details,
  .project-description {
    width: 100%;
  }

  .project-header {
    flex-direction: column;
    gap: 2rem;
  }

  .author-bio {
    flex-wrap: wrap;
  }

  .author-bio .author-desc {
    margin-left: 2rem;
    margin-right: 2rem;
  }

  .author-bio .author-photo {
    margin-top: 3rem;
    margin-bottom: 3rem;
    margin-left: 2rem;
    margin-right: 2rem;
  }

  .project-list-item {
    flex-basis: calc((100% - 16px) / 2);
  }

  nav #navigation-primary {
    margin-left: 0;
    margin-right: 0;
  }

}


/* =============================================================================
   RESPONSIVE — 480px
   ============================================================================= */

@media only screen and (max-width: 480px) {

  .project-list-item {
    flex-basis: 100%;
  }

}
