/* ==========================================================================
   BASE & SKETCHBOOK CANVAS
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper-bg);
  color: var(--canvas-ink);
  font-family: var(--font-primary);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper-bg);
  color: var(--canvas-ink);
  font-size: 1.188rem;
  overflow-x: clip;
  line-height: 1.55;
}

button,
a {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Tactile paper grain overlay (<2KB inline SVG data URI) */
.svg-defs-host {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
}

.paper-grain-overlay {
  position: fixed;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.28'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Stop-motion hand-drawn boil filter */
.boil-ink {
  filter: url(#procreate-boil);
}

/* Main Shell */
.studio-shell {
  position: relative;
  min-height: 100vh;
}

.studio-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 calc(var(--side-rail-width) + 28px) 64px 32px;
}

/* Typography Utilities */
.mono-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.912rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.mono-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.892rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--paper-surface);
  color: var(--ink);
}

.mono-chip--subtle {
  border-color: var(--ink-faint);
  color: var(--ink-soft);
}

.mono-chip--tiny {
  font-size: 0.843rem;
  padding: 3px 8px;
  border-color: var(--ink-faint);
}

.hand-note {
  font-family: var(--font-hand);
  font-size: 1.433rem;
  line-height: 1.25;
  color: var(--ink-soft);
  margin: 0;
}

.hand-note--eyebrow {
  font-size: 1.573rem;
  margin-bottom: 10px;
}

.rough-highlight-wrap {
  display: inline;
  white-space: nowrap;
}

/* Paper Buttons */
.btn-paper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--paper-surface);
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: 1.073rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 2px 3px 0 var(--ink);
  transition: transform var(--dur-quick) var(--ease-playful), box-shadow var(--dur-quick) ease;
}

.btn-paper:hover:not(:disabled) {
  transform: translate(-1px, -2px);
  box-shadow: 3px 5px 0 var(--ink);
}

.btn-paper:active:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-paper:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-paper--ink {
  background: var(--brand-bistre);
  color: var(--brand-vanilla);
}

.btn-paper--ink:hover:not(:disabled) {
  background: var(--brand-yellow);
  color: var(--ink);
}

.btn-paper--sm {
  padding: 7px 13px;
  font-size: 0.993rem;
}

/* Paper Tape Accent */
.paper-tape {
  position: absolute;
  width: 72px;
  height: 22px;
  background: var(--paper-tape);
  border: 1px dashed rgba(102, 20, 14, 0.22);
  box-shadow: 0 2px 5px rgba(102, 20, 14, 0.12);
  z-index: 4;
}

.paper-tape--tl {
  top: -10px;
  left: 22px;
  transform: rotate(-8deg);
}

.paper-tape--tr {
  top: -10px;
  right: 22px;
  transform: rotate(7deg);
}

.paper-tape--top {
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
}

/* ==========================================================================
   PERSISTENT SIDE FILE-TABS RAIL
   ========================================================================== */
.side-tabs-rail {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 60;
  padding-right: 0;
  transition: opacity 0.36s var(--ease-paper), transform 0.36s var(--ease-paper);
}

.side-tabs-rail.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(28px, -50%);
}

.side-tabs-rail.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.side-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 50px;
  padding: 14px 8px;
  border: 1.5px solid var(--ink);
  border-right: none;
  border-radius: 12px 0 0 12px;
  background: var(--brand-vanilla);
  color: var(--ink);
  box-shadow: -3px 3px 0 rgba(102, 20, 14, 0.22);
  transform: translateX(6px);
  transition: transform var(--dur-quick) var(--ease-playful), background var(--dur-quick) ease,
    color var(--dur-quick) ease;
}

.side-tab--portfolio {
  background: var(--brand-yellow);
  color: var(--ink);
}
.side-tab--experience {
  background: var(--brand-auburn);
  color: var(--brand-vanilla);
}
.side-tab--education {
  background: var(--brand-vanilla);
  color: var(--ink);
}
.side-tab--hobbies {
  background: var(--brand-yellow);
  color: var(--ink);
}

.side-tab:hover,
.side-tab.is-active {
  transform: translateX(0);
}

.side-tab.is-active {
  background: var(--brand-bistre);
  color: var(--brand-vanilla);
  border-color: var(--brand-vanilla);
  box-shadow: -4px 4px 0 rgba(102, 20, 14, 0.34);
}

.side-tab__num {
  font-family: var(--font-mono);
  font-size: 0.853rem;
  opacity: 0.78;
}

.side-tab__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-primary);
  font-size: 0.953rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   STAGE 1 — FULL-SCREEN PAPER FORTUNE TELLER LANDING (100VW × 100SVH)
   Native sticky runway guarantees buttery forward peel AND automatic reverse
   back to the intact landing page when scrolling back up!
   ========================================================================== */
.landing-wrapper {
  width: 100%;
  position: relative;
}

.ft-scroll-runway {
  position: relative;
  width: 100%;
  height: 178svh;
  background: var(--hero-backdrop);
}

.ft-fullscreen-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px 16px;
  overflow: hidden;
  background: radial-gradient(
    circle at 50% 48%,
    var(--hero-backdrop-light) 0%,
    var(--hero-backdrop) 56%,
    var(--hero-backdrop-deep) 100%
  );
  color: var(--hero-ink);
}

