/*
Theme Name: DOG DEN MUSIC
Theme URI: https://dogdenmusic.com/
Author: Ryo Tomishima
Description: DOG DEN MUSIC 老狗窝 MUSIC官方网站主题。包含服务、价目、设备、音频演示、课程、插件、预约与三步项目提交。
Version: 1.5.17
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: dog-den-studio
*/

/* Calmer display titles and clearer descriptions. */
.hero h1 { font-size: clamp(100px, 12.8vw, 210px); }
.section h2 { font-size: clamp(45px, 5.7vw, 92px); }
.ryo-title h2 { font-size: clamp(68px, 9.2vw, 150px); }
.feature-teaser h2 { font-size: clamp(58px, 7vw, 110px); }
.contact-marquee span { font-size: clamp(80px, 13.4vw, 205px); }
.contact-copy h2 { font-size: clamp(48px, 6.2vw, 92px); }
.address-copy h2 { font-size: clamp(43px, 4.9vw, 73px); }
.compact-profile-heading h2 { font-size: clamp(25px, 2.7vw, 40px); }
.studio-team .compact-profile-heading h2 { font-size: clamp(31px, 3.2vw, 51px); }
.team-member h3 { font-size: clamp(32px, 3.3vw, 52px); }
.price-category-card h3 { font-size: clamp(32px, 3vw, 46px); }
.equipment-card h3 { font-size: clamp(22px, 2.1vw, 34px); }
.plugin-card h3 { font-size: clamp(27px, 3.1vw, 48px); }
.course-main h3 { font-size: 25px; }
.subpage-hero h1 { font-size: clamp(70px, 9.8vw, 150px); }
.courses-subhero h1 { font-size: clamp(64px, 8.8vw, 138px); }
.demos-subhero h1 { font-size: clamp(70px, 9.6vw, 155px); }
.plugin-detail-copy h2 { font-size: clamp(37px, 5vw, 76px); }
.course-detail-title h2 { font-size: clamp(31px, 3.6vw, 54px); }
.course-info-hero h1 { font-size: clamp(49px, 6.2vw, 98px); }
.course-info-empty h2 { font-size: clamp(41px, 5.3vw, 84px); }
.course-enrollment-panel h2 { font-size: 30px; }
.demo-track-heading { font-size: clamp(34px, 4.2vw, 64px); }
.project-hero-title h1 { font-size: clamp(112px, 15.5vw, 240px); }
.project-fieldset legend { font-size: clamp(23px, 2.4vw, 35px); }
.project-package h2 { font-size: clamp(25px, 2.8vw, 40px); }
.project-step-heading h2,
.project-success h2 { font-size: clamp(43px, 5.3vw, 74px); }
.booking-dialog-header h2 { font-size: clamp(38px, 5.2vw, 64px); }
.account-hero h1 { font-size: clamp(94px, 11.5vw, 180px); }
.account-auth-aside h2 { font-size: clamp(38px, 4.5vw, 64px); }
.account-dashboard-header h2 { font-size: clamp(43px, 5.3vw, 78px); }
.account-panel h3 { font-size: clamp(27px, 2.7vw, 41px); }
.hero-copy { font-size: clamp(21px, 2.15vw, 30px); }
.section-intro,
.pricing-top > p,
.course-heading > p { font-size: 17px; }
.service-card p,
.price-category-card > p,
.equipment-heading > p,
.teaser-copy > p,
.plugins-heading > div > p,
.plugin-copy,
.residents-heading > p,
.course-teaser-copy > p,
.course-copy,
.contact-copy > p:last-child,
.address-copy > p,
.team-member > p,
.compact-profile-copy p,
.compact-collabs p { font-size: 15px; }
.ryo-profile > p { font-size: 16px; }
.subpage-hero-copy p,
.account-hero-copy p { font-size: 17px; }
.plugin-detail-copy > span,
.course-detail-copy > p,
.course-info-hero > p:last-child,
.course-info-empty p,
.demo-list-intro p,
.project-step-heading p,
.account-auth-aside p { font-size: 15px; }
.project-package > p,
.booking-dialog-header p,
.account-panel > p { font-size: 13px; }

