/* v1.7.0 — compact record, direct capability grid, interactive process modal */
.personal-record {
  padding: 18px 0;
  background: #f5f7fb;
  border-bottom: 1px solid var(--line);
}
.record-compact {
  min-height: 126px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: minmax(290px, 1.55fr) repeat(4, minmax(120px, .55fr));
  align-items: center;
  border: 1px solid #d8e0ed;
  border-radius: 18px;
  background: radial-gradient(circle at 88% 0%, rgba(36,87,255,.08), transparent 34%), #fff;
}
.record-copy {
  padding-right: 26px;
}
.record-copy .section-kicker {
  margin-bottom: 7px;
}
.record-copy h2 {
  margin: 0;
  max-width: 430px;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.record-stat {
  min-height: 72px;
  padding: 0 18px;
  display: grid;
  align-content: center;
  gap: 5px;
  border-left: 1px solid var(--line);
}
.record-stat strong {
  font-size: clamp(29px, 3.2vw, 42px);
  line-height: .95;
  letter-spacing: -.06em;
}
.record-stat sup {
  color: var(--blue);
  font-size: .38em;
  vertical-align: top;
}
.record-stat span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.compact-work-finder {
  padding: 44px 0 58px;
}
.finder-direct {
  max-width: 720px;
}
.finder-direct h2 {
  font-size: clamp(34px, 4.6vw, 54px);
}
.finder-direct p {
  max-width: 650px;
}
.service-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
}
.service-item {
  min-height: 138px;
  padding: 22px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  grid-template-rows: 44px auto;
  align-items: center;
  gap: 15px 13px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.service-item:nth-child(4n) { border-right: 0; }
.service-item:nth-child(n+5) { border-bottom: 0; }
.service-item:hover,
.service-item:focus-visible {
  background: #f4f7ff;
  color: var(--blue);
  outline: none;
}
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #4b69ff 72%, var(--violet));
}
.service-icon svg,
.modal-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-name {
  grid-column: 1 / 3;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.025em;
}
.service-arrow {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  color: var(--blue);
  font-size: 15px;
}

body.modal-open { overflow: hidden; }
.skill-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.skill-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.skill-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 16, 36, .62);
  backdrop-filter: blur(7px);
  cursor: default;
}
.skill-dialog {
  position: relative;
  width: min(860px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(4, 14, 37, .28);
  transform: translateY(14px) scale(.985);
  transition: transform .22s ease;
}
.skill-modal.is-open .skill-dialog {
  transform: translateY(0) scale(1);
}
.skill-dialog-header {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 86px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}
.modal-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}
.modal-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #4b69ff 72%, var(--violet));
}
.modal-kicker,
.modal-section-label {
  display: block;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}
.skill-dialog-header h2 {
  margin: 5px 0 0;
  font-size: 25px;
  letter-spacing: -.045em;
}
.modal-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.skill-dialog-body {
  padding: 26px;
}
.modal-overview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}
.modal-overview > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.modal-tools {
  max-width: 250px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}
.modal-tools span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}
.modal-process {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.modal-process ol {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.modal-process li {
  min-height: 118px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 18px;
  border-right: 1px solid var(--line);
}
.modal-process li:last-child { border-right: 0; }
.modal-process li b {
  color: var(--blue);
  font-size: 10px;
  letter-spacing: .12em;
}
.modal-process li span {
  font-size: 12px;
  line-height: 1.65;
}
.modal-sample {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.modal-sample-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.modal-sample-heading h3 {
  margin: 6px 0 0;
  font-size: 18px;
  letter-spacing: -.035em;
}
.modal-sample-heading button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.sample-project {
  margin-top: 14px;
  min-height: 132px;
  display: grid;
  grid-template-columns: 190px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfe;
}
.sample-thumb {
  min-height: 132px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  background: #eef2f8;
  color: var(--muted);
  font-size: 10px;
}
.sample-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sample-copy {
  padding: 17px 18px;
  display: grid;
  align-content: center;
}
.sample-copy > span {
  color: var(--blue);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sample-copy h4 {
  margin: 6px 0;
  font-size: 16px;
  letter-spacing: -.03em;
}
.sample-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sample-copy a {
  margin-top: 10px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}
.sample-loading,
.sample-empty {
  grid-column: 1 / -1;
  min-height: 132px;
  padding: 22px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.sample-empty strong { color: var(--text); font-size: 14px; }
.sample-empty span { max-width: 480px; line-height: 1.65; }

@media (max-width: 960px) {
  .record-compact {
    grid-template-columns: repeat(4, 1fr);
  }
  .record-copy {
    grid-column: 1 / -1;
    padding: 0 0 17px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
  }
  .record-copy h2 { max-width: none; }
  .record-stat:first-of-type { border-left: 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-item:nth-child(4n) { border-right: 1px solid var(--line); }
  .service-item:nth-child(2n) { border-right: 0; }
  .service-item:nth-child(n+5) { border-bottom: 1px solid var(--line); }
  .service-item:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 680px) {
  .personal-record { padding: 10px 0; }
  .record-compact {
    padding: 17px;
    grid-template-columns: repeat(2, 1fr);
    border-radius: 14px;
  }
  .record-copy { grid-column: 1 / -1; }
  .record-copy h2 { font-size: 20px; }
  .record-stat {
    min-height: 64px;
    padding: 9px 12px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .record-stat:nth-of-type(even) { border-left: 1px solid var(--line); }
  .record-stat strong { font-size: 31px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-item,
  .service-item:nth-child(4n),
  .service-item:nth-child(2n),
  .service-item:nth-child(n+5),
  .service-item:nth-last-child(-n+2) {
    min-height: 92px;
    grid-template-columns: 42px 1fr auto;
    grid-template-rows: 1fr;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .service-item:last-child { border-bottom: 0; }
  .service-name { grid-column: 2; grid-row: 1; }
  .service-arrow { grid-column: 3; grid-row: 1; }
  .skill-modal { padding: 8px; }
  .skill-dialog { max-height: calc(100vh - 16px); border-radius: 16px; }
  .skill-dialog-header { min-height: 76px; padding: 14px; }
  .modal-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .skill-dialog-header h2 { font-size: 20px; }
  .skill-dialog-body { padding: 18px; }
  .modal-overview { grid-template-columns: 1fr; gap: 14px; }
  .modal-tools { max-width: none; justify-content: flex-start; }
  .modal-process ol { grid-template-columns: 1fr; }
  .modal-process li { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .modal-process li:last-child { border-bottom: 0; }
  .modal-sample-heading { align-items: start; }
  .sample-project { grid-template-columns: 1fr; }
  .sample-thumb { min-height: 160px; border-right: 0; border-bottom: 1px solid var(--line); }
}