/* Soft off-white veil that finishes parting into the portfolio world */
.ft-reveal-veil {
  position: absolute;
  inset: 0;
  background: var(--paper-bg);
  opacity: 0;
  pointer-events: none;
  z-index: 30;
}

/* Whisper-quiet signature bar — zero boxes, zero pills */
.ft-topbar {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-family: var(--font-primary);
  font-size: 1.073rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--hero-ink-soft);
}

.ft-signature,
.ft-signature-role {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--hero-ink);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(1.01rem, calc(1.12vw + 3px), 1.17rem);
  line-height: 1;
  opacity: 0.88;
}

/* Compact Chunky Bold Display Headline so Fortune Teller Commands the Screen */
.ft-headline-scrub {
  position: relative;
  z-index: 10;
  margin-top: clamp(22px, 3.4vh, 42px);
  margin-bottom: clamp(10px, 1.6vh, 20px);
}

.ft-hero-headline {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
}

.ft-headline-kicker {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: clamp(1.04rem, calc(1.4vw + 3px), 1.34rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--hero-ink);
  margin-bottom: 2px;
  padding-left: 0.34em;
}

.ft-headline-display {
  margin: 0;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: clamp(1.69rem, calc(3vw + 3px), 2.74rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--hero-ink);
  text-shadow: 0 6px 26px rgba(102, 20, 14, 0.18);
}

.ft-headline-whisper {
  margin: 8px 0 0;
  min-height: 1.6em;
  line-height: 1.3;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(1.34rem, calc(1.8vw + 3px), 1.57rem);
  color: var(--hero-ink);
  opacity: 0.92;
  letter-spacing: 0.04em;
  transition: color 0.18s ease, font-weight 0.15s ease, font-size 0.15s ease;
}

.ft-headline-whisper.is-hovered {
  font-weight: 700;
  font-size: clamp(1.5rem, calc(1.9vw + 4px), 1.75rem);
  opacity: 1;
}

/* MAXIMUM-PRESENCE Sculpted 3D Origami Stage */
.origami-canvas {
  position: relative;
  z-index: 8;
  flex: 1 1 auto;
  width: 100%;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 4px 0;
}

.origami-entrance-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.origami-stage-tilt {
  position: relative;
  width: min(92vw, 72vh, 760px);
  aspect-ratio: 1 / 1;
  transform: rotate(0deg);
  transform-origin: center center;
  will-change: transform;
}

.origami-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

.origami-chatter-rig {
  transform-origin: 485px 525px;
}

.origami-petal-scrub {
  transform-origin: 500px 515px;
}

.origami-petal {
  cursor: pointer;
  transform-origin: 500px 515px;
  outline: none;
  pointer-events: all;
  transition: filter 0.28s var(--ease-playful);
}

.petal-hit-target {
  cursor: pointer !important;
  pointer-events: all !important;
  outline: none;
}

.procreate-flap-img {
  pointer-events: none;
  /* Preserve Raaga's true Procreate painted flap colors cleanly */
  mix-blend-mode: normal;
}

/* Individual Flap Drop Shadows along hand-drawn contours where they overlap */
.origami-petal--tl,
.origami-petal--portfolio {
  filter: drop-shadow(8px 10px 14px rgba(102, 20, 14, 0.3)) drop-shadow(2px 3px 4px rgba(102, 20, 14, 0.18));
}

.origami-petal--tr,
.origami-petal--experience {
  filter: drop-shadow(-8px 10px 14px rgba(102, 20, 14, 0.3)) drop-shadow(-2px 3px 4px rgba(102, 20, 14, 0.18));
}

.origami-petal--bl,
.origami-petal--education {
  filter: drop-shadow(8px -8px 14px rgba(102, 20, 14, 0.28)) drop-shadow(2px -2px 4px rgba(102, 20, 14, 0.16));
}

.origami-petal--br,
.origami-petal--hobbies {
  filter: drop-shadow(-8px -8px 14px rgba(102, 20, 14, 0.28)) drop-shadow(-2px -2px 4px rgba(102, 20, 14, 0.16));
}

/* Stand-out chosen/hovered state — lifts high with a deeper, floating shadow */
.origami-petal:hover,
.origami-petal.is-chosen,
.origami-petal:focus-visible {
  filter: drop-shadow(0 24px 40px rgba(102, 20, 14, 0.38)) drop-shadow(0 6px 14px rgba(102, 20, 14, 0.22)) !important;
}

.petal-label {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 29px;
  letter-spacing: -0.015em;
  fill: var(--brand-vanilla);
  pointer-events: none;
  transition: transform 0.25s ease, fill 0.2s ease;
}

.petal-num {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: 0.08em;
  fill: rgba(244, 212, 166, 0.85);
  pointer-events: none;
  transition: transform 0.25s ease;
}

/* Light flap uses deep Sunset Flame & Spiced Berry ink for high contrast */
.origami-petal--portfolio .petal-label {
  fill: var(--ink);
}

.origami-petal--portfolio .petal-num {
  fill: var(--brand-auburn);
}

.origami-petal:hover .petal-label {
  fill: #F4D4A6;
}

.origami-petal--portfolio:hover .petal-label {
  fill: var(--brand-auburn);
}