@media (max-width: 900px) {
  .hero h1 { font-size: clamp(88px, 18vw, 148px); }
  .subpage-hero h1 { font-size: clamp(68px, 10.8vw, 126px); }
  .courses-subhero h1 { font-size: clamp(60px, 8.8vw, 105px); }
  .demos-subhero h1 { font-size: clamp(66px, 9.8vw, 118px); }
  .account-hero h1 { font-size: clamp(82px, 18vw, 132px); }
}

@media (max-width: 620px) {
  .hero h1 { font-size: clamp(78px, 25vw, 114px); }
  .section h2 { font-size: clamp(41px, 12.5vw, 64px); }
  .ryo-title h2 { font-size: clamp(66px, 21vw, 98px); }
  .feature-teaser h2 { font-size: 57px; }
  .contact-marquee span { font-size: 74px; }
  .contact-copy h2 { font-size: 50px; }
  .address-copy h2 { font-size: 47px; }
  .subpage-hero h1,
  .courses-subhero h1 { font-size: clamp(60px, 19vw, 92px); }
  .demos-subhero h1 { font-size: clamp(58px, 18vw, 88px); }
  .plugin-detail-copy h2 { font-size: 43px; }
  .course-info-hero h1 { font-size: clamp(48px, 14vw, 70px); }
  .demo-track-heading { font-size: clamp(33px, 10.5vw, 49px); }
  .project-hero-title h1 { font-size: clamp(76px, 24vw, 108px); }
  .project-step-heading h2,
  .project-success h2 { font-size: clamp(39px, 12vw, 57px); }
  .account-hero h1 { font-size: clamp(68px, 22vw, 98px); }
  .account-dashboard-header h2 { font-size: 44px; }
  .section-intro,
  .pricing-top > p,
  .course-heading > p,
  .subpage-hero-copy p,
  .account-hero-copy p { font-size: 16px; }
  .service-card p,
  .price-category-card > p,
  .equipment-heading > p,
  .teaser-copy > p,
  .plugins-heading > div > p,
  .plugin-copy,
  .residents-heading > p,
  .course-teaser-copy > p,
  .course-copy,
  .contact-copy > p:last-child,
  .address-copy > p,
  .team-member > p,
  .compact-profile-copy p,
  .compact-collabs p,
  .plugin-detail-copy > span,
  .course-detail-copy > p,
  .course-info-hero > p:last-child,
  .course-info-empty p,
  .demo-list-intro p,
  .project-step-heading p,
  .account-auth-aside p { font-size: 14px; }
}

/* Portrait testimonials: equal circular portraits with an editorial quote layout. */
.testimonial-item.is-expandable {
  cursor: pointer;
  min-height: 360px;
  overflow: hidden;
  padding: clamp(22px, 3vw, 38px);
  position: relative;
}

.testimonial-lead {
  align-items: center;
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: clamp(150px, 16vw, 210px) minmax(0, 1fr);
}

.testimonial-preview-image {
  aspect-ratio: 1 / 1;
  background: rgba(247, 239, 223, 0.6);
  border: 1px solid rgba(58, 52, 42, 0.22);
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(61, 46, 34, 0.14);
  overflow: hidden;
  width: 100%;
}

.testimonial-preview-image img {
  display: block;
  filter: grayscale(0.06) sepia(0.08) contrast(0.98);
  height: 100%;
  object-fit: cover;
  object-position: 50% 9%;
  opacity: 0.9;
  transition:
    opacity 180ms ease,
    transform 240ms ease;
  width: 100%;
}

.testimonial-item.is-expandable:hover .testimonial-preview-image img,
.testimonial-item.is-expandable:focus-visible .testimonial-preview-image img {
  opacity: 1;
  transform: scale(1.025);
}

.testimonial-preview-copy {
  min-width: 0;
}

