/* From Group Chat to Group Trip: case study. Cool paper, cut-paper colour, polaroids and washi tape. */
:root {
  --paper: #f6f7fa;
  --ink: #1b1d26;
  --ink-soft: #5b6070;
  --coral: #f2604a;
  --mint: #6cc7a6;
  --yellow: #f8c928;
  --cobalt: #1c4fc4;
  --card: #ffffff;
  --line: #e1e4ec;
  --tape: rgba(150, 185, 245, .6);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.42 0 0 0 0 0.5 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* hero */
.hero { max-width: 760px; margin: 0 auto; padding: 72px 24px 8px; text-align: center; }
h1 {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(46px, 8vw, 74px); line-height: 1.02; letter-spacing: -0.01em;
}
.hero-sub { margin: 18px auto 0; font-size: 19px; color: var(--ink-soft); max-width: 460px; }
.hero-meta { margin-top: 28px; color: var(--ink-soft); font-size: 15.5px; }
.hero-links { margin-top: 20px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 12px 24px; border-radius: 999px;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 3px 0 #c74430; }
.btn-primary:hover { transform: translateY(1px); box-shadow: 0 2px 0 #c74430; }

/* polaroids and tape */
.polaroid {
  position: relative; background: #fff; padding: 14px 14px 18px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(27,29,38,.08), 0 14px 34px rgba(27,29,38,.12);
  max-width: 640px; margin: 48px auto;
  transform: rotate(-1.2deg);
  opacity: 0; transition: opacity .6s ease;
}
.polaroid.in { opacity: 1; }
.polaroid:nth-of-type(even) { transform: rotate(1deg); }
.polaroid img { display: block; width: 100%; height: auto; }
.polaroid figcaption { margin-top: 12px; text-align: center; font-family: 'Instrument Serif', serif; font-style: italic; font-size: 20px; color: var(--ink-soft); }
.hero-pol { margin: 44px auto 0; padding-bottom: 40px; opacity: 1; }
.loop-img { max-width: 720px; }
.tape {
  position: absolute; width: 92px; height: 28px; background: var(--tape);
  box-shadow: 0 1px 3px rgba(27,29,38,.15);
}
.tape-tl { top: -12px; left: -26px; transform: rotate(-38deg); }
.tape-tr { top: -12px; right: -26px; transform: rotate(38deg); }

/* layout */
main { max-width: 760px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0 8px; }
h2 {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(32px, 5vw, 42px); line-height: 1.1; margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.num {
  font-family: 'Instrument Sans', sans-serif; font-weight: 700; font-size: 17px;
  color: var(--coral); border: 3.5px solid var(--coral); border-radius: 50%;
  width: 46px; height: 46px; min-width: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  transform: rotate(-6deg);
}
section p { margin-bottom: 18px; max-width: 640px; }
section p:last-child { margin-bottom: 0; }
.brief p:first-of-type { font-size: 19px; }
.assumptions {
  background: #fff; border: 1px dashed #b9c0d4; border-radius: 4px;
  padding: 14px 18px; font-size: 15.5px; color: var(--ink-soft);
}
.lead-in { font-style: italic; font-weight: 600; color: var(--cobalt); margin-right: 6px; }

/* insight cards */
.insight, .principles {
  position: relative; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(27,29,38,.06), 0 12px 28px rgba(27,29,38,.09);
  margin: 40px 0; transform: rotate(-.6deg);
  opacity: 0; transition: opacity .6s ease;
}
.insight.in, .principles.in { opacity: 1; }
.insight::before, .principles::before {
  content: ''; position: absolute; top: -13px; left: 50%; width: 110px; height: 28px;
  transform: translateX(-50%) rotate(-2deg); background: var(--tape); box-shadow: 0 1px 3px rgba(27,29,38,.15);
}
.insight {
  padding: 34px 34px 30px; font-family: 'Instrument Serif', serif;
  font-size: clamp(23px, 3.6vw, 30px); line-height: 1.3;
}
.principles { padding: 30px 34px 26px; transform: rotate(.5deg); }
.principles ul { list-style: none; }
.principles li { padding: 5px 0 5px 24px; position: relative; }
.principles li::before {
  content: ''; position: absolute; left: 0; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow);
}

.plain-list { margin: 0 0 8px 22px; }
.plain-list li { margin-bottom: 12px; padding-left: 6px; max-width: 600px; }

/* options */
.options { display: grid; gap: 18px; margin-top: 28px; }
.option {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--line);
  border-radius: 6px; padding: 22px 24px 18px;
  box-shadow: 0 2px 4px rgba(27,29,38,.05), 0 8px 20px rgba(27,29,38,.07);
  opacity: 0; transition: opacity .6s ease;
}
.option.in { opacity: 1; }
.option.chosen { border-left-color: var(--mint); }
.option h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 26px; margin-bottom: 8px; }
.option p { margin-bottom: 10px; }
.verdict { color: var(--ink-soft); font-size: 16px; }
.vlabel { font-weight: 600; font-style: italic; margin-right: 6px; }
.vlabel.no { color: var(--coral); }
.vlabel.yes { color: #2b9a77; }

/* screens */
.screen-row {
  display: grid; grid-template-columns: 1fr 250px; gap: 44px; align-items: center; margin: 52px 0;
  opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease;
}
.screen-row.in { opacity: 1; transform: none; }
.screen-row.flip { grid-template-columns: 250px 1fr; }
.screen-row.flip .screen-text { order: 2; }
.screen-row.flip .phone { order: 1; }
.screen-text h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 28px; margin-bottom: 8px; }
.screen-text p { font-size: 16px; color: var(--ink-soft); margin: 0; }

.phone { background: #1b1d26; border-radius: 34px; padding: 9px; box-shadow: 0 2px 4px rgba(27,29,38,.15), 0 18px 40px rgba(27,29,38,.22); }
.tilt-l { transform: rotate(-2deg); }
.tilt-r { transform: rotate(2deg); }
.phone-screen { background: #fff; border-radius: 26px; padding: 16px 14px 18px; min-height: 300px; font-size: 12.5px; line-height: 1.45; }
.ps-head {
  font-weight: 600; font-size: 12px; text-align: center; color: var(--ink-soft);
  padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.chat-bubble { max-width: 85%; padding: 7px 11px; border-radius: 15px; margin-bottom: 6px; }
.chat-bubble.them { background: #eceef4; border-bottom-left-radius: 4px; }
.chat-bubble.me { background: var(--cobalt); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.seed-card, .opt-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; margin-top: 12px;
  box-shadow: 0 2px 6px rgba(27,29,38,.08);
}
.seed-title { font-weight: 600; margin-bottom: 5px; }
.seed-row { color: var(--ink-soft); margin-bottom: 2px; }
.seed-edit { margin-top: 7px; color: var(--cobalt); font-weight: 600; }
.opt-card { margin-top: 10px; border-left: 4px solid var(--coral); }
.opt-name { font-weight: 600; font-size: 13.5px; }
.opt-line { color: var(--ink-soft); margin: 2px 0 6px; }
.opt-trade { display: inline-block; background: #fff3c4; border-radius: 6px; padding: 3px 8px; font-size: 11.5px; font-weight: 600; }
.opt-why { margin-top: 12px; color: var(--ink-soft); font-style: italic; }
.commit-list { margin-top: 4px; }
.commit-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 7px; font-weight: 600;
}
.commit-row .who { display: inline-flex; align-items: center; gap: 7px; }
.commit-row .stat { font-size: 11px; font-weight: 600; text-align: right; }
.commit-row.in .stat { color: #2b9a77; }
.commit-row.out .stat { color: var(--ink-soft); }
.commit-row.you { border: 1.5px dashed var(--coral); }
.commit-row .tap { color: var(--coral); }
.commit-note, .canvas-note { margin-top: 12px; text-align: center; color: var(--ink-soft); font-style: italic; }
.itin-day { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.itin-day:last-child { border-bottom: 0; }
.itin-day b { display: inline-block; min-width: 42px; margin-right: 6px; color: var(--coral); }
.av {
  width: 22px; height: 22px; min-width: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; color: var(--ink);
}
.av-a { background: var(--coral); color: #fff; }
.av-b { background: var(--mint); }
.av-c { background: var(--yellow); }
.av-d { background: #c8d4f5; }
.av-p { background: var(--cobalt); color: #fff; }

/* two columns */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 28px 0; }
.col-card {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 2px 4px rgba(27,29,38,.06), 0 10px 24px rgba(27,29,38,.08);
  padding: 24px 24px 20px; transform: rotate(-.7deg); opacity: 0; transition: opacity .6s ease;
}
.col-card.alt { transform: rotate(.7deg); }
.col-card.in { opacity: 1; }
.col-card h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 26px; color: var(--cobalt); margin-bottom: 12px; }
.col-card ul { margin-left: 18px; }
.col-card li { margin-bottom: 9px; font-size: 15.5px; }

/* metrics and days */
.metrics, .days { display: grid; gap: 14px; margin: 24px 0; }
.metric, .day {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--yellow);
  border-radius: 6px; padding: 16px 20px; opacity: 0; transition: opacity .6s ease;
}
.metric.in, .day.in { opacity: 1; }
.metric:nth-child(3n+2) { border-left-color: var(--mint); }
.metric:nth-child(3n) { border-left-color: var(--coral); }
.metric h4, .day-num { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 23px; display: block; margin-bottom: 4px; }
.metric p, .day p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }

/* cta, divider, footer */
.cta { text-align: center; padding-top: 88px; }
.cta p { margin-left: auto; margin-right: auto; }
.cta h2 { justify-content: center; }
.divider-img { margin: 56px auto 0; max-width: 560px; opacity: 0; transition: opacity .6s ease; }
.divider-img.in { opacity: 1; }
.divider-img img { display: block; width: 100%; height: auto; }
footer { text-align: center; padding: 40px 24px 70px; color: var(--ink-soft); font-size: 15px; }
.footer-sub { margin-top: 4px; font-size: 14px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .screen-row, .screen-row.flip { grid-template-columns: 1fr; gap: 24px; }
  .screen-row.flip .screen-text, .screen-row.flip .phone { order: 0; }
  .phone { max-width: 270px; margin: 0 auto; width: 100%; }
  .two-col { grid-template-columns: 1fr; }
  .insight, .principles { padding: 26px 22px 22px; }
  .tape-tl { left: -14px; } .tape-tr { right: -14px; }
  section { padding-top: 56px; }
}

/* image treatments: framed polaroids, transparent cut-outs */
.cutout { margin: 44px auto; opacity: 0; transition: opacity .6s ease; }
.cutout.in { opacity: 1; }
.cutout img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 9px rgba(27,29,38,.16)); }
.cutout figcaption { text-align: center; font-family: 'Instrument Serif', serif; font-style: italic; font-size: 20px; color: var(--ink-soft); margin-top: 10px; }
.cut-left { max-width: 440px; margin-left: -12px; }
.cut-right { max-width: 500px; margin-right: -12px; }
.cut-wide { max-width: 640px; }
.cut-wide img[src="loop.webp"] { max-width: 400px; margin: 0 auto; }
.pip-pol { max-width: 380px; margin-left: auto; margin-right: 0; transform: rotate(2.2deg); }
.divider-img { margin: 56px auto 0; max-width: 560px; opacity: 0; transition: opacity .6s ease; }
.divider-img.in { opacity: 1; }
.divider-img img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 9px rgba(27,29,38,.16)); }
@media (max-width: 640px) { .cut-left, .cut-right { margin-left: 0; margin-right: 0; max-width: 100%; } .pip-pol { margin: 40px auto; } }

.slider { position: relative; height: 8px; border-radius: 4px; background: #dfe3ee; margin: 18px 6px 6px; }
.slider-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 55%; background: #2f5bd6; border-radius: 4px; }
.slider-knob { position: absolute; left: 55%; top: -7px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #fff; border: 3px solid #2f5bd6; }
.slider-labels { display: flex; justify-content: space-between; font-size: 12px; color: #5b6070; margin: 0 6px 16px; }
.ps-head.sub { margin-top: 6px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; }
.tile { display: flex; align-items: flex-end; height: 56px; padding: 6px 8px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #fff; }
.t1 { background: #2f5bd6; } .t2 { background: #e8604c; } .t3 { background: #3aa88a; } .t4 { background: #e9b81f; color: #1b1d26; }
.slide-book { position: relative; margin: 14px 6px 6px; padding: 12px 12px 12px 56px; border-radius: 28px; background: #1b1d26; color: #fff; font-size: 14px; font-weight: 600; }
.slide-knob { position: absolute; left: 6px; top: 6px; width: 36px; height: 36px; border-radius: 50%; background: #e8604c; }

.reel { position: relative; height: 150px; margin: 8px 6px; border-radius: 10px; background: linear-gradient(160deg,#e8604c,#e9b81f); }
.reel.short { height: 90px; background: linear-gradient(160deg,#3aa88a,#e9b81f); }
.reel-tag { position: absolute; left: 10px; bottom: 8px; color: #fff; font-weight: 600; font-size: 14px; }
.reel-play { position: absolute; right: 12px; top: 12px; width: 0; height: 0; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.swipe-row { display: flex; gap: 8px; padding: 4px 6px; }
.sw { flex: 1; text-align: center; padding: 8px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.sw.no { background: #f1e4e1; color: #b8402f; } .sw.yes { background: #d9f0e7; color: #1f7a5c; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 6px; }
.chip { padding: 6px 10px; border-radius: 16px; background: #fff; border: 1px solid #d5d9e4; font-size: 12px; }
.sub-h { margin-top: 44px; }
.proto-link { margin: 32px 0 0; }
.dmap { margin: 20px 0 8px; border-top: 3px solid #1b1d26; }
.dm-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; padding: 14px 4px; border-bottom: 1px solid #d5d9e4; }
.dm-when { font-family: 'Instrument Serif', serif; font-size: 21px; line-height: 1.2; }
.dm-then { color: #4a4f5e; font-size: 16px; line-height: 1.5; }
@media (max-width: 640px) { .dm-row { grid-template-columns: 1fr; gap: 4px; } }

.tagbar { position: relative; margin: 8px 6px; padding: 7px 8px; border-radius: 8px; background: #eef0f5; font-size: 13px; font-weight: 600; overflow: hidden; }
.tagbar span { position: relative; z-index: 1; }
.tagbar i { position: absolute; left: 0; top: 0; bottom: 0; background: #f7b9ad; z-index: 0; }
.tagbar:nth-of-type(2) i { background: #bfe5d6; }
.tagbar.off { opacity: .45; text-decoration: line-through; }
.chip.sel { background: #1b1d26; color: #fff; border-color: #1b1d26; }
.typebox { margin: 4px 6px; padding: 8px 10px; border: 1px solid #d5d9e4; border-radius: 16px; font-size: 12px; color: #7a7f8e; }
.dm-group { margin-bottom: 26px; }
.dm-group h4 { font-family: 'Instrument Serif', serif; font-size: 26px; margin: 22px 0 4px; font-weight: 400; }
.dmap { border-top: 0; }
.dm-group .dm-row:first-of-type { border-top: 3px solid #1b1d26; }
