/* September briefing: original wordmark, discrete engagement cards and quiet forms. */
/* September 28: restore the original section palette. Only the contact
   transition uses the darker forest greens from Kevin's supplied reference. */
.consulting-page main > .consulting-scope,
.investments-page main > .venture-engagement {
  background: #06241e;
  box-shadow: none;
  isolation: isolate;
}

.consulting-page .consulting-scope::before {
  content: none;
}

:is(.consulting-page, .investments-page) main > .contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 32% 105% at 61% 0%, rgba(24, 74, 66, .5), transparent 74%),
    radial-gradient(ellipse 40% 105% at 100% 100%, rgba(18, 72, 55, .48), transparent 78%),
    radial-gradient(ellipse 45% 70% at 0% 100%, rgba(2, 20, 17, .12), transparent 80%),
    #082820;
  box-shadow: none;
  border-block: 1px solid rgba(173, 229, 212, .12);
}

:is(.consulting-page, .investments-page) .contact-section::before {
  content: none;
}

:is(.consulting-page, .investments-page) .site-footer {
  background: #06211c;
  box-shadow: none;
}

.investments-page .venture-engagement {
  padding-bottom: clamp(2.5rem, 4vw, 4.5rem);
  border-bottom: 0;
}

.investments-page .contact-section {
  padding-top: 3rem;
}

.investments-page .contact-section .contact-layout {
  margin-top: 0;
}

/* Keep the entire decorative glyph inside the engagement section at every width. */
.investments-page .venture-engagement::after { content: none; }
.engagement-amp {
  position: absolute;
  right: clamp(1.25rem, 3vw, 3rem);
  bottom: clamp(1.75rem, 3vw, 3rem);
  z-index: -1;
  color: rgba(242, 239, 231, .045);
  font-family: var(--font-display);
  font-size: clamp(8rem, 24vw, 18rem);
  font-weight: 400;
  line-height: 1.15;
  pointer-events: none;
  user-select: none;
}

/* Preserve the supplied PNG's circular transparency without clipping its sides. */
.founder--overview .portrait-frame:has(.founder-image--green) {
  aspect-ratio: 1;
  background: transparent;
  box-shadow: none;
}

.umbrella-page .overview-hero .hero-title--wordmark {
  width: min(29rem, 100%);
  max-width: 100%;
  margin-block: 2rem;
  padding: 0;
  font-size: 0;
  line-height: 1;
  /* Original artwork ends at row 728; the separate Consulting line starts at 757. */
  aspect-ratio: 2623 / 728;
  overflow: hidden;
}

.overview-hero .hero-wordmark {
  display: block;
  width: 100%;
  height: auto;
}

.umbrella-page .overview-hero .overview-hero-shell {
  transform: none;
}

.umbrella-page .overview-directions {
  padding-top: 2rem;
}

.investments-page .investments-hero h1 {
  width: 100%;
  max-width: 100%;
}

.consulting-page .consulting-hero .hero-copy,
.consulting-page .consulting-hero h1 {
  max-width: 100%;
}

.investments-page .engagement-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.engagement-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 2.5rem 1.5rem 2.75rem;
  border: 1px solid rgba(119, 192, 173, 0.22);
  border-radius: 3px;
  background: rgba(9, 49, 41, 0.76);
  text-align: center;
}

.engagement-card .engagement-number {
  color: #77d9c1;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
}

.engagement-card h3 {
  margin: 1rem 0 0;
  color: var(--soft-white);
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.1;
}

.engagement-card .engagement-rule {
  width: 2.5rem;
  height: 1px;
  margin-block: 1.125rem;
  background: #00d3ad;
}

.engagement-card .engagement-icon {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.5rem;
  color: #00d3ad;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.engagement-card p {
  max-width: 28ch;
  margin: 0;
  color: rgba(242, 239, 231, 0.87);
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.engagement-icon-stage {
  position: relative;
  flex: 0 0 auto;
  width: min(11rem, 100%);
  height: 10rem;
  margin: -0.375rem 0 0.875rem;
  isolation: isolate;
}

.engagement-card .engagement-icon-stage .engagement-icon {
  position: absolute;
  width: 7.62rem;
  height: 7.62rem;
  max-width: 100%;
  top: 50%;
  left: 50%;
  margin: 0;
  opacity: 1;
  color: #69e8ca;
  stroke-width: 1.2;
  transform: translate(-50%, -50%) perspective(420px) rotateX(0deg) rotateY(0deg) scale(1);
  filter: drop-shadow(0 0 3px rgba(0, 237, 190, 0.25));
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1), filter 600ms ease, color 600ms ease;
}

.engagement-card {
  position: relative;
  transition: border-color 600ms ease, box-shadow 600ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.engagement-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at var(--light-x, 50%) var(--light-y, 40%), rgba(64, 232, 190, 0.1), transparent 70%);
  transition: opacity 600ms ease;
}