/* Subtle Bottom Scroll Cue */
.ft-bottom-cue {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 1.032rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hero-ink-soft);
  transition: color 0.2s ease, transform 0.25s var(--ease-playful);
}

.ft-bottom-cue:hover {
  color: var(--hero-ink);
  transform: translateY(3px);
}

.ft-bottom-cue__arrow {
  display: inline-block;
  font-size: 1.188rem;
}

/* ==========================================================================
   ZINE CUTOUT WELCOME STRIP (Echoing Figma "Industrial Design Portfolio" ref)
   Airy borderless off-white canvas right below the unfolding fortune teller
   ========================================================================== */
.zine-welcome-strip {
  width: 100%;
  background: var(--paper-bg);
  color: var(--canvas-ink);
  padding: 96px 32px 72px;
  border-bottom: 1.5px dashed rgba(244, 212, 166, 0.32);
}

.zine-welcome-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-right: var(--side-rail-width);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.zine-welcome-kicker {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.343rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-bistre);
  margin-bottom: 22px;
}

.zine-welcome-script {
  margin: 0 0 22px;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: clamp(4.39rem, calc(8.5vw + 3px), 6.99rem);
  line-height: 0.88;
  color: var(--brand-vanilla);
  letter-spacing: -0.02em;
}

.zine-welcome-saying {
  margin: 0 0 18px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.44rem, calc(2.2vw + 3px), 1.84rem);
  line-height: 1.3;
  color: var(--brand-vanilla);
  max-width: 560px;
}

.zine-welcome-saying span {
  font-weight: 400;
  color: rgba(244, 212, 166, 0.88);
}

.zine-welcome-bio {
  margin: 0;
  font-family: var(--font-primary);
  font-size: clamp(1.34rem, calc(1.45vw + 3px), 1.47rem);
  font-weight: 500;
  line-height: 1.7;
  color: var(--canvas-ink-soft);
  max-width: 580px;
}

.zine-welcome-bio strong {
  font-weight: 700;
  font-size: 1.52em;
  line-height: 1;
  color: var(--brand-bistre);
}

.zine-welcome-cutout {
  display: flex;
  justify-content: center;
}

.zine-cutout-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.zine-cutout-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.zine-cutout-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(102, 20, 14, 0.18)) drop-shadow(0 3px 8px rgba(102, 20, 14, 0.1));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.zine-cutout-img:hover {
  transform: translateY(-4px) scale(1.02);
}

.zine-cutout-caption {
  font-family: var(--font-hand);
  font-size: 1.373rem;
  color: var(--canvas-ink-muted);
}

/* ==========================================================================
   SHARED ROOM SECTION LAYOUT
   ========================================================================== */
.room-section {
  padding: 84px 0;
  border-top: 1.5px dashed rgba(244, 212, 166, 0.32);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 34px;
}

.section-header--edu,
.section-header--level {
  display: block;
  margin-bottom: 34px;
}

.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.section-header-row .section-title {
  margin: 0;
}

.section-header-row .section-lead {
  margin: 0;
  text-align: right;
}

.section-header__meta {
  max-width: 600px;
}

.section-header .mono-label {
  color: var(--canvas-ink-muted);
}

.section-title {
  margin: 8px 0 0;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: clamp(2.79rem, calc(5.2vw + 3px), 4.39rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--canvas-ink);
}

.section-lead {
  max-width: 380px;
  margin: 0;
  font-family: var(--font-primary);
  font-size: clamp(1.34rem, calc(1.45vw + 3px), 1.47rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--canvas-ink-soft);
}

.section-header__tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   STAGE 2 — PORTFOLIO: STACKED DIE-CUT MANILA FOLDERS ("the full offering")
   Overlapping physical cardstock folders with S-curve trapezoidal tabs,
   soft fibrous paper grain, realistic cast shadows, and smooth drawer pull-open.
   ========================================================================== */
.offering-section {
  padding: 76px 0 96px;
}

.offering-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.offering-title {
  margin: 0;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: clamp(2.79rem, calc(5.2vw + 3px), 4.39rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--canvas-ink);
}

.offering-kicker {
  margin: 10px 0 0;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.973rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--canvas-ink-muted);
}

.offering-hint {
  margin: 14px 0 0;
  font-family: var(--font-primary);
  font-size: clamp(1.34rem, calc(1.45vw + 3px), 1.47rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--canvas-ink-soft);
}

/* Stacked Filing Drawer Container */
.offering-stack {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 8px;
}

/* Individual Physical Cardstock Folder */
.offering-folder {
  position: relative;
  margin-left: var(--inset-left, 0%);
  /* Unified die-cut paper shadow cast onto the folder behind it */
  filter: drop-shadow(0 -8px 16px rgba(102, 20, 14, 0.18))
    drop-shadow(0 2px 4px rgba(102, 20, 14, 0.1));
  transition: transform 0.36s var(--ease-playful), margin 0.42s var(--ease-paper);
}

/* Overlap each front folder seamlessly over the folder behind it (just like "the full offering") */
.offering-folder + .offering-folder {
  margin-top: -96px;
}

/* Give an open folder generous breathing room before the next overlapping folder */
.offering-folder.is-open + .offering-folder {
  margin-top: -26px;
}

