/* =========================================================
   Grēs — atelier hliny
   Farby: warm bone · soft clay · sage · ink
   ========================================================= */

:root {
  --bone:    #F2EDE4;
  --bone-2:  #EAE3D5;
  --clay:    #C9A98A;
  --clay-d:  #8A6A4E;
  --sage:    #A8B09A;
  --burgundy:   #6E1F2E;
  --burgundy-d: #551725;
  --ink:     #1F1C18;
  --muted:   #807A6F;
  --line:    rgba(31,28,24,0.14);

  --serif:   'Fraunces', serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease:    cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bone);
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }

/* ——— MACRON OVER E (Grēs) ———
   Fraunces' precomposed ē places the macron over the gap toward the s,
   so we draw the macron ourselves, centered over the e. */
.macron { position: relative; display: inline-block; line-height: 1; }
.macron::after {
  content: "";
  position: absolute;
  top: 0.26em;
  left: 0.14em;
  width: 0.34em;
  height: 0.05em;
  background: currentColor;
}

/* ——— GRAIN TEXTURE ——— */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.11  0 0 0 0 0.09  0 0 0 0.3 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ——— CUSTOM CURSOR ——— */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease);
  mix-blend-mode: difference;
  backdrop-filter: invert(1);
}
.cursor-dot {
  position: absolute; inset: 0; margin: auto;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--ink);
}
.cursor.hover {
  width: 56px; height: 56px;
  background: var(--ink);
}
.cursor.hover .cursor-dot { background: var(--bone); }

@media (hover: none), (max-width: 900px) {
  body { cursor: auto; }
  .cursor { display: none; }
}

/* ——— NAV ——— */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  background: rgba(242,237,228,0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 26px;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.logo-mark {
  display: inline-flex;
  color: var(--clay-d);
  transition: transform .8s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(180deg); }
.logo-word { font-style: italic; }

.menu {
  display: flex; gap: 36px;
  font-size: 13px; font-weight: 400;
}
.menu a {
  position: relative; padding: 4px 0;
}
.menu a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.menu a:hover::after { transform: scaleX(1); transform-origin: left; }

.cta-small {
  font-size: 13px;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.cta-small:hover { background: var(--ink); color: var(--bone); }

/* Prominent burgundy reservation button */
.cta-reserve.cta-small {
  border-color: transparent;
  background: var(--burgundy);
  color: var(--bone);
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 0 rgba(110,31,46,0.5);
  animation: reservePulse 2.4s var(--ease) infinite;
}
.cta-reserve.cta-small:hover {
  background: var(--burgundy-d);
  color: var(--bone);
  transform: translateY(-1px);
  animation-play-state: paused;
}

@keyframes reservePulse {
  0%   { box-shadow: 0 0 0 0 rgba(110,31,46,0.45); }
  70%  { box-shadow: 0 0 0 12px rgba(110,31,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(110,31,46,0); }
}

/* ——— NAV DROPDOWN ——— */
.menu-item.has-dropdown { position: relative; }
.menu-trigger {
  display: inline-flex; align-items: center; gap: 5px;
}
.menu-caret { transition: transform .35s var(--ease); }
.menu-item.has-dropdown:hover .menu-caret,
.menu-item.has-dropdown:focus-within .menu-caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 170px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: rgba(242,237,228,0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(31,28,24,0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.menu-item.has-dropdown:hover .dropdown,
.menu-item.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--burgundy); color: var(--bone); }

.sound-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 700;
  border: 1px solid var(--line);
  background: rgba(242,237,228,0.82);
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.sound-toggle svg {
  display: block;
}
.sound-toggle .sound-off-mark {
  opacity: 1;
  transition: opacity .2s var(--ease);
}
.sound-toggle.is-on .sound-off-mark {
  opacity: 0;
}
.sound-toggle:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: transparent;
}
.sound-toggle.is-on {
  background: #2b241f;
  color: #f2ede4;
  border-color: transparent;
}

@media (max-width: 800px) {
  .menu { display: none; }
  .nav { padding: 18px 24px; }
  .sound-toggle {
    right: 16px;
    bottom: 16px;
  }
}
@media (max-width: 560px) {
  .nav { padding: 16px 18px; gap: 12px; }
  .logo { font-size: 20px; gap: 8px; }
  .logo-word { white-space: nowrap; }
  .logo-mark svg { width: 22px; height: 22px; }
  .cta-reserve.cta-small { padding: 9px 15px; font-size: 12px; white-space: nowrap; }
}

/* ——— HERO ——— */
.hero {
  min-height: 100vh;
  padding: 150px 40px 60px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 40px;
  position: relative;
}

.hero-visual {
  position: absolute;
  top: 120px;
  right: 40px;
  width: clamp(260px, 32vw, 440px);
  pointer-events: none;
  animation: fadeIn 1.4s var(--ease-out) .6s both;
  z-index: 0;
}
.hero-visual svg,
.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 50px rgba(31,28,24,0.22));
}
.hero-visual img {
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 4px;
}
.hero-visual .steam {
  animation: steam 4s ease-in-out infinite;
  transform-origin: bottom center;
}
.hero-visual .steam2 { animation-delay: .6s; animation-duration: 5s; }
.hero-visual .steam3 { animation-delay: 1.2s; animation-duration: 4.5s; }

