@font-face {
  font-family: "FSIndustrieCd";
  src: url("../fonts/FS Industrie Cd Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "FSIndustrieCd";
  src: url("../fonts/FS Industrie Cd Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "FSIndustrieCd";
  src: url("../fonts/FS Industrie Cd Book.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "FSIndustrieCd";
  src: url("../fonts/FS Industrie Cd Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "FSIndustrieCd";
  src: url("../fonts/FS Industrie Cd Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card,
.gallery__item {
  opacity: 0;
  transform: translateY(40px);
}

.back-to-top {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  border: 0px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  font-family: "FSIndustrieCd", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0em;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--accent);
  color: var(--fg);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.project-card.in-view {
  animation: slideUpFade 0.6s ease-out forwards;
}

.gallery__item.in-view {
  animation: slideUpFade 0.7s ease-out forwards;
}

:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #4b4b4b;
  --border: #e9e9e9;
  --max: 1120px;
  --accent: #09E37A;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  cursor: url("data:image/svg+xml,%3Csvg id='Calque_1' data-name='Calque%201' xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0%200%2032%2032'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;stroke:%23000;stroke-width:1.5;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M23.9772,24.0526c.1197.1971.0924.4439-.0621.6151l-2.3689,2.6245h-.5296c-3.0915-1.3381-3.5716-5.3596-6.0357-7.4956-.1342-.1163-.3264-.1686-.4929-.1068-1.3336.495-4.7409,4.2206-6.069,2.1548-1.4315-2.2361-.9748-12.4043-2.3657-15.3967-.0306-.0658-.0459-.1323-.0459-.2049v-1.0135c0-.2883.2337-.522.522-.522h.6164c.6644,0,1.3249.1345,1.9258.4178,2.6632,1.2559,5.2148,2.8118,7.8121,4.0935,4.5276,2.2731,10.4933,2.4801,3.0218,7.1122-.2441.1513-.3296.4713-.1806.7168.8557,1.4097,3.5047,5.7733,4.2523,7.0048Z'/%3E%3C/svg%3E") 4 0, auto;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "FSIndustrieCd", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: 0em;
}

.home-loader {
  position: fixed;
  inset: 0;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.home-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.home-loader__inner {
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.home-loader__logo {
  width: 90px;
  height: auto;
  margin-bottom: 0.9rem;
}

.home-loader__name {
  font-size: 3.2rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.home-loader__subtitle {
  font-size: 2.0rem;
  font-weight: 300;
  text-transform: uppercase;
}

.home-loader__pulse {
  display: inline-block;
  animation: homeLoaderPulse 1.2s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.home-loader__sep {
  display: inline-block;
}

@keyframes homeLoaderPulse {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.infos-page {
  background: var(--accent);
  color: var(--fg);
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.infos-page .site-header {
  position: relative;
  border-bottom: none;
}

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

.site-header a:hover,
.site-header a:focus-visible,
.footer a:hover,
.footer a:focus-visible {
  color: var(--accent);
}

.infos-page .site-header a:hover,
.infos-page .site-header a:focus-visible {
  color: #ffffff;
}

a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0px solid var(--border);
  z-index: 50;
}

/* Home: transparent header over hero (like the reference) */
.is-home .site-header--overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}

.is-home .site-header--overlay.site-header--solid {
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}

.site-header__inner {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 18px;
}

.brand {
  font-family: "FSIndustrieCd", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0em;
  font-size: 72px;
  text-transform: uppercase;
  line-height: 0.9;
  display: flex;
  text-decoration: none;
}




.nav {
  display: flex;
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  row-gap: 8px;
  align-items: flex-start;
}

.nav__link {
  font-weight: 900;
  letter-spacing: 0em;
  font-size: 30px;
  text-transform: uppercase;
  opacity: 1;
}

.nav__link:hover {
  opacity: 1;
}

.nav__link--active {
  opacity: 1;
}

.hero {
  height: min(64vh, 620px);
  min-height: 360px;
  background: #f2f2f2;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero__overlay {
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.00),
    rgba(255, 255, 255, 0.55)
  );
  display: none;
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 42px;
  width: 100%;
  display: flex;
  align-items: flex-end;
}

.hero__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: 0em;
  text-transform: uppercase;
  display: none; 
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__media-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero__media--image {
  background-size: cover;
  background-position: center;
}

.hero__media.is-active {
  opacity: 1;
}

.hero__media.is-fading {
  opacity: 0;
}

.hero__overlay {
  position: relative;
  z-index: 1;
}

.section__inner {
  max-width: 100%;
  margin: 0px 0 0 0;
  padding: 8px 8px 60px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.project-card {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  border: 0px solid var(--border);
  background: #fff;
}

.project-card:nth-child(1).in-view { animation-delay: 0s; }
.project-card:nth-child(2).in-view { animation-delay: 0.1s; }
.project-card:nth-child(3).in-view { animation-delay: 0.2s; }
.project-card:nth-child(4).in-view { animation-delay: 0.3s; }
.project-card:nth-child(5).in-view { animation-delay: 0.4s; }
.project-card:nth-child(6).in-view { animation-delay: 0.5s; }
.project-card:nth-child(7).in-view { animation-delay: 0.6s; }
.project-card:nth-child(8).in-view { animation-delay: 0.7s; }
.project-card:nth-child(n+9).in-view { animation-delay: 0.8s; }

.project-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f4f4f4;
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card__meta {
  padding-top: 3px;
  padding-bottom: 0px;
  padding-left: 0px;
  padding-right: 0px;
}

.project-card__title {
  font-weight: 500;
  letter-spacing: 0em;
  text-transform: uppercase;
  font-size: 14px;
  padding-bottom: 14px;
}

.project-card__subtitle {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.7;
  display: none;
}

/* Project page */
.project-hero {
  height: min(70vh, 720px);
  min-height: 420px;
  background: #f2f2f2;
  background-size: cover;
  background-position: center;
  border-bottom: 0px solid var(--border);
  margin-left: 20px;
  margin-right: 20px;
  position: relative;
  overflow: hidden;
}

.project-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.project {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 70px;
}

.project--detail {
  max-width: none;
  margin: 0;
}

.project__header--detail {
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
}

.project__titleCol {
  padding-right: 10px;
}

.project__metaCol {
  display: grid;
  gap: 14px;
}

.project__credit {
  letter-spacing: 0em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.85;
}

.project__header {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 26px;
  align-items: start;
  margin-bottom: 26px;
}

.project__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0em;
}

.project__body {
  margin-top: 12px;
  line-height: 1.35;
  font-size: 16px;
  opacity: 0.9;
  white-space: pre-wrap;
  font-weight: 300;
}

.project__infos {
  border: 0px solid var(--border);
  padding: 0px;
  font-size: 16px;
  line-height: 1.35;
  white-space: pre-wrap;
  font-weight: 300;
  opacity: 0.85;
}

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


.infos {
  flex: 1;
  display: flex;
  align-items: stretch;
  padding: 30px 20px 40px;
}

.infos__inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.infos__kicker {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0em;
  text-transform: uppercase;
}

.infos__body {
  margin-top: 16px;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.3;
  font-weight: 300;
  max-width: 620px;
}

.infos__body strong {
  font-weight: 700;
}

.infos__body p {
  margin: 0 0 50px 0;
}

.infos__actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 901px) {
  .infos__actions {
    flex-wrap: nowrap;
  }
}

.infos__link {
  border: Opx solid var(--fg);
  padding: 8px 50px 8px 0px ;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: 0em;
  display: inline-flex;
  align-items: top;
  gap: 8px;
}

.infos__link:hover,
.infos__link:focus-visible {
  background: none;
  color: #ffffff;
}

.infos__link--disabled {
  opacity: 0.7;
  cursor: default;
}

.infos__photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .infos {
    padding: 24px 20px 32px;
  }

  .infos__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .infos__photo {
    width: min(100%, 360px);
    max-height: 40vh;
  }
}

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

.gallery__item {
  grid-column: span 12;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}

.gallery__item:nth-child(1).in-view { animation-delay: 0s; }
.gallery__item:nth-child(2).in-view { animation-delay: 0.15s; }
.gallery__item:nth-child(3).in-view { animation-delay: 0.3s; }
.gallery__item:nth-child(4).in-view { animation-delay: 0.45s; }
.gallery__item:nth-child(5).in-view { animation-delay: 0.6s; }
.gallery__item:nth-child(n+6).in-view { animation-delay: 0.75s; }

.gallery__item img,
.gallery__item video {
  display: block;
  width: 100%;
  height: auto;
}

/* Remove video controls UI */
.gallery__item video {
  outline: none;
}

.gallery__item video::-webkit-media-controls {
  display: none !important;
}

.gallery__item video::-webkit-media-controls-panel {
  display: none !important;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  font-size: 12px;
  opacity: 0.85;
}

.footer__inner {
  max-width: none;
  margin: 0;
  padding: 0 20px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.footer__title {
  font-weight: 700;
  letter-spacing: 0em;
  text-transform: uppercase;
}

.footer__line {
  margin-top: 8px;
  letter-spacing: 0em;
  text-transform: uppercase;
  opacity: 0.85;
}

.footer__right {
  display: flex;
  gap: 18px;
  letter-spacing: 0em;
  text-transform: uppercase;
  margin-left: auto;
}

.footer__link {
  opacity: 0.85;
}

.footer__link:hover {
  opacity: 1;
}

/* Push Instagram and LinkedIn to the right */
.footer a[href*="instagram"],
.footer a[href*="linkedin"] {
  margin-left: auto;
  display: inline-flex;
  align-items: flex-start;
}

@media (max-width: 860px) {
  .project-card {
    grid-column: span 12;
  }

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

  .project__header--detail {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: end;
  }

  .footer__left {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .footer__right {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .hero {
    display: none;
  }

  .project-hero {
    display: none;
  }

  .is-home .site-header--overlay {
    position: sticky;
  }

  .section__inner {
    padding: 0px 8px 60px;
  }

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

/* ── Font Trial (MA TYPO) ────────────────────────────── */

.font-trial {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 40px 0 60px;
}

.font-trial__card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.font-trial__heading {
  font-family: "FSIndustrieCd", system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg);
  margin-bottom: 14px;
}

.font-trial__heading span {
  display: inline-block;
  animation: bounceDown 1.2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.font-trial__canvas-wrap {
  border: 1px solid #e0e0e0;
  background: #fff;
  padding: 16px;
  min-height: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  cursor: text;
}

.font-trial__canvas-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.font-trial__hidden-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.font-trial__controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.font-trial__size {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "FSIndustrieCd", system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.font-trial__size input[type="range"] {
  width: 100px;
  accent-color: var(--fg);
}

@media (max-width: 640px) {
  .font-trial__canvas-wrap {
    padding: 12px;
  }
  .font-trial__size input[type="range"] {
    width: 80px;
  }
}