.testimonial-item.is-expandable blockquote {
  display: -webkit-box;
  font-size: clamp(20px, 1.8vw, 27px);
  font-style: italic;
  letter-spacing: -0.025em;
  line-height: 1.48;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.testimonial-item.is-expandable footer {
  align-items: flex-start;
  border-top: 2px solid rgba(58, 52, 42, 0.72);
  display: grid;
  gap: 5px;
  grid-template-columns: 1fr;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 20px 0 0;
}

.testimonial-item.is-expandable .testimonial-client strong {
  font-size: clamp(16px, 1.4vw, 20px);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.testimonial-item.is-expandable footer > span {
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.72;
  text-align: left;
}

.testimonial-item.is-expandable:focus-visible {
  outline: 2px solid rgba(58, 52, 42, 0.72);
  outline-offset: -4px;
}

.testimonial-expand-label {
  align-self: flex-start;
  font-family: var(--font-menu);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-top: 14px;
  opacity: 0.68;
}

.testimonial-modal-backdrop {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(38, 31, 25, 0.76);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 1400;
}

.testimonial-modal-backdrop[hidden] {
  display: none;
}

.testimonial-modal {
  background: #e8d8bb;
  border: 1px solid rgba(247, 239, 223, 0.72);
  box-shadow: 0 34px 110px rgba(16, 12, 9, 0.46);
  display: grid;
  gap: clamp(34px, 5vw, 72px);
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  max-height: min(760px, calc(100dvh - 40px));
  overflow-y: auto;
  padding: clamp(48px, 6vw, 78px);
  position: relative;
  width: min(1060px, calc(100vw - 40px));
}

.testimonial-modal-close {
  align-items: center;
  background: rgba(247, 239, 223, 0.88);
  border: 1px solid rgba(58, 52, 42, 0.5);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-family: sans-serif !important;
  font-size: 28px;
  height: 54px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 4px;
  position: absolute;
  right: 22px;
  top: 22px;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
  width: 54px;
  z-index: 3;
}

.testimonial-modal-close:hover,
.testimonial-modal-close:focus-visible {
  background: var(--ink);
  color: var(--paper-bright);
  transform: rotate(5deg);
}

.testimonial-modal-image {
  align-self: center;
  aspect-ratio: 1 / 1;
  background: rgba(247, 239, 223, 0.5);
  border: 1px solid rgba(58, 52, 42, 0.24);
  border-radius: 50%;
  box-shadow: 0 22px 56px rgba(61, 46, 34, 0.16);
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.testimonial-modal-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: 50% 9%;
  opacity: 0.96;
  width: 100%;
}

.testimonial-modal-content {
  align-self: center;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.testimonial-modal-kicker {
  display: block;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.testimonial-modal blockquote {
  font-family: var(--serif);
  font-size: clamp(23px, 2.3vw, 36px);
  font-style: italic;
  letter-spacing: -0.035em;
  line-height: 1.48;
  margin: 0;
}

.testimonial-modal-credit {
  border-top: 3px solid rgba(58, 52, 42, 0.84);
  display: flex;
  flex-direction: column;
  gap: 6px;
  grid-column: 1 / -1;
  margin-top: 0;
  padding-top: 22px;
}

.testimonial-modal-credit strong {
  font-family: var(--font-menu);
  font-size: clamp(19px, 2vw, 25px);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.testimonial-modal-credit span {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.72;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .testimonial-item.is-expandable {
    min-height: 300px;
    padding: 24px;
  }

  .testimonial-lead {
    gap: 18px;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .testimonial-item.is-expandable blockquote {
    font-size: clamp(17px, 4.6vw, 21px);
    -webkit-line-clamp: 4;
  }

  .testimonial-expand-label {
    font-size: 10px;
    margin-top: 10px;
  }

  .testimonial-item.is-expandable footer {
    margin-top: 24px;
    padding-top: 15px;
  }

  .testimonial-modal-backdrop {
    padding: 12px;
  }

  .testimonial-modal {
    grid-template-columns: 1fr;
    gap: 22px;
    max-height: calc(100dvh - 24px);
    padding: 58px 24px 30px;
    width: calc(100vw - 24px);
  }

  .testimonial-modal-close {
    height: 48px;
    right: 14px;
    top: 14px;
    width: 48px;
  }

  .testimonial-modal-image {
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    min-height: 0;
    width: min(58vw, 220px);
  }

  .testimonial-modal-image img {
    object-position: 50% 5%;
  }

  .testimonial-modal-content {
    max-height: none;
    padding: 0;
  }

  .testimonial-modal-kicker {
    margin-bottom: 22px;
  }

  .testimonial-modal blockquote {
    font-size: clamp(21px, 6.4vw, 28px);
  }

  .testimonial-modal-credit {
    margin-top: 2px;
    padding-top: 18px;
  }
}

/* Keep testimonial cards compact and readable inside narrow columns/previews. */
.testimonial-carousel {
  container-type: inline-size;
  min-height: 0;
}

.testimonial-stage {
  flex: 0 0 auto;
  margin-top: clamp(22px, 3vw, 32px);
}

.testimonial-item.is-expandable {
  min-height: 0;
  padding: clamp(14px, 2.5vw, 28px);
}

.testimonial-item.is-expandable .testimonial-preview-copy blockquote {
  color: var(--ink);
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  visibility: visible;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.testimonial-item.is-expandable footer {
  margin-top: clamp(18px, 3vw, 28px);
}

.testimonial-expand-label {
  display: inline-block;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.testimonial-controls {
  margin-top: 20px;
}

@container (max-width: 560px) {
  .testimonial-item.is-expandable {
    padding: 8px 0 0;
  }

  .testimonial-lead {
    align-items: center;
    gap: 16px;
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .testimonial-item.is-expandable .testimonial-preview-copy blockquote {
    font-size: clamp(16px, 5.2cqw, 20px);
    line-height: 1.45;
    -webkit-line-clamp: 3;
  }

  .testimonial-expand-label {
    font-size: 9px;
    margin-top: 8px;
  }

  .testimonial-item.is-expandable footer {
    margin-top: 18px;
    padding-top: 14px;
  }
}

@media (max-width: 620px) {
  .testimonial-carousel {
    min-height: 0;
    padding: 18px;
  }

  .testimonial-stage {
    margin-top: 22px;
  }
}


/* DOG DEN visual system — warm editorial palette and calmer type scale. */
:root {
  --shadow-soft: 0 18px 42px rgba(51, 45, 38, 0.12);
}

body {
  background: var(--paper);
  font-size: 16px;
}

.site-header,
.subpage-header {
  background: linear-gradient(105deg, rgba(51, 45, 38, 0.98), rgba(70, 58, 48, 0.96));
  box-shadow: 0 8px 28px rgba(51, 45, 38, 0.16);
}

.wordmark-logo {
  border-color: rgba(245, 237, 220, 0.55);
}

.wordmark-mark,
.header-cta,
.button-primary,
.price-tag {
  background: var(--red);
}

.header-cta:hover,
.button-primary:hover,
.button-dark:hover {
  background: var(--sage);
  border-color: var(--sage);
}

.desktop-nav a,
.subpage-header nav a {
  letter-spacing: 0.035em;
}

.hero {
  background:
    radial-gradient(circle at 80% 28%, rgba(216, 225, 225, 0.32), transparent 24%),
    radial-gradient(circle at 70% 62%, rgba(205, 178, 126, 0.34), transparent 42%),
    linear-gradient(135deg, #5d5145 0%, #a8775b 58%, #536269 100%);
}

.hero h1 {
  font-size: clamp(98px, 12.6vw, 208px);
  line-height: 0.73;
}

.hero h1 span:nth-child(2) {
  color: #d8b36f;
}

.hero-copy {
  max-width: 29rem;
}

.ticker {
  background: var(--ink);
  color: var(--paper-bright);
}

.section {
  padding-bottom: clamp(86px, 9vw, 132px);
  padding-top: clamp(86px, 9vw, 132px);
}

.section-heading,
.pricing-top,
.equipment-heading,
.residents-heading,
.course-heading,
.plugins-heading {
  margin-bottom: clamp(58px, 6vw, 84px);
}

.section h2 {
  font-size: clamp(46px, 5.4vw, 88px);
  line-height: 0.98;
}

.section-intro,
.pricing-top > p,
.course-heading > p,
.equipment-heading > p,
.residents-heading > p,
.course-teaser-copy > p,
.teaser-copy > p,
.plugins-heading > div > p,
.address-copy > p,
.location-heading > p,
.contact-copy > p:last-child {
  font-size: clamp(15px, 1.12vw, 18px);
  line-height: 1.78;
}

.section-label {
  color: var(--red-dark);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.section-services {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(51, 45, 38, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 45, 38, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 88% 12%, rgba(127, 140, 118, 0.16), transparent 28%);
}

.testimonial-carousel {
  background: rgba(245, 237, 220, 0.62);
  border-color: rgba(112, 73, 59, 0.24);
  box-shadow: var(--shadow-soft);
}

.service-grid,
.price-category-grid,
.equipment-grid {
  border-left-color: rgba(112, 73, 59, 0.28);
}

.service-card,
.price-category-card,
.equipment-card {
  border-color: rgba(112, 73, 59, 0.28);
  padding: 28px;
}

.service-card {
  min-height: 320px;
}

.service-card:hover {
  background: var(--ink-soft);
}

.service-card h3,
.price-category-card h3,
.equipment-card h3,
.course-main h3 {
  letter-spacing: -0.045em;
}

.service-card p,
.price-category-card > p,
.equipment-card li strong,
.course-copy,
.plugin-copy,
.compact-profile-copy p,
.compact-collabs p,
.team-member > p {
  font-size: 14px;
  line-height: 1.78;
}

.section-ryo {
  background:
    linear-gradient(120deg, rgba(127, 140, 118, 0.98), rgba(158, 163, 137, 0.98)),
    var(--sage);
}

.ryo-title h2 {
  font-size: clamp(68px, 8.7vw, 142px);
}

.ryo-profile .ryo-lead {
  font-size: clamp(20px, 2vw, 29px);
}

.section-pricing {
  background-color: #c5d1d0;
  background-image:
    radial-gradient(circle at 90% 18%, rgba(245, 237, 220, 0.56), transparent 28%),
    linear-gradient(rgba(51, 45, 38, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 45, 38, 0.035) 1px, transparent 1px);
  background-size: cover, 100% 64px, 64px 64px;
}

.price-category-card {
  min-height: 410px;
  background: rgba(245, 237, 220, 0.24);
}

.price-category-card:hover {
  background: var(--paper-bright);
  box-shadow: var(--shadow-soft);
}

.price-category-card h3 {
  font-size: clamp(34px, 3vw, 48px);
  margin-top: 58px;
}

.section-equipment {
  background-color: #dfc398;
  background-image:
    linear-gradient(rgba(51, 45, 38, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 45, 38, 0.055) 1px, transparent 1px);
}

.equipment-demo-callout {
  background: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}

.section-plugins {
  background:
    radial-gradient(circle at 78% 18%, rgba(117, 135, 149, 0.34), transparent 24%),
    linear-gradient(135deg, #70493b 0%, #905c49 56%, #58656b 100%);
}

.feature-teaser h2 {
  font-size: clamp(56px, 6.7vw, 108px);
}

.teaser-control {
  background: rgba(51, 45, 38, 0.28);
  box-shadow: var(--shadow-soft);
}

.plugin-grid {
  gap: 20px;
}

.plugin-card {
  min-height: 540px;
  border-color: rgba(245, 237, 220, 0.36);
  box-shadow: 0 12px 30px rgba(51, 45, 38, 0.14);
}

.plugin-cream {
  background: var(--paper-bright);
}

.plugin-charcoal {
  background: #536269;
}

.plugin-red {
  background: #7c5144;
}

.section-residents {
  background: var(--paper-soft);
}

.art-card {
  background: var(--paper-bright);
  border-color: rgba(112, 73, 59, 0.5);
  box-shadow: 11px 11px 0 rgba(112, 73, 59, 0.15);
}

.section-courses {
  background-color: var(--blue-gray-soft);
  background-image:
    radial-gradient(circle at 12% 48%, rgba(165, 111, 81, 0.22), transparent 28%),
    linear-gradient(rgba(51, 45, 38, 0.05) 1px, transparent 1px);
}

.course-card:hover {
  background: rgba(245, 237, 220, 0.5);
}

.course-meta a:hover {
  background: var(--red);
}

.contact-section {
  background:
    radial-gradient(circle at 82% 14%, rgba(127, 140, 118, 0.25), transparent 25%),
    #3f4a4d;
}

.contact-marquee span {
  color: #d8b36f;
  font-size: clamp(76px, 12.4vw, 192px);
}

.address-section,
.location-screen {
  background: var(--paper-bright);
}

.address-map,
.location-map {
  background-color: #bdc9c6;
  background-image:
    linear-gradient(rgba(51, 45, 38, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 45, 38, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 32% 35%, rgba(245, 237, 220, 0.34), transparent 30%);
}

.map-pin,
.location-logo-pin {
  background: var(--paper-bright);
  box-shadow: 12px 14px 0 rgba(51, 45, 38, 0.16);
}

.location-panel {
  background: rgba(245, 237, 220, 0.38);
}

.compact-profile {
  background-color: #d9c7aa;
  background-image:
    linear-gradient(rgba(51, 45, 38, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 45, 38, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 85% 20%, rgba(127, 140, 118, 0.16), transparent 24%);
}

.compact-profile-heading h2 {
  font-size: clamp(25px, 2.6vw, 38px);
}

.footer {
  background: var(--ink);
}

/* Make the hierarchy breathe: readable copy, compact display faces, consistent gutters. */
.hero-copy,
.service-card p,
.price-category-card > p,
.equipment-heading > p,
.teaser-copy > p,
.plugins-heading > div > p,
.course-teaser-copy > p,
.course-copy,
.contact-copy > p:last-child,
.address-copy > p,
.location-heading > p,
.team-member > p {
  max-width: 38rem;
}

.button {
  font-size: 13px;
  letter-spacing: 0.035em;
  padding: 16px 19px;
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: clamp(84px, 16.5vw, 144px);
  }

  .section h2 {
    font-size: clamp(43px, 8vw, 72px);
  }

  .feature-teaser h2 {
    font-size: clamp(52px, 10vw, 84px);
  }

  .service-card,
  .price-category-card,
  .equipment-card {
    padding: 22px;
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: clamp(70px, 23vw, 108px);
  }

  .section {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .section h2 {
    font-size: clamp(40px, 12vw, 62px);
  }

  .section-intro,
  .pricing-top > p,
  .course-heading > p,
  .equipment-heading > p,
  .residents-heading > p,
  .course-teaser-copy > p,
  .teaser-copy > p,
  .plugins-heading > div > p,
  .address-copy > p,
  .location-heading > p,
  .contact-copy > p:last-child {
    font-size: 15px;
  }

  .service-card,
  .price-category-card,
  .equipment-card {
    padding: 20px;
  }

  .service-card p,
  .price-category-card > p,
  .equipment-card li strong,
  .course-copy,
  .plugin-copy,
  .compact-profile-copy p,
  .compact-collabs p,
  .team-member > p {
    font-size: 15px;
  }

  .plugin-card {
    min-height: 480px;
  }
}



/* A warmer, clearer first impression for the home hero. */
.hero {
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 251, 241, 0.98), transparent 25%),
    radial-gradient(circle at 72% 70%, rgba(214, 177, 118, 0.32), transparent 42%),
    linear-gradient(125deg, #fff7e8 0%, #f1dfbf 56%, #ddc39d 100%);
  color: #332d26;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(112, 73, 59, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(112, 73, 59, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 251, 242, 0.22), rgba(112, 73, 59, 0.02));
  background-size: 72px 72px, 72px 72px, cover;
  opacity: 0.72;
}

.hero-grain {
  opacity: 0.025;
}

.hero-logo-card {
  background: #fffaf0;
  border-color: rgba(112, 73, 59, 0.28);
  box-shadow: 18px 20px 0 rgba(112, 73, 59, 0.13);
}

.hero h1 {
  color: #332d26;
  text-shadow: 0 2px 0 rgba(255, 251, 242, 0.28);
}

.hero h1 span:nth-child(2) {
  color: #985e45;
}

.hero h1 span:nth-child(3) {
  -webkit-text-stroke-color: #332d26;
}

.hero .eyebrow {
  color: #70493b;
}

.hero .live-dot {
  background: #985e45;
  box-shadow: 0 0 0 5px rgba(152, 94, 69, 0.18);
}

.hero-copy {
  color: #3d342b;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 251, 242, 0.38);
}

.hero .text-link {
  background: rgba(255, 250, 240, 0.48);
  border-bottom-color: rgba(61, 52, 43, 0.56);
  color: #3d342b;
  padding: 8px 10px;
}

.hero .button-primary {
  background: #8f5942;
  border-color: #8f5942;
  box-shadow: 0 8px 18px rgba(112, 73, 59, 0.2);
  color: #fffaf0;
}

.hero .button-primary:hover {
  background: #70493b;
  border-color: #70493b;
  color: #fffaf0;
}

.hero-index {
  color: #4d4034;
  opacity: 0.72;
}

/* 1.3.6 — clearer hero copy and swipeable client notes. */
.testimonial-carousel {
  cursor: grab;
  touch-action: pan-y;
}

.testimonial-carousel:active {
  cursor: grabbing;
}

.testimonial-item.is-ovid .testimonial-preview-image,
.testimonial-modal.is-ovid .testimonial-modal-image {
  background: #ece9e2;
}

.testimonial-item.is-ovid .testimonial-preview-image img,
.testimonial-modal.is-ovid .testimonial-modal-image img {
  height: 100%;
  margin-left: 33%;
  object-fit: contain;
  object-position: center center;
  transform: none;
  width: 78%;
}

.testimonial-item.is-ovid:hover .testimonial-preview-image img,
.testimonial-item.is-ovid:focus-visible .testimonial-preview-image img {
  transform: none;
}

.testimonial-modal-backdrop {
  touch-action: pan-y;
}

.testimonial-modal.has-no-portrait {
  grid-template-columns: 1fr;
}

.testimonial-modal.has-no-portrait .testimonial-modal-content {
  grid-column: 1 / -1;
}

.testimonial-modal-nav {
  align-items: center;
  background: transparent;
  border: 0;
  bottom: 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: center;
  opacity: 0;
  padding: 0;
  position: absolute;
  top: 0;
  transition: opacity 180ms ease;
  width: 12%;
  z-index: 2;
}

.testimonial-modal-prev {
  left: 0;
}

.testimonial-modal-next {
  right: 0;
}

.testimonial-modal-nav span {
  align-items: center;
  background: rgba(255, 250, 240, 0.94);
  border: 1px solid rgba(58, 52, 42, 0.46);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(61, 46, 34, 0.18);
  display: flex;
  font-family: sans-serif;
  font-size: 20px;
  height: 42px;
  justify-content: center;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  width: 42px;
}

.testimonial-modal-nav:hover,
.testimonial-modal-nav:focus-visible {
  outline: none;
  opacity: 1;
}

.testimonial-modal-nav:hover span,
.testimonial-modal-nav:focus-visible span {
  background: var(--ink);
  color: var(--paper-bright);
  transform: scale(1.06);
}

@media (hover: none) {
  .testimonial-modal-nav {
    opacity: 0.78;
    width: 16%;
  }
}

.hero h1 span:nth-child(3) {
  color: rgba(255, 250, 240, 0.82);
  -webkit-text-fill-color: rgba(255, 250, 240, 0.82);
  -webkit-text-stroke: 2px #332d26;
  text-shadow: 0 2px 0 rgba(255, 251, 242, 0.38), 0 10px 28px rgba(89, 61, 43, 0.16);
}

.hero .eyebrow {
  color: #51352c;
  font-weight: 800;
}

.hero-copy {
  color: #2b221c;
  font-weight: 800;
}

.hero .text-link {
  background: rgba(255, 250, 240, 0.82);
  border: 1px solid rgba(61, 52, 43, 0.34);
  color: #2b221c;
  font-weight: 700;
}

.hero-index {
  color: #332920;
  font-weight: 700;
  opacity: 0.94;
}

.site-header .wordmark,
.site-header .wordmark small,
.site-header .header-home-link,
.site-header .desktop-nav a,
.site-header .menu-toggle {
  color: #fff7e8;
}

.site-header .header-home-link {
  background: rgba(255, 247, 232, 0.08);
  border-color: rgba(255, 247, 232, 0.22);
}

.site-header .desktop-nav a {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.site-header .desktop-nav a:hover,
.site-header .desktop-nav a:focus-visible,
.site-header .header-home-link:hover,
.site-header .header-home-link:focus-visible {
  background: rgba(255, 247, 232, 0.12);
  color: #ffffff;
}

.site-header .menu-toggle span {
  background: #fff7e8;
}

/* Compact secondary-page navigation and type rhythm on phones. */
@media (max-width: 620px) {
  html { scroll-padding-top: 60px; }
  .subpage { padding-top: 60px; }
  .subpage-header {
    grid-template-columns: minmax(112px, 1fr) auto;
    height: 60px;
  }
  .subpage-brand-group { gap: 6px; }
  .subpage-brand-group .wordmark {
    border-right: 0;
    padding: 0 4px 0 10px;
  }
  .subpage-brand-group .wordmark-logo {
    height: 38px;
    width: 38px;
  }
  .subpage-header .header-home-link {
    font-size: 13px;
    letter-spacing: 0.04em;
    min-height: 40px;
    padding: 0 10px;
    white-space: nowrap;
  }
  .subpage-header .header-project-nav {
    gap: 6px;
    padding: 0 8px 0 4px;
  }
  .subpage-header nav a.header-back,
  .subpage-header nav a.header-project-link {
    align-items: center;
    display: inline-flex;
    font-size: 12px;
    gap: 6px;
    height: 40px;
    justify-content: center;
    letter-spacing: 0.02em;
    line-height: 1;
    min-height: 40px;
    padding: 0 9px;
    white-space: nowrap;
  }
  .subpage-header nav a.header-project-link span {
    flex: none;
    font-family: sans-serif;
    font-size: 14px;
  }
  .demos-cta {
    gap: 20px;
    padding: 56px 20px;
  }
  .demos-cta > p { margin: 0; }
  .demos-cta h2 {
    font-size: clamp(42px, 12vw, 54px);
    letter-spacing: -0.045em;
    line-height: 0.98;
  }
  .demos-cta .button {
    font-size: 14px;
    min-height: 56px;
    padding: 0 18px;
  }
  .floating-audio-player {
    gap: 9px 10px;
    padding: 10px 12px 12px;
  }
  .floating-player-track { gap: 3px 8px; }
  .floating-player-track strong { font-size: 14px; }
  .floating-player-controls button {
    height: 36px;
    min-width: 36px;
    padding: 0 7px;
  }
  .floating-player-controls .floating-player-toggle {
    height: 40px;
    min-width: 40px;
    width: 40px;
  }
  .subpage-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 26px 20px;
  }
  .hero .eyebrow {
    align-items: flex-start;
    line-height: 1.55;
    max-width: calc(100% - 148px);
    white-space: normal;
  }
  .hero .live-dot {
    flex: 0 0 8px;
    margin-top: 2px;
  }
}
