/* Bergence Group, /engine: the commercial-engine home from the 2026 brief, laid out on the /pillars design.
   Section modules live in their own files: monoliths.css (hero object), matrix.css (capabilities × fields).
   in the Group's own language (Brand System v8, as on /pillars): warm night ground,
   sand for the Group, one colour per operating company, Archivo throughout. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/archivo/archivo-400.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/archivo/archivo-500.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/archivo/archivo-600.woff2) format("woff2"); }

:root {
  --ground: #161513;
  --raised: #1F1D1A;
  --sunken: #100F0D;
  --ink: #F3EFE8;
  --soft: rgba(243, 239, 232, 0.72);
  --muted: #9C968E;
  --faint: rgba(243, 239, 232, 0.22);
  --line: rgba(243, 239, 232, 0.12);
  --line-strong: rgba(243, 239, 232, 0.3);
  --sand: #C9A876;
  --on-light: #161513;

  --sports: #B08867;
  --events: #7C8B94;
  --entertainment: #8B9382;
  --digital: #8E7C91;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --edge: max(20px, 5vw);
  --sec-y: clamp(96px, 11vw, 180px);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4'/%3E%3C/svg%3E");
}
.d-group { --c: var(--sand); }
.d-entertainment { --c: var(--entertainment); }
.d-sports { --c: var(--sports); }
.d-events { --c: var(--events); }
.d-digital { --c: var(--digital); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ground); color: var(--ink); scroll-behavior: smooth; scroll-padding-top: 0; }
body { font-family: var(--font); font-size: 17px; line-height: 1.6; background: var(--ground); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
::selection { background: var(--sand); color: var(--on-light); }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
.skip { position: fixed; z-index: 40; left: 12px; top: 12px; padding: 12px 18px; background: var(--ink); color: var(--on-light); border-radius: 6px; transform: translateY(-160%); }
.skip:focus-visible { transform: none; }
.arr { display: inline-block; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform 0.3s var(--ease); }
a:hover .arr { transform: translateX(4px); }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(36px, min(5vw, 8.5vh), 80px); text-wrap: balance; }
.head { max-width: 980px; }
.head > p { max-width: 640px; margin-top: clamp(14px, 2.4vh, 24px); font-size: clamp(17px, 1.4vw, 20px); color: var(--soft); }

/* ---------------- nav ---------------- */
.nav { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 84px; display: flex; align-items: center; gap: 40px; padding: 0 var(--edge); border-bottom: 1px solid transparent; transition: background-color 0.4s var(--ease), height 0.4s var(--ease), transform 0.5s var(--ease), border-color 0.4s var(--ease); }
.nav.solid { height: 68px; background: rgba(22, 21, 19, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.logo { display: block; font-weight: 600; font-size: 24px; letter-spacing: -0.01em; line-height: 1; }
.nav-links { display: flex; gap: 32px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a { position: relative; padding: 8px 0; transition: color 0.3s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--sand); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
.nav-cta:hover { background: var(--ink); color: var(--on-light); border-color: var(--ink); }

/* ---------------- buttons ---------------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 500; white-space: nowrap; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
.btn.solid { background: var(--ink); color: var(--on-light); }
.btn.solid:hover { background: var(--sand); }
.btn.ghost { border: 1px solid var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); }

/* ---------------- 1 · hero ---------------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 4vw; padding: 120px var(--edge) 72px; overflow: hidden; isolation: isolate; }
.hero-light { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(40vw 44vw at var(--lx, 78%) var(--ly, 50%), rgba(201, 168, 118, 0.18), rgba(201, 168, 118, 0.04) 45%, transparent 70%),
  radial-gradient(80vw 50vw at 75% 110%, rgba(0, 0, 0, 0.55), transparent 70%); }
.promise { font-size: clamp(44px, min(6vw, 11vh), 112px); letter-spacing: -0.045em; line-height: 0.94; }
.promise span { display: block; }
.motion .promise span, .motion .hero-copy > :not(.promise) { animation: rise 1.1s var(--ease) both; animation-delay: calc(0.2s + var(--n, 0) * 0.08s); }
.promise span:nth-child(2) { --n: 1; } .promise span:nth-child(3) { --n: 2; } .promise span:nth-child(4) { --n: 3; color: var(--sand); }
.hero-copy > .lead { --n: 5; } .hero-copy > .actions { --n: 6; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
.lead strong { font-weight: 600; color: var(--ink); }
.lead { max-width: 540px; margin-top: 32px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; color: var(--soft); }

/* ---------------- 2 · who we work with ---------------- */
.ways-sec { padding: var(--sec-y) var(--edge); border-top: 1px solid var(--line); }
/* six equal cards; each carries a small
   drawing of what we do for that partner, drawn on arrival and replayed on hover */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 12px; height: clamp(440px, 58vh, 560px); margin-top: clamp(28px, 5vh, 56px); }
.ways a { position: relative; isolation: isolate; overflow: hidden; height: 100%; display: flex; flex-direction: column; padding: 22px 24px; background: var(--raised); border: 1px solid var(--line); border-radius: 18px; transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease); }
.ways a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(320px circle at var(--px, 50%) var(--py, 0%), rgba(201, 168, 118, 0.13), transparent 70%); opacity: 0; transition: opacity 0.4s var(--ease); }
.ways a:hover, .ways a:focus-visible { border-color: rgba(201, 168, 118, 0.55); }
.ways a:hover::before, .ways a:focus-visible::before { opacity: 1; }
.ways .art { flex: 1; width: 100%; min-height: 64px; margin: 4px 0 14px; overflow: visible; }
.ways .txt { display: flex; flex-direction: column; }
.ways b { padding-right: 40px; font-size: clamp(18px, 1.45vw, 21px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.ways span { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--soft); }
.ways .go { position: absolute; z-index: 1; right: 16px; top: 16px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--soft); transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease); }
.ways a:hover .go, .ways a:focus-visible .go { background: var(--sand); border-color: var(--sand); color: var(--on-light); }

