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

*, *::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;
}

html { background: var(--light); }

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);
  --extra: max(0px, calc((100vw - var(--max-w)) / 2));
  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 {
  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);
  line-height: 1.4;
}

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

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

.section {
  --extra: max(0px, calc((100vw - var(--max-w)) / 2));
  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__intro {
  font-size: var(--text-hero);
  line-height: 1.12;
  font-weight: 300;
}

.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 {
  aspect-ratio: 1;
  background: var(--light);
  border-radius: 8.33%; /* 16px at 192px card */
  overflow: hidden;
}

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

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

.things__title {
  font-size: var(--text-hero);
  font-weight: 300;
}

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

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

.footer {
  --extra: max(0px, calc((100vw - var(--max-w)) / 2));
  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);
}

.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__subtitle {
  font-size: var(--text-hero);
  line-height: 1.12;
  font-weight: 300;
}

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

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

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

/* ─── 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);
  }
}
