/* The closing sections share the same pale surfaces and blue accents as the portfolio. */
main > .details-section {
  padding-block: clamp(46px, 7.1vw, 104px);
}

.details-section .details-layout {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  align-items: start;
  gap: clamp(29px, 6vw, 94px);
}

.details-section .details-layout > * {
  min-width: 0;
}

.details-section .details-layout h2 {
  margin: 16px 0 22px;
  color: var(--studio-ink, #162544);
  font-size: clamp(42px, 5.05vw, 77px);
  font-weight: 580;
  line-height: .98;
  letter-spacing: -.058em;
}

.details-section .details-layout h2 > span {
  color: #375ab4;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.028em;
}

.details-section .details-intro {
  max-width: 31ch;
  margin: 0;
  color: var(--studio-muted, #4f6180);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.58;
}

.details-section .faq {
  overflow: hidden;
  border: 1px solid #d5e0f0;
  border-radius: 16px;
  background: linear-gradient(159deg, #fff, #f7faff);
  box-shadow: 0 13px 32px #253f6a0d;
}

.details-section .faq details {
  padding: 0;
  border: 0;
  background: transparent;
}

.details-section .faq details + details {
  border-top: 1px solid #dfe7f3;
}

.details-section .faq details[open] {
  background: linear-gradient(106deg, #edf4ff, #f8fbff);
}

.details-section .faq summary {
  display: flex;
  min-height: 59px;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 11px clamp(14px, 2vw, 24px);
  color: #243856;
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 655;
  line-height: 1.38;
  letter-spacing: -.015em;
  list-style: none;
  cursor: pointer;
}

.details-section .faq summary::-webkit-details-marker {
  display: none;
}

.details-section .faq summary:focus-visible {
  color: #163e95;
  outline: 2px solid #315abd;
  outline-offset: -3px;
  border-radius: 5px;
}

.details-section .faq summary:hover {
  color: #244ca7;
}

.details-section .faq summary > span {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border: 1px solid #d5e2f5;
  border-radius: 50%;
  background: #fff;
  color: #365cae;
  font-family: 'DM Sans', sans-serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  transform: none;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.details-section .faq details[open] summary > span {
  transform: rotate(45deg);
  background: #e5eeff;
  color: #224d9b;
}

.details-section .faq details > p {
  max-width: 67ch;
  margin: 0;
  padding: 0 clamp(14px, 2vw, 24px) 19px;
  color: #506482;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.64;
}

main > .contact-section {
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(51px, 7.75vw, 118px);
  border-block: 1px solid #d6e2f2;
  background:
    radial-gradient(ellipse at 6% 50%, #dce9ff 0, transparent 68%),
    radial-gradient(ellipse at 84% 0%, #f8faff 3%, transparent 57%),
    #eef4fc;
  color: var(--studio-ink, #162544);
}

main > .contact-section::before,
main > .contact-section::after {
  content: none;
}

.contact-section .contact-watermark {
  display: none;
}

.contact-section .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
}

.contact-section .contact-layout > * {
  min-width: 0;
}

.contact-section .eyebrow {
  color: #4d6593;
  font-size: 10px;
  letter-spacing: .16em;
}

.contact-section .contact-layout h2 {
  margin: 19px 0 24px;
  color: #172b50;
  font-size: clamp(45px, 6.1vw, 90px);
  font-weight: 575;
  line-height: .96;
  letter-spacing: -.059em;
  text-wrap: initial;
}

.contact-section .contact-layout h2 em {
  color: #2d54b0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.04em;
  font-weight: 400;
  letter-spacing: -.026em;
}

.contact-section .contact-layout > div > p {
  max-width: 39ch;
  margin: 0 0 21px;
  color: #445c82;
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.6;
}

.contact-section .contact-email {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 45px;
  align-items: center;
  padding-block: 8px;
  border-bottom: 1px solid #8ca5d1;
  color: #234c99;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 650;
  overflow-wrap: anywhere;
  transition: border-color .18s ease, color .18s ease;
}

.contact-section .contact-email:hover {
  border-color: #254daa;
  color: #16377d;
}

.contact-section .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 4px 10px;
}

.contact-section .contact-actions a {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  padding: 7px 13px;
  border: 1px solid #b9cbea;
  border-radius: 8px;
  background: #f8fbff;
  color: #234c99;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}

.contact-section .contact-actions a:hover {
  border-color: #3764c3;
  background: #eef4ff;
}

.contact-section .contact-layout #inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 15px clamp(10px, 1.4vw, 18px);
  padding: clamp(17px, 3vw, 37px);
  border: 1px solid #cddcf1;
  border-radius: 18px;
  background: linear-gradient(153deg, #fff, #f8fbff);
  box-shadow: 0 5px 0 #dae6f7, 0 24px 52px -30px #274a8a72;
  scroll-margin-top: 88px;
}

.contact-section #inquiry-form > :is(label:nth-of-type(n+3), button, p, .inquiry-context, noscript) {
  grid-column: 1 / -1;
}

.contact-section .inquiry-context:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-inline-start: 11px;
  border: 1px solid #cbd8ec;
  border-radius: 8px;
  background: #eef4ff;
  color: #284779;
  font-size: 14px;
}

.contact-section .inquiry-clear {
  min-height: 44px;
  padding-inline: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.contact-section #inquiry-form label {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 5px;
  margin: 0;
  color: #31496d;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.contact-section #inquiry-form :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #cbd8ec;
  border-radius: 8px;
  background: #f7faff;
  color: #203857;
  font-size: 15px;
  font-weight: 450;
  line-height: 1.35;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.contact-section #inquiry-form textarea {
  min-height: 101px;
  resize: vertical;
}

.contact-section #inquiry-form select {
  text-overflow: ellipsis;
  cursor: pointer;
}

.contact-section #inquiry-form :is(input, textarea)::placeholder {
  color: #5d7395;
  opacity: 1;
}

.contact-section #inquiry-form :is(input, select, textarea):hover {
  border-color: #9fb7e0;
}

.contact-section #inquiry-form :is(input, select, textarea):focus {
  border-color: #3764c3;
  outline: 2px solid #3764c3;
  outline-offset: 1px;
  background: #fff;
}

.contact-section #inquiry-form .button {
  justify-content: space-between;
  gap: 9px;
  min-height: 51px;
  margin: 1px 0 0;
  padding: 12px 15px;
  border: 1px solid #2146b6;
  border-radius: 8px;
  background: linear-gradient(124deg, #3257d3, #2545b7);
  color: #fff;
  text-align: start;
  font-size: 15px;
  font-weight: 670;
  box-shadow: 0 6px 14px #2849bd30;
  transform: none;
}

.contact-section #inquiry-form .button:enabled:hover {
  background: #2445b2;
  box-shadow: 0 8px 19px #2849bd47;
}

