/* goodmake — mockup system, built on the app's own tokens (flat look, warm greys, emerald).
   Everything inside .mock-c is drawn at a fixed design size and scaled to fit (see gm.js). */

:root {
  /* page shell (shared with the portfolio) */
  --bg: #070807;
  --tx: #F4F4F2;
  --tx2: #A6A49F;
  --tx3: #6E6C68;
  --ln: rgba(255, 255, 255, .07);
  --ln2: rgba(255, 255, 255, .11);
  --acc: #3FD08C;
  --ui: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);

  /* goodmake */
  --paper: #FBFAF9;
  --canvas: #F2F1EE;
  --tone: #F4F2EF;
  --field: #F3F1EE;
  --hover: #F2F0ED;
  --active: #EBE8E4;
  --ink: #1E1C1A;
  --ink2: #383532;
  --ink3: #57534E;
  --muted: #78736C;
  --faint: #9A958E;
  --faint2: #B8B3AC;
  --green: #088A55;
  --green2: #0A9B5E;
  --green-sel: #067146;
  --lav: #E6DDFF;
  --peach: #FDE3D2;
  --mint: #D4F1E2;
  --sky: #DCE7FB;
  --gm: 'Geist', system-ui, sans-serif;
  --gmm: 'Geist Mono', ui-monospace, monospace;
  --fun: 'Funnel Display', 'Geist', system-ui, sans-serif;
}

/* ---------- scaling frame ---------- */
.mock { position: relative; width: 100%; }
.mock-c {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  font-family: var(--gm); color: var(--ink); font-size: 12.5px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; text-align: left;
}
.mock-c *, .mock-c *::before, .mock-c *::after { box-sizing: border-box; }
.mock-c img { display: block; }
.mock-c h3, .mock-c h4, .mock-c h5, .mock-c p { margin: 0; }
.mock-c b { font-weight: 600; }
.i { width: 14px; height: 14px; flex: none; }

