/* =========================================================================
   ARCHITECTURE PORTFOLIO — MAIN STYLESHEET
   Layout modeled on https://2a-studio.eu/de/
   Edit the variables in :root below to quickly re-theme the site.
   ========================================================================= */

@font-face {
  font-family: "Avenir LT Pro";
  src: url("../fonts/AvenirLTPro-Roman.woff2") format("woff2"),
       url("../fonts/AvenirLTPro-Roman.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Font ------------------------------------------------------------
     Avenir LT Pro is loaded locally from fonts/AvenirLTPro-Roman.woff2.
     Add the font file to the fonts folder for this to work in production.
  ------------------------------------------------------------------------ */
  --font-main: "Avenir LT Pro", "Roboto Condensed", "Segoe UI", Arial, sans-serif;

  /* ---- Colors ------------------------------------------------------------ */
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #6f6f6f;
  --color-line: #dddddd;

  /* ---- Spacing ----------------------------------------------------------- */
  --page-padding: clamp(20px, 4vw, 64px);
  --gap: 20px;
  --axis: 1px;
}



/* -------------------------------------------------------------------------
   RESET / BASE
------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  font-weight: 300;              /* Bahnschrift Light weight */
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
}

/* -------------------------------------------------------------------------
   HEADER
   Big studio / personal name + one line tagline, like the reference site.
------------------------------------------------------------------------- */
.site-header {
  position: relative;
  background: transparent;
  border-bottom: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  padding: 28px var(--page-padding) 18px;
}

.site-title {
  display: inline-block;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 300;
  letter-spacing: -0.04em;
}

.site-nav {
  display: flex;
  gap: 28px;
  padding-top: 7px;
  font-size: 14px;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Dropdown navigation */
.nav-dropdown {
  position: relative;
}

.nav-toggle {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-width: 220px;
  display: none;
  z-index: 20;
}

.nav-menu.open,
.nav-menu[aria-hidden="false"] {
  display: block;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
}

.nav-menu a:hover {
  background: rgba(0,0,0,0.03);
}

.site-tagline {
  grid-column: 1 / -1;
  margin: 9px 0 0;
  font-size: 13px;
  color: var(--color-muted);
  letter-spacing: 0.5px;
}

.info-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: 0 var(--page-padding) 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.info-portrait {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.info-portrait img {
  width: min(100%, 380px);
  height: auto;
  object-fit: cover;
}

.info-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.info-copy h1 {
  margin-top: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
}

.info-copy p {
  max-width: 720px;
}

.info-copy ul {
  margin: 24px 0 0;
  padding-left: 0;
  list-style: none;
}

.info-copy li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1.25rem;
}

.info-copy li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--color-text);
}

@media (max-width: 900px) {
  .info-page {
    grid-template-columns: 1fr;
  }

  .info-portrait {
    justify-content: center;
  }
}

/* -------------------------------------------------------------------------
   PROJECT LIST
   Vertical stack of project entries, separated by a hairline rule.
------------------------------------------------------------------------- */
.project-list {
  position: relative;
  padding: 0 var(--page-padding) 100px;
}

.project-list::before {
  display: none;
}

.project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  min-height: 390px;
  padding: 0 0 115px;
}

.project:first-child {
  padding-top: 0;
}

.gallery {
  position: relative;
  display: block;
  width: min(520px, 100%);
  overflow: hidden;
}

.gallery-track {
  display: flex;
  width: 100%;
  gap: var(--gap);
  overflow: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 0;

  /* hide scrollbar, arrows are used for navigation */
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-image {
  flex: 0 0 100%;
  height: clamp(260px, 31vw, 420px);
  width: 100%;
  scroll-snap-align: start;
  object-fit: contain;
  background: var(--color-bg);
  user-select: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0s linear 0.32s;
}

.gallery-image.loaded {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.gallery-arrow {
  display: none !important;
}

.gallery-arrow.gallery-prev {
  left: 8px;
}

.gallery-arrow.gallery-next {
  right: 8px;
}

/* arrows are hidden; cursor indicates left/right instead */

.gallery-arrow:hover {
  transform: translateY(-50%) scale(1.05);
}

.gallery-arrow svg {
  width: 12px;
  height: 18px;
}

.project-link {
  display: inline-block;
  background: transparent;
  color: #3245f4;
  text-decoration: none;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  border-radius: 0;
  box-shadow: none;
  padding: 6px 0 0 0;
  margin-top: 8px;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.project-link:hover {
  opacity: 0.9;
}

.gallery-arrow:hover {
  opacity: 0.45;
}

/* -------------------------------------------------------------------------
   PROJECT INFO
   Title, one-line description, and a status line underneath the gallery.
------------------------------------------------------------------------- */
.project-info {
  max-width: 280px;
  margin: 5px 0 0 32px;
}

.project:nth-child(odd) .gallery {
  justify-self: end;
}

.project:nth-child(even) .gallery {
  justify-self: start;
}

.project:nth-child(even) .project-info {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  margin: 5px 32px 0 0;
  text-align: right;
}

.project-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.project-description {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--color-text);
}

.project-status {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

/* -------------------------------------------------------------------------
   PROJECT NAVIGATION
------------------------------------------------------------------------- */
.project-navigation {
  max-width: 900px;
  margin: 36px auto 24px;
  text-align: center;
}
.project-navigation-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.project-navigation-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 320px;
}
.project-navigation-list li {
  margin: 0 0 14px;
}
.project-navigation-list li:last-child {
  margin-bottom: 0;
}
.project-navigation-list a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.project-navigation-list a:hover,
.project-navigation-list a:focus {
  border-color: currentColor;
  opacity: 0.8;
}

/* -------------------------------------------------------------------------
   FOOTER
------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 0 var(--page-padding) 40px;
  color: var(--color-muted);
  font-size: 13px;
}

/* -------------------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------------------- */
@media (max-width: 600px) {
  :root {
    --page-padding: 20px;
  }

  .gallery-image {
    height: 220px;
  }

  .site-header {
    padding-top: 22px;
    padding-bottom: 55px;
  }

  .site-nav {
    gap: 14px;
    font-size: 12px;
  }

  .project {
    display: block;
    min-height: 0;
    padding-bottom: 76px;
  }

  .project-info,
  .project:nth-child(even) .project-info {
    max-width: 100%;
    margin: 18px 0 0;
    text-align: left;
  }

  .project:nth-child(even) .project-info {
    margin: 18px 0 0;
  }

  .gallery {
    width: 100%;
  }

  .gallery-track {
    overflow-x: auto;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }
}
