/* =============================================================
   PIVOTAL FINANCE NOTES — handcrafted notebook
   visual thinking journal · sketchbook aesthetic
   ============================================================= */

:root {
  --paper: #F4ECDE;
  --paper-2: #ECE2D0;
  --paper-3: #DED1B8;
  --ink: #2B2A28;
  --ink-2: #44423E;
  --pencil: #5E5C56;
  --coffee: #B79873;
  --coffee-2: #9A7F5E;
  --dusty: #6C8FA8;
  --orange: #D98947;
  --orange-2: #B86E2D;
  --tape: #F0D88F;
  --highlight: #FFF192;
  --line: rgba(43, 42, 40, 0.15);
  --line-2: rgba(43, 42, 40, 0.3);

  --font-hand: "Caveat", "Kalam", "Indie Flower", cursive;
  --font-marker: "Permanent Marker", "Caveat", cursive;
  --font-serif: "Lora", "Crimson Pro", "Georgia", serif;
  --font-sans: "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Paper grain texture */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.34 0 0 0 0 0.30 0 0 0 0 0.20 0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.55;
  mix-blend-mode: multiply;
}
/* Notebook lines (very subtle) */
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image:
    repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(108, 143, 168, 0.045) 31px, rgba(108, 143, 168, 0.045) 32px);
  pointer-events: none;
  z-index: 0;
}

img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================================
   LOADING (page turn animation)
   ============================================================ */
.load-page {
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity .7s ease, visibility .7s ease;
}
.load-page.hide { opacity: 0; visibility: hidden; }
.load-page__sub {
  font-family: var(--font-hand);
  font-size: 26px;
  color: var(--coffee-2);
  transform: rotate(-2deg);
}
.load-page__big {
  font-family: var(--font-marker);
  font-size: clamp(56px, 10vw, 130px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  transform: rotate(-1deg);
}
.load-page__big i { color: var(--orange); font-style: normal; }
.load-page__line {
  position: relative;
  width: 240px;
  height: 3px;
  background: rgba(43, 42, 40, 0.1);
  overflow: hidden;
}
.load-page__line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--orange);
  animation: lp 1.4s ease-out forwards;
  transform-origin: left;
}
@keyframes lp { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.load-page__meta {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--pencil);
  transform: rotate(1deg);
}

/* ============================================================
   NAV (notebook tabs)
   ============================================================ */
.nav-tabs {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  padding: 18px 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  background: rgba(244, 236, 222, 0.88);
  backdrop-filter: blur(10px) saturate(110%);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
  border-bottom: 1px dashed var(--line-2);
}
.brand-notes {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-marker);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  transform: rotate(-1deg);
  line-height: 1;
}
.brand-notes .stamp {
  width: 38px; height: 38px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-marker);
  font-size: 18px;
  color: var(--orange);
  transform: rotate(-8deg);
}
.brand-notes .small {
  display: block;
  font-family: var(--font-hand);
  font-size: 14px;
  color: var(--coffee-2);
  letter-spacing: 0;
  margin-top: 2px;
  transform: rotate(1deg);
}
.brand-notes i { color: var(--orange); font-style: normal; }

.tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.tabs a {
  font-family: var(--font-hand);
  font-size: 19px;
  color: var(--pencil);
  padding: 4px 12px;
  position: relative;
  transition: color .2s ease, transform .25s ease;
  transform: rotate(-0.5deg);
}
.tabs a:nth-child(2n) { transform: rotate(0.5deg); }
.tabs a:nth-child(3n) { transform: rotate(-1deg); }
.tabs a::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px;
  bottom: 0;
  height: 6px;
  background: var(--highlight);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.tabs a:hover, .tabs a.is-on { color: var(--ink); transform: rotate(0deg) scale(1.05); }
.tabs a:hover::after, .tabs a.is-on::after { transform: scaleX(1); }