/* ---------- primitives ---------- */
.prism { position: relative; isolation: isolate; background:
  radial-gradient(45% 75% at 6% 0%, #dccfff, transparent 72%),
  radial-gradient(40% 60% at 48% -12%, #fde0d0, transparent 72%),
  radial-gradient(45% 75% at 96% 2%, #cfeedf, transparent 72%),
  radial-gradient(48% 62% at 82% 100%, #d3e5ff, transparent 75%),
  radial-gradient(42% 58% at 12% 100%, #fde3d6, transparent 75%), #f7f3fb !important; }
.prism.grid-bg::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(#1d18300c 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, #1d18300c 1px, transparent 1px) 0 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(60% 80% at 50% 0%, #000 0%, #0009 45%, transparent 90%); mask-image: radial-gradient(60% 80% at 50% 0%, #000 0%, #0009 45%, transparent 90%); }
.prism.grid-bg { background-image: none; }
.grid-bg { background-image: linear-gradient(rgba(30, 28, 26, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 28, 26, .045) 1px, transparent 1px); background-size: 28px 28px; }
.gwin { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--paper); border-radius: 16px; box-shadow: 0 50px 100px -30px rgba(40, 30, 20, .28), 0 0 0 1px rgba(30, 28, 26, .06); display: flex; flex-direction: column; }
.tbar { height: 36px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #F1EFEC; color: var(--muted); font-size: 12px; }
.tbar .d { display: flex; gap: 7px; margin-right: 10px; }
.tbar .d i { width: 11px; height: 11px; border-radius: 50%; }
.tbar .d i:nth-child(1) { background: #FF5F57; } .tbar .d i:nth-child(2) { background: #FEBC2E; } .tbar .d i:nth-child(3) { background: #28C840; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 99px; font-weight: 500; font-size: 12.5px; white-space: nowrap; }
.pill.ink { background: var(--ink); color: #fff; }
.pill.tone { background: #F1EFEC; color: var(--ink2); }
.pill.white { background: #fff; color: var(--ink2); box-shadow: 0 1px 2px rgba(30, 28, 26, .06); }
.pill.green { background: var(--green); color: #fff; }
.pill.soft { background: #E3F2EA; color: var(--green-sel); }
.pill .i { width: 13px; height: 13px; }
.num { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 5px; background: var(--ink); color: #fff; font: 600 10.5px var(--gmm); }
.num.g { background: var(--green); }
.num.w { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.dot { width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font: 600 10.5px var(--gmm); flex: none; }
.lab { font-size: 11px; color: var(--muted); margin: 14px 0 6px; }
.field { background: var(--field); border-radius: 9px; padding: 8px 10px; font-size: 12.5px; color: var(--ink2); min-height: 32px; }
.field + .field { margin-top: 5px; }
.field .k { color: var(--muted); margin-right: 4px; }
.field .k.g { color: var(--green); font-weight: 600; }

/* floating mark note (the site's signature) */
.note { position: absolute; display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 14px 0 8px; border-radius: 99px; background: #fff; box-shadow: 0 10px 30px -8px rgba(40, 30, 20, .22), 0 0 0 1px rgba(30, 28, 26, .04); font-size: 14px; color: var(--ink2); white-space: nowrap; rotate: var(--r, -3deg); }
.note .dot { width: 24px; height: 24px; font-size: 11px; }
.mock.in .note { animation: notein .7s var(--spring) both, bob 7s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 120ms + 300ms), calc(var(--i, 0) * -1.3s); }

/* ---------- app ---------- */
.app { display: grid; grid-template-columns: 220px 1fr 256px; flex: 1; min-height: 0; }
.side { background: var(--paper); padding: 14px 12px 12px; display: flex; flex-direction: column; min-height: 0; }
.side-h { display: flex; align-items: center; gap: 8px; padding: 0 4px 12px; }
.side-h img { height: 16px; }
.side-h .v { margin-left: auto; font-size: 11px; color: var(--faint); }
.search { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 9px; border-radius: 9px; background: var(--field); color: var(--faint); font-size: 12px; margin-bottom: 14px; }
.sec { display: flex; align-items: center; justify-content: space-between; padding: 8px 6px 4px; font-weight: 600; font-size: 12.5px; }
.sec span { color: var(--faint); font-weight: 400; }
.row { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 8px; color: var(--ink2); font-size: 12.5px; }
.row .i { color: var(--faint); }
.row.on { background: var(--active); color: var(--ink); }
.row em { margin-left: auto; font-style: normal; color: var(--faint); font-size: 11px; transition: transform .3s var(--spring); }
.row em.bump { transform: scale(1.4); color: var(--green); }
.inbox { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 4px 0; }
.it { aspect-ratio: 4 / 3; border-radius: 6px; background-size: cover; background-position: top; box-shadow: 0 0 0 1px rgba(30, 28, 26, .08); transition: opacity .3s; }
.it.sel { box-shadow: 0 0 0 1.5px var(--green); }
.side-f { margin-top: auto; display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); padding: 8px 4px 0; }
.side-f i { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; }
.cv { position: relative; background: var(--canvas); background-image: radial-gradient(rgba(30, 28, 26, .1) 1px, transparent 1px); background-size: 18px 18px; overflow: hidden; }
.frm { position: absolute; width: 300px; }
.frm-l { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; font-size: 12.5px; color: var(--ink3); }
.frm.sel .frm-l { color: var(--green-sel); }
.frm-b { background: #fff; border-radius: 14px; padding: 10px; transition: box-shadow .3s; }
.frm.sel .frm-b { box-shadow: 0 0 0 1.5px var(--green); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tl { position: relative; aspect-ratio: 16 / 11; border-radius: 8px; background-size: cover; background-position: top; box-shadow: 0 0 0 1px rgba(30, 28, 26, .06); }
.tl .num { position: absolute; right: 6px; bottom: 6px; }
.tl .mk { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; font: 600 9px var(--gmm); display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.tl.new { animation: pop .55s var(--spring) both; }
.frm-n { margin-top: 9px; font-size: 12px; color: var(--muted); padding: 0 2px; min-height: 18px; }
.insp { background: var(--paper); padding: 14px 16px; display: flex; flex-direction: column; }
.insp-h { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 13px; }
.insp .lab:first-of-type { margin-top: 16px; }
.ghost { position: absolute; z-index: 30; border-radius: 8px; background-size: cover; background-position: top; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .3); transition: transform .9s var(--ease), opacity .3s; pointer-events: none; }
.toast { position: absolute; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 12.5px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .45s var(--spring); }
.toast.on { opacity: 1; transform: none; }
.toast i { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; }
.caret { display: inline-block; width: 1.5px; height: 1.1em; margin-bottom: -.2em; background: var(--green); animation: blink 1s steps(2) infinite; }

/* ---------- capture ---------- */
.cap { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 16px; background: #0E0F1F; }
.cap-bg { position: absolute; inset: 0; background-size: cover; background-position: top center; transition: filter .3s; }
.cap.dim .cap-bg { filter: brightness(.55); }
.cap .box { position: absolute; border: 1.5px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); opacity: 0; transition: opacity .2s; }
.cap .box.on { opacity: 1; }
.cap .box::before, .cap .box::after { content: ''; position: absolute; width: 14px; height: 14px; border: 3px solid #fff; }
.cap .box::before { left: -4px; top: -4px; border-right: 0; border-bottom: 0; }
.cap .box::after { right: -4px; bottom: -4px; border-left: 0; border-top: 0; }
.cap .dim-l { position: absolute; right: -2px; bottom: -34px; background: #fff; color: var(--ink); font: 600 12px var(--gmm); padding: 4px 8px; border-radius: 6px; }
.keys { position: absolute; left: 32px; bottom: 32px; display: flex; gap: 10px; z-index: 5; }
.key { width: 52px; height: 52px; border-radius: 12px; background: #fff; color: var(--ink); display: grid; place-items: center; font: 500 20px var(--gm); box-shadow: 0 4px 0 #CFCAC3, 0 10px 20px -6px rgba(0, 0, 0, .4); transition: transform .12s, box-shadow .12s, background .12s; }
.key.dn { transform: translateY(3px); box-shadow: 0 1px 0 #CFCAC3, 0 4px 10px -4px rgba(0, 0, 0, .4); background: #E3F2EA; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 6; }
.flash.go { animation: flash .45s ease-out; }
.cap-inbox { position: absolute; right: 24px; bottom: 24px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 14px; background: #fff; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .4); }
.cap-inbox b { font-size: 13px; }
.cap-inbox .ths { display: flex; gap: 6px; }
.cap-inbox .ths i { width: 54px; height: 38px; border-radius: 6px; background-size: cover; background-position: top; box-shadow: 0 0 0 1px rgba(30, 28, 26, .08); }
.cap-inbox .ths i.new { animation: pop .5s var(--spring) both; box-shadow: 0 0 0 1.5px var(--green); }
.cap-inbox small { font-size: 12px; color: var(--green-sel); display: flex; align-items: center; gap: 6px; margin-left: 6px; }
.cap-inbox small::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---------- marks ---------- */
.mkv { display: grid; grid-template-columns: 1fr 300px; gap: 22px; padding: 26px; height: 100%; }
.mkv-img { position: relative; border-radius: 14px; overflow: hidden; background-size: cover; background-position: top; box-shadow: 0 0 0 1.5px var(--green), 0 30px 60px -30px rgba(40, 30, 20, .4); }
.pin { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font: 600 11px var(--gmm); box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(0, 0, 0, .25); opacity: 0; transform: scale(.3); transition: opacity .25s, transform .5s var(--spring); z-index: 2; }
.pin.on { opacity: 1; transform: none; }
.mbox { position: absolute; border: 2px solid var(--green); border-radius: 6px; background: rgba(8, 138, 85, .08); opacity: 0; transition: opacity .3s; }
.mbox.on { opacity: 1; }
.mkv-r { display: flex; flex-direction: column; gap: 12px; }
.card { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 0 0 1px rgba(30, 28, 26, .05); }
.card .lab:first-child { margin-top: 0; }
.mkrow { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; font-size: 13px; color: var(--ink2); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease); }
.mkrow.on { opacity: 1; transform: none; }
.mkrow b { color: var(--green); font: 600 12px var(--gmm); width: 22px; }
.closeups { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cu { position: relative; aspect-ratio: 1; border-radius: 10px; background-repeat: no-repeat; box-shadow: 0 0 0 1px rgba(30, 28, 26, .08); opacity: 0; transform: scale(.85); transition: opacity .35s, transform .5s var(--spring); }
.cu.on { opacity: 1; transform: none; }
.cu .num { position: absolute; left: 6px; top: 6px; }

/* ---------- brief ---------- */
.brief { display: grid; grid-template-columns: 1.25fr 1fr; height: 100%; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 50px 100px -30px rgba(40, 30, 20, .3), 0 0 0 1px rgba(30, 28, 26, .05); }
.br-l { background: var(--tone); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.sheet { flex: 1; background: #fff; border-radius: 12px; padding: 10px; display: grid; grid-template-rows: 1.2fr 1fr; gap: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.sheet .r { display: flex; gap: 8px; min-height: 0; }
.st { position: relative; border-radius: 4px; background-size: cover; background-position: top; flex: var(--f, 1); opacity: 0; transform: scale(.9); transition: opacity .35s, transform .5s var(--spring); }
.st.on { opacity: 1; transform: none; }
.st .num { position: absolute; left: 6px; top: 6px; border-radius: 4px; }
.st .num.g { left: 6px; }
.br-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.br-meta span:first-child::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: 1px; }
.br-r { padding: 24px 24px 20px; display: flex; flex-direction: column; }
.br-r h4 { font: 480 26px var(--fun); letter-spacing: -.02em; }
.br-r .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.to { display: flex; gap: 6px; flex-wrap: wrap; }
.to .pill { height: 30px; padding: 0 12px; }
.to .claude { background: var(--ink); color: #fff; }
.to .claude::before { content: '✳'; color: #E8865A; font-size: 13px; }
.notes-box { background: var(--tone); border-radius: 14px; padding: 12px 14px; flex: 1; font-size: 13px; color: var(--ink2); }
.nl { display: flex; gap: 9px; align-items: center; padding: 4px 0; opacity: 0; transform: translateY(5px); transition: opacity .3s, transform .4s var(--ease); }
.nl.on { opacity: 1; transform: none; }
.br-act { display: flex; gap: 8px; margin-top: 14px; }
.br-act .pill { flex: 1; height: 36px; transition: background .3s, color .3s; }
.br-act .pill.done { background: #E3F2EA; color: var(--green-sel); }

/* ---------- terminal ---------- */
.term { width: 100%; height: 100%; background: #1A1918; border-radius: 16px; overflow: hidden; color: #E9E6E1; font: 400 14px/1.7 var(--gmm); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); display: flex; flex-direction: column; }
.term .tbar { background: #232120; color: #8F8A83; }
.term .tbar .d i { background: #3A3735 !important; }
.term-b { padding: 18px 22px; flex: 1; }
.term-b > div { min-height: 1.7em; white-space: pre; opacity: 0; transition: opacity .25s; }
.term-b > div.on { opacity: 1; }
.term .pr { color: #8F8A83; }
.term .g { color: #4FD18E; }
.term .m { color: #8F8A83; }
.term .w { color: #fff; }
.term .y { color: #F3C969; }
.term .bul { color: #4FD18E; }

/* ---------- timeline ---------- */
.tlv { width: 100%; height: 100%; background: #fff; border-radius: 22px; padding: 30px 34px 26px; display: flex; flex-direction: column; box-shadow: 0 0 0 1px rgba(30, 28, 26, .05); }
.tlv-h { display: flex; align-items: baseline; gap: 14px; }
.tlv-h b { font: 500 64px var(--fun); letter-spacing: -.04em; line-height: 1; }
.tlv-h span { color: var(--muted); font-size: 15px; }
.tlv-h .r { margin-left: auto; font: 500 12px var(--gmm); color: var(--muted); }
.bars { flex: 1; display: grid; grid-template-columns: repeat(11, 1fr); gap: 12px; align-items: end; margin-top: 26px; position: relative; }
.bar { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: var(--ink); height: calc(var(--v) * 1%); transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--ease); transition-delay: calc(var(--k) * 60ms); }
.bar.hi i { background: var(--green); }
.bar.z i { background: var(--active); height: 2%; }
.mock.in .bar i { transform: none; }
.bar small { position: absolute; top: calc(100% - var(--v) * 1% - 22px); font: 500 11.5px var(--gmm); color: var(--ink3); opacity: 0; transition: opacity .4s; transition-delay: calc(var(--k) * 60ms + .6s); }
.mock.in .bar small { opacity: 1; }
.days { display: grid; grid-template-columns: repeat(11, 1fr); gap: 12px; margin-top: 10px; font: 500 11px var(--gmm); color: var(--muted); text-align: center; }
.ms { display: grid; grid-template-columns: repeat(11, 1fr); gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--active); font-size: 11.5px; color: var(--ink3); line-height: 1.35; }
.ms div { position: relative; padding-left: 8px; border-left: 2px solid var(--green); }
.ms div:empty { border: 0; }

/* ---------- stage ---------- */
.stage { position: relative; width: 100%; height: 100%; }
.stage > div { position: absolute; }
.layer { transition: transform .9s var(--ease); transform: translate3d(calc(var(--mx, 0) * var(--k, 0) * 1px), calc(var(--my, 0) * var(--k, 0) * 1px), 0); }
.mock.in .float { animation: bob 7s ease-in-out infinite; }
.mock.in .float.f2 { animation-duration: 8s; animation-delay: -3s; }

/* ---------- teasers ---------- */
.tz { position: relative; width: 100%; height: 100%; overflow: hidden; }
.tz h3 { font: 480 64px var(--fun); letter-spacing: -.04em; line-height: 1.02; text-align: center; color: #1d1830; }
.tz h3 em { font-style: normal; color: #088a55; }

/* fake cursor */
.fcur { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 40; pointer-events: none; transition: transform .7s var(--ease), opacity .3s; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); opacity: 0; }
.fcur.on { opacity: 1; }
.fcur svg { transition: transform .15s; transform-origin: 30% 20%; }
.fcur.tap svg { transform: scale(.82); }
.fcur.cross svg { display: none; }
.fcur.cross::before, .fcur.cross::after { content: ''; position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.fcur.cross::before { left: 10px; top: 0; width: 1.5px; height: 22px; }
.fcur.cross::after { top: 10px; left: 0; height: 1.5px; width: 22px; }

/* reveal */
.rv { opacity: 0; transform: translateY(14px); }
.mock.in .rv { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 100ms); }
.mock.static .rv { opacity: 1; transform: none; animation: none !important; }
.mock.static * { transition: none !important; }
.mock.static .note { animation: none !important; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes notein { from { opacity: 0; transform: scale(.6); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes flash { 0% { opacity: .9; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .mock * { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
