*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--yj-white);
  color: var(--yj-ink);
  font-family: var(--yj-font-body);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-menu-open,
body.is-search-open {
  overflow: hidden;
}

img,
picture,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

a,
button,
input,
textarea,
select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(23, 96, 255, 0.18);
}

button,
input,
textarea,
select {
  min-width: 0;
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  margin-bottom: 0;
  scroll-margin-top: calc(var(--yj-header-height) + env(safe-area-inset-top) + 24px);
  font-family: var(--yj-font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

h1 {
  font-size: clamp(42px, 5.2vw, 74px);
}

h2 {
  font-size: clamp(34px, 3.7vw, 54px);
}

h3 {
  font-size: clamp(21px, 1.9vw, 30px);
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background: var(--yj-brand);
  color: var(--yj-white);
}

:focus-visible {
  outline: 3px solid var(--yj-cyan);
  outline-offset: 4px;
}

.shell {
  width: var(--yj-shell);
  max-width: 100%;
  margin-inline: auto;
}

.section {
  padding-block: var(--yj-section-space);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--yj-white);
  color: var(--yj-ink);
  box-shadow: var(--yj-shadow-soft);
  transform: translateY(-180%);
  transition: transform var(--yj-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

.media-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, var(--yj-ice), #dceeff);
}

.media-placeholder--dark {
  background: linear-gradient(135deg, var(--yj-deep-royal), var(--yj-architecture));
}

.is-media-missing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--yj-ice), #dceeff);
}

/* Content stays visible without JavaScript. Motion is enabled only after JS opts in. */
[data-reveal] {
  opacity: 1;
  transform: none;
}

.has-reveal-motion [data-reveal] {
  opacity: 1;
  transform: translate3d(0, 18px, 0);
  transition:
    transform 680ms var(--yj-ease-out);
  transition-delay: calc(var(--reveal-order, 0) * 60ms);
}

.has-reveal-motion [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(36px, 10vw, 44px);
  }

  h2 {
    font-size: clamp(29px, 8.5vw, 38px);
  }

  h3 {
    font-size: 21px;
  }
}

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

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

  .has-reveal-motion [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