.toggle-canvas {
  font-family: var(--font-hand);
  font-size: 19px;
  color: var(--orange);
  padding: 6px 14px;
  border: 2px solid var(--orange);
  border-radius: 14px / 18px;
  transform: rotate(-1deg);
  transition: background .25s ease, color .25s ease;
}
.toggle-canvas:hover { background: var(--orange); color: var(--paper); }
.toggle-canvas::after { content: " ↗"; }

.burger-page {
  display: none;
  width: 42px; height: 42px;
  border: 2px solid var(--ink);
  border-radius: 8px / 10px;
  background: transparent;
  position: relative;
  transform: rotate(-1deg);
}
.burger-page span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.burger-page span:nth-child(1) { top: 13px; }
.burger-page span:nth-child(2) { top: 19px; }
.burger-page span:nth-child(3) { top: 25px; }
.burger-page.is-on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger-page.is-on span:nth-child(2) { opacity: 0; }
.burger-page.is-on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.canvas-menu {
  position: fixed;
  inset: 0;
  background: var(--paper-2);
  z-index: 8500;
  padding: 100px 40px 40px;
  transform: translateY(-100%);
  transition: transform .55s cubic-bezier(.76,0,.24,1);
  overflow-y: auto;
}
.canvas-menu.is-on { transform: translateY(0); }
.canvas-menu__t {
  font-family: var(--font-marker);
  font-size: 22px;
  color: var(--orange);
  margin-bottom: 30px;
  transform: rotate(-1deg);
}
.canvas-menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.canvas-menu__c {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px 22px;
  border-radius: 4px 16px 6px 12px / 12px 4px 18px 6px;
  position: relative;
  box-shadow: 4px 6px 0 rgba(43, 42, 40, 0.08);
  transition: transform .25s ease;
  transform: rotate(-1deg);
}
.canvas-menu__c:nth-child(2n) { transform: rotate(1deg); }
.canvas-menu__c:nth-child(3n) { transform: rotate(-0.5deg); }
.canvas-menu__c:hover { transform: rotate(0) translateY(-3px); }
.canvas-menu__c .n {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--orange);
}
.canvas-menu__c h4 {
  font-family: var(--font-marker);
  font-size: 24px;
  margin: 10px 0 6px;
  color: var(--ink);
  line-height: 1.1;
}
.canvas-menu__c p {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--pencil);
  margin: 0;
  line-height: 1.3;
}

/* TAPE */
.tape {
  position: absolute;
  background: var(--tape);
  opacity: 0.85;
  padding: 4px 14px;
  font-family: var(--font-hand);
  font-size: 13px;
  color: var(--ink);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  z-index: 2;
}

/* ============================================================
   PAGE STRUCTURE
   ============================================================ */
main { position: relative; z-index: 1; }
.wrap { max-width: 1380px; margin: 0 auto; padding: 0 30px; }

/* ============================================================
   HERO / WELCOME
   ============================================================ */
.welcome {
  padding: 160px 0 80px;
  position: relative;
  min-height: 88vh;
}

.scribble {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
}
.scribble svg { width: 100%; height: 100%; }

.welcome__date {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--coffee-2);
  transform: rotate(-1deg);
  display: inline-block;
  margin-bottom: 30px;
}
.welcome__date::before { content: "— "; }
.welcome__date::after { content: " —"; }

.welcome__title {
  font-family: var(--font-marker);
  font-size: clamp(48px, 10vw, 160px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
  max-width: 14ch;
  position: relative;
  z-index: 1;
}
.welcome__title i { color: var(--orange); font-style: normal; }
.welcome__title u {
  text-decoration: none;
  position: relative;
  display: inline-block;
}
.welcome__title u::after {
  content: "";
  position: absolute;
  bottom: 0.05em; left: -3px; right: -3px;
  height: 0.32em;
  background: var(--highlight);
  z-index: -1;
}
.welcome__lead {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 36px 0 0;
}

.welcome__row {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}

.welcome__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.welcome__cta a {
  font-family: var(--font-hand);
  font-size: 22px;
  padding: 10px 22px;
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-1deg);
  border-radius: 4px 16px 6px 14px / 12px 4px 14px 6px;
  transition: transform .25s ease, background .25s ease;
}
.welcome__cta a:nth-child(2) { background: transparent; color: var(--ink); border: 2px solid var(--ink); transform: rotate(1deg); }
.welcome__cta a:hover { transform: rotate(0) translateY(-3px); }
.welcome__cta a:nth-child(2):hover { background: var(--ink); color: var(--paper); }

