/* Scaler Solutions. Layout language taken from the "Turn customer insights into winning ads" workflow:
   neutral greys, 17px cards on a dotted canvas, one 1200px column. Type is Archivo throughout. */

:root {
  --bg: #0D0D0D;
  --canvas: #090909;
  --card: #141414;
  --card-2: #1B1B1B;
  --ring: #292929;
  --ring-2: #333333;
  --text: #FAFAFA;
  --muted: #A7A7A7;
  --dim: #858585;
  --sage: #D3E4B5;
  --sage-hover: #E3EED0;
  --sage-ink: #142019;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: 32px;
  --max: 1200px;
  --title: clamp(2.2rem, 4.6vw, 4rem);
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sage); color: var(--sage-ink); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--sage); color: var(--sage-ink); padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.dim { color: var(--dim); }

/* Shared type: one light sans for everything, one serif italic accent in sage */
.section-title { font: 700 var(--title)/1.04 var(--sans); letter-spacing: -.045em; color: var(--text); text-align: center; text-wrap: balance; }
.section-title .phrase { white-space: nowrap; }
.section-title .accent { color: var(--sage); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 10px;
  background: var(--sage); color: var(--sage-ink); border: 1px solid var(--sage);
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, transform .15s ease;
}
.btn:hover { background: var(--sage-hover); }
.btn:active { transform: scale(.97); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: rgba(13,13,13,.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ring);
  transition: box-shadow .3s ease;
}
.nav.is-scrolled { box-shadow: 0 12px 24px rgba(0,0,0,.35); }
.nav-inner {
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
  height: 72px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; color: var(--text); }
