/* Tunalo Works. The parent site's visual language (TunaloSite/styles.css): warm near-black "darkroom" ground, cream ink,
   film grain, Comfortaa headings over Inter. Here blue is the only accent, since the whole page is Works.
   Contrast: #5aa2ff is 7.4:1 on the ground and 6.4:1 on --panel-2; white on #1d4ed8 is 6.7:1, on #1e40af 8.7:1;
   the script paper's ink #2a221c on #efe6d8 is 13:1. */
:root {
  color-scheme: dark;
  --ground: #110e0c; --ground-2: #16120f; --panel: #1b1714; --panel-2: #221d19; --line: #2f2823;
  --ink: #f4ede3; --ink-dim: #c2b6a6; --ink-faint: #918676;
  --accent: #5aa2ff; --accent-deep: #1d4ed8; --accent-hover: #1e40af; --accent-soft: #d3e5ff; --accent-rgb: 90 162 255; --on-accent: #fff;
  --frame-back: #4d6890; --beam: 255 224 186;
  --paper: #efe6d8; --paper-ink: #2a221c; --paper-faint: #7a6b5c;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; }
body::after { content: ""; position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: .07; 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
html { scroll-behavior: smooth; }
body { background: var(--ground); color: var(--ink); font: 400 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { text-wrap: balance; }
h1, h2, h3, .word { font-family: "Comfortaa", "Inter", sans-serif; font-weight: 700; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
a { color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 40; padding: 10px 14px; border-radius: 8px; background: var(--accent-deep); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── lockup: the mark, then "tunalo | works" ── */
.lockup { display: inline-flex; align-items: center; gap: .55em; text-decoration: none; }
.lockup svg { width: 1.6em; height: 1.6em; flex: none; filter: drop-shadow(0 6px 18px rgb(var(--accent-rgb) / .4)); }
.word { display: inline-flex; align-items: center; gap: .35em; line-height: 1; color: var(--ink); }
.word i { width: 2px; height: .95em; background: var(--accent); border-radius: 1px; opacity: .8; }

/* ── top bar ── */
.topbar { position: fixed; inset: 0 0 auto; z-index: 10; background: rgba(17, 14, 12, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(47, 40, 35, .7); }
.topbar .wrap { max-width: 1840px; padding-inline: clamp(16px, 3vw, 64px); display: flex; align-items: center; gap: 24px; height: 60px; }
.topbar .home { display: flex; text-decoration: none; border-radius: 8px; }
.topbar .lockup { font-size: 19px; }
.topbar nav.inline { display: flex; gap: 4px; margin-left: auto; }
.topbar nav.inline a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-dim); text-decoration: none; white-space: nowrap; }
.topbar nav.inline a:hover { color: var(--ink); background: rgb(var(--accent-rgb) / .1); }
.topbar .go { padding: 9px 16px; font-size: 14px; flex: none; }
.topbar .menu { display: none; }
@media (max-width: 860px) {
  .topbar .wrap { height: 56px; gap: 8px; }
  .topbar nav.inline { display: none; }
  .topbar .go { margin-left: auto; padding: 8px 14px; }
  .topbar .menu { display: block; }
  .topbar .menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border-radius: 10px;
    color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .topbar .menu summary::-webkit-details-marker { display: none; }
  .topbar .menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .topbar .menu summary svg { width: 24px; height: 24px; }
  .topbar .menu .shut { display: none; }
  .topbar .menu[open] .shut { display: block; }
  .topbar .menu[open] .burger { display: none; }
  .topbar .menu[open] summary { background: rgb(var(--accent-rgb) / .14); }
  .topbar .sheet { position: fixed; top: 56px; left: 0; right: 0; display: flex; flex-direction: column; padding: 8px 12px 16px;
    background: rgba(17, 14, 12, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(47, 40, 35, .7); box-shadow: 0 24px 48px rgba(0, 0, 0, .5); max-height: calc(100svh - 56px); overflow-y: auto; }
  .topbar .sheet a { display: flex; align-items: center; padding: 14px 12px; border-radius: 10px; font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none; }
  .topbar .sheet a:active, .topbar .sheet a:hover { background: rgb(var(--accent-rgb) / .12); }
  .topbar .sheet .out { color: var(--accent); }
  .topbar .sheet hr { border: 0; border-top: 1px solid rgba(47, 40, 35, .9); margin: 8px 12px; }
}
@media (max-width: 360px) { .topbar .lockup { font-size: 16px; } .topbar .go { padding: 8px 10px; font-size: 13px; } }
section[id] { scroll-margin-top: 72px; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; border-radius: 10px;
  font: 600 15px/1 "Inter", sans-serif; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent-deep); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--ink); border-color: #4a3f36; background: rgb(255 255 255 / .02); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-ghost svg { color: var(--accent); }
.btn-lg { padding: 15px 24px; font-size: 16px; }

/* ── hero: the line on the left, the finished frame stacked on a frame behind it (the mark, drawn large) ── */
.hero { position: relative; padding: calc(60px + clamp(40px, 7vh, 88px)) 0 clamp(56px, 8vw, 104px); isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    conic-gradient(from 180deg at 72% -20%, transparent 160deg, rgb(var(--beam) / .06) 170deg, rgb(var(--beam) / .13) 180deg, rgb(var(--beam) / .06) 190deg, transparent 200deg),
    radial-gradient(40% 50% at 72% 10%, rgb(var(--accent-rgb) / .10), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.07; margin-bottom: 22px; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-dim); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink); font-size: 14.5px; font-weight: 500; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg, .ticks svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.hero-media { position: relative; }
.stack { position: relative; margin: 22px 22px 0 0; }
.stack::before { content: ""; position: absolute; inset: -22px -22px 22px 22px; border-radius: 18px; background: var(--frame-back); opacity: .55; z-index: -1; }
.stack video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; border: 2px solid var(--accent); background: #000;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 6px var(--ground); }
.badge { position: absolute; left: -14px; bottom: -14px; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent); color: #1f1a16; box-shadow: 0 0 0 6px var(--ground); }
.badge svg { width: 28px; height: 28px; }
.hero-media figcaption { margin-top: 22px; padding-left: 52px; font-size: 13px; color: var(--ink-faint); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { max-width: 680px; }
}
@media (max-width: 520px) {
  .stack { margin: 14px 14px 0 0; }
  .stack::before { inset: -14px -14px 14px 14px; border-radius: 14px; }
  .badge { left: -8px; bottom: -10px; width: 42px; height: 42px; border-radius: 12px; }
  .badge svg { width: 22px; height: 22px; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ── sections ── */
section.band { padding: clamp(64px, 9vw, 112px) 0; }
.band.alt { background: linear-gradient(180deg, var(--ground), var(--ground-2) 25%, var(--ground-2) 75%, var(--ground)); }
.head { max-width: 680px; margin: 0 0 clamp(32px, 4vw, 48px); }
.head h2, .problem h2, .get h2, .contact h2 { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.12; margin-bottom: 14px; }
.head p { color: var(--ink-dim); font-size: 17px; }

/* ── problem: a plain ruled list, then the answer ── */
.band.problem { padding-top: clamp(24px, 4vw, 48px); }
.pains { list-style: none; padding: 0; margin: 28px 0; border-top: 1px solid var(--line); }
.pains li { padding: 16px 0 16px 28px; border-bottom: 1px solid var(--line); color: var(--ink-dim); font-size: 17px; position: relative; }
.pains li::before { content: ""; position: absolute; left: 4px; top: 27px; width: 10px; height: 2px; background: var(--ink-faint); }
.answer { font-size: clamp(18px, 1.8vw, 21px); color: var(--ink); max-width: 34em; }

/* ── examples ── */
.examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 900px) { .examples { grid-template-columns: minmax(0, 1fr); } }
.example { display: flex; flex-direction: column; gap: 18px; }
.sample { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.sample video, .sample img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.example h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; margin-bottom: 6px; }
.example p { color: var(--ink-dim); font-size: 15.5px; }
.stills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stills img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.looks { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--line); }
.looks-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 32px; align-items: baseline; margin-bottom: 20px; }
.looks-head h3 { font-size: 22px; }
.looks-head p { color: var(--ink-dim); }
@media (max-width: 760px) { .looks-head { grid-template-columns: minmax(0, 1fr); } }
.looks-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .looks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.looks-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.looks-grid figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-dim); }

/* ── use cases: a ruled list, not cards ── */
.uses { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 40px); }
@media (max-width: 900px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .uses { grid-template-columns: minmax(0, 1fr); } }
.uses li { padding: 22px 0 26px; border-top: 2px solid var(--line); }
.uses li:nth-child(-n+3) { border-top-color: rgb(var(--accent-rgb) / .55); }
@media (max-width: 900px) { .uses li:nth-child(3) { border-top-color: var(--line); } .uses li:nth-child(-n+2) { border-top-color: rgb(var(--accent-rgb) / .55); } }
@media (max-width: 560px) { .uses li:nth-child(2) { border-top-color: var(--line); } }
.uses h3 { font-size: 19px; margin-bottom: 6px; }
.uses p { color: var(--ink-dim); font-size: 15.5px; }