@keyframes steam {
  0%,100% { opacity: 0; transform: translateY(6px) scale(1); }
  40%     { opacity: .5; }
  70%     { opacity: .3; transform: translateY(-8px) scale(1.05); }
}

.hero-title, .hero-bottom, .hero-meta { position: relative; z-index: 1; }

@media (max-width: 1100px) {
  .hero-visual { width: 280px; opacity: .55; top: 90px; }
}
@media (max-width: 700px) {
  /* On mobile the image flows between the headline and the subtitle,
     bleeding off the right edge for an editorial feel. */
  .hero-visual {
    display: block;
    position: static;
    width: 80%;
    max-width: none;
    margin: 8px -24px 0 auto;
    opacity: 1;
    animation: fadeIn 1.2s var(--ease-out) .35s both;
  }
  .hero-visual img {
    aspect-ratio: 4/5;
    max-height: 46vh;
    border-radius: 8px 0 0 8px;
    filter: drop-shadow(0 16px 32px rgba(31,28,24,0.20));
  }
}

.hero-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  animation: fadeIn 1.2s var(--ease-out) .2s both;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 3px rgba(201,169,138,0.25);
  animation: pulse 2.5s ease-in-out infinite;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 8.4vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-top: 28px;
}
.hero-title .line { display: block; overflow: hidden; }
/* nudge the second line ("je návrat k sebe.") a touch to the right */
.hero-title .line:nth-child(2) { padding-left: 0.05em; }
.hero-title .word {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease-out) forwards;
}
.hero-title .line:nth-child(2) .word { animation-delay: .15s; }
.hero-title .line:nth-child(3) .word { animation-delay: .3s; }
.italic { font-style: italic; color: var(--clay-d); }

.hero-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-top: 80px;
  animation: fadeIn 1.2s var(--ease-out) .8s both;
}
.hero-sub {
  max-width: 420px;
  font-size: 15px;
  color: var(--muted);
}

.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  background: var(--burgundy);
  color: var(--bone);
  border: none;
  border-radius: 100px;
  font-family: var(--sans); font-size: 13px; font-weight: 400;
  letter-spacing: 0.02em;
  cursor: none;
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.cta:hover { transform: translateY(-2px); background: var(--burgundy-d); }

/* Ghost / secondary CTA — transparent with border */
.cta-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.cta-ghost:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--bone);
}
.cta svg { transition: transform .4s var(--ease); }
.cta:hover svg { transform: translateX(4px); }

.scroll-hint {
  position: absolute; bottom: 32px; right: 40px;
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}
.scroll-hint span {
  width: 40px; height: 1px; background: var(--ink); position: relative; overflow: hidden;
}
.scroll-hint span::after {
  content: ''; position: absolute; inset: 0;
  background: var(--bone);
  animation: scrollLine 2.2s var(--ease) infinite;
}

@media (max-width: 700px) {
  .hero { padding: 132px 24px 40px; justify-content: flex-start; gap: 24px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; margin-top: 28px; }
  .scroll-hint { display: none; }
}

