/* Magazine layout. Titles precede the photos and copy, without title panels. */
:root {
  --editorial-ghost: rgba(23, 59, 99, .055);
}
.chapter, .person-section, .company-section, .work-section, .contact-section, .aizen-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.editorial-ghost, .hero-ghost {
  position: absolute;
  z-index: 0;
  top: 24px;
  right: -12px;
  color: var(--editorial-ghost);
  font-family: Georgia, serif;
  font-size: clamp(76px, 18vw, 180px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.065em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.chapter__body, .work-section > .container, .contact-section > .container {
  position: relative;
  z-index: 1;
}
.editorial-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-blue);
}
.editorial-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, 50% 50%);
}
.chapter {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 28px;
}
.editorial-heading { display: contents; }
.editorial-heading h2 {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  width: auto;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 28px;
  line-height: 1.55;
}
.editorial-heading > .editorial-photo {
  z-index: 1;
  grid-column: 1;
  grid-row: 2;
}
.chapter > .chapter__body, .person-section .chapter__body {
  grid-column: 1;
  grid-row: 3;
  margin: 0;
}
.person-section .coming-soon-inline { margin-top: 0; }
.chapter--compact .editorial-photo { aspect-ratio: 16 / 9; }
#subsidy { --photo-position: 70% 72%; }
#person { --photo-position: 76% 50%; }
#company { --photo-position: 15% 50%; }
#security { --photo-position: 80% 60%; }
#faq { --photo-position: 12% 68%; }

/* The work and consultation sections share the profile section's pale blue. */
.work-section, .contact-section {
  background: var(--color-bg-blue);
  color: var(--color-text);
}
.editorial-work-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 36px;
  padding: 0;
}
.editorial-work-heading h2 {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  width: auto;
  padding: 0;
  margin: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 28px;
  line-height: 1.55;
}
.editorial-work-heading .editorial-photo {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 10;
  --photo-position: 50% 58%;
}
.work-grid { position: relative; z-index: 1; }

/* The consultation title is also read before the photo and email details. */
.contact-section__layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.contact-section__intro { display: contents; }
.contact-section h2 {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 28px;
  line-height: 1.6;
}
.contact-section__intro .editorial-photo {
  grid-column: 1;
  grid-row: 2;
  aspect-ratio: 4 / 3;
}
.email-contact {
  grid-column: 1;
  grid-row: 3;
  align-self: start;
}
.mobile-consult[hidden] { display: none; }

/* The hero uses the same background as its section, without a white plaque. */
.aizen-hero { display: flex; flex-direction: column; }
.aizen-hero__visual { order: -1; height: 320px; z-index: 1; }
.aizen-hero__copy {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 40px var(--gutter);
  background: transparent;
}
.aizen-hero h1 {
  width: auto;
  padding: 0;
  margin-left: 0;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 600;
}
.hero-ghost {
  top: auto;
  right: auto;
  left: -24px;
  bottom: 16px;
  font-size: clamp(120px, 23vw, 300px);
}

