* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #292925;
  font-family: 'Google Sans', sans-serif;
  font-weight: 400;
}

.site {
  --white-overlay: 0;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: clamp(16px, 2vw, 36px);
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.38) 40%, rgba(0,0,0,.72) 100%), url('assets/bg.jpg') center / cover no-repeat;
  font-size: clamp(16px, 1.46vw, 24px);
  line-height: 1.25;
}

/* Decorative layer only; header, main and footer stay in normal flow. */
.site::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  opacity: var(--white-overlay);
  pointer-events: none;
}

.is-loading .studio-clock,
.is-loading .brand-logo,
.is-loading .site-footer > * {
  visibility: hidden;
}

.site-header {
  display: flex;
  align-items: center;
}

.studio-clock {
  margin: 0;
}

.site-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
}

.brand {
  width: 73%;
  height: 60vh;
  height: 60svh;
  padding-block: clamp(28px, 5svh, 60px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand h1 {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1, p {
  margin: 0;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  max-height: 55vh;
}

.site-footer {
  font-size: 1.26vw;
  display: grid;
  grid-template-columns: 2.3fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 2.5vw, 48px);
  column-gap: clamp(16px, 1.5vw, 28px);
  align-items: start;
  padding-bottom: 0;
}

.site-footer > * {
  min-width: 0;
}

.studio-intro {
  max-width: 44ch;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

address {
  font-style: normal;
  overflow-wrap: anywhere;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: .18em;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* On smaller screens, the service lists remain individual grid items. */
.footer-services {
  display: contents;
}

@media (min-width: 1025px) {
  .site-footer {
    --footer-gap: clamp(16px, 1.5vw, 28px);
    /* Preserve the original intro and contact widths; split spare space equally. */
    grid-template-columns:
      min(44ch, calc((100% - 3 * var(--footer-gap)) * 2.3 / 5.5))
      minmax(0, 1fr)
      max-content
      minmax(0, 1fr)
      calc((100% - 3 * var(--footer-gap)) * 1.2 / 5.5);
    column-gap: 0;
  }

  .studio-intro {
    grid-column: 1;
  }

  .footer-services {
    grid-column: 3;
    width: auto;
    display: grid;
    grid-template-columns: auto auto;
    gap: 3.5vw;
  }

  .studio-contact {
    grid-column: 5;
  }
}

@media (max-width: 1024px) {
  .site-footer {
    font-size: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 40px;
  }
  .studio-intro,
  .studio-contact {
    grid-column: 1 / -1;
  }
  .studio-intro {
    max-width: none;
  }
  .brand {
    width: 85%;
  }
}

@media (max-width: 600px) {
  .site {
    padding: 16px;
    background-image: linear-gradient(180deg, rgba(0,0,0,.46), rgba(0,0,0,.78)), url('assets/bg.jpg');
    background-position: 48% center;
    font-size: 15px;
    line-height: 1.35;
  }
  .studio-clock {
    font-size: 14px;
  }
  .brand {
    height: 36svh;
    width: 100%;
  }
  .site-footer {
    gap: 28px 24px;
    padding-bottom: 0;
  }
}

@media (max-width: 360px) {
  .site-footer {
    gap: 24px 24px;
  }
}

/* Slightly reduce supporting text on shorter screens. */
@media (max-height: 800px) {
  .studio-clock {
    font-size: 0.95em;
  }
}

@media (max-height: 600px) {
  .studio-clock {
    font-size: 0.9em;
  }
}