/* sticky notes mini-stack */
.note-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 320px;
}
.sticky {
  background: var(--tape);
  padding: 18px 20px;
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--ink);
  position: relative;
  box-shadow: 3px 4px 0 rgba(43, 42, 40, 0.08);
  transform: rotate(-1.5deg);
  border-radius: 2px;
  line-height: 1.3;
}
.sticky:nth-child(2) { background: #B7D6E5; transform: rotate(1deg); }
.sticky:nth-child(3) { background: #F4B98F; transform: rotate(-0.5deg); }
.sticky b { font-family: var(--font-marker); font-size: 20px; display: block; margin-bottom: 6px; color: var(--ink); }
.sticky::before {
  content: "";
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 14px;
  background: rgba(255, 241, 146, 0.85);
  border-radius: 2px;
}

/* ============================================================
   SECTION HEADS
   ============================================================ */
.s-head {
  margin-bottom: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: end;
}
.s-head__pre {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--orange);
  display: inline-block;
  transform: rotate(-1deg);
  margin-bottom: 12px;
}
.s-head__pre::before { content: "✎ "; }
.s-head h2 {
  font-family: var(--font-marker);
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.s-head h2 i { color: var(--orange); font-style: normal; }
.s-head h2 u { text-decoration: none; position: relative; }
.s-head h2 u::after { content: ""; position: absolute; bottom: 0.05em; left: -3px; right: -3px; height: 0.3em; background: var(--highlight); z-index: -1; }
.s-head__r {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 50ch;
}

.section { padding: 90px 0; position: relative; }
.section--tight { padding: 50px 0; }
.section--dim {
  background: var(--paper-2);
}

/* ============================================================
   CARD WALL (canvas of notes)
   ============================================================ */
.wall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  padding: 30px 0;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 26px 24px;
  position: relative;
  box-shadow: 4px 6px 0 rgba(43, 42, 40, 0.06);
  transition: transform .3s ease, box-shadow .3s ease;
  border-radius: 4px 16px 6px 14px / 12px 4px 18px 6px;
}
.card:hover { transform: translateY(-4px) rotate(0deg)!important; box-shadow: 6px 10px 0 rgba(43, 42, 40, 0.1); }
.card .num {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--orange);
  position: absolute;
  top: 12px; right: 16px;
  transform: rotate(8deg);
}
.card h3 {
  font-family: var(--font-marker);
  font-size: 24px;
  margin: 6px 0 12px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.card h3 i { color: var(--orange); font-style: normal; }
.card p {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
.card .underline {
  position: relative;
  display: inline-block;
}
.card .underline::after {
  content: ""; position: absolute;
  bottom: 0; left: -2px; right: -2px;
  height: 6px;
  background: var(--highlight);
  z-index: -1;
}
.card .hand {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--coffee-2);
  margin-top: 14px;
  display: block;
}

.c12 { grid-column: span 12; }
.c8 { grid-column: span 8; }
.c7 { grid-column: span 7; }
.c6 { grid-column: span 6; }
.c5 { grid-column: span 5; }
.c4 { grid-column: span 4; }
.c3 { grid-column: span 3; }

.rot-l1 { transform: rotate(-1deg); }
.rot-l2 { transform: rotate(-2deg); }
.rot-r1 { transform: rotate(1deg); }
.rot-r2 { transform: rotate(1.5deg); }
.rot-0 { transform: rotate(0); }

.card--orange { background: var(--orange); color: var(--paper); }
.card--orange h3 { color: var(--paper); }
.card--orange h3 i { color: var(--ink); }
.card--orange p { color: rgba(244, 236, 222, 0.92); }
.card--ink { background: var(--ink); color: var(--paper); }
.card--ink h3 { color: var(--paper); }
.card--ink h3 i { color: var(--orange); }
.card--ink p { color: rgba(244, 236, 222, 0.85); }
.card--ink .num { color: var(--orange); }
.card--ink .underline::after { background: rgba(217, 137, 71, 0.5); }
.card--blue { background: var(--dusty); color: var(--paper); }
.card--blue h3 { color: var(--paper); }
.card--blue p { color: rgba(244, 236, 222, 0.9); }
.card--blue .num { color: var(--paper); }
.card--coffee { background: var(--coffee); color: var(--paper); }
.card--coffee h3 { color: var(--paper); }
.card--coffee p { color: rgba(244, 236, 222, 0.9); }
.card--coffee .num { color: var(--paper); }

/* ============================================================
   SKETCH ARROW
   ============================================================ */
.arrow {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.arrow svg { display: block; }

/* ============================================================
   QUOTE WALL
   ============================================================ */
.quote-wall {
  text-align: center;
  padding: 100px 0;
}
.quote-wall__q {
  font-family: var(--font-marker);
  font-size: clamp(36px, 6vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 auto 28px;
  max-width: 18ch;
  position: relative;
}
.quote-wall__q::before {
  content: "“";
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.7em;
  color: var(--orange);
  margin-right: 0.05em;
}
.quote-wall__q::after {
  content: "”";
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.7em;
  color: var(--orange);
}
.quote-wall__q i { color: var(--orange); font-style: normal; }
.quote-wall__by {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--coffee-2);
  transform: rotate(-1deg);
  display: inline-block;
}
.quote-wall__by::before { content: "— "; }

/* ============================================================
   DIAGRAM (handwritten chart)
   ============================================================ */
.diagram {
  background: var(--paper);
  border: 2px dashed var(--line-2);
  border-radius: 6px 16px 8px 14px / 14px 6px 18px 8px;
  padding: 40px;
  position: relative;
}
.diagram h4 {
  font-family: var(--font-marker);
  font-size: 26px;
  margin: 0 0 24px;
  color: var(--ink);
}
.diagram h4 i { color: var(--orange); font-style: normal; }

/* ============================================================
   TIMELINE
   ============================================================ */
.scrap-tl {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}
.scrap-tl::before {
  content: "";
  position: absolute;
  left: 90px; top: 18px; bottom: 18px;
  width: 2px;
  background: var(--coffee);
  background-image: repeating-linear-gradient(to bottom, var(--coffee), var(--coffee) 6px, transparent 6px, transparent 12px);
}
.scrap-tl__i {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  align-items: start;
  position: relative;
}
.scrap-tl__i::before {
  content: "";
  position: absolute;
  left: 84px; top: 22px;
  width: 14px; height: 14px;
  background: var(--orange);
  border: 3px solid var(--paper);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 2px var(--orange);
}
.scrap-tl__y {
  font-family: var(--font-marker);
  font-size: 36px;
  color: var(--ink);
  text-align: right;
  padding-top: 4px;
  transform: rotate(-2deg);
}
.scrap-tl__c {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px 24px;
  box-shadow: 3px 4px 0 rgba(43, 42, 40, 0.06);
  border-radius: 4px 14px 6px 12px / 10px 4px 14px 6px;
  transform: rotate(-0.5deg);
}
.scrap-tl__i:nth-child(2n) .scrap-tl__c { transform: rotate(0.5deg); }
.scrap-tl__c h5 {
  font-family: var(--font-marker);
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--ink);
  line-height: 1.15;
}
.scrap-tl__c h5 i { color: var(--orange); font-style: normal; }
.scrap-tl__c p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ============================================================
   PAGE HEAD (each notebook page)
   ============================================================ */
.page-head {
  padding: 140px 0 60px;
  border-bottom: 2px dashed var(--line-2);
  position: relative;
}
.page-head__pre {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--coffee-2);
  display: inline-block;
  transform: rotate(-1deg);
  margin-bottom: 18px;
}
.page-head__pre::before { content: "📓 "; font-family: serif; }
.page-head h1 {
  margin: 0;
  font-family: var(--font-marker);
  font-size: clamp(46px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 14ch;
}
.page-head h1 i { color: var(--orange); font-style: normal; }
.page-head h1 u { text-decoration: none; position: relative; }
.page-head h1 u::after { content: ""; position: absolute; bottom: 0.05em; left: -3px; right: -3px; height: 0.28em; background: var(--highlight); z-index: -1; }
.page-head__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  margin-top: 40px;
  align-items: end;
}
.page-head__row p {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0;
}
.page-head__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--pencil);
  text-align: right;
}
.page-head__meta b { font-family: var(--font-marker); font-size: 26px; color: var(--ink); }