/* ——— MARQUEE ——— */
.marquee {
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bone-2);
}
.marquee-track {
  display: flex; gap: 48px;
  white-space: nowrap;
  animation: scrollX 35s linear infinite;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 45px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.marquee-track span:nth-child(even) { color: var(--clay); font-style: normal; }

/* ——— SECTIONS GENERIC ——— */
section { position: relative; }

.section-head {
  padding: 140px 40px 60px;
  max-width: 1400px; margin: 0 auto;
}
.label {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 30px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 900px;
}
.section-intro {
  margin-top: 28px;
  max-width: 620px;
  font-size: 16px;
  color: var(--muted);
}

/* ——— ABOUT ——— */
.about { padding: 140px 40px; max-width: 1400px; margin: 0 auto; }
.about-label { margin-bottom: 80px; }
.about-label span {
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.image-frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--clay);
}
.image-frame svg,
.image-frame img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
  filter: saturate(0.95) contrast(1.02);
}
.image-frame:hover svg,
.image-frame:hover img { transform: scale(1.05); }
.image-caption {
  position: absolute; bottom: 20px; left: 20px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone); padding: 6px 12px;
  background: rgba(31,28,24,0.4);
  backdrop-filter: blur(8px);
  border-radius: 100px;
}

.about-text .section-title { margin-bottom: 40px; }
.about-text p {
  max-width: 480px;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 20px;
}

.stats {
  display: flex; gap: 50px; margin-top: 60px;
  padding-top: 40px; border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .num {
  font-family: var(--serif);
  font-size: 44px; line-height: 1;
  font-weight: 300;
  letter-spacing: -0.03em;
}
.stat .lbl {
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .stats { flex-wrap: wrap; gap: 30px; }
}

/* ——— COURSES / BENTO ——— */
.courses { padding-bottom: 140px; }
.courses .bento {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.courses .card,
.courses .card--big,
.courses .card--wide {
  min-height: 280px;
  grid-column: auto;
  grid-row: auto;
  background: var(--bone-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 28px;
}
.courses .card--featured {
  background: var(--clay);
  border-color: transparent;
}
.courses .card:hover,
.courses .card--big:hover,
.courses .card--wide:hover {
  background: #e7dfd0;
  transform: none;
}
.courses .card--featured:hover {
  background: #bf9d7d;
}
.courses .card-num {
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  color: var(--muted);
}
.courses .card-body h3 {
  font-size: clamp(26px, 4vw, 34px);
  margin-bottom: 8px;
}
.courses .card-body p {
  max-width: 100%;
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--muted);
  opacity: 1;
}
.courses .card-meta {
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.9;
}
.courses .course-divider {
  margin-top: 14px;
  height: 1px;
  background: var(--line);
}
.courses .course-date {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.courses .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c73333;
  box-shadow: 0 0 0 0 rgba(199, 51, 51, 0.6);
  animation: livePulse 1.8s ease-in-out infinite;
}
.courses .course-btn {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.courses .course-btn:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--bone);
}
/* On the dark featured/big cards, keep the outline legible */
.card--big .course-btn,
.card--featured .course-btn {
  border-color: currentColor;
  color: inherit;
}
.card--big .course-btn:hover,
.card--featured .course-btn:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--bone);
}

/* ——— WORKSHOP DISCIPLINES (two columns) ——— */
.disciplines {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.disc-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 32px;
  background: var(--bone-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  scroll-margin-top: 100px;
  transition: background .4s var(--ease);
}
.disc-card:hover { background: #e7dfd0; }
.disc-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.disc-mark {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--burgundy);
}
.disc-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.disc-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 46ch;
}
.disc-formats {
  list-style: none;
  margin-top: 2px;
  border-top: 1px solid var(--line);
}
.disc-formats li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.fmt-name { font-size: 15px; }
.fmt-meta {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
.disc-card .course-btn { margin-top: 4px; }

/* ——— OPEN COURSES LIST ——— */
.open-courses {
  max-width: 1400px;
  margin: 56px auto 0;
  padding: 0 40px;
  scroll-margin-top: 100px;
}
.open-courses-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.open-courses-head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.01em;
}
.course-list { list-style: none; }
.course-row {
  display: grid;
  grid-template-columns: 150px 1.4fr 1.4fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.course-row:last-child { border-bottom: 1px solid var(--line); }
.cr-date {
  display: flex;
  flex-direction: column;
  font-size: 15px;
}
.cr-time {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.cr-title { font-size: 15px; }
.cr-place {
  font-size: 13px;
  color: var(--muted);
}
.cr-price {
  font-family: var(--serif);
  font-size: 20px;
  white-space: nowrap;
}
.course-row .course-btn { margin-top: 0; }

@media (max-width: 900px) {
  .disciplines { grid-template-columns: 1fr; padding: 0 24px; }
  .open-courses { padding: 0 24px; }
  .course-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date price"
      "title title"
      "place btn";
    gap: 6px 16px;
  }
  .cr-date { grid-area: date; }
  .cr-price { grid-area: price; text-align: right; }
  .cr-title { grid-area: title; }
  .cr-place { grid-area: place; align-self: center; }
  .course-row .course-btn { grid-area: btn; justify-self: end; }
}

/* ——— ABOUT CTA ——— */
.about-cta {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199, 51, 51, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(199, 51, 51, 0); }
}

