/* =========================================================
   Varshan Prakaash M — Portfolio
   "Whiteboard" UI theme — same content, hand-drawn board look.
   Self-hosted fonts (CSP: font-src 'self').
   ========================================================= */

@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/caveat-500.woff2) format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url(../assets/fonts/caveat-700.woff2) format("woff2"); }
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/kalam-400.woff2) format("woff2"); }
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 700; font-display: swap; src: url(../assets/fonts/kalam-700.woff2) format("woff2"); }

:root {
  color-scheme: light;

  /* Board surface */
  --board: #f6f5ef;
  --board-dot: #dbd9cd;
  --paper: #ffffff;

  /* Ink */
  --ink: #2b2b2b;          /* marker black — headings */
  --ink-soft: #45433d;     /* body text */
  --muted: #82806f;        /* hints */

  /* Pencil / borders */
  --pencil: #ddd9cb;
  --pencil-strong: #c8c4b3;

  /* Marker colours */
  --blue: #2f6fb0;
  --coral: #d65a45;
  --green: #3f9268;
  --amber: #d99000;
  --hl: rgba(255, 221, 87, 0.72);   /* highlighter swipe */

  /* Sticky-note tints */
  --sticky-yellow: #fff4bf;
  --sticky-blue: #d9ecff;
  --sticky-pink: #ffdfe7;
  --sticky-green: #d8f2df;

  /* Fonts */
  --font-marker: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --font-hand: "Kalam", "Comic Sans MS", cursive;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* --- Back-compat aliases (old selectors reference these) --- */
  --background: var(--board);
  --canvas: var(--board);
  --surface: var(--paper);
  --foreground: var(--ink-soft);
  --line: var(--pencil);
  --mist: var(--ink);
  --ember: var(--ink);
  --gold: var(--ink);
  --accent: var(--coral);
  --stone-100: #3a3833;
  --stone-300: #54524b;
  --stone-400: #7a786f;
  --stone-500: #9a978b;
  --amber-100: var(--blue);
  --amber-200: var(--blue);
  --amber-300: var(--coral);
}

* { box-sizing: border-box; border-color: var(--line); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-soft);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--board);
  background-image:
    radial-gradient(var(--board-dot) 1.1px, transparent 1.1px);
  background-size: 24px 24px;
  background-position: -12px -12px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, blockquote, figure { margin: 0; }

/* Headings → marker handwriting */
h1, h2, h3 {
  font-family: var(--font-marker);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}

/* ------------------------------------------------------------------ */
/* Layout primitives                                                   */
/* ------------------------------------------------------------------ */

.section-shell {
  margin-inline: auto;
  width: 100%;
  max-width: 80rem;
  padding: 4rem 1rem;
}

@media (min-width: 640px) { .section-shell { padding: 5rem 2rem; } }
@media (min-width: 1024px) { .section-shell { padding-inline: 3rem; } }

.scroll-mt { scroll-margin-top: 6rem; }

/* Marker tab labels (eyebrows) */
.section-eyebrow,
.eyebrow-xs,
.eyebrow-xs-soft,
.hero-role,
.hero-card-head p,
.mini-card p:first-child,
.skill-group > p,
.post-card .date,
.exp-period,
.testimonials-head p,
.article-cta .eyebrow,
.confirm-card .eyebrow,
.contact-field .label,
.article > .date {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--blue);
}

.section-eyebrow {
  display: inline-block;
  padding: 0.05rem 0.55rem;
  border: 1.5px solid var(--blue);
  border-radius: 4px 10px 6px 12px;
  transform: rotate(-1.2deg);
}

.section-title {
  margin-top: 0.9rem;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--ink);
}

@media (min-width: 640px) { .section-title { font-size: 2.6rem; } }

.section-copy {
  margin-top: 1rem;
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.7rem;
  color: var(--ink-soft);
}

.max-w-3xl { max-width: 48rem; }
.mb-10 { margin-bottom: 2.5rem; }

/* ------------------------------------------------------------------ */
/* Paper panels                                                        */
/* ------------------------------------------------------------------ */

.panel {
  background: var(--paper);
  border: 1px solid var(--pencil);
  border-radius: 10px;
  box-shadow: 0 1px 0 var(--pencil-strong), 0 6px 16px rgba(40, 38, 30, 0.06);
}

.accent-ring { box-shadow: 2px 3px 0 rgba(43, 43, 43, 0.06), 0 6px 18px rgba(40, 38, 30, 0.07); }