/* Tactile hover lift — physically pulls the cardstock folder slightly upward out of the drawer */
.offering-folder:not(.is-open):hover {
  transform: translateY(-16px);
}

/* Top Trapezoidal S-Curve Tab Row */
.offering-tab-row {
  position: relative;
  height: 70px;
  pointer-events: none;
}

.offering-tab-btn {
  position: absolute;
  bottom: -2px;
  left: var(--tab-x, 12%);
  width: clamp(205px, 30%, 310px);
  height: 72px;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  color: var(--ink);
  z-index: 2;
  transition: transform 0.25s var(--ease-playful);
}

.offering-folder.is-dark .offering-tab-btn {
  color: var(--brand-vanilla);
}

.offering-tab-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 14px;
}

.offering-tab-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.offering-tab-label {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 8px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(0.95rem, calc(1.15vw + 3px), 1.13rem);
  line-height: 1.16;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Physical Cardstock Folder Body — seamless single-sheet die-cut join with tab */
.offering-body {
  position: relative;
  background-color: var(--folder-bg, var(--paper-manila-1));
  /* Subtle felt/cardstock texture matching "the full offering" */
  background-image: radial-gradient(rgba(102, 20, 14, 0.045) 1px, transparent 0);
  background-size: 8px 8px;
  border-radius: 14px 14px 0 0;
  min-height: 152px;
  color: var(--ink);
}

.offering-folder.is-dark .offering-body {
  color: var(--brand-vanilla);
}

/* Front-most folder gets a clean grounded rounded finish at the bottom */
.offering-folder:last-child .offering-body {
  min-height: 144px;
  border-radius: 14px 14px 20px 20px;
}

.offering-lip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 26px 0;
  cursor: pointer;
}

.offering-folder.is-open .offering-lip {
  display: none;
}

.offering-lip__count {
  font-family: var(--font-primary);
  font-size: 0.953rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.52;
}

/* Smooth CSS Grid Accordion Pull-Open */
.offering-drawer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.46s var(--ease-paper), opacity 0.32s ease;
}

.offering-folder.is-open .offering-drawer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.offering-drawer__inner {
  overflow: hidden;
  padding: 0 28px;
  transition: padding 0.4s var(--ease-paper);
}

.offering-folder.is-open .offering-drawer__inner {
  padding: 26px 28px 54px;
}

.offering-drawer__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(102, 20, 14, 0.14);
}

.offering-folder.is-dark .offering-drawer__head {
  border-bottom-color: rgba(244, 212, 166, 0.22);
}

.offering-drawer__label {
  display: block;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.542rem;
  letter-spacing: -0.015em;
}

.offering-drawer__note {
  margin: 4px 0 0;
  font-family: var(--font-hand);
  font-size: 1.433rem;
  opacity: 0.82;
}

.offering-close-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(102, 20, 14, 0.1);
  color: inherit;
  font-family: var(--font-primary);
  font-size: 0.993rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, transform 0.2s var(--ease-playful);
}

.offering-folder.is-dark .offering-close-btn {
  background: rgba(244, 212, 166, 0.16);
}

.offering-close-btn:hover {
  background: rgba(102, 20, 14, 0.18);
  transform: translateY(-2px);
}

.offering-folder.is-dark .offering-close-btn:hover {
  background: rgba(244, 212, 166, 0.26);
}

/* Tactile Paper Project Sheets Inside Open Folder (Zero harsh black borders!) */
.offering-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sheet-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(102, 20, 14, 0.28);
  background: #F4D4A6;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(102, 20, 14, 0.2), 0 1px 2px rgba(102, 20, 14, 0.12);
  cursor: pointer;
  transition: transform 0.3s var(--ease-playful), box-shadow 0.3s ease;
}

.sheet-card:hover,
.sheet-card:focus-visible {
  outline: none;
  transform: translateY(-8px) rotate(-0.8deg);
  box-shadow: 0 20px 40px rgba(102, 20, 14, 0.28);
}

.sheet-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-primary);
  font-size: 0.912rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-auburn);
}

.sheet-card__art {
  position: relative;
  border-radius: 10px;
  border: 1px solid rgba(102, 20, 14, 0.18);
  background: #F4D4A6;
  padding: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}

.project-sketch-svg {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--dur-std) var(--ease-paper);
}

.sheet-card:hover .project-sketch-svg {
  transform: scale(1.045);
  filter: url(#procreate-boil);
}

.sheet-card__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-family: var(--font-primary);
  font-size: 0.892rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-auburn);
  color: var(--brand-vanilla);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.sheet-card:hover .sheet-card__zoom {
  opacity: 1;
  transform: translateY(0);
}

.sheet-card__title {
  margin: 0 0 6px;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.373rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.sheet-card__tagline {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 1.052rem;
  line-height: 1.48;
  color: var(--ink-soft);
}

.sheet-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(102, 20, 14, 0.14);
  font-family: var(--font-primary);
  font-size: 0.953rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.sheet-card:hover .sheet-card__foot span:last-child {
  color: var(--ink);
}

/* ==========================================================================
   FULLSCREEN FLIP CASE-STUDY SHEET OVERLAY
   ========================================================================== */
.case-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.case-overlay__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(102, 20, 14, 0.56);
  backdrop-filter: blur(4px);
}

