
/* Capsule Hero — ported from loom.mingllm.com/v3 (Annnimate editorial hero). */
@font-face {
  font-family: 'Switzer';
  src: url('/happyeyes-assets/fonts/Switzer-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

.cph_wrap {
  --cph-bg:     #ebebe9;
  --cph-fg:     #101010;
  --cph-margin: 40px;
  --cph-sans:   'Switzer', -apple-system, BlinkMacSystemFont, sans-serif;
  --cph-t:   28%;
  --cph-r:   21%;
  --cph-b:   28%;
  --cph-l:   21%;
  --cph-rad: 140px;
}

.cph_wrap {
  position: relative;
  width: 100%;
  min-height: 100svh;
  height: 100dvh;
  /* the sticky topnav occupies 52px of flow above this section; pull the
     hero up underneath it so the full 100dvh — including the corner meta at
     the bottom margin — fits inside the first viewport */
  margin-top: 0;
  overflow: hidden;
  background: var(--cph-bg);
  color: var(--cph-fg);
  font-family: var(--cph-sans);
  -webkit-font-smoothing: antialiased;
}

.cph_glyph_pos {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.cph_glyph_pos_left { left: 0; }
.cph_glyph_pos_left .cph_glyph { margin-left: -0.04em; }
.cph_glyph_pos_right { right: 0; }

.cph_glyph {
  display: block;
  font-size: clamp(180px, 44vh, 24.5vw);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--cph-fg);
  white-space: nowrap;
  will-change: transform;
}

.cph_capsule {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(var(--cph-t) var(--cph-r) var(--cph-b) var(--cph-l) round var(--cph-rad));
  cursor: pointer;
  will-change: clip-path;
}

@media (hover: hover) and (pointer: fine) {
  .cph_capsule { cursor: none; }
}

.cph_media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f4f4f2;
  transform-origin: 50% 50%;
}

.cph_video,
.cph_poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cph_toggle {
  position: absolute;
  top: calc(var(--cph-t) + (100% - var(--cph-t) - var(--cph-b)) * 0.5);
  left: calc(var(--cph-l) + (100% - var(--cph-l) - var(--cph-r)) * 0.82);
  z-index: 3;
  width: 72px;
  height: 72px;
  padding: 0;
  border: none;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 16, 16, 0.35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: pointer;
  pointer-events: none;
}

.cph_toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .cph_toggle { top: 0; left: 0; }
}

.cph_toggle_label {
  position: relative;
  display: block;
  width: 100%;
  height: 1em;
  line-height: 1;
  overflow: hidden;
}

.cph_toggle_text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
  white-space: nowrap;
}

.cph_text {
  position: absolute;
  right: var(--cph-margin);
  bottom: var(--cph-margin);
  z-index: 3;
  max-width: 360px;
  font-size: 15px;
  font-weight: 380;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: rgba(16, 16, 16, 0.85);
  pointer-events: none;
}

.cph_meta {
  position: absolute;
  left: var(--cph-margin);
  bottom: var(--cph-margin);
  z-index: 3;
  pointer-events: none;
}

.cph_meta_top {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(16, 16, 16, 0.55);
  margin-bottom: 4px;
}

.cph_programs_row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--cph-fg);
}

.cph_yc {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cph_yc_mark {
  width: 20px;
  height: 20px;
  display: block;
}

.cph_yc_name {
  color: #fb651e;
  font-weight: 500;
}

.cph_programs_bar {
  width: 1px;
  height: 14px;
  background: rgba(16, 16, 16, 0.25);
}

.cph_ss {
  color: #fb651e;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cph_ss_year {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  vertical-align: super;
  margin-left: 3px;
}

.cph_sep { color: rgba(16, 16, 16, 0.35); }

@media (max-width: 991px) {
  .cph_wrap { --cph-margin: 32px; }
  .cph_toggle { width: 64px; height: 64px; }
}

@media (max-width: 767px) {
  .cph_wrap { --cph-margin: 20px; }
  .cph_glyph_pos { transform: none; }
  .cph_glyph_pos_left { top: 8%; }
  .cph_glyph_pos_right { top: auto; bottom: 8%; }
  .cph_glyph { font-size: clamp(104px, 22vh, 42vw); }
  .cph_text { display: none; }
  .cph_toggle { width: 60px; height: 60px; }
  .cph_toggle_text { font-size: 12px; }
  .cph_programs_row { max-width: 82vw; gap: 8px; font-size: 12px; }
  .cph_meta_top { font-size: 12px; }
}