.contact-section #inquiry-form .button:disabled {
  opacity: .75;
  cursor: wait;
}

.contact-section :is(.contact-email, .contact-actions a, .inquiry-clear, #inquiry-form .button):focus-visible,
.footer a:focus-visible,
.mobile-contact:focus-visible {
  outline: 2px solid #254eb0;
  outline-offset: 4px;
}

.contact-section #inquiry-form #form-status {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #c4d5ef;
  border-radius: 8px;
  background: #eef4ff;
  color: #244374;
  font-size: 13px;
  line-height: 1.55;
}

.contact-section #inquiry-form #form-status:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
}

footer.footer {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.1fr) auto;
  align-items: center;
  gap: 16px clamp(13px, 4vw, 48px);
  padding-block: 25px 29px;
  background: transparent;
  color: #526784;
}

footer.footer .brand {
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
}

footer.footer .brand .original-logo {
  width: min(161px, 100%);
  height: auto;
  max-height: 50px;
  object-fit: contain;
}

footer.footer > p {
  margin: 0;
  color: #526784;
  font-size: 13px;
  line-height: 1.55;
}

footer.footer > div {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-end;
  color: #526784;
  font-size: 12px;
  line-height: 1.52;
  text-align: right;
}

footer.footer > div > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #294e99;
  font-weight: 650;
}

footer.footer > div > a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.details-section .faq-toggle {
  display: none;
}

@media (max-width: 940px) {
  .contact-section .contact-layout {
    gap: clamp(20px, 4vw, 40px);
  }

  .contact-section .contact-layout h2 {
    font-size: clamp(43px, 6.3vw, 65px);
  }
}

