/* ==========================================================================
   Bluink Labs: site styles
   1. Tokens  2. Base  3. Nav and buttons  4. Home sections  5. Footer
   6. Careers page  7. Demo page  8. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --paper: #ffffff;
  --paper-2: #f3f5f9;
  --ink: #0a0f1e;
  --ink-2: #3c4456;
  --ink-3: #7a8293;
  --rule: #e2e7f0;

  --night: #0b0d12;
  --night-2: #11151d;
  --night-rule: #1f2633;
  --moon: #ecebe6;
  --moon-2: #9aa1ae;

  --blue: #4d7cff;
  --blue-deep: #2f5ce6;
  --ice: #b9d2ff;
  --mint: #9fe8ff;
  --pale: #e3edff;
  --pill: #0f1a36;

  --sans: "Figtree", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1560px;
  --g: clamp(16px, 4vw, 72px); /* page gutter */
}

/* 2. Base ------------------------------------------------------------------ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -.02em; }
em { font-style: normal; }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { color: var(--blue); font-size: 12px; }
.shell { max-width: var(--wrap); margin: 0 auto; border-left: 1px solid var(--night-rule); border-right: 1px solid var(--night-rule); }
.light-shell { max-width: var(--wrap); margin: 0 auto; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }

/* corner brackets */
.frame4 { position: absolute; inset: 88px var(--g) 64px; pointer-events: none; }
.frame4 i { position: absolute; width: 12px; height: 12px; border: 0 solid var(--ink-3); }
.frame4 i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.frame4 i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.frame4 i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.frame4 i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

/* animation slots: Rive (.riv, sized by data-w / data-h) and canvas scenes (.scene) */
.riv, .scene { width: 100%; }
.scene canvas { display: block; }

/* 3. Nav and buttons ------------------------------------------------------- */
.site-nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 72px; padding: 0 var(--g);
  pointer-events: none;
}
.site-nav > * { pointer-events: auto; }
.site-nav[data-on="light"] .logo { color: var(--ink); }
.site-nav[data-on="dark"] .logo { color: var(--moon); }

.logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 19px; letter-spacing: -.01em; transition: color .3s; }
.logo img { width: 28px; height: auto; }