/* ============================================================
   COLLAGE (для одной из страниц)
   ============================================================ */
.collage {
  position: relative;
  min-height: 600px;
  padding: 40px 0;
}
.collage__c {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 22px;
  box-shadow: 4px 6px 0 rgba(43, 42, 40, 0.08);
  border-radius: 4px 14px 6px 12px / 12px 4px 16px 6px;
  max-width: 320px;
}
.collage__c h4 {
  font-family: var(--font-marker);
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.1;
}
.collage__c p { font-family: var(--font-serif); font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0; }

/* ============================================================
   FORM
   ============================================================ */
.form-page {
  display: grid;
  gap: 22px;
  max-width: 520px;
}
.form-page__row { display: grid; gap: 8px; }
.form-page label {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--orange);
}
.form-page input, .form-page textarea {
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line-2);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  width: 100%;
  border-radius: 4px 12px 6px 10px / 10px 4px 14px 6px;
  transition: border-color .25s ease;
}
.form-page input:focus, .form-page textarea:focus { outline: none; border-color: var(--orange); }
.form-page textarea { resize: vertical; min-height: 130px; }
.btn-hand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-marker);
  font-size: 22px;
  border-radius: 4px 16px 6px 14px / 12px 4px 18px 6px;
  border: 2px solid var(--ink);
  transition: transform .25s ease, background .25s ease;
  transform: rotate(-1deg);
  justify-self: start;
}
.btn-hand:hover { transform: rotate(0) translateY(-3px); background: var(--orange); border-color: var(--orange); }

