/* ==========================================================================
   Bold Etik — site chrome shared by every page:
   header + menu, cursor trail, "Start your project" call to action, footer.
   ========================================================================== */

.be-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}
.be-main { width: 100%; flex-grow: 1; }

/* ---------- Header ---------- */
.be-header {
  position: sticky;
  top: 0;
  z-index: 70;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(50px, 1fr));
  align-items: center;
  gap: 10px;
  padding: 20px;
  pointer-events: none;
}
.be-header > * { pointer-events: auto; }

.be-header__logo { justify-self: start; display: block; width: 65px; height: 65px; }
.be-header__logo img { width: 100%; height: 100%; object-fit: contain; }

.be-nav { position: relative; justify-self: center; width: 330px; z-index: 9; }

.be-nav__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px;
  border-radius: 100px;
  background: var(--be-ink);
}

/* Hamburger that turns into a cross */
.be-nav__toggle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 100px;
  background: var(--be-charcoal);
}
.be-nav__toggle span {
  display: block;
  width: 30px;
  height: 2px;
  border-radius: 3px;
  background: #fff;
  transition: transform 0.3s var(--be-ease), width 0.3s var(--be-ease);
}
.be-nav.is-open .be-nav__toggle span { width: 20px; }
.be-nav.is-open .be-nav__toggle span:first-child { transform: translateY(3.5px) rotate(-45deg); }
.be-nav.is-open .be-nav__toggle span:last-child { transform: translateY(-3.5px) rotate(45deg); }

/* Scroll-progress ring */
.be-progress {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--be-charcoal);
}
.be-progress svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.be-progress circle { fill: none; stroke: #fff; stroke-width: 1; stroke-linecap: round; will-change: stroke-dashoffset; }
.be-progress__value {
  position: relative;
  font: 400 14.4px/normal var(--be-mono);
  letter-spacing: 0.02em;
  color: #fff;
  opacity: 0.7;
}

/* Dropdown card behind the bar */
.be-menu {
  position: absolute;
  z-index: 1;
  top: 43px;
  left: 50%;
  width: 103%;
  display: flex;
  flex-direction: column;
  gap: 35px;
  padding: 92px 10px 25px 15px;
  border-radius: 30px;
  background: var(--be-menu);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20px) scale(0.5);
  transform-origin: 50% 0;
  transition: opacity 0.333s var(--be-ease-out) 0.167s, transform 0.333s var(--be-ease-out) 0.167s, visibility 0s linear 0.5s;
}
.be-nav.is-open .be-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transition: opacity 0.4s var(--be-ease-out), transform 0.4s var(--be-ease-out), visibility 0s;
}
.be-menu__group { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.be-menu__label { color: var(--be-ink-60); }
.be-menu__links { display: flex; flex-direction: column; gap: 2px; }
.be-menu__links a { display: inline-flex; align-items: flex-start; gap: 3px; height: 24px; color: var(--be-ink); }
.be-menu__count { color: var(--be-ink-60); }
.be-menu__social { display: flex; align-items: center; gap: 12px; }
.be-menu__social img { width: 16px; height: 18px; object-fit: contain; }

/* Menu content fades up after the card has opened */
.be-menu__group {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.167s var(--be-ease-out), transform 0.167s var(--be-ease-out);
}
.be-nav.is-open .be-menu__group {
  opacity: 1;
  transform: none;
  transition: opacity 0.2s var(--be-ease-out) 0.4s, transform 0.2s var(--be-ease-out) 0.4s;
}
.be-nav.is-open .be-menu__group--social { transition-delay: 0.5s; }

/* Letter-by-letter roll on hover (letters are wrapped by site.js) */
.be-roll { display: inline-flex; overflow: hidden; font: 500 19.2px/1.15 var(--be-sans); letter-spacing: -0.8px; }
.be-roll__char { display: inline-block; height: 1.15em; overflow: hidden; white-space: pre; }
.be-roll__stack {
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1) calc(var(--i, 0) * 0.03s);
}
.be-roll__stack > span { display: block; }
a:hover > .be-roll .be-roll__stack,
a:focus-visible > .be-roll .be-roll__stack { transform: translateY(-50%); }

@media (max-width: 1199.98px) {
  .be-nav { width: 252px; }
}
@media (max-width: 809.98px) {
  .be-header { padding: 10px 7px 20px 10px; }
  .be-nav {
    grid-column: span 2;
    justify-self: end;
    width: 100%;
    min-width: 220px;
    max-width: 250px;
  }
}

/* ---------- Page hero (Work, Contact) ----------
   White card: rotated side label · big title with a script word · short intro.
   Pages tune the script word with --hero-script-w/-h/-x/-y. */