.engagement-card .engagement-rule {
  transition: width 650ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 600ms ease;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .engagement-card.is-hovered {
    transform: translateY(-4px);
    border-color: rgba(105, 232, 202, 0.55);
    box-shadow: 0 18px 42px rgba(0, 10, 8, 0.22), inset 0 0 30px rgba(0, 211, 173, 0.035);
  }

  .engagement-card.is-hovered::before { opacity: 1; }

  .engagement-card.is-hovered .engagement-rule {
    width: 3.75rem;
    box-shadow: 0 0 12px rgba(0, 237, 190, 0.45);
  }

  .engagement-card.is-hovered .engagement-icon-stage .engagement-icon {
    color: #a0ffe2;
    transform: translate(-50%, -54%) perspective(420px) rotateX(var(--icon-pitch, 0deg)) rotateY(var(--icon-yaw, 0deg)) scale(1.12);
    filter: drop-shadow(0 0 4px rgba(0, 237, 190, 0.65)) drop-shadow(0 0 15px rgba(0, 211, 168, 0.4));
  }
}

@media (prefers-reduced-motion: reduce) {
  .engagement-card,
  .engagement-card::before,
  .engagement-card .engagement-rule,
  .engagement-card .engagement-icon-stage .engagement-icon { transition: none; }
}

.contact-section {
  padding-block: 5rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 3rem;
  width: 100%;
  max-width: 1500px;
  margin-inline: auto;
  scroll-margin-top: 7rem;
}

.contact-layout--investments {
  grid-column: 1 / -1;
  margin-top: 3rem;
}

.contact-section:focus,
.contact-layout:focus {
  outline: none;
}

.contact-heading h2 {
  max-width: 19ch;
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.16;
  text-wrap: pretty;
}

.contact-heading p {
  margin: 0;
  color: rgba(242, 239, 231, 0.78);
  font-size: 1rem;
  line-height: 1.6;
}

.contact-layout--investments .contact-heading h2 {
  max-width: 26ch;
  font-size: 1.5rem;
  line-height: 1.4;
}

.contact-form {
  min-width: 0;
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.contact-field {
  min-width: 0;
}

.contact-field--message {
  grid-column: 1 / -1;
}

/* Persistent labels remain identifiable after typing and browser autofill. */
.contact-field .contact-field-label {
  display: block;
  margin-bottom: .15rem;
  color: rgba(242, 239, 231, .82);
  font-size: .875rem;
  line-height: 1.5;
}

.contact-field:has(.contact-field-label) input::placeholder,
.contact-field:has(.contact-field-label) textarea::placeholder {
  color: transparent;
}

.contact-status a {
  color: var(--soft-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-field input,
.contact-field textarea {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  margin: 0;
  padding: 0.875rem 0;
  border: 0;
  border-bottom: 1px solid rgba(242, 239, 231, 0.32);
  border-radius: 0;
  outline-offset: 5px;
  background: transparent;
  color: var(--soft-white);
  font: 400 1rem / 1.6 var(--font-body);
  letter-spacing: 0;
  transition: border-color 180ms ease;
}

.contact-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(242, 239, 231, 0.72);
  opacity: 1;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: #77d9c1;
  outline: 1px solid rgba(119, 217, 193, 0.7);
}

.contact-field [aria-invalid="true"] {
  border-color: #f4b6a7;
}

.contact-field-error,
.contact-status[data-state="error"] {
  color: #f4b6a7;
}

.contact-field-error {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.contact-send {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  min-width: 9rem;
  min-height: 3rem;
  margin-top: 1.75rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid rgba(119, 217, 193, 0.5);
  border-radius: 3px;
  background: transparent;
  color: var(--soft-white);
  font: 500 1rem / 1.3 var(--font-body);
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.contact-send svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.contact-send:not(:disabled):hover {
  border-color: #77d9c1;
  background: rgba(119, 217, 193, 0.1);
}

.contact-send:not(:disabled):hover svg {
  transform: translateX(3px);
}

.contact-send:focus-visible,
.contact-privacy a:focus-visible {
  outline: 2px solid #77d9c1;
  outline-offset: 4px;
}

.contact-send:disabled {
  opacity: 0.65;
  cursor: wait;
}

.contact-form .contact-privacy {
  max-width: 36rem;
  margin: 1rem 0 0;
  color: rgba(242, 239, 231, 0.72);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.contact-privacy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-status {
  margin: 1.25rem 0 0;
  scroll-margin-block: 1.25rem;
  color: #a8e9d8;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-status:focus {
  outline: none;
}

.contact-form [hidden] {
  display: none;
}

@media (max-width: 820px) {
  .umbrella-page .overview-hero .hero-title--wordmark {
    width: min(30rem, 100%);
    margin-block: 1.75rem;
  }

  .investments-page .engagement-grid {
    grid-template-columns: 1fr;
  }

  .engagement-card {
    padding-block: 2rem;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .contact-heading h2 {
    font-size: 2.25rem;
  }

  .contact-section {
    padding-block: 3.5rem;
  }

  .investments-page .investments-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .investments-page .investments-hero-shell {
    min-width: 0;
    max-width: 100%;
  }

  .investments-page .investments-hero h1 span:nth-child(-n + 2) {
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .investments-page .investments-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .contact-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-send,
  .contact-send svg,
  .contact-field input,
  .contact-field textarea {
    transition: none;
  }
}
