@font-face {
  font-family: 'Albra';
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/Albra-Light.woff2') format('woff2');
}
@font-face {
  font-family: 'Albra';
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/Albra-Black.woff2') format('woff2');
}

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

:root {
  --dark:   #101010;
  --light:  #f5f5f5;
  --yellow: #efff75;

  /* Fluid type — scales between 834 px and 1512 px */
  --text-hero:    clamp(2.25rem, 4.37vw, 3.8rem);      /* 36 → 61 px */
  --text-body:    clamp(1.125rem, 1.85vw, 1.5rem);     /* 18 → 24 px */
  --text-contact: clamp(4.5rem, 16.93vw, 16rem);      /* 72 → 256 px */
  --text-small:   clamp(0.875rem, 1.06vw, 1rem);      /* 14 → 16 px */

  /* Fluid spacing */
  --pad-left:    clamp(1.5rem, 21.5vw, 20.3125rem);   /* 24 → 325 px */
  --pad-right:   clamp(1.5rem, 2.12vw, 2rem);         /* 24 → 32 px */
  --section-py:  clamp(4rem, 8.47vw, 8rem);           /* 64 → 128 px */
  --gap-hero:    clamp(2rem, 8.47vw, 8rem);           /* 32 → 128 px */
  --gap-content: clamp(2rem, 4.23vw, 4rem);           /* 32 → 64 px */
  --gap-items:   clamp(1rem, 2.12vw, 2rem);           /* 16 → 32 px */
  --gap-details: clamp(0.75rem, 1.06vw, 1rem);        /* 12 → 16 px */
  --gap-links:   clamp(1rem, 2.12vw, 2rem);           /* 16 → 32 px */

  /* Logo grid */
  --logo-size: clamp(6rem, 12.7vw, 12rem);            /* 96 → 192 px */
  --logo-gap:  clamp(0.75rem, 2.05vw, 1.9375rem);     /* 12 → 31 px */

  --max-w: 1900px;
  --extra: max(0px, calc((100vw - var(--max-w)) / 2));
  --card-shadow: 0 0 30.6px 0 rgba(0, 0, 0, 0.15);
  --color-ui:    #dedede;
  --radius-card: 24px;
  --radius-logo: 8.33%;
}

html { background: var(--light); }
html.dark { background: var(--dark); }
html.dark body { background: var(--dark); }

a {
  text-decoration-thickness: 1px;
}

@keyframes fadeUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  background: var(--light);
  font-family: 'Albra', serif;
  font-weight: 300;
  color: var(--light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.header, .section, .footer {
  animation: fadeUp 0.5s ease-out;
}

/* ─── HEADER ───────────────────────────────────────────── */

.header {
  position: relative;
  background: var(--light);
  color: var(--dark);
  padding: 4rem calc(var(--pad-right) + var(--extra)) 4rem calc(var(--pad-left) + var(--extra));
  height: calc(100svh - 10px);
  max-height: 1000px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header__lang {
  position: absolute;
  top: 4rem;
  left: calc(2rem + var(--extra));
  font-size: var(--text-small);
  font-family: 'Albra', serif;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--dark);
  text-decoration: none;
}

.header__inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 8svh, 4rem);
}

.header__photo {
  flex: 1;
  min-height: 0;
  width: auto;
  aspect-ratio: 277 / 276;
  object-fit: cover;
  object-position: center top;
  display: block;
  align-self: flex-start;
}

.header__content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-content);
}

.header__top {
  display: flex;
  flex-direction: column;
  gap: var(--gap-items);
}

.header__heading,
.company__intro,
.things__title,
.footer__subtitle,
.proj-intro {
  font-size: var(--text-hero);
  line-height: 1.12;
  font-weight: 300;
}
.header__heading strong { font-weight: 900; }
.br-mobile { display: none; }

.header__details {
  display: flex;
  flex-direction: column;
  gap: var(--gap-details);
  font-size: var(--text-body);
  font-weight: 300;
  line-height: 1.4;
}
.header__details h2 {
  font-size: inherit;
  font-weight: 300;
}

.header__links,
.footer__links {
  display: flex;
  gap: var(--gap-links);
  font-size: var(--text-body);
}
.header__links a,
.footer__links a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  letter-spacing: -0.01em;
}
.header__links a:hover,
.footer__links a:hover { text-decoration: none; }
.header__links a { color: var(--dark); }

/* ─── SECTION BASE ─────────────────────────────────────── */

.section,
.footer {
  padding: var(--section-py) calc(var(--pad-right) + var(--extra)) var(--section-py) calc(var(--pad-left) + var(--extra));
  display: flex;
  flex-direction: column;
  gap: var(--gap-content);
  background: var(--dark);
}

/* ─── COMPANY AND PROJECTS ─────────────────────────────── */

.company__blocks {
  display: flex;
  flex-direction: column;
  gap: var(--gap-content);
  max-width: 57vw; /* mirrors the 862px / 1512px = 57% ratio */
}