.case-sheet {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  background: var(--paper-surface);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-paper-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.case-sheet__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 22px;
  background: var(--paper-manila-1);
  border-bottom: 1.5px solid var(--ink);
}

.case-sheet__crumbs,
.case-sheet__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.case-sheet__scroll {
  overflow-y: auto;
  padding: 28px 34px 40px;
}

.case-sheet__title {
  margin: 6px 0 10px;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: clamp(2.19rem, calc(4vw + 3px), 3.29rem);
  line-height: 1.08;
}

.case-sheet__tagline {
  margin: 0 0 22px;
  font-family: var(--font-primary);
  font-size: 1.242rem;
  color: var(--ink-soft);
  max-width: 680px;
}

.case-sheet__cover {
  background: rgba(177, 165, 107, 0.22);
  border: 1.5px dashed rgba(102, 20, 14, 0.28);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.case-sheet__cover .project-sketch-svg {
  max-width: 440px;
  margin: 0 auto;
}

.case-sheet__slot-note {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.873rem;
  color: var(--ink);
}

.case-sheet__meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.case-meta-box {
  background: var(--paper-card);
  border: 1px solid var(--ink-faint);
  border-radius: 10px;
  padding: 14px 16px;
}

.case-tools-list,
.case-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tool-pill {
  font-family: var(--font-mono);
  font-size: 0.912rem;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(177, 165, 107, 0.28);
  border: 1px solid rgba(102, 20, 14, 0.18);
  color: var(--ink);
}

.case-sheet__story {
  display: grid;
  gap: 20px;
}

.story-block {
  padding: 18px 20px;
  border-left: 2.5px solid var(--ink);
  background: var(--paper-card);
  border-radius: 0 10px 10px 0;
}

.story-block--highlight {
  background: var(--paper-manila-1);
}

.story-block p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.process-steps {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.process-steps li {
  margin-bottom: 8px;
}

/* ==========================================================================
   SECTION 2 — EXPERIENCE: TWO-PERSON TEXT CHAIN
   ========================================================================== */
.chat-studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.chat-sheet {
  background: #F4D4A6;
  color: var(--ink);
  border: 1.6px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-paper-md);
  overflow: hidden;
}

.chat-sheet__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #B1A56B;
  border-bottom: 1.5px solid var(--ink);
  color: var(--ink);
}

.chat-sheet__header .mono-chip {
  margin-left: auto;
  background: #F4D4A6;
  color: var(--ink);
  border-color: var(--ink);
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #66140E;
  color: #F4D4A6;
  display: grid;
  place-items: center;
  font-family: var(--font-secondary);
  font-size: 1.492rem;
}

.chat-contact-name {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.242rem;
  color: var(--ink);
}

.chat-contact-status {
  font-family: var(--font-mono);
  font-size: 0.873rem;
  color: rgba(102, 20, 14, 0.84);
}

.chat-feed {
  background: #F4D4A6;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
}

.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.chat-row--visitor {
  justify-content: flex-end;
}

.chat-row--raaga {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 78%;
  padding: 13px 18px;
  border-radius: 16px;
  border: 1.4px solid var(--ink);
  font-family: var(--font-primary);
  font-size: 1.173rem;
  line-height: 1.55;
  color: #F4D4A6;
}

.chat-bubble--experiences {
  max-width: 94%;
  width: 100%;
  padding: 18px 22px;
}

.chat-experience-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-primary);
}

.chat-exp-entry {
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(244, 212, 166, 0.34);
}

.chat-exp-entry:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.chat-exp-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 3px;
}

.chat-exp-role {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.272rem;
  color: #F4D4A6;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}

.chat-exp-company {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.073rem;
  letter-spacing: 0.08em;
  color: #B1A56B;
  margin-bottom: 5px;
  white-space: pre-wrap;
}

.chat-exp-dates {
  font-family: var(--font-primary);
  font-size: 1.012rem;
  font-weight: 500;
  color: rgba(244, 212, 166, 0.88);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}

.chat-exp-bullets {
  margin: 6px 0 0;
  padding-left: 18px;
  list-style-type: disc;
}

.chat-exp-bullets li {
  font-family: var(--font-primary);
  font-size: 1.133rem;
  line-height: 1.55;
  color: rgba(244, 212, 166, 0.94);
  margin-bottom: 4px;
}

.chat-exp-bullets li:last-child {
  margin-bottom: 0;
}

.chat-skills-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.chat-skills-list li {
  font-family: var(--font-primary);
  font-size: 1.173rem;
  font-weight: 500;
  color: #F4D4A6;
  line-height: 1.45;
}

.chat-bubble p {
  margin: 0;
  font-family: var(--font-primary);
  white-space: pre-line;
}

.chat-bubble--raaga {
  background: #66140E;
  color: #F4D4A6;
  border-bottom-left-radius: 4px;
}

.chat-bubble--visitor {
  background: #8C0610;
  color: #F4D4A6;
  border-bottom-right-radius: 4px;
}

.chat-bubble__note {
  display: block;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(244, 212, 166, 0.36);
  font-family: var(--font-primary);
  font-size: 1.133rem;
  font-weight: 500;
  color: #F4D4A6;
}

.chat-sticker-wrap {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.chat-sticker-svg {
  width: 100%;
  height: 100%;
}

.chat-bubble--typing {
  display: inline-flex;
  gap: 5px;
  padding: 14px 18px;
  background: #66140E;
}

.chat-bubble--typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F4D4A6;
  animation: dotBounce 0.9s infinite ease-in-out;
}
.chat-bubble--typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.chat-bubble--typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dotBounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.chat-composer {
  padding: 16px 20px 20px;
  background: var(--brand-vanilla);
  border-top: 1.5px dashed var(--ink);
}

.chat-composer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.btn-read-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--brand-bistre);
  color: var(--brand-vanilla);
  font-family: var(--font-primary);
  font-size: 1.032rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 2px 3px 0 rgba(102, 20, 14, 0.24);
  transition: transform var(--dur-quick) var(--ease-playful), background var(--dur-quick) ease, box-shadow var(--dur-quick) ease;
}