/* ============================================================
   CONTACT BOARD
   ============================================================ */
.contact-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}
.touch-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 26px;
  position: relative;
  box-shadow: 4px 6px 0 rgba(43, 42, 40, 0.08);
  border-radius: 4px 14px 6px 12px / 12px 4px 18px 6px;
}
.touch-card:nth-child(1) { transform: rotate(-1.5deg); }
.touch-card:nth-child(2) { transform: rotate(1deg); }
.touch-card:nth-child(3) { transform: rotate(-0.5deg); }
.touch-card .tape {
  top: -10px; left: 40px;
  transform: rotate(-4deg);
}
.touch-card .lbl {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--orange);
  display: block;
  margin-bottom: 12px;
}
.touch-card .val {
  font-family: var(--font-marker);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

/* MAP */
.map-box {
  background: var(--paper);
  border: 2px dashed var(--line-2);
  padding: 14px;
  min-height: 480px;
  border-radius: 6px 18px 8px 16px / 14px 6px 20px 8px;
  transform: rotate(-0.5deg);
  box-shadow: 4px 8px 0 rgba(43, 42, 40, 0.08);
}
.map-box iframe {
  width: 100%; height: 100%; min-height: 460px;
  border: 0;
  filter: sepia(0.25) saturate(0.85) contrast(0.95);
  border-radius: 3px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--paper-2);
  padding: 80px 0 32px;
  border-top: 2px dashed var(--line-2);
  position: relative;
  z-index: 1;
}
.footer__sig {
  font-family: var(--font-marker);
  font-size: clamp(40px, 7vw, 100px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 60px;
  color: var(--ink);
  transform: rotate(-1deg);
  max-width: 16ch;
}
.footer__sig i { color: var(--orange); font-style: normal; }
.footer__t {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px dashed var(--line);
}
.footer__brand h5 {
  font-family: var(--font-marker);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}
.footer__brand p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 42ch;
}
.footer__col h5 {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--coffee-2);
  margin: 0 0 16px;
  transform: rotate(-1deg);
  display: inline-block;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__col a { font-family: var(--font-serif); font-size: 15px; color: var(--ink-2); transition: color .2s ease; }
