/* Trinity V49.3 Founder Story
   Replaces the oversized legacy Built From artwork with a service-led,
   evidence-minded founder biography and accessible publication link. */

.founder-story-section {
  --founder-gold: #d5ad58;
  --founder-gold-light: #f2d48b;
  --founder-red: #a91d18;
  --founder-ivory: #f5efe4;
  --founder-muted: #bcb2a5;
  position: relative;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  gap: 0 !important;
  padding: clamp(42px, 5vw, 82px) max(4vw, 20px) !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 15%, rgba(169, 29, 24, .15), transparent 31%),
    linear-gradient(145deg, #030303, #090806 62%, #030303) !important;
}

.founder-story-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(213, 173, 88, .12) 50%, transparent 50.1%),
    linear-gradient(rgba(213, 173, 88, .05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 84px;
}

.founder-story-shell {
  position: relative;
  z-index: 1;
  width: min(1480px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(213, 173, 88, .42);
  background: rgba(5, 5, 4, .96);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .48);
}

.founder-story-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  min-height: 660px;
}

.founder-story-copy {
  position: relative;
  padding: clamp(42px, 5.4vw, 82px);
  border-right: 1px solid rgba(213, 173, 88, .24);
}

.founder-story-copy::after {
  content: "TRINITY & CO.";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(213, 173, 88, .13);
  font: 700 clamp(34px, 5vw, 78px)/1 Arial, sans-serif;
  letter-spacing: .08em;
  pointer-events: none;
}

.founder-story-copy .eyebrow {
  margin: 0 0 14px !important;
  color: #cf3c35 !important;
  font: 800 12px/1 Arial, sans-serif !important;
  letter-spacing: .24em !important;
  text-transform: uppercase !important;
}

.founder-service-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 10px 14px;
  border: 1px solid rgba(213, 173, 88, .44);
  color: var(--founder-gold-light);
  background: rgba(213, 173, 88, .07);
  font: 700 13px/1.2 Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.founder-service-line span {
  color: #cf3c35;
  font-size: 17px;
}

.founder-story-copy h2 {
  max-width: 760px;
  margin: 0 !important;
  color: var(--founder-ivory) !important;
  font: 500 clamp(46px, 5.5vw, 86px)/.98 Georgia, "Times New Roman", serif !important;
  letter-spacing: -.025em !important;
  text-transform: none !important;
  text-wrap: balance;
}

.founder-story-lede,
.founder-story-copy > p:not(.eyebrow):not(.founder-service-line):not(.founder-story-note) {
  max-width: 720px;
  color: #d7d0c6;
  font: 400 clamp(16px, 1.2vw, 19px)/1.66 Arial, sans-serif;
}

.founder-story-lede {
  margin: 28px 0 14px;
  color: var(--founder-ivory) !important;
  font-weight: 600 !important;
}

.founder-story-copy blockquote {
  max-width: 700px;
  margin: 28px 0;
  padding: 18px 0 18px 24px;
  border-left: 3px solid var(--founder-red);
}

.founder-story-copy blockquote p {
  margin: 0;
  color: var(--founder-gold-light);
  font: 500 clamp(19px, 1.5vw, 24px)/1.48 Georgia, "Times New Roman", serif;
}

.founder-story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.founder-story-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid var(--founder-gold);
  font: 800 13px/1.2 Arial, sans-serif;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
}

.founder-primary-action {
  color: #090806 !important;
  background: var(--founder-gold);
}

.founder-primary-action:hover,
.founder-primary-action:focus-visible {
  background: var(--founder-gold-light);
}

.founder-secondary-action {
  color: var(--founder-gold-light) !important;
  background: transparent;
}

.founder-secondary-action:hover,
.founder-secondary-action:focus-visible {
  color: #090806 !important;
  background: var(--founder-gold-light);
}

.founder-story-note {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 20px 0 0;
  color: #92897e;
  font: 400 12px/1.55 Arial, sans-serif;
}

.founder-story-gallery {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background:
    radial-gradient(circle at 50% 16%, rgba(213, 173, 88, .17), transparent 38%),
    #080705;
}

.founder-service-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
}

.founder-service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .95));
  pointer-events: none;
}

.founder-service-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  filter: saturate(.74) contrast(1.06) brightness(.78);
}

.founder-service-card figcaption {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 25px;
  display: grid;
  gap: 5px;
  color: var(--founder-ivory);
}

.founder-service-card figcaption strong {
  font: 500 clamp(25px, 2.6vw, 39px)/1.05 Georgia, "Times New Roman", serif;
}

