/* Homepage hero and theme sections. Shared components belong in ../base.css. */


/* The original C photograph and a luminous veil establish the first view. */
.hero { position: relative; isolation: isolate; overflow: hidden; height: 100svh; min-height: 740px; max-height: 1080px; background: #e3e1d6; }
.hero-visual, .hero-shade { position: absolute; inset: 0; z-index: -1; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; animation: light-drift 24s ease-in-out infinite alternate; }
.hero-shade { background: linear-gradient(180deg, rgb(249 247 237 / 75%), transparent 21%, transparent 85%, rgb(37 53 43 / 20%)), linear-gradient(90deg, rgb(252 248 233 / 65%), rgb(252 248 233 / 30%) 43%, transparent 72%); }
.hero-copy { position: absolute; left: 10.2%; right: 6%; top: 29%; }
.hero-eyebrow { margin-bottom: 26px; color: #5c634e; font-size: 9px; letter-spacing: .24em; }
.hero h1 { font-size: clamp(48px, 4.8vw, 78px); line-height: 1.5; letter-spacing: .07em; color: #23392f; }
.hero h1 span { display: block; }
.hero-description { margin-top: 27px; padding-left: 21px; border-left: 1px solid #6b735d; font-size: 16px; line-height: 2.15; letter-spacing: .07em; }
.hero-actions { display: flex; gap: 19px; margin-top: 36px; }
.hero-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fffdf7; }
.hero-foot-label { font: 8px var(--sans); letter-spacing: .23em; color: #263b32; }
.motion-toggle { display: flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 14px; background: rgb(31 46 36 / 68%); border: 1px solid rgb(255 253 247 / 55%); font: 8px var(--sans); letter-spacing: .15em; color: #fffdf7; }
.pause-icon { display: block; width: 7px; height: 9px; border-left: 1px solid; border-right: 1px solid; }
.is-motion-paused .pause-icon { width: 0; height: 0; border: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid currentColor; }
.js-ready .hero-eyebrow, .js-ready .hero h1, .js-ready .hero-description, .js-ready .hero-actions { animation: rise-in 1500ms var(--ease) both; }
.js-ready .hero-eyebrow { animation-delay: 100ms; }.js-ready .hero h1 { animation-delay: 250ms; }.js-ready .hero-description { animation-delay: 450ms; }.js-ready .hero-actions { animation-delay: 650ms; }
@keyframes light-drift { from { transform: scale(1); } to { transform: scale(1.045); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Airy theme cards retain readable text on paper rather than over photography. */
.themes { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 2fr); gap: 6%; padding-block: 126px 104px; align-items: center; }
.theme-intro h2 { margin-top: 22px; font-size: clamp(27px, 2.3vw, 36px); white-space: nowrap; }
.theme-intro .body-copy { margin-top: 28px; max-width: 27em; font-size: 13px; }
.theme-intro .text-link { margin-top: 27px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.theme-card { min-width: 0; }
.theme-image { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #e4e1d5; }
.theme-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1300ms var(--ease); }
.theme-card:hover img { transform: scale(1.035); }
.image-number { position: absolute; left: 14px; bottom: 12px; color: #fff; font: 25px var(--latin); text-shadow: 0 1px 8px #18261f; }
.theme-copy { padding-top: 23px; }
.theme-copy h3 { margin-top: 8px; font-size: clamp(16px, 1.35vw, 21px); white-space: nowrap; letter-spacing: .015em; }
:is(.theme-copy, .theme-copy > .wp-block-group__inner-container) > p:not(.small-label) { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 2; }
.theme-more { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--gold); font-size: 10px; }
.theme-more svg { width: 20px; }
.is-motion-paused [data-hero-image] { animation-play-state: paused; }

@media (min-width: 1800px) { .hero-copy { left: max(var(--gutter), calc((100vw - 1440px) / 2)); }}
@media (max-width: 1100px) {
  .hero-copy { left: 8%; top: 28%; }.hero h1 { font-size: 62px; }
  .themes { grid-template-columns: 1fr; gap: 40px; padding-block: 90px 76px; }
  .theme-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8%; }
  .theme-intro .eyebrow { grid-column: 1; }.theme-intro h2 { grid-column: 1; grid-row: 2/4; margin-top: 16px; }
  .theme-intro .body-copy { grid-column: 2; grid-row: 2; margin-top: 16px; max-width: none; }
  .theme-intro .text-link { grid-column: 2; justify-self: start; margin-top: 12px; }
  .theme-copy h3 { font-size: 21px; }.theme-image { aspect-ratio: .95; }}
@media (max-width: 760px) {
  /* The homepage photograph and video continue behind the mobile header. */
  .home-page .site-header:not(.is-scrolled) { background: transparent; }
  .home-page #main { padding-top: 0; }
  .hero { height: 100svh; min-height: 640px; max-height: 900px; }
  .hero-visual img { object-position: 67% center; }
  .hero-shade { background: linear-gradient(180deg, rgb(250 247 233 / 82%), rgb(250 247 233 / 73%) 23%, rgb(250 247 233 / 62%) 55%, rgb(250 247 233 / 8%) 82%, rgb(31 46 36 / 18%)); }
  .hero-copy { left: 29px; right: 24px; top: 21%; }.hero-eyebrow { font-size: 8px; letter-spacing: .15em; margin-bottom: 24px; }
  .hero h1 { font-size: clamp(37px, 10.2vw, 60px); letter-spacing: .03em; line-height: 1.6; }
  .hero-description { margin-top: 23px; font-size: 13px; line-height: 2; padding-left: 16px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 28px; }.hero-foot { bottom: 18px; left: 25px; right: 25px; }.hero-foot-label { font-size: 6px; letter-spacing: .12em; }.motion-toggle { padding: 0 10px; gap: 7px; height: 35px; font-size: 7px; }
  .themes { padding-block: 70px 60px; gap: 34px; }.theme-intro { display: block; }.theme-intro h2 { font-size: 29px; margin-top: 20px; line-height: 1.7; }
  .theme-intro .body-copy { font-size: 13px; line-height: 2.2; max-width: 34em; margin-top: 22px; }.theme-intro .text-link { margin-top: 20px; font-size: 11px; }
  .theme-grid { grid-template-columns: 1fr; gap: 20px; }.theme-card { display: grid; grid-template-columns: 38% 1fr; background: #f0efe8; }
  .theme-image { aspect-ratio: auto; min-height: 185px; }.theme-image img { position: absolute; inset: 0; }.image-number { font-size: 20px; left: 11px; bottom: 10px; }
  .theme-copy { padding: 19px 18px 17px; }.theme-copy h3 { font-size: 18px; margin-top: 8px; }
  :is(.theme-copy, .theme-copy > .wp-block-group__inner-container) > p:not(.small-label) { font-size: 11px; margin-top: 10px; line-height: 1.95; }.theme-more { margin-top: 12px; padding-top: 12px; font-size: 9px; }}
@media (max-width: 374px) {.hero-copy { left: 24px; right: 19px; top: 18%; }.hero h1 { font-size: 35px; }.hero-description { font-size: 12px; }.hero-eyebrow { font-size: 7px; }.hero-foot-label { max-width: 140px; line-height: 1.8; }.theme-intro h2 { font-size: 27px; }.theme-grid { gap: 16px; }.theme-card { grid-template-columns: 35% 1fr; }.theme-copy { padding-inline: 14px; }.theme-copy h3 { font-size: 16px; }:is(.theme-copy, .theme-copy > .wp-block-group__inner-container) > p:not(.small-label) { font-size: 10px; }.theme-more { font-size: 9px; }}

/* Editable theme cards reuse the original section's visual styles. */
.kv-theme-section > .wp-block-group__inner-container,
.kv-theme-section :is(.theme-intro, .theme-carousel, .theme-grid, .theme-card, .theme-image, .theme-copy) > .wp-block-group__inner-container {
  display: contents;
}
.kv-theme-section :is(.theme-intro, .theme-carousel, .theme-grid, .theme-card, .theme-image, .theme-copy) {
  min-width: 0;
  max-width: none;
  margin: 0;
}
.kv-theme-section :is(.eyebrow, .small-label, .image-number) { margin: 0; }
.kv-theme-section .theme-grid { gap: var(--kv-theme-card-gap, 20px); }
.kv-theme-section .theme-card { position: relative; display: flex; flex-direction: column; }
.kv-theme-section .theme-copy { display: flex; flex: 1; flex-direction: column; }
.kv-theme-section .theme-copy h3 { font-weight: 400; }
.kv-theme-section .theme-image { aspect-ratio: var(--kv-theme-card-ratio, 3/4); }
.kv-theme-section .theme-image .wp-block-image { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.kv-theme-section .theme-image img { width: 100%; height: 100%; }
.kv-theme-section .theme-card-money img { object-position: 44% center; }
.kv-theme-section .theme-intro-action { margin: 27px 0 0; }
.kv-theme-section .theme-card-action { margin: auto 0 0; padding-top: 20px; }
.kv-theme-section .theme-card-action > .wp-block-button { width: 100%; margin: 0; }
.kv-theme-section :is(.theme-intro-action, .theme-card-action) .wp-block-button__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 400;
  text-decoration: none;
}
.kv-theme-section .theme-intro-action .wp-block-button__link { min-height: 44px; gap: 26px; font-size: 12px; letter-spacing: .035em; }
.kv-theme-section .theme-card-action .wp-block-button__link { padding-top: 14px; border-top: 1px solid var(--line); font-size: 10px; }
.kv-theme-section :is(.theme-intro-action, .theme-card-action) .wp-block-button__link::after {
  content: '';
  width: 20px;
  height: 13px;
  flex-shrink: 0;
  background: currentColor;
  clip-path: polygon(0 46%, 89% 46%, 63% 8%, 67% 2%, 100% 50%, 67% 98%, 63% 92%, 89% 54%, 0 54%);
  transition: transform 500ms var(--ease);
}
.kv-theme-section :is(.theme-intro-action .wp-block-button__link:hover, .theme-card:hover .theme-card-action .wp-block-button__link)::after {
  transform: translateX(4px);
}
.kv-theme-section:not(.block-editor-block-list__block) .theme-card-action .wp-block-button__link::before {
  content: '';
  position: absolute;
  inset: 0;
}
.kv-theme-section:not(.block-editor-block-list__block) .theme-card-action .wp-block-button__link:focus-visible { outline: none; }
.kv-theme-section:not(.block-editor-block-list__block) .theme-card-action .wp-block-button__link:focus-visible::before {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.kv-theme-section .theme-carousel-controls { display: none; }
.kv-theme-section .theme-carousel-count { margin: 0 3px 0 0; color: var(--muted); font: 11px/1.5 var(--sans); }
.kv-theme-section .theme-carousel-controls button { color: var(--ink); }
.kv-theme-section .theme-carousel-controls button[aria-disabled="true"] { opacity: .4; background: none; cursor: default; }

/* JIN:R applies a reading-column width and article typography in the editor. */
.kv-theme-section.wp-block.block-editor-block-list__block[data-type="core/group"] {
  width: min(100%, calc(100vw - var(--gutter) * 2));
  max-width: 1480px !important;
  margin-inline: auto;
}
.kv-theme-section.block-editor-block-list__block :is(.theme-intro, .theme-carousel, .theme-grid).wp-block[data-type="core/group"] { max-width: none !important; }
.kv-theme-section.block-editor-block-list__block :is(h2.wp-block-heading, h3.wp-block-heading, .body-copy, .theme-copy p:not(.small-label), .wp-block-button__link) {
  font-family: var(--serif) !important;
}
.kv-theme-section.block-editor-block-list__block :is(.eyebrow, .small-label) { font-family: var(--sans) !important; }
.kv-theme-section.block-editor-block-list__block .image-number { font-family: var(--latin) !important; }
.kv-theme-section.block-editor-block-list__block :is(h2.wp-block-heading, h3.wp-block-heading) {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 400;
  text-indent: 0;
}
.kv-theme-section.block-editor-block-list__block :is(h2.wp-block-heading, h3.wp-block-heading)::before,
.kv-theme-section.block-editor-block-list__block :is(h2.wp-block-heading, h3.wp-block-heading)::after { content: none; }
.kv-theme-section.block-editor-block-list__block .theme-intro h2 {
  margin: var(--kv-theme-editor-intro-heading-top, 22px) 0 0;
  font-size: var(--kv-theme-editor-intro-heading-size, clamp(27px, 2.3vw, 36px));
  line-height: 1.7;
}
.kv-theme-section.block-editor-block-list__block .theme-intro .body-copy {
  margin: var(--kv-theme-editor-intro-copy-top, 28px) 0 0;
  font-size: 13px;
  line-height: var(--kv-theme-editor-intro-copy-leading, 2.25);
  letter-spacing: .025em;
}
.kv-theme-section.block-editor-block-list__block .theme-copy h3 {
  margin: 8px 0 0;
  font-size: var(--kv-theme-editor-card-heading-size, clamp(16px, 1.35vw, 21px));
  line-height: normal;
}
.kv-theme-section.block-editor-block-list__block .theme-copy p:not(.small-label) {
  margin: var(--kv-theme-editor-card-copy-top, 12px) 0 0;
  font-size: var(--kv-theme-editor-card-copy-size, 12px);
  line-height: var(--kv-theme-editor-card-copy-leading, 2);
  letter-spacing: normal;
}
.kv-theme-section.block-editor-block-list__block :is(.eyebrow, .small-label, .image-number, .theme-image .wp-block-image) { margin: 0; }
.kv-theme-section.block-editor-block-list__block .theme-image img { height: 100% !important; }
.kv-theme-section.block-editor-block-list__block .image-number { letter-spacing: normal; }
.kv-theme-section.block-editor-block-list__block .theme-card-action .wp-block-button__link { line-height: normal; letter-spacing: normal; }

@media (min-width: 761px) {
  .kv-theme-section .is-theme-carousel .theme-grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: calc((100% - 2 * var(--kv-theme-card-gap, 20px)) / 3);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .kv-theme-section .is-theme-carousel .theme-grid::-webkit-scrollbar { display: none; }
  .kv-theme-section .is-theme-carousel .theme-card { scroll-snap-align: start; }
  .kv-theme-section .is-theme-carousel .theme-carousel-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0 0 12px;
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .kv-theme-section .theme-image { aspect-ratio: var(--kv-theme-card-ratio-tablet, .95); }
  .kv-theme-section .theme-intro-action { grid-column: 2; justify-self: start; margin-top: 12px; }
  .kv-theme-section.block-editor-block-list__block {
    --kv-theme-editor-intro-heading-top: 16px;
    --kv-theme-editor-intro-copy-top: 16px;
    --kv-theme-editor-card-heading-size: 21px;
  }
}
@media (max-width: 760px) {
  .kv-theme-section .theme-grid { gap: var(--kv-theme-card-gap-mobile, 20px); }
  .kv-theme-section .theme-card { display: grid; }
  .kv-theme-section .theme-image { aspect-ratio: auto; }
  .kv-theme-section .theme-intro-action { margin-top: 20px; }
  .kv-theme-section .theme-intro-action .wp-block-button__link { font-size: 11px; }
  .kv-theme-section .theme-card-action { padding-top: 12px; }
  .kv-theme-section .theme-card-action .wp-block-button__link { padding-top: 12px; font-size: 9px; }
  .kv-theme-section.block-editor-block-list__block {
    --kv-theme-editor-intro-heading-top: 20px;
    --kv-theme-editor-intro-heading-size: 29px;
    --kv-theme-editor-intro-copy-top: 22px;
    --kv-theme-editor-intro-copy-leading: 2.2;
    --kv-theme-editor-card-heading-size: 18px;
    --kv-theme-editor-card-copy-top: 10px;
    --kv-theme-editor-card-copy-size: 11px;
    --kv-theme-editor-card-copy-leading: 1.95;
  }
}
@media (max-width: 374px) {
  .kv-theme-section .theme-grid { gap: var(--kv-theme-card-gap-narrow, 16px); }
  .kv-theme-section.block-editor-block-list__block {
    --kv-theme-editor-intro-heading-size: 27px;
    --kv-theme-editor-card-heading-size: 16px;
    --kv-theme-editor-card-copy-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kv-theme-section .theme-image img,
  .kv-theme-section :is(.theme-intro-action, .theme-card-action) .wp-block-button__link::after { transition: none; }
}

/* Display the video without an added zoom or horizontal animation. */
.hero-video { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1200ms ease; }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero.video-ready .hero-video { opacity: 1; }
@media (max-width: 760px) { .hero-video video { object-position: var(--hero-mobile-x,68%) var(--hero-mobile-y,50%); }}
.hero.has-video .hero-visual img { animation: none; }
.hero-shade { z-index: 0; pointer-events: none; }
.hero-copy, .hero-foot { z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; }}
/* External players are cropped like cover media; only one viewport source loads. */
.hero-video iframe{position:absolute;display:block;border:0;max-width:none;max-height:none;pointer-events:none}
/* Keep external frames renderable while the poster covers loading frames. */
.hero[data-custom-hero-media] .hero-video{opacity:1;z-index:-2}
.hero[data-custom-hero-media] .hero-visual{transition:opacity 1200ms ease}
.hero[data-custom-hero-media].video-ready .hero-visual{opacity:0}

@media(prefers-reduced-motion:reduce){.hero[data-custom-hero-media] .hero-visual{opacity:1!important;transition:none}}
