:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  border-radius: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b63c26;
  outline-offset: 3px;
}

button[type="submit"]:hover {
  background: #35272b !important;
}

.hero-sense-icons {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-sense-icons img {
  width: 28px;
  height: 28px;
  opacity: 0.78;
  animation: heroSenseBreathe 5s ease-in-out infinite;
}

.hero-sense-icons img:nth-child(2) { animation-delay: 0.35s; }
.hero-sense-icons img:nth-child(3) { animation-delay: 0.7s; }
.hero-sense-icons img:nth-child(4) { animation-delay: 1.05s; }
.hero-sense-icons img:nth-child(5) { animation-delay: 1.4s; }

@keyframes heroSenseBreathe {
  0%, 100% { transform: translateY(0); opacity: 0.72; }
  50% { transform: translateY(-3px); opacity: 1; }
}

.story-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 112px 32px;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  gap: 64px;
  align-items: stretch;
}

.story-media {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.story-photo-frame {
  position: relative;
  min-height: 620px;
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #ded4cc;
}

.story-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 64% 50%;
}

.story-caption {
  color: #8d8177;
  font-size: 12px;
  letter-spacing: 0.4px;
}

.story-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sense-list {
  display: flex;
  flex-direction: column;
}

.sense-option {
  width: 100%;
  appearance: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #e8e0d7;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.sense-option__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 135%;
}

.sense-panel {
  min-height: 0;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 22px;
  border-radius: 10px;
  transition: background 0.45s;
}

.sense-panel__heading {
  display: flex;
  align-items: center;
  gap: 22px;
}

.sense-panel__icon-tile {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  transition: background 0.45s;
}

.sense-panel__icon {
  width: 48px;
  height: 48px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 135%;
}

@media (min-width: 981px) {
  .sense-list {
    height: 100%;
  }

  .sense-option {
    flex: 1;
  }
}

.testimonial-section {
  background: #f3ede7;
  scroll-margin-top: 72px;
}

.testimonial-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 112px 32px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.testimonial-heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-heading__eyebrow {
  margin-bottom: 18px;
  color: #8a7a7f;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.testimonial-heading h2 {
  margin: 0;
  color: #483438;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.6px;
}

.testimonial-heading p {
  max-width: 690px;
  margin: 20px auto 0;
  color: #6f6661;
  font-size: 16px;
  line-height: 1.75;
}

.testimonial-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #d8cec6;
  border-bottom: 1px solid #d8cec6;
}