.company__block {
  display: flex;
  flex-direction: column;
  gap: var(--gap-items);
}

.company__label {
  font-size: var(--text-body);
  font-weight: 300;
}
.company__label a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.company__label a:hover { text-decoration: none; }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--logo-size), 1fr));
  gap: var(--logo-gap);
}

.logo-card {
  position: relative;
  aspect-ratio: 1;
  background: var(--light);
  border-radius: var(--radius-logo);
  overflow: hidden;
}

.logo-card__discover {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-bottom-left-radius: 16px;
  background: var(--yellow);
  font-size: 0.8rem;
  color: var(--dark);
  white-space: nowrap;
  pointer-events: none;
}
.logo-card__discover svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 23.5%;
}

/* ─── THINGS I DO ──────────────────────────────────────── */

.things__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  font-size: var(--text-body);
  line-height: 1.4;
  max-width: 57vw;
}

.things__list li {
  padding: 2rem 0;
  border-bottom: 1px solid #424242;
}

.things__list li:last-child {
  border-bottom: none;
}

/* ─── FOOTER ───────────────────────────────────────────── */

.footer__contact {
  font-family: 'Lexend', sans-serif;
  font-weight: 900;
  font-size: var(--text-contact);
  color: var(--yellow);
  line-height: 1;
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-content);
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: var(--gap-details);
}


.footer__body {
  font-size: var(--text-body);
  line-height: 1.4;
}

.footer__links a { color: var(--light); }

.footer__year {
  font-size: var(--text-small);
  color: var(--light);
}

/* ─── PROJECT PAGE ─────────────────────────────────────── */

.proj-header {
  position: relative;
  background: var(--dark);
  color: var(--light);
  padding: var(--section-py) calc(var(--pad-right) + var(--extra)) var(--section-py) calc(var(--pad-left) + var(--extra));
  display: flex;
  flex-direction: column;
  gap: var(--gap-content);
}

.proj-nav {
  position: absolute;
  top: var(--section-py);
  left: calc(2rem + var(--extra));
  display: flex;
  align-items: center;
  gap: 2rem;
}
.proj-nav a {
  color: var(--light);
  text-decoration: none;
  font-size: var(--text-small);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
}
.proj-nav a:hover { opacity: 0.6; }
.proj-nav__back svg { width: 24px; height: 24px; }

.proj-logos {
  display: flex;
  gap: var(--gap-items);
}
.proj-logo {
  width: var(--logo-size);
  height: auto;
  aspect-ratio: 1;
  background: var(--light);
  border-radius: var(--radius-logo);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.proj-logo img {
  width: 55%;
  object-fit: contain;
}
.proj-links {
  display: flex;
  gap: var(--gap-content);
  font-size: 1.75rem;
  border-bottom: 1px solid rgba(245, 245, 245, 0.2);
  margin-top: calc(4rem - var(--gap-content));
}
.proj-link {
  color: var(--light);
  text-decoration: none;
  opacity: 0.35;
  padding-bottom: 1rem;
  border-bottom: 4px solid transparent;
  margin-bottom: -1px;
  font-size: inherit;
  font-weight: inherit;
  margin-block: 0;
}
.proj-link--active {
  opacity: 1;
  border-bottom-color: var(--light);
}
.proj-link:not(.proj-link--active):hover { opacity: 0.6; }

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.proj-tag {
  display: inline-flex;
  align-items: center;
  height: 2.375rem;
  padding: 0 1rem;
  border: 1px solid var(--light);
  border-radius: 100px;
  font-size: var(--text-small);
  white-space: nowrap;
  color: var(--light);
}

/* ─── PROJECT CONTENT ───────────────────────────────────── */

.proj-content-wrap {
  background: var(--dark);
}

.proj-content {
  margin: 0 calc(2rem + var(--extra));
  border-radius: 2rem;
  overflow: hidden;
  background: var(--light);
  color: var(--dark);
}

.proj-section {
  padding: var(--gap-content) var(--pad-right) var(--gap-content) calc(var(--pad-left) - 2rem);
  display: flex;
  flex-direction: column;
  gap: var(--gap-content);
}

.proj-section__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.proj-section__title {
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1.4;
  max-width: 72ch;
}

.proj-pillars {
  display: flex;
  gap: 1rem;
}
.proj-pillars__col {
  flex: 1;
  padding-left: 1.1em;
}
.proj-pillars__col li {
  font-size: 1.125rem;
  line-height: 1.6;
}

.proj-principles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.proj-principle {
  font-size: var(--text-hero);
  font-weight: 300;
  line-height: calc(68 / 56);
}

/* ─── SLIDER ────────────────────────────────────────────── */

.slider {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-right: calc(-1 * var(--pad-right));
}
.slider__track {
  overflow: hidden;
  padding: 2rem 2rem 2rem calc(var(--pad-left) - 2rem);
  margin: -2rem -2rem -2rem calc(-1 * (var(--pad-left) - 2rem));
}
.slider__inner {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  user-select: none;
}
.slider__slide {
  flex-shrink: 0;
  width: 219px;
}
.slider__slide--wide {
  width: 792px;
}
.slider__slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
}

