/* ═══════════════════════════════════════════════════════
   KŌKORO³ — MILESTONES PAGE
   ═══════════════════════════════════════════════════════ */

/* ── HERO ── */
.ms-hero {
  padding: calc(var(--navh) + 60px) var(--pad) 60px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 80px;
  position: relative;
  z-index: 2;
  background: var(--bg);
  transition: background 0.45s, border-color 0.45s;
}

.ms-title {
  font-family: var(--fh);
  font-size: clamp(72px, 12vw, 180px);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -2px;
  color: var(--fg);
  opacity: 0;
  transform: translateX(-40px);
  animation: msSlideIn 0.9s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
  transition: color 0.45s;
}

@keyframes msSlideIn {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ms-hero-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
  padding-bottom: 6px;
}

.ms-tagline {
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg2);
  max-width: 100%;
  transition: color 0.45s;
}

.ms-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ms-meta-num {
  font-family: var(--fh);
  font-size: clamp(72px, 10vw, 120px);
  line-height: 0.9;
  color: var(--yellow);
  transition: color 0.45s;
  letter-spacing: -0.02em;
}

.ms-meta-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg3);
  transition: color 0.45s;
  margin-top: 6px;
}

/* ── CERTIFICATES GRID ── */
.ms-certs-section {
  padding: 100px var(--pad) 48px;
  background: var(--bg);
  position: relative;
  z-index: 2;
  transition: background 0.45s;
}

.ms-certs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}

.ms-certs-head .sec-title {
  margin-bottom: 0;
}

.ms-certs-note {
  font-size: 13px;
  color: var(--fg3);
  font-style: italic;
  transition: color 0.45s;
}

.ms-certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1000px) { .ms-certs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .ms-certs-grid { grid-template-columns: 1fr; } }

.ms-cert-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-b),
    border-color 0.3s,
    box-shadow 0.4s,
    background 0.45s;
  cursor: none;
}

.ms-cert-card:hover {
  transform: translateY(-6px);
  border-color: var(--yellow);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

/* Accent bar on top */
.ms-cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-o);
  z-index: 1;
}
.ms-cert-card:hover::before {
  transform: scaleX(1);
}

.ms-cert-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  aspect-ratio: 4 / 3;
  transition: background 0.45s;
}

.ms-cert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.65) saturate(0.8);
  transform: scale(1);
  transition:
    filter 0.5s var(--ease),
    transform 0.5s var(--ease);
}

.ms-cert-card:hover .ms-cert-img {
  filter: grayscale(0) saturate(1);
  transform: scale(1.04);
}

/* "View" overlay label */
.ms-cert-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.ms-cert-card:hover .ms-cert-overlay {
  opacity: 1;
}
.ms-cert-overlay span {
  font-family: var(--fh);
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,206,26,0.9);
  color: #111;
  padding: 8px 20px;
  border-radius: 2px;
}

.ms-cert-info {
  padding: 18px 20px 20px;
}

.ms-cert-issuer {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 6px;
  transition: color 0.45s;
}

.ms-cert-name {
  font-family: var(--fh);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 8px;
  transition: color 0.45s;
}

.ms-cert-year {
  font-size: 11px;
  color: var(--fg3);
  letter-spacing: 0.1em;
  transition: color 0.45s;
}

/* ── ACHIEVEMENTS LIST ── */
.ms-achieve-section {
  padding: 80px var(--pad) 100px;
  background: var(--bg2);
  position: relative;
  z-index: 1;
  transition: background 0.45s;
}

.ms-achieve-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 64px;
}

@media (max-width: 800px) { .ms-achieve-intro { grid-template-columns: 1fr; gap: 20px; } }

.ms-achieve-intro .sec-title {
  margin-bottom: 0;
}

.ms-achieve-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg2);
  max-width: 440px;
  align-self: end;
  transition: color 0.45s;
}

.ms-achieve-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  transition: border-color 0.45s;
}

.ms-achieve-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition:
    padding-left 0.3s var(--ease),
    border-color 0.45s;
  cursor: default;
}

.ms-achieve-item:hover {
  padding-left: 8px;
}

.ms-achieve-item:hover .ms-ai-name {
  color: var(--fg);
}

.ms-ai-left {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.ms-ai-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
  position: relative;
  top: -2px;
  opacity: 0.5;
  transition: opacity 0.25s;
}

.ms-achieve-item:hover .ms-ai-dot {
  opacity: 1;
}

.ms-ai-name {
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg2);
  line-height: 1.4;
  transition: color 0.25s;
}

.ms-ai-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg3);
  transition: color 0.45s;
}

.ms-ai-year {
  font-family: var(--fh);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--fg3);
  white-space: nowrap;
  transition: color 0.45s;
}

/* Microcopy at the bottom */
.ms-achieve-foot {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ms-achieve-foot::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--line2);
  flex-shrink: 0;
  transition: background 0.45s;
}

.ms-achieve-foot p {
  font-size: 13px;
  font-style: italic;
  color: var(--fg3);
  line-height: 1.6;
  transition: color 0.45s;
}

/* ── HERO RESPONSIVE ── */
@media (max-width: 900px) {
  .ms-hero { grid-template-columns: 1fr; gap: 32px; }
}

/* ══════════════════════════════════════════════════════
   MORE LIKE THESE — text list section
   ══════════════════════════════════════════════════════ */

.ms-more-section {
  padding: 40px var(--pad) 100px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  transition: background 0.45s, border-color 0.45s;
  position: relative;
  z-index: 2;
}

.ms-more-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: baseline;
  margin-bottom: 52px;
}
@media(max-width:800px){ .ms-more-head { grid-template-columns: 1fr; gap: 12px; } }

.ms-more-head .sec-title {
  margin-bottom: 0;
  font-style: italic;
}

.ms-more-sub {
  font-size: 14px;
  color: var(--fg3);
  align-self: end;
  transition: color 0.45s;
}

/* The list */
.ms-more-list {
  list-style: none;
  padding: 0; margin: 0;
  border-top: 1px solid var(--line);
  transition: border-color 0.45s;
}

.ms-more-item {
  border-bottom: 1px solid var(--line);
  transition: border-color 0.45s, background 0.25s;
}
.ms-more-item:hover {
  background: var(--bg2);
}

.ms-more-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: none;
  text-align: left;
  transition: padding-left 0.25s var(--ease);
}
.ms-more-item:hover .ms-more-btn {
  padding-left: 10px;
}

.ms-more-name {
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.4;
  transition: color 0.2s;
}
.ms-more-item:hover .ms-more-name {
  color: var(--fg);
}

.ms-more-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.ms-more-issuer {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg3);
  transition: color 0.45s;
}

.ms-more-year {
  font-family: var(--fh);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--fg3);
  transition: color 0.45s;
  min-width: 36px;
  text-align: right;
}

.ms-more-arrow {
  font-size: 14px;
  color: var(--fg3);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.2s, transform 0.25s var(--ease), color 0.2s;
  flex-shrink: 0;
}
.ms-more-item:hover .ms-more-arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--yellow);
}

@media(max-width:600px) {
  .ms-more-btn { grid-template-columns: 1fr auto; gap: 12px; }
  .ms-more-meta { flex-direction: column; gap: 2px; align-items: flex-end; }
  .ms-more-arrow { display: none; }
}


/* ── Hero stats divider ── */
.ms-meta-div {
  width: 1px;
  height: 80px;
  background: var(--line);
  flex-shrink: 0;
  align-self: center;
  transition: background 0.45s;
}
.ms-meta-lg {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 8px;
}
