.ms-portfolio {
  --ink: #102b32;
  --muted: #415c60;
  --teal: #006e70;
  --border: #d4e0dc;
  color: var(--ink);
  background: #fff;
}
.ms-portfolio * { box-sizing: border-box; }
.ms-portfolio :is(h1, h2, p) { margin: 0; }
.ms-portfolio :is(nav, section, details)[id] { scroll-margin-top: 10rem; }
.ms-hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  max-width: 1440px;
  width: calc(100% - 48px);
  margin: 18px auto 0;
  overflow: hidden;
  border-radius: 28px;
  background: #13333a;
  color: white;
}
.ms-hero-copy { padding: clamp(30px, 4.7vw, 84px); align-self: center; }
.ms-breadcrumb { display: inline-block; font-size: .94rem; color: #b3ebe6; margin-bottom: 1.5rem; }
.ms-portfolio .ms-hero h1 {
  color: #fff; font-size: clamp(2.6rem, 4.2vw, 4.9rem);
  font-weight: 500; line-height: 1.04; letter-spacing: -.05em;
  text-wrap: balance; max-width: 15ch;
}
.ms-hero-copy p { color: #e2edec; line-height: 1.6; margin: 1.35rem 0 1.65rem; max-width: 51ch; font-size: 1.08rem; }
.ms-hero-photo { position: relative; min-width: 0; overflow: hidden; }
.ms-hero-photo img { display: block; width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 52% 50%; }
.ms-action {
  display: inline-flex; align-items: center; justify-content: center; width: fit-content;
  padding: 12px 23px; border-radius: 32px; background: #ffcc49; color: #112c33;
  text-decoration: none; font-size: 1rem; font-weight: 700; min-height: 46px;
}
.ms-portfolio a:hover { text-decoration: underline; }
.ms-content { width: min(1220px, calc(100% - 80px)); margin: 0 auto; }
.ms-index { margin: 56px 0 18px; padding-bottom: 36px; }
.ms-index h2, .ms-close h2 { font-size: clamp(1.7rem, 2.6vw, 2.7rem); letter-spacing: -.045em; line-height: 1.12; }
.ms-index > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ms-index a {
  color: var(--ink); font-size: .96rem; font-weight: 600; text-decoration: none;
  border: 1px solid #b5ccc7; padding: 9px 16px; border-radius: 50px; background: #f5f9f8;
}
.ms-index a:hover { background: #deefea; }
.ms-group {
  display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
  align-items: start; gap: clamp(32px, 6vw, 96px);
  padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--border);
}
.ms-group > header::before { content: ''; display: block; width: 44px; height: 4px; border-radius: 8px; margin-bottom: 19px; background: #f3bb29; }
.ms-group > header h2 { font-size: clamp(1.9rem, 3.2vw, 3.3rem); font-weight: 500; line-height: 1.07; letter-spacing: -.045em; }
.ms-group > header p { margin-top: 16px; color: var(--muted); line-height: 1.65; }
.ms-rows { display: grid; gap: 12px; }
.ms-service { border: 1px solid var(--border); border-radius: 20px; background: #fff; overflow: hidden; }
.ms-service[open] { border-color: #a2c7be; }
.ms-service summary {
  padding: 22px 24px; display: flex; align-items: start; justify-content: space-between;
  gap: 16px; list-style: none; cursor: pointer;
}
.ms-service summary::-webkit-details-marker { display: none; }
.ms-service summary:hover { background: #f6f9f7; }
.ms-summary { display: grid; gap: 9px; }
.ms-summary strong { font-weight: 600; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.2; letter-spacing: -.025em; }
.ms-summary > span { color: var(--muted); line-height: 1.55; }
.ms-service summary i {
  width: 29px; height: 29px; flex: 0 0 auto; border: 1px solid #b5cec9;
  background: #f3f9f7; border-radius: 50%; display: grid; place-items: center;
}
.ms-service summary i::before, .ms-service summary i::after {
  content: ''; grid-area: 1/1; width: 10px; height: 2px; background: var(--teal);
}
.ms-service summary i::after { transform: rotate(90deg); }
.ms-service[open] summary i::after { transform: rotate(0); }
.ms-expanded { padding: 0 24px 24px; font-size: 1rem; line-height: 1.62; color: var(--ink); }
.ms-output { margin: 18px 0; padding: 13px 16px; border-radius: 12px; background: #eff6f2; }
.ms-output b { font-size: .88rem; color: #225952; }
.ms-output p { margin-top: 4px; }
.ms-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ms-links a { color: var(--teal); font-size: .95rem; font-weight: 700; text-underline-offset: .22em; }
.ms-close {
  border-radius: 24px; background: #14343a; color: #fff;
  margin: 12px 0 55px; padding: 30px 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
.ms-close h2 { color: inherit; }
.ms-close p { color: #d9e8e7; margin-top: 8px; line-height: 1.5; }
.ms-close a { flex-shrink: 0; }
.ms-portfolio :is(a, summary):focus-visible { outline: 3px solid #00a6a4; outline-offset: 3px; }
.ms-service summary:focus-visible { outline-offset: -4px; border-radius: 17px; }
@media (prefers-reduced-motion: no-preference) {
  .ms-service summary i::after { transition: transform .25s; }
  .ms-index a { transition: background .2s; }
  .ms-service[open] .ms-expanded { animation: ms-enter .25s ease-out; }
  @keyframes ms-enter { from { opacity: .6; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 760px) {
  .ms-hero { grid-template-columns: 1fr; width: calc(100% - 24px); margin-top: 8px; border-radius: 22px; }
  .ms-hero-copy { padding: 30px 24px; }
  .ms-hero .ms-hero-photo { height: min(44vw, 230px); }
  .ms-content { width: calc(100% - 40px); }
  .ms-index { margin-top: 36px; padding-bottom: 18px; }
  .ms-group { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .ms-service summary { padding: 18px; }
  .ms-expanded { padding: 0 18px 18px; }
  .ms-close { align-items: start; flex-direction: column; padding: 24px; }
}