.btn-read-all:hover {
  transform: translateY(-2px);
  background: var(--brand-auburn);
  color: var(--brand-vanilla);
  box-shadow: 2px 5px 0 rgba(102, 20, 14, 0.34);
}

.btn-read-all:active {
  transform: translateY(0);
  box-shadow: 1px 1px 0 rgba(102, 20, 14, 0.2);
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 10px;
}

.chat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.4px solid var(--ink);
  background: var(--paper-card);
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: 1.042rem;
  box-shadow: 2px 3px 0 rgba(102, 20, 14, 0.14);
  transition: transform var(--dur-quick) var(--ease-playful), background var(--dur-quick) ease;
}

.chat-chip:hover {
  transform: translateY(-2px);
  background: var(--brand-yellow);
  color: var(--ink);
}

.chat-chip__send {
  font-family: var(--font-mono);
  font-size: 0.973rem;
}

.exp-quick-card {
  position: relative;
  background: var(--brand-vanilla);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 24px 20px 20px;
  box-shadow: var(--shadow-paper-sm);
  transform: rotate(0.9deg);
}

.exp-tools-card__title {
  margin: 8px 0 16px;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.242rem;
  letter-spacing: 0.1em;
  color: var(--brand-auburn);
  white-space: pre-wrap;
  text-align: left;
}

.exp-tools-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exp-tool-item {
  font-family: var(--font-primary);
  font-size: 1.188rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  text-align: left;
}

.exp-quick-card__title {
  margin: 8px 0 14px;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.843rem;
  line-height: 1.12;
}

.exp-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
  font-family: var(--font-primary);
  font-size: 1.093rem;
  color: var(--ink-soft);
}

.exp-quick-card__sign {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--ink-faint);
}

/* ==========================================================================
   SECTION 3 — EDUCATION: INDEX-CARD / FLASHCARD STACK
   ========================================================================== */
.flashcard-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.flashcard-deck {
  position: relative;
  width: 100%;
  max-width: 680px;
  min-height: 360px;
}

.index-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 28px;
  border: 1.6px solid var(--ink);
  border-radius: 12px;
  background-color: #F4D4A6;
  color: var(--ink);
  /* Classic physical ruled index-card lines in soft Sunset Flame */
  background-image: linear-gradient(to bottom, transparent 31px, rgba(102, 20, 14, 0.14) 32px);
  background-size: 100% 32px;
  box-shadow: var(--shadow-paper-md);
  transition: transform 0.42s var(--ease-paper), box-shadow 0.28s ease;
  user-select: none;
}

.index-card.is-top {
  cursor: pointer;
}

.index-card.is-top:hover {
  box-shadow: var(--shadow-paper-lg);
}

.index-card__ruled-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-auburn);
}

.index-card__ruled-header .mono-chip {
  background: var(--brand-auburn);
  border-color: var(--ink);
  color: var(--brand-vanilla);
}

.index-card__era {
  font-family: var(--font-primary);
  font-size: 1.073rem;
  font-weight: 600;
  color: var(--brand-auburn);
}

.index-card__body {
  padding: 18px 0;
}

.index-card__title {
  margin: 0 0 6px;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: clamp(1.64rem, calc(2.5vw + 3px), 2.14rem);
  line-height: 1.15;
  color: var(--ink);
  white-space: pre-line;
}

.index-card__sub {
  margin: 0 0 14px;
  font-family: var(--font-primary);
  font-size: 1.143rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-auburn);
}

.index-card__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
  font-family: var(--font-primary);
  font-size: 1.143rem;
  line-height: 1.5;
  color: var(--ink);
  list-style-type: disc;
}

.index-card__list li strong {
  font-weight: 700;
  color: var(--ink);
}

.index-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--ink-faint);
}

.index-card__cue {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.912rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.flashcard-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}

.flashcard-dots {
  display: flex;
  gap: 7px;
}

.flashcard-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.4px solid var(--brand-vanilla);
  background: transparent;
  transition: background var(--dur-quick) ease, transform var(--dur-quick) ease;
}

.flashcard-dot.is-active {
  background: var(--brand-auburn);
  border-color: var(--brand-vanilla);
  transform: scale(1.22);
}

/* ==========================================================================
   SECTION 4 — HOBBIES & ABOUT ME: INTERACTIVE BOOKSHELF
   ========================================================================== */