/* Hero "what I fix" card keeps a faint board grid */
.grid-highlight {
  background-image:
    linear-gradient(rgba(43, 43, 43, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 43, 43, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
}

.shadow-glow { box-shadow: 3px 5px 0 rgba(43, 43, 43, 0.08), 0 18px 40px rgba(40, 38, 30, 0.1); }
.bg-grain { background-image: none; }

/* Highlighter swipe behind the hero headline */
.text-gradient {
  color: var(--ink);
  background-image: linear-gradient(180deg, transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.08em;
}

.rounded-2xl { border-radius: 12px; }
.rounded-3xl { border-radius: 14px; }

/* ------------------------------------------------------------------ */
/* Buttons — marker style                                              */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-block;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fdfdf8;
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(43, 43, 43, 0.28);
}

.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(43, 43, 43, 0.32); }
.btn-primary:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(43, 43, 43, 0.3); }
.btn-primary:disabled { opacity: 0.55; cursor: default; box-shadow: none; }

.btn-secondary {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(43, 43, 43, 0.12);
}

.btn-secondary:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(43, 43, 43, 0.16); }

.btn-ghost {
  display: inline-block;
  border-radius: 8px;
  border: 1.5px solid var(--blue);
  padding: 0.55rem 1.1rem;
  font-family: var(--font-hand);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
  background: var(--paper);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-ghost:hover { background: rgba(47, 111, 176, 0.08); transform: translateY(-1px); }

/* ------------------------------------------------------------------ */
/* Section rail — pinned note tabs                                     */
/* ------------------------------------------------------------------ */

.rail { position: fixed; right: 1.25rem; top: 50%; z-index: 40; transform: translateY(-50%); display: none; }

@media (min-width: 1280px) { .rail { display: block; } }

.rail .panel { border-radius: 12px; padding: 0.6rem; transform: rotate(1.5deg); }
.rail nav { display: flex; flex-direction: column; gap: 0.3rem; }

.rail a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-radius: 6px; padding: 0.5rem 0.85rem;
  font-family: var(--font-hand); font-size: 1rem; color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.rail a:hover { background: rgba(43, 43, 43, 0.05); color: var(--ink); }

.rail a .dot {
  height: 0.7rem; width: 0.7rem; border-radius: 9999px;
  background: transparent; border: 1.5px solid var(--pencil-strong);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.rail a.active { background: var(--sticky-yellow); color: var(--ink); }
.rail a.active .dot { background: var(--coral); border-color: var(--coral); }
.rail a span:first-child { font-weight: 700; }

.rail-mobile { position: fixed; inset-inline: 0; bottom: 1rem; z-index: 40; padding-inline: 1rem; }

@media (min-width: 1280px) { .rail-mobile { display: none; } }

.rail-mobile .panel { margin-inline: auto; max-width: 100%; border-radius: 9999px; padding: 0.35rem; }
.rail-mobile nav { display: flex; width: 100%; align-items: center; justify-content: space-evenly; }

.rail-mobile a {
  border-radius: 9999px; padding: 0.45rem 0.7rem;
  font-family: var(--font-hand); font-size: 0.85rem; font-weight: 700; color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.rail-mobile a:hover, .rail-mobile a.active { background: var(--sticky-yellow); color: var(--ink); }

@media (min-width: 640px) { .rail-mobile a { padding: 0.55rem 1rem; font-size: 0.95rem; } }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero { position: relative; display: flex; min-height: 100svh; flex-direction: column; justify-content: center; }

@media (min-width: 1024px) { .hero { display: block; min-height: 0; } }

.hero .grain-layer { display: none; }

.hero-grid {
  position: relative; display: grid; align-items: center; gap: 2.5rem;
  padding: 1.5rem 1rem 7rem; margin-inline: auto; width: 100%; max-width: 80rem;
}

@media (min-width: 640px) { .hero-grid { gap: 3.5rem; padding: 2rem 2rem 7rem; } }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.2fr 0.8fr; padding-inline: 3rem; } }
@media (min-width: 1280px) { .hero-grid { padding-right: 7rem; } }

.hero-id { margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }

@media (min-width: 640px) { .hero-id { margin-bottom: 2rem; gap: 1rem; } }

/* Taped portrait */
.hero-avatar {
  position: relative; height: 3rem; width: 3rem; overflow: visible; border-radius: 4px;
  border: 1px solid var(--pencil); background: var(--paper); flex-shrink: 0;
  transform: rotate(-3deg); box-shadow: 0 3px 8px rgba(40, 38, 30, 0.15);
}

.hero-avatar img { height: 100%; width: 100%; object-fit: cover; border-radius: 3px; }

.hero-avatar::before {
  content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(4deg);
  width: 30px; height: 13px; background: rgba(255, 221, 87, 0.55); border: 1px dashed rgba(43, 43, 43, 0.12);
}

@media (min-width: 640px) { .hero-avatar { height: 3.5rem; width: 3.5rem; } }

.hero-role { font-size: 0.95rem; color: var(--blue); }
.hero-name { font-family: var(--font-marker); font-weight: 700; font-size: 1.35rem; color: var(--ink); }

.hero h1 {
  margin-top: 1.1rem; max-width: 56rem;
  font-size: 2.9rem; line-height: 1.04; color: var(--ink);
}

@media (min-width: 640px) { .hero h1 { margin-top: 1.4rem; font-size: 4.4rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 5.2rem; } }

.hero-lead {
  margin-top: 1.5rem; max-width: 42rem; font-size: 1.05rem; line-height: 1.7rem; color: var(--ink-soft);
}

@media (min-width: 640px) { .hero-lead { margin-top: 1.75rem; font-size: 1.2rem; line-height: 1.9rem; } }

.hero-actions { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }

@media (min-width: 640px) { .hero-actions { margin-top: 2.25rem; flex-direction: row; gap: 1rem; } }

/* Hero side card — pinned note */
.hero-card { display: none; }

@media (min-width: 1024px) {
  .hero-card { display: grid; position: relative; overflow: visible; border-radius: 12px; padding: 2rem; transform: rotate(1.4deg); }
}

.hero-card::before {
  content: ""; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #ff8c79, #d6453d 65%);
  box-shadow: 0 3px 4px rgba(43, 43, 43, 0.3); z-index: 2;
}

.hero-card .top-line { display: none; }
.hero-card-inner { position: relative; }
.hero-card-inner > * + * { margin-top: 1.75rem; }

.hero-card-head { display: flex; align-items: center; justify-content: space-between; }

.badge {
  white-space: nowrap; font-family: var(--font-hand); font-weight: 700;
  border-radius: 4px; border: 1.5px solid var(--green); background: var(--sticky-green);
  padding: 0.2rem 0.7rem; font-size: 0.8rem; color: #25634a; transform: rotate(2deg);
}

.hero-card-feature { border-radius: 10px; border: 1px dashed var(--pencil-strong); background: rgba(43, 43, 43, 0.015); padding: 1.75rem; }

.hero-card-icon {
  position: relative; height: 6rem; width: 6rem; overflow: visible; border-radius: 4px;
  border: 1px solid var(--pencil); background: var(--paper); transform: rotate(-2.5deg);
  box-shadow: 0 4px 10px rgba(40, 38, 30, 0.15);
}

.hero-card-icon img { height: 100%; width: 100%; object-fit: cover; border-radius: 3px; }

.hero-card-icon::before {
  content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(-5deg);
  width: 46px; height: 16px; background: rgba(217, 236, 255, 0.7); border: 1px dashed rgba(43, 43, 43, 0.12);
}

.hero-card-feature h3 { margin-top: 1.5rem; font-size: 1.9rem; color: var(--ink); }
.hero-card-feature p { margin-top: 0.6rem; font-size: 0.95rem; line-height: 1.6rem; color: var(--ink-soft); }

.hero-card-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }

