/* ==========================================================
   Kannan — studio.board  (v12 · infinite canvas / whiteboard)
   Default (no JS, small screens, reduced motion) = list view.
   html.is-canvas switches on the pannable board.
   ========================================================== */

:root {
  --canvas: #f5f5f4;
  --dot: #d3d1cc;
  --ink: #1c1917;
  --ink-2: #57534e;
  --ink-3: #8a8580;
  --line: #e4e2df;
  --paper: #ffffff;
  --blue: #1f5cff;
  --blue-soft: #e6edff;
  --violet: #8b3dff;
  --green-ok: #16a34a;
  --red: #ef2b2b;

  --yellow: #ffe169;
  --pink: #ffb6d0;
  --skyblue: #b4d8ff;
  --mint: #bfeec7;

  --hand: "Caveat", "Comic Sans MS", cursive;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --panel-shadow: 0 0 0 1px rgba(28, 25, 23, .07), 0 6px 20px -6px rgba(28, 25, 23, .18);
  --note-shadow: 0 1px 1px rgba(60, 45, 0, .08), 0 14px 22px -14px rgba(60, 45, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--canvas);
  background-image: radial-gradient(circle, var(--dot) 1.1px, transparent 1.5px);
  background-size: 22px 22px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
kbd {
  font-family: var(--sans); font-size: .82em; font-weight: 600;
  display: inline-block; min-width: 1.6em; padding: 0 .4em; text-align: center;
  border: 1px solid rgba(28,25,23,.22); border-bottom-width: 2px; border-radius: 5px; background: rgba(255,255,255,.6);
}
.hand { font-family: var(--hand); font-weight: 700; letter-spacing: 0; line-height: 1.05; }
.muted { color: var(--ink-3); font-weight: 400; }
.sr, .sr-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 44px; padding: 0 18px; border-radius: 8px;
  font: 600 15px/1 var(--sans); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; border: 0; white-space: nowrap;
  transition: background-color .15s, box-shadow .15s, transform .15s;
}
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-blue:hover { background: #0f47e6; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #3a3532; }
.btn-ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--canvas); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 22px; font-size: 16px; }
.btn-xl { height: 68px; padding: 0 36px; font-size: 20px; border-radius: 12px; }
.btn:active { transform: translateY(1px); }

.link-btn { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  height: 60px; padding: 0 20px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.file { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.file-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink); color: var(--yellow); font: 800 16px/1 var(--sans);
}
.file-sep { color: var(--ink-3); }

.jump { position: relative; }
.jump-btn {
  display: none; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink);
  font: 500 14px/1 var(--sans); cursor: pointer;
}
.jump-btn:hover, .jump-btn[aria-expanded="true"] { background: #efeeec; }
.jump-list { display: flex; gap: 2px; }
.jump-list a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 7px; text-decoration: none; font-size: 14px; white-space: nowrap; }
.jump-list a:hover { background: #efeeec; }
.jump-list kbd { display: none; }

.js .jump-btn { display: inline-flex; }
.js .jump-list {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  flex-direction: column; padding: 6px; background: var(--paper); border-radius: 12px; box-shadow: var(--panel-shadow);
}
.js .jump-list.open { display: flex; }
.js .jump-list a { justify-content: space-between; flex-direction: row-reverse; padding: 9px 10px; }
.js .jump-list kbd { display: inline-block; color: var(--ink-3); border-color: var(--line); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-ok); box-shadow: 0 0 0 3px rgba(22,163,74,.18); display: inline-block; flex: none; }
.view-toggle {
  display: none; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  font: 500 14px/1 var(--sans); color: var(--ink); cursor: pointer;
}
.view-toggle:hover { border-color: #c9c6c2; }
.js .view-toggle { display: inline-flex; }
.view-toggle .ico-board { display: none; }
.is-list .view-toggle .ico-list { display: none; }
.is-list .view-toggle .ico-board { display: inline; }

@media (max-width: 1100px) { .status { display: none; } }
@media (max-width: 1000px) { html:not(.js) .jump-list { display: none; } }
@media (max-width: 819px) {
  .js .view-toggle { display: none; }
  .file-name { font-size: 13.5px; }
  .topbar { padding: 0 14px; gap: 6px; }
  .jump-btn .jump-label { display: none; }
}
@media (max-width: 540px) {
  .fn-tail { display: none; }
  .jump-btn { padding: 0 8px; }
}

/* ==========================================================
   LIST VIEW (default)
   ========================================================== */
.viewport { position: relative; }
.board {
  position: relative;
  max-width: 1120px; margin: 0 auto;
  padding: 72px 20px 40px;
  display: flex; flex-direction: column; gap: 92px;
}
.wires, .canvas-only { display: none; }

.frame {
  position: relative;
  container-type: inline-size;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(22px, 4.5vw, 52px);
  box-shadow: 0 1px 2px rgba(28,25,23,.04);
}
.frame-label {
  position: absolute; left: -1px; bottom: calc(100% + 8px);
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--ink-3); white-space: nowrap;
}
.fl-ico { font-weight: 600; color: #b2aea9; }
.frame.is-selected { outline: 2px solid var(--blue); outline-offset: -1px; }
.frame.is-selected > .frame-label { color: var(--blue); }
.frame.is-selected > .frame-label .fl-ico { color: var(--blue); }
.frame:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; border-radius: 0; }

