[aria-hidden="true"] :is(a, button, input, select, textarea, [tabindex]) {
  pointer-events: none;
}

::selection {
  color: #000;
  background: #42f4ee;
}

html {
  font-size: 19.2px;
}

body {
  margin: 0 auto;
  color: #111;
  background-color: #fefefe;
  font-family: Georgia, "Times New Roman", serif;
}

.explore-alert {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background-color: #8b0000;
  color: #f0ece4;
  text-align: center;
  padding: 0.75rem 1.25rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.explore-alert.explore-alert-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.explore-alert.explore-alert-closing {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.explore-alert p {
  font-size: 1rem;
  line-height: 1.5rem;
  text-indent: 0;
  margin: 0;
}

.explore-alert a {
  color: #f0ece4;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, #f0ece4 0%, #f0ece4 2px, rgba(0, 0, 0, 0) 2px);
}

.explore-alert a:hover {
  color: #fff;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, #fff 0%, #fff 4px, rgba(0, 0, 0, 0) 4px);
}

body.explore-alert-open #controls {
  top: 3.5rem;
}

.intro-name {
  display: inline;
  transition: color 0.8s ease;
}

.intro-name.highlighted {
  /* #8B0000 on #fefefe ≈ 9.5:1 contrast (WCAG AA requires 4.5:1) */
  color: #8b0000;
}

#container a.underline-reveal {
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.7s ease;
}

#container a.underline-reveal.underline-hidden {
  background-size: 0% 100%;
  transition: none;
}

#container a.underline-reveal.underline-reveal-active {
  background-size: 100% 100%;
}

@media (prefers-reduced-motion: reduce) {
  .explore-alert,
  .intro-name,
  #container a.underline-reveal {
    transition: none;
  }
}

#container {
  max-width: none;
  margin: 0;
  padding: 0;
}

#page-layout {
  display: grid;
  grid-template-columns: 0 700px;
  gap: 0;
  justify-content: center;
  max-width: 700px;
  margin: 15vh auto 100px;
  padding: 0 20px;
  transition: grid-template-columns 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              gap 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#page-layout.soft-skills-nav-open {
  grid-template-columns: 11rem 700px;
  gap: 2rem;
  max-width: calc(700px + 11rem + 2rem);
}

#main-column {
  position: relative;
  min-width: 0;
}

.soft-skills-nav {
  align-self: start;
  position: sticky;
  top: 2rem;
  width: 11rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.soft-skills-nav.unlocked.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.soft-skills-nav-close {
  font-family: inherit;
  background: none;
  border: none;
  padding: 0.15rem;
  margin: 0 0 0.75rem;
  cursor: pointer;
  color: #666;
  line-height: 0;
  opacity: 0.7;
}

.soft-skills-nav-close:hover {
  opacity: 1;
  color: #111;
}

.soft-skills-nav-heading {
  font-size: 0.95rem;
  font-weight: normal;
  font-style: italic;
  margin: 0 0 1.25rem;
  text-indent: 0;
}

.soft-skills-nav-heading ~ .soft-skills-nav-heading {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}

.soft-skills-nav-group {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #666;
  margin: 0 0 0.5rem;
  text-indent: 0;
}

.soft-skills-nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5rem;
}

.soft-skills-nav-list li {
  margin: 0 0 0.35rem;
}

.soft-skills-nav-btn {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  padding: 0 0 2px;
  cursor: pointer;
  color: #111;
  text-align: left;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, #111 0%, #111 2px, rgba(0, 0, 0, 0) 2px);
}

.soft-skills-nav-btn:hover,
.soft-skills-nav-btn.active {
  color: #111;
}

.soft-skills-nav-btn.active {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, #111 0%, #111 4px, rgba(0, 0, 0, 0) 4px);
}

.soft-skills-nav-tab {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%) translateX(-100%);
  z-index: 85;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: #fefefe;
  border: 1px solid #ccc;
  border-left: none;
  padding: 0.75rem 0.4rem;
  cursor: pointer;
  color: #333;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
}

.soft-skills-nav-tab.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.soft-skills-nav-tab:hover {
  border-color: #111;
  color: #111;
}

.soft-skills-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 95;
  width: 700px;
  max-width: 100%;
  background: #fefefe;
  border-right: 1px solid #ddd;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
  transform: translateX(calc(-100% - 1px));
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  visibility: hidden;
  overflow-y: auto;
}

.soft-skills-panel.open {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}

.soft-skills-panel-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 20px 2.5rem;
  position: relative;
}

.soft-skills-panel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 0;
  opacity: 0.6;
}

.soft-skills-panel-close:hover {
  opacity: 1;
}

#soft-skills-panel-content h3 {
  font-size: 1.6rem;
  line-height: 2.2rem;
  font-weight: normal;
  font-style: normal;
  margin: 0 0 1rem;
  text-indent: 0;
  padding-right: 2rem;
}