.testimonial-proof {
  min-height: 148px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.testimonial-proof + .testimonial-proof {
  border-left: 1px solid #d8cec6;
}

.testimonial-proof__value {
  color: #483438;
  font-family: "Cormorant Garamond", "Gowun Batang", serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
}

.testimonial-proof__label {
  max-width: 180px;
  color: #7c706a;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.15px;
  line-height: 1.5;
  text-transform: uppercase;
}

.testimonial-carousel {
  min-width: 0;
}

.testimonial-carousel__header {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.testimonial-carousel__hint {
  color: #857871;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.5;
}

.testimonial-carousel__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.testimonial-carousel__button {
  position: relative;
  z-index: 2;
  min-height: 46px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #cfc2ba;
  border-radius: 999px;
  background: transparent;
  color: #483438;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.testimonial-carousel__button:hover:not(:disabled) {
  border-color: #483438;
  background: #483438;
  color: #fff;
}

.testimonial-carousel__button:disabled {
  cursor: default;
  opacity: 0.32;
}

.testimonial-carousel__counter {
  min-width: 66px;
  color: #746861;
  font-family: "Cormorant Garamond", "Gowun Batang", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.testimonial-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 20px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-track:focus-visible {
  outline: 3px solid #b63c26;
  outline-offset: 4px;
}

.testimonial-card {
  min-height: 330px;
  padding: 30px 28px 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2d9d1;
  border-radius: 4px;
  background: #fbf8f5;
  box-shadow: 0 12px 34px rgba(72, 52, 56, 0.055);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.testimonial-card--accent {
  background: #efe6df;
}

.testimonial-card__tag {
  margin-bottom: 20px;
  color: #9a6d62;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.55px;
  line-height: 1.4;
  text-transform: uppercase;
}

.testimonial-card blockquote {
  margin: 0;
  flex: 1;
}

.testimonial-card blockquote p {
  margin: 0;
  color: #483438;
  font-family: "Cormorant Garamond", "Gowun Batang", serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.55;
}

.testimonial-card blockquote .testimonial-card__quote--kr {
  font-size: 16px;
  font-style: normal;
  line-height: 1.9;
}

.testimonial-card footer {
  margin-top: 26px;
  padding-top: 19px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px solid #ded4cc;
}

.testimonial-card footer strong {
  color: #483438;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  line-height: 1.4;
  text-transform: uppercase;
}

.testimonial-card footer span {
  color: #8d8177;
  font-size: 11px;
  line-height: 1.5;
}

.testimonial-note {
  color: #958981;
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 980px) {
  .site-nav {
    display: none !important;
  }

  .story-grid,
  .method-grid,
  .method-origin,
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .story-grid,
  .contact-grid {
    gap: 48px !important;
  }

  .story-photo-frame {
    min-height: 520px;
  }

  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .testimonial-track {
    grid-auto-columns: calc((100% - 20px) / 2);
  }

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

  .testimonial-proof:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #d8cec6;
  }

  .testimonial-proof:nth-child(4) {
    border-top: 1px solid #d8cec6;
  }

  .format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    height: 68px !important;
    gap: 14px !important;
    padding: 0 20px !important;
  }

  .nav-inner .nav-logo {
    width: 152px !important;
    height: auto !important;
  }

  .nav-inner > div {
    gap: 14px !important;
  }

  .nav-cta {
    display: none !important;
  }

  .hero-media {
    width: 100% !important;
    opacity: 0.72;
  }

  .hero-media > div {
    background: linear-gradient(90deg, rgba(72, 52, 56, 0.98) 0%, rgba(72, 52, 56, 0.88) 62%, rgba(72, 52, 56, 0.48) 100%), linear-gradient(0deg, rgba(72, 52, 56, 0.74) 0%, rgba(72, 52, 56, 0.14) 70%) !important;
  }

  .hero-content {
    padding: 132px 24px 80px !important;
  }

  .hero-content h1 {
    font-size: 38px !important;
  }

  #story > div,
  #method > div,
  #programs > div,
  #contact > div,
  [data-screen-label="Testimonials"] > div {
    padding: 80px 24px !important;
  }

  [data-screen-label="Quote band"] > div {
    padding: 64px 24px !important;
  }

  [data-screen-label="Footer"] > div {
    padding: 52px 24px 32px !important;
  }

  .story-grid,
  .method-grid,
  .method-origin,
  .program-grid,
  .contact-grid,
  .form-name-grid,
  .sense-details,
  .credentials-grid,
  .format-grid {
    grid-template-columns: 1fr !important;
  }

  .story-photo-frame {
    min-height: 430px;
  }

  .story-photo {
    height: 100% !important;
    object-position: 64% 50%;
  }

  .sense-panel {
    min-height: 0;
    padding: 32px 24px !important;
  }

  .sense-option {
    padding: 17px 16px;
  }

  .sense-option__icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .sense-panel__icon-tile {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .sense-panel__icon {
    width: 44px;
    height: 44px;
  }

  .method-origin {
    gap: 28px !important;
  }

  .method-origin > img {
    height: 240px !important;
  }

  .program-grid > div {
    padding: 30px 26px !important;
  }

  .testimonial-shell {
    gap: 40px;
  }

  .testimonial-heading h2 {
    font-size: 34px;
  }

  .testimonial-heading p {
    font-size: 15px;
  }

  .testimonial-proof {
    min-height: 126px;
    padding: 24px 14px;
  }

  .testimonial-proof__value {
    font-size: 32px;
  }

  .testimonial-card {
    min-height: 0;
    padding: 28px 24px 24px;
  }

  .testimonial-carousel__header {
    align-items: flex-end;
    gap: 16px;
  }

  .testimonial-carousel__hint {
    max-width: 180px;
    font-size: 10.5px;
  }

  .testimonial-carousel__button {
    width: 46px;
    min-height: 46px;
    padding: 8px;
  }

  .testimonial-carousel__button-label {
    display: none;
  }

  .testimonial-carousel__counter {
    min-width: 42px;
    font-size: 16px;
  }

  .testimonial-track {
    grid-auto-columns: minmax(280px, 86%);
    gap: 14px;
  }

  .contact-grid > div:last-child {
    padding: 32px 24px 36px !important;
  }

  p,
  h1,
  h2,
  span {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

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

  .testimonial-track {
    scroll-behavior: auto;
  }
}
