/* ============================================================
   TBN — shared brand system for inner pages
   Cinematic-editorial: black canvas, Anton display, warm ink,
   one restrained gold accent, hairlines, grain, scroll reveals.
   In Squarespace: paste the :root + element styles you need into
   the Custom CSS panel; the previews show the target look.
   ============================================================ */

:root {
  --bg:        #0a0a0a;
  --bg-2:      #131311;
  --ink:       #ffffff;
  --muted:     #8f8f8f;
  --line:      rgba(255,255,255,0.14);
  --line-2:    rgba(255,255,255,0.07);
  --accent:    #ffffff;
  --display:   'Fraunces', Georgia, 'Times New Roman', serif;
  --body:      'Archivo', system-ui, -apple-system, sans-serif;
  --maxw:      1320px;
  --pad:       clamp(20px, 5vw, 80px);
  --nav-h:     72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: transparent; color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- ambient color orbs (injected by tbn.js, sits behind content) ---------- */
.tbn-bubbles { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.tbn-bubble { position: absolute; border-radius: 50%; filter: blur(34px); will-change: transform; }
.tbn-bubble--1 { width: 46vw; height: 46vw; left: -8vw;  top: 6vh;
  background: radial-gradient(circle, rgba(123,45,255,.30), transparent 68%);  animation: tbnDrift1 46s ease-in-out infinite; }
.tbn-bubble--2 { width: 40vw; height: 40vw; right: -6vw; top: 26vh;
  background: radial-gradient(circle, rgba(255,45,126,.26), transparent 68%);  animation: tbnDrift2 58s ease-in-out infinite; }
.tbn-bubble--3 { width: 54vw; height: 54vw; left: 18vw;  bottom: -16vh;
  background: radial-gradient(circle, rgba(31,182,255,.24), transparent 68%);  animation: tbnDrift3 64s ease-in-out infinite; }
.tbn-bubble--4 { width: 34vw; height: 34vw; right: 10vw; bottom: 4vh;
  background: radial-gradient(circle, rgba(255,176,32,.16), transparent 68%);  animation: tbnDrift1 52s ease-in-out infinite reverse; }
.tbn-bubble--5 { width: 30vw; height: 30vw; left: 36vw;  top: 38vh;
  background: radial-gradient(circle, rgba(0,212,212,.18), transparent 68%);   animation: tbnDrift2 72s ease-in-out infinite; }
.tbn-bubble--6 { width: 38vw; height: 38vw; left: 2vw;   top: 52vh;
  background: radial-gradient(circle, rgba(43,92,255,.22), transparent 68%);   animation: tbnDrift3 50s ease-in-out infinite reverse; }
@keyframes tbnDrift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(9vw,7vh) scale(1.18); } }
@keyframes tbnDrift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-8vw,9vh) scale(1.12); } }
@keyframes tbnDrift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(7vw,-8vh) scale(1.22); } }

/* film grain atmosphere */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 10vw, 160px); }
.section--tight { padding-block: clamp(40px, 6vw, 88px); }
.divider { height: 1px; background: var(--line-2); border: 0; margin: 0; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--body); font-weight: 600; font-size: 12px;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 24px;
}
.eyebrow .num { color: var(--accent); }
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--accent); display: inline-block;
}
.display {
  font-family: var(--display); font-weight: 500; text-transform: none;
  line-height: 1.0; letter-spacing: -0.01em; margin: 0;
  font-size: clamp(2.8rem, 9vw, 7.5rem);
}
.display--md { font-size: clamp(2.2rem, 6vw, 4.5rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--muted); max-width: 56ch; }
.h-sm { font-family: var(--display); font-weight: 500;
        font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.0; margin: 0; }

/* Fraunces is a serif — render display headings as elegant title-case, not uppercase.
   !important overrides the per-page <style> blocks that were built for Anton. */
.display, .display--md, .h-sm, .home-statement, .statement, .tbn-title,
.post-title, .feature h2, .project h3, .pillar h3, .card .name {
  text-transform: none !important; letter-spacing: -0.01em !important;
  font-weight: 600 !important; line-height: 1.02 !important;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  font-family: var(--body); font-weight: 600; font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 16px 28px; border: 1px solid var(--ink); background: transparent;
  color: var(--ink); transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--accent { border-color: var(--accent); color: var(--accent); }
.btn--accent:hover { background: var(--accent); color: var(--bg); }
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- nav (injected by tbn.js) ---------- */
.tbn-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--pad); background: transparent; border-bottom: 1px solid transparent;
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
}
.tbn-bar.scrolled { background: rgba(10,10,10,0.82); backdrop-filter: blur(10px);
  border-bottom-color: var(--line-2); }
/* homepage hero sits full-screen behind the transparent nav; other pages offset below it */
body:not(.home) { padding-top: var(--nav-h); }
.tbn-bar .brand { font-family: var(--display); font-size: 30px; letter-spacing: 1px;
  display: inline-flex; align-items: center; }
/* TBN wordmark — white-outlined art, reads as-is on the dark bar (no invert) */
.tbn-bar .brand img { height: 34px; width: auto; display: block; transition: opacity .25s ease; }
.tbn-bar .brand:hover img { opacity: .82; }
@media (max-width: 900px){ .tbn-bar .brand img { height: 28px; } }
.tbn-bar nav { display: flex; align-items: center; gap: 30px; }
.tbn-bar nav a {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  position: relative; padding: 6px 0; transition: color .2s ease;
}
.tbn-bar nav a:hover { color: var(--ink); }
.tbn-bar nav a.active { color: var(--ink); }
.tbn-bar nav a.active:not(.nav-btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--accent);
}
/* Contact as a rectangular button (G7-style) */
.tbn-bar nav a.nav-btn { border: 1px solid var(--ink); color: var(--ink); padding: 10px 22px;
  border-radius: 2px; transition: background .25s ease, color .25s ease; }