#soft-skills-panel-content h3 strong {
  font-weight: 700;
}

#soft-skills-panel-content .story-lead {
  font-style: italic;
  font-size: 1.15rem;
  line-height: 2rem;
  margin: 0 0 0.75rem;
  color: #333;
}

#soft-skills-panel-content .story-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #666;
  margin: 0 0 1.25rem;
  text-indent: 0;
  font-style: normal;
}

#soft-skills-panel-content p {
  text-indent: 0;
  font-size: 1.15rem;
  line-height: 2rem;
  margin: 0 0 1rem;
}

#soft-skills-panel-content blockquote {
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid #ccc;
}

#soft-skills-panel-content blockquote p {
  font-style: italic;
  color: #333;
  margin: 0;
}

#soft-skills-panel-content .panel-inline-testimonial {
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid #ccc;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

#soft-skills-panel-content .panel-inline-testimonial.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#soft-skills-panel-content .panel-inline-testimonial cite {
  display: block;
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.5rem;
  margin-bottom: 0.75rem;
  color: #333;
}

#soft-skills-panel-content .panel-inline-testimonial p {
  font-size: 1.05rem;
  line-height: 1.85rem;
  font-style: italic;
  color: #333;
}

@media (prefers-reduced-motion: reduce) {
  #soft-skills-panel-content .panel-inline-testimonial {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body.soft-skills-panel-open #controls {
  display: none;
}

@media (max-width: 960px) {
  body {
    overflow-x: hidden;
  }

  #page-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
    width: 100%;
    margin: 4rem auto 100px;
    padding: 0 1.25rem;
    box-sizing: border-box;
  }

  #page-layout.soft-skills-nav-open {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
    gap: 0;
  }

  #main-column {
    grid-column: 1;
    width: 100%;
    min-width: 0;
  }

  .soft-skills-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 96;
    width: min(280px, 85vw);
    background: #fefefe;
    border-right: 1px solid #ddd;
    padding: 1.5rem 1.25rem;
    overflow-y: auto;
    transform: translateX(-100%);
  }

  .soft-skills-nav.unlocked.open {
    transform: translateX(0);
    border-bottom: 1px solid #ddd;
    border-radius: 5px;
  }

  .soft-skills-panel {
    width: 100%;
    max-width: 100%;
  }

  .soft-skills-panel-inner {
    max-width: 100%;
    padding: 2.5rem 1.25rem 2rem;
  }

  .tangible-subsection,
  .tangible-subsection li,
  .tangible-subsection a {
    font-size: 0.9rem;
    line-height: 1.5rem;
  }

  .tangible-subsection .suggested-list li {
    line-height: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #page-layout,
  .soft-skills-nav,
  .soft-skills-nav-tab,
  .soft-skills-panel {
    transition: none;
  }
}

p {
  font-size: 1.3rem;
  line-height: 2.2rem;
  text-indent: 2.2rem;
  margin: 0;
}

p.intro-line,
.intro-line {
  text-indent: 0;
}

.intro h1,
.intro h3,
h3.section-entry {
  font-weight: normal;
  font-style: normal;
}

.intro {
  margin-bottom: 3rem;
}

.intro-line {
  font-size: 1.3rem;
  line-height: 2.2rem;
  margin: 0 0 0.5rem;
}

.intro > .intro-line:first-child,
.intro > h1.intro-line {
  font-size: 2rem;
  line-height: 2.8rem;
  margin-bottom: 0.75rem;
}

.intro-line [data-ob],
.intro-line [data-segment] {
  display: none;
}

.intro-line .intro-active,
.intro-line [data-ob].intro-active {
  display: inline;
}

.intro-line .intro-revealed,
.intro-line [data-ob].intro-revealed {
  display: block;
}

.intro-line:has([data-ob].intro-revealed) {
  display: block;
}

.intro-reveal-line:not(:has(.intro-revealed)) {
  margin: 0;
  line-height: 0;
  height: 0;
  overflow: hidden;
}

.intro-why-line {
  display: block;
  padding-top: 40px;
}

.intro-why-line a {
  display: inline;
}

.intro-line a[data-panel] {
  cursor: pointer;
}

h3.section-entry {
  text-indent: 0;
  margin-top: 2rem;
}

span {
  display: none;
}

span.on {
  display: inline;
}

div.section-block,
div.story,
div.case-study {
  display: none;
}

div.section-block.on {
  display: block;
}

div.story,
div.case-study {
  display: none !important;
}

#philosophy-entry,
#why5k-entry,
#whatido,
#philosophy,
#why5k {
  scroll-margin-top: 2rem;
}

div.section-block.on.section-animate {
  opacity: 0;
  transform: translateY(12px);
}