.slider__controller {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-ui);
  border-radius: 100px;
  height: 2.375rem;
  padding: 0 1.5rem;
}
.slider__dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(16, 16, 16, 0.3);
  transition: width 0.25s ease, background 0.25s ease;
  cursor: pointer;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.slider__dot--active {
  width: 21px;
  background: var(--dark);
}
.slider__arrows {
  position: absolute;
  right: var(--pad-right);
  display: flex;
  gap: 1rem;
}
.slider__arrow {
  width: 2.375rem;
  height: 2.375rem;
  border: none;
  border-radius: 50%;
  background: var(--color-ui);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  transition: background 0.2s;
}
.slider__arrow:hover {
  background: #c8c8c8;
}
.slider__arrow:disabled {
  cursor: not-allowed;
}
.slider__arrow:disabled svg {
  opacity: 0.5;
}
.slider__arrow svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.proj-img {
  display: block;
  width: 100%;
  max-width: 972px;
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  height: auto;
}

/* ─── STICKY NAV ────────────────────────────────────────── */

.sticky-nav {
  position: fixed;
  top: 4px; left: calc(2rem + var(--extra) + 4px); right: calc(2rem + var(--extra) + 4px);
  height: 56px;
  background: rgba(16, 16, 16, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  color: var(--light);
  display: flex;
  align-items: stretch;
  z-index: 100;
  transform: translateY(calc(-100% - 4px));
  transition: transform 0.3s ease;
}
.sticky-nav--visible { transform: translateY(0); }
.sticky-nav__back {
  position: absolute;
  left: 24px;
  top: 0; bottom: 0;
  display: flex; align-items: center;
  color: var(--light); text-decoration: none;
}
.sticky-nav__back:hover { opacity: 0.6; }
.sticky-nav__back svg { width: 24px; height: 24px; }
.sticky-nav__links {
  display: flex;
  gap: var(--gap-content);
  font-size: 1.375rem;
  padding-left: calc(var(--pad-left) - 2rem - 4px);
  align-items: stretch;
}
.sticky-nav__links .proj-link,
.sticky-nav__links .proj-link--active {
  display: flex;
  align-items: center;
  font-size: inherit;
  padding-bottom: 0;
  border-bottom-width: 2px;
}

/* ─── MOBILE ( ≤ 834 px ) ──────────────────────────────── */

@media (max-width: 834px) {
  :root {
    --pad-left:    1.5rem;
    --pad-right:   1.5rem;
    --section-py:  4rem;
    --gap-hero:    2rem;
    --gap-content: 2rem;
    --gap-items:   1rem;
    --gap-details: 1rem;
    --gap-links:   1rem;
    --logo-size:   10.5625rem; /* 169 px */
    --logo-gap:    0.75rem;
    --text-hero:    2rem;
    --text-body:    1.125rem;
    --text-contact: 4.5rem;
    --text-small:   0.875rem;
  }

  .header__lang {
    top: 1.5rem;
    left: auto;
    right: 1.5rem;
  }

  .header__photo {
    max-width: 360px;
  }

  .br-mobile { display: block; }

  .company__blocks,
  .things__list {
    max-width: 100%;
  }

  .company__block + .company__block {
    margin-top: 2rem;
  }

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

  .things__list li {
    padding: 1rem 0;
  }

  /* Project page mobile */
  .proj-content {
    margin: 0;
  }
  .proj-section {
    padding-left: var(--pad-left);
    padding-right: var(--pad-right);
  }
  .proj-header {
    padding-top: calc(3.5rem + var(--section-py));
  }
  .sticky-nav { left: 4px; right: 4px; }
  .sticky-nav__links {
    padding-left: calc(var(--pad-left) + 24px + 2rem);
    font-size: 1rem;
  }

  .proj-nav {
    top: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    justify-content: space-between;
  }
  .proj-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.25rem;
    margin-left: calc(-1 * var(--pad-left));
    margin-right: calc(-1 * var(--pad-right));
    padding-left: var(--pad-left);
    padding-right: var(--pad-right);
  }
  .proj-tags::-webkit-scrollbar { display: none; }
  .proj-links { font-size: 1.375rem; }
  .header__heading, .company__intro, .things__title, .footer__subtitle, .proj-intro { line-height: 1.15; }
  .slider__arrows { display: none; }
  .slider__slide--wide { width: 335.5px; }
  .slider { margin-left: 0; margin-right: 0; }
  .slider__track { padding: 2rem; margin: -2rem; }
  .proj-pillars { flex-direction: column; gap: 0; }
  .proj-img {
    max-width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: top left;
  }
}