.founder-service-card figcaption span {
  color: var(--founder-gold-light);
  font: 700 12px/1.3 Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.founder-book-card {
  min-height: 190px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px 28px;
  border-top: 1px solid rgba(213, 173, 88, .35);
  color: var(--founder-ivory) !important;
  background: linear-gradient(100deg, #14110c, #080705);
  text-decoration: none;
}

.founder-book-card:hover,
.founder-book-card:focus-visible {
  background: linear-gradient(100deg, #20180d, #0b0906);
}

.founder-book-card img {
  display: block;
  width: 118px;
  aspect-ratio: 612 / 792;
  object-fit: cover;
  border: 1px solid rgba(242, 212, 139, .42);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .46);
}

.founder-book-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.founder-book-copy small {
  color: #cf3c35;
  font: 800 11px/1.2 Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.founder-book-copy strong {
  color: var(--founder-ivory);
  font: 500 clamp(21px, 2vw, 30px)/1.15 Georgia, "Times New Roman", serif;
}

.founder-book-copy em {
  color: var(--founder-gold-light);
  font: 700 12px/1.3 Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.founder-story-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(213, 173, 88, .3);
  border-bottom: 1px solid rgba(213, 173, 88, .3);
}

.founder-story-values article {
  min-height: 190px;
  padding: 30px;
  border-left: 1px solid rgba(213, 173, 88, .22);
  background: #070706;
}

.founder-story-values article:first-child {
  border-left: 0;
}

.founder-story-values article > span {
  display: block;
  margin-bottom: 14px;
  color: #cf3c35;
  font: 800 12px/1 Arial, sans-serif;
  letter-spacing: .14em;
}

.founder-story-values strong {
  display: block;
  margin-bottom: 10px;
  color: var(--founder-gold-light);
  font: 500 clamp(20px, 1.8vw, 27px)/1.16 Georgia, "Times New Roman", serif;
}

.founder-story-values p {
  margin: 0;
  color: var(--founder-muted);
  font: 400 15px/1.55 Arial, sans-serif;
}

.founder-story-motto {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px;
  color: var(--founder-gold);
  font: 600 15px/1 Georgia, "Times New Roman", serif;
  letter-spacing: .12em;
}

.founder-story-motto i {
  color: var(--founder-red);
  font-style: normal;
}

.founder-story-motto b {
  color: #cf3c35;
  font-size: 22px;
}

[data-theme="light"] .founder-story-section {
  --founder-ivory: #241d16;
  --founder-muted: #695e52;
  background:
    radial-gradient(circle at 80% 15%, rgba(169, 29, 24, .09), transparent 31%),
    linear-gradient(145deg, #eee5d6, #faf5ea 62%, #e9dfcf) !important;
}

[data-theme="light"] .founder-story-shell {
  background: #fffaf1;
  box-shadow: 0 24px 60px rgba(65, 44, 20, .16);
}

[data-theme="light"] .founder-story-copy {
  background: rgba(255, 250, 241, .98);
}

[data-theme="light"] .founder-story-copy h2,
[data-theme="light"] .founder-story-lede,
[data-theme="light"] .founder-story-copy > p:not(.eyebrow):not(.founder-service-line):not(.founder-story-note) {
  color: #2d251d !important;
}

[data-theme="light"] .founder-service-line {
  color: #6d4d16;
  background: #f4ead7;
}

[data-theme="light"] .founder-story-copy blockquote p {
  color: #6f4f19;
}

[data-theme="light"] .founder-story-note {
  color: #756b60;
}

[data-theme="light"] .founder-story-values article {
  background: #f8f0e4;
}

[data-theme="light"] .founder-story-values strong {
  color: #5e4317;
}

[data-theme="light"] .founder-story-values p {
  color: #655a4e;
}

[data-theme="light"] .founder-story-motto {
  background: #fffaf1;
}

@media (max-width: 1050px) {
  .founder-story-main {
    grid-template-columns: 1fr;
  }

  .founder-story-copy {
    border-right: 0;
    border-bottom: 1px solid rgba(213, 173, 88, .24);
  }

  .founder-story-gallery {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    grid-template-rows: 470px;
  }

  .founder-book-card {
    min-height: 100%;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    text-align: center;
    border-top: 0;
    border-left: 1px solid rgba(213, 173, 88, .35);
  }
}

@media (max-width: 720px) {
  .founder-story-section {
    padding: 28px 12px 42px !important;
  }

  .founder-story-copy {
    padding: 34px 24px 42px;
  }

  .founder-story-copy::after {
    display: none;
  }

  .founder-service-line {
    font-size: 11px;
    line-height: 1.35;
  }

  .founder-story-copy h2 {
    font-size: clamp(40px, 12vw, 58px) !important;
  }

  .founder-story-copy blockquote {
    margin-block: 24px;
    padding-left: 17px;
  }

  .founder-story-actions {
    display: grid;
  }

  .founder-story-actions a {
    width: 100%;
    text-align: center;
  }

  .founder-story-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .founder-service-card,
  .founder-service-card img {
    min-height: 300px;
  }

  .founder-service-card {
    aspect-ratio: 4 / 3;
  }

  .founder-book-card {
    min-height: 210px;
    grid-template-columns: 105px 1fr;
    justify-items: start;
    text-align: left;
    border-left: 0;
    border-top: 1px solid rgba(213, 173, 88, .35);
    padding: 20px;
  }

  .founder-book-card img {
    width: 96px;
  }

  .founder-story-values {
    grid-template-columns: 1fr;
  }

  .founder-story-values article {
    min-height: 0;
    padding: 26px 24px;
    border-left: 0;
    border-top: 1px solid rgba(213, 173, 88, .22);
  }

  .founder-story-values article:first-child {
    border-top: 0;
  }

  .founder-story-motto {
    gap: 9px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .founder-story-actions a,
  .founder-book-card {
    transition: none !important;
  }
}
