/* UniCo Group — unicocompanies.com */
:root {
  --red: #AD2734;
  --blue: #2563eb;
  --ink: #1a1a1d;
  --grey: #5f5b68;
  --rule: #e7e3e0;
  --sky: #f7f5f2;
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 17px/1.6 "Archivo", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(#eef1f4 0%, var(--sky) 55%) fixed;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* pre-rendered city: shown while three.js loads, and kept if WebGL is unavailable */
.poster { position: fixed; inset: 0; z-index: 0; background: url(/poster-wide.webp) center 40% / cover no-repeat; transition: opacity 0.8s ease; }
@media (max-aspect-ratio: 4/5) { .poster { background-image: url(/poster-tall.webp); } }
.city-live .poster { opacity: 0; }
#city { opacity: 0; transition: opacity 0.8s ease; }
.city-live #city { opacity: 1; }
#city { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; }
.no-webgl #city { display: none; }
main, .top, .foot { position: relative; z-index: 1; }

.top { position: fixed; inset: 0 0 auto; z-index: 10; }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.top__logo img { width: 96px; }
.on-red .top__logo img { content: url(/brand/unico-wordmark-white.svg); }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--red); }

/* chapters: each is a tall scroll band (company chapters become half-page panels below) */
.ch { min-height: 120vh; display: flex; align-items: center; padding-block: 12vh; pointer-events: none; }
.ch .wrap { width: 100%; }
.ch a, .ch .card { pointer-events: auto; }
.ch--right .wrap { display: flex; justify-content: flex-end; }
.ch--hero { min-height: 100vh; align-items: flex-end; padding-bottom: 14vh; position: relative; }
.ch--hero::before { content: ""; position: absolute; inset: auto 0 0 0; height: 42vh; background: linear-gradient(to top, rgba(247, 245, 242, 0.9) 15%, rgba(247, 245, 242, 0)); pointer-events: none; }
.ch--hero .wrap { position: relative; }
.ch--contact { min-height: 110vh; }

.hero { max-width: 34rem; }
.hero__title {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.06;
  font-weight: 700;
  font-variation-settings: "wdth" 88;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero__sub { margin: 16px 0 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--grey); }
.scrollcue {
  position: absolute; left: 50%; bottom: 28px; width: 22px; height: 36px; margin-left: -11px;
  border: 2px solid var(--ink); border-radius: 12px; opacity: 0.55;
}
.scrollcue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: cue 1.8s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

.card {
  max-width: 440px;
  padding: 32px 32px 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 4px solid var(--red);
  box-shadow: 0 24px 60px -24px rgba(40, 20, 20, 0.28);
}
.card p { margin: 0; }
.card h2 { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 700; font-variation-settings: "wdth" 88; letter-spacing: -0.01em; }
.card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.card__mark { width: 38px; height: auto; }
.card__mark--unico { width: 54px; }
.card__logo--uni { width: 210px; margin: -4px 0 18px; }
.card__kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 12px !important; }
.card__link { display: inline-block; margin-top: 20px; font-weight: 600; font-size: 15px; color: var(--red); text-decoration: none; }
.card__link::after { content: " →"; }
.card__link:hover { text-decoration: underline; text-underline-offset: 5px; }