/* the drawings */
.art .l { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.art .dash { stroke-dasharray: 3 6; }
.art .s { fill: none; stroke: var(--sand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art .f { fill: var(--sand); }
.art .d { fill: var(--faint); }
.art text { fill: var(--sand); font: 600 15px var(--font); }
.art .bar { transform-box: fill-box; transform-origin: bottom; }
.art .pop, .art .hop, .art .spin, .art .blink { transform-box: fill-box; transform-origin: center; }
.art .slide-l, .art .slide-r { transform-box: view-box; }
.art .flow { stroke-dasharray: 4 5; }
/* drawn when the card arrives (.in, set by engine.js) and again on hover: two names, so hover restarts it */
.motion .ways li.in .art .draw { stroke-dasharray: 1; animation: art-draw 1.4s var(--ease) both; animation-delay: calc(0.3s + var(--k, 0) * 0.15s); }
.motion .ways li.in .art .bar { animation: art-grow 1s var(--ease) both; animation-delay: calc(0.2s + var(--k, 0) * 0.09s); }
.motion .ways li.in .art .pop { animation: art-pop 0.6s var(--ease) 1.2s both; }
.motion .ways li.in .art .slide-l { animation: art-in-l 1.1s var(--ease) 0.3s both; }
.motion .ways li.in .art .slide-r { animation: art-in-r 1.1s var(--ease) 0.3s both; }
.motion .ways li.in .art .hop { animation: art-hop 0.9s var(--ease) 0.6s both; }
.motion .ways li.in .art .blink { animation: art-pop 0.5s var(--ease) both; animation-delay: calc(0.9s + var(--k, 0) * 0.15s); }
.motion .ways li.in .art .spin { animation: art-turn 1.4s var(--ease) 0.3s both; }
.motion .ways li.in .art .flow { animation: art-flow 1.2s linear infinite; }
.motion .ways li.in a:hover .art .draw { animation-name: art-draw-2; animation-delay: calc(var(--k, 0) * 0.12s); }
.motion .ways li.in a:hover .art .bar { animation-name: art-grow-2; animation-delay: calc(var(--k, 0) * 0.07s); }
.motion .ways li.in a:hover .art .pop { animation-name: art-pop-2; animation-delay: 0.7s; }
.motion .ways li.in a:hover .art .slide-l { animation: art-meet-l 1.6s var(--ease) infinite; }
.motion .ways li.in a:hover .art .slide-r { animation: art-meet-r 1.6s var(--ease) infinite; }
.motion .ways li.in a:hover .art .hop { animation: art-hop-2 1s var(--ease) infinite; }
.motion .ways li.in a:hover .art .blink { animation: art-blink 1s ease-in-out infinite; animation-delay: calc(var(--k, 0) * 0.2s); }
.motion .ways li.in a:hover .art .spin { animation: art-spin 3s linear infinite; }
@keyframes art-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes art-draw-2 { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes art-grow { from { transform: scaleY(0); } }
@keyframes art-grow-2 { from { transform: scaleY(0.15); } }
@keyframes art-pop { from { opacity: 0; transform: scale(0.3); } }
@keyframes art-pop-2 { from { opacity: 0; transform: scale(0.3); } }
@keyframes art-in-l { from { transform: translateX(-24px); opacity: 0; } }
@keyframes art-in-r { from { transform: translateX(24px); opacity: 0; } }
@keyframes art-meet-l { 50% { transform: translateX(10px); } }
@keyframes art-meet-r { 50% { transform: translateX(-10px); } }
@keyframes art-hop { from { transform: translateY(-18px); opacity: 0; } 60% { transform: translateY(3px); opacity: 1; } }
@keyframes art-hop-2 { 40% { transform: translateY(-8px); } }
@keyframes art-blink { 50% { opacity: 0.3; } }
@keyframes art-turn { from { transform: rotate(-90deg); opacity: 0; } }
@keyframes art-spin { to { transform: rotate(360deg); } }
@keyframes art-flow { to { stroke-dashoffset: -18; } }

/* ---------------- 3 · where we work ---------------- */
.fields-sec { padding: var(--sec-y) var(--edge); background: var(--sunken); border-top: 1px solid var(--line); }
.realms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 7vh, 80px); }
.realms > li { position: relative; border-top: 1px solid var(--line-strong); }
.realms a { position: relative; height: 100%; display: flex; flex-direction: column; padding: 28px 28px 4px 0; }
.realms > li + li a { padding-left: 28px; }
.realms > li + li { border-left: 1px solid var(--line); }
/* every field says where it goes: out to its company's site, or down to its column in the matrix */
.realms .go { position: absolute; top: 26px; right: 20px; width: 40px; height: 40px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--soft); transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease); }
.realms a:hover .go, .realms a:focus-visible .go { background: var(--c); border-color: var(--c); color: var(--on-light); transform: translate(2px, -2px); }
.realms a[href^="#"]:hover .go, .realms a[href^="#"]:focus-visible .go { transform: translateY(4px); }
.realms > li::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--c); transform: scaleX(0.18); transform-origin: left; transition: transform 0.7s var(--ease); }
.realms > li:hover::before, .realms > li:focus-within::before { transform: none; }
.realms b { display: block; padding-right: 52px; font-size: clamp(28px, min(2.4vw, 7vh), 52px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.realms span { display: block; margin-top: 18px; max-width: 28ch; min-height: 4.8em; color: var(--soft); }
.realms .pts { margin-top: clamp(20px, 3.5vh, 36px); border-top: 1px solid var(--line); }
.realms .pts li { padding: clamp(10px, 1.6vh, 15px) 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.35; color: var(--ink); }
.realms em { margin-top: auto; padding-top: 28px; font-style: normal; font-size: 14px; color: var(--muted); transition: color 0.4s var(--ease); }
.realms a:hover em { color: var(--c); }

/* ---------------- 4 · matrix section (grid itself: matrix.css) ---------------- */
.matrix-sec { padding: var(--sec-y) var(--edge); border-top: 1px solid var(--line); }

/* ---------------- 5 · network ---------------- */
.about { padding: var(--sec-y) var(--edge); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: stretch; }
.about-lead { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.about-cols { display: grid; gap: 16px; }
.col { display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(150px, 20vh, 280px); padding: clamp(28px, 4vh, 44px) 40px; background: var(--raised); border: 1px solid var(--line); border-radius: 20px; }
.col h3 { font-size: clamp(26px, 2.4vw, 36px); }
.col p { margin-top: 18px; max-width: 520px; color: var(--soft); }
.creed { padding-top: 28px; border-top: 1px solid var(--line); }
.creed p { max-width: 20ch; font-size: clamp(28px, min(3vw, 6vh), 48px); font-weight: 500; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.creed footer { margin-top: 18px; font-size: 17px; font-weight: 500; color: var(--sand); }

/* ---------------- 6 · contact ---------------- */
.contact { padding: calc(var(--sec-y) * 1.1) var(--edge); text-align: center; border-top: 1px solid var(--line); }
.contact h2 { max-width: 1200px; margin: 0 auto; font-size: clamp(44px, 7vw, 120px); letter-spacing: -0.05em; line-height: 0.94; }
.mail { display: inline-flex; align-items: center; gap: 14px; margin-top: 56px; height: 64px; padding: 0 34px; border-radius: 999px; background: var(--sand); color: var(--on-light); font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; transition: background-color 0.3s var(--ease); }
.mail:hover { background: var(--ink); }
.contact p { margin-top: 28px; color: var(--muted); }

/* ---------------- footer ---------------- */
.footer { display: flex; align-items: center; gap: 32px; padding: 36px var(--edge); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer .brand { margin-right: auto; color: var(--ink); }
.footer nav { display: flex; gap: 24px; }
.footer nav a:hover { color: var(--ink); }

.ico { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- fit: on screens big enough, every section is one screen ---------------- */
@media (min-width: 1101px) and (min-height: 620px) {
  /* no scroll snapping: it fought the wheel and trackpad. Each section is one screen tall instead */
  html { scroll-padding-top: 0; }
  main > section:not(.hero):not(.contact) { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: clamp(88px, 12vh, 120px); padding-bottom: clamp(32px, 6vh, 72px); }
  .hero { padding-top: clamp(88px, 12vh, 120px); padding-bottom: clamp(32px, 6vh, 72px); }
  /* the matrix needs the height: a one-line heading, the intro on one line beneath it */
  main > .matrix-sec { padding-top: clamp(80px, 11vh, 112px); }
  .matrix-sec .head { max-width: none; }
  .matrix-sec h2 { font-size: clamp(32px, min(3.8vw, 6.5vh), 60px); }
  .matrix-sec .head > p { max-width: none; margin-top: 10px; font-size: clamp(16px, 1.25vw, 19px); }
}
@media (min-width: 1101px) and (min-height: 620px) and (max-height: 960px) {
  .matrix-sec .mx-hint { display: none; }
}

/* ---------------- reveal ---------------- */
.motion .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.motion .rv.in { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding-top: 130px; gap: 32px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .ways { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; height: auto; }
  .ways .art { flex: none; height: 110px; }
}
@media (max-width: 860px) {
  .realms { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .realms > li:nth-child(3) { border-left: 0; }
  .realms > li:nth-child(3) a { padding-left: 0; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { height: 68px; gap: 16px; }
  .nav-cta { height: 40px; padding: 0 16px; font-size: 14px; }
  .nav-cta .arr { display: none; }
  .logo { font-size: 19px; }
  .hero { padding-top: 110px; padding-bottom: 64px; gap: 40px; }
  .promise { font-size: 10.6vw; }
  .actions .btn { flex: 1; justify-content: center; }
  .ways-sec, .matrix-sec { padding-top: 88px; padding-bottom: 72px; }
  /* phones: the six cards swipe sideways so the section stays one screen tall */
  .ways { display: flex; height: auto; gap: 10px; margin: 28px calc(var(--edge) * -1) 0; padding: 0 var(--edge) 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--edge); scrollbar-width: none; }
  .ways::-webkit-scrollbar { display: none; }
  .ways li { flex: 0 0 min(80%, 320px); scroll-snap-align: start; }
  .ways .art { flex: none; width: 100%; height: 110px; margin: 44px 0 14px; }
  .ways a { min-height: 300px; padding: 22px; }
  .realms { grid-template-columns: 1fr; row-gap: 0; }
  .realms > li, .realms > li + li { border-left: 0; }
  .realms a, .realms > li + li a { padding: 24px 0; }
  .realms .go { top: 22px; right: 0; }
  .realms em { padding-top: 12px; }
  .realms span { min-height: 0; }
  .col { padding: 28px 24px; min-height: 0; }
  .mail { height: 58px; padding: 0 26px; font-size: 17px; }
  .footer { flex-wrap: wrap; gap: 16px 24px; }
  .footer .brand { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