.frame-head { margin-bottom: 30px; max-width: 62ch; }
.frame h2 { font-size: clamp(30px, 5.4cqi, 46px); font-weight: 800; letter-spacing: -.035em; }
.lede { margin-top: 12px; color: var(--ink-2); font-size: 18px; }

/* ---------- Hero ---------- */
.frame-hero { padding-top: clamp(30px, 6vw, 64px); padding-bottom: clamp(30px, 6vw, 60px); }
.hero-who { font-weight: 600; font-size: 16px; display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 34px; }
.sel { position: relative; display: inline-block; margin: 0 0 40px; }
.sel::before {
  content: ""; position: absolute; inset: -10px -12px; border: 1.5px solid var(--blue); pointer-events: none;
}
.h { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--blue); }
.h-tl { left: -16px; top: -14px; } .h-tr { right: -16px; top: -14px; }
.h-bl { left: -16px; bottom: -14px; } .h-br { right: -16px; bottom: -14px; }
.sel-tag {
  position: absolute; left: 50%; top: calc(100% + 16px); transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 7px; border-radius: 4px; white-space: nowrap;
}
.frame-hero h1 {
  font-size: clamp(38px, 8.2cqi, 80px);
  font-weight: 800; letter-spacing: -.045em; line-height: .98;
  max-width: 13ch;
  font-variation-settings: "opsz" 32;
}
.hero-intro { font-size: clamp(17px, 2.1cqi, 20px); color: var(--ink-2); max-width: 54ch; line-height: 1.5; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-foot { margin-top: 30px; display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- Notes / stickies ---------- */
.sticky, .note {
  position: relative;
  padding: 22px 22px 26px;
  box-shadow: var(--note-shadow);
  transform: rotate(var(--rot, 0deg));
  background-image: linear-gradient(to bottom, rgba(0,0,0,.035), rgba(0,0,0,0) 22px);
}
.s-yellow, .note-yellow { background-color: var(--yellow); }
.s-pink, .note-pink { background-color: var(--pink); }
.s-blue, .note-blue { background-color: var(--skyblue); }
.s-green, .note-green { background-color: var(--mint); }
.sticky h3.hand { font-size: 34px; margin-bottom: 10px; letter-spacing: -.005em; }
.sticky p { font-size: 15.5px; line-height: 1.5; color: rgba(28,25,23,.86); }

.note { max-width: 240px; padding: 16px 18px 18px; transform: rotate(var(--r, 0deg)); margin-top: 26px; }
.note .hand { font-size: 25px; line-height: 1.05; }

.stickies { display: grid; gap: 26px; grid-template-columns: 1fr; }
@container (min-width: 520px) { .stickies { grid-template-columns: 1fr 1fr; } }
@container (min-width: 900px) { .stickies { grid-template-columns: repeat(3, 1fr); gap: 30px 30px; } }

/* ---------- Proof stickers ---------- */
.stickers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sticker {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 20px 22px; border-radius: 22px;
  border: 5px solid #fff;
  box-shadow: 0 0 0 1px rgba(28,25,23,.08), 0 12px 20px -12px rgba(28,25,23,.45);
  transform: rotate(var(--rot, 0deg));
}
.sticker strong { font-size: clamp(46px, 11cqi, 78px); font-weight: 800; letter-spacing: -.055em; line-height: .9; }
.sticker span { font-size: 15px; font-weight: 500; line-height: 1.3; }
.k-yellow { background: var(--yellow); } .k-green { background: var(--mint); }
.k-blue { background: var(--skyblue); } .k-pink { background: var(--pink); }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.platforms li, .tags li {
  font-size: 13.5px; font-weight: 500; padding: 5px 11px; border-radius: 999px;
  background: #f1f0ee; border: 1px solid var(--line);
}

/* ---------- Projects ---------- */
.proj-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 12px; }
.proj-icon { width: 36px; height: 36px; border-radius: 9px; }
.proj-tag { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-top: 10px; line-height: 1.35; }
.proj-text > p:not(.proj-meta):not(.proj-tag) { margin-top: 14px; color: var(--ink-2); }
.proj-media { margin: 0; }
.proj-media img { width: 100%; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.proj-media figcaption { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.proj-media.small { margin-bottom: 22px; }
.built { margin-top: 18px; display: grid; gap: 7px; font-size: 15px; }
.built li { position: relative; padding-left: 20px; }
.built li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 9px; height: 9px; border: 2px solid var(--ink); border-radius: 2px; }
.proj-text .btn { margin-top: 24px; }

.proj-grid { display: grid; gap: 30px; }
@container (min-width: 760px) { .proj-grid { grid-template-columns: 1.12fr 1fr; gap: 44px; align-items: start; } }
.frame-clutchat h2 { margin-top: 2px; }
.quote-sticky {
  margin: 30px 0 0; max-width: 440px; padding: 20px 24px 22px;
  background: #1b1512; color: #ff8a3d;
  transform: rotate(-1.5deg); box-shadow: var(--note-shadow);
}
.quote-sticky .hand { font-size: 36px; }
.quote-sticky span { display: block; margin-top: 6px; font-size: 12.5px; color: #b3a69c; }

.omega-grid { display: grid; gap: 34px; }
@container (min-width: 900px) { .omega-grid { grid-template-columns: 340px 1fr; gap: 40px; } }
.is-canvas .omega-grid { grid-template-columns: 430px 1fr; gap: 48px; }
.artboards { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 30px 22px; align-self: start; padding-top: 22px; }
.artboard { position: relative; }
.ab-label { position: absolute; bottom: calc(100% + 6px); left: 0; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.artboard img { width: 100%; background: #111; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 18px 30px -18px rgba(0,0,0,.5); }

/* OMEGA Live */
.live-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--red); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; padding: 4px 10px 4px 9px; border-radius: 5px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.live-desc { margin-top: 14px; color: var(--ink-2); max-width: 64ch; }
.pipeline { margin: 30px 0 24px; padding: 18px; background: #faf9f7; border: 1px dashed #d6d3cf; border-radius: 10px; }
.pipeline svg { width: 100%; height: auto; display: block; overflow: visible; }
.pipe-paths path { stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 9 8; animation: dash .9s linear infinite; marker-end: url(#pipe-arrow); }
@keyframes dash { to { stroke-dashoffset: -17; } }
.pipe-nodes rect { stroke: var(--ink); stroke-width: 2; }
.pipe-nodes text { font: 700 19px var(--sans); text-anchor: middle; fill: var(--ink); letter-spacing: -.01em; }
.pipe-nodes text.sub { font-size: 13px; font-weight: 500; fill: var(--ink-2); }
.n-y { fill: var(--yellow); } .n-b { fill: var(--skyblue); } .n-g { fill: var(--mint); } .n-p { fill: var(--pink); } .n-r { fill: #fff; }
.rec { fill: var(--red); animation: pulse 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pipeline figcaption { margin-top: 14px; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.pipeline code { font-family: var(--sans); font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.paused .pipe-paths path, .paused .live-dot, .paused .rec { animation-play-state: paused; }


/* Process */
.flow { display: grid; gap: 54px; counter-reset: s; }
@container (min-width: 900px) { .flow { grid-template-columns: repeat(4, 1fr); gap: 64px; align-items: center; } }
.shape {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 210px; padding: 26px 26px; border: 2px solid var(--ink);
}
.shape h3 { font-size: 23px; font-weight: 800; margin: 6px 0 8px; }
.shape p { font-size: 14.5px; line-height: 1.45; color: rgba(28,25,23,.8); max-width: 26ch; }
.step { font-size: 12px; font-weight: 700; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; }
.sh-ellipse { border-radius: 50%; background: var(--skyblue); padding: 30px 34px; }
.sh-rect { background: var(--yellow); }
.sh-round { border-radius: 28px; background: var(--mint); }
.sh-pill { border-radius: 999px; background: var(--pink); padding: 26px 34px; }
.shape:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; top: calc(100% + 8px); width: 14px; height: 40px; margin-left: -7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 40'%3E%3Cpath d='M7 0v37M1.5 31.5 7 38l5.5-6.5' fill='none' stroke='%231c1917' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
@container (min-width: 900px) {
  .shape:not(:last-child)::after {
    left: calc(100% + 8px); top: 50%; width: 48px; height: 14px; margin: -7px 0 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 14'%3E%3Cpath d='M0 7h45M39.5 1.5 46 7l-6.5 5.5' fill='none' stroke='%231c1917' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

/* Stack / component library */
.frame-stack h2 { font-size: 28px; margin-bottom: 24px; }
.lib { display: flex; flex-wrap: wrap; gap: 26px 40px; }
.lib-group h3 { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-bottom: 10px; }
.lib-group ul { display: flex; flex-wrap: wrap; gap: 8px; }
.lib-group li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 600; color: #5b21b6;
  padding: 6px 12px 6px 10px; border-radius: 6px; background: #f6f0ff; border: 1px solid #e3d3ff;
}
.lib-group li::before {
  content: ""; width: 11px; height: 11px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 .8 8 2.8 6 4.8 4 2.8zM9.2 4 11.2 6 9.2 8 7.2 6zM2.8 4 4.8 6 2.8 8 .8 6zM6 7.2 8 9.2 6 11.2 4 9.2z' fill='%238b3dff'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Contact frame */
.frame-contact h2 { font-size: clamp(36px, 7cqi, 64px); max-width: 12ch; }
.frame-contact .lede { max-width: 52ch; margin-bottom: 30px; }
.contact-row { display: grid; gap: 26px; margin-top: 44px; }
@container (min-width: 640px) { .contact-row { grid-template-columns: 1fr 1fr; } }
.c-note .hand { font-size: 30px; margin-bottom: 8px; }
.c-note a { font-weight: 600; font-size: 15.5px; overflow-wrap: anywhere; }
.c-note p:not(.hand) { margin-bottom: 8px; }
.email-link { display: block; font-size: 17px !important; }
.copy-btn {
  margin-top: 12px; height: 34px; padding: 0 12px; border: 0; border-radius: 7px;
  background: var(--ink); color: #fff; font: 600 13.5px/1 var(--sans); cursor: pointer;
}
.copy-btn:hover { background: #3a3532; }

.site-foot { max-width: 1120px; margin: 0 auto; padding: 10px 20px 60px; font-size: 14.5px; color: var(--ink-2); }

/* ==========================================================
   CANVAS VIEW
   ========================================================== */
html.is-canvas, html.is-canvas body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.is-canvas body { background: var(--canvas); }
.is-canvas .site-foot { display: none; }
.is-canvas .canvas-only { display: revert; }
.is-canvas .list-only { display: none; }

.is-canvas .viewport {
  position: fixed; inset: 0; overflow: hidden;
  touch-action: none; cursor: grab;
  background-color: var(--canvas);
  background-image: radial-gradient(circle, var(--dot) 1.1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-user-select: none; user-select: none;
}
.is-canvas .viewport.panning { cursor: grabbing; }
.is-canvas .viewport.panning * { cursor: grabbing !important; }
.is-canvas .viewport.select-mode { cursor: default; -webkit-user-select: text; user-select: text; }
.is-canvas .board {
  position: absolute; left: 0; top: 0;
  width: 4240px; height: 2940px; max-width: none; margin: 0; padding: 0;
  display: block;
  transform-origin: 0 0; will-change: transform;
}
.is-canvas .board img { -webkit-user-drag: none; user-select: none; }
.is-canvas .wires { display: block; position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 2; }
.wires path { fill: none; stroke: #44403c; stroke-width: 2.2; stroke-linecap: round; }
.wires path.dashed { stroke-dasharray: 2 7; }

.is-canvas .frame {
  position: absolute;
  left: calc(var(--x) * 1px); top: calc(var(--y) * 1px);
  width: calc(var(--w) * 1px); height: calc(var(--h) * 1px);
  padding: 52px;
}
.is-canvas .frame-label { font-size: 15px; bottom: calc(100% + 9px); }
.is-canvas .float { position: absolute; left: calc(var(--nx) * 1px); top: calc(var(--ny) * 1px); margin: 0; z-index: 3; width: 240px; }
.is-canvas .frame-services .stickies { grid-template-columns: repeat(3, 1fr); gap: 34px 34px; }
.is-canvas .frame-services .sticky { grid-row: var(--r); grid-column: var(--c); min-height: 222px; }
.is-canvas .frame-proof .stickers { gap: 26px; }
.is-canvas .frame-proof .sticker { min-height: 170px; justify-content: flex-end; }
.is-canvas .frame-hero h1 { font-size: 80px; }
.is-canvas .frame-hero { padding: 64px; }
.is-canvas .frame-omega .artboards { grid-template-columns: repeat(5, 1fr); }
.is-canvas .frame-contact .btn-xl { height: 76px; font-size: 22px; padding: 0 44px; }

/* readme frame */
.frame-readme { background: transparent !important; border: 1.5px dashed #c9c6c2 !important; box-shadow: none !important; }
.readme-title { font-size: 46px; font-weight: 700; margin-bottom: 30px; letter-spacing: 0; }
.readme-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 34px; }
.readme-notes .sticky { min-height: 150px; }
.readme-notes .sticky p { font-size: 16.5px; }

/* pop in as frames first come into view */
.is-canvas.anim .frame { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .55s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.is-canvas.anim .frame.seen { opacity: 1; transform: none; }

/* floating UI */
.is-canvas .topbar {
  position: fixed; left: 12px; right: 12px; top: 12px; height: auto; padding: 0;
  background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  pointer-events: none;
}
.is-canvas .topbar > * { pointer-events: auto; }
.is-canvas .file, .is-canvas .jump, .is-canvas .topbar-right {
  background: var(--paper); border-radius: 12px; box-shadow: var(--panel-shadow); height: 48px; padding: 0 8px;
  display: flex; align-items: center;
}
.is-canvas .file { padding: 0 14px 0 9px; }
.is-canvas .topbar-right { padding: 0 7px 0 14px; }
.is-canvas .view-toggle { border-color: transparent; background: #f2f1ef; }

.toolbar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40;
  align-items: center; gap: 2px; padding: 6px;
  background: var(--paper); border-radius: 14px; box-shadow: var(--panel-shadow);
}
.is-canvas .toolbar { display: flex; }
.tb {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink); cursor: pointer; font: 600 14px/1 var(--sans);
}
.tb:hover { background: #f0efed; }
.tb[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue); }
.tb-tour { background: var(--ink); color: #fff; padding: 0 16px 0 14px; margin-left: 2px; }
.tb-tour:hover { background: #3a3532; }
.tb-tour[aria-pressed="true"] { background: var(--blue); color: #fff; }
.tb-tour .i-pause, .tb-tour[aria-pressed="true"] .i-play { display: none; }
.tb-tour[aria-pressed="true"] .i-pause { display: inline; }
.tb-sep { width: 1px; height: 24px; background: var(--line); margin: 0 5px; }
.zoom-pct { min-width: 54px; text-align: center; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }

.minimap {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 188px; padding: 8px;
  background: var(--paper); border-radius: 12px; box-shadow: var(--panel-shadow); cursor: pointer;
}
.is-canvas .minimap { display: block; }
.mm-inner { position: relative; background: #f3f2f0; border-radius: 4px; overflow: hidden; }
.mm-frame { position: absolute; background: #fff; box-shadow: 0 0 0 1px #d8d5d1; }
.mm-frame.mm-y { background: var(--yellow); } .mm-frame.mm-dash { background: none; box-shadow: 0 0 0 1px dashed #ccc; outline: 1px dashed #c9c6c2; }
.mm-view { position: absolute; border: 1.5px solid var(--blue); background: rgba(31,92,255,.07); border-radius: 2px; }

.caption {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 8px); z-index: 41;
  max-width: min(640px, calc(100vw - 40px)); padding: 12px 18px;
  background: var(--ink); color: #fff; border-radius: 12px; font-size: 15px; line-height: 1.4;
  opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
}
.caption b { color: var(--yellow); font-weight: 700; margin-right: 6px; }
.caption .cap-n { color: #a8a29e; font-variant-numeric: tabular-nums; margin-right: 10px; font-size: 13px; }
.caption.show { opacity: 1; transform: translate(-50%, 0); }

.you {
  position: fixed; left: 0; top: 0; z-index: 39; pointer-events: none;
  opacity: 0; transition: opacity .2s; will-change: transform;
}
.you.show { opacity: 1; }
.you svg { display: block; }
.you span {
  position: absolute; left: 15px; top: 16px;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px 3px; border-radius: 999px 999px 999px 4px;
}
@media (pointer: coarse) { .you { display: none !important; } }

.toast {
  position: fixed; left: 50%; top: 76px; transform: translate(-50%, -12px); z-index: 60;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- small screens ---------- */
@media (max-width: 819px) {
  .board { padding: 60px 14px 30px; gap: 72px; }
  .frame h2 { font-size: 32px; }
  .sticky h3.hand { font-size: 31px; }
  .stickers { gap: 16px; }
  .sticker { padding: 16px 14px; }
  .note { max-width: 100%; }
  .btn-xl { height: 58px; padding: 0 26px; font-size: 18px; width: 100%; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .h-tl, .h-bl { left: -12px; } .h-tr, .h-br { right: -12px; }
  .sel::before { inset: -8px -8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* wire labels + fade */
.wire-label { font: 700 27px var(--hand); fill: var(--ink-2); }
.is-canvas.anim .wires { opacity: 0; animation: wiresIn .7s ease 1.1s forwards; }
@keyframes wiresIn { to { opacity: 1; } }

/* ==========================================================
   CONTACT PAGE
   ========================================================== */
.c-main { max-width: 1180px; margin: 0 auto; padding: 76px 20px 40px; }
.c-frame {
  position: relative; container-type: inline-size;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(28,25,23,.04);
  padding: clamp(18px, 3.5vw, 40px);
}
.c-grid { display: grid; gap: 40px; }
@container (min-width: 860px) { .c-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }

/* properties panel */
.panel { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 30px -18px rgba(28,25,23,.35); transition: opacity .4s, filter .4s; }
.panel-head { padding: 26px 26px 22px; border-bottom: 1px solid var(--line); }
.panel-head h1 { font-size: clamp(34px, 5cqi, 48px); font-weight: 800; letter-spacing: -.04em; }
.panel-head p { margin-top: 10px; color: var(--ink-2); max-width: 54ch; }
.psec { border: 0; margin: 0; padding: 20px 26px 22px; border-bottom: 1px solid var(--line); min-width: 0; }
.psec-title { padding: 0; float: left; width: 100%; margin-bottom: 14px; font-size: 13px; font-weight: 700; color: var(--ink); }
.psec-title + * { clear: both; }
.opt { font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.prow { display: grid; gap: 14px; }
.prow + .prow { margin-top: 14px; }
@container (min-width: 560px) { .prow.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: 500 15px/1.4 var(--sans); color: var(--ink);
  background: #f3f2f0; border: 1px solid transparent; border-radius: 7px;
  padding: 9px 11px; min-height: 40px; transition: border-color .12s, box-shadow .12s, background .12s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #d9d6d2; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,92,255,.18); }
.field [aria-invalid="true"] { border-color: var(--red); background: #fff6f6; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; }
.select-wrap::after { content: ""; position: absolute; right: 13px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--ink-2); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); pointer-events: none; }
.err { font-size: 13px; font-weight: 600; color: #c81e1e; margin-top: 6px; }
.err:empty { display: none; }
.hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: 999px; background: #f3f2f0; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background .12s, color .12s, border-color .12s;
}
.pill:hover span { border-color: #d9d6d2; }
.pill input:checked + span { background: var(--blue); color: #fff; }
.pill input[type="checkbox"]:checked + span::before { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-1px); }
.pill input:focus-visible + span { outline: 2.5px solid var(--blue); outline-offset: 2px; }
.psec.invalid .pill span { border-color: rgba(239,43,43,.5); }

.psubmit { padding: 22px 26px 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.psubmit .hint { margin: 0; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* side notes */
.side { display: grid; gap: 30px; align-content: start; padding-top: 8px; }
.side-note .hand { font-size: 29px; margin-bottom: 8px; line-height: 1; }
.side-note p:not(.hand) { font-size: 15px; margin-top: 6px; }
.side-note a { font-weight: 600; overflow-wrap: anywhere; }
.clock { font-size: 40px !important; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; margin: 4px 0 10px !important; }
.clock small { font-size: 15px; font-weight: 600; letter-spacing: 0; margin-left: 6px; color: var(--ink-2); }

/* success: a sticky note drops onto the board */
.drop-zone { position: absolute; inset: 0; pointer-events: none; display: grid; justify-items: center; align-items: start; padding: 150px 16px 20px; z-index: 5; }
.drop-zone:empty { display: none; }
.received { position: relative;
  pointer-events: auto; width: min(400px, 100%); padding: 30px 30px 30px;
  background-color: var(--yellow); box-shadow: 0 2px 2px rgba(60,45,0,.1), 0 40px 60px -26px rgba(60,45,0,.55);
  background-image: linear-gradient(to bottom, rgba(0,0,0,.04), transparent 24px);
  transform: rotate(-2.5deg);
  animation: drop .9s cubic-bezier(.3,.7,.3,1) both;
}
.received .hand { font-size: 46px; margin-bottom: 12px; }
.received p:not(.hand) { font-size: 15.5px; margin-top: 8px; }
.received .btn { margin-top: 18px; }
.received::before { content: ""; position: absolute; left: 50%; top: -12px; width: 96px; height: 26px; margin-left: -48px; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.04); transform: rotate(2deg); }
@keyframes drop {
  0% { transform: translateY(-110vh) rotate(-16deg); }
  62% { transform: translateY(14px) rotate(1.5deg); }
  80% { transform: translateY(-6px) rotate(-3.5deg); }
  100% { transform: translateY(0) rotate(-2.5deg); }
}
.c-frame.sent .panel { opacity: .28; filter: grayscale(.4); pointer-events: none; }

.faq { margin-top: 90px; }
.faq h2 { font-size: clamp(38px, 6vw, 52px); margin-bottom: 30px; }
.faq-grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .faq-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .faq-grid { grid-template-columns: repeat(4, 1fr); } }
.faq .sticky h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; line-height: 1.2; }
.page-contact .site-foot { padding-top: 60px; }
@media (max-width: 819px) {
  .c-main { padding: 60px 14px 30px; }
  .psec, .panel-head, .psubmit { padding-left: 18px; padding-right: 18px; }
  .psubmit .btn { width: 100%; }
}

/* small feature stickies (Clutchat, OMEGA) */
.feature-notes { display: flex; flex-wrap: wrap; gap: 12px 10px; margin-top: 26px; }
.feature-notes li {
  font-size: 14px; font-weight: 600; padding: 9px 13px 10px; line-height: 1.2;
  box-shadow: 0 1px 1px rgba(60,45,0,.08), 0 8px 12px -9px rgba(60,45,0,.45);
}
.feature-notes li:nth-child(odd) { transform: rotate(-1.4deg); }
.feature-notes li:nth-child(even) { transform: rotate(1.2deg); }
.fn-y { background: var(--yellow); } .fn-b { background: var(--skyblue); } .fn-g { background: var(--mint); } .fn-p { background: var(--pink); }
.omega-features { margin-top: 34px; }
.omega-right { min-width: 0; }
.sticky .hand, .note .hand { line-height: 1.05; }

/* contact form spam trap: hidden from people, visible to naive bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
