/* ===== Custom Fonts ===== */

@font-face {
  font-family: 'ObjectSans';
  src: url('fonts/ObjectSans-Regular.woff') format('woff'),
    url('fonts/ObjectSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ObjectSans';
  src: url('fonts/ObjectSans-Bold.woff') format('woff'),
    url('fonts/ObjectSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NeueMachina';
  src: url('fonts/NeueMachina-Regular.woff') format('woff'),
    url('fonts/NeueMachina-Regular.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Agrandir';
  src: url('fonts/Agrandir-GrandHeavy.woff') format('woff'),
    url('fonts/Agrandir-GrandHeavy.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}



/* ===== CSS Reset ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: 1.5;
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* ===== Design System ===== */

:root {
  /* Colors */
  --color-primary: #242424;
  --color-secondary: #3d3d3d;
  --color-tertiary: #888888;
  --color-link: #999999;
  --color-accent: #2B63F6;
  --color-accent-focus: #2B63F6;
  --color-background: #fdfdfd;
  --color-footer: #f5f5f5;
}

/* ===== Custom Cursor ===== */
body {
  cursor: none;
}

a,
button {
  cursor: none;
}

.custom-cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  background-color: rgba(170, 170, 170, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: transform 0.1s ease-out;
  mix-blend-mode: difference;
  opacity: 0;
}

.custom-cursor.visible {
  opacity: 1;
}

.custom-cursor.hover {
  transform: scale(1.2);
  background-color: rgba(170, 170, 170, 0.3);
}


/* ===== Page Load Animations ===== */

/* Initial states */
header,
.project-intro,
.text-section,
.feed {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

header {
  animation-delay: 0s;
}

header nav {
  animation-delay: 0.2s;
}

.feed {
  animation-delay: 0.6s;

}

.project-into,
.text-section {
  animation-delay: 0.5s;
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==============================
============= START =============
============================== */

body {
  background-color: var(--color-background);
  color: var(--color-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:visited {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  color: var(--hover-color, red);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:active {
  color: var(--color-accent-focus);
  text-decoration: none;
}

a svg {
  display: inline-block;
  vertical-align: middle;
}

header,
nav {
  font-family: 'ObjectSans', sans-serif;
  font-weight: 400;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  font-size: 14px;
}

header {
  margin: 32px 56px 0 56px;
}

nav {
  margin: 0;
}

.mail-copy-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: var(--color-link);
  cursor: none;
  display: inline;
  white-space: nowrap;
}

.mail-copy-btn:hover {
  color: var(--hover-color, red);
}

.inline-links {
  white-space: nowrap;
}

.back {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 24px;
  width: auto;
}

.link:hover {
  transition: transform 0.2s ease-in-out;
  transform: translateY(-3px);
}


.out-link {
  display: flex;
  align-items: center;
  gap: 4px;
}

.arrow-out {
  fill: var(--color-link);
}

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

header {
    margin: 20px 32px;
}

nav {
  margin: 0;
}

}

@media screen and (max-width: 480px) {
  header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    margin: 16px 20px;
    font-size: 10px;
  }

  nav {
    display: none;
    align-self: flex-start;
    margin: 0;
  }

  .logo img {
    height: 18px;
    width: auto;
  }
}

/* ========== GRID ========== */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}


@media (max-width: 768px) {
  .grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }
}


/* ========== HERO ========== */

.project-intro {
  padding: 128px 56px 0 56px;
  margin-top: 144px;
}

#col-2-13 {
  grid-column: 2 / 13;
}

.project-subtitle {
  font-family: 'ObjectSans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-tertiary);
  padding-bottom: 8px;
}

.project-name {
  font-family: 'NeueMachina', sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .project-intro {
    padding: 32px;
  }

  #col-2-13 {
    grid-column: 1;
  }

  .project-subtitle {
    font-size: 14px;
    transition: opacity 0.4s ease 0.4s, transform 0.4s ease 0.4s;
  }

  .project-name {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .project-intro {
    padding: 32px 20px;
  }
}


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

.text-section {
  padding: 128px 56px 128px 56px;
}

.description {
  font-family: 'ObjectSans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-secondary);
}

#col-3-11 {
  grid-column: 3 / 11;
}

#col-6-11 {
  grid-column: 6 / 11;
  padding-top: 32px;
}

#date-info {
  grid-column: 1 / 3;
  font-size: 14px;
  font-family: 'NeueMachina', sans-serif;
  color: var(--color-tertiary);
}

#item {
  padding-top: 16px;
}

.image-section {
  margin: 128px -56px;
  width: 100vw;
}

.image-section img {
  grid-column: span 6;
}

.paragraph-title {
  font-family: 'ObjectSans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-secondary);
}

#col-2-7 {
  grid-column: 2 / 7;
}

#col-7-13 {
  grid-column: 7 / 13;
}

#description-offset {
  padding-top: 40px;
}