div.section-block.on.section-animate.is-open {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  div.section-block.on.section-animate,
  div.section-block.on.section-animate.is-open {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.testimonials {
  margin: 3rem 0;
}

.testimonial {
  margin: 0 0 2.5rem;
  padding: 0;
  border: none;
  font-size: 1.1rem;
  line-height: 1.9rem;
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: #333;
}

.testimonial p {
  text-indent: 0;
  font-size: 1.1rem;
  line-height: 1.9rem;
  margin: 0;
}

.section-block {
  padding: 2rem 0;
}

.substack-embed {
  display: none;
  margin-top: 1.25rem;
}

.substack-embed.on {
  display: block;
}

.substack-embed iframe {
  max-width: 100%;
  border: 1px solid #eee;
  background: #fff;
}

.section-block h2,
.section-block h3 {
  font-size: 1.1rem;
  font-weight: normal;
  font-style: italic;
  text-indent: 0;
  margin: 0 0 1.5rem;
}

.section-block.soft-skills {
  border-top: 1px solid #ddd;
  padding-top: 2.5rem;
  margin-top: 1rem;
}

.section-block.soft-skills > h2 {
  font-size: 1.75rem;
  line-height: 2.4rem;
  margin-bottom: 2rem;
}

.subsection {
  margin-bottom: 2.5rem;
}

.subsection h3 {
  margin-bottom: 1rem;
}

.subsection p {
  text-indent: 0;
}

.story,
.case-study {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid #ddd;
}

.story p,
.case-study p {
  text-indent: 0;
}

ul {
  margin: 0;
  padding: 0 0 0 1.5rem;
  font-size: 1.2rem;
  line-height: 2rem;
}

.suggested-list {
  list-style: none;
  padding: 0;
}

.suggested-list li {
  margin-bottom: 1.25rem;
  line-height: 1.7rem;
}

a {
  text-decoration: none;
  color: #111;
  padding-bottom: 2px;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, #111 0%, #111 4%, rgba(0, 0, 0, 0) 4%);
  cursor: pointer;
}

a.externallink,
a.internallink {
  padding-bottom: 2px;
  padding-top: 2px;
  color: #111;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, #111 0%, #111 8%, rgba(0, 0, 0, 0) 8%);
}

a.externallink:hover,
a.internallink:hover {
  color: #111;
}

#controls {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 110;
}

.tangible-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: #1a1a1a;
  color: #f0ece4;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.tangible-panel.open {
  max-height: 80vh;
  overflow-y: auto;
  pointer-events: auto;
}

.tangible-panel-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 3.5rem 2.5rem 20px;
  position: relative;
}

.tangible-close {
  position: absolute;
  top: 1.25rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: none;
  border: none;
  color: #f0ece4;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.tangible-close-label {
  display: inline;
  line-height: 1;
}

.tangible-close:hover {
  opacity: 1;
}

.tangible-panel h2 {
  font-size: 1.1rem;
  font-weight: normal;
  font-style: italic;
  margin: 0 0 1.25rem;
}

.tangible-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #333;
}

.tangible-nav-btn {
  font-family: inherit;
  font-size: 0.9rem;
  background: none;
  border: none;
  color: #8a857a;
  cursor: pointer;
  padding: 0.25rem 0;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, #8a857a 0%, #8a857a 2px, rgba(0, 0, 0, 0) 2px);
}

.tangible-nav-btn:hover {
  color: #f0ece4;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, #f0ece4 0%, #f0ece4 2px, rgba(0, 0, 0, 0) 2px);
}

.tangible-nav-btn.active {
  color: #f0ece4;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, #f0ece4 0%, #f0ece4 4px, rgba(0, 0, 0, 0) 4px);
}

.tangible-subsection {
  display: none;
}

.tangible-subsection.active {
  display: block;
}

.tangible-subsection h3 {
  font-size: 1rem;
  font-weight: normal;
  font-style: italic;
  margin: 0 0 1rem;
  color: #c9c4b8;
}

.tangible-subsection ul {
  color: #f0ece4;
}

.tangible-panel a {
  color: #f0ece4;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, #f0ece4 0%, #f0ece4 8%, rgba(0, 0, 0, 0) 8%);
}

.tangible-panel a:hover {
  color: #f0ece4;
}

body.panel-open {
  overflow: hidden;
}

body.panel-open #controls {
  display: none;
}

#expand-all {
  font-family: inherit;
  font-size: 0.85rem;
  background: #fefefe;
  border: 1px solid #ccc;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  color: #333;
}

#expand-all:hover {
  background: #fefefe;
  border-color: #111;
  color: #111;
}

noscript .fallback {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 20px;
  font-size: 1rem;
  line-height: 1.7rem;
}

noscript .fallback h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
}
