/* =============================================================================
   Variables
   ============================================================================= */
:root {
  --bg: #f2ede1;
  --text-color: #471207;
  --bottom-note-color: var(--text-color);
  --block-section-pad: 48px;
  --summary-mint: #6dbb87;
  /* Palette */
  --dark-green: #00402e;
  --red: #ff1935;
  --yellow: #fdbb00;
  --blue: #b8d3ff;
  --index-pill-1: #a0bdf2;
  --index-pill-2: #6dbb87;
  --index-pill-3: #ebd0b1;
}

/* =============================================================================
   Fonts
   ============================================================================= */
@font-face {
  font-family: "Kobe";
  src: url("./fonts/Kobe.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

/* =============================================================================
   Base / reset
   ============================================================================= */
html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  overflow-x: hidden;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b,
th {
  font-weight: 400;
}

/* =============================================================================
   Cover section
   ============================================================================= */
.cover-section {
  width: 100vw;
  height: 100svh;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Language toggle (SPA | switch | ENG), top-right of cover */
.lang-toggle {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  pointer-events: auto;
}

.lang-toggle__code {
  font-family: "Kobe", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text-color);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.38;
  min-width: 1.65rem;
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
  transition: opacity 0.15s ease;
}

.lang-toggle:not(.lang-toggle--en) .lang-toggle__code--spa,
.lang-toggle.lang-toggle--en .lang-toggle__code--eng {
  opacity: 1;
}

.lang-toggle__switch {
  width: 2.75rem;
  height: 1.5rem;
  margin: 0;
  padding: 0.125rem;
  border: none;
  border-radius: 9999px;
  background: rgba(71, 18, 7, 0.22);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

.lang-toggle__switch:hover {
  background: rgba(71, 18, 7, 0.32);
}

.lang-toggle__switch:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

.lang-toggle__switch[aria-checked="true"] {
  background: var(--text-color);
}

.lang-toggle__thumb {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
  transform: translateX(0);
  pointer-events: none;
}

.lang-toggle__switch[aria-checked="true"] .lang-toggle__thumb {
  transform: translateX(1.25rem);
}

@media (prefers-reduced-motion: reduce) {
  .lang-toggle__switch,
  .lang-toggle__thumb {
    transition: none;
  }
}

.cover-section::selection,
.cover-section *::selection {
  background: transparent;
  color: inherit;
}

.letters {
  position: absolute;
  top: 0;
  bottom: 15vh;
  left: 0;
  right: 3vw;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}

.letter {
  position: absolute;
  width: 16.666vw;
  display: flex;
  justify-content: center;
  transform: translateX(-50%);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.letter img {
  display: block;
  height: 20vw;
  width: auto;
  transform: translateY(0);
  transition: transform 0.2s ease;
}

.letter:hover img {
  transform: translateY(-12px);
}

.letter--l:hover img {
  transform: translateX(10%) translateY(-12px);
}

.letter.letter--playing {
  animation: letter-sink 0.36s cubic-bezier(0.22, 0, 0.5, 1);
}

@keyframes letter-sink {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  55% {
    transform: translateX(-50%) translateY(14px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

.letter--l {
  top: 13%;
  left: 7.5%;
}

.letter--l img {
  transform: translateX(10%) translateY(0);
}

.letter--a-a1 {
  top: 6%;
  left: 26%;
}

.letter--p {
  top: 58%;
  left: 10%;
}

.letter--e-e1 {
  top: 58%;
  left: 27%;
}

.letter--s {
  top: 72%;
  left: 44%;
}

.letter--e-e2 {
  top: 60%;
  left: 60%;
}

.letter--t {
  top: 50%;
  left: 74%;
}

.letter--a-a2 {
  top: 30%;
  left: 90%;
}

.stickers {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.sticker {
  position: absolute;
  width: auto;
  height: auto;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  transform: translate(-50%, -50%);
}

.sticker:active {
  cursor: grabbing;
}

.sticker--guitar {
  max-width: 220px;
  top: 79%;
  left: 16%;
}

.sticker--lamp {
  max-width: 70px;
  top: 17%;
  left: 75%;
}

.sticker--mug {
  max-width: 62px;
  top: 70%;
  left: 83%;
}

.sticker--bag {
  max-width: 120px;
  top: 40%;
  left: 30%;
}

.cover-drag-cue {
  position: absolute;
  z-index: 5;
  top: 18%;
  left: 80%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  max-width: min(10rem, calc(100vw - 2rem));
  pointer-events: none;
  color: var(--red);
  -webkit-user-select: none;
  user-select: none;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.cover-drag-cue__text {
  margin: 0;
  padding: 0;
  font-family: "Kobe", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: clamp(0.78rem, 2.1vw, 0.95rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  width: 100%;
  white-space: pre-line;
}

.cover-drag-cue__arrow {
  display: block;
  width: clamp(0.85rem, 2.6vw, 1.15rem);
  height: auto;
  flex-shrink: 0;
  margin: 0;
}

.cover-drag-cue.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s ease,
    visibility 0s linear 0.45s;
}

@media (prefers-reduced-motion: reduce) {
  .cover-drag-cue,
  .cover-drag-cue.is-hidden {
    transition-duration: 0.01ms;
    transition-delay: 0s !important;
  }
}

.centerOverlay {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.estudios {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 120px;
  height: auto;
}

.playWrap {
  position: absolute;
  left: 50%;
  bottom: 6vh;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: auto;
  cursor: pointer;
}

.play {
  width: 90px;
  height: auto;
  transition: transform 0.2s ease;
}

.playWrap:hover .play {
  transform: scale(1.1);
}

.bottomNote {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 6;
  width: 280px;
  max-width: calc(100vw - 48px);
  margin: 0;
  font-family: "Kobe", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1.1rem;
  line-height: 1.15;
  color: var(--bottom-note-color);
  pointer-events: none;
}

/* =============================================================================
   Block sections (shared grid)
   ============================================================================= */
.block-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
}

.block-section > div {
  padding: var(--block-section-pad);
  box-sizing: border-box;
  font-family: "Kobe", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
}

.block-section.block-1 {
  position: relative;
}

/* =============================================================================
   Block 1 — hero
   ============================================================================= */
.block-1 .hero {
  position: relative;
  z-index: 1;
  background: #ebd0b1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow: visible;
  flex-wrap: nowrap;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  max-width: 40vw;
  width: 100%;
}

.hero-logo {
  width: 18vw;
  min-width: 120px;
  max-width: 150px;
  height: auto;
  display: block;
}

.hero-main-image {
  width: 34vw;
  max-width: 500px;
  padding: 2rem 0;
  height: auto;
  display: block;
}

.hero-content p {
  margin: 0;
  max-width: 95%;
  font-size: 2.5rem;
  line-height: 1.15;
  color: var(--text-color);
}

.hero-notebook {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: -50px;
  width: calc(100% + var(--block-section-pad));
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
}

.hero-notebook img {
  width: 160px;
  max-width: 100%;
  height: auto;
  margin: 0;
  display: block;
  max-height: 70vh;
  object-fit: contain;
}

/* =============================================================================
   Block 1 — summary (Cursos y talleres)
   ============================================================================= */
.summary {
  position: relative;
  z-index: 1;
  background: var(--bg);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-columns: 1fr;
  align-self: stretch;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

.summary-inner {
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: min(34rem, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.summary-heading {
  width: 100%;
  max-width: min(34rem, 100%);
  margin: 0;
  margin-inline: auto;
  padding: 0;
  padding-bottom: 2rem;
  font-family: "Kobe", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text-color);
}

.summary-courses {
  list-style: none;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
  max-width: 40vw;
  align-self: stretch;
}

.summary-course {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
  overflow: visible;
}

.summary-course-badge {
  flex-shrink: 0;
  position: relative;
  z-index: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--summary-mint);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding-top: 0.12em;
  box-sizing: border-box;
  font-family: "Kobe", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1;
}

.summary-course:nth-child(3) .summary-course-badge {
  background: var(--summary-mint);
}

.summary-course-body {
  flex: 1;
  min-width: 0;
  padding-top: 0.15em;
}

.summary-course-kind {
  display: block;
  margin: 0 0 0.2em;
  font-family: "Kobe", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.28;
  color: var(--text-color);
}

.summary-course-title {
  margin: 0 0 0.45em;
  font-family: "Kobe", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-color);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.summary-course-desc {
  margin: 0;
  font-family: "Kobe", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.15;
  color: var(--text-color);
}

/* =============================================================================
   Block 2 — index + courses
   ============================================================================= */
.block-section.block-2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.block-2 .index {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
  justify-content: center;
  width: 95%;
  min-height: 100vh;
  background: var(--bg);
  position: sticky;
  top: 0;
  align-self: start;
  padding: 3.5rem 2.5rem 3.5rem 3.5rem;
  box-sizing: border-box;
}

.index-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-color);
  text-decoration: none;
  cursor: pointer;
  opacity: 0.2;
  transform: rotate(var(--btn-tilt-idle));
  transition:
    opacity 0.2s linear,
    transform 0.2s linear;
  -webkit-tap-highlight-color: transparent;
}

.index-btn.is-active {
  opacity: 1;
  transform: rotate(var(--btn-tilt-active));
}

.index-btn:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 4px;
}

/* Blue tile: active tilts opposite (positive) */
.index-btn--1 {
  --btn-tilt-idle: -4deg;
  --btn-tilt-active: 7deg;
}

/* Green tile: idle tilt opposite side from previous −5deg */
.index-btn--2 {
  --btn-tilt-idle: -3deg;
  --btn-tilt-active: 4deg;
}

.index-btn--3 {
  --btn-tilt-idle: -3deg;
  --btn-tilt-active: 4deg;
}

.index-btn-shape {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: auto;
  align-self: stretch;
  justify-self: stretch;
}

.index-btn-label {
  grid-area: 1 / 1;
  z-index: 1;
  width: 90%;
  text-align: center;
  font-family: "Kobe", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 2.5vw;
  line-height: 1.12;
  pointer-events: none;
}

.index-btn-text-mobile {
  display: none;
}

.block-2 .courses {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(242, 237, 225, 0.52), rgba(242, 237, 225, 0.52)),
    url("./img/background-lines.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3.5rem 6rem 5rem;
  margin-top: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

.course-block {
  scroll-margin-top: 2rem;
  max-width: 26rem;
  width: 100%;
  margin-inline: auto;
  padding-bottom: 3.5rem;
}

.course-block:first-child {
  margin-top: 1.5rem;
}

/* Number column (left); kind + title column (right); bottoms align */
.course-header {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.course-num-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  align-self: flex-end;
  line-height: 0;
}

.course-num {
  display: block;
  margin: 0;
  padding: 0;
  font-family: "Kobe", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 6rem;
  /* Tight line box so flex-end lines up with the title block (no extra gap under the digit) */
  line-height: 0.58;
}

#course-composicion .course-num {
  color: #a0bdf2;
}

#course-produccion .course-num {
  color: #6dbb87;
}

#course-taller .course-num {
  color: #ebd0b1;
}

.course-heading {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-end;
  padding: 0;
  margin: 0;
}

.course-kind {
  display: block;
  margin: 0 0 0.35rem;
  padding: 0;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--text-color);
}

.course-title {
  margin: 0;
  padding: 0;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-color);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.course-tags {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.course-tags li {
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--text-color);
  border-radius: 999px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.course-body {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-color);
}

.course-body p {
  margin: 0 0 1.25rem;
}

.course-body p:last-child {
  margin-bottom: 0;
}

.course-cta-wrap {
  margin: 1.75rem 0 0;
}

.course-cta {
  display: inline-block;
  padding: 0.5rem 1.35rem;
  border: 1px solid var(--text-color);
  border-radius: 999px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.05rem;
  line-height: 1.2;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.course-cta:hover,
.course-cta:focus-visible {
  background-color: var(--text-color);
  color: var(--bg);
  text-decoration: none;
}

.course-details {
  margin-top: 2.5rem;
}

.course-details dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
}

.course-details dt,
.course-details dd {
  margin: 0;
  padding: 0.45rem 0.55rem;
  font-size: 1,15rem;
  line-height: 1.35;
  font-weight: 400;
}

.course-details dt {
  border-right: 1px solid var(--text-color);
  border-bottom: 1px solid var(--text-color);
}

.course-details dd {
  border-bottom: 1px solid var(--text-color);
}

.course-details dt:last-of-type,
.course-details dd:last-of-type {
  border-bottom: none;
}

/* =============================================================================
   Block 3
   ============================================================================= */
.block-3 {
  grid-template-rows: 1fr;
}

.block-3 .opinions-about-div {
  min-height: 100vh;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.block-3 .playground {
  background: var(--bg);
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 42vh;
  padding-bottom: 8rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.playground__stage {
  flex: 1 1 auto;
  width: 100%;
  height: 50vh;
  position: relative;
  overflow: visible;
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.playground__stage canvas {
  display: block;
}

.block-3 .opinions-about-div .opinions-panel {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  padding-inline: clamp(0.75rem, 3vw, 3rem);
  box-sizing: border-box;
  background: var(--text-color);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  container-name: opinions-panel;
  container-type: inline-size;
}

/* Stacked opinion cards (one colored SVG per tile) */
.opinions-stack {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  /* Fallback when container queries unavailable */
  min-height: clamp(25rem, 44vw, 48rem);
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

@supports (width: 1cqw) {
  .opinions-stack {
    /* ~tile aspect (852/681) so stack height tracks panel width */
    min-height: clamp(25rem, calc(76cqw * 852 / 681), 58rem);
  }
}

.opinions-stack.is-dragging {
  cursor: grabbing;
  touch-action: none;
}

.opinions-stack:focus-visible {
  box-shadow: 0 0 0 3px var(--yellow);
  border-radius: 4px;
}

.opinion-tile {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(86%, calc(85vh * 681 / 852));
  aspect-ratio: 681 / 852;
  height: auto;
  max-height: 80vh;
  box-sizing: border-box;
  padding: clamp(0.85rem, 5.8%, 1.65rem) clamp(0.8rem, 5.2%, 1.45rem) clamp(1rem, 6.2%, 1.65rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translate(-50%, -50%) rotate(var(--opinion-tilt, 0deg));
  transition: z-index 0s;
  font-family: "Kobe", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  -webkit-user-select: none;
  user-select: none;
}

.opinion-tile:nth-child(1) {
  z-index: 4;
}

.opinion-tile:nth-child(2) {
  z-index: 3;
}

.opinion-tile:nth-child(3) {
  z-index: 2;
}

.opinion-tile:nth-child(4) {
  z-index: 1;
}

.opinion-tile--blue {
  --opinion-tilt: -4deg;
  background-image: url("./img/tile-blue.svg");
  color: var(--text-color);
}

.opinion-tile--yellow {
  --opinion-tilt: 6deg;
  background-image: url("./img/tile-yellow.svg");
  color: var(--text-color);
}

.opinion-tile--red {
  --opinion-tilt: -8deg;
  background-image: url("./img/tile-red.svg");
  color: var(--text-color);
}

.opinion-tile--dark-green {
  --opinion-tilt: 5deg;
  background-image: url("./img/tile-green.svg");
  color: var(--bg);
}

.opinion-tile-quote {
  margin: 0;
  font-size: clamp(1.05rem, 3.35vw, 1.7rem);
  font-weight: 400;
  line-height: 1.14;
}

@supports (font-size: 1cqi) {
  .opinion-tile-quote {
    font-size: clamp(1.05rem, 5.1cqi, 1.95rem);
  }
}

.opinion-tile-author {
  margin: 0;
  align-self: flex-end;
  font-size: clamp(0.8rem, 2.05vw, 1.02rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.14;
  text-align: right;
}

@supports (font-size: 1cqi) {
  .opinion-tile-author {
    font-size: clamp(0.8rem, 2.65cqi, 1.12rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .opinion-tile {
    transition: none;
  }
}

.block-3 .opinions-about-div .about {
  box-sizing: border-box;
  min-height: 100vh;
  margin: 0;
  padding: 3rem 2rem 4rem;
  text-align: left;
  background-color: #D5E5FF;
  background-image: url("./img/background-lines.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-color);
}

.about-title {
  margin: 0 0 1.75rem;
  margin-left: 1.5rem;
  font-family: "Kobe", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.about p {
  margin: 0 0 1.75rem;
  margin-left: 1.5rem;
  max-width: 26rem;
  font-family: "Kobe", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1.15rem;
  line-height: 1.5;
}

.about-photo {
  display: block;
  margin-top: 3rem;
  margin-left: auto;
  margin-right: 2rem;
  width: 24rem;
  max-width: 100%;
  height: auto;
  transform: rotate(-4deg);
}

/* =============================================================================
   Footer (transparent overlay at end of scroll)
   ============================================================================= */
.site-footer {
  position: relative;
  z-index: 25;
  margin-top: -2.5rem;
  padding: 0 var(--block-section-pad) 0rem;
  box-sizing: border-box;
  background: transparent;
  color: var(--text-color);
  font-family: "Kobe", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1.1rem;
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  pointer-events: none;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin: 0;
  margin-right: auto;
  padding: 0;
  pointer-events: auto;
}

.site-footer-credit {
  margin: 0;
  margin-left: auto;
  pointer-events: auto;
}

.site-footer-link {
  color: inherit;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.site-footer-link:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 3px;
}

/* =============================================================================
   Media queries
   ============================================================================= */

/* Two-column summary: responsive horizontal padding */
@media (min-width: 721px) {
  .summary {
    padding-inline: clamp(0.75rem, 2.2vw, var(--block-section-pad));
  }

  .course-block {
    padding-bottom: 5.5rem;
  }

  .course-body {
    font-size: 1.32rem;
    line-height: 1.55;
  }

  .about p {
    font-size: 1.32rem;
    line-height: 1.55;
  }

  .site-footer-credit {
    font-size: 1.28rem;
    line-height: 1.4;
  }
}

/* Tight two-column: full-width summary stack + hero text tweak */
@media (min-width: 721px) and (max-width: 1200px) {
  .summary-inner {
    max-width: 100%;
    width: 100%;
    margin-inline: 0;
  }

  .summary-heading {
    max-width: 100%;
    margin-inline: 0;
    text-align: center;
  }

  .hero-content p {
    font-size: 1.5rem;
  }
}

/* iPad and below */
@media (max-width: 720px) {
  .letters {
    bottom: 14vh;
  }

  .playWrap {
    bottom: 12vh;
  }

  .hero-content {
    max-width: 70vw;
  }

  .hero-logo {
    width: 22vw;
    min-width: 130px;
    max-width: 200px;
  }

  .hero-main-image {
    width: 55vw;
    max-width: 420px;
  }

  .hero-content p {
    font-size: 2rem;
  }

  .hero-notebook {
    left: -20px;
    width: 100%;
  }

  .hero-notebook img {
    width: 88px;
    max-height: 50vh;
  }

  .summary {
    padding-block: 0.5rem 1.5rem;
    padding-inline: 0;
  }

  .summary-inner {
    max-width: min(30rem, 100%);
    width: 100%;
  }

  .summary-heading {
    font-size: 1.625rem;
    padding-top: 1rem;
    padding-bottom: 0.75rem;
    text-align: center;
  }

  .summary-courses {
    padding: 1rem 0;
    gap: 2rem;
    max-width: 100%;
  }

  .summary-course-badge {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 2.25rem;
  }

  .summary-course-kind,
  .summary-course-desc {
    font-size: 1.125rem;
  }

  .summary-course-title {
    font-size: 2rem;
  }

  .bottomNote {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    bottom: 3vh;
    text-align: center;
    max-width: calc(100vw - 48px);
  }

  .block-section {
    grid-template-columns: 1fr;
  }

  .block-section.block-2 {
    grid-template-columns: 1fr;
  }

  .block-2 .index {
    position: sticky;
    top: 0;
    z-index: 30;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 0.45rem;
    min-height: unset;
    padding: 0.65rem 0.75rem;
    border-top: 1px solid rgba(71, 18, 7, 0.12);
    border-bottom: none;
  }

  .index-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    transform: none;
    opacity: 1;
    padding: 0.6rem 0.35rem;
    border-radius: 999px;
    will-change: auto;
    background: transparent;
    border: 2px solid;
    box-sizing: border-box;
  }

  .index-btn--1 {
    border-color: var(--index-pill-1);
  }

  .index-btn--2 {
    border-color: var(--index-pill-2);
  }

  .index-btn--3 {
    border-color: var(--index-pill-3);
  }

  .index-btn.is-active.index-btn--1 {
    background: var(--index-pill-1);
    border-color: var(--index-pill-1);
  }

  .index-btn.is-active.index-btn--2 {
    background: var(--index-pill-2);
    border-color: var(--index-pill-2);
  }

  .index-btn.is-active.index-btn--3 {
    background: var(--index-pill-3);
    border-color: var(--index-pill-3);
  }

  .index-btn.is-active {
    transform: none;
    opacity: 1;
  }

  .index-btn-shape {
    display: none;
  }

  .index-btn-label {
    width: auto;
    font-size: clamp(0.88rem, 3.6vw, 1.05rem);
    line-height: 1.15;
  }

  .index-btn-text-desktop {
    display: none;
  }

  .index-btn-text-mobile {
    display: block;
  }

  .block-2 .courses {
    min-height: unset;
    justify-content: flex-start;
    padding: 1.25rem 1rem 3rem;
  }

  .course-header {
    max-width: min(20rem, 100%);
    margin-inline: auto;
    padding-inline: 0;
    box-sizing: border-box;
  }

  .course-body {
    max-width: min(20rem, 100%);
    margin-inline: auto;
    padding-inline: 0;
    box-sizing: border-box;
  }

  .course-tags {
    max-width: min(20rem, 100%);
    width: 100%;
    margin: 0 auto 1.5rem;
    padding-inline: 0;
    box-sizing: border-box;
    justify-content: flex-start;
  }

  .course-details {
    max-width: min(19rem, 92%);
    margin-inline: auto;
  }

  .course-details dl {
    width: 100%;
  }

  .course-cta-wrap {
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0 0;
    padding-inline: 1.25rem;
    box-sizing: border-box;
  }

  .course-cta {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 0.65rem 1rem;
    font-size: 1.1rem;
  }

  .course-block {
    /* Extra space below sticky index bar when jumping to #course-* */
    scroll-margin-top: 5.5rem;
    max-width: 100%;
  }

  .course-block:first-child {
    margin-top: 0;
  }

  .sticker--guitar {
    top: 72%;
  }
}

/* Mobile */
@media (max-width: 500px) {
  .letters {
    bottom: 26vh;
    transform: translateY(-20px);
  }

  .block-section {
    grid-template-columns: 1fr;
  }

  .block-section.block-1 {
    min-height: unset;
  }

  .block-1 .hero {
    min-height: 60vh;
  }

  .summary {
    padding-block: 1.25rem 2rem;
    padding-inline: 0;
  }

  .summary-inner {
    max-width: 100%;
  }

  .summary-heading {
    margin-bottom: 3rem;
    padding-top: 2rem;
    padding-bottom: 0;
    font-size: 1.5rem;
    text-align: center;
  }

  .summary-courses {
    padding: 1rem 0;
    gap: 1.5rem;
    max-width: 100%;
  }

  .summary-course {
    gap: 1rem;
  }

  .summary-course-badge {
    width: 3rem;
    height: 3rem;
    font-size: 2.25rem;
  }

  .summary-course-kind,
  .summary-course-desc {
    font-size: 1.2rem;
  }

  .summary-course-title {
    font-size: 1.45rem;
  }

  .block-2 .index {
    width: 100%;
  }

  .block-2 .index .index-btn-label {
    font-size: clamp(0.95rem, 4.2vw, 1.12rem);
  }

  .course-block {
    scroll-margin-top: 6rem;
  }

  .block-2 .courses .course-cta {
    font-size: 1.2rem;
  }

  .course-header,
  .course-body,
  .course-tags {
    max-width: min(19.5rem, 100%);
  }

  /* Opinions: panel height = content, not 100vh */
  .block-3 .opinions-about-div {
    min-height: unset;
  }

  .block-3 .opinions-about-div .opinions-panel {
    min-height: unset;
    padding-block: 3rem 3.25rem;
  }

  .block-3 .opinions-about-div .about {
    min-height: unset;
    padding: 2.75rem 1.25rem 2.5rem 1.75rem;
  }

  .about-title {
    margin-left: 1.5rem;
  }

  .about p {
    max-width: 20rem;
    margin-left: 1.5rem;
  }

  .about-photo {
    width: 16.5rem;
    max-width: 85%;
    margin-right: 1rem;
  }

  .playground__stage {
    height: 12vh;
    width: 100%;
    margin-top: -2rem;
    max-height: 12vh;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 10rem;
    padding-inline: 1.25rem;
    padding-bottom: 2.25rem;
    gap: 0;
  }

  .site-footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .site-footer-credit {
    margin-top: 0;
    margin-left: 0;
  }

  .opinions-stack {
    min-height: clamp(21rem, 56vh, 32rem);
  }

  @supports (width: 1cqw) {
    .opinions-stack {
      min-height: clamp(21rem, calc(73cqw * 852 / 681), 32rem);
    }
  }

  .opinions-about-div {
    min-height: unset;
  }

  .opinion-tile {
    width: min(78%, 18rem);
    padding: 0.7rem 0.65rem 0.85rem;
  }

  .opinion-tile-quote {
    font-size: clamp(0.82rem, 3.9vw, 1.28rem);
    line-height: 1.12;
  }

  @supports (font-size: 1cqi) {
    .opinion-tile-quote {
      font-size: clamp(0.82rem, 5.2cqi, 1.35rem);
    }
  }

  .opinion-tile-author {
    font-size: clamp(0.72rem, 2.65vw, 0.98rem);
    line-height: 1.12;
  }

  @supports (font-size: 1cqi) {
    .opinion-tile-author {
      font-size: clamp(0.72rem, 2.85cqi, 1.02rem);
    }
  }

  .playWrap {
    bottom: 16vh;
  }

  .play {
    width: 13vh;
    max-width: 140px;
    height: auto;
  }

  .bottomNote {
    bottom: 5vh;
    font-size: 1.3rem;
    max-width: 90vw;
  }

  .hero-content {
    max-width: min(85vw, 22rem);
  }

  .hero-content p {
    font-size: 1.9rem;
  }

  .hero-logo {
    width: 34vw;
    min-width: 110px;
    max-width: 160px;
  }

  .hero-main-image {
    width: 65vw;
    padding: 3.5rem 0;
    max-width: 340px;
  }

  .hero-notebook {
    left: -20px;
    width: 100%;
  }

  .hero-notebook img {
    width: 88px;
    max-height: 50vh;
  }

  .letter img {
    height: 35vw;
  }

  .letter--l {
    top: 16%;
    left: 12.5%;
  }

  .letter--l img {
    transform: none;
  }

  .letter--a-a1 {
    top: 10%;
    left: 42%;
  }

  .letter--p {
    top: 46%;
    left: 18%;
  }

  .letter--e-e1 {
    top: 40%;
    left: 46%;
  }

  .letter--s {
    top: 46%;
    left: 75%;
  }

  .letter--e-e2 {
    top: 70%;
    left: 26%;
  }

  .letter--t {
    top: 76%;
    left: 48%;
  }

  .letter--a-a2 {
    top: 74%;
    left: 78%;
  }

  .estudios {
    width: 90px;
  }

  .sticker--guitar {
    max-width: 140px;
  }

  .sticker--lamp {
    max-width: 50px;
    top: 10%;
  }

  .cover-drag-cue {
    top: 11%;
    left: 88%;
    transform: translateX(-50%);
    max-width: min(10rem, calc(100vw - 1.5rem));
    gap: 0.18rem;
  }

  .cover-drag-cue__text {
    font-size: clamp(0.72rem, 3.4vw, 0.88rem);
    line-height: 1;
  }

  .cover-drag-cue__arrow {
    width: clamp(0.75rem, 6.5vw, 1.05rem);
    margin: 0;
  }

  .sticker--mug {
    max-width: 45px;
    top: 65%;
  }

  .sticker--bag {
    max-width: 75px;
    top: 35%;
  }
}

/* Narrow + horizontal screens:
   constrain opinion tiles by viewport height and aspect ratio. */
@media (max-width: 500px) and (min-aspect-ratio: 11/8) {
  .opinions-stack {
    min-height: clamp(14.5rem, 40vh, 19rem);
  }

  .opinion-tile {
    width: min(62%, 13.5rem, 28vh);
    top: 48%;
    padding: 0.55rem 0.55rem 0.7rem;
  }

  .opinion-tile-quote {
    font-size: clamp(0.76rem, 3.5vw, 1.12rem);
    line-height: 1.1;
  }

  @supports (font-size: 1cqi) {
    .opinion-tile-quote {
      font-size: clamp(0.76rem, 4.8cqi, 1.18rem);
    }
  }

  .opinion-tile-author {
    font-size: clamp(0.68rem, 2.4vw, 0.9rem);
    line-height: 1.1;
  }
}