.card--blue { border-top-color: var(--blue); max-width: 520px; }
.card--blue .card__mark { filter: invert(30%) sepia(91%) saturate(2400%) hue-rotate(214deg) brightness(93%) contrast(95%); }
.blue { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.blue a {
  display: grid; grid-template-columns: 28px 112px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 8px 6px; margin: 0 -6px; border-bottom: 1px solid var(--rule);
  font-size: 14.5px; line-height: 1.4; text-decoration: none; border-radius: 6px;
  transition: background 0.2s;
}
.blue a:hover { background: #eef3fe; }
.blue__mark { width: 24px; height: 25px; background: var(--blue); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.blue strong { font-weight: 600; color: var(--blue); }
.blue__desc { color: var(--grey); }
.blue a:hover strong { text-decoration: underline; text-underline-offset: 4px; }


.card--red { background: var(--red); color: #fff; border-top: 0; max-width: 480px; }
.card__logo--group { width: 120px; margin-bottom: 28px; }
.contact__mail { font-size: clamp(21px, 2.4vw, 28px); font-weight: 700; font-variation-settings: "wdth" 88; text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, 0.5); overflow-wrap: anywhere; }
.contact__mail:hover { border-color: #fff; }
.card--red p { margin-top: 14px; opacity: 0.88; }

/* company chapters: a full-height half-page panel that holds while you scroll; the city fills the other half */
.ch:not(.ch--hero) { display: block; min-height: 200vh; padding: 0; }
.ch:not(.ch--hero) > .wrap {
  position: sticky; top: 0; height: 100vh; height: 100svh; width: 50vw; max-width: none; margin: 0;
  padding: 108px clamp(28px, 5.5vw, 96px) 64px;
  display: flex; flex-direction: column; justify-content: center;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 1px 0 0 var(--rule), 24px 0 60px -40px rgba(40, 20, 20, 0.35);
  pointer-events: auto; overflow-y: auto;
}
.ch--right:not(.ch--hero) > .wrap { margin-left: auto; box-shadow: -1px 0 0 var(--rule), -24px 0 60px -40px rgba(40, 20, 20, 0.35); }
.ch--right .wrap { justify-content: center; }
.ch .card { max-width: 34rem; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border-top: 0; }
.ch .card::before { content: ""; display: block; width: 56px; height: 4px; background: var(--red); margin-bottom: 32px; }
.ch .card--blue::before { background: var(--blue); }
.ch .card p { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; }
.ch .card h2 { font-size: clamp(32px, 3.2vw, 48px); }
.ch .card__head { gap: 18px; margin-bottom: 22px; }
.ch .card__mark { width: clamp(40px, 3.2vw, 52px); }
.ch .card__mark--unico { width: clamp(56px, 4.4vw, 72px); }
.ch .card__logo--uni { width: clamp(220px, 20vw, 300px); margin-bottom: 26px; }
.ch .card__link { font-size: 16px; margin-top: 28px; }
.ch .card--blue { max-width: 36rem; }
.ch .blue a { font-size: 15px; padding-block: 9px; }
.ch.ch--contact:not(.ch--hero) > .wrap { background: var(--red); color: #fff; box-shadow: none; }
.ch .card--red { background: none; }
.ch .card--red::before { background: #fff; }
.ch .card--red .card__logo--group { width: clamp(120px, 10vw, 160px); }
.ch .contact__mail { font-size: clamp(22px, 2.3vw, 34px); }

.foot { padding-block: 28px; color: var(--grey); font-size: 14px; }
.foot p { margin: 0; }


@media (max-width: 760px) {
  .ch { min-height: 115vh; align-items: flex-end; padding-bottom: 8vh; }
  .ch:not(.ch--hero) { min-height: 170vh; }
  .ch:not(.ch--hero) > .wrap, .ch--right:not(.ch--hero) > .wrap {
    width: 100%; height: 56vh; height: 56svh; top: 44vh; top: 44svh; margin: 0;
    padding: 26px 22px 30px; justify-content: flex-start; box-shadow: 0 -1px 0 var(--rule), 0 -20px 50px -30px rgba(40, 20, 20, 0.35);
  }
  .ch .card::before { margin-bottom: 20px; }
  .ch--right .wrap { justify-content: flex-start; }
  .card { padding: 24px 22px 22px; }
  .blue a { grid-template-columns: 28px minmax(0, 1fr); } .blue__desc { grid-column: 2; }
  .hero__title { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .scrollcue::after { animation: none; } }

/* season switch */
.seasons {
  position: fixed; right: max(16px, calc((100vw - 1240px) / 2 + 16px)); bottom: 20px; z-index: 10;
  display: none; padding: 4px; gap: 2px;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 999px; box-shadow: 0 8px 24px -10px rgba(40, 20, 20, 0.3);
}
.city-live .seasons { display: flex; }
.seasons button {
  font: 600 13px/1 "Archivo", sans-serif; color: var(--grey); background: none; border: 0;
  padding: 9px 13px; border-radius: 999px; cursor: pointer;
}
.seasons button:hover { color: var(--ink); }
.seasons button[aria-pressed="true"] { background: var(--red); color: #fff; }
.foot__in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.credit { font-size: 12.5px; }
@media (max-width: 760px) { .seasons { left: 16px; right: 16px; top: 76px; bottom: auto; justify-content: space-between; } .seasons button { padding: 8px 10px; font-size: 12.5px; } }