@media (min-width: 768px) {
  .chapter {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    grid-template-rows: auto auto;
    column-gap: 40px;
    row-gap: 36px;
  }
  .editorial-heading h2 { grid-column: 1 / -1; font-size: 30px; }
  .editorial-heading h2 br, .editorial-work-heading h2 br { display: none; }
  .chapter > .chapter__body, .person-section .chapter__body {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }
  .editorial-work-heading { gap: 36px; margin-bottom: 40px; }
  .editorial-work-heading h2 { font-size: 32px; }
  .editorial-work-heading .editorial-photo { aspect-ratio: 16 / 6; }
  .contact-section__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 48px;
    row-gap: 28px;
  }
  .contact-section h2 { grid-column: 1 / -1; }
  .contact-section h2 { font-size: 32px; }
  .email-contact { grid-column: 2; grid-row: 2; align-self: stretch; padding: 32px; }
  .contact-section__intro .editorial-photo { aspect-ratio: auto; min-height: 280px; align-self: stretch; }
  .aizen-hero { display: grid; grid-template-columns: 58fr 42fr; }
  .aizen-hero__copy { grid-column: 1; grid-row: 1; padding: 60px 36px 48px; }
  .aizen-hero__visual { grid-column: 2; grid-row: 1; height: auto; min-height: 620px; }
}
@media (min-width: 1024px) {
  .editorial-ghost { top: 28px; right: -10px; font-size: 174px; }
  .chapter { grid-template-columns: 430px minmax(0, 1fr); column-gap: 72px; row-gap: 40px; }
  .chapter--image-right { grid-template-columns: minmax(0, 1fr) 430px; }
  .chapter--image-right > .editorial-heading > .editorial-photo { grid-column: 2; }
  .chapter--image-right > .chapter__body { grid-column: 1; grid-row: 2; }
  .editorial-heading h2 { font-size: 32px; }
  .chapter--compact .editorial-heading h2 { font-size: 32px; }
  .editorial-work-heading h2 { font-size: 32px; }
  .editorial-work-heading .editorial-photo { height: 340px; aspect-ratio: auto; }
  .contact-section__layout { grid-template-columns: 430px minmax(0, 1fr); column-gap: 72px; }
  .contact-section h2 { font-size: 32px; }
  .contact-section__intro .editorial-photo { min-height: 322px; }
  .aizen-hero__copy { padding: 72px 48px 64px max(48px, calc((100vw - 1200px) / 2)); }
  .aizen-hero h1 { width: auto; padding: 0; margin-left: 0; background: transparent; font-size: clamp(44px, 4.1vw, 58px); line-height: 1.6; }
  .aizen-hero__visual { min-height: 650px; }
}

.email-contact__headline { margin: 0 0 20px; font-size: clamp(24px, 2.5vw, 30px); font-weight: 700; line-height: 1.65; color: var(--color-text); }
.email-contact__label { margin-bottom: 8px; }
.email-contact .small-note { margin-top: 4px; }

.section-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}
.section-reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .section-reveal { opacity: 1; transform: none; transition: none; }
}

/* Navigation shared by the source and standalone review. */
@media (max-width: 1023px) {
  .site-nav {
    position: fixed;
    z-index: 101;
    inset: 0 0 0 50%;
    width: 50%;
    height: 100vh;
    height: 100dvh;
    padding: calc(var(--header-height) + 24px) 16px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--color-primary);
    border: 0;
  }
  .site-nav__list { padding: 0; }
  .site-nav__list a,
  .site-nav__list a[aria-current="page"],
  .site-nav__list .nav-contact {
    padding: 20px 8px;
    color: var(--color-on-primary);
    font-weight: 600;
  }
  .site-nav__list li + li { border-top: 1px solid rgba(255, 255, 255, .25); }
  .site-nav__list li:last-child { border-top: 0; margin-top: 28px; }
  .site-nav__list .nav-contact {
    justify-content: center;
    padding: 14px 6px;
    border: 1px solid rgba(255, 255, 255, .7);
    text-align: center;
  }
  .nav-toggle { position: relative; z-index: 102; }
  .nav-toggle[aria-expanded="true"] { color: var(--color-on-primary); border-color: transparent; background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before,
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { background: var(--color-on-primary); }
  .nav-toggle[aria-expanded="true"]:focus-visible { outline-color: var(--color-on-primary); }
  html:has(.nav-toggle[aria-expanded="true"]) { overflow: hidden; }
  html:has(.nav-toggle[aria-expanded="true"]) .mobile-consult { display: none; }
  .no-js .site-nav { position: static; width: 100%; height: auto; padding: 16px; }
  .site-nav__list a:hover { background: rgba(255, 255, 255, .1); }
  .site-nav__list a:focus-visible { outline-color: var(--color-on-primary); }
}
