/* Tribe³ — static rebuild. Layout values were measured from the original site. */
:root { --u: 1px; }
@media (min-width: 921px) { :root { --u: min(1px, calc(100vw / 1224)); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #000;
  color: #1d1e20;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
}
img { border: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 200px;
  background: #000;
}
.site-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 350px 1fr;
  align-items: center;
  max-width: 1224px;
  height: 100%;
  margin: 0 auto;
  padding: 3px 16px;
}
.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 19px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__item {
  display: block;
  color: #fff;
  font: 400 16px/1.5em Inter, sans-serif;
  text-decoration: none;
}
/* The original site sets hover and current-page link colour to black on a black
   header, which makes those links vanish. Kept identical on purpose; to change it,
   edit the two colours below. */
.nav__item:hover,
.nav__item.is-active { color: #000; }

.logo { display: block; width: 350px; height: 194px; }
.logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

.social { display: flex; align-items: flex-start; }
.social__link {
  display: flex;
  width: 20px;
  height: 20px;
  margin-right: 16px;
  color: #000; /* original icon colour (black on black header) */
}
.social__link:last-child { margin-right: 0; }
.social__link svg { display: block; width: 20px; height: 20px; }
.social__link:hover { color: #3a3a3a; }
.header__social { justify-self: end; align-items: center; }
.nav__social { display: none; }
.burger { display: none; }

/* ---------- Blocks & absolutely placed elements ---------- */
.page { display: block; }
.block { position: relative; height: calc(var(--bh) * var(--u)); background: var(--bg); }
.block__inner { position: relative; width: calc(1224 * var(--u)); height: 100%; margin: 0 auto; }
.el {
  position: absolute;
  top: calc(var(--y) * var(--u));
  left: calc(var(--x) * var(--u));
  width: calc(var(--w) * var(--u));
  z-index: var(--z);
}
.el--img { height: calc(var(--h) * var(--u)); }
.el--img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Text ---------- */
.text-box {
  margin: 0;
  padding: 0;
  overflow-wrap: break-word;
  white-space: break-spaces;
  font-family: Inter, sans-serif;
}
.text-box a { color: inherit; }
.text-box h1, .text-box h2, .text-box h3, .text-box h4, .text-box h5, .text-box h6,
.text-box p { margin: 0 0 32px; font-style: normal; letter-spacing: 0; text-transform: none; }
.text-box h1 { margin-bottom: 48px; }
.text-box h5 { margin-bottom: 16px; }
.text-box h6 { margin-bottom: 8px; }
.text-box :last-child { margin-bottom: 0; }

.text-box h1 { font-size: var(--fontSizeDesktop, 60px); line-height: var(--lineHeightDesktop, 1.2); font-weight: 700; }
.text-box h2 { font-size: var(--fontSizeDesktop, 48px); line-height: var(--lineHeightDesktop, 1.2); font-weight: 700; }
.text-box h3 { font-size: var(--fontSizeDesktop, 36px); line-height: var(--lineHeightDesktop, 1.2); font-weight: 700; }
.text-box h4 { font-size: var(--fontSizeDesktop, 32px); line-height: var(--lineHeightDesktop, 1.2); font-weight: 700; }
.text-box h5 { font-size: var(--fontSizeDesktop, 24px); line-height: var(--lineHeightDesktop, 1.2); font-weight: 700; }
.text-box h6 { font-size: var(--fontSizeDesktop, 18px); line-height: var(--lineHeightDesktop, 1.2); font-weight: 600; }
.text-box p, .text-box .body { font-size: var(--fontSizeDesktop, 16px); line-height: var(--lineHeightDesktop, 1.5em); font-weight: 400; }
.text-box .body-large { font-size: var(--fontSizeDesktop, 18px); line-height: var(--lineHeightDesktop, 1.5em); font-weight: 400; }

/* ---------- Contact form ---------- */
.el--form { height: auto; }
.contact-form { width: 100%; font-family: Inter, sans-serif; }
.field { margin-bottom: 22px; }
.field label { display: block; margin: 0; color: #000; font-size: 16px; line-height: 24px; }
.field input,
.field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 16px;
  border: 0 solid #000;
  border-radius: 0;
  background: #f1f1f1;
  color: #000;
  font: 400 16px/normal Inter, sans-serif;
  outline: none;
}
.field input { height: 48px; }
.field textarea { height: 96px; resize: none; }
.field input::placeholder, .field textarea::placeholder { color: #000; opacity: .5; font-size: 14px; }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 0 0 2px #fff; }
.field__error { display: block; margin-top: 4px; color: #f50d0d; font-size: 14px; }
.btn {
  display: block;
  margin: 28px auto 0;
  padding: 16px 40px;
  border: 0 solid #000;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font: 400 16px/normal Inter, sans-serif;
  cursor: pointer;
  transition: background-color .2s ease;
}
.btn:hover { background: #1d1e20; }
.btn[disabled] { opacity: .6; cursor: default; }
.form-status { margin: 16px 0 0; color: #fff; font-size: 18px; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* ---------- Mobile / tablet (<= 920px) ---------- */
@media (max-width: 920px) {
  .site-header { height: 147px; }
  .site-header__inner { display: block; padding: 14px 32px; }
  .logo { width: 215px; height: 119px; }
  .header__social { display: none; }

  .burger {
    position: absolute;
    top: 64.5px;
    right: 32px;
    display: block;
    width: 24px;
    height: 18px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .burger span {
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform .25s ease, opacity .2s ease;
  }
  .burger span:nth-child(1) { top: 0; }
  .burger span:nth-child(2) { top: 8px; }
  .burger span:nth-child(3) { top: 16px; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav {
    position: absolute;
    top: 147px;
    left: 0;
    right: 0;
    display: none;
    padding: 24px 16px;
    background: #000;
    box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .1);
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: flex-end; gap: 10px; }
  .nav__social { display: flex; justify-content: flex-end; height: 44px; margin-top: 13px; }

  .btn { padding: 14px 36px; }

  .block { height: calc(var(--mbh) * 1px); }
  .block__inner { width: min(328px, 100% - 32px); }
  .el { left: 0; width: 100%; top: calc(var(--my) * 1px); }
  .el--img { height: calc(var(--mh) * 1px); }
  .text-box h1 { font-size: var(--fontSizeMobile, 38px); line-height: var(--lineHeightMobile, 1.2); }
  .text-box h2 { font-size: var(--fontSizeMobile, 34px); line-height: var(--lineHeightMobile, 1.2); }
  .text-box h3 { font-size: var(--fontSizeMobile, 32px); line-height: var(--lineHeightMobile, 1.2); }
  .text-box h4 { font-size: var(--fontSizeMobile, 24px); line-height: var(--lineHeightMobile, 1.2); }
  .text-box h5 { font-size: var(--fontSizeMobile, 24px); line-height: var(--lineHeightMobile, 1.2); }
  .text-box h6 { font-size: var(--fontSizeMobile, 14px); line-height: var(--lineHeightMobile, 1.2); }
  .text-box p, .text-box .body { font-size: var(--fontSizeMobile, 16px); line-height: var(--lineHeightMobile, 1.5em); }
  .text-box .body-large { font-size: var(--fontSizeMobile, 18px); line-height: var(--lineHeightMobile, 1.5em); }
}

@media (prefers-reduced-motion: reduce) {
  .burger span, .btn { transition: none; }
}