.bento {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 16px;
}
.card {
  position: relative;
  padding: 36px;
  background: var(--bone-2);
  border-radius: 6px;
  overflow: hidden;
  transition: background .5s var(--ease), transform .5s var(--ease);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 280px;
}
.card:hover { background: #E3DAC7; transform: translateY(-4px); }
.card--big { grid-column: span 2; grid-row: span 2; background: var(--ink); color: var(--bone); }
.card--big:hover { background: #2A2722; }
.card--wide { grid-column: span 3; background: var(--clay); color: var(--ink); }
.card--wide:hover { background: #BF9D7D; }

.card-num {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  opacity: 0.6;
}
.card-body h3 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(28px, 2.6vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.card-body p {
  font-size: 14px;
  opacity: 0.75;
  max-width: 400px;
  margin-bottom: 24px;
}
.card-meta {
  display: flex; gap: 10px;
  font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
.card-shape {
  position: absolute; right: -30px; bottom: -30px;
  width: 220px; height: 220px;
  opacity: 0.35;
  pointer-events: none;
  transition: transform 1s var(--ease);
}
.card:hover .card-shape { transform: rotate(45deg); }
.card-shape svg { width: 100%; height: 100%; }

.card-thumb {
  position: absolute;
  right: 18px; bottom: 18px;
  width: 130px; height: 130px;
  pointer-events: none;
  opacity: 0.85;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
  filter: drop-shadow(0 10px 14px rgba(31,28,24,0.14));
}
.card:hover .card-thumb { transform: translateY(-6px) rotate(-2deg); opacity: 1; }
.card-thumb svg,
.card-thumb img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .courses .bento {
    padding: 0 24px;
    grid-template-columns: 1fr;
  }
  .bento { grid-template-columns: 1fr; }
  .card--big, .card--wide { grid-column: span 1; grid-row: span 1; }
}

/* ——— PHILOSOPHY ——— */
.philosophy {
  background: var(--ink);
  color: var(--bone);
  padding-bottom: 140px;
  margin-top: 60px;
}
.philosophy .label { color: rgba(242,237,228,0.5); }
.philosophy .italic { color: var(--clay); }

.philosophy-grid {
  max-width: 1400px; margin: 0 auto;
  padding: 0 40px;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.philosophy-grid--single {
  grid-template-columns: 1fr;
  max-width: 960px;
}

.philosophy blockquote p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
}
/* Manifesto: lead paragraph stays large, the rest step down in size */
.manifesto p + p {
  font-size: clamp(18px, 1.9vw, 25px);
  line-height: 1.5;
  color: rgba(242,237,228,0.78);
  margin-bottom: 18px;
}
.manifesto cite { margin-top: 12px; display: inline-block; }
.philosophy blockquote cite {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.6);
}

.principles { list-style: none; }
.principles li {
  display: flex; gap: 24px;
  padding: 30px 0;
  border-top: 1px solid rgba(242,237,228,0.12);
}
.principles li:last-child { border-bottom: 1px solid rgba(242,237,228,0.12); }
.p-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--clay);
  min-width: 30px;
}
.principles h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  margin-bottom: 6px;
}
.principles p {
  font-size: 14px;
  color: rgba(242,237,228,0.65);
}

@media (max-width: 900px) {
  .philosophy-grid { grid-template-columns: 1fr; gap: 50px; }
}

/* ——— GALLERY ——— */
.gallery { padding-bottom: 140px; }
.gal-grid {
  max-width: 1400px; margin: 0 auto;
  padding: 0 40px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gal-item {
  position: relative; overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3/4;
}
.gal-item svg,
.gal-item img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
  filter: saturate(0.92) contrast(1.02);
}
.gal-item:hover svg,
.gal-item:hover img { transform: scale(1.06); filter: saturate(1) contrast(1.05); }
.gal-item figcaption {
  display: none;
  position: absolute; bottom: 16px; left: 16px;
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone);
  padding: 6px 12px;
  background: rgba(31,28,24,0.5);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  opacity: 0;
  transform: translateY(8px);
  transition: all .5s var(--ease);
}