.footer__col a:hover { color: var(--orange); }
.footer__b {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--pencil);
}
.soc { display: flex; gap: 10px; }
.soc a {
  width: 40px; height: 40px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.soc a:hover { background: var(--orange); border-color: var(--orange); color: var(--paper); transform: rotate(-4deg) translateY(-2px); }
.soc svg { width: 16px; height: 16px; fill: currentColor; }

/* ============================================================
   COOKIE (sticky note style)
   ============================================================ */
.cookie {
  position: fixed;
  bottom: 22px; right: 22px;
  max-width: 320px;
  background: var(--tape);
  padding: 20px 22px;
  z-index: 8000;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  transform: rotate(-2deg) translateY(180%);
  transition: transform .55s cubic-bezier(.76,0,.24,1);
  box-shadow: 4px 6px 0 rgba(43, 42, 40, 0.08);
}
.cookie.is-on { transform: rotate(-2deg) translateY(0); }
.cookie p {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
}
.cookie p b { font-family: var(--font-marker); color: var(--orange); font-weight: 400; }
.cookie__ok {
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-marker);
  font-size: 16px;
  border-radius: 3px 12px 5px 10px / 10px 3px 12px 5px;
  white-space: nowrap;
}

/* ============================================================
   REVEAL
   ============================================================ */
.r {
  opacity: 1;
  transform: translateY(36px);
  transition: transform .9s cubic-bezier(.76,0,.24,1), opacity .55s ease;
}
.r.in { transform: translateY(0); }
.r.in.rot-l1 { transform: translateY(0) rotate(-1deg); }
.r.in.rot-r1 { transform: translateY(0) rotate(1deg); }
.r.in.rot-l2 { transform: translateY(0) rotate(-2deg); }
.r.in.rot-r2 { transform: translateY(0) rotate(1.5deg); }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 1100px) {
  .nav-tabs { padding: 14px 20px; }
  .tabs { display: none; }
  .toggle-canvas { display: none; }
  .burger-page { display: block; }
  .welcome__row { grid-template-columns: 1fr; gap: 40px; }
  .s-head { grid-template-columns: 1fr; gap: 22px; }
  .c8, .c7, .c6, .c5, .c4 { grid-column: span 12; }
  .c3 { grid-column: span 6; }
  .canvas-menu__grid { grid-template-columns: repeat(2, 1fr); }
  .contact-board { grid-template-columns: 1fr; }
  .footer__t { grid-template-columns: 1fr 1fr; }
  .scrap-tl::before { left: 70px; }
  .scrap-tl__i { grid-template-columns: 70px 1fr; gap: 18px; }
  .scrap-tl__i::before { left: 64px; }
  .scrap-tl__y { font-size: 26px; }
  .page-head__row { grid-template-columns: 1fr; gap: 28px; }
  .page-head__meta { text-align: left; }
  .collage { display: flex; flex-direction: column; gap: 18px; min-height: auto; }
  .collage__c { position: relative; max-width: none; transform: none!important; left: auto!important; top: auto!important; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 18px; }
  .welcome { padding: 130px 0 60px; min-height: auto; }
  .welcome__title { font-size: 60px; }
  .canvas-menu { padding: 90px 22px 30px; }
  .canvas-menu__grid { grid-template-columns: 1fr; }
  .c3 { grid-column: span 12; }
  .section { padding: 60px 0; }
  .footer__t { grid-template-columns: 1fr; }
  .footer__b { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .soc { justify-self: center; }
  .cookie { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}