@media (max-width: 768px) {
  .text-section {
    padding: 64px 32px 128px;
  }

  .description {
    font-size: 14px;
  }

  #col-3-11 {
    grid-column: 1;
  }

  #col-6-11 {
    grid-column: 1;
    padding-top: 32px;
  }

  #date-info {
    grid-column: 1;
  }

  #col-2-7 {
    grid-column: 1;
  }

  #col-7-13 {
    grid-column: 1;
  }

  .image-section {
    display: block;
    margin: 80px -20px;
    width: calc(100% + 40px);
  }

  .image-section img:first-child {
    width: 100%;
  }

  .image-section img:last-child {
    display: none;
  }
}

@media (max-width: 480px) {
  .text-section {
    padding: 64px 20px 128px 20px;
  }
} 

/* ===== II section ===== */

.ii-section {
  padding-top: 128px;
}

/* Images Wrapper - Desktop/Tablet: Sticky scrollable container */
.ii-images-wrapper {
  grid-column: 1 / 5;
  position: sticky;
  top: 100px;
  height: 80vh;
  margin-left: -56px;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ii-images-wrapper::-webkit-scrollbar {
  display: none;
}

/* Text Content Wrapper - Desktop/Tablet */
.text-content-wrapper {
  grid-column: 6 / 13;
}

#figcaption {
  font-family: 'NeueMachina', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--color-tertiary);
  padding: 12px 0 48px 56px;
}

#item-g {
  padding-top: 64px;
}

#item-xg {
  padding-top: 112px;
}

/* Responsive adjustments */

@media (max-width: 1024px) and (min-width: 769px) {
  .ii-images-wrapper {
    grid-column: 1 / 5;
    position: sticky;
    top: 80px;
    height: 70vh;
    margin-left: -56px;
  }

  .text-content-wrapper {
    grid-column: 5 / 13;
  }

  #figcaption {
    padding: 8px 0 24px 48px;
  }
}

@media (max-width: 768px) {
  .ii-section {
    display: flex;
    flex-direction: column;
  }

  /* Make wrappers disappear so children can be reordered */
  .ii-images-wrapper,
  .text-content-wrapper {
    display: contents;
  }

  /* Reorder elements for mobile */
  .ii-images-group-1 {
    order: 1;
    margin: 80px 0 -56px 0;
  }

  .text-content-part-2 {
    order: 2;
    margin: 0;
  }

  .ii-images-group-2 {
    order: 3;
    margin: 80px 0 0 0;
  }

  .text-content-part-3 {
    order: 4;
    margin: 0;
  }

  .ii-images-group-3 {
    order: 5;
    margin: 80px 0 0 0;
  }

  #figcaption {
    padding-left: 0;
    padding-bottom: 32px;
  }
}

.closing-section {
  padding-top: 0px;
  display: flex;
  justify-content: center;
}


/* ===== Footer ===== */

.footer {
  background-color: var(--color-footer);
  font-family: 'ObjectSans', sans-serif;
  font-weight: 400;
}

.full-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 80px 56px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: right;
  gap: 16px;
  font-size: 14px;
  letter-spacing: 0.4px;
}

.footer-left {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 48px;
}

.footer-links {
  font-family: 'ObjectSans', sans-serif;
  font-weight: 400;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  margin-top: 4px;
}

.footer-icon {
  width: 15px;
  height: 16px;
  flex-shrink: 0;
  aspect-ratio: 15/16;
  margin-right: 56px;
}

@media screen and (max-width: 768px) {
  .full-footer {
    padding: 80px 32px;
  }

  .full-footer {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 32px;
  }

  .footer-left {
    flex-direction: column;
    gap: 32px;
  }
}


@media screen and (max-width: 480px) {
  .full-footer {
    padding: 64px 20px;
  }
}


/* ==============================
============= FEED =============
============================== */

#col-1-13 {
  grid-column: 1 / 13;
}

.feed {
  padding: 128px 56px 160px;
}

.feed-container {
  display: grid;
  grid-gap: 32px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  grid-auto-flow: dense;
}

.feed-container>div {
  grid-column: span 1;
}

.feed-container>div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.feed-container .horizontal {
  grid-column: span 2;
}

.feed-container .horizontal img {
  aspect-ratio: 2 / 1;
}

.section-title {
  font-family: 'ObjectSans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-tertiary);
  margin-bottom: 64px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .feed {
    padding: 128px 32px 160px;
  }
}

@media (max-width: 480px) {
  .feed {
    padding: 80px 20px 128px;
  }

  .feed-container {
    grid-gap: 20px;
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 12px;
    margin-bottom: 48px;
  }
}


/* ==============================
============== 404 ==============
============================== */

.p404 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  gap: 16px;
  margin: 232px 56px;
}

.p404-button {
  font-family: 'ObjectSans', sans-serif;
  font-size: 18px;
  letter-spacing: 0.4px;
  font-weight: 400;
  padding-top: 16px;
  color: var(--color-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

@media screen and (max-width: 480px) {
  .p404 {
    margin: 128px 20px;
  }
}