@media (max-width: 900px) {
  .gal-grid { grid-template-columns: 1fr; }
}

/* ——— BLOG ——— */
.blog { padding-bottom: 140px; }
.blog-grid {
  max-width: 1400px; margin: 0 auto;
  padding: 0 40px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  display: flex; flex-direction: column;
  background: var(--bone-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .5s var(--ease), background .5s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); background: #e7dfd0; }
.blog-thumb {
  display: block;
  aspect-ratio: 3/2;
  overflow: hidden;
}
.blog-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.02);
  transition: transform 1.2s var(--ease);
}
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-body {
  display: flex; flex-direction: column;
  gap: 10px;
  padding: 24px 24px 28px;
}
.blog-meta {
  display: flex; gap: 8px;
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.blog-meta span:first-child { color: var(--burgundy); }
.blog-body h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 22px; line-height: 1.2;
  letter-spacing: -0.015em;
}
.blog-body h3 a { transition: color .3s var(--ease); }
.blog-body h3 a:hover { color: var(--burgundy); }
.blog-body p {
  font-size: 14px;
  color: var(--muted);
}
.blog-more {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 4px;
  font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.blog-more svg { transition: transform .35s var(--ease); }
.blog-more:hover svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ——— CONTACT ——— */
.contact {
  background: var(--bone-2);
  padding: 140px 40px;
  border-top: 1px solid var(--line);
}
.contact-inner { max-width: 900px; margin: 0 auto; }
.contact-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(48px, 7vw, 110px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 16px 0 24px;
}
.contact-inner > p {
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 60px;
}

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 50px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: span 2; }
.field label {
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
}
.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-family: var(--sans); font-size: 16px;
  color: var(--ink);
  transition: border-color .4s var(--ease);
  cursor: none;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field textarea {
  min-height: 110px;
  line-height: 1.5;
  resize: vertical;
}
.field textarea::placeholder { color: var(--muted); }
.contact-form .cta { grid-column: span 2; width: fit-content; }
.form-msg {
  grid-column: span 2;
  font-size: 13px; color: var(--clay-d);
}

.contact-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.contact-meta span {
  display: block;
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}
.contact-meta p { font-size: 14px; line-height: 1.6; }
.contact-meta a { border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.contact-meta a:hover { border-bottom-color: var(--ink); }

@media (max-width: 700px) {
  .contact-form { grid-template-columns: 1fr; }
  .field--full, .contact-form .cta, .form-msg { grid-column: span 1; }
  .contact-meta { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ——— FOOTER ——— */
.footer {
  padding: 40px;
  font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer-instagram {
  max-width: 1400px;
  margin: 0 auto;
}
.footer-instagram-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-instagram-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-instagram-title svg {
  flex: 0 0 auto;
}
.footer-instagram-head a {
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.footer-instagram-head a:hover { border-bottom-color: var(--ink); }
.footer-instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.footer-ig-item {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1/1;
  display: block;
}
.footer-ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.footer-ig-item:hover img { transform: scale(1.06); }
.footer-bottom {
  max-width: 1400px;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
@media (max-width: 600px) {
  .footer-instagram-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-instagram-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ——— FEEDBACK TOOL ——— */
.feedback-tool {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 800;
  font-family: var(--sans);
}
.feedback-toggle {
  border: 1px solid var(--line);
  background: rgba(242,237,228,0.9);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: none;
}
.feedback-panel {
  margin-top: 10px;
  width: min(300px, calc(100vw - 48px));
  background: rgba(242,237,228,0.96);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  backdrop-filter: blur(10px);
}
.feedback-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.feedback-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.feedback-mode,
.feedback-export,
.feedback-clear {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 11px;
  cursor: none;
}
.feedback-mode.is-active {
  background: var(--ink);
  color: var(--bone);
  border-color: transparent;
}
.feedback-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.feedback-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.feedback-count {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.feedback-target {
  outline: 2px dashed rgba(138,106,78,0.55);
  outline-offset: 2px;
}
.feedback-note-pin {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c73333;
  color: #fff;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(31,28,24,0.25);
  z-index: 2;
}

/* ——— REVEAL ANIMATION ——— */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ——— KEYFRAMES ——— */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rise {
  to { transform: translateY(0); }
}
@keyframes scrollX {
  to { transform: translateX(-50%); }
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(201,169,138,0.25); }
  50%     { box-shadow: 0 0 0 8px rgba(201,169,138,0.05); }
}
@keyframes scrollLine {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