.bookshelf-wrap {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bookshelf-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 18px 14px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.book-spine {
  position: relative;
  flex: 0 0 auto;
  width: var(--book-w, 48px);
  height: var(--book-h, 210px);
  background: var(--book-bg, var(--brand-vanilla));
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  padding: 12px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset -4px 0 0 rgba(102, 20, 14, 0.14), 2px 0 0 rgba(102, 20, 14, 0.24);
  transition: transform var(--dur-std) var(--ease-playful), background var(--dur-quick) ease,
    box-shadow var(--dur-quick) ease;
}

.book-spine.is-dark {
  color: var(--brand-vanilla);
  border-color: rgba(244, 212, 166, 0.45);
}

.book-spine:hover {
  transform: translateY(-10px) rotate(-1.2deg);
  box-shadow: 4px 8px 16px rgba(102, 20, 14, 0.28);
}

.book-spine.is-pulled {
  transform: translateY(-18px) rotate(-1.5deg);
  border-width: 2px;
  box-shadow: 0 0 0 2px var(--brand-vanilla), 6px 12px 22px rgba(102, 20, 14, 0.36);
}

.book-spine__band {
  width: 68%;
  height: 1.5px;
  background: currentColor;
  opacity: 0.28;
}

.book-spine__num {
  font-family: var(--font-mono);
  font-size: 0.812rem;
  opacity: 0.72;
}

.book-spine__title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 0.833rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.bookshelf-ledge {
  width: calc(100% + 24px);
  max-width: 100%;
  height: 12px;
  border: 1.6px solid var(--ink);
  border-radius: 4px;
  background: var(--brand-yellow);
  box-shadow: 0 5px 0 rgba(102, 20, 14, 0.18);
}

/* Open Two-Page Book Spread */
.book-spread {
  display: grid;
  grid-template-columns: 1fr 14px 1fr;
  background: #F4D4A6;
  color: var(--ink);
  border: 1.6px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-paper-md);
  overflow: hidden;
}

.book-spread .mono-label {
  color: var(--brand-auburn);
}

.book-spread__page {
  padding: 28px 30px;
}

.book-spread__gutter {
  background: linear-gradient(
    to right,
    rgba(102, 20, 14, 0.05),
    rgba(102, 20, 14, 0.18),
    rgba(102, 20, 14, 0.05)
  );
}

.book-spread__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.book-spread__page--left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 220px;
}

.book-spread__title {
  margin: 0;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: clamp(2.59rem, calc(4.2vw + 3px), 3.59rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--brand-auburn);
}

.book-spread__lead {
  margin: 0 0 12px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.173rem;
  color: var(--ink);
}

.book-spread__body {
  margin: 0 0 16px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 1.188rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.book-spread__body:last-child {
  margin-bottom: 0;
}

.book-spread__quote {
  margin: 12px 0 18px;
  padding: 10px 14px;
  border-left: 2.5px solid var(--ink);
  background: rgba(102, 20, 14, 0.04);
  font-family: var(--font-primary);
  font-style: italic;
  font-size: 1.133rem;
  line-height: 1.5;
  color: var(--ink);
  border-radius: 0 6px 6px 0;
}

.book-spread__scribble {
  font-size: 1.373rem;
  margin-top: 14px;
  color: var(--ink-soft);
}

.book-facts-list {
  margin: 14px 0 20px;
  display: grid;
  gap: 12px;
}

.book-fact {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--ink-faint);
}

.book-fact dt {
  font-family: var(--font-mono);
  font-size: 0.892rem;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

.book-fact dd {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 1.133rem;
  font-weight: 500;
}

.book-spread__doodle-box {
  padding: 14px;
  border: 1.5px dashed var(--ink-faint);
  border-radius: 10px;
  background: rgba(177, 165, 107, 0.24);
  color: var(--ink);
  display: grid;
  gap: 6px;
}

/* ==========================================================================
   SECTION 5 — "TAKE WHAT YOU NEED" TEAR-OFF PAPER FLYER FOOTER
   ========================================================================== */
.room-footer {
  padding-bottom: 36px;
}

.tear-flyer {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  background: var(--paper-card);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 12px 12px 4px 4px;
  box-shadow: var(--shadow-paper-md);
}

.tear-flyer__poster {
  padding: 36px 32px 26px;
  text-align: center;
  background: var(--brand-vanilla);
  border-radius: 10px 10px 0 0;
  border-bottom: 2px dashed var(--ink);
}

.tear-flyer__poster .mono-label {
  color: var(--brand-auburn);
}

.tear-flyer__headline {
  margin: 10px 0 12px;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: clamp(2.99rem, calc(6vw + 3px), 4.59rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--brand-auburn);
}

.tear-flyer__sub {
  max-width: 520px;
  margin: 0 auto 14px;
  font-family: var(--font-primary);
  font-size: 1.242rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
}

.tear-flyer__hint {
  font-family: var(--font-primary);
  font-size: 1.133rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin: 6px 0 0;
}

.tear-toast {
  display: inline-block;
  margin-top: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brand-auburn);
  color: var(--brand-vanilla);
  font-family: var(--font-mono);
  font-size: 0.932rem;
}