.be-hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(50px, 1fr));
  align-items: center;
  height: 65vh;
  padding: 20px 0;
  border-radius: 34px;
  background: var(--be-surface);
}
.be-hero__side { justify-self: start; display: flex; }
.be-hero__side p { transform: rotate(-90deg); white-space: nowrap; color: var(--be-grey); }
.be-hero__title { justify-self: center; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.be-hero__title .t-hero { margin-right: 0.156em; } /* the original keeps a trailing space after the word */
.be-hero__script { position: relative; display: flex; width: var(--hero-script-w); height: var(--hero-script-h); }
.be-hero__script span { position: absolute; left: var(--hero-script-x); bottom: var(--hero-script-y); color: var(--be-orange); }
.be-hero__desc { position: absolute; right: 20px; bottom: 20px; max-width: 250px; }

@media (max-width: 1199.98px) {
  .be-hero { height: 400px; }
  .be-hero__desc { max-width: var(--hero-desc-w-tablet, 250px); }
}
@media (max-width: 809.98px) {
  .be-hero { display: flex; flex-direction: column; justify-content: center; gap: var(--hero-gap-phone, 13px); height: auto; padding: 80px 0; }
  .be-hero__side { display: none; }
  .be-hero__desc { position: static; text-align: center; }
  .be-hero__title { flex-wrap: wrap; justify-content: center; max-width: 100%; padding: 0 10px; white-space: normal; text-align: center; }
}

/* ---------- Soft blur along the bottom edge of the screen ---------- */
.be-bottom-blur {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  height: 20vh;
  border-radius: 0 0 20px 20px;
  pointer-events: none;
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  -webkit-mask-image: linear-gradient(transparent 0%, #000 90%);
  mask-image: linear-gradient(transparent 0%, #000 90%);
}

/* ---------- Cursor trail (desktop pointers only) ---------- */
.be-cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

/* ---------- Call to action ---------- */
.be-cta {
  width: 100%;
  padding: 0 10px;
  overflow: hidden;
}
.be-cta__card {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 75vh;
  padding: 100px 20px;
  border-radius: 20px;
  background: var(--be-orange);
  overflow: hidden;
}
.be-cta__waves, .be-cta__trail { position: absolute; inset: 0; pointer-events: none; }
.be-cta__waves { z-index: 0; }
.be-cta__trail { z-index: 1; overflow: hidden; }
.be-cta__waves canvas { width: 100%; height: 100%; }
.be-cta__trail img {
  position: absolute;
  width: 150px;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5) rotate(var(--r));
}
.be-cta__trail img.is-in {
  opacity: 1;
  transform: translate(-50%, -50%) scale(var(--s)) rotate(var(--r));
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.be-cta__trail img.is-out {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5) rotate(var(--r));
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.be-cta__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  width: 100%;
  pointer-events: none;
}
.be-cta__text { display: flex; flex-direction: column; align-items: center; gap: 27px; width: 100%; }
.be-cta__line.be-cta__line--tight { gap: 0; }
.be-cta__title { display: flex; flex-direction: column; align-items: center; color: var(--be-bg); text-align: center; }
.be-cta__line { display: flex; align-items: flex-start; justify-content: center; gap: 10px; white-space: nowrap; }
.be-cta__script { position: relative; display: flex; align-items: center; width: 360px; min-height: 112px; }
.be-cta__script span { position: absolute; left: -22px; bottom: 9px; color: #fff; white-space: nowrap; }
.be-cta__tm { font: 500 48px/0.85 var(--be-sans); letter-spacing: -0.07px; }
.be-cta__action { position: relative; z-index: 4; padding: 15px 0; pointer-events: auto; }

@media (max-width: 1199.98px) {
  .be-cta__card { height: 500px; }
  .be-cta__script { width: auto; min-height: 0; }
  .be-cta__script span { position: relative; left: auto; bottom: auto; }
  .be-cta__tm { font-size: 32px; }
}
@media (max-width: 809.98px) {
  .be-cta__card { padding: 60px 20px; }
  .be-cta__title { gap: 9px; }
  .be-cta__tm { font-size: 20px; }
}

/* ---------- Footer ---------- */
.be-footer {
  --be-footer-bg: var(--be-ink);
  width: 100%;
  padding: 10px;
  position: relative;
  z-index: 1;
}
.be-footer__card {
  position: relative;
  overflow: hidden;
  padding: 100px 20px 40px;
  border-radius: 20px;
  background: var(--be-footer-bg);
  color: #fff;
}
.be-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.be-footer__lead { display: flex; flex-direction: column; align-items: flex-start; }
.be-footer__headline {
  margin: 0 0 30px;
  font: 500 46.4px/1.15 var(--be-sans);
  letter-spacing: -0.04em;
  color: #fff;
}
.be-footer__headline em {
  font: 400 1em/1 var(--be-script);
  font-style: normal;
  color: var(--be-orange);
  letter-spacing: 0;
  padding: 0 0.04em;
}
.be-footer__label {
  display: block;
  margin: 0 0 10px;
  font: 600 12.8px/1.15 var(--be-mono);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--be-white-70);
}
.be-footer__block { width: 100%; }
.be-footer__block + .be-footer__block { margin-top: 30px; }

/* Links with an orange underline that draws in on hover */
.be-footer__link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  font: 500 19.2px/1.15 var(--be-sans);
  letter-spacing: -0.8px;
  color: #fff;
  white-space: nowrap;
}
.be-footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--be-orange);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s ease;
}
.be-footer__link:hover::after,
.be-footer__link:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