.mini-card { border-radius: 8px; border: 1px solid var(--pencil); background: rgba(43, 43, 43, 0.02); padding: 1.1rem; }
.mini-card p:first-child { font-size: 0.85rem; color: var(--coral); }
.mini-card p + p { margin-top: 0.4rem; font-size: 0.9rem; line-height: 1.45rem; color: var(--ink-soft); }

.scroll-cue { position: absolute; bottom: 5rem; left: 50%; transform: translateX(-50%); color: var(--coral); animation: bounce 1s infinite; }

@media (min-width: 1024px) { .scroll-cue { display: none; } }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: translateX(-50%) translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

/* ------------------------------------------------------------------ */
/* Card grids                                                          */
/* ------------------------------------------------------------------ */

.grid { display: grid; gap: 1.75rem; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Generic card */
.card { display: flex; flex-direction: column; border-radius: 10px; padding: 1.5rem; }
.card h3 { margin-top: 0.75rem; font-size: 1.7rem; color: var(--ink); }
.card .lead { margin-top: 0.75rem; font-size: 0.95rem; line-height: 1.6rem; color: var(--ink-soft); }
.card .stack { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }

.inset { border-radius: 8px; border: 1px solid rgba(43, 43, 43, 0.1); background: rgba(255, 255, 255, 0.55); padding: 0.9rem; }
.inset p + p { margin-top: 0.4rem; font-size: 0.9rem; line-height: 1.4rem; color: var(--ink-soft); }

.card .btn-ghost { margin-top: 1.25rem; align-self: flex-start; }

/* Services as sticky notes */
#services .grid-3 > .card { position: relative; margin-top: 10px; transition: transform 0.18s ease, box-shadow 0.18s ease; }
#services .grid-3 > .card::before {
  content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 2px 3px rgba(43, 43, 43, 0.3);
}
#services .grid-3 > .card:nth-child(1) { background: var(--sticky-yellow); transform: rotate(-1.3deg); }
#services .grid-3 > .card:nth-child(1)::before { background: radial-gradient(circle at 35% 32%, #ffd45e, #d99000 70%); }
#services .grid-3 > .card:nth-child(2) { background: var(--sticky-blue); transform: rotate(0.9deg); }
#services .grid-3 > .card:nth-child(2)::before { background: radial-gradient(circle at 35% 32%, #6fa8e6, #2f6fb0 70%); }
#services .grid-3 > .card:nth-child(3) { background: var(--sticky-pink); transform: rotate(-0.6deg); }
#services .grid-3 > .card:nth-child(3)::before { background: radial-gradient(circle at 35% 32%, #ff8c79, #d6453d 70%); }
#services .grid-3 > .card:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 14px 26px rgba(40, 38, 30, 0.16); }