.tear-strips-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-radius: 0 0 3px 3px;
  border-bottom: 1.5px solid var(--ink);
  overflow: hidden;
}

.tear-slot {
  position: relative;
  min-height: 158px;
  border-right: 1.6px dashed rgba(102, 20, 14, 0.36);
  perspective: 600px;
}

.tear-slot:last-child {
  border-right: none;
}

.tear-stub {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(
    -45deg,
    var(--brand-vanilla),
    var(--brand-vanilla) 8px,
    rgba(177, 165, 107, 0.38) 8px,
    rgba(177, 165, 107, 0.38) 16px
  );
  font-family: var(--font-mono);
  font-size: 0.892rem;
  color: var(--brand-auburn);
  font-weight: 600;
}

.tear-strip {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: none;
  background: var(--strip-bg, var(--paper-card));
  color: var(--ink);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform-origin: top center;
  transition: transform 0.32s var(--ease-playful), filter 0.2s ease, opacity 0.32s ease;
}

.tear-strip.is-dark {
  color: var(--brand-vanilla);
}

.tear-strip:hover {
  filter: brightness(1.06);
  transform: rotateX(-16deg) rotateZ(-1.6deg) translateY(3px);
  box-shadow: 0 12px 18px rgba(102, 20, 14, 0.24);
}

.tear-slot.is-torn .tear-strip {
  transform: translateY(42px) rotateZ(12deg);
  opacity: 0;
  pointer-events: none;
}

.tear-strip__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.973rem;
  letter-spacing: 0.08em;
}

.tear-strip__sub {
  font-family: var(--font-hand);
  font-size: 1.153rem;
  color: var(--ink);
  opacity: 0.85;
  text-align: center;
  line-height: 1.1;
}

.tear-strip.is-dark .tear-strip__sub {
  color: var(--brand-vanilla);
  opacity: 0.92;
}

.footer-colophon {
  max-width: 780px;
  margin: 26px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.912rem;
  color: var(--canvas-ink-soft);
}

.footer-colophon__right {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--paper-card);
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: 1.012rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 2px 3px 0 var(--ink);
  transition: transform var(--dur-quick) var(--ease-playful), box-shadow var(--dur-quick) ease, background var(--dur-quick) ease;
}

.footer-btn:hover {
  transform: translate(-1px, -2px);
  box-shadow: 3px 5px 0 var(--ink);
  background: var(--paper-surface);
}

.footer-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.footer-btn--primary {
  background: var(--brand-bistre);
  color: var(--brand-vanilla);
  border-color: var(--brand-vanilla);
}

.footer-btn--primary:hover {
  background: var(--brand-yellow);
  color: var(--ink);
  border-color: var(--ink);
}

.link-inline {
  border: none;
  background: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.912rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--canvas-ink);
}

/* ==========================================================================
   RESPONSIVE MOBILE & TABLET FALLBACKS
   ========================================================================== */
@media (max-width: 960px) {
  .studio-main {
    padding: 0 20px 92px 20px;
  }

  /* Persistent Side File-Tabs dock cleanly at bottom on mobile */
  .side-tabs-rail {
    top: auto;
    bottom: 10px;
    left: 12px;
    right: 12px;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    background: rgba(102, 20, 14, 0.94);
    backdrop-filter: blur(8px);
    padding: 6px;
    border: 1.5px solid var(--brand-yellow);
    border-radius: 999px;
    box-shadow: var(--shadow-paper-md);
  }

  .side-tabs-rail.is-hidden {
    transform: translateY(28px);
  }

  .ft-fullscreen-stage {
    padding: 20px 20px 22px;
  }

  .origami-stage-tilt {
    width: min(94vw, 66vh, 560px);
  }

  .zine-welcome-strip {
    padding: 68px 20px 52px;
  }

  .zine-welcome-inner {
    padding-right: 0;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .side-tab {
    width: auto;
    flex: 1 1 auto;
    flex-direction: row;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    transform: none;
    box-shadow: none;
    background: transparent;
  }

  .side-tab__label {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 0.932rem;
  }

  .side-tab__num {
    display: none;
  }

  .hero-stage,
  .chat-studio-layout,
  .book-spread,
  .case-sheet__meta-grid {
    grid-template-columns: 1fr;
  }

  .book-spread__gutter {
    height: 10px;
    width: 100%;
  }

  .projects-grid,
  .offering-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .projects-grid,
  .offering-grid {
    grid-template-columns: 1fr;
  }

  .offering-tab-btn {
    width: clamp(160px, 52%, 230px);
    height: 60px;
  }

  .offering-tab-row {
    height: 60px;
  }

  .offering-folder--graphics .offering-tab-btn,
  .offering-folder--product .offering-tab-btn {
    left: auto;
    right: 6%;
  }

  .offering-folder.is-open .offering-drawer__inner {
    padding: 20px 16px 40px;
  }

  .bookshelf-track {
    justify-content: flex-start;
  }

  .tear-strips-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .tear-slot {
    min-height: 112px;
    border-bottom: 1.5px dashed var(--ink-faint);
  }

  .tear-strip__label {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .case-sheet__scroll {
    padding: 20px;
  }

  .flashcard-deck {
    min-height: 410px;
  }
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .boil-ink {
    filter: none !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