/* ── how it works: each step beside the real thing you'd see at that step ── */
.flow { list-style: none; padding: 0; display: grid; gap: clamp(40px, 6vw, 72px); counter-reset: none; }
.step { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .step { grid-template-columns: minmax(0, 1fr); } }
.step-copy { position: relative; padding-left: 60px; max-width: 30em; }
.step .num { position: absolute; left: 0; top: -2px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgb(var(--accent-rgb) / .16); color: var(--accent); font: 700 18px/1 "Comfortaa", sans-serif; }
.step h3 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.2; margin: 6px 0 8px; }
.step-copy p { color: var(--ink-dim); font-size: 16.5px; }
.inputs { list-style: none; padding: clamp(18px, 3vw, 28px); display: flex; flex-wrap: wrap; gap: 10px; border-radius: var(--radius); border: 1px dashed #4a3f36; background: var(--panel); }
.inputs li { padding: 9px 14px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; }
.inputs li:last-child { border-color: rgb(var(--accent-rgb) / .5); color: var(--accent-soft); }

.stamp { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--accent-deep); color: #fff;
  font: 600 14px/1 "Inter", sans-serif; box-shadow: 0 10px 24px -10px rgb(var(--accent-rgb) / .7); }
.stamp svg { width: 16px; height: 16px; }