.brand img { width: 50px; height: 46px; display: block; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(72px + 96px) var(--gutter) 96px;
  isolation: isolate;
}
.wall {
  position: absolute; inset: -20% -10%;
  display: flex; gap: 14px; justify-content: center;
  transform: perspective(1600px) rotateX(22deg) rotateZ(-9deg) scale(1.08);
  transform-origin: 50% 40%;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.wall.is-ready { opacity: .7; }
.wall-col { display: flex; flex-direction: column; gap: 14px; flex: 0 0 auto; width: clamp(120px, 12vw, 190px); will-change: transform; animation: drift var(--dur, 80s) linear infinite; }
.wall-col.rev { animation-direction: reverse; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.tile {
  aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  background: var(--card-2) center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06);
  position: relative;
}
.tile.t-text { display: flex; align-items: center; justify-content: center; padding: 14px; text-align: center; font-weight: 700; font-size: clamp(12px, 1.1vw, 16px); line-height: 1.15; letter-spacing: -.02em; }
.tile.t-serif { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(16px, 1.5vw, 22px); letter-spacing: 0; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(68% 60% at 50% 50%, rgba(13,13,13,.96) 0%, rgba(13,13,13,.9) 45%, rgba(13,13,13,.55) 80%, rgba(13,13,13,.35) 100%),
    linear-gradient(180deg, rgba(13,13,13,.6) 0%, rgba(13,13,13,0) 25%, rgba(13,13,13,0) 70%, var(--bg) 100%);
}
.hero-inner { max-width: 1100px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-title {
  margin-top: 0;
  font: 700 clamp(2.75rem, 7.2vw, 6.75rem)/1.02 var(--sans);
  letter-spacing: -.05em;
  display: flex; flex-direction: column; align-items: center;
}
.line-dim { color: #8A9189; }
.hero-title .line { text-wrap: balance; }
.line-top { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: .26em; }
@media (min-width: 900px) { .hero-title .line { white-space: nowrap; } }
.rotator { display: inline-grid; justify-items: start; margin: .02em 0; transition: width .55s var(--ease); }
.rot-item {
  grid-area: 1 / 1;
  display: inline-flex; align-items: center; gap: .18em;
  color: var(--sage);
  opacity: 0; transform: translateY(.35em); filter: blur(8px);
  transition: opacity .55s var(--ease), transform .55s var(--ease), filter .55s var(--ease);
  white-space: nowrap;
}
.rot-item svg { width: .82em; height: .82em; flex: 0 0 auto; }
.rot-item.is-on { opacity: 1; transform: none; filter: none; }
.rot-item.is-off { opacity: 0; transform: translateY(-.35em); filter: blur(8px); }
/* Scroll cue: two chevrons fading downward in turn */
.scroll-cue {
  position: absolute; left: 0; right: 0; bottom: 26px; width: fit-content; margin: 0 auto;
  display: grid; justify-items: center; padding: 8px; color: var(--text);
}
.scroll-cue svg { width: 30px; height: 30px; margin-top: -16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: cue 2s ease-in-out infinite; opacity: 0; }
.scroll-cue svg:first-child { margin-top: 0; }
.scroll-cue svg + svg { animation-delay: .25s; }
.scroll-cue:hover, .scroll-cue:focus-visible { color: var(--sage); }
@keyframes cue {
  0% { opacity: 0; transform: translateY(-6px); }
  35% { opacity: .9; }
  70% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 0; transform: translateY(6px); }
}

/* Sections */
.formats { padding-top: clamp(80px, 10vw, 128px); }
.head { margin-bottom: 36px; }

/* Dotted canvas and cards, same as the workflow */
.canvas { position: relative; border: 1px solid var(--ring); border-radius: 26px; background-color: var(--canvas); background-image: radial-gradient(var(--ring) .75px, transparent .75px); background-size: 22px 22px; padding: 40px 48px 48px; }
.card { background: var(--card); border: 1px solid var(--ring-2); border-radius: 17px; box-shadow: 0 12px 24px rgba(0,0,0,.2); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.bento .card { display: flex; flex-direction: column; gap: 22px; padding: 24px; overflow: hidden; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c6 { grid-column: span 6; } .c12 { grid-column: span 12; }
.card-text h3 { display: flex; align-items: center; gap: 9px; font-size: 19px; line-height: 1.25; letter-spacing: -.015em; font-weight: 600; }
.card-text h3 svg { width: 18px; height: 18px; flex: 0 0 auto; }
.card-text p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 46ch; }

.media { flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.media-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; align-items: end; }
.m { position: relative; overflow: hidden; width: 100%; border-radius: 10px; background: #1C1C1C; box-shadow: 0 0 0 1px #2E2E2E; }
.m-916 { aspect-ratio: 9 / 16; }
.m-45 { aspect-ratio: 4 / 5; }
.m-45.posts, .m-45.slideshow, .m-45.podcast { max-width: 270px; }
.m video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Reveal: cards sharpen in once */
.reveal { opacity: 0; filter: blur(6px); transform: translateY(28px); transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); }
/* Hero: one staged entrance on load */
.rise { opacity: 0; animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
.reveal.is-in { opacity: 1; filter: none; transform: none; }

/* TikTok slideshow */
.slideshow .bars { position: absolute; z-index: 3; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; }
.slideshow .bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; position: relative; }
.slideshow .bars i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(var(--fill, 0)); }
.slideshow .bars i.is-done::after { --fill: 1; }
.slideshow .bars i.is-live::after { animation: fillbar var(--dur, 2600ms) linear forwards; }
@keyframes fillbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ss-track { position: absolute; inset: 0; display: flex; transition: transform .6s var(--ease); }
.ss-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 18px; position: relative; }
.ss-photo { background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)), var(--img) center / cover; }
.ss-img { padding: 0; }
.ss-img img { width: 100%; height: 100%; object-fit: cover; }
.ss-plain { background: #E9E4DA; }
.ss-plain.alt { background: #1E2A22; }
.tt-text {
  text-align: center; font-weight: 700; font-size: clamp(13px, 1.15vw, 16px); line-height: 1.3; letter-spacing: -.01em; color: #111;
  background: #fff; padding: 6px 9px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.ss-plain.alt .tt-text { background: var(--sage); }

/* Static ads */
.static-fill img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.static-b { background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.78)), var(--img) center 20% / cover; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; gap: 6px; color: #fff; }
.static-b .stars { color: #FFD15C; font-size: 13px; letter-spacing: 2px; }
.static-b .quote { font-weight: 700; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.2; letter-spacing: -.01em; }
.static-b .who { font-size: 11px; opacity: .75; }

/* Notes and tweet */
.posts { background: #F4F3EF; }
.post { position: absolute; inset: 0; padding: 18px 16px; opacity: 0; transition: opacity .6s var(--ease); }
.post.is-on { opacity: 1; }
.notes { color: #1C1C1E; background: #F4F3EF; }
.notes-top { color: #D9A400; font-size: 12px; font-weight: 600; }
.notes-title { margin-top: 10px; font-weight: 700; font-size: clamp(14px, 1.2vw, 16px); line-height: 1.25; letter-spacing: -.01em; }
.notes-date { margin-top: 4px; font-size: 9.5px; color: #9A9AA0; }
.notes-lines { list-style: none; margin: 12px 0 0; padding: 0; font-size: 12px; line-height: 1.5; color: #2C2C2E; }
.notes-lines li { padding-left: 10px; position: relative; opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .35s ease; }
.notes-lines li::before { content: "-"; position: absolute; left: 0; }
.notes-lines li.is-shown { opacity: 1; transform: none; }
.tweet { background: #000; color: #E7E9EA; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.tw-head { display: flex; align-items: center; gap: 9px; font-size: 13px; line-height: 1.25; }
.tw-name { display: flex; flex-direction: column; }
.tw-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--img) center 20% / cover; flex: 0 0 auto; }
.tw-handle { color: #71767B; }
.tw-x { width: 16px; height: 16px; margin-left: auto; }
.tw-body { font-size: clamp(14px, 1.25vw, 17px); line-height: 1.35; }
.tw-meta { font-size: 11.5px; color: #71767B; }
.tw-stats { display: flex; gap: 14px; font-size: 11.5px; color: #71767B; border-top: 1px solid #2F3336; padding-top: 10px; }
.tw-stats strong { color: #E7E9EA; }

/* Animated ads */
.an-label { position: absolute; left: 8px; top: 8px; z-index: 3; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; font-size: 11px; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Contact */
.contact { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }
.contact-card { padding: clamp(24px, 3.4vw, 40px); }
.contact-head { margin-bottom: 26px; }
.contact-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; text-align: left; letter-spacing: -.04em; }
.form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field select {
  width: 100%; height: 46px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--text);
  background: #191919; border: 1px solid #343434; border-radius: 9px;
  transition: border-color .2s ease;
}
.field input::placeholder { color: #666; }
.field select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.field select:invalid { color: #666; }
.field select option { color: #111; }
.field input:focus, .field select:focus { outline: none; border-color: var(--sage); }
.field [aria-invalid="true"] { border-color: #E59A84; }
.form .btn { height: 46px; white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; color: var(--muted); }
.form-status:not(:empty) { margin-top: 14px; }
.form-status.is-error { color: #F0B3A2; }
.form-status.is-ok { color: var(--sage); }

/* Footer */
.footer { border-top: 1px solid var(--ring); }
.footer-inner {
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
  min-height: 72px; padding: 16px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px;
  color: var(--dim); font-size: 14px;
}
.footer-brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.footer-brand img { width: 22px; height: 21px; }
.footer-copy { margin: 0; }
.footer nav { justify-self: end; display: flex; gap: 22px; }
.footer a { color: var(--muted); text-decoration: none; transition: color .2s ease; }
.footer a:hover { color: var(--text); }
.footer .footer-brand { color: var(--text); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 140px var(--gutter) 100px; }
.legal h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -.045em; line-height: 1.05; }
.legal .updated { margin-top: 12px; color: var(--dim); font-size: 15px; }
.legal h2 { font-size: 1.3rem; letter-spacing: -.02em; margin-top: 44px; }
.legal p, .legal li { color: var(--muted); margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--sage); }

/* Responsive */
@media (max-width: 1100px) {
  .c3 { grid-column: span 6; }
  .c6 { grid-column: span 12; }
  .c4 { grid-column: span 6; }
  .c4.span-last { grid-column: span 12; }
}
@media (max-width: 999px) {
  .canvas { padding: 28px 24px; border-radius: 21px; }
  .bento { gap: 20px; }
}
@media (max-width: 860px) {
  .form { grid-template-columns: 1fr 1fr; }
  .form .btn { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  :root { --gutter: 22px; }
  body { font-size: 16px; }
  .canvas { padding: 16px; border-radius: 18px; }
  .bento .card { padding: 19px 16px; }
  .c3, .c4, .c4.span-last, .c6 { grid-column: span 12; }
  .hide-sm { display: none; }
  .form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; gap: 14px; padding-block: 24px; }
  .footer nav { justify-self: start; }
  .footer-copy { order: 3; }
  .nav-inner { height: 64px; }
  .brand img { width: 42px; height: 39px; }
  .hero { padding-top: calc(64px + 84px); padding-bottom: 84px; }
  .wall-col { width: 110px; }
  .m-45.posts, .m-45.slideshow, .m-45.podcast { max-width: 260px; }
  .hero-shade { background: linear-gradient(180deg, rgba(13,13,13,.45) 0%, rgba(13,13,13,.84) 24%, rgba(13,13,13,.84) 78%, var(--bg) 100%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall-col, .scroll-cue svg, .rise { animation: none !important; }
  .rise { opacity: 1; }
  .scroll-cue svg { opacity: .7; }
  .reveal { opacity: 1; filter: none; transform: none; }
  * { transition: none !important; }
}
