.tdc-profile {
  --tdc-profile-ink: #132e27;
  --tdc-profile-red: #b92329;
  --tdc-profile-line: #dedfd5;
  --tdc-profile-anchor: clamp(5.8rem, 9vw, 7.8rem);
  position: relative;
  padding: clamp(2.75rem, 7vw, 6rem) clamp(1rem, 5vw, 3rem);
  scroll-margin-block-start: var(--tdc-profile-anchor);
  border-block-end: 1px solid #ededeb;
  background: #fff;
  color: var(--tdc-profile-ink);
}

.tdc-profile #investor {
  position: absolute;
  inset: 0 auto auto 0;
  inline-size: 1px;
  block-size: 1px;
  scroll-margin-block-start: var(--tdc-profile-anchor);
}

.tdc-profile-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(1.75rem, 6vw, 5rem);
  max-inline-size: 72rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 6vw, 4.65rem);
  border: 1px solid var(--tdc-profile-line);
  border-radius: clamp(1rem, 2.4vw, 2rem);
  background: linear-gradient(120deg, #fbfaf7, #f2f3ec);
}

.tdc-profile-copy h2 {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: clamp(2.1rem, 4.75vw, 4.15rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.039em;
  text-wrap: balance;
}

.tdc-profile-copy p {
  max-inline-size: 31rem;
  margin: .9rem 0 0;
  color: #40544a;
  font-size: clamp(1rem, 1.75vw, 1.18rem);
  line-height: 1.65;
}

.tdc-profile-open {
  display: inline-flex;
  min-block-size: 3.05rem;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  margin-block-start: clamp(1.2rem, 3vw, 2rem);
  padding: .7rem 1.15rem;
  border: 1px solid var(--tdc-profile-red);
  border-radius: 999px;
  background: var(--tdc-profile-red);
  color: #fff;
  font-size: .97rem;
  font-weight: 700;
  cursor: pointer;
}

.tdc-profile-open:hover {
  border-color: #97202a;
  background: #97202a;
}

.tdc-profile-open:focus-visible,
.tdc-book-icon:focus-visible,
.tdc-book-viewport:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.tdc-profile-open:focus-visible {
  outline-color: var(--tdc-profile-ink);
}

.tdc-profile-cover {
  display: grid;
  justify-items: center;
  min-inline-size: 0;
  margin: 0;
}

.tdc-profile-cover img {
  display: block;
  inline-size: min(100%, 18rem);
  block-size: auto;
  border: 1px solid rgb(19 46 39 / 14%);
  border-radius: .2rem;
  box-shadow: .55rem .75rem 1.4rem rgb(19 46 39 / 23%), 0 .18rem .33rem rgb(19 46 39 / 13%);
}

.tdc-profile-reader:not([open]) {
  display: none;
}

.tdc-profile-reader {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  inline-size: min(calc(100vw - 2rem), 54rem);
  block-size: min(calc(100vh - 2rem), 61rem);
  block-size: min(calc(100dvh - 2rem), 61rem);
  max-inline-size: none;
  max-block-size: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #486055;
  border-radius: .9rem;
  background: #162b24;
  color: #f8f7f2;
  box-shadow: 0 1.5rem 5rem rgb(4 14 11 / 55%);
}

.tdc-profile-reader::backdrop {
  background: rgb(8 17 13 / 77%);
}

.tdc-book-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .42rem .88rem;
  border-block-end: 1px solid #334b40;
  background: #172e25;
}

.tdc-book-header h3 {
  margin: 0;
  color: inherit;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.tdc-book-header-actions,
.tdc-book-controls {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.tdc-book-controls {
  justify-content: center;
  padding: .36rem .9rem;
  border-block-start: 1px solid #334b40;
  background: #172e25;
}

.tdc-book-icon {
  display: grid;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: .5rem;
  background: transparent;
  color: #f8f7f2;
  font-family: system-ui, sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.tdc-book-icon:hover {
  border-color: #4b6559;
  background: #2a4539;
}

.tdc-book-icon[aria-disabled='true'] {
  color: #8a9a91;
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.tdc-book-count {
  min-inline-size: 8.5rem;
  margin: 0;
  color: #f1f1e7;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.tdc-book-viewport {
  display: grid;
  min-block-size: 0;
  min-inline-size: 0;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 38%, #34483c, #1a241e 74%);
  container-type: size;
  touch-action: pinch-zoom;
  user-select: none;
}

.tdc-book-viewport-zoomed {
  place-items: start;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
  cursor: auto;
}

.tdc-book-viewport:focus-visible {
  outline-offset: -4px;
}

.tdc-book-page {
  position: relative;
  inline-size: min(calc(100% - 1.25rem), calc((100vh - 9rem) * var(--tdc-book-ratio)));
  inline-size: min(calc(100cqw - 1.25rem), calc((100cqh - 1.25rem) * var(--tdc-book-ratio)));
  margin: .625rem;
  aspect-ratio: var(--tdc-book-ratio);
  cursor: grab;
}

.tdc-book-page:active {
  cursor: grabbing;
}

.tdc-book-viewport-zoomed .tdc-book-page {
  inline-size: max(calc(100cqw - 1.25rem), 46rem);
  cursor: auto;
}

.tdc-book-paper,
.tdc-book-curl {
  position: absolute;
  inset: 0;
}

.tdc-book-paper {
  background: #f8f6ee;
  box-shadow: 0 .2rem .6rem rgb(6 15 10 / 40%), 0 .9rem 2.5rem rgb(6 15 10 / 35%);
}

.tdc-book-page img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
  pointer-events: none;
}

.tdc-book-curl {
  visibility: hidden;
  inline-size: 100%;
  block-size: 100%;
  pointer-events: none;
}

.tdc-book-curl[data-active] {
  visibility: visible;
}

@media (max-width: 42rem) {
  .tdc-profile-panel {
    grid-template-columns: 1fr;
    gap: 1.65rem;
  }

  .tdc-profile-cover img {
    inline-size: min(100%, 13.25rem);
  }

  .tdc-profile-reader {
    inline-size: 100vw;
    block-size: 100vh;
    block-size: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .tdc-book-header {
    padding-block-start: max(.35rem, env(safe-area-inset-top));
  }

  .tdc-book-controls {
    padding-block-end: max(.35rem, env(safe-area-inset-bottom));
  }
}


