/* Shared media grade + component motion — loaded after site.css */

.media,
.frame,
.cap-media,
.hero-photo,
.essay-photo,
.study .frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.media img,
.frame img,
.cap-media img,
.hero-photo img,
.essay-photo img,
.still img {
  filter: saturate(0.62) contrast(1.05) brightness(0.97);
  transform-origin: center;
}

.media::after,
.frame::after,
.cap-media::after,
.hero-photo::after,
.essay-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22, 36, 8, 0.1) 0%, rgba(22, 36, 8, 0.02) 42%, rgba(169, 228, 110, 0.1) 100%);
  mix-blend-mode: soft-light;
}

.still::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(22, 36, 8, 0.18);
  mix-blend-mode: multiply;
}

.hero-photo {
  box-shadow: 0 24px 60px rgba(22, 36, 8, 0.12);
}
.hero-photo img {
  animation: settle 1.8s var(--ease) 0.12s forwards, drift 14s ease-in-out 1.9s infinite alternate;
}
@keyframes drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.045) translate3d(-1.2%, 1%, 0); }
}

.cap {
  transition: transform 0.55s var(--ease), border-color 0.4s var(--ease), box-shadow 0.55s var(--ease);
  will-change: transform;
}
.cap:hover {
  box-shadow: 0 18px 40px rgba(22, 36, 8, 0.08);
}
.cap-media img {
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}
.cap:hover .cap-media img {
  transform: scale(1.06);
  filter: saturate(0.7) contrast(1.06) brightness(1);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.95s var(--ease),
    transform 0.95s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js [data-reveal="left"] {
  transform: translateX(-18px);
}
.js [data-reveal="left"].is-in {
  transform: none;
}
.js [data-reveal="scale"] {
  transform: scale(0.97);
}
.js [data-reveal="scale"].is-in {
  transform: none;
}

.rail li,
.band-list li,
.split li,
.value-card {
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .rail li:hover,
  .band-list li:hover,
  .value-card:hover {
    transform: translateY(-2px);
  }
  .text-link {
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    border-bottom-color: transparent;
    transition: background-size 0.45s var(--ease), color 0.3s var(--ease);
  }
  .text-link:hover {
    background-size: 100% 1px;
  }
  .btn {
    position: relative;
    overflow: hidden;
  }
  .btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(169, 228, 110, 0.22) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--ease);
  }
  .btn:hover::after { transform: translateX(120%); }
}

.value-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 auto 8px;
  padding-bottom: 8px;
}
.value-jump a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.value-jump a:hover {
  color: var(--ink);
  border-bottom-color: rgba(22, 36, 8, 0.28);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.value-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.value-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px 30px;
  background: rgba(255, 255, 255, 0.45);
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  display: block;
}
a.value-card:hover {
  border-color: rgba(22, 36, 8, 0.28);
}
.value-card .sf-icon { margin-bottom: 16px; }
.value-card .index {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.value-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.014em;
}
.value-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
}

.value-chapter {
  padding-top: clamp(48px, 7vw, 88px);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.value-chapter .kicker { margin-bottom: 12px; }
.value-chapter h2 {
  margin: 0 0 0.6em;
}
.value-chapter h3 {
  margin: 1.8em 0 0.6em;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.014em;
}
.value-list {
  margin: 1em 0 0;
  padding: 0;
  list-style: none;
}
.value-list li {
  position: relative;
  padding: 12px 0 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.006em;
}
.value-list li:last-child { border-bottom: 1px solid var(--line); }
.value-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.soft-note {
  margin: 40px auto 8px;
  width: min(680px, calc(100% - 48px));
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.soft-note a { color: var(--ink-soft); }

.legal h2 {
  margin: 2em 0 0;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.014em;
  font-weight: 600;
}

.home-strip {
  padding: clamp(56px, 8vw, 96px) 0 clamp(24px, 4vw, 40px);
}
.home-strip .section-head { margin-bottom: 28px; }

.apply-block {
  padding: clamp(64px, 9vw, 110px) 0 clamp(40px, 6vw, 72px);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.apply-intro {
  max-width: 34em;
  margin-bottom: 36px;
}
.apply-intro h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.05;
}
.apply-intro p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.5;
}
.apply-form {
  max-width: 720px;
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
}
.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}
.apply-form .field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  padding: 12px 0 14px;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: inherit;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.apply-form .field select:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.apply-form .file-input {
  display: block;
  width: 100%;
  padding: 14px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.apply-form .file-hint {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.apply-form .btn { margin-top: 8px; }
.apply-form .form-note.is-ready {
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .value-grid,
  .value-grid-wide { grid-template-columns: 1fr; }
  .apply-grid { grid-template-columns: 1fr; }
  .apply-form { padding: 24px 20px; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .value-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo img { animation: none !important; }
  .media img, .frame img, .cap-media img, .hero-photo img, .essay-photo img, .still img {
    filter: saturate(0.7) contrast(1.03);
  }
}
