/* sasanka.space/videos: plain, readable, built for a founder skimming on a laptop or phone. */
:root {
  --bg: #f3ede4;
  --card: #fbf7f0;
  --ink: #1b1612;
  --ink-2: #4a4038;
  --muted: #7a6d60;
  --line: rgba(27, 22, 18, .14);
  --accent: #b4532a;
  --accent-2: #d9774a;
  --hl: #ffd43b;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gut: max(clamp(16px, 7vw, 120px), calc((100vw - 1160px) / 2));
  --panel-m: max(10px, calc(var(--gut) - 56px));
  --r: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
.hero { overflow-x: clip; }
body::after { content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07; 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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(4%, -6%); } 60% { transform: translate(-3%, 7%); } 80% { transform: translate(6%, 2%); } 100% { transform: translate(0, 0); } }
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 99px; font: 400 15px/1.2 var(--sans); border: 1.5px solid transparent; transition: transform .2s, background-color .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--bg); }
.btn--accent:hover { background: var(--accent-2); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--ghost { border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--light { border-color: rgba(243, 237, 228, .4); color: var(--bg); }
.btn--light:hover { background: var(--bg); color: var(--ink); }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 14px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px var(--gut); background: rgba(243, 237, 228, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__name { font: 400 26px/1 var(--serif); letter-spacing: -.01em; margin-right: auto; white-space: nowrap; }
.top__name em { color: var(--accent); }
.top__nav { display: flex; gap: 22px; font: 400 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.top__nav a:hover { color: var(--accent); }
@media (max-width: 900px) { .top__nav { display: none; } }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(36px, 6vw, 80px) var(--gut) clamp(28px, 4vw, 48px); }
.eyebrow { margin: 0 0 18px; font: 400 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.hero h1 { margin: 0; font: 400 clamp(48px, 7.4vw, 108px)/.92 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
.hero h1 { isolation: isolate; }
.hero h1 mark { position: relative; z-index: -1; background: var(--hl); color: var(--ink); font-style: italic; padding: 0 .12em; border-radius: .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; white-space: nowrap; }
.hero__lede { margin: 22px 0 0; max-width: 36em; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* the fan of three posters */
.fan { position: relative; height: clamp(380px, 40vw, 540px); }
.fan__item { position: absolute; top: 50%; left: 50%; width: 46%; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 24px 50px -24px rgba(21, 18, 15, .55), 0 2px 6px rgba(21, 18, 15, .12); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.fan__item img { width: 100%; height: 100%; object-fit: cover; }
.fan__item--c { z-index: 3; width: 46%; transform: translate(-50%, -50%); }
.fan__item--l, .fan__item--r { width: 38%; }
.fan__item--l { z-index: 1; transform: translate(-131%, -45%) rotate(-7deg); }
.fan__item--r { z-index: 2; transform: translate(31%, -45%) rotate(7deg); }
.fan__item--c:hover { transform: translate(-50%, -52%); }
.fan__item--l:hover { transform: translate(-133%, -47%) rotate(-8deg); }
.fan__item--r:hover { transform: translate(33%, -47%) rotate(8deg); }
.fan__tag { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 6px 10px; border-radius: 99px; background: rgba(27, 22, 18, .72); color: #fff; font: 500 10px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
/* side cards: keep tag and views on the outer edge, clear of the middle card */
.fan__item--r .fan__tag { left: auto; right: 10px; }
.fan__item--r .badge { left: auto; right: 10px; transform-origin: right bottom; }
.fan__item--l .badge, .fan__item--r .badge { padding: 6px 9px 5px; }
.fan__item--l .badge b, .fan__item--r .badge b { font-size: clamp(16px, 1.6vw, 24px); }
.fan__item--l .badge small, .fan__item--r .badge small { font-size: 9px; }
.fan__item--l .badge--quiet b, .fan__item--r .badge--quiet b { font-size: clamp(14px, 1.25vw, 18px); }
.fan__item--l .badge--quiet small, .fan__item--r .badge--quiet small { font-size: 8px; }
/* the Fiverr mark carries its own green circle, so it fills the logo slot */
.logo[title="Fiverr"] .ico, .chip-logo[title="Fiverr"] .ico { width: 100%; height: 100%; }


/* logos */
.logo, .chip-logo { display: inline-grid; place-items: center; flex: none; color: var(--brand); }
.logo { width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.logo .ico { width: 15px; height: 15px; }

/* sections */
.sec { padding: clamp(48px, 7vw, 88px) var(--gut); border-top: 1px solid var(--line); scroll-margin-top: 56px; }
.sec--motion { background: var(--card); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; margin-bottom: clamp(24px, 3.5vw, 40px); }
.sec__n { margin: 0 0 10px; font: 400 12px/1 var(--mono); color: var(--accent); letter-spacing: .06em; }
.sec__n::before { content: "("; }
.sec__n::after { content: ")"; }
.sec h2 { margin: 0 0 18px; font: 400 clamp(52px, 7.6vw, 112px)/.9 var(--serif); letter-spacing: -.03em; }
.accts { display: flex; flex-wrap: wrap; gap: 8px; }
.acct { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 16px 6px 6px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); font: 500 13px/1 var(--mono); transition: border-color .2s, background-color .2s; }
.acct .logo { width: 30px; height: 30px; }
.acct .logo .ico { width: 17px; height: 17px; }
.acct:hover { border-color: var(--ink); }
.sec--motion .acct { background: var(--bg); }
.sec__about p { margin: 0; color: var(--ink-2); }
.best { margin-top: 12px !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--ink) !important; font-weight: 600; }
.best span { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* vertical video grid */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.vid { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.frame { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: 0 18px 36px -24px rgba(21, 18, 15, .5); }
.frame iframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0; }
.frame--instagram iframe { right: auto; bottom: auto; } /* size and crop set in videos.js */
.poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; color: inherit; font: inherit; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .55) 100%); pointer-events: none; }
.poster:hover img { transform: scale(1.04); }
.chip-logo { position: absolute; z-index: 2; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.chip-logo .ico { width: 19px; height: 19px; }
/* play button sits bottom-right so it never covers the hook text in the middle of a poster */
.play { position: absolute; z-index: 2; right: 10px; bottom: 10px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 6px 20px rgba(0, 0, 0, .3); transition: transform .25s, background-color .25s; }
.play .ico { width: 21px; height: 21px; margin-left: 3px; }
.poster:hover .play, .poster:focus-visible .play, .mv__play:hover .play, .mv__play:focus-visible .play { transform: scale(1.1); background: var(--hl); }

/* the view count, loud on purpose */
.badge { position: absolute; z-index: 2; left: 10px; bottom: 10px; display: inline-flex; align-items: baseline; gap: 5px; padding: 7px 11px 6px; border-radius: 11px; background: var(--hl); color: var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.badge b { font: 800 clamp(20px, 2vw, 26px)/1 var(--sans); letter-spacing: -.03em; }
.badge small { font: 700 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; }
.badge--big { padding: 8px 13px 7px; transform: rotate(-3deg); transform-origin: left bottom; }
.badge--big b { font-size: clamp(26px, 2.8vw, 38px); }
.badge--quiet { background: rgba(21, 18, 15, .78); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.badge--quiet b { font-size: clamp(16px, 1.55vw, 20px); }
.badge--quiet small { font-size: 9px; }

/* hook test callout + labels */
.callout { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); }
.callout__k { font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--hl); }
.callout__v { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.callout__v i { font: 700 12px/1 var(--sans); font-style: normal; opacity: .6; margin-left: 4px; }
.callout__v i:first-child { margin-left: 0; }
.callout__v b { font: 800 22px/1 var(--sans); letter-spacing: -.02em; }
.callout__v small { font: 600 12px/1 var(--sans); opacity: .7; margin-left: 2px; }
.hooktag { display: inline-block; margin-right: 8px; padding: 3px 7px 2px; border-radius: 6px; background: var(--ink); color: var(--hl); font: 500 10px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; vertical-align: 2px; }

.vid__hook { margin: 2px 0 0; font: 500 15px/1.4 var(--sans); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vid__meta { display: flex; align-items: center; gap: 14px; margin-top: auto; color: #5f554b; font: 500 12px/1 var(--mono); }
.vid__meta span { display: inline-flex; align-items: center; gap: 5px; }
.vid__meta .ico { width: 14px; height: 14px; }
.vid__date { font-weight: 500; }
.vid__open { margin-left: auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2); }
.vid__open:hover { border-color: var(--ink); color: var(--ink); }
.vid__open .ico { width: 14px; height: 14px; }

/* motion design (landscape) */
.mgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.mv { min-width: 0; }
.mv__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: 0 18px 36px -24px rgba(21, 18, 15, .5); }
.mv__frame video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.mv__play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .2) 0, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .35) 100%); cursor: pointer; }
.mv__title { margin: 14px 0 4px; font: 400 clamp(26px, 2.4vw, 34px)/1.05 var(--serif); }
.mv__sub { margin: 0; color: var(--muted); font-size: 15px; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(28px, 4vw, 44px); }
.review { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); display: flex; transition: border-color .3s, background-color .3s; }
.review:hover { border-color: var(--ink); background: var(--card); }
.review figure { margin: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.stars { display: flex; gap: 2px; color: #f5a623; }
.stars .ico { width: 17px; height: 17px; }
.review blockquote { margin: 0; font: 400 clamp(22px, 1.9vw, 26px)/1.2 var(--serif); }
.review figcaption { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; color: var(--muted); font: 500 11px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.review__go { color: var(--accent); }
.review:hover .review__go { text-decoration: underline; text-underline-offset: 3px; }

/* contact */
.cta { background: var(--ink); color: var(--bg); margin: 0 var(--panel-m) var(--panel-m); padding: clamp(56px, 8vw, 104px) calc(var(--gut) - var(--panel-m)) 28px; border-radius: clamp(16px, 2.4vw, 32px); }
.cta h2 { margin: 0; max-width: 12em; font: 400 clamp(48px, 8vw, 120px)/.9 var(--serif); letter-spacing: -.03em; }
.cta h2 em { color: var(--hl); }
.cta > p { max-width: 36em; margin: 18px 0 0; color: rgba(243, 237, 228, .75); font-size: 18px; }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(56px, 8vw, 96px); padding-top: 20px; border-top: 1px solid rgba(243, 237, 228, .16); color: rgba(243, 237, 228, .55); font: 400 11px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- motion (same moves as the main page; motion.js) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
main { position: relative; }
main > section { position: relative; z-index: 1; }

.loader { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: 1fr auto auto; padding: var(--gut); background: var(--ink); color: var(--bg); }
html:not(.js) .loader { display: none; }
.loader__name { align-self: center; overflow: hidden; padding-bottom: .18em; margin-bottom: -.18em; font: italic 400 clamp(56px, 12vw, 180px)/1 var(--serif); }
.loader__name span { display: inline-block; }
.loader__count { text-align: right; font: 400 clamp(80px, 16vw, 240px)/1 var(--serif); padding-bottom: .05em; }
.loader__count small { margin-left: .12em; font: 600 clamp(14px, 1.6vw, 22px)/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--hl); }
.loader__bar { height: 1px; margin-top: 24px; background: rgba(243, 237, 228, .2); }
.loader__bar i { display: block; width: 100%; height: 100%; background: var(--accent-2); transform: scaleX(0); transform-origin: left; }

.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; opacity: 0; transition: width .35s cubic-bezier(.7, 0, .2, 1), height .35s cubic-bezier(.7, 0, .2, 1), margin .35s cubic-bezier(.7, 0, .2, 1), background-color .35s; }
.cursor__label { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .2s; }
.cursor.is-on { opacity: 1; }
.cursor.is-big { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
.cursor.is-big .cursor__label { opacity: 1; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: transparent; border: 1px solid var(--accent); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.thread { position: absolute; left: 0; top: 0; width: 100%; z-index: 0; pointer-events: none; overflow: visible; opacity: .5; }
html:not(.js) .thread { display: none; }
@media (max-width: 900px) { .thread { display: none; } }
.thread__path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* headings split into words (clipped) and characters (they rise) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .1em 0; margin: 0 -.04em -.1em 0; }
.char { display: inline-block; will-change: transform; }

/* hidden until motion.js reveals them */
html.js .hero__text > :not(h1), html.js .sec__head > div > :not(h2, .callout),
html.js .review, html.js .cta > p, html.js .cta__row, html.js .foot { opacity: 0; transform: translateY(24px); }
html.js .magnetic { transition: background-color .2s, color .2s, border-color .2s; }

/* tablet */
@media (max-width: 1000px) {
  .reviews { grid-template-columns: minmax(0, 1fr); }
}
/* phone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .fan { display: none; } /* the same posters open the first section right below */
  .callout__v b { font-size: 20px; }
  .sec__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mgrid { grid-template-columns: minmax(0, 1fr); }
  .chip-logo { width: 28px; height: 28px; top: 8px; left: 8px; }
  .chip-logo .ico { width: 16px; height: 16px; }
  .play { right: 8px; bottom: 8px; width: 38px; height: 38px; }
  .play .ico { width: 16px; height: 16px; margin-left: 2px; }
  .badge { left: 8px; bottom: 8px; padding: 5px 8px 4px; }
  .badge b { font-size: 19px; }
  .badge--big b { font-size: 23px; }
  .badge small { font-size: 10px; }
  .badge--quiet b { font-size: 15px; }
  .badge--quiet small { font-size: 8px; }
  .vid__hook { font-size: 14px; }
  .hooktag { font-size: 11px; }
  .vid__meta { gap: 10px; font-size: 13px; }
  .vid__date { display: none !important; }
  .btn { padding: 13px 18px; font-size: 15px; }
  .top .btn--sm { min-height: 40px; padding: 10px 15px; font-size: 14px; }
}
@media (max-width: 380px) {
  .top__name em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .loader, .thread { display: none; }
}