/* About */
.prose-block { margin-top: 1.5rem; max-width: 48rem; display: flex; flex-direction: column; gap: 1.1rem; font-size: 1.02rem; line-height: 1.9rem; color: var(--ink-soft); }

/* Deliverables — checklist on the board */
.deliverables { display: grid; gap: 0.85rem; grid-template-columns: 1fr; margin-top: 1.5rem; }

@media (min-width: 640px) { .deliverables { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .deliverables { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .deliverables { grid-template-columns: repeat(5, 1fr); } }

.deliverables .inset {
  position: relative; display: flex; align-items: center; min-height: 2.6rem;
  padding: 0.35rem 0.4rem 0.35rem 2.5rem;
  background: transparent; border: none; border-radius: 0;
}
.deliverables .inset::before {
  content: ""; position: absolute; left: 0.1rem; top: 50%; transform: translateY(-50%) rotate(-2deg);
  width: 1.5rem; height: 1.5rem; border: 2px solid var(--green); border-radius: 5px;
  background: rgba(63, 146, 104, 0.1);
}
.deliverables .inset::after {
  content: "\2713"; position: absolute; left: 0.34rem; top: 50%; transform: translateY(-60%);
  font-family: var(--font-hand); font-weight: 700; color: var(--green); font-size: 1.35rem; line-height: 1;
}
.deliverables .inset p { font-size: 0.93rem; font-weight: 500; line-height: 1.35rem; color: var(--ink); margin: 0; }

/* Process — boxes joined by drawn arrows */
.step { position: relative; }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 2px solid var(--blue); color: var(--blue);
  font-family: var(--font-marker); font-weight: 700; font-size: 1.5rem;
}
.step h3 { margin-top: 0.9rem; font-size: 1.4rem; color: var(--ink); }
.step p { margin-top: 0.6rem; font-size: 0.92rem; line-height: 1.55rem; color: var(--ink-soft); }

@media (min-width: 1024px) {
  .grid-4 .step:not(:last-child)::after {
    content: ""; position: absolute; right: -1.65rem; top: 2.2rem;
    width: 34px; height: 22px; background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='22'%3E%3Cpath d='M2 13 Q17 3 32 11' stroke='%232b2b2b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Cpath d='M25 6 L33 11 L24 15' stroke='%232b2b2b' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

/* Skills — marker chips */
.skill-group { border-radius: 10px; padding: 1.75rem; }
.skill-group > p { font-size: 0.95rem; color: var(--blue); }
.skill-grid { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }

.skill {
  border-radius: 9999px; border: 1.5px solid var(--pencil-strong); background: var(--paper);
  padding: 0.4rem 0.9rem; transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.skill:hover { transform: translateY(-2px) rotate(-1deg); border-color: var(--blue); background: rgba(47, 111, 176, 0.06); }
.skill p { font-family: var(--font-hand); font-size: 0.88rem; font-weight: 400; color: var(--ink); margin: 0; }

/* Experience — marker timeline */
.timeline { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.5rem; }
.exp { position: relative; border-radius: 10px; padding: 2rem; }
.exp::before { content: ""; position: absolute; left: 2rem; top: 1rem; height: calc(100% - 2rem); width: 0; border-left: 2px dashed var(--pencil-strong); }
.exp-inner { position: relative; padding-left: 2.5rem; }

.exp-marker {
  position: absolute; left: -0.35rem; top: 0.1rem; display: flex; height: 1.7rem; width: 1.7rem;
  align-items: center; justify-content: center; border-radius: 9999px;
  background: var(--paper); border: 2px solid var(--coral); color: var(--coral);
  font-family: var(--font-marker); font-size: 1rem; font-weight: 700;
}

.exp-head { display: flex; flex-direction: column; gap: 0.4rem; }

@media (min-width: 640px) { .exp-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

.exp-head h3 { font-size: 1.7rem; color: var(--ink); }
.exp-head .company { margin-top: 0.2rem; font-family: var(--font-hand); font-weight: 700; color: var(--blue); }
.exp-period { font-size: 0.9rem; color: var(--muted); }

.exp ul { margin-top: 1.5rem; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.95rem; line-height: 1.6rem; color: var(--ink-soft); }
.exp li { display: flex; gap: 0.7rem; }
.exp li::before { content: "\2713"; margin-top: 0.05rem; flex-shrink: 0; font-family: var(--font-hand); font-weight: 700; color: var(--green); }

/* Writing — index cards pinned to the board */
.post-card { position: relative; margin-top: 10px; border-radius: 10px; padding: 1.5rem; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.post-card::before {
  content: ""; position: absolute; top: -7px; left: 1.6rem; width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #6fa8e6, #2f6fb0 70%); box-shadow: 0 2px 3px rgba(43, 43, 43, 0.28);
}
#insights .post-card:nth-child(3n+1) { transform: rotate(-1.1deg); }
#insights .post-card:nth-child(3n+2) { transform: rotate(0.8deg); }
#insights .post-card:nth-child(3n+3) { transform: rotate(-0.5deg); }
#insights .post-card:nth-child(3n+2)::before { background: radial-gradient(circle at 35% 32%, #ffd45e, #d99000 70%); }
#insights .post-card:nth-child(3n+3)::before { background: radial-gradient(circle at 35% 32%, #ff8c79, #d6453d 70%); }
.post-card:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 14px 26px rgba(40, 38, 30, 0.16); }

.post-card .date { color: var(--coral); }
.post-card h3 { margin-top: 0.75rem; font-size: 1.55rem; color: var(--ink); }
.post-card .excerpt { margin-top: 0.75rem; font-size: 0.93rem; line-height: 1.55rem; color: var(--ink-soft); }
.post-card .foot { margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.post-card .read-time { font-family: var(--font-hand); font-size: 0.85rem; color: var(--muted); }
.post-card .read-link { font-family: var(--font-hand); font-size: 0.95rem; font-weight: 700; color: var(--blue); }
.post-card .read-link:hover { color: var(--coral); }

/* Testimonials — quote pinned to the board */
.testimonials { border-radius: 10px; padding: 2rem; }
.testimonials-head { display: flex; align-items: center; justify-content: space-between; }
.testimonials-head p { font-size: 0.95rem; color: var(--blue); }
.dots { display: flex; gap: 0.4rem; }
.dots button { height: 0.7rem; width: 1.6rem; border-radius: 9999px; border: 1.5px solid var(--pencil-strong); background: transparent; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.dots button.active { background: var(--coral); border-color: var(--coral); }

.testimonials blockquote { margin-top: 1.75rem; font-family: var(--font-marker); font-size: 1.6rem; line-height: 1.5; color: var(--ink); }

@media (min-width: 640px) { .testimonials blockquote { font-size: 2rem; } }

.testimonials .who { margin-top: 1.25rem; }
.testimonials .who .name { font-family: var(--font-hand); font-weight: 700; color: var(--blue); }
.testimonials .who .title { font-size: 0.9rem; color: var(--muted); }

/* Mid-page CTA */
.cta-block { border-radius: 12px; padding: 2.5rem; text-align: center; background: var(--sticky-yellow); border: 1px solid var(--pencil-strong); transform: rotate(-0.6deg); }
.cta-block h2 { font-size: 2rem; color: var(--ink); }

@media (min-width: 640px) { .cta-block h2 { font-size: 2.4rem; } }

.cta-block p { margin-inline: auto; margin-top: 0.85rem; max-width: 36rem; color: var(--ink-soft); }
.cta-block .btn { margin-top: 1.75rem; padding: 0.8rem 2rem; }

/* FAQ — sticky notes */
.faq { position: relative; }
#faq .grid-2 > .faq:nth-child(odd) { background: var(--sticky-yellow); transform: rotate(-0.7deg); }
#faq .grid-2 > .faq:nth-child(even) { background: var(--sticky-blue); transform: rotate(0.7deg); }
.faq h3 { font-size: 1.35rem; color: var(--ink); }
.faq p { margin-top: 0.75rem; font-size: 0.93rem; line-height: 1.55rem; color: var(--ink-soft); }

/* Contact */
.contact-list { margin-top: 1rem; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.95rem; color: var(--ink-soft); }
.contact-list li { position: relative; padding-left: 1.4rem; }
.contact-list li::before { content: "\2192"; position: absolute; left: 0; font-family: var(--font-hand); font-weight: 700; color: var(--coral); }

.contact-grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }

@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.42fr 0.58fr; } }

.contact-aside { border-radius: 10px; padding: 2rem; background: var(--sticky-blue); border: 1px solid var(--pencil-strong); transform: rotate(-0.8deg); }
.contact-aside h3 { margin-top: 0.6rem; font-size: 1.7rem; color: var(--ink); }
.contact-aside .lead { margin-top: 0.75rem; font-size: 0.95rem; line-height: 1.6rem; color: var(--ink-soft); }
.contact-aside .stack { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }

.contact-field { border-radius: 8px; border: 1px solid rgba(43, 43, 43, 0.12); background: rgba(255, 255, 255, 0.6); padding: 1rem 1.1rem; }
.contact-field .label { color: var(--blue); }
.contact-field .value { margin-top: 0.35rem; font-size: 1rem; font-weight: 500; color: var(--ink); }
.contact-field a.value { color: var(--blue); }
.contact-field a.value:hover { color: var(--coral); }
.contact-field .small { margin-top: 0.35rem; font-size: 0.9rem; color: var(--ink-soft); }

/* Form — notepad */
.form { border-radius: 10px; padding: 2rem; transform: rotate(0.4deg); }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }

@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.4rem; font-family: var(--font-hand); font-weight: 700; font-size: 0.95rem; color: var(--ink); }

.field input, .field textarea {
  width: 100%; border-radius: 6px; border: 1.5px solid var(--pencil-strong); background: var(--paper);
  padding: 0.7rem 0.9rem; color: var(--ink); font-family: var(--font-body); font-weight: 400; font-size: 1rem;
  outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 2px 2px 0 rgba(47, 111, 176, 0.15); }

.field-full { margin-top: 1.1rem; }
.field .optional { color: var(--muted); font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }

@media (min-width: 640px) { .form-foot { flex-direction: row; align-items: center; justify-content: space-between; } }

.form-foot p { font-family: var(--font-hand); font-size: 0.9rem; color: var(--muted); }

/* ------------------------------------------------------------------ */
/* Article (blog) body                                                 */
/* ------------------------------------------------------------------ */

.article-page {
  min-height: 100vh; padding: 4rem 1.5rem;
  background-color: var(--board);
  background-image: radial-gradient(var(--board-dot) 1.1px, transparent 1.1px);
  background-size: 24px 24px; background-position: -12px -12px;
}

@media (min-width: 640px) { .article-page { padding-inline: 2rem; } }

.article { margin-inline: auto; max-width: 48rem; background: var(--paper); border: 1px solid var(--pencil); border-radius: 12px; box-shadow: 0 10px 30px rgba(40, 38, 30, 0.08); padding: 2.5rem 2rem; }

@media (min-width: 640px) { .article { padding: 3rem 3rem; } }

.back-link { font-family: var(--font-hand); font-weight: 700; font-size: 0.95rem; color: var(--blue); }
.back-link:hover { color: var(--coral); }

.article > .date { margin-top: 2rem; color: var(--coral); }
.article > h1 { margin-top: 0.75rem; font-size: 2.6rem; line-height: 1.08; color: var(--ink); }

@media (min-width: 640px) { .article > h1 { font-size: 3.2rem; } }

.article > .excerpt { margin-top: 1rem; font-size: 1.1rem; color: var(--ink-soft); }

.article-body { margin-top: 2.5rem; }
.article-body h2 { margin-top: 2.25rem; font-size: 1.7rem; color: var(--ink); }
.article-body p { margin-top: 1.1rem; font-size: 1.02rem; line-height: 1.9rem; color: var(--ink-soft); }
.article-body ul { margin-top: 1.1rem; padding-left: 1.5rem; list-style: none; display: flex; flex-direction: column; gap: 0.6rem; font-size: 1.02rem; line-height: 1.8rem; color: var(--ink-soft); }
.article-body ul li { position: relative; padding-left: 1.3rem; }
.article-body ul li::before { content: "\2013"; position: absolute; left: 0; color: var(--coral); font-family: var(--font-hand); font-weight: 700; }
.article-body hr { margin-top: 2rem; border: none; border-top: 2px dashed var(--pencil-strong); }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body em { color: var(--ink); font-style: italic; }

.article-cta { margin-top: 3.5rem; border-radius: 10px; border: 1px solid var(--pencil-strong); background: var(--sticky-yellow); padding: 2rem; transform: rotate(-0.5deg); }
.article-cta .eyebrow { color: var(--coral); }
.article-cta h2 { margin-top: 0.6rem; font-size: 1.7rem; color: var(--ink); }
.article-cta p { margin-top: 0.75rem; font-size: 0.95rem; line-height: 1.6rem; color: var(--ink-soft); }
.article-cta .btn { margin-top: 1.5rem; padding: 0.7rem 1.5rem; }

/* ------------------------------------------------------------------ */
/* Inquiry submitted                                                   */
/* ------------------------------------------------------------------ */

.confirm-page {
  min-height: 100vh; padding: 3rem 1rem;
  background-color: var(--board);
  background-image: radial-gradient(var(--board-dot) 1.1px, transparent 1.1px);
  background-size: 24px 24px; background-position: -12px -12px;
}

@media (min-width: 640px) { .confirm-page { padding-inline: 2rem; } }

.confirm-wrap { margin-inline: auto; display: flex; min-height: 80vh; max-width: 48rem; align-items: center; }
.confirm-card { width: 100%; border-radius: 12px; padding: 2rem; transform: rotate(-0.6deg); }

@media (min-width: 640px) { .confirm-card { padding: 3rem; } }

.confirm-card .eyebrow { color: var(--coral); }
.confirm-card h1 { margin-top: 0.75rem; font-size: 2.4rem; color: var(--ink); }

@media (min-width: 640px) { .confirm-card h1 { font-size: 3rem; } }

.confirm-card p { margin-top: 1.25rem; max-width: 42rem; font-size: 1rem; line-height: 1.9rem; color: var(--ink-soft); }
.confirm-actions { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }

@media (min-width: 640px) { .confirm-actions { flex-direction: row; } }

/* ------------------------------------------------------------------ */
/* Utilities                                                           */
/* ------------------------------------------------------------------ */

.pt-0 { padding-top: 0 !important; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.mt-12 { margin-top: 3rem; }

.flex-between { display: flex; flex-direction: column; gap: 1rem; }

@media (min-width: 640px) { .flex-between { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------------ */
/* Products                                                            */
/* ------------------------------------------------------------------ */

.product-card { padding: 2rem; }

.product-card-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.product-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  height: 3.5rem; width: 3.5rem; border-radius: 10px; border: 1px solid var(--pencil);
  background: var(--sticky-blue); font-family: var(--font-marker); font-weight: 700;
  font-size: 1.2rem; color: var(--blue); transform: rotate(-2deg);
  box-shadow: 0 3px 8px rgba(40, 38, 30, 0.12);
}

.product-card-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.btn-disabled { opacity: 0.6; cursor: default; pointer-events: none; }

/* Scroll-reveal (progressive enhancement via main.js) */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .panel, .card, .post-card, .faq, .hero-card, .cta-block, .contact-aside, .form, .confirm-card, .rail .panel { transform: none !important; }
}