.be-footer__list { display: flex; flex-direction: column; gap: 3px; }
.be-footer__list--phones { gap: 10px; }

.be-footer__form {
  display: flex;
  align-items: center;
  width: 414px;
  max-width: 100%;
  height: 60px;
  padding: 5px 5px 5px 20px;
  border-radius: 14px;
  background: rgba(173, 173, 173, 0.25);
}
.be-footer__form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: 400 16px var(--be-sans);
}
.be-footer__form input::placeholder { color: rgba(255, 255, 255, 0.55); }
.be-footer__form button {
  flex: none;
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: var(--be-orange);
  color: #fff;
  font: 400 14px "Inter", var(--be-sans);
  transition: filter 0.2s ease;
}
.be-footer__form button:hover { filter: brightness(1.1); }
.be-footer__form button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.be-footer__copy {
  margin: 30px 0 0;
  font: 600 12.8px/1.15 var(--be-mono);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--be-white-70);
}
.be-footer__copy a { text-decoration: underline; text-underline-offset: 2px; }
.be-footer__copy a:hover { color: #fff; }
.be-footer__copy span + span { margin-left: 1.2em; }

.be-footer__info {
  display: grid;
  grid-template-columns: 146px 174px;
  column-gap: 20px;
  row-gap: 40px;
  justify-self: end;
}
.be-footer__address {
  font: normal 600 16px/1.3 var(--be-sans);
  letter-spacing: -0.3px;
  color: #fff;
}
.be-footer__address span { white-space: nowrap; }

.be-footer__social { display: flex; gap: 12px; }
.be-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #fff;
  transition: color 0.2s ease, transform 0.2s ease;
}
.be-footer__social a:hover { color: var(--be-orange); transform: translateY(-2px); }
.be-footer__social svg { width: 18px; height: 18px; fill: currentColor; }

/* Big wordmark with a soft blurred fade over its lower part */
.be-footer__brand {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-top: 100px;
  white-space: nowrap;
  user-select: none;
}
.be-footer__brand-word { font: 500 256px/0.85 var(--be-sans); letter-spacing: -12px; color: #fff; }
.be-footer__brand-tm { margin-left: 0.1em; font: 500 80px/0.85 var(--be-sans); color: var(--be-grey); }
.be-footer__fade {
  position: absolute;
  left: -20px;
  right: -20px;
  bottom: -40px;
  height: calc(38% + 40px);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(2, 1, 8, 0) 0%, rgba(2, 1, 8, 0.25) 60%, rgba(2, 1, 8, 0.6) 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 70%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 70%);
}

@media (max-width: 1199.98px) {
  .be-footer__headline { font-size: 38.4px; }
  .be-footer__label, .be-footer__copy { font-size: 14px; }
  .be-footer__form { width: 346px; }
  .be-footer__brand { margin-top: 90px; }
  .be-footer__brand-word { font-size: 160px; letter-spacing: -6px; }
  .be-footer__brand-tm { font-size: 70px; }
}
@media (max-width: 809.98px) {
  .be-footer__card { padding: 60px 14px 20px; }
  .be-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .be-footer__headline { font-size: 30px; margin-bottom: 26px; }
  .be-footer__label, .be-footer__copy { font-size: 13px; }
  .be-footer__form { width: 100%; }
  .be-footer__copy span { display: block; }
  .be-footer__copy span + span { margin: 6px 0 0; }
  .be-footer__info {
    justify-self: stretch;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 34px;
  }
  .be-footer__link { font-size: 18px; }
  .be-footer__brand { margin-top: 60px; }
  .be-footer__brand-word { font-size: 21vw; letter-spacing: -0.04em; }
  .be-footer__brand-tm { font-size: 9vw; }
}