@media (max-width: 760px) {
  main > .details-section {
    padding-block: 22px;
  }

  main > .contact-section {
    padding-block: clamp(25px, 7vw, 41px) 24px;
    scroll-margin-block-start: 0;
    border-block-end: 0;
    background: #fff;
  }

  .details-section .details-layout,
  .contact-section .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .details-section .eyebrow,
  .details-section .details-intro,
  .details-section .details-layout:has(.faq-toggle) > div:first-child,
  .details-section .faq-toggle[aria-expanded="false"] + .faq,
  .contact-section .eyebrow,
  .contact-section .contact-layout > div > p,
  footer.footer > p,
  .mobile-contact,
  .mobile-contact.shown {
    display: none;
  }

  .details-section .details-layout {
    gap: 0;
  }

  .details-section .details-layout h2 {
    margin-block: 0 16px;
    font-size: clamp(39px, 10vw, 58px);
  }

  .details-section .faq-toggle {
    position: relative;
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 8px 49px;
    border: 1px solid #d5e1f2;
    border-radius: 12px;
    background: #fff;
    color: #253a5d;
    font: inherit;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
  }

  .details-section .faq-toggle > span {
    position: absolute;
    inset-inline-end: 12px;
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 50%;
    background: #eaf1ff;
    color: #3155a6;
    font-size: 20px;
    font-weight: normal;
    line-height: 1;
  }

  .details-section .faq-toggle[aria-expanded="true"] > span {
    transform: rotate(45deg);
  }

  .details-section .faq-toggle:focus-visible {
    outline: 2px solid #315abd;
    outline-offset: 3px;
  }

  .details-section .faq {
    overflow: visible;
    border: 0;
    border-block-start: 1px solid #d7e2f1;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .details-section .faq-toggle + .faq {
    margin-block-start: 8px;
    border-block-start: 0;
  }

  .details-section .faq summary {
    position: relative;
    min-height: 48px;
    justify-content: center;
    padding: 10px 28px;
    font-size: 15px;
    -webkit-tap-highlight-color: #315abd12;
  }

  .details-section .faq details[open] {
    background: transparent;
  }

  .details-section .faq details[open] summary {
    color: #264d9c;
  }

  .details-section .faq summary > span {
    position: absolute;
    inset-inline-end: 0;
    width: 20px;
    height: 20px;
    border: 0;
    font-size: 17px;
  }

  .details-section .faq summary > span,
  .details-section .faq details[open] summary > span {
    background: transparent;
  }

  .details-section .faq details > p {
    max-width: 59ch;
    margin-inline: auto;
    padding: 0 9px 14px;
    font-size: 14px;
    line-height: 1.55;
  }

  .contact-section .contact-layout {
    gap: 14px;
  }

  .contact-section .contact-actions {
    justify-content: center;
    margin-block: 13px 0;
  }

  .contact-section .contact-actions a {
    flex: 1 1 auto;
    padding-inline: 10px;
  }

  .contact-section .contact-layout > div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-section .contact-layout h2 {
    margin: 0;
    font-size: clamp(39px, 9.8vw, 58px);
  }

  .contact-section .contact-email {
    min-height: 44px;
    padding-inline-end: 1px;
    border-bottom: 0;
    font-size: 13px;
    text-decoration: underline solid #8ca5d1;
    text-underline-offset: 4px;
  }

  .contact-section .contact-layout #inquiry-form {
    gap: 9px 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .contact-section #inquiry-form label {
    gap: 4px 5px;
    font-size: 13px;
    text-align: start;
  }

  .contact-section #inquiry-form :is(input, select, textarea) {
    min-height: 45px;
    padding: 8px 9px;
    border: 1px solid #ccd8ec;
    border-radius: 8px;
    background: #f7faff;
    font-size: 16px;
    text-align: start;
  }

  .contact-section #inquiry-form :is(input, textarea)::placeholder {
    opacity: 0;
  }

  .contact-section #inquiry-form textarea {
    min-height: 70px;
    height: 70px;
  }

  .contact-section #inquiry-form .button {
    justify-content: center;
    min-height: 50px;
    background: #284bc2;
    box-shadow: none;
    text-align: center;
  }

  .contact-section #inquiry-form .button:enabled:hover {
    background: #2445b2;
    box-shadow: none;
  }

  footer.footer {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
    padding-block: 8px calc(12px + env(safe-area-inset-bottom, 0px));
    border-block-start: 1px solid #d6e2f2;
  }

  footer.footer > div {
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    gap: 0 12px;
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
  }

  footer.footer .brand .original-logo {
    width: min(114px, 100%);
    max-height: 37px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .details-section .faq summary > span,
  .contact-section :is(.contact-email, #inquiry-form input, #inquiry-form select, #inquiry-form textarea, #inquiry-form .button),
  .mobile-contact {
    transition: none;
  }
}
