/* Résumé and studio tenure. All content remains editable in the control panel. */
.studio-heading-row {
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}

.studio-heading-row::after {
  content: '';
  grid-column: 2;
  grid-row: 1;
  height: 1px;
  background: var(--line);
}

.studio-heading-row .studio-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  scroll-margin-top: 128px;
}

.studio-heading-row .studio-heading::after { content: none; }

/* Common boxes keep the supplied marks aligned without changing their proportions. */
.studio-logo {
  display: block;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.studio-heading > .studio-logo { order: -1; }

.studio-tenure {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  color: #c6d3cb;
  font-size: .79rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.resume-section {
  position: relative;
  scroll-margin-top: 112px;
}

.resume-section .section-heading { margin-bottom: 36px; }

.resume-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 24px;
}

.resume-panel {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(205, 229, 218, .16);
  border-radius: 18px;
  background:
    linear-gradient(130deg, rgba(188, 228, 213, .055), transparent 58%),
    rgba(21, 36, 40, .65);
  box-shadow: inset 0 1px 0 rgba(235, 243, 234, .055), 0 18px 52px rgba(0, 0, 0, .12);
}

@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .resume-panel {
    -webkit-backdrop-filter: blur(16px) saturate(110%);
    backdrop-filter: blur(16px) saturate(110%);
  }
}

.resume-panel > h3,
.resume-panel-title {
  margin: 0 0 28px;
  color: var(--accent);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .73rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.resume-experience { grid-column: 1 / -1; }

.resume-employers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resume-employers > li {
  min-width: 0;
  padding-left: 22px;
  border-left: 1px solid rgba(188, 228, 213, .28);
}

.resume-date {
  margin-bottom: 12px;
  color: #bdc9c3;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}

.resume-entry-title {
  margin-bottom: 16px;
  font-family: Manrope, system-ui, sans-serif;
  font-size: clamp(1.3rem, 2.1vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.resume-employers .text-link {
  color: #c8d8d0;
  font-size: .77rem;
}

.resume-employers > .resume-employer-brand {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-content: start;
  column-gap: 18px;
  row-gap: 10px;
}

.resume-employer-brand > .resume-date {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.resume-employer-brand > .resume-entry-title {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

.resume-employer-brand > .text-link {
  grid-column: 2;
  grid-row: 3;
  justify-self: start;
  margin-top: 6px;
}

.resume-employer-brand > .studio-logo {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  width: 52px;
  height: 52px;
  margin-top: 4px;
}

.resume-skills {
  display: grid;
  gap: 26px;
  margin: 0;
}

.resume-skills dt,
.resume-tools-label {
  margin-bottom: 7px;
  color: #edf0e7;
  font-size: .86rem;
  font-weight: 600;
}

.resume-skills dt {
  display: flex;
  align-items: center;
  gap: 9px;
}

.resume-skill-icon {
  order: -1;
  flex: 0 0 18px;
  color: var(--accent);
}

.resume-skills dd {
  margin: 0;
  color: #b7c7bf;
  font-size: .91rem;
  line-height: 1.75;
}

.resume-tools-label { margin-top: 28px; }

.resume-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.resume-tools li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(205, 229, 218, .12);
  border-radius: 6px;
  background: rgba(230, 245, 233, .035);
  color: #d0ddd4;
  font-size: .76rem;
  line-height: 1.5;
}

/* Keep the existing text node first for the CMS, and put its icon first visually. */
.resume-tool-icon {
  order: -1;
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.resume-credits { grid-column: 1 / -1; }

.resume-credits-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.resume-credits-heading .resume-panel-title { margin: 0; }
.resume-credits-heading .text-link { font-size: .78rem; }

.resume-credit-studio + .resume-credit-studio {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.resume-credit-studio-title {
  margin-bottom: 16px;
  color: #d2ded6;
  font-size: .84rem;
  font-weight: 600;
}

.resume-credit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 238px), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resume-credit-item { min-width: 0; }

.resume-credit {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  height: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(205, 229, 218, .09);
  border-radius: 10px;
  background: rgba(9, 22, 26, .24);
  transition: background-color 200ms ease, border-color 200ms ease;
}

.resume-credit:is(:hover, :focus-visible) {
  border-color: rgba(188, 228, 213, .32);
  background-color: rgba(188, 228, 213, .045);
}

.resume-credit-poster {
  display: block;
  width: 60px;
  height: 90px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(4, 12, 16, .5);
}

.resume-credit-copy { min-width: 0; }

.resume-credit-title {
  margin: 0 0 7px;
  color: #edf0e7;
  font-family: Manrope, system-ui, sans-serif;
  font-size: .83rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.015em;
}

.resume-credit-role,
.resume-credit-year {
  margin: 0;
  color: #a9bdb2;
  font-size: .72rem;
  line-height: 1.6;
}

.resume-credit-year {
  margin-top: 4px;
  color: #d7c0a1;
  font-variant-numeric: tabular-nums;
}

.resume-credits-note {
  margin: 22px 0 0;
  color: #9fb3aa;
  font-size: .74rem;
}

.resume-school + .resume-school {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.resume-school .resume-entry-title {
  margin-bottom: 8px;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
}

.resume-school .resume-date { margin-bottom: 10px; }

.resume-degree {
  margin-bottom: 20px;
  color: #d0ddd4;
  font-size: .91rem;
}

.resume-honor {
  padding-left: 15px;
  border-left: 1px solid rgba(216, 197, 170, .38);
}

.resume-honor-title {
  margin-bottom: 7px;
  color: #dcc7a9;
  font-size: .86rem;
  font-weight: 600;
}

.resume-honor-copy {
  margin-bottom: 0;
  color: #b7c7bf;
  font-size: .84rem;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .resume-grid { grid-template-columns: minmax(0, 1fr); }
  .resume-experience { grid-column: auto; }
  .resume-credits { grid-column: auto; }
  .resume-section { scroll-margin-top: 96px; }
}

@media (max-width: 560px) {
  .studio-heading-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 22px;
  }

  .studio-heading-row::after { content: none; }
  .studio-tenure { grid-column: 1; grid-row: 2; }
  .studio-heading-row .studio-heading { gap: 12px; }
  .studio-heading > .studio-logo { width: 46px; height: 46px; }
  .studio-tenure { padding-left: 58px; }
  .resume-employers { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .resume-employers > .resume-employer-brand {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 12px;
  }
  .resume-employer-brand > .studio-logo { width: 44px; height: 44px; }
  .resume-panel { padding: 24px 20px; border-radius: 14px; }
  .resume-panel > h3 { margin-bottom: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .resume-credit { transition: none; }
}