.paper { margin: 0; }
.paper-page { position: relative; padding: clamp(22px, 3.4vw, 36px) clamp(18px, 3vw, 32px) 64px; border-radius: 6px; background: var(--paper); color: var(--paper-ink);
  font: 400 15.5px/1.65 "Courier Prime", "Courier New", monospace; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); transform: rotate(-.6deg); }
.paper-page p { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; margin-bottom: 14px; }
.paper-page .sn { color: var(--paper-faint); }
.paper-page .stamp { position: absolute; right: 18px; bottom: 18px; transform: rotate(-2deg); }
.paper figcaption, .board figcaption, .step .sample figcaption { margin-top: 14px; font-size: 13px; color: var(--ink-faint); }

.board { position: relative; padding: clamp(14px, 2vw, 20px) clamp(14px, 2vw, 20px) 66px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cell img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.cell .shot { display: block; margin: 8px 0 2px; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.cell p { font-size: 13.5px; line-height: 1.45; color: var(--ink-dim); }
.board .stamp { position: absolute; right: 18px; bottom: 16px; }
@media (max-width: 420px) { .cell p { font-size: 12.5px; } }

.step .sample.still { overflow: visible; background: none; border: 0; box-shadow: none; }
.step .sample.still img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }

/* ── what you get ── */
.get { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .get { grid-template-columns: minmax(0, 1fr); } }
.ticks { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 10px; }
.ticks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; font-size: 16.5px; color: var(--ink-dim); }
.ticks svg { margin-top: 4px; }
.ticks strong { color: var(--ink); font-weight: 600; }
.files { margin: 0; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.files-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--panel-2); border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.files-bar svg { width: 24px; height: 24px; }
.files ul { list-style: none; padding: 6px 0; }
.files li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 18px; font-size: 14.5px; }
.files li + li { border-top: 1px solid rgb(47 40 35 / .6); }
.files li span:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; }
.files li span:last-child { color: var(--ink-faint); flex: none; }

/* ── why ── */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
@media (max-width: 760px) { .why { grid-template-columns: minmax(0, 1fr); } }
.why > div { padding: 24px 0 28px; border-top: 1px solid var(--line); }
.why h3 { font-size: 20px; margin-bottom: 8px; }
.why p { color: var(--ink-dim); }

/* ── FAQ ── */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px;
  color: var(--ink); font-weight: 600; font-size: 17px; border-radius: 6px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { color: var(--ink-dim); padding: 0 2px 20px; max-width: 40em; }

/* ── contact: the closing call to action and the brief form ── */
.band.contact { background: radial-gradient(60% 70% at 20% 0%, rgb(var(--accent-rgb) / .10), transparent 70%), var(--ground-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-copy .lockup { font-size: 22px; margin-bottom: 24px; }
.contact-copy p { color: var(--ink-dim); font-size: 17px; max-width: 28em; }
.contact-copy .plain { margin-top: 18px; }
.contact-copy .plain a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.brief { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: var(--panel); border: 1px solid rgb(var(--accent-rgb) / .3); }
.brief .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .brief .row { grid-template-columns: minmax(0, 1fr); } }
.brief label { display: grid; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.brief .opt { font-weight: 400; color: var(--ink-faint); }
.brief input, .brief textarea { width: 100%; font: 400 16px/1.45 "Inter", sans-serif; color: var(--ink); background: var(--ground); border: 1px solid #4a3f36; border-radius: 10px; padding: 12px 14px; }
.brief textarea { resize: vertical; }
.brief input::placeholder, .brief textarea::placeholder { color: var(--ink-faint); }
.brief input:focus-visible, .brief textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.brief [aria-invalid="true"] { border-color: #ff8a80; }
.brief .btn { justify-self: start; }
@media (max-width: 560px) { .brief .btn { justify-self: stretch; } }
.form-note { font-size: 13.5px; color: var(--ink-faint); }
.form-status { font-size: 15px; color: var(--accent-soft); }
.form-status:empty { display: none; }

/* ── footer ── */
footer { padding: 32px 0 44px; color: var(--ink-faint); font-size: 14px; border-top: 1px solid rgba(47, 40, 35, .6); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
footer .lockup.small { font-size: 15px; }
footer .links { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer .links a { color: var(--ink-dim); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
footer .links a:hover { color: var(--ink); text-decoration: underline; }
footer .parent svg { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