.tbn-bar nav a.nav-btn:hover { background: var(--ink); color: var(--bg); }
.tbn-burger { display: none; background: 0; border: 0; color: var(--ink); cursor: pointer; }
.tbn-mobile { display: none; }

@media (max-width: 900px) {
  .tbn-bar nav { display: none; }
  .tbn-burger { display: block; }
  .tbn-mobile {
    display: block; position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s ease;
  }
  .tbn-mobile.open { transform: translateY(0); }
  .tbn-mobile a { display: block; padding: 18px var(--pad); border-top: 1px solid var(--line-2);
    text-transform: uppercase; letter-spacing: 0.14em; font-size: 15px; }
}

/* ---------- clients & partnerships (injected by tbn.js, G7-style logo wall) ---------- */
.tbn-clients { border-top: 1px solid var(--line-2); padding-block: clamp(56px,8vw,120px); text-align: center; }
.tbn-clients__eye { justify-content: center; }
.tbn-clients__title { font-family: var(--display); font-weight: 600; line-height: 1;
  font-size: clamp(2rem, 5vw, 3.6rem); margin: 0 0 clamp(36px,5vw,64px);
  position: relative; display: inline-block; }
.tbn-clients__title::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -14px;
  height: 2px; background: var(--accent); opacity: .85; }
.tbn-clients__marquee { overflow: hidden; width: 100%; text-align: left;
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
  mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); }
.tbn-clients__track { display: flex; align-items: center; width: max-content;
  gap: clamp(44px,6vw,90px); animation: tbn-logo-marquee 60s linear infinite; }
.tbn-clients__marquee:hover .tbn-clients__track { animation-play-state: paused; }
@keyframes tbn-logo-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tbn-logo { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; height: 74px; }
.tbn-logo img { max-height: 100%; max-width: 230px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .62;
  transition: opacity .3s ease; }
.tbn-logo:hover img { opacity: 1; }
/* marquis client — render noticeably larger, fuller height + opacity */
.tbn-logo--feature { height: 106px; }
.tbn-logo--feature img { max-width: 380px; opacity: .95; }
.tbn-logo--text { font-family: var(--body); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: clamp(13px,1.4vw,16px); color: var(--ink);
  white-space: nowrap; opacity: .55; transition: opacity .3s ease; }
.tbn-logo--text:hover { opacity: 1; }

/* ---------- footer / lower page (injected by tbn.js) ---------- */
.tbn-foot { border-top: 1px solid var(--line); padding-block: clamp(48px,7vw,88px); }
.tbn-foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(32px,5vw,64px); }
.tbn-foot__brand h3 { font-family: var(--display); font-weight: 600; line-height: 1.05;
  font-size: clamp(1.5rem,2.6vw,2.1rem); margin: 0 0 16px; }
.tbn-foot__brand p { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 46ch; margin: 0; }
.tbn-foot__col h4 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 16px; }
.tbn-foot__col a { display: block; padding: 6px 0; color: var(--muted); font-size: 15px; transition: color .2s; }
.tbn-foot__col a:hover { color: var(--ink); }
.tbn-foot__social { display: flex; gap: 14px; margin-top: 22px; }
.tbn-foot__social a { padding: 0; color: var(--muted); }
.tbn-foot__social a:hover { color: var(--ink); }
.tbn-foot__social svg { width: 22px; height: 22px; display: block; }
.tbn-foot__base { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(40px,6vw,64px);
  padding-top: 22px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 13px; }
.tbn-foot__base a { color: var(--muted); transition: color .2s; }
.tbn-foot__base a:hover { color: var(--ink); }
@media (max-width: 760px){ .tbn-foot__grid { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .tbn-foot__brand { grid-column: 1 / -1; }
  .tbn-foot__base { flex-direction: column; gap: 10px; align-items: flex-start; } }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: clamp(14px, 1.6vw, 26px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){ .grid--3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  position: relative; overflow: hidden; background: var(--bg-2);
  aspect-ratio: 4 / 5; display: block;
}
.card img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.card:hover img { transform: scale(1.06); }
.card::after { content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.82) 100%); }
.card .meta { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 22px; width: 100%; }
.card .tag { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); }
.card .name { font-family: var(--display); text-transform: uppercase; line-height: 0.92;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem); margin: 6px 0 0; }
.card .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="img"], [data-reveal="img"] > * { opacity: 1; transform: none; }
[data-reveal="img"] { clip-path: inset(0 0 101% 0); transition: clip-path 1.05s cubic-bezier(.16,.84,.28,1); }
[data-reveal="img"].in { clip-path: inset(0 0 0 0); }

/* ---------- premium motion layer ---------- */
.tbn-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 10001;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

.btn, .tbn-bar .brand { will-change: transform; }

/* logo marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.marquee__track { display: flex; width: max-content; animation: tbn-marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track > span { flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  height: 116px; width: 240px; font-family: var(--display); font-size: 22px; color: var(--muted);
  letter-spacing: 1px; border-right: 1px solid var(--line-2); transition: color .25s; }
.marquee__track > span:hover { color: var(--ink); }
@keyframes tbn-marquee { to { transform: translateX(-50%); } }

/* NOTE: reduced-motion fallbacks intentionally removed per client request to
   keep the full animated experience visible (this machine has OS Reduce Motion on).
   Re-add a @media (prefers-reduced-motion: reduce) block here to restore a11y. */