.pill { display: flex; gap: 2px; padding: 4px; background: var(--pill); border-radius: 8px; box-shadow: 0 8px 24px rgba(10, 15, 30, .18); }
.pill a { color: #c9d4ee; font-size: 13px; padding: 7px 18px; border-radius: 5px; transition: background .2s, color .2s; }
.pill a:hover, .pill a.on { background: rgba(255, 255, 255, .1); color: #fff; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 4px;
  background: var(--pale); color: var(--ink); font-size: 13px;
  transition: background .2s;
}
.btn:hover { background: #fff; }
.btn .ar { font-size: 12px; }
.btn-dark { background: var(--pill); color: #fff; }
.btn-dark:hover { background: #1b2a52; }
.nav-cta { justify-self: end; }

/* 4. Home sections --------------------------------------------------------- */

/* hero */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; color: #fff; background: #050810; }
.hero .bg, .cta .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 8, 16, .85) 0%, rgba(5, 8, 16, .2) 55%, rgba(5, 8, 16, .35) 100%); }
.hero .copy { position: absolute; z-index: 2; left: var(--g); right: var(--g); bottom: clamp(48px, 10vh, 110px); max-width: 760px; }
.hero p { margin-top: 18px; font-size: clamp(16px, 1.2vw, 18px); color: #d6dcea; max-width: 33em; }
h1 { font-size: clamp(42px, 4.6vw, 66px); line-height: 1.08; }
h1 .a { color: var(--ice); }
h1 .b { color: var(--mint); }

/* pinned statements */
.pin { position: relative; height: 420vh; background: var(--paper); }
.pin .stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
.pin .mark { position: absolute; top: 104px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 27px; letter-spacing: -.03em; }
.pin .mark img { width: 38px; height: auto; }
.lines { position: relative; width: min(900px, 90vw); height: 140px; }
.lines p {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-size: clamp(24px, 2.6vw, 36px); line-height: 1.25; letter-spacing: -.015em;
  opacity: 0; transform: translateY(14px); filter: blur(4px);
  transition: opacity .6s, transform .6s, filter .6s;
}
.lines p.on { opacity: 1; transform: none; filter: none; }
.dashes { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.dashes i { width: 26px; height: 2px; background: var(--rule); transition: background .3s; }
.dashes i.on { background: var(--blue); }

/* gradient column transitions between light and dark sections */
.cols { display: grid; grid-template-columns: repeat(5, 1fr); height: 110vh; }
.cols i { display: block; }
.cols.down i { background: linear-gradient(180deg, #fff 0%, #fff var(--s), #dbe7ff calc(var(--s) + 14%), #6f97ff calc(var(--s) + 34%), #2a4fd0 calc(var(--s) + 50%), #101a3c calc(var(--s) + 66%), var(--night) 100%); }
.cols.up i { background: linear-gradient(0deg, #fff 0%, #fff var(--s), #dbe7ff calc(var(--s) + 14%), #6f97ff calc(var(--s) + 34%), #2a4fd0 calc(var(--s) + 50%), #101a3c calc(var(--s) + 66%), var(--night) 100%); }

/* platform (dark) */
.dark { background: var(--night); color: var(--moon); }
.p-head { text-align: center; padding: 110px var(--g) 64px; }
.p-head h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.15; margin: 18px auto 0; max-width: 18em; }
.p-head h2 em { color: var(--blue); }
.p-head p { color: var(--moon-2); margin-top: 18px; font-size: 15px; }
.p-art { border-top: 1px solid var(--night-rule); border-bottom: 1px solid var(--night-rule); }
.p-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px clamp(24px, 3vw, 48px); border-bottom: 1px solid var(--night-rule); }
.p-row h3 { font-size: clamp(24px, 2.2vw, 32px); }
.p-row p { color: var(--moon-2); font-size: 14.5px; }

.tabs { display: grid; grid-template-columns: 340px 1fr; }
.tab-list { position: sticky; top: 120px; height: max-content; display: grid; gap: 4px; padding: 40px 0; }
.tab-list a { padding: 10px 28px; font-size: 18px; color: #5d6575; border-left: 2px solid transparent; transition: color .3s, border-color .3s; }
.tab-list a.on { color: var(--moon); border-color: var(--blue); }
.panels { border-left: 1px solid var(--night-rule); }
.panel { padding: 40px clamp(20px, 2.4vw, 32px) 48px; border-bottom: 1px solid var(--night-rule); }
.panel h4 { font-size: 19px; letter-spacing: -.01em; }
.panel p { color: var(--moon-2); font-size: 14px; margin: 10px 0 24px; max-width: 34em; }
.panel .shot { border: 1px solid var(--night-rule); background: var(--night-2); }

/* sectors + governed AI (light) */
.l-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; padding: 120px clamp(24px, 4vw, 64px) 64px; }
.l-top h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; }
.l-top h2 em { color: var(--blue-deep); }
.l-top p { color: var(--ink-2); font-size: 14.5px; }
.sectors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sectors span { border: 1px solid var(--rule); padding: 6px 10px; border-radius: 3px; color: var(--ink-2); }

.gov { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; padding: 24px clamp(24px, 4vw, 64px) 120px; }
.gov h3 { font-size: 20px; letter-spacing: -.01em; }
.gov p { color: var(--ink-2); font-size: 14px; margin-top: 12px; max-width: 30em; }
.gov ul { list-style: none; margin-top: 28px; border-top: 1px solid var(--rule); }
.gov li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.gov li b { color: var(--ink); font-weight: 400; }
.gov .card { border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px rgba(10, 15, 30, .18); }
.gov .card img { width: 100%; }

/* company */
.company { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.c-left { position: relative; }
.c-card { position: sticky; top: 100px; margin: 40px 0 40px -1px; padding: 36px clamp(20px, 2.4vw, 32px) 40px; background: var(--paper-2); }
.c-card .frame4 { inset: 0; }
.c-card h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; }
.c-card h2 em { display: block; color: var(--blue-deep); }
.c-card p { color: var(--ink-2); font-size: 14px; margin-top: 18px; max-width: 30em; }
.c-right { border-left: 1px solid var(--rule); }
.princ { padding: 40px clamp(20px, 2.4vw, 32px) 24px; border-bottom: 1px solid var(--rule); }
.princ h4 { font-size: 19px; letter-spacing: -.01em; }
.princ p { color: var(--ink-2); font-size: 14px; margin-top: 10px; max-width: 32em; }
.princ .scene { max-width: 595px; margin-top: 10px; }

/* careers card */
.cta-wrap { padding: 120px var(--g); }
.cta { position: relative; max-width: 1400px; height: min(600px, 80vh); margin: 0 auto; border-radius: 8px; overflow: hidden; color: #fff; background: #050810; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 8, 16, .75), transparent 60%); }
.cta .copy { position: absolute; z-index: 2; left: clamp(20px, 3vw, 40px); bottom: clamp(24px, 3vw, 40px); max-width: 520px; }
.cta h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; }
.cta p { margin-top: 14px; color: #d6dcea; font-size: 14.5px; }
.cta .btn { margin-top: 20px; }

/* 5. Footer ---------------------------------------------------------------- */
.site-footer { display: grid; grid-template-columns: 140px 1fr; min-height: 560px; border-top: 1px solid var(--rule); }
.f-strip { background: linear-gradient(180deg, #fff 0%, #dbe7ff 20%, #6f97ff 48%, #2a4fd0 66%, #0b1430 100%); }
.f-main { display: flex; flex-direction: column; padding: 48px clamp(20px, 3vw, 48px) 0; overflow: hidden; }
.f-grid { display: grid; grid-template-columns: 1.4fr .7fr 1fr 1.3fr; gap: 32px; }
.f-grid .tag { font-size: 22px; letter-spacing: -.015em; line-height: 1.2; max-width: 11em; }
.f-grid h5 { font-weight: 400; color: var(--ink-3); margin-bottom: 12px; }
.f-grid ul { list-style: none; display: grid; gap: 8px; font-size: 13.5px; }
.f-grid ul a:hover { color: var(--blue-deep); }
.clock { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-right: 14px; }
.f-small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: 40px; color: var(--ink-3); font-size: 12px; }
.wordmark { margin-top: auto; padding-top: 40px; font-weight: 600; font-size: clamp(110px, 20vw, 300px); line-height: .8; letter-spacing: -.03em; transform: translateY(8%); }

/* 6. Careers page ---------------------------------------------------------- */
.c-hero { position: relative; height: 86vh; min-height: 560px; overflow: hidden; color: #fff; background: #03060e; }
.c-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 6, 14, .85), rgba(3, 6, 14, .1) 60%); }
.c-hero .copy { position: absolute; z-index: 2; left: var(--g); right: var(--g); bottom: clamp(48px, 9vh, 96px); max-width: 720px; }
.c-hero h1 { font-size: clamp(40px, 4.6vw, 64px); }
.c-hero p { margin-top: 16px; color: #d6dcea; max-width: 34em; font-size: clamp(16px, 1.2vw, 18px); }
.c-hero .btn { margin-top: 24px; }

.c-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; padding: 110px clamp(24px, 4vw, 64px) 64px; }
.c-intro h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; }
.c-intro h2 em { color: var(--blue-deep); }
.c-intro p { color: var(--ink-2); font-size: 14.5px; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.how > div { padding: 40px clamp(20px, 2.4vw, 32px) 48px; border-right: 1px solid var(--rule); }
.how > div:last-child { border-right: 0; }
.how .n { color: var(--blue-deep); }
.how h3 { font-size: 20px; font-weight: 500; letter-spacing: -.01em; margin: 40px 0 10px; }
.how p { color: var(--ink-2); font-size: 14.5px; }

.roles { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; padding: 96px clamp(24px, 4vw, 64px) 110px; border-top: 1px solid var(--rule); }
.roles h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; }
.roles h2 em { display: block; color: var(--blue-deep); }
.empty { padding: 28px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-2); }
.empty b { font-weight: 500; font-size: 17px; }
.empty p { color: var(--ink-2); font-size: 14.5px; margin: 8px 0 20px; max-width: 34em; }

/* 7. Demo page ------------------------------------------------------------- */
.demo-page { background: var(--paper-2); }
.booking { min-height: 100vh; padding: 88px 16px 24px; }
.booking .calendly-inline-widget { width: 100%; min-width: 320px; height: calc(100vh - 112px); min-height: 640px; }

/* 8. Responsive ------------------------------------------------------------ */
@media (max-width: 960px) {
  .site-nav { grid-template-columns: 1fr auto; }
  .pill, .tab-list { display: none; }
  .p-row, .l-top, .gov, .company, .tabs, .c-intro, .roles, .how { grid-template-columns: 1fr; }
  .panels, .c-right { border-left: 0; }
  .c-card { position: relative; top: 0; margin: 0; }
  .how > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { grid-template-columns: 40px 1fr; }
  .cols { height: 70vh; }
}
@media (max-width: 560px) {
  .f-grid { grid-template-columns: 1fr; }
  .gov li { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lines p { transition: none; }
}